]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/openbsm/configure
MFC r368207,368607:
[FreeBSD/stable/10.git] / contrib / openbsm / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenBSM 1.2-alpha4.
4 #
5 # Report bugs to <trustedbsd-audit@TrustedBSD.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && 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 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: trustedbsd-audit@TrustedBSD.org about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='OpenBSM'
592 PACKAGE_TARNAME='openbsm'
593 PACKAGE_VERSION='1.2-alpha4'
594 PACKAGE_STRING='OpenBSM 1.2-alpha4'
595 PACKAGE_BUGREPORT='trustedbsd-audit@TrustedBSD.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="bin/auditreduce/auditreduce.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_func_list=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 USE_MACH_IPC_FALSE
641 USE_MACH_IPC_TRUE
642 HAVE_AUDIT_SYSCALLS_FALSE
643 HAVE_AUDIT_SYSCALLS_TRUE
644 LIBOBJS
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 am__nodep
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 am__untar
656 am__tar
657 AMTAR
658 am__leading_dot
659 SET_MAKE
660 mkdir_p
661 MKDIR_P
662 INSTALL_STRIP_PROGRAM
663 install_sh
664 MAKEINFO
665 AUTOHEADER
666 AUTOMAKE
667 AUTOCONF
668 ACLOCAL
669 VERSION
670 PACKAGE
671 CYGPATH_W
672 am__isrc
673 YFLAGS
674 YACC
675 CPP
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
682 AWK
683 RANLIB
684 STRIP
685 ac_ct_AR
686 AR
687 DLLTOOL
688 OBJDUMP
689 LN_S
690 NM
691 ac_ct_DUMPBIN
692 DUMPBIN
693 LD
694 FGREP
695 EGREP
696 GREP
697 SED
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 LIBTOOL
707 LEXLIB
708 LEX_OUTPUT_ROOT
709 LEX
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 MIG
721 USE_NATIVE_INCLUDES_FALSE
722 USE_NATIVE_INCLUDES_TRUE
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_maintainer_mode
768 with_native_includes
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 with_sysroot
775 enable_libtool_lock
776 enable_dependency_tracking
777 '
778       ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CPP
787 YACC
788 YFLAGS'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843   # If the previous option needs an argument, assign it.
844   if test -n "$ac_prev"; then
845     eval $ac_prev=\$ac_option
846     ac_prev=
847     continue
848   fi
849
850   case $ac_option in
851   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852   *=)   ac_optarg= ;;
853   *)    ac_optarg=yes ;;
854   esac
855
856   # Accept the important Cygnus configure options, so we can diagnose typos.
857
858   case $ac_dashdash$ac_option in
859   --)
860     ac_dashdash=yes ;;
861
862   -bindir | --bindir | --bindi | --bind | --bin | --bi)
863     ac_prev=bindir ;;
864   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865     bindir=$ac_optarg ;;
866
867   -build | --build | --buil | --bui | --bu)
868     ac_prev=build_alias ;;
869   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870     build_alias=$ac_optarg ;;
871
872   -cache-file | --cache-file | --cache-fil | --cache-fi \
873   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874     ac_prev=cache_file ;;
875   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877     cache_file=$ac_optarg ;;
878
879   --config-cache | -C)
880     cache_file=config.cache ;;
881
882   -datadir | --datadir | --datadi | --datad)
883     ac_prev=datadir ;;
884   -datadir=* | --datadir=* | --datadi=* | --datad=*)
885     datadir=$ac_optarg ;;
886
887   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888   | --dataroo | --dataro | --datar)
889     ac_prev=datarootdir ;;
890   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892     datarootdir=$ac_optarg ;;
893
894   -disable-* | --disable-*)
895     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896     # Reject names that are not valid shell variable names.
897     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898       as_fn_error $? "invalid feature name: $ac_useropt"
899     ac_useropt_orig=$ac_useropt
900     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901     case $ac_user_opts in
902       *"
903 "enable_$ac_useropt"
904 "*) ;;
905       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906          ac_unrecognized_sep=', ';;
907     esac
908     eval enable_$ac_useropt=no ;;
909
910   -docdir | --docdir | --docdi | --doc | --do)
911     ac_prev=docdir ;;
912   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913     docdir=$ac_optarg ;;
914
915   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916     ac_prev=dvidir ;;
917   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918     dvidir=$ac_optarg ;;
919
920   -enable-* | --enable-*)
921     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924       as_fn_error $? "invalid feature name: $ac_useropt"
925     ac_useropt_orig=$ac_useropt
926     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927     case $ac_user_opts in
928       *"
929 "enable_$ac_useropt"
930 "*) ;;
931       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932          ac_unrecognized_sep=', ';;
933     esac
934     eval enable_$ac_useropt=\$ac_optarg ;;
935
936   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938   | --exec | --exe | --ex)
939     ac_prev=exec_prefix ;;
940   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942   | --exec=* | --exe=* | --ex=*)
943     exec_prefix=$ac_optarg ;;
944
945   -gas | --gas | --ga | --g)
946     # Obsolete; use --with-gas.
947     with_gas=yes ;;
948
949   -help | --help | --hel | --he | -h)
950     ac_init_help=long ;;
951   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952     ac_init_help=recursive ;;
953   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954     ac_init_help=short ;;
955
956   -host | --host | --hos | --ho)
957     ac_prev=host_alias ;;
958   -host=* | --host=* | --hos=* | --ho=*)
959     host_alias=$ac_optarg ;;
960
961   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962     ac_prev=htmldir ;;
963   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964   | --ht=*)
965     htmldir=$ac_optarg ;;
966
967   -includedir | --includedir | --includedi | --included | --include \
968   | --includ | --inclu | --incl | --inc)
969     ac_prev=includedir ;;
970   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971   | --includ=* | --inclu=* | --incl=* | --inc=*)
972     includedir=$ac_optarg ;;
973
974   -infodir | --infodir | --infodi | --infod | --info | --inf)
975     ac_prev=infodir ;;
976   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977     infodir=$ac_optarg ;;
978
979   -libdir | --libdir | --libdi | --libd)
980     ac_prev=libdir ;;
981   -libdir=* | --libdir=* | --libdi=* | --libd=*)
982     libdir=$ac_optarg ;;
983
984   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985   | --libexe | --libex | --libe)
986     ac_prev=libexecdir ;;
987   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988   | --libexe=* | --libex=* | --libe=*)
989     libexecdir=$ac_optarg ;;
990
991   -localedir | --localedir | --localedi | --localed | --locale)
992     ac_prev=localedir ;;
993   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994     localedir=$ac_optarg ;;
995
996   -localstatedir | --localstatedir | --localstatedi | --localstated \
997   | --localstate | --localstat | --localsta | --localst | --locals)
998     ac_prev=localstatedir ;;
999   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001     localstatedir=$ac_optarg ;;
1002
1003   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004     ac_prev=mandir ;;
1005   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006     mandir=$ac_optarg ;;
1007
1008   -nfp | --nfp | --nf)
1009     # Obsolete; use --without-fp.
1010     with_fp=no ;;
1011
1012   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013   | --no-cr | --no-c | -n)
1014     no_create=yes ;;
1015
1016   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018     no_recursion=yes ;;
1019
1020   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022   | --oldin | --oldi | --old | --ol | --o)
1023     ac_prev=oldincludedir ;;
1024   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027     oldincludedir=$ac_optarg ;;
1028
1029   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030     ac_prev=prefix ;;
1031   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032     prefix=$ac_optarg ;;
1033
1034   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035   | --program-pre | --program-pr | --program-p)
1036     ac_prev=program_prefix ;;
1037   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039     program_prefix=$ac_optarg ;;
1040
1041   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042   | --program-suf | --program-su | --program-s)
1043     ac_prev=program_suffix ;;
1044   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046     program_suffix=$ac_optarg ;;
1047
1048   -program-transform-name | --program-transform-name \
1049   | --program-transform-nam | --program-transform-na \
1050   | --program-transform-n | --program-transform- \
1051   | --program-transform | --program-transfor \
1052   | --program-transfo | --program-transf \
1053   | --program-trans | --program-tran \
1054   | --progr-tra | --program-tr | --program-t)
1055     ac_prev=program_transform_name ;;
1056   -program-transform-name=* | --program-transform-name=* \
1057   | --program-transform-nam=* | --program-transform-na=* \
1058   | --program-transform-n=* | --program-transform-=* \
1059   | --program-transform=* | --program-transfor=* \
1060   | --program-transfo=* | --program-transf=* \
1061   | --program-trans=* | --program-tran=* \
1062   | --progr-tra=* | --program-tr=* | --program-t=*)
1063     program_transform_name=$ac_optarg ;;
1064
1065   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066     ac_prev=pdfdir ;;
1067   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068     pdfdir=$ac_optarg ;;
1069
1070   -psdir | --psdir | --psdi | --psd | --ps)
1071     ac_prev=psdir ;;
1072   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073     psdir=$ac_optarg ;;
1074
1075   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076   | -silent | --silent | --silen | --sile | --sil)
1077     silent=yes ;;
1078
1079   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080     ac_prev=sbindir ;;
1081   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082   | --sbi=* | --sb=*)
1083     sbindir=$ac_optarg ;;
1084
1085   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087   | --sharedst | --shareds | --shared | --share | --shar \
1088   | --sha | --sh)
1089     ac_prev=sharedstatedir ;;
1090   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093   | --sha=* | --sh=*)
1094     sharedstatedir=$ac_optarg ;;
1095
1096   -site | --site | --sit)
1097     ac_prev=site ;;
1098   -site=* | --site=* | --sit=*)
1099     site=$ac_optarg ;;
1100
1101   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102     ac_prev=srcdir ;;
1103   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104     srcdir=$ac_optarg ;;
1105
1106   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107   | --syscon | --sysco | --sysc | --sys | --sy)
1108     ac_prev=sysconfdir ;;
1109   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111     sysconfdir=$ac_optarg ;;
1112
1113   -target | --target | --targe | --targ | --tar | --ta | --t)
1114     ac_prev=target_alias ;;
1115   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116     target_alias=$ac_optarg ;;
1117
1118   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119     verbose=yes ;;
1120
1121   -version | --version | --versio | --versi | --vers | -V)
1122     ac_init_version=: ;;
1123
1124   -with-* | --with-*)
1125     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126     # Reject names that are not valid shell variable names.
1127     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128       as_fn_error $? "invalid package name: $ac_useropt"
1129     ac_useropt_orig=$ac_useropt
1130     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131     case $ac_user_opts in
1132       *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136          ac_unrecognized_sep=', ';;
1137     esac
1138     eval with_$ac_useropt=\$ac_optarg ;;
1139
1140   -without-* | --without-*)
1141     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144       as_fn_error $? "invalid package name: $ac_useropt"
1145     ac_useropt_orig=$ac_useropt
1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147     case $ac_user_opts in
1148       *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152          ac_unrecognized_sep=', ';;
1153     esac
1154     eval with_$ac_useropt=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information"
1176     ;;
1177
1178   *=*)
1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180     # Reject names that are not valid shell variable names.
1181     case $ac_envvar in #(
1182       '' | [0-9]* | *[!_$as_cr_alnum]* )
1183       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184     esac
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   as_fn_error $? "missing argument to $ac_option"
1202 fi
1203
1204 if test -n "$ac_unrecognized_opts"; then
1205   case $enable_option_checking in
1206     no) ;;
1207     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209   esac
1210 fi
1211
1212 # Check all directory arguments for consistency.
1213 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214                 datadir sysconfdir sharedstatedir localstatedir includedir \
1215                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216                 libdir localedir mandir
1217 do
1218   eval ac_val=\$$ac_var
1219   # Remove trailing slashes.
1220   case $ac_val in
1221     */ )
1222       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223       eval $ac_var=\$ac_val;;
1224   esac
1225   # Be sure to have absolute directory names.
1226   case $ac_val in
1227     [\\/$]* | ?:[\\/]* )  continue;;
1228     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229   esac
1230   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242   if test "x$build_alias" = x; then
1243     cross_compiling=maybe
1244   elif test "x$build_alias" != "x$host_alias"; then
1245     cross_compiling=yes
1246   fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258   as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260   as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265   ac_srcdir_defaulted=yes
1266   # Try the directory containing this script, then the parent directory.
1267   ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269          X"$as_myself" : 'X\(//\)[^/]' \| \
1270          X"$as_myself" : 'X\(//\)$' \| \
1271          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\/\)[^/].*/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\/\)$/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\).*/{
1286             s//\1/
1287             q
1288           }
1289           s/.*/./; q'`
1290   srcdir=$ac_confdir
1291   if test ! -r "$srcdir/$ac_unique_file"; then
1292     srcdir=..
1293   fi
1294 else
1295   ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304         pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307   srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_env_${ac_var}_value=\$${ac_var}
1318   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326   # Omit some internal or obsolete options to make the list less imposing.
1327   # This message is too long to be a string in the A/UX 3.1 sh.
1328   cat <<_ACEOF
1329 \`configure' configures OpenBSM 1.2-alpha4 to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339   -h, --help              display this help and exit
1340       --help=short        display options specific to this package
1341       --help=recursive    display the short help of all the included packages
1342   -V, --version           display version information and exit
1343   -q, --quiet, --silent   do not print \`checking ...' messages
1344       --cache-file=FILE   cache test results in FILE [disabled]
1345   -C, --config-cache      alias for \`--cache-file=config.cache'
1346   -n, --no-create         do not create output files
1347       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350   --prefix=PREFIX         install architecture-independent files in PREFIX
1351                           [$ac_default_prefix]
1352   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                           [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363   --bindir=DIR            user executables [EPREFIX/bin]
1364   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1365   --libexecdir=DIR        program executables [EPREFIX/libexec]
1366   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1367   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1368   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1369   --libdir=DIR            object code libraries [EPREFIX/lib]
1370   --includedir=DIR        C header files [PREFIX/include]
1371   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1372   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1373   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1374   --infodir=DIR           info documentation [DATAROOTDIR/info]
1375   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1376   --mandir=DIR            man documentation [DATAROOTDIR/man]
1377   --docdir=DIR            documentation root [DATAROOTDIR/doc/openbsm]
1378   --htmldir=DIR           html documentation [DOCDIR]
1379   --dvidir=DIR            dvi documentation [DOCDIR]
1380   --pdfdir=DIR            pdf documentation [DOCDIR]
1381   --psdir=DIR             ps documentation [DOCDIR]
1382 _ACEOF
1383
1384   cat <<\_ACEOF
1385
1386 Program names:
1387   --program-prefix=PREFIX            prepend PREFIX to installed program names
1388   --program-suffix=SUFFIX            append SUFFIX to installed program names
1389   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1390
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398   case $ac_init_help in
1399      short | recursive ) echo "Configuration of OpenBSM 1.2-alpha4:";;
1400    esac
1401   cat <<\_ACEOF
1402
1403 Optional Features:
1404   --disable-option-checking  ignore unrecognized --enable/--with options
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-maintainer-mode
1408                           enable make rules and dependencies not useful (and
1409                           sometimes confusing) to the casual installer
1410   --enable-shared[=PKGS]  build shared libraries [default=yes]
1411   --enable-static[=PKGS]  build static libraries [default=yes]
1412   --enable-fast-install[=PKGS]
1413                           optimize for fast installation [default=yes]
1414   --disable-libtool-lock  avoid locking (might break parallel builds)
1415   --enable-dependency-tracking
1416                           do not reject slow dependency extractors
1417   --disable-dependency-tracking
1418                           speeds up one-time build
1419
1420 Optional Packages:
1421   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1422   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1423   --with-native-includes  Use the system native include files instead of those
1424                           included with openbsm.
1425   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1426                           both]
1427   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1428   --with-sysroot=DIR Search for dependent libraries within DIR
1429                         (or the compiler's sysroot if not specified).
1430
1431 Some influential environment variables:
1432   CC          C compiler command
1433   CFLAGS      C compiler flags
1434   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1435               nonstandard directory <lib dir>
1436   LIBS        libraries to pass to the linker, e.g. -l<library>
1437   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438               you have headers in a nonstandard directory <include dir>
1439   CPP         C preprocessor
1440   YACC        The `Yet Another Compiler Compiler' implementation to use.
1441               Defaults to the first program found out of: `bison -y', `byacc',
1442               `yacc'.
1443   YFLAGS      The list of arguments that will be passed by default to $YACC.
1444               This script will default YFLAGS to the empty string to avoid a
1445               default value of `-d' given by some make applications.
1446
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1449
1450 Report bugs to <trustedbsd-audit@TrustedBSD.org>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456   # If there are subdirs, report their specific --help.
1457   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458     test -d "$ac_dir" ||
1459       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460       continue
1461     ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467   # A ".." for each directory in $ac_dir_suffix.
1468   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469   case $ac_top_builddir_sub in
1470   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472   esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480   .)  # We are building in place.
1481     ac_srcdir=.
1482     ac_top_srcdir=$ac_top_builddir_sub
1483     ac_abs_top_srcdir=$ac_pwd ;;
1484   [\\/]* | ?:[\\/]* )  # Absolute name.
1485     ac_srcdir=$srcdir$ac_dir_suffix;
1486     ac_top_srcdir=$srcdir
1487     ac_abs_top_srcdir=$srcdir ;;
1488   *) # Relative name.
1489     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490     ac_top_srcdir=$ac_top_build_prefix$srcdir
1491     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495     cd "$ac_dir" || { ac_status=$?; continue; }
1496     # Check for guested configure.
1497     if test -f "$ac_srcdir/configure.gnu"; then
1498       echo &&
1499       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500     elif test -f "$ac_srcdir/configure"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure" --help=recursive
1503     else
1504       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505     fi || ac_status=$?
1506     cd "$ac_pwd" || { ac_status=$?; break; }
1507   done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512   cat <<\_ACEOF
1513 OpenBSM configure 1.2-alpha4
1514 generated by GNU Autoconf 2.69
1515
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520   exit
1521 fi
1522
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1526
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1531 {
1532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533   rm -f conftest.$ac_objext
1534   if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537   *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541   (eval "$ac_compile") 2>conftest.err
1542   ac_status=$?
1543   if test -s conftest.err; then
1544     grep -v '^ *+' conftest.err >conftest.er1
1545     cat conftest.er1 >&5
1546     mv -f conftest.er1 conftest.err
1547   fi
1548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549   test $ac_status = 0; } && {
1550          test -z "$ac_c_werror_flag" ||
1551          test ! -s conftest.err
1552        } && test -s conftest.$ac_objext; then :
1553   ac_retval=0
1554 else
1555   $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1557
1558         ac_retval=1
1559 fi
1560   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561   as_fn_set_status $ac_retval
1562
1563 } # ac_fn_c_try_compile
1564
1565 # ac_fn_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_link ()
1569 {
1570   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571   rm -f conftest.$ac_objext conftest$ac_exeext
1572   if { { ac_try="$ac_link"
1573 case "(($ac_try" in
1574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575   *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579   (eval "$ac_link") 2>conftest.err
1580   ac_status=$?
1581   if test -s conftest.err; then
1582     grep -v '^ *+' conftest.err >conftest.er1
1583     cat conftest.er1 >&5
1584     mv -f conftest.er1 conftest.err
1585   fi
1586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587   test $ac_status = 0; } && {
1588          test -z "$ac_c_werror_flag" ||
1589          test ! -s conftest.err
1590        } && test -s conftest$ac_exeext && {
1591          test "$cross_compiling" = yes ||
1592          test -x conftest$ac_exeext
1593        }; then :
1594   ac_retval=0
1595 else
1596   $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599         ac_retval=1
1600 fi
1601   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603   # interfere with the next link command; also delete a directory that is
1604   # left behind by Apple's compiler.  We do this before executing the actions.
1605   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607   as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_link
1610
1611 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists and can be compiled using the include files in
1614 # INCLUDES, setting the cache variable VAR accordingly.
1615 ac_fn_c_check_header_compile ()
1616 {
1617   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if eval \${$3+:} false; then :
1621   $as_echo_n "(cached) " >&6
1622 else
1623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h.  */
1625 $4
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629   eval "$3=yes"
1630 else
1631   eval "$3=no"
1632 fi
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 fi
1635 eval ac_res=\$$3
1636                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640 } # ac_fn_c_check_header_compile
1641
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_cpp ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   if { { ac_try="$ac_cpp conftest.$ac_ext"
1649 case "(($ac_try" in
1650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651   *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656   ac_status=$?
1657   if test -s conftest.err; then
1658     grep -v '^ *+' conftest.err >conftest.er1
1659     cat conftest.er1 >&5
1660     mv -f conftest.er1 conftest.err
1661   fi
1662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663   test $ac_status = 0; } > conftest.i && {
1664          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665          test ! -s conftest.err
1666        }; then :
1667   ac_retval=0
1668 else
1669   $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672     ac_retval=1
1673 fi
1674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675   as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_cpp
1678
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1683 ac_fn_c_try_run ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689   *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693   (eval "$ac_link") 2>&5
1694   ac_status=$?
1695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697   { { case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_try") 2>&5
1704   ac_status=$?
1705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706   test $ac_status = 0; }; }; then :
1707   ac_retval=0
1708 else
1709   $as_echo "$as_me: program exited with status $ac_status" >&5
1710        $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713        ac_retval=$ac_status
1714 fi
1715   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717   as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_run
1720
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func ()
1725 {
1726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730   $as_echo_n "(cached) " >&6
1731 else
1732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h.  */
1734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1736 #define $2 innocuous_$2
1737
1738 /* System header to define __stub macros and hopefully few prototypes,
1739     which can conflict with char $2 (); below.
1740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741     <limits.h> exists even on freestanding compilers.  */
1742
1743 #ifdef __STDC__
1744 # include <limits.h>
1745 #else
1746 # include <assert.h>
1747 #endif
1748
1749 #undef $2
1750
1751 /* Override any GCC internal prototype to avoid an error.
1752    Use char because int might match the return type of a GCC
1753    builtin and then its argument prototype would still apply.  */
1754 #ifdef __cplusplus
1755 extern "C"
1756 #endif
1757 char $2 ();
1758 /* The GNU C library defines this for functions which it implements
1759     to always fail with ENOSYS.  Some functions are actually named
1760     something starting with __ and the normal name is an alias.  */
1761 #if defined __stub_$2 || defined __stub___$2
1762 choke me
1763 #endif
1764
1765 int
1766 main ()
1767 {
1768 return $2 ();
1769   ;
1770   return 0;
1771 }
1772 _ACEOF
1773 if ac_fn_c_try_link "$LINENO"; then :
1774   eval "$3=yes"
1775 else
1776   eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext \
1779     conftest$ac_exeext conftest.$ac_ext
1780 fi
1781 eval ac_res=\$$3
1782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_func
1787
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1792 # accordingly.
1793 ac_fn_c_check_header_mongrel ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   if eval \${$3+:} false; then :
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 else
1806   # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   ac_header_compiler=yes
1816 else
1817   ac_header_compiler=no
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1822
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h.  */
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831   ac_header_preproc=yes
1832 else
1833   ac_header_preproc=no
1834 fi
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1838
1839 # So?  What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841   yes:no: )
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846     ;;
1847   no:yes:* )
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ( $as_echo "## ---------------------------------------------- ##
1859 ## Report this to trustedbsd-audit@TrustedBSD.org ##
1860 ## ---------------------------------------------- ##"
1861      ) | sed "s/^/$as_me: WARNING:     /" >&2
1862     ;;
1863 esac
1864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867   $as_echo_n "(cached) " >&6
1868 else
1869   eval "$3=\$ac_header_compiler"
1870 fi
1871 eval ac_res=\$$3
1872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 fi
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_header_mongrel
1878
1879 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1880 # -------------------------------------------
1881 # Tests whether TYPE exists after having included INCLUDES, setting cache
1882 # variable VAR accordingly.
1883 ac_fn_c_check_type ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889   $as_echo_n "(cached) " >&6
1890 else
1891   eval "$3=no"
1892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h.  */
1894 $4
1895 int
1896 main ()
1897 {
1898 if (sizeof ($2))
1899          return 0;
1900   ;
1901   return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof (($2)))
1912             return 0;
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918
1919 else
1920   eval "$3=yes"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_type
1932
1933 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1934 # ----------------------------------------------------
1935 # Tries to find if the field MEMBER exists in type AGGR, after including
1936 # INCLUDES, setting cache variable VAR accordingly.
1937 ac_fn_c_check_member ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1941 $as_echo_n "checking for $2.$3... " >&6; }
1942 if eval \${$4+:} false; then :
1943   $as_echo_n "(cached) " >&6
1944 else
1945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $5
1948 int
1949 main ()
1950 {
1951 static $2 ac_aggr;
1952 if (ac_aggr.$3)
1953 return 0;
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959   eval "$4=yes"
1960 else
1961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h.  */
1963 $5
1964 int
1965 main ()
1966 {
1967 static $2 ac_aggr;
1968 if (sizeof ac_aggr.$3)
1969 return 0;
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975   eval "$4=yes"
1976 else
1977   eval "$4=no"
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$4
1984                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_member
1989 cat >config.log <<_ACEOF
1990 This file contains any messages produced by compilers while
1991 running configure, to aid debugging if configure makes a mistake.
1992
1993 It was created by OpenBSM $as_me 1.2-alpha4, which was
1994 generated by GNU Autoconf 2.69.  Invocation command line was
1995
1996   $ $0 $@
1997
1998 _ACEOF
1999 exec 5>>config.log
2000 {
2001 cat <<_ASUNAME
2002 ## --------- ##
2003 ## Platform. ##
2004 ## --------- ##
2005
2006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011
2012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2014
2015 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2016 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2019 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2020 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2021 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2022
2023 _ASUNAME
2024
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028   IFS=$as_save_IFS
2029   test -z "$as_dir" && as_dir=.
2030     $as_echo "PATH: $as_dir"
2031   done
2032 IFS=$as_save_IFS
2033
2034 } >&5
2035
2036 cat >&5 <<_ACEOF
2037
2038
2039 ## ----------- ##
2040 ## Core tests. ##
2041 ## ----------- ##
2042
2043 _ACEOF
2044
2045
2046 # Keep a trace of the command line.
2047 # Strip out --no-create and --no-recursion so they do not pile up.
2048 # Strip out --silent because we don't want to record it for future runs.
2049 # Also quote any args containing shell meta-characters.
2050 # Make two passes to allow for proper duplicate-argument suppression.
2051 ac_configure_args=
2052 ac_configure_args0=
2053 ac_configure_args1=
2054 ac_must_keep_next=false
2055 for ac_pass in 1 2
2056 do
2057   for ac_arg
2058   do
2059     case $ac_arg in
2060     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2061     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2062     | -silent | --silent | --silen | --sile | --sil)
2063       continue ;;
2064     *\'*)
2065       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066     esac
2067     case $ac_pass in
2068     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2069     2)
2070       as_fn_append ac_configure_args1 " '$ac_arg'"
2071       if test $ac_must_keep_next = true; then
2072         ac_must_keep_next=false # Got value, back to normal.
2073       else
2074         case $ac_arg in
2075           *=* | --config-cache | -C | -disable-* | --disable-* \
2076           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2077           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2078           | -with-* | --with-* | -without-* | --without-* | --x)
2079             case "$ac_configure_args0 " in
2080               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2081             esac
2082             ;;
2083           -* ) ac_must_keep_next=true ;;
2084         esac
2085       fi
2086       as_fn_append ac_configure_args " '$ac_arg'"
2087       ;;
2088     esac
2089   done
2090 done
2091 { ac_configure_args0=; unset ac_configure_args0;}
2092 { ac_configure_args1=; unset ac_configure_args1;}
2093
2094 # When interrupted or exit'd, cleanup temporary files, and complete
2095 # config.log.  We remove comments because anyway the quotes in there
2096 # would cause problems or look ugly.
2097 # WARNING: Use '\'' to represent an apostrophe within the trap.
2098 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2099 trap 'exit_status=$?
2100   # Save into config.log some information that might help in debugging.
2101   {
2102     echo
2103
2104     $as_echo "## ---------------- ##
2105 ## Cache variables. ##
2106 ## ---------------- ##"
2107     echo
2108     # The following way of writing the cache mishandles newlines in values,
2109 (
2110   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111     eval ac_val=\$$ac_var
2112     case $ac_val in #(
2113     *${as_nl}*)
2114       case $ac_var in #(
2115       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117       esac
2118       case $ac_var in #(
2119       _ | IFS | as_nl) ;; #(
2120       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121       *) { eval $ac_var=; unset $ac_var;} ;;
2122       esac ;;
2123     esac
2124   done
2125   (set) 2>&1 |
2126     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127     *${as_nl}ac_space=\ *)
2128       sed -n \
2129         "s/'\''/'\''\\\\'\'''\''/g;
2130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131       ;; #(
2132     *)
2133       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134       ;;
2135     esac |
2136     sort
2137 )
2138     echo
2139
2140     $as_echo "## ----------------- ##
2141 ## Output variables. ##
2142 ## ----------------- ##"
2143     echo
2144     for ac_var in $ac_subst_vars
2145     do
2146       eval ac_val=\$$ac_var
2147       case $ac_val in
2148       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149       esac
2150       $as_echo "$ac_var='\''$ac_val'\''"
2151     done | sort
2152     echo
2153
2154     if test -n "$ac_subst_files"; then
2155       $as_echo "## ------------------- ##
2156 ## File substitutions. ##
2157 ## ------------------- ##"
2158       echo
2159       for ac_var in $ac_subst_files
2160       do
2161         eval ac_val=\$$ac_var
2162         case $ac_val in
2163         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164         esac
2165         $as_echo "$ac_var='\''$ac_val'\''"
2166       done | sort
2167       echo
2168     fi
2169
2170     if test -s confdefs.h; then
2171       $as_echo "## ----------- ##
2172 ## confdefs.h. ##
2173 ## ----------- ##"
2174       echo
2175       cat confdefs.h
2176       echo
2177     fi
2178     test "$ac_signal" != 0 &&
2179       $as_echo "$as_me: caught signal $ac_signal"
2180     $as_echo "$as_me: exit $exit_status"
2181   } >&5
2182   rm -f core *.core core.conftest.* &&
2183     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184     exit $exit_status
2185 ' 0
2186 for ac_signal in 1 2 13 15; do
2187   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188 done
2189 ac_signal=0
2190
2191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2192 rm -f -r conftest* confdefs.h
2193
2194 $as_echo "/* confdefs.h */" > confdefs.h
2195
2196 # Predefined preprocessor variables.
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_NAME "$PACKAGE_NAME"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_STRING "$PACKAGE_STRING"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_URL "$PACKAGE_URL"
2220 _ACEOF
2221
2222
2223 # Let the site file select an alternate cache file if it wants to.
2224 # Prefer an explicitly selected file to automatically selected ones.
2225 ac_site_file1=NONE
2226 ac_site_file2=NONE
2227 if test -n "$CONFIG_SITE"; then
2228   # We do not want a PATH search for config.site.
2229   case $CONFIG_SITE in #((
2230     -*)  ac_site_file1=./$CONFIG_SITE;;
2231     */*) ac_site_file1=$CONFIG_SITE;;
2232     *)   ac_site_file1=./$CONFIG_SITE;;
2233   esac
2234 elif test "x$prefix" != xNONE; then
2235   ac_site_file1=$prefix/share/config.site
2236   ac_site_file2=$prefix/etc/config.site
2237 else
2238   ac_site_file1=$ac_default_prefix/share/config.site
2239   ac_site_file2=$ac_default_prefix/etc/config.site
2240 fi
2241 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2242 do
2243   test "x$ac_site_file" = xNONE && continue
2244   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2245     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2246 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2247     sed 's/^/| /' "$ac_site_file" >&5
2248     . "$ac_site_file" \
2249       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 as_fn_error $? "failed to load site script $ac_site_file
2252 See \`config.log' for more details" "$LINENO" 5; }
2253   fi
2254 done
2255
2256 if test -r "$cache_file"; then
2257   # Some versions of bash will fail to source /dev/null (special files
2258   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2259   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261 $as_echo "$as_me: loading cache $cache_file" >&6;}
2262     case $cache_file in
2263       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264       *)                      . "./$cache_file";;
2265     esac
2266   fi
2267 else
2268   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269 $as_echo "$as_me: creating cache $cache_file" >&6;}
2270   >$cache_file
2271 fi
2272
2273 as_fn_append ac_header_list " sys/time.h"
2274 as_fn_append ac_header_list " unistd.h"
2275 as_fn_append ac_func_list " alarm"
2276 # Check that the precious variables saved in the cache have kept the same
2277 # value.
2278 ac_cache_corrupted=false
2279 for ac_var in $ac_precious_vars; do
2280   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2281   eval ac_new_set=\$ac_env_${ac_var}_set
2282   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2283   eval ac_new_val=\$ac_env_${ac_var}_value
2284   case $ac_old_set,$ac_new_set in
2285     set,)
2286       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2287 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2288       ac_cache_corrupted=: ;;
2289     ,set)
2290       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2292       ac_cache_corrupted=: ;;
2293     ,);;
2294     *)
2295       if test "x$ac_old_val" != "x$ac_new_val"; then
2296         # differences in whitespace do not lead to failure.
2297         ac_old_val_w=`echo x $ac_old_val`
2298         ac_new_val_w=`echo x $ac_new_val`
2299         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2300           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2301 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2302           ac_cache_corrupted=:
2303         else
2304           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2305 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2306           eval $ac_var=\$ac_old_val
2307         fi
2308         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2309 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2310         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2311 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2312       fi;;
2313   esac
2314   # Pass precious variables to config.status.
2315   if test "$ac_new_set" = set; then
2316     case $ac_new_val in
2317     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2318     *) ac_arg=$ac_var=$ac_new_val ;;
2319     esac
2320     case " $ac_configure_args " in
2321       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2322       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2323     esac
2324   fi
2325 done
2326 if $ac_cache_corrupted; then
2327   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2330 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2331   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2332 fi
2333 ## -------------------- ##
2334 ## Main body of script. ##
2335 ## -------------------- ##
2336
2337 ac_ext=c
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342
2343
2344
2345
2346 ac_aux_dir=
2347 for ac_dir in config "$srcdir"/config; do
2348   if test -f "$ac_dir/install-sh"; then
2349     ac_aux_dir=$ac_dir
2350     ac_install_sh="$ac_aux_dir/install-sh -c"
2351     break
2352   elif test -f "$ac_dir/install.sh"; then
2353     ac_aux_dir=$ac_dir
2354     ac_install_sh="$ac_aux_dir/install.sh -c"
2355     break
2356   elif test -f "$ac_dir/shtool"; then
2357     ac_aux_dir=$ac_dir
2358     ac_install_sh="$ac_aux_dir/shtool install -c"
2359     break
2360   fi
2361 done
2362 if test -z "$ac_aux_dir"; then
2363   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2364 fi
2365
2366 # These three variables are undocumented and unsupported,
2367 # and are intended to be withdrawn in a future Autoconf release.
2368 # They can cause serious problems if a builder's source tree is in a directory
2369 # whose full name contains unusual characters.
2370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2372 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2373
2374
2375
2376 ac_config_headers="$ac_config_headers config/config.h"
2377
2378
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2380 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2381     # Check whether --enable-maintainer-mode was given.
2382 if test "${enable_maintainer_mode+set}" = set; then :
2383   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2384 else
2385   USE_MAINTAINER_MODE=no
2386 fi
2387
2388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2389 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2390    if test $USE_MAINTAINER_MODE = yes; then
2391   MAINTAINER_MODE_TRUE=
2392   MAINTAINER_MODE_FALSE='#'
2393 else
2394   MAINTAINER_MODE_TRUE='#'
2395   MAINTAINER_MODE_FALSE=
2396 fi
2397
2398   MAINT=$MAINTAINER_MODE_TRUE
2399
2400
2401
2402 # --with-native-includes forces the use of the system bsm headers.
2403
2404 # Check whether --with-native-includes was given.
2405 if test "${with_native_includes+set}" = set; then :
2406   withval=$with_native_includes;
2407
2408 $as_echo "#define USE_NATIVE_INCLUDES /**/" >>confdefs.h
2409
2410 use_native_includes=true
2411
2412 else
2413   use_native_includes=false
2414 fi
2415
2416  if $use_native_includes; then
2417   USE_NATIVE_INCLUDES_TRUE=
2418   USE_NATIVE_INCLUDES_FALSE='#'
2419 else
2420   USE_NATIVE_INCLUDES_TRUE='#'
2421   USE_NATIVE_INCLUDES_FALSE=
2422 fi
2423
2424
2425 for ac_prog in mig
2426 do
2427   # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy $ac_prog; ac_word=$2
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430 $as_echo_n "checking for $ac_word... " >&6; }
2431 if ${ac_cv_path_MIG+:} false; then :
2432   $as_echo_n "(cached) " >&6
2433 else
2434   case $MIG in
2435   [\\/]* | ?:[\\/]*)
2436   ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2437   ;;
2438   *)
2439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442   IFS=$as_save_IFS
2443   test -z "$as_dir" && as_dir=.
2444     for ac_exec_ext in '' $ac_executable_extensions; do
2445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446     ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448     break 2
2449   fi
2450 done
2451   done
2452 IFS=$as_save_IFS
2453
2454   ;;
2455 esac
2456 fi
2457 MIG=$ac_cv_path_MIG
2458 if test -n "$MIG"; then
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
2460 $as_echo "$MIG" >&6; }
2461 else
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2464 fi
2465
2466
2467   test -n "$MIG" && break
2468 done
2469
2470
2471 # Checks for programs.
2472 ac_ext=c
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 if test -n "$ac_tool_prefix"; then
2478   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if ${ac_cv_prog_CC+:} false; then :
2483   $as_echo_n "(cached) " >&6
2484 else
2485   if test -n "$CC"; then
2486   ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493     for ac_exec_ext in '' $ac_executable_extensions; do
2494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500   done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 CC=$ac_cv_prog_CC
2506 if test -n "$CC"; then
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2508 $as_echo "$CC" >&6; }
2509 else
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2512 fi
2513
2514
2515 fi
2516 if test -z "$ac_cv_prog_CC"; then
2517   ac_ct_CC=$CC
2518   # Extract the first word of "gcc", so it can be a program name with args.
2519 set dummy gcc; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   if test -n "$ac_ct_CC"; then
2526   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533     for ac_exec_ext in '' $ac_executable_extensions; do
2534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535     ac_cv_prog_ac_ct_CC="gcc"
2536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537     break 2
2538   fi
2539 done
2540   done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2546 if test -n "$ac_ct_CC"; then
2547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2548 $as_echo "$ac_ct_CC" >&6; }
2549 else
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2552 fi
2553
2554   if test "x$ac_ct_CC" = x; then
2555     CC=""
2556   else
2557     case $cross_compiling:$ac_tool_warned in
2558 yes:)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2561 ac_tool_warned=yes ;;
2562 esac
2563     CC=$ac_ct_CC
2564   fi
2565 else
2566   CC="$ac_cv_prog_CC"
2567 fi
2568
2569 if test -z "$CC"; then
2570           if test -n "$ac_tool_prefix"; then
2571     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}cc; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if ${ac_cv_prog_CC+:} false; then :
2576   $as_echo_n "(cached) " >&6
2577 else
2578   if test -n "$CC"; then
2579   ac_cv_prog_CC="$CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586     for ac_exec_ext in '' $ac_executable_extensions; do
2587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588     ac_cv_prog_CC="${ac_tool_prefix}cc"
2589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590     break 2
2591   fi
2592 done
2593   done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 CC=$ac_cv_prog_CC
2599 if test -n "$CC"; then
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2601 $as_echo "$CC" >&6; }
2602 else
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607
2608   fi
2609 fi
2610 if test -z "$CC"; then
2611   # Extract the first word of "cc", so it can be a program name with args.
2612 set dummy cc; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_CC+:} false; then :
2616   $as_echo_n "(cached) " >&6
2617 else
2618   if test -n "$CC"; then
2619   ac_cv_prog_CC="$CC" # Let the user override the test.
2620 else
2621   ac_prog_rejected=no
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625   IFS=$as_save_IFS
2626   test -z "$as_dir" && as_dir=.
2627     for ac_exec_ext in '' $ac_executable_extensions; do
2628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2630        ac_prog_rejected=yes
2631        continue
2632      fi
2633     ac_cv_prog_CC="cc"
2634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638   done
2639 IFS=$as_save_IFS
2640
2641 if test $ac_prog_rejected = yes; then
2642   # We found a bogon in the path, so make sure we never use it.
2643   set dummy $ac_cv_prog_CC
2644   shift
2645   if test $# != 0; then
2646     # We chose a different compiler from the bogus one.
2647     # However, it has the same basename, so the bogon will be chosen
2648     # first if we set CC to just the basename; use the full file name.
2649     shift
2650     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2651   fi
2652 fi
2653 fi
2654 fi
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2658 $as_echo "$CC" >&6; }
2659 else
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664
2665 fi
2666 if test -z "$CC"; then
2667   if test -n "$ac_tool_prefix"; then
2668   for ac_prog in cl.exe
2669   do
2670     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_CC+:} false; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   if test -n "$CC"; then
2678   ac_cv_prog_CC="$CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685     for ac_exec_ext in '' $ac_executable_extensions; do
2686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692   done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2701 else
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706
2707     test -n "$CC" && break
2708   done
2709 fi
2710 if test -z "$CC"; then
2711   ac_ct_CC=$CC
2712   for ac_prog in cl.exe
2713 do
2714   # Extract the first word of "$ac_prog", so it can be a program name with args.
2715 set dummy $ac_prog; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2719   $as_echo_n "(cached) " >&6
2720 else
2721   if test -n "$ac_ct_CC"; then
2722   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727   IFS=$as_save_IFS
2728   test -z "$as_dir" && as_dir=.
2729     for ac_exec_ext in '' $ac_executable_extensions; do
2730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731     ac_cv_prog_ac_ct_CC="$ac_prog"
2732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733     break 2
2734   fi
2735 done
2736   done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742 if test -n "$ac_ct_CC"; then
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2744 $as_echo "$ac_ct_CC" >&6; }
2745 else
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750
2751   test -n "$ac_ct_CC" && break
2752 done
2753
2754   if test "x$ac_ct_CC" = x; then
2755     CC=""
2756   else
2757     case $cross_compiling:$ac_tool_warned in
2758 yes:)
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2761 ac_tool_warned=yes ;;
2762 esac
2763     CC=$ac_ct_CC
2764   fi
2765 fi
2766
2767 fi
2768
2769
2770 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2772 as_fn_error $? "no acceptable C compiler found in \$PATH
2773 See \`config.log' for more details" "$LINENO" 5; }
2774
2775 # Provide some information about the compiler.
2776 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2777 set X $ac_compile
2778 ac_compiler=$2
2779 for ac_option in --version -v -V -qversion; do
2780   { { ac_try="$ac_compiler $ac_option >&5"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2786 $as_echo "$ac_try_echo"; } >&5
2787   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2788   ac_status=$?
2789   if test -s conftest.err; then
2790     sed '10a\
2791 ... rest of stderr output deleted ...
2792          10q' conftest.err >conftest.er1
2793     cat conftest.er1 >&5
2794   fi
2795   rm -f conftest.er1 conftest.err
2796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797   test $ac_status = 0; }
2798 done
2799
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h.  */
2802
2803 int
2804 main ()
2805 {
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 ac_clean_files_save=$ac_clean_files
2812 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2813 # Try to create an executable without -o first, disregard a.out.
2814 # It will help us diagnose broken compilers, and finding out an intuition
2815 # of exeext.
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2817 $as_echo_n "checking whether the C compiler works... " >&6; }
2818 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2819
2820 # The possible output files:
2821 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2822
2823 ac_rmfiles=
2824 for ac_file in $ac_files
2825 do
2826   case $ac_file in
2827     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2828     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2829   esac
2830 done
2831 rm -f $ac_rmfiles
2832
2833 if { { ac_try="$ac_link_default"
2834 case "(($ac_try" in
2835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836   *) ac_try_echo=$ac_try;;
2837 esac
2838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839 $as_echo "$ac_try_echo"; } >&5
2840   (eval "$ac_link_default") 2>&5
2841   ac_status=$?
2842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843   test $ac_status = 0; }; then :
2844   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2845 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2846 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2847 # so that the user can short-circuit this test for compilers unknown to
2848 # Autoconf.
2849 for ac_file in $ac_files ''
2850 do
2851   test -f "$ac_file" || continue
2852   case $ac_file in
2853     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2854         ;;
2855     [ab].out )
2856         # We found the default executable, but exeext='' is most
2857         # certainly right.
2858         break;;
2859     *.* )
2860         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2861         then :; else
2862            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2863         fi
2864         # We set ac_cv_exeext here because the later test for it is not
2865         # safe: cross compilers may not add the suffix if given an `-o'
2866         # argument, so we may need to know it at that point already.
2867         # Even if this section looks crufty: it has the advantage of
2868         # actually working.
2869         break;;
2870     * )
2871         break;;
2872   esac
2873 done
2874 test "$ac_cv_exeext" = no && ac_cv_exeext=
2875
2876 else
2877   ac_file=''
2878 fi
2879 if test -z "$ac_file"; then :
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 $as_echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2884
2885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887 as_fn_error 77 "C compiler cannot create executables
2888 See \`config.log' for more details" "$LINENO" 5; }
2889 else
2890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2892 fi
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2894 $as_echo_n "checking for C compiler default output file name... " >&6; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2896 $as_echo "$ac_file" >&6; }
2897 ac_exeext=$ac_cv_exeext
2898
2899 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2900 ac_clean_files=$ac_clean_files_save
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2902 $as_echo_n "checking for suffix of executables... " >&6; }
2903 if { { ac_try="$ac_link"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909 $as_echo "$ac_try_echo"; } >&5
2910   (eval "$ac_link") 2>&5
2911   ac_status=$?
2912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913   test $ac_status = 0; }; then :
2914   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2915 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2916 # work properly (i.e., refer to `conftest.exe'), while it won't with
2917 # `rm'.
2918 for ac_file in conftest.exe conftest conftest.*; do
2919   test -f "$ac_file" || continue
2920   case $ac_file in
2921     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2922     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923           break;;
2924     * ) break;;
2925   esac
2926 done
2927 else
2928   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2931 See \`config.log' for more details" "$LINENO" 5; }
2932 fi
2933 rm -f conftest conftest$ac_cv_exeext
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2935 $as_echo "$ac_cv_exeext" >&6; }
2936
2937 rm -f conftest.$ac_ext
2938 EXEEXT=$ac_cv_exeext
2939 ac_exeext=$EXEEXT
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h.  */
2942 #include <stdio.h>
2943 int
2944 main ()
2945 {
2946 FILE *f = fopen ("conftest.out", "w");
2947  return ferror (f) || fclose (f) != 0;
2948
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 ac_clean_files="$ac_clean_files conftest.out"
2954 # Check that the compiler produces executables we can run.  If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2957 $as_echo_n "checking whether we are cross compiling... " >&6; }
2958 if test "$cross_compiling" != yes; then
2959   { { ac_try="$ac_link"
2960 case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966   (eval "$ac_link") 2>&5
2967   ac_status=$?
2968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969   test $ac_status = 0; }
2970   if { ac_try='./conftest$ac_cv_exeext'
2971   { { case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977   (eval "$ac_try") 2>&5
2978   ac_status=$?
2979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980   test $ac_status = 0; }; }; then
2981     cross_compiling=no
2982   else
2983     if test "$cross_compiling" = maybe; then
2984         cross_compiling=yes
2985     else
2986         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error $? "cannot run C compiled programs.
2989 If you meant to cross compile, use \`--host'.
2990 See \`config.log' for more details" "$LINENO" 5; }
2991     fi
2992   fi
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2995 $as_echo "$cross_compiling" >&6; }
2996
2997 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2998 ac_clean_files=$ac_clean_files_save
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3000 $as_echo_n "checking for suffix of object files... " >&6; }
3001 if ${ac_cv_objext+:} false; then :
3002   $as_echo_n "(cached) " >&6
3003 else
3004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h.  */
3006
3007 int
3008 main ()
3009 {
3010
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.o conftest.obj
3016 if { { ac_try="$ac_compile"
3017 case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023   (eval "$ac_compile") 2>&5
3024   ac_status=$?
3025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026   test $ac_status = 0; }; then :
3027   for ac_file in conftest.o conftest.obj conftest.*; do
3028   test -f "$ac_file" || continue;
3029   case $ac_file in
3030     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3031     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3032        break;;
3033   esac
3034 done
3035 else
3036   $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 as_fn_error $? "cannot compute suffix of object files: cannot compile
3042 See \`config.log' for more details" "$LINENO" 5; }
3043 fi
3044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3045 fi
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3047 $as_echo "$ac_cv_objext" >&6; }
3048 OBJEXT=$ac_cv_objext
3049 ac_objext=$OBJEXT
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3052 if ${ac_cv_c_compiler_gnu+:} false; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061 #ifndef __GNUC__
3062        choke me
3063 #endif
3064
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 if ac_fn_c_try_compile "$LINENO"; then :
3070   ac_compiler_gnu=yes
3071 else
3072   ac_compiler_gnu=no
3073 fi
3074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3076
3077 fi
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3080 if test $ac_compiler_gnu = yes; then
3081   GCC=yes
3082 else
3083   GCC=
3084 fi
3085 ac_test_CFLAGS=${CFLAGS+set}
3086 ac_save_CFLAGS=$CFLAGS
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3089 if ${ac_cv_prog_cc_g+:} false; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   ac_save_c_werror_flag=$ac_c_werror_flag
3093    ac_c_werror_flag=yes
3094    ac_cv_prog_cc_g=no
3095    CFLAGS="-g"
3096    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h.  */
3098
3099 int
3100 main ()
3101 {
3102
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 if ac_fn_c_try_compile "$LINENO"; then :
3108   ac_cv_prog_cc_g=yes
3109 else
3110   CFLAGS=""
3111       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 if ac_fn_c_try_compile "$LINENO"; then :
3123
3124 else
3125   ac_c_werror_flag=$ac_save_c_werror_flag
3126          CFLAGS="-g"
3127          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 if ac_fn_c_try_compile "$LINENO"; then :
3139   ac_cv_prog_cc_g=yes
3140 fi
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 fi
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 fi
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146    ac_c_werror_flag=$ac_save_c_werror_flag
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3149 $as_echo "$ac_cv_prog_cc_g" >&6; }
3150 if test "$ac_test_CFLAGS" = set; then
3151   CFLAGS=$ac_save_CFLAGS
3152 elif test $ac_cv_prog_cc_g = yes; then
3153   if test "$GCC" = yes; then
3154     CFLAGS="-g -O2"
3155   else
3156     CFLAGS="-g"
3157   fi
3158 else
3159   if test "$GCC" = yes; then
3160     CFLAGS="-O2"
3161   else
3162     CFLAGS=
3163   fi
3164 fi
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3167 if ${ac_cv_prog_cc_c89+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   ac_cv_prog_cc_c89=no
3171 ac_save_CC=$CC
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h.  */
3174 #include <stdarg.h>
3175 #include <stdio.h>
3176 struct stat;
3177 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3178 struct buf { int x; };
3179 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3180 static char *e (p, i)
3181      char **p;
3182      int i;
3183 {
3184   return p[i];
3185 }
3186 static char *f (char * (*g) (char **, int), char **p, ...)
3187 {
3188   char *s;
3189   va_list v;
3190   va_start (v,p);
3191   s = g (p, va_arg (v,int));
3192   va_end (v);
3193   return s;
3194 }
3195
3196 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3197    function prototypes and stuff, but not '\xHH' hex character constants.
3198    These don't provoke an error unfortunately, instead are silently treated
3199    as 'x'.  The following induces an error, until -std is added to get
3200    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3201    array size at least.  It's necessary to write '\x00'==0 to get something
3202    that's true only with -std.  */
3203 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3204
3205 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3206    inside strings and character constants.  */
3207 #define FOO(x) 'x'
3208 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3209
3210 int test (int i, double x);
3211 struct s1 {int (*f) (int a);};
3212 struct s2 {int (*f) (double a);};
3213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3214 int argc;
3215 char **argv;
3216 int
3217 main ()
3218 {
3219 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3225         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3226 do
3227   CC="$ac_save_CC $ac_arg"
3228   if ac_fn_c_try_compile "$LINENO"; then :
3229   ac_cv_prog_cc_c89=$ac_arg
3230 fi
3231 rm -f core conftest.err conftest.$ac_objext
3232   test "x$ac_cv_prog_cc_c89" != "xno" && break
3233 done
3234 rm -f conftest.$ac_ext
3235 CC=$ac_save_CC
3236
3237 fi
3238 # AC_CACHE_VAL
3239 case "x$ac_cv_prog_cc_c89" in
3240   x)
3241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3242 $as_echo "none needed" >&6; } ;;
3243   xno)
3244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3245 $as_echo "unsupported" >&6; } ;;
3246   *)
3247     CC="$CC $ac_cv_prog_cc_c89"
3248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3249 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3250 esac
3251 if test "x$ac_cv_prog_cc_c89" != xno; then :
3252
3253 fi
3254
3255 ac_ext=c
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260
3261 # Find a good install program.  We prefer a C program (faster),
3262 # so one script is as good as another.  But avoid the broken or
3263 # incompatible versions:
3264 # SysV /etc/install, /usr/sbin/install
3265 # SunOS /usr/etc/install
3266 # IRIX /sbin/install
3267 # AIX /bin/install
3268 # AmigaOS /C/install, which installs bootblocks on floppy discs
3269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3272 # OS/2's system install, which has a completely different semantic
3273 # ./install, which can be erroneously created by make from ./install.sh.
3274 # Reject install programs that cannot install multiple files.
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3276 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3277 if test -z "$INSTALL"; then
3278 if ${ac_cv_path_install+:} false; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     # Account for people who put trailing slashes in PATH elements.
3287 case $as_dir/ in #((
3288   ./ | .// | /[cC]/* | \
3289   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3290   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3291   /usr/ucb/* ) ;;
3292   *)
3293     # OSF1 and SCO ODT 3.0 have their own names for install.
3294     # Don't use installbsd from OSF since it installs stuff as root
3295     # by default.
3296     for ac_prog in ginstall scoinst install; do
3297       for ac_exec_ext in '' $ac_executable_extensions; do
3298         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3299           if test $ac_prog = install &&
3300             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3301             # AIX install.  It has an incompatible calling convention.
3302             :
3303           elif test $ac_prog = install &&
3304             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3305             # program-specific install script used by HP pwplus--don't use.
3306             :
3307           else
3308             rm -rf conftest.one conftest.two conftest.dir
3309             echo one > conftest.one
3310             echo two > conftest.two
3311             mkdir conftest.dir
3312             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3313               test -s conftest.one && test -s conftest.two &&
3314               test -s conftest.dir/conftest.one &&
3315               test -s conftest.dir/conftest.two
3316             then
3317               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3318               break 3
3319             fi
3320           fi
3321         fi
3322       done
3323     done
3324     ;;
3325 esac
3326
3327   done
3328 IFS=$as_save_IFS
3329
3330 rm -rf conftest.one conftest.two conftest.dir
3331
3332 fi
3333   if test "${ac_cv_path_install+set}" = set; then
3334     INSTALL=$ac_cv_path_install
3335   else
3336     # As a last resort, use the slow shell script.  Don't cache a
3337     # value for INSTALL within a source directory, because that will
3338     # break other packages using the cache if that directory is
3339     # removed, or if the value is a relative name.
3340     INSTALL=$ac_install_sh
3341   fi
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3344 $as_echo "$INSTALL" >&6; }
3345
3346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3347 # It thinks the first close brace ends the variable substitution.
3348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3349
3350 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3351
3352 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3353
3354
3355 for ac_prog in flex lex
3356 do
3357   # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_LEX+:} false; then :
3362   $as_echo_n "(cached) " >&6
3363 else
3364   if test -n "$LEX"; then
3365   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372     for ac_exec_ext in '' $ac_executable_extensions; do
3373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374     ac_cv_prog_LEX="$ac_prog"
3375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379   done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 LEX=$ac_cv_prog_LEX
3385 if test -n "$LEX"; then
3386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3387 $as_echo "$LEX" >&6; }
3388 else
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394   test -n "$LEX" && break
3395 done
3396 test -n "$LEX" || LEX=":"
3397
3398 if test "x$LEX" != "x:"; then
3399   cat >conftest.l <<_ACEOF
3400 %%
3401 a { ECHO; }
3402 b { REJECT; }
3403 c { yymore (); }
3404 d { yyless (1); }
3405 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
3406     yyless ((input () != 0)); }
3407 f { unput (yytext[0]); }
3408 . { BEGIN INITIAL; }
3409 %%
3410 #ifdef YYTEXT_POINTER
3411 extern char *yytext;
3412 #endif
3413 int
3414 main (void)
3415 {
3416   return ! yylex () + ! yywrap ();
3417 }
3418 _ACEOF
3419 { { ac_try="$LEX conftest.l"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426   (eval "$LEX conftest.l") 2>&5
3427   ac_status=$?
3428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429   test $ac_status = 0; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3431 $as_echo_n "checking lex output file root... " >&6; }
3432 if ${ac_cv_prog_lex_root+:} false; then :
3433   $as_echo_n "(cached) " >&6
3434 else
3435
3436 if test -f lex.yy.c; then
3437   ac_cv_prog_lex_root=lex.yy
3438 elif test -f lexyy.c; then
3439   ac_cv_prog_lex_root=lexyy
3440 else
3441   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3442 fi
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3445 $as_echo "$ac_cv_prog_lex_root" >&6; }
3446 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3447
3448 if test -z "${LEXLIB+set}"; then
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3450 $as_echo_n "checking lex library... " >&6; }
3451 if ${ac_cv_lib_lex+:} false; then :
3452   $as_echo_n "(cached) " >&6
3453 else
3454
3455     ac_save_LIBS=$LIBS
3456     ac_cv_lib_lex='none needed'
3457     for ac_lib in '' -lfl -ll; do
3458       LIBS="$ac_lib $ac_save_LIBS"
3459       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461 `cat $LEX_OUTPUT_ROOT.c`
3462 _ACEOF
3463 if ac_fn_c_try_link "$LINENO"; then :
3464   ac_cv_lib_lex=$ac_lib
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext \
3467     conftest$ac_exeext conftest.$ac_ext
3468       test "$ac_cv_lib_lex" != 'none needed' && break
3469     done
3470     LIBS=$ac_save_LIBS
3471
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3474 $as_echo "$ac_cv_lib_lex" >&6; }
3475   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3476 fi
3477
3478
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3480 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3481 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   # POSIX says lex can declare yytext either as a pointer or an array; the
3485 # default is implementation-dependent.  Figure out which it is, since
3486 # not all implementations provide the %pointer and %array declarations.
3487 ac_cv_prog_lex_yytext_pointer=no
3488 ac_save_LIBS=$LIBS
3489 LIBS="$LEXLIB $ac_save_LIBS"
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h.  */
3492
3493   #define YYTEXT_POINTER 1
3494 `cat $LEX_OUTPUT_ROOT.c`
3495 _ACEOF
3496 if ac_fn_c_try_link "$LINENO"; then :
3497   ac_cv_prog_lex_yytext_pointer=yes
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext \
3500     conftest$ac_exeext conftest.$ac_ext
3501 LIBS=$ac_save_LIBS
3502
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3505 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3506 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3507
3508 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3509
3510 fi
3511 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3512
3513 fi
3514 case `pwd` in
3515   *\ * | *\     *)
3516     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3517 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3518 esac
3519
3520
3521
3522 macro_version='2.4.2'
3523 macro_revision='1.3337'
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537 ltmain="$ac_aux_dir/ltmain.sh"
3538
3539 # Make sure we can run config.sub.
3540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3541   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3542
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3544 $as_echo_n "checking build system type... " >&6; }
3545 if ${ac_cv_build+:} false; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   ac_build_alias=$build_alias
3549 test "x$ac_build_alias" = x &&
3550   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3551 test "x$ac_build_alias" = x &&
3552   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3554   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3555
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3558 $as_echo "$ac_cv_build" >&6; }
3559 case $ac_cv_build in
3560 *-*-*) ;;
3561 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3562 esac
3563 build=$ac_cv_build
3564 ac_save_IFS=$IFS; IFS='-'
3565 set x $ac_cv_build
3566 shift
3567 build_cpu=$1
3568 build_vendor=$2
3569 shift; shift
3570 # Remember, the first character of IFS is used to create $*,
3571 # except with old shells:
3572 build_os=$*
3573 IFS=$ac_save_IFS
3574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3575
3576
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3578 $as_echo_n "checking host system type... " >&6; }
3579 if ${ac_cv_host+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   if test "x$host_alias" = x; then
3583   ac_cv_host=$ac_cv_build
3584 else
3585   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3586     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3587 fi
3588
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3591 $as_echo "$ac_cv_host" >&6; }
3592 case $ac_cv_host in
3593 *-*-*) ;;
3594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3595 esac
3596 host=$ac_cv_host
3597 ac_save_IFS=$IFS; IFS='-'
3598 set x $ac_cv_host
3599 shift
3600 host_cpu=$1
3601 host_vendor=$2
3602 shift; shift
3603 # Remember, the first character of IFS is used to create $*,
3604 # except with old shells:
3605 host_os=$*
3606 IFS=$ac_save_IFS
3607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3608
3609
3610 # Backslashify metacharacters that are still active within
3611 # double-quoted strings.
3612 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3613
3614 # Same as above, but do not quote variable references.
3615 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3616
3617 # Sed substitution to delay expansion of an escaped shell variable in a
3618 # double_quote_subst'ed string.
3619 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3620
3621 # Sed substitution to delay expansion of an escaped single quote.
3622 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3623
3624 # Sed substitution to avoid accidental globbing in evaled expressions
3625 no_glob_subst='s/\*/\\\*/g'
3626
3627 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3628 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3630
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3632 $as_echo_n "checking how to print strings... " >&6; }
3633 # Test print first, because it will be a builtin if present.
3634 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3635    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3636   ECHO='print -r --'
3637 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3638   ECHO='printf %s\n'
3639 else
3640   # Use this function as a fallback that always works.
3641   func_fallback_echo ()
3642   {
3643     eval 'cat <<_LTECHO_EOF
3644 $1
3645 _LTECHO_EOF'
3646   }
3647   ECHO='func_fallback_echo'
3648 fi
3649
3650 # func_echo_all arg...
3651 # Invoke $ECHO with all args, space-separated.
3652 func_echo_all ()
3653 {
3654     $ECHO ""
3655 }
3656
3657 case "$ECHO" in
3658   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3659 $as_echo "printf" >&6; } ;;
3660   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3661 $as_echo "print -r" >&6; } ;;
3662   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3663 $as_echo "cat" >&6; } ;;
3664 esac
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3680 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3681 if ${ac_cv_path_SED+:} false; then :
3682   $as_echo_n "(cached) " >&6
3683 else
3684             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3685      for ac_i in 1 2 3 4 5 6 7; do
3686        ac_script="$ac_script$as_nl$ac_script"
3687      done
3688      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3689      { ac_script=; unset ac_script;}
3690      if test -z "$SED"; then
3691   ac_path_SED_found=false
3692   # Loop through the user's path and test for each of PROGNAME-LIST
3693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696   IFS=$as_save_IFS
3697   test -z "$as_dir" && as_dir=.
3698     for ac_prog in sed gsed; do
3699     for ac_exec_ext in '' $ac_executable_extensions; do
3700       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3701       as_fn_executable_p "$ac_path_SED" || continue
3702 # Check for GNU ac_path_SED and select it if it is found.
3703   # Check for GNU $ac_path_SED
3704 case `"$ac_path_SED" --version 2>&1` in
3705 *GNU*)
3706   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3707 *)
3708   ac_count=0
3709   $as_echo_n 0123456789 >"conftest.in"
3710   while :
3711   do
3712     cat "conftest.in" "conftest.in" >"conftest.tmp"
3713     mv "conftest.tmp" "conftest.in"
3714     cp "conftest.in" "conftest.nl"
3715     $as_echo '' >> "conftest.nl"
3716     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718     as_fn_arith $ac_count + 1 && ac_count=$as_val
3719     if test $ac_count -gt ${ac_path_SED_max-0}; then
3720       # Best one so far, save it but keep looking for a better one
3721       ac_cv_path_SED="$ac_path_SED"
3722       ac_path_SED_max=$ac_count
3723     fi
3724     # 10*(2^10) chars as input seems more than enough
3725     test $ac_count -gt 10 && break
3726   done
3727   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728 esac
3729
3730       $ac_path_SED_found && break 3
3731     done
3732   done
3733   done
3734 IFS=$as_save_IFS
3735   if test -z "$ac_cv_path_SED"; then
3736     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3737   fi
3738 else
3739   ac_cv_path_SED=$SED
3740 fi
3741
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3744 $as_echo "$ac_cv_path_SED" >&6; }
3745  SED="$ac_cv_path_SED"
3746   rm -f conftest.sed
3747
3748 test -z "$SED" && SED=sed
3749 Xsed="$SED -e 1s/^X//"
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3762 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3763 if ${ac_cv_path_GREP+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   if test -z "$GREP"; then
3767   ac_path_GREP_found=false
3768   # Loop through the user's path and test for each of PROGNAME-LIST
3769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_prog in grep ggrep; do
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3777       as_fn_executable_p "$ac_path_GREP" || continue
3778 # Check for GNU ac_path_GREP and select it if it is found.
3779   # Check for GNU $ac_path_GREP
3780 case `"$ac_path_GREP" --version 2>&1` in
3781 *GNU*)
3782   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3783 *)
3784   ac_count=0
3785   $as_echo_n 0123456789 >"conftest.in"
3786   while :
3787   do
3788     cat "conftest.in" "conftest.in" >"conftest.tmp"
3789     mv "conftest.tmp" "conftest.in"
3790     cp "conftest.in" "conftest.nl"
3791     $as_echo 'GREP' >> "conftest.nl"
3792     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794     as_fn_arith $ac_count + 1 && ac_count=$as_val
3795     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3796       # Best one so far, save it but keep looking for a better one
3797       ac_cv_path_GREP="$ac_path_GREP"
3798       ac_path_GREP_max=$ac_count
3799     fi
3800     # 10*(2^10) chars as input seems more than enough
3801     test $ac_count -gt 10 && break
3802   done
3803   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 esac
3805
3806       $ac_path_GREP_found && break 3
3807     done
3808   done
3809   done
3810 IFS=$as_save_IFS
3811   if test -z "$ac_cv_path_GREP"; then
3812     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3813   fi
3814 else
3815   ac_cv_path_GREP=$GREP
3816 fi
3817
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3820 $as_echo "$ac_cv_path_GREP" >&6; }
3821  GREP="$ac_cv_path_GREP"
3822
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3825 $as_echo_n "checking for egrep... " >&6; }
3826 if ${ac_cv_path_EGREP+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3830    then ac_cv_path_EGREP="$GREP -E"
3831    else
3832      if test -z "$EGREP"; then
3833   ac_path_EGREP_found=false
3834   # Loop through the user's path and test for each of PROGNAME-LIST
3835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840     for ac_prog in egrep; do
3841     for ac_exec_ext in '' $ac_executable_extensions; do
3842       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3843       as_fn_executable_p "$ac_path_EGREP" || continue
3844 # Check for GNU ac_path_EGREP and select it if it is found.
3845   # Check for GNU $ac_path_EGREP
3846 case `"$ac_path_EGREP" --version 2>&1` in
3847 *GNU*)
3848   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3849 *)
3850   ac_count=0
3851   $as_echo_n 0123456789 >"conftest.in"
3852   while :
3853   do
3854     cat "conftest.in" "conftest.in" >"conftest.tmp"
3855     mv "conftest.tmp" "conftest.in"
3856     cp "conftest.in" "conftest.nl"
3857     $as_echo 'EGREP' >> "conftest.nl"
3858     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3859     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3860     as_fn_arith $ac_count + 1 && ac_count=$as_val
3861     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3862       # Best one so far, save it but keep looking for a better one
3863       ac_cv_path_EGREP="$ac_path_EGREP"
3864       ac_path_EGREP_max=$ac_count
3865     fi
3866     # 10*(2^10) chars as input seems more than enough
3867     test $ac_count -gt 10 && break
3868   done
3869   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3870 esac
3871
3872       $ac_path_EGREP_found && break 3
3873     done
3874   done
3875   done
3876 IFS=$as_save_IFS
3877   if test -z "$ac_cv_path_EGREP"; then
3878     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3879   fi
3880 else
3881   ac_cv_path_EGREP=$EGREP
3882 fi
3883
3884    fi
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3887 $as_echo "$ac_cv_path_EGREP" >&6; }
3888  EGREP="$ac_cv_path_EGREP"
3889
3890
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3892 $as_echo_n "checking for fgrep... " >&6; }
3893 if ${ac_cv_path_FGREP+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3897    then ac_cv_path_FGREP="$GREP -F"
3898    else
3899      if test -z "$FGREP"; then
3900   ac_path_FGREP_found=false
3901   # Loop through the user's path and test for each of PROGNAME-LIST
3902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_prog in fgrep; do
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3910       as_fn_executable_p "$ac_path_FGREP" || continue
3911 # Check for GNU ac_path_FGREP and select it if it is found.
3912   # Check for GNU $ac_path_FGREP
3913 case `"$ac_path_FGREP" --version 2>&1` in
3914 *GNU*)
3915   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3916 *)
3917   ac_count=0
3918   $as_echo_n 0123456789 >"conftest.in"
3919   while :
3920   do
3921     cat "conftest.in" "conftest.in" >"conftest.tmp"
3922     mv "conftest.tmp" "conftest.in"
3923     cp "conftest.in" "conftest.nl"
3924     $as_echo 'FGREP' >> "conftest.nl"
3925     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927     as_fn_arith $ac_count + 1 && ac_count=$as_val
3928     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3929       # Best one so far, save it but keep looking for a better one
3930       ac_cv_path_FGREP="$ac_path_FGREP"
3931       ac_path_FGREP_max=$ac_count
3932     fi
3933     # 10*(2^10) chars as input seems more than enough
3934     test $ac_count -gt 10 && break
3935   done
3936   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937 esac
3938
3939       $ac_path_FGREP_found && break 3
3940     done
3941   done
3942   done
3943 IFS=$as_save_IFS
3944   if test -z "$ac_cv_path_FGREP"; then
3945     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3946   fi
3947 else
3948   ac_cv_path_FGREP=$FGREP
3949 fi
3950
3951    fi
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3954 $as_echo "$ac_cv_path_FGREP" >&6; }
3955  FGREP="$ac_cv_path_FGREP"
3956
3957
3958 test -z "$GREP" && GREP=grep
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978 # Check whether --with-gnu-ld was given.
3979 if test "${with_gnu_ld+set}" = set; then :
3980   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3981 else
3982   with_gnu_ld=no
3983 fi
3984
3985 ac_prog=ld
3986 if test "$GCC" = yes; then
3987   # Check if gcc -print-prog-name=ld gives a path.
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3989 $as_echo_n "checking for ld used by $CC... " >&6; }
3990   case $host in
3991   *-*-mingw*)
3992     # gcc leaves a trailing carriage return which upsets mingw
3993     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3994   *)
3995     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3996   esac
3997   case $ac_prog in
3998     # Accept absolute paths.
3999     [\\/]* | ?:[\\/]*)
4000       re_direlt='/[^/][^/]*/\.\./'
4001       # Canonicalize the pathname of ld
4002       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4003       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4004         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4005       done
4006       test -z "$LD" && LD="$ac_prog"
4007       ;;
4008   "")
4009     # If it fails, then pretend we aren't using GCC.
4010     ac_prog=ld
4011     ;;
4012   *)
4013     # If it is relative, then search for the first ld in PATH.
4014     with_gnu_ld=unknown
4015     ;;
4016   esac
4017 elif test "$with_gnu_ld" = yes; then
4018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4019 $as_echo_n "checking for GNU ld... " >&6; }
4020 else
4021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4022 $as_echo_n "checking for non-GNU ld... " >&6; }
4023 fi
4024 if ${lt_cv_path_LD+:} false; then :
4025   $as_echo_n "(cached) " >&6
4026 else
4027   if test -z "$LD"; then
4028   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4029   for ac_dir in $PATH; do
4030     IFS="$lt_save_ifs"
4031     test -z "$ac_dir" && ac_dir=.
4032     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4033       lt_cv_path_LD="$ac_dir/$ac_prog"
4034       # Check to see if the program is GNU ld.  I'd rather use --version,
4035       # but apparently some variants of GNU ld only accept -v.
4036       # Break only if it was the GNU/non-GNU ld that we prefer.
4037       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4038       *GNU* | *'with BFD'*)
4039         test "$with_gnu_ld" != no && break
4040         ;;
4041       *)
4042         test "$with_gnu_ld" != yes && break
4043         ;;
4044       esac
4045     fi
4046   done
4047   IFS="$lt_save_ifs"
4048 else
4049   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4050 fi
4051 fi
4052
4053 LD="$lt_cv_path_LD"
4054 if test -n "$LD"; then
4055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4056 $as_echo "$LD" >&6; }
4057 else
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4063 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4064 if ${lt_cv_prog_gnu_ld+:} false; then :
4065   $as_echo_n "(cached) " >&6
4066 else
4067   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4068 case `$LD -v 2>&1 </dev/null` in
4069 *GNU* | *'with BFD'*)
4070   lt_cv_prog_gnu_ld=yes
4071   ;;
4072 *)
4073   lt_cv_prog_gnu_ld=no
4074   ;;
4075 esac
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4078 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4079 with_gnu_ld=$lt_cv_prog_gnu_ld
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4090 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4091 if ${lt_cv_path_NM+:} false; then :
4092   $as_echo_n "(cached) " >&6
4093 else
4094   if test -n "$NM"; then
4095   # Let the user override the test.
4096   lt_cv_path_NM="$NM"
4097 else
4098   lt_nm_to_check="${ac_tool_prefix}nm"
4099   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4100     lt_nm_to_check="$lt_nm_to_check nm"
4101   fi
4102   for lt_tmp_nm in $lt_nm_to_check; do
4103     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4104     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4105       IFS="$lt_save_ifs"
4106       test -z "$ac_dir" && ac_dir=.
4107       tmp_nm="$ac_dir/$lt_tmp_nm"
4108       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4109         # Check to see if the nm accepts a BSD-compat flag.
4110         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4111         #   nm: unknown option "B" ignored
4112         # Tru64's nm complains that /dev/null is an invalid object file
4113         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4114         */dev/null* | *'Invalid file or object type'*)
4115           lt_cv_path_NM="$tmp_nm -B"
4116           break
4117           ;;
4118         *)
4119           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4120           */dev/null*)
4121             lt_cv_path_NM="$tmp_nm -p"
4122             break
4123             ;;
4124           *)
4125             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4126             continue # so that we can try to find one that supports BSD flags
4127             ;;
4128           esac
4129           ;;
4130         esac
4131       fi
4132     done
4133     IFS="$lt_save_ifs"
4134   done
4135   : ${lt_cv_path_NM=no}
4136 fi
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4139 $as_echo "$lt_cv_path_NM" >&6; }
4140 if test "$lt_cv_path_NM" != "no"; then
4141   NM="$lt_cv_path_NM"
4142 else
4143   # Didn't find any BSD compatible name lister, look for dumpbin.
4144   if test -n "$DUMPBIN"; then :
4145     # Let the user override the test.
4146   else
4147     if test -n "$ac_tool_prefix"; then
4148   for ac_prog in dumpbin "link -dump"
4149   do
4150     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if ${ac_cv_prog_DUMPBIN+:} false; then :
4155   $as_echo_n "(cached) " >&6
4156 else
4157   if test -n "$DUMPBIN"; then
4158   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165     for ac_exec_ext in '' $ac_executable_extensions; do
4166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169     break 2
4170   fi
4171 done
4172   done
4173 IFS=$as_save_IFS
4174
4175 fi
4176 fi
4177 DUMPBIN=$ac_cv_prog_DUMPBIN
4178 if test -n "$DUMPBIN"; then
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4180 $as_echo "$DUMPBIN" >&6; }
4181 else
4182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 fi
4185
4186
4187     test -n "$DUMPBIN" && break
4188   done
4189 fi
4190 if test -z "$DUMPBIN"; then
4191   ac_ct_DUMPBIN=$DUMPBIN
4192   for ac_prog in dumpbin "link -dump"
4193 do
4194   # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   if test -n "$ac_ct_DUMPBIN"; then
4202   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207   IFS=$as_save_IFS
4208   test -z "$as_dir" && as_dir=.
4209     for ac_exec_ext in '' $ac_executable_extensions; do
4210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213     break 2
4214   fi
4215 done
4216   done
4217 IFS=$as_save_IFS
4218
4219 fi
4220 fi
4221 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4222 if test -n "$ac_ct_DUMPBIN"; then
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4224 $as_echo "$ac_ct_DUMPBIN" >&6; }
4225 else
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228 fi
4229
4230
4231   test -n "$ac_ct_DUMPBIN" && break
4232 done
4233
4234   if test "x$ac_ct_DUMPBIN" = x; then
4235     DUMPBIN=":"
4236   else
4237     case $cross_compiling:$ac_tool_warned in
4238 yes:)
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4241 ac_tool_warned=yes ;;
4242 esac
4243     DUMPBIN=$ac_ct_DUMPBIN
4244   fi
4245 fi
4246
4247     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4248     *COFF*)
4249       DUMPBIN="$DUMPBIN -symbols"
4250       ;;
4251     *)
4252       DUMPBIN=:
4253       ;;
4254     esac
4255   fi
4256
4257   if test "$DUMPBIN" != ":"; then
4258     NM="$DUMPBIN"
4259   fi
4260 fi
4261 test -z "$NM" && NM=nm
4262
4263
4264
4265
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4269 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4270 if ${lt_cv_nm_interface+:} false; then :
4271   $as_echo_n "(cached) " >&6
4272 else
4273   lt_cv_nm_interface="BSD nm"
4274   echo "int some_variable = 0;" > conftest.$ac_ext
4275   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4276   (eval "$ac_compile" 2>conftest.err)
4277   cat conftest.err >&5
4278   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4279   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4280   cat conftest.err >&5
4281   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4282   cat conftest.out >&5
4283   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4284     lt_cv_nm_interface="MS dumpbin"
4285   fi
4286   rm -f conftest*
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4289 $as_echo "$lt_cv_nm_interface" >&6; }
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4292 $as_echo_n "checking whether ln -s works... " >&6; }
4293 LN_S=$as_ln_s
4294 if test "$LN_S" = "ln -s"; then
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4296 $as_echo "yes" >&6; }
4297 else
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4299 $as_echo "no, using $LN_S" >&6; }
4300 fi
4301
4302 # find the maximum length of command line arguments
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4304 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4305 if ${lt_cv_sys_max_cmd_len+:} false; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308     i=0
4309   teststring="ABCD"
4310
4311   case $build_os in
4312   msdosdjgpp*)
4313     # On DJGPP, this test can blow up pretty badly due to problems in libc
4314     # (any single argument exceeding 2000 bytes causes a buffer overrun
4315     # during glob expansion).  Even if it were fixed, the result of this
4316     # check would be larger than it should be.
4317     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4318     ;;
4319
4320   gnu*)
4321     # Under GNU Hurd, this test is not required because there is
4322     # no limit to the length of command line arguments.
4323     # Libtool will interpret -1 as no limit whatsoever
4324     lt_cv_sys_max_cmd_len=-1;
4325     ;;
4326
4327   cygwin* | mingw* | cegcc*)
4328     # On Win9x/ME, this test blows up -- it succeeds, but takes
4329     # about 5 minutes as the teststring grows exponentially.
4330     # Worse, since 9x/ME are not pre-emptively multitasking,
4331     # you end up with a "frozen" computer, even though with patience
4332     # the test eventually succeeds (with a max line length of 256k).
4333     # Instead, let's just punt: use the minimum linelength reported by
4334     # all of the supported platforms: 8192 (on NT/2K/XP).
4335     lt_cv_sys_max_cmd_len=8192;
4336     ;;
4337
4338   mint*)
4339     # On MiNT this can take a long time and run out of memory.
4340     lt_cv_sys_max_cmd_len=8192;
4341     ;;
4342
4343   amigaos*)
4344     # On AmigaOS with pdksh, this test takes hours, literally.
4345     # So we just punt and use a minimum line length of 8192.
4346     lt_cv_sys_max_cmd_len=8192;
4347     ;;
4348
4349   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4350     # This has been around since 386BSD, at least.  Likely further.
4351     if test -x /sbin/sysctl; then
4352       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4353     elif test -x /usr/sbin/sysctl; then
4354       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4355     else
4356       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4357     fi
4358     # And add a safety zone
4359     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4360     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4361     ;;
4362
4363   interix*)
4364     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4365     lt_cv_sys_max_cmd_len=196608
4366     ;;
4367
4368   os2*)
4369     # The test takes a long time on OS/2.
4370     lt_cv_sys_max_cmd_len=8192
4371     ;;
4372
4373   osf*)
4374     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4375     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4376     # nice to cause kernel panics so lets avoid the loop below.
4377     # First set a reasonable default.
4378     lt_cv_sys_max_cmd_len=16384
4379     #
4380     if test -x /sbin/sysconfig; then
4381       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4382         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4383       esac
4384     fi
4385     ;;
4386   sco3.2v5*)
4387     lt_cv_sys_max_cmd_len=102400
4388     ;;
4389   sysv5* | sco5v6* | sysv4.2uw2*)
4390     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4391     if test -n "$kargmax"; then
4392       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4393     else
4394       lt_cv_sys_max_cmd_len=32768
4395     fi
4396     ;;
4397   *)
4398     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4399     if test -n "$lt_cv_sys_max_cmd_len"; then
4400       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4401       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4402     else
4403       # Make teststring a little bigger before we do anything with it.
4404       # a 1K string should be a reasonable start.
4405       for i in 1 2 3 4 5 6 7 8 ; do
4406         teststring=$teststring$teststring
4407       done
4408       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4409       # If test is not a shell built-in, we'll probably end up computing a
4410       # maximum length that is only half of the actual maximum length, but
4411       # we can't tell.
4412       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4413                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4414               test $i != 17 # 1/2 MB should be enough
4415       do
4416         i=`expr $i + 1`
4417         teststring=$teststring$teststring
4418       done
4419       # Only check the string length outside the loop.
4420       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4421       teststring=
4422       # Add a significant safety factor because C++ compilers can tack on
4423       # massive amounts of additional arguments before passing them to the
4424       # linker.  It appears as though 1/2 is a usable value.
4425       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4426     fi
4427     ;;
4428   esac
4429
4430 fi
4431
4432 if test -n $lt_cv_sys_max_cmd_len ; then
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4434 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4435 else
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4437 $as_echo "none" >&6; }
4438 fi
4439 max_cmd_len=$lt_cv_sys_max_cmd_len
4440
4441
4442
4443
4444
4445
4446 : ${CP="cp -f"}
4447 : ${MV="mv -f"}
4448 : ${RM="rm -f"}
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4451 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4452 # Try some XSI features
4453 xsi_shell=no
4454 ( _lt_dummy="a/b/c"
4455   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4456       = c,a/b,b/c, \
4457     && eval 'test $(( 1 + 1 )) -eq 2 \
4458     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4459   && xsi_shell=yes
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4461 $as_echo "$xsi_shell" >&6; }
4462
4463
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4465 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4466 lt_shell_append=no
4467 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4468     >/dev/null 2>&1 \
4469   && lt_shell_append=yes
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4471 $as_echo "$lt_shell_append" >&6; }
4472
4473
4474 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4475   lt_unset=unset
4476 else
4477   lt_unset=false
4478 fi
4479
4480
4481
4482
4483
4484 # test EBCDIC or ASCII
4485 case `echo X|tr X '\101'` in
4486  A) # ASCII based system
4487     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4488   lt_SP2NL='tr \040 \012'
4489   lt_NL2SP='tr \015\012 \040\040'
4490   ;;
4491  *) # EBCDIC based system
4492   lt_SP2NL='tr \100 \n'
4493   lt_NL2SP='tr \r\n \100\100'
4494   ;;
4495 esac
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4506 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4507 if ${lt_cv_to_host_file_cmd+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   case $host in
4511   *-*-mingw* )
4512     case $build in
4513       *-*-mingw* ) # actually msys
4514         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4515         ;;
4516       *-*-cygwin* )
4517         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4518         ;;
4519       * ) # otherwise, assume *nix
4520         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4521         ;;
4522     esac
4523     ;;
4524   *-*-cygwin* )
4525     case $build in
4526       *-*-mingw* ) # actually msys
4527         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4528         ;;
4529       *-*-cygwin* )
4530         lt_cv_to_host_file_cmd=func_convert_file_noop
4531         ;;
4532       * ) # otherwise, assume *nix
4533         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4534         ;;
4535     esac
4536     ;;
4537   * ) # unhandled hosts (and "normal" native builds)
4538     lt_cv_to_host_file_cmd=func_convert_file_noop
4539     ;;
4540 esac
4541
4542 fi
4543
4544 to_host_file_cmd=$lt_cv_to_host_file_cmd
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4546 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4547
4548
4549
4550
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4553 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4554 if ${lt_cv_to_tool_file_cmd+:} false; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   #assume ordinary cross tools, or native build.
4558 lt_cv_to_tool_file_cmd=func_convert_file_noop
4559 case $host in
4560   *-*-mingw* )
4561     case $build in
4562       *-*-mingw* ) # actually msys
4563         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4564         ;;
4565     esac
4566     ;;
4567 esac
4568
4569 fi
4570
4571 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4573 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4574
4575
4576
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4580 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4581 if ${lt_cv_ld_reload_flag+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   lt_cv_ld_reload_flag='-r'
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4587 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4588 reload_flag=$lt_cv_ld_reload_flag
4589 case $reload_flag in
4590 "" | " "*) ;;
4591 *) reload_flag=" $reload_flag" ;;
4592 esac
4593 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4594 case $host_os in
4595   cygwin* | mingw* | pw32* | cegcc*)
4596     if test "$GCC" != yes; then
4597       reload_cmds=false
4598     fi
4599     ;;
4600   darwin*)
4601     if test "$GCC" = yes; then
4602       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4603     else
4604       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4605     fi
4606     ;;
4607 esac
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617 if test -n "$ac_tool_prefix"; then
4618   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_prog_OBJDUMP+:} false; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   if test -n "$OBJDUMP"; then
4626   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633     for ac_exec_ext in '' $ac_executable_extensions; do
4634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640   done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 OBJDUMP=$ac_cv_prog_OBJDUMP
4646 if test -n "$OBJDUMP"; then
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4648 $as_echo "$OBJDUMP" >&6; }
4649 else
4650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 fi
4656 if test -z "$ac_cv_prog_OBJDUMP"; then
4657   ac_ct_OBJDUMP=$OBJDUMP
4658   # Extract the first word of "objdump", so it can be a program name with args.
4659 set dummy objdump; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665   if test -n "$ac_ct_OBJDUMP"; then
4666   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673     for ac_exec_ext in '' $ac_executable_extensions; do
4674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4675     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680   done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4686 if test -n "$ac_ct_OBJDUMP"; then
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4688 $as_echo "$ac_ct_OBJDUMP" >&6; }
4689 else
4690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4693
4694   if test "x$ac_ct_OBJDUMP" = x; then
4695     OBJDUMP="false"
4696   else
4697     case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703     OBJDUMP=$ac_ct_OBJDUMP
4704   fi
4705 else
4706   OBJDUMP="$ac_cv_prog_OBJDUMP"
4707 fi
4708
4709 test -z "$OBJDUMP" && OBJDUMP=objdump
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4720 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4721 if ${lt_cv_deplibs_check_method+:} false; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724   lt_cv_file_magic_cmd='$MAGIC_CMD'
4725 lt_cv_file_magic_test_file=
4726 lt_cv_deplibs_check_method='unknown'
4727 # Need to set the preceding variable on all platforms that support
4728 # interlibrary dependencies.
4729 # 'none' -- dependencies not supported.
4730 # `unknown' -- same as none, but documents that we really don't know.
4731 # 'pass_all' -- all dependencies passed with no checks.
4732 # 'test_compile' -- check by making test program.
4733 # 'file_magic [[regex]]' -- check by looking for files in library path
4734 # which responds to the $file_magic_cmd with a given extended regex.
4735 # If you have `file' or equivalent on your system and you're not sure
4736 # whether `pass_all' will *always* work, you probably want this one.
4737
4738 case $host_os in
4739 aix[4-9]*)
4740   lt_cv_deplibs_check_method=pass_all
4741   ;;
4742
4743 beos*)
4744   lt_cv_deplibs_check_method=pass_all
4745   ;;
4746
4747 bsdi[45]*)
4748   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4749   lt_cv_file_magic_cmd='/usr/bin/file -L'
4750   lt_cv_file_magic_test_file=/shlib/libc.so
4751   ;;
4752
4753 cygwin*)
4754   # func_win32_libid is a shell function defined in ltmain.sh
4755   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4756   lt_cv_file_magic_cmd='func_win32_libid'
4757   ;;
4758
4759 mingw* | pw32*)
4760   # Base MSYS/MinGW do not provide the 'file' command needed by
4761   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4762   # unless we find 'file', for example because we are cross-compiling.
4763   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4764   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4765     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4766     lt_cv_file_magic_cmd='func_win32_libid'
4767   else
4768     # Keep this pattern in sync with the one in func_win32_libid.
4769     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4770     lt_cv_file_magic_cmd='$OBJDUMP -f'
4771   fi
4772   ;;
4773
4774 cegcc*)
4775   # use the weaker test based on 'objdump'. See mingw*.
4776   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4777   lt_cv_file_magic_cmd='$OBJDUMP -f'
4778   ;;
4779
4780 darwin* | rhapsody*)
4781   lt_cv_deplibs_check_method=pass_all
4782   ;;
4783
4784 freebsd* | dragonfly*)
4785   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4786     case $host_cpu in
4787     i*86 )
4788       # Not sure whether the presence of OpenBSD here was a mistake.
4789       # Let's accept both of them until this is cleared up.
4790       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4791       lt_cv_file_magic_cmd=/usr/bin/file
4792       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4793       ;;
4794     esac
4795   else
4796     lt_cv_deplibs_check_method=pass_all
4797   fi
4798   ;;
4799
4800 gnu*)
4801   lt_cv_deplibs_check_method=pass_all
4802   ;;
4803
4804 haiku*)
4805   lt_cv_deplibs_check_method=pass_all
4806   ;;
4807
4808 hpux10.20* | hpux11*)
4809   lt_cv_file_magic_cmd=/usr/bin/file
4810   case $host_cpu in
4811   ia64*)
4812     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4813     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4814     ;;
4815   hppa*64*)
4816     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4817     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4818     ;;
4819   *)
4820     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4821     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4822     ;;
4823   esac
4824   ;;
4825
4826 interix[3-9]*)
4827   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4828   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4829   ;;
4830
4831 irix5* | irix6* | nonstopux*)
4832   case $LD in
4833   *-32|*"-32 ") libmagic=32-bit;;
4834   *-n32|*"-n32 ") libmagic=N32;;
4835   *-64|*"-64 ") libmagic=64-bit;;
4836   *) libmagic=never-match;;
4837   esac
4838   lt_cv_deplibs_check_method=pass_all
4839   ;;
4840
4841 # This must be glibc/ELF.
4842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4843   lt_cv_deplibs_check_method=pass_all
4844   ;;
4845
4846 netbsd*)
4847   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4848     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4849   else
4850     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4851   fi
4852   ;;
4853
4854 newos6*)
4855   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4856   lt_cv_file_magic_cmd=/usr/bin/file
4857   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4858   ;;
4859
4860 *nto* | *qnx*)
4861   lt_cv_deplibs_check_method=pass_all
4862   ;;
4863
4864 openbsd*)
4865   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4866     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4867   else
4868     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4869   fi
4870   ;;
4871
4872 osf3* | osf4* | osf5*)
4873   lt_cv_deplibs_check_method=pass_all
4874   ;;
4875
4876 rdos*)
4877   lt_cv_deplibs_check_method=pass_all
4878   ;;
4879
4880 solaris*)
4881   lt_cv_deplibs_check_method=pass_all
4882   ;;
4883
4884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4885   lt_cv_deplibs_check_method=pass_all
4886   ;;
4887
4888 sysv4 | sysv4.3*)
4889   case $host_vendor in
4890   motorola)
4891     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]'
4892     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4893     ;;
4894   ncr)
4895     lt_cv_deplibs_check_method=pass_all
4896     ;;
4897   sequent)
4898     lt_cv_file_magic_cmd='/bin/file'
4899     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4900     ;;
4901   sni)
4902     lt_cv_file_magic_cmd='/bin/file'
4903     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4904     lt_cv_file_magic_test_file=/lib/libc.so
4905     ;;
4906   siemens)
4907     lt_cv_deplibs_check_method=pass_all
4908     ;;
4909   pc)
4910     lt_cv_deplibs_check_method=pass_all
4911     ;;
4912   esac
4913   ;;
4914
4915 tpf*)
4916   lt_cv_deplibs_check_method=pass_all
4917   ;;
4918 esac
4919
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4922 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4923
4924 file_magic_glob=
4925 want_nocaseglob=no
4926 if test "$build" = "$host"; then
4927   case $host_os in
4928   mingw* | pw32*)
4929     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4930       want_nocaseglob=yes
4931     else
4932       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4933     fi
4934     ;;
4935   esac
4936 fi
4937
4938 file_magic_cmd=$lt_cv_file_magic_cmd
4939 deplibs_check_method=$lt_cv_deplibs_check_method
4940 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 if test -n "$ac_tool_prefix"; then
4964   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4965 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_DLLTOOL+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   if test -n "$DLLTOOL"; then
4972   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977   IFS=$as_save_IFS
4978   test -z "$as_dir" && as_dir=.
4979     for ac_exec_ext in '' $ac_executable_extensions; do
4980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986   done
4987 IFS=$as_save_IFS
4988
4989 fi
4990 fi
4991 DLLTOOL=$ac_cv_prog_DLLTOOL
4992 if test -n "$DLLTOOL"; then
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4994 $as_echo "$DLLTOOL" >&6; }
4995 else
4996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000
5001 fi
5002 if test -z "$ac_cv_prog_DLLTOOL"; then
5003   ac_ct_DLLTOOL=$DLLTOOL
5004   # Extract the first word of "dlltool", so it can be a program name with args.
5005 set dummy dlltool; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   if test -n "$ac_ct_DLLTOOL"; then
5012   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019     for ac_exec_ext in '' $ac_executable_extensions; do
5020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026   done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5032 if test -n "$ac_ct_DLLTOOL"; then
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5034 $as_echo "$ac_ct_DLLTOOL" >&6; }
5035 else
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039
5040   if test "x$ac_ct_DLLTOOL" = x; then
5041     DLLTOOL="false"
5042   else
5043     case $cross_compiling:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049     DLLTOOL=$ac_ct_DLLTOOL
5050   fi
5051 else
5052   DLLTOOL="$ac_cv_prog_DLLTOOL"
5053 fi
5054
5055 test -z "$DLLTOOL" && DLLTOOL=dlltool
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5067 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5068 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   lt_cv_sharedlib_from_linklib_cmd='unknown'
5072
5073 case $host_os in
5074 cygwin* | mingw* | pw32* | cegcc*)
5075   # two different shell functions defined in ltmain.sh
5076   # decide which to use based on capabilities of $DLLTOOL
5077   case `$DLLTOOL --help 2>&1` in
5078   *--identify-strict*)
5079     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5080     ;;
5081   *)
5082     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5083     ;;
5084   esac
5085   ;;
5086 *)
5087   # fallback: assume linklib IS sharedlib
5088   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5089   ;;
5090 esac
5091
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5094 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5095 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5096 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5097
5098
5099
5100
5101
5102
5103
5104 if test -n "$ac_tool_prefix"; then
5105   for ac_prog in ar
5106   do
5107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_AR+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   if test -n "$AR"; then
5115   ac_cv_prog_AR="$AR" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120   IFS=$as_save_IFS
5121   test -z "$as_dir" && as_dir=.
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126     break 2
5127   fi
5128 done
5129   done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 AR=$ac_cv_prog_AR
5135 if test -n "$AR"; then
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5137 $as_echo "$AR" >&6; }
5138 else
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144     test -n "$AR" && break
5145   done
5146 fi
5147 if test -z "$AR"; then
5148   ac_ct_AR=$AR
5149   for ac_prog in ar
5150 do
5151   # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5156   $as_echo_n "(cached) " >&6
5157 else
5158   if test -n "$ac_ct_AR"; then
5159   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164   IFS=$as_save_IFS
5165   test -z "$as_dir" && as_dir=.
5166     for ac_exec_ext in '' $ac_executable_extensions; do
5167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168     ac_cv_prog_ac_ct_AR="$ac_prog"
5169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170     break 2
5171   fi
5172 done
5173   done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5179 if test -n "$ac_ct_AR"; then
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5181 $as_echo "$ac_ct_AR" >&6; }
5182 else
5183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188   test -n "$ac_ct_AR" && break
5189 done
5190
5191   if test "x$ac_ct_AR" = x; then
5192     AR="false"
5193   else
5194     case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5199 esac
5200     AR=$ac_ct_AR
5201   fi
5202 fi
5203
5204 : ${AR=ar}
5205 : ${AR_FLAGS=cru}
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5218 $as_echo_n "checking for archiver @FILE support... " >&6; }
5219 if ${lt_cv_ar_at_file+:} false; then :
5220   $as_echo_n "(cached) " >&6
5221 else
5222   lt_cv_ar_at_file=no
5223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h.  */
5225
5226 int
5227 main ()
5228 {
5229
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"; then :
5235   echo conftest.$ac_objext > conftest.lst
5236       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5237       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5238   (eval $lt_ar_try) 2>&5
5239   ac_status=$?
5240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5241   test $ac_status = 0; }
5242       if test "$ac_status" -eq 0; then
5243         # Ensure the archiver fails upon bogus file names.
5244         rm -f conftest.$ac_objext libconftest.a
5245         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5246   (eval $lt_ar_try) 2>&5
5247   ac_status=$?
5248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5249   test $ac_status = 0; }
5250         if test "$ac_status" -ne 0; then
5251           lt_cv_ar_at_file=@
5252         fi
5253       fi
5254       rm -f conftest.* libconftest.a
5255
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5261 $as_echo "$lt_cv_ar_at_file" >&6; }
5262
5263 if test "x$lt_cv_ar_at_file" = xno; then
5264   archiver_list_spec=
5265 else
5266   archiver_list_spec=$lt_cv_ar_at_file
5267 fi
5268
5269
5270
5271
5272
5273
5274
5275 if test -n "$ac_tool_prefix"; then
5276   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5277 set dummy ${ac_tool_prefix}strip; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_STRIP+:} false; then :
5281   $as_echo_n "(cached) " >&6
5282 else
5283   if test -n "$STRIP"; then
5284   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289   IFS=$as_save_IFS
5290   test -z "$as_dir" && as_dir=.
5291     for ac_exec_ext in '' $ac_executable_extensions; do
5292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295     break 2
5296   fi
5297 done
5298   done
5299 IFS=$as_save_IFS
5300
5301 fi
5302 fi
5303 STRIP=$ac_cv_prog_STRIP
5304 if test -n "$STRIP"; then
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5306 $as_echo "$STRIP" >&6; }
5307 else
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310 fi
5311
5312
5313 fi
5314 if test -z "$ac_cv_prog_STRIP"; then
5315   ac_ct_STRIP=$STRIP
5316   # Extract the first word of "strip", so it can be a program name with args.
5317 set dummy strip; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   if test -n "$ac_ct_STRIP"; then
5324   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331     for ac_exec_ext in '' $ac_executable_extensions; do
5332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333     ac_cv_prog_ac_ct_STRIP="strip"
5334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335     break 2
5336   fi
5337 done
5338   done
5339 IFS=$as_save_IFS
5340
5341 fi
5342 fi
5343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5344 if test -n "$ac_ct_STRIP"; then
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5346 $as_echo "$ac_ct_STRIP" >&6; }
5347 else
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352   if test "x$ac_ct_STRIP" = x; then
5353     STRIP=":"
5354   else
5355     case $cross_compiling:$ac_tool_warned in
5356 yes:)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5359 ac_tool_warned=yes ;;
5360 esac
5361     STRIP=$ac_ct_STRIP
5362   fi
5363 else
5364   STRIP="$ac_cv_prog_STRIP"
5365 fi
5366
5367 test -z "$STRIP" && STRIP=:
5368
5369
5370
5371
5372
5373
5374 if test -n "$ac_tool_prefix"; then
5375   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_RANLIB+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   if test -n "$RANLIB"; then
5383   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397   done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 RANLIB=$ac_cv_prog_RANLIB
5403 if test -n "$RANLIB"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5405 $as_echo "$RANLIB" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412 fi
5413 if test -z "$ac_cv_prog_RANLIB"; then
5414   ac_ct_RANLIB=$RANLIB
5415   # Extract the first word of "ranlib", so it can be a program name with args.
5416 set dummy ranlib; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   if test -n "$ac_ct_RANLIB"; then
5423   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428   IFS=$as_save_IFS
5429   test -z "$as_dir" && as_dir=.
5430     for ac_exec_ext in '' $ac_executable_extensions; do
5431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432     ac_cv_prog_ac_ct_RANLIB="ranlib"
5433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434     break 2
5435   fi
5436 done
5437   done
5438 IFS=$as_save_IFS
5439
5440 fi
5441 fi
5442 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5443 if test -n "$ac_ct_RANLIB"; then
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5445 $as_echo "$ac_ct_RANLIB" >&6; }
5446 else
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5449 fi
5450
5451   if test "x$ac_ct_RANLIB" = x; then
5452     RANLIB=":"
5453   else
5454     case $cross_compiling:$ac_tool_warned in
5455 yes:)
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5458 ac_tool_warned=yes ;;
5459 esac
5460     RANLIB=$ac_ct_RANLIB
5461   fi
5462 else
5463   RANLIB="$ac_cv_prog_RANLIB"
5464 fi
5465
5466 test -z "$RANLIB" && RANLIB=:
5467
5468
5469
5470
5471
5472
5473 # Determine commands to create old-style static archives.
5474 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5475 old_postinstall_cmds='chmod 644 $oldlib'
5476 old_postuninstall_cmds=
5477
5478 if test -n "$RANLIB"; then
5479   case $host_os in
5480   openbsd*)
5481     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5482     ;;
5483   *)
5484     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5485     ;;
5486   esac
5487   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5488 fi
5489
5490 case $host_os in
5491   darwin*)
5492     lock_old_archive_extraction=yes ;;
5493   *)
5494     lock_old_archive_extraction=no ;;
5495 esac
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517 for ac_prog in gawk mawk nawk awk
5518 do
5519   # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_AWK+:} false; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   if test -n "$AWK"; then
5527   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536     ac_cv_prog_AWK="$ac_prog"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 AWK=$ac_cv_prog_AWK
5547 if test -n "$AWK"; then
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5549 $as_echo "$AWK" >&6; }
5550 else
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556   test -n "$AWK" && break
5557 done
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577 # If no C compiler was specified, use CC.
5578 LTCC=${LTCC-"$CC"}
5579
5580 # If no C compiler flags were specified, use CFLAGS.
5581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5582
5583 # Allow CC to be a program name with arguments.
5584 compiler=$CC
5585
5586
5587 # Check for command to grab the raw symbol name followed by C symbol from nm.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5589 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5590 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5591   $as_echo_n "(cached) " >&6
5592 else
5593
5594 # These are sane defaults that work on at least a few old systems.
5595 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5596
5597 # Character class describing NM global symbol codes.
5598 symcode='[BCDEGRST]'
5599
5600 # Regexp to match symbols that can be accessed directly from C.
5601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5602
5603 # Define system-specific variables.
5604 case $host_os in
5605 aix*)
5606   symcode='[BCDT]'
5607   ;;
5608 cygwin* | mingw* | pw32* | cegcc*)
5609   symcode='[ABCDGISTW]'
5610   ;;
5611 hpux*)
5612   if test "$host_cpu" = ia64; then
5613     symcode='[ABCDEGRST]'
5614   fi
5615   ;;
5616 irix* | nonstopux*)
5617   symcode='[BCDEGRST]'
5618   ;;
5619 osf*)
5620   symcode='[BCDEGQRST]'
5621   ;;
5622 solaris*)
5623   symcode='[BDRT]'
5624   ;;
5625 sco3.2v5*)
5626   symcode='[DT]'
5627   ;;
5628 sysv4.2uw2*)
5629   symcode='[DT]'
5630   ;;
5631 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5632   symcode='[ABDT]'
5633   ;;
5634 sysv4)
5635   symcode='[DFNSTU]'
5636   ;;
5637 esac
5638
5639 # If we're using GNU nm, then use its standard symbol codes.
5640 case `$NM -V 2>&1` in
5641 *GNU* | *'with BFD'*)
5642   symcode='[ABCDGIRSTW]' ;;
5643 esac
5644
5645 # Transform an extracted symbol line into a proper C declaration.
5646 # Some systems (esp. on ia64) link data and code symbols differently,
5647 # so use this general approach.
5648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5649
5650 # Transform an extracted symbol line into symbol name and symbol address
5651 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5652 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'"
5653
5654 # Handle CRLF in mingw tool chain
5655 opt_cr=
5656 case $build_os in
5657 mingw*)
5658   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5659   ;;
5660 esac
5661
5662 # Try without a prefix underscore, then with it.
5663 for ac_symprfx in "" "_"; do
5664
5665   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5666   symxfrm="\\1 $ac_symprfx\\2 \\2"
5667
5668   # Write the raw and C identifiers.
5669   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5670     # Fake it for dumpbin and say T for any non-static function
5671     # and D for any global variable.
5672     # Also find C++ and __fastcall symbols from MSVC++,
5673     # which start with @ or ?.
5674     lt_cv_sys_global_symbol_pipe="$AWK '"\
5675 "     {last_section=section; section=\$ 3};"\
5676 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5677 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5678 "     \$ 0!~/External *\|/{next};"\
5679 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5680 "     {if(hide[section]) next};"\
5681 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5682 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5683 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5684 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5685 "     ' prfx=^$ac_symprfx"
5686   else
5687     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5688   fi
5689   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5690
5691   # Check to see that the pipe works correctly.
5692   pipe_works=no
5693
5694   rm -f conftest*
5695   cat > conftest.$ac_ext <<_LT_EOF
5696 #ifdef __cplusplus
5697 extern "C" {
5698 #endif
5699 char nm_test_var;
5700 void nm_test_func(void);
5701 void nm_test_func(void){}
5702 #ifdef __cplusplus
5703 }
5704 #endif
5705 int main(){nm_test_var='a';nm_test_func();return(0);}
5706 _LT_EOF
5707
5708   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709   (eval $ac_compile) 2>&5
5710   ac_status=$?
5711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712   test $ac_status = 0; }; then
5713     # Now try to grab the symbols.
5714     nlist=conftest.nm
5715     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5716   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5717   ac_status=$?
5718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719   test $ac_status = 0; } && test -s "$nlist"; then
5720       # Try sorting and uniquifying the output.
5721       if sort "$nlist" | uniq > "$nlist"T; then
5722         mv -f "$nlist"T "$nlist"
5723       else
5724         rm -f "$nlist"T
5725       fi
5726
5727       # Make sure that we snagged all the symbols we need.
5728       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5729         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5730           cat <<_LT_EOF > conftest.$ac_ext
5731 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5732 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5733 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5734    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5735 # define LT_DLSYM_CONST
5736 #elif defined(__osf__)
5737 /* This system does not cope well with relocations in const data.  */
5738 # define LT_DLSYM_CONST
5739 #else
5740 # define LT_DLSYM_CONST const
5741 #endif
5742
5743 #ifdef __cplusplus
5744 extern "C" {
5745 #endif
5746
5747 _LT_EOF
5748           # Now generate the symbol file.
5749           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5750
5751           cat <<_LT_EOF >> conftest.$ac_ext
5752
5753 /* The mapping between symbol names and symbols.  */
5754 LT_DLSYM_CONST struct {
5755   const char *name;
5756   void       *address;
5757 }
5758 lt__PROGRAM__LTX_preloaded_symbols[] =
5759 {
5760   { "@PROGRAM@", (void *) 0 },
5761 _LT_EOF
5762           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5763           cat <<\_LT_EOF >> conftest.$ac_ext
5764   {0, (void *) 0}
5765 };
5766
5767 /* This works around a problem in FreeBSD linker */
5768 #ifdef FREEBSD_WORKAROUND
5769 static const void *lt_preloaded_setup() {
5770   return lt__PROGRAM__LTX_preloaded_symbols;
5771 }
5772 #endif
5773
5774 #ifdef __cplusplus
5775 }
5776 #endif
5777 _LT_EOF
5778           # Now try linking the two files.
5779           mv conftest.$ac_objext conftstm.$ac_objext
5780           lt_globsym_save_LIBS=$LIBS
5781           lt_globsym_save_CFLAGS=$CFLAGS
5782           LIBS="conftstm.$ac_objext"
5783           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5784           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5785   (eval $ac_link) 2>&5
5786   ac_status=$?
5787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5788   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5789             pipe_works=yes
5790           fi
5791           LIBS=$lt_globsym_save_LIBS
5792           CFLAGS=$lt_globsym_save_CFLAGS
5793         else
5794           echo "cannot find nm_test_func in $nlist" >&5
5795         fi
5796       else
5797         echo "cannot find nm_test_var in $nlist" >&5
5798       fi
5799     else
5800       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5801     fi
5802   else
5803     echo "$progname: failed program was:" >&5
5804     cat conftest.$ac_ext >&5
5805   fi
5806   rm -rf conftest* conftst*
5807
5808   # Do not use the global_symbol_pipe unless it works.
5809   if test "$pipe_works" = yes; then
5810     break
5811   else
5812     lt_cv_sys_global_symbol_pipe=
5813   fi
5814 done
5815
5816 fi
5817
5818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5819   lt_cv_sys_global_symbol_to_cdecl=
5820 fi
5821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5823 $as_echo "failed" >&6; }
5824 else
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5826 $as_echo "ok" >&6; }
5827 fi
5828
5829 # Response file support.
5830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5831   nm_file_list_spec='@'
5832 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5833   nm_file_list_spec='@'
5834 fi
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5863 $as_echo_n "checking for sysroot... " >&6; }
5864
5865 # Check whether --with-sysroot was given.
5866 if test "${with_sysroot+set}" = set; then :
5867   withval=$with_sysroot;
5868 else
5869   with_sysroot=no
5870 fi
5871
5872
5873 lt_sysroot=
5874 case ${with_sysroot} in #(
5875  yes)
5876    if test "$GCC" = yes; then
5877      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5878    fi
5879    ;; #(
5880  /*)
5881    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5882    ;; #(
5883  no|'')
5884    ;; #(
5885  *)
5886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5887 $as_echo "${with_sysroot}" >&6; }
5888    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5889    ;;
5890 esac
5891
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5893 $as_echo "${lt_sysroot:-no}" >&6; }
5894
5895
5896
5897
5898
5899 # Check whether --enable-libtool-lock was given.
5900 if test "${enable_libtool_lock+set}" = set; then :
5901   enableval=$enable_libtool_lock;
5902 fi
5903
5904 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5905
5906 # Some flags need to be propagated to the compiler or linker for good
5907 # libtool support.
5908 case $host in
5909 ia64-*-hpux*)
5910   # Find out which ABI we are using.
5911   echo 'int i;' > conftest.$ac_ext
5912   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5913   (eval $ac_compile) 2>&5
5914   ac_status=$?
5915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916   test $ac_status = 0; }; then
5917     case `/usr/bin/file conftest.$ac_objext` in
5918       *ELF-32*)
5919         HPUX_IA64_MODE="32"
5920         ;;
5921       *ELF-64*)
5922         HPUX_IA64_MODE="64"
5923         ;;
5924     esac
5925   fi
5926   rm -rf conftest*
5927   ;;
5928 *-*-irix6*)
5929   # Find out which ABI we are using.
5930   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5931   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5932   (eval $ac_compile) 2>&5
5933   ac_status=$?
5934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935   test $ac_status = 0; }; then
5936     if test "$lt_cv_prog_gnu_ld" = yes; then
5937       case `/usr/bin/file conftest.$ac_objext` in
5938         *32-bit*)
5939           LD="${LD-ld} -melf32bsmip"
5940           ;;
5941         *N32*)
5942           LD="${LD-ld} -melf32bmipn32"
5943           ;;
5944         *64-bit*)
5945           LD="${LD-ld} -melf64bmip"
5946         ;;
5947       esac
5948     else
5949       case `/usr/bin/file conftest.$ac_objext` in
5950         *32-bit*)
5951           LD="${LD-ld} -32"
5952           ;;
5953         *N32*)
5954           LD="${LD-ld} -n32"
5955           ;;
5956         *64-bit*)
5957           LD="${LD-ld} -64"
5958           ;;
5959       esac
5960     fi
5961   fi
5962   rm -rf conftest*
5963   ;;
5964
5965 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5966 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5967   # Find out which ABI we are using.
5968   echo 'int i;' > conftest.$ac_ext
5969   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5970   (eval $ac_compile) 2>&5
5971   ac_status=$?
5972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973   test $ac_status = 0; }; then
5974     case `/usr/bin/file conftest.o` in
5975       *32-bit*)
5976         case $host in
5977           x86_64-*kfreebsd*-gnu)
5978             LD="${LD-ld} -m elf_i386_fbsd"
5979             ;;
5980           x86_64-*linux*)
5981             LD="${LD-ld} -m elf_i386"
5982             ;;
5983           ppc64-*linux*|powerpc64-*linux*)
5984             LD="${LD-ld} -m elf32ppclinux"
5985             ;;
5986           s390x-*linux*)
5987             LD="${LD-ld} -m elf_s390"
5988             ;;
5989           sparc64-*linux*)
5990             LD="${LD-ld} -m elf32_sparc"
5991             ;;
5992         esac
5993         ;;
5994       *64-bit*)
5995         case $host in
5996           x86_64-*kfreebsd*-gnu)
5997             LD="${LD-ld} -m elf_x86_64_fbsd"
5998             ;;
5999           x86_64-*linux*)
6000             LD="${LD-ld} -m elf_x86_64"
6001             ;;
6002           ppc*-*linux*|powerpc*-*linux*)
6003             LD="${LD-ld} -m elf64ppc"
6004             ;;
6005           s390*-*linux*|s390*-*tpf*)
6006             LD="${LD-ld} -m elf64_s390"
6007             ;;
6008           sparc*-*linux*)
6009             LD="${LD-ld} -m elf64_sparc"
6010             ;;
6011         esac
6012         ;;
6013     esac
6014   fi
6015   rm -rf conftest*
6016   ;;
6017
6018 *-*-sco3.2v5*)
6019   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6020   SAVE_CFLAGS="$CFLAGS"
6021   CFLAGS="$CFLAGS -belf"
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6023 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6024 if ${lt_cv_cc_needs_belf+:} false; then :
6025   $as_echo_n "(cached) " >&6
6026 else
6027   ac_ext=c
6028 ac_cpp='$CPP $CPPFLAGS'
6029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032
6033      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h.  */
6035
6036 int
6037 main ()
6038 {
6039
6040   ;
6041   return 0;
6042 }
6043 _ACEOF
6044 if ac_fn_c_try_link "$LINENO"; then :
6045   lt_cv_cc_needs_belf=yes
6046 else
6047   lt_cv_cc_needs_belf=no
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext \
6050     conftest$ac_exeext conftest.$ac_ext
6051      ac_ext=c
6052 ac_cpp='$CPP $CPPFLAGS'
6053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6056
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6059 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6060   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6061     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6062     CFLAGS="$SAVE_CFLAGS"
6063   fi
6064   ;;
6065 *-*solaris*)
6066   # Find out which ABI we are using.
6067   echo 'int i;' > conftest.$ac_ext
6068   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6069   (eval $ac_compile) 2>&5
6070   ac_status=$?
6071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072   test $ac_status = 0; }; then
6073     case `/usr/bin/file conftest.o` in
6074     *64-bit*)
6075       case $lt_cv_prog_gnu_ld in
6076       yes*)
6077         case $host in
6078         i?86-*-solaris*)
6079           LD="${LD-ld} -m elf_x86_64"
6080           ;;
6081         sparc*-*-solaris*)
6082           LD="${LD-ld} -m elf64_sparc"
6083           ;;
6084         esac
6085         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6086         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6087           LD="${LD-ld}_sol2"
6088         fi
6089         ;;
6090       *)
6091         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6092           LD="${LD-ld} -64"
6093         fi
6094         ;;
6095       esac
6096       ;;
6097     esac
6098   fi
6099   rm -rf conftest*
6100   ;;
6101 esac
6102
6103 need_locks="$enable_libtool_lock"
6104
6105 if test -n "$ac_tool_prefix"; then
6106   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}mt; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6111   $as_echo_n "(cached) " >&6
6112 else
6113   if test -n "$MANIFEST_TOOL"; then
6114   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121     for ac_exec_ext in '' $ac_executable_extensions; do
6122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128   done
6129 IFS=$as_save_IFS
6130
6131 fi
6132 fi
6133 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6134 if test -n "$MANIFEST_TOOL"; then
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6136 $as_echo "$MANIFEST_TOOL" >&6; }
6137 else
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139 $as_echo "no" >&6; }
6140 fi
6141
6142
6143 fi
6144 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6145   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6146   # Extract the first word of "mt", so it can be a program name with args.
6147 set dummy mt; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   if test -n "$ac_ct_MANIFEST_TOOL"; then
6154   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161     for ac_exec_ext in '' $ac_executable_extensions; do
6162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168   done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6174 if test -n "$ac_ct_MANIFEST_TOOL"; then
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6176 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6177 else
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181
6182   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6183     MANIFEST_TOOL=":"
6184   else
6185     case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6192   fi
6193 else
6194   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6195 fi
6196
6197 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6199 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6200 if ${lt_cv_path_mainfest_tool+:} false; then :
6201   $as_echo_n "(cached) " >&6
6202 else
6203   lt_cv_path_mainfest_tool=no
6204   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6205   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6206   cat conftest.err >&5
6207   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6208     lt_cv_path_mainfest_tool=yes
6209   fi
6210   rm -f conftest*
6211 fi
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6213 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6214 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6215   MANIFEST_TOOL=:
6216 fi
6217
6218
6219
6220
6221
6222
6223   case $host_os in
6224     rhapsody* | darwin*)
6225     if test -n "$ac_tool_prefix"; then
6226   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6227 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233   if test -n "$DSYMUTIL"; then
6234   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_exec_ext in '' $ac_executable_extensions; do
6242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248   done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6254 if test -n "$DSYMUTIL"; then
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6256 $as_echo "$DSYMUTIL" >&6; }
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262
6263 fi
6264 if test -z "$ac_cv_prog_DSYMUTIL"; then
6265   ac_ct_DSYMUTIL=$DSYMUTIL
6266   # Extract the first word of "dsymutil", so it can be a program name with args.
6267 set dummy dsymutil; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   if test -n "$ac_ct_DSYMUTIL"; then
6274   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279   IFS=$as_save_IFS
6280   test -z "$as_dir" && as_dir=.
6281     for ac_exec_ext in '' $ac_executable_extensions; do
6282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285     break 2
6286   fi
6287 done
6288   done
6289 IFS=$as_save_IFS
6290
6291 fi
6292 fi
6293 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6294 if test -n "$ac_ct_DSYMUTIL"; then
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6296 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6297 else
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300 fi
6301
6302   if test "x$ac_ct_DSYMUTIL" = x; then
6303     DSYMUTIL=":"
6304   else
6305     case $cross_compiling:$ac_tool_warned in
6306 yes:)
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6309 ac_tool_warned=yes ;;
6310 esac
6311     DSYMUTIL=$ac_ct_DSYMUTIL
6312   fi
6313 else
6314   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6315 fi
6316
6317     if test -n "$ac_tool_prefix"; then
6318   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6319 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if ${ac_cv_prog_NMEDIT+:} false; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325   if test -n "$NMEDIT"; then
6326   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333     for ac_exec_ext in '' $ac_executable_extensions; do
6334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340   done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 NMEDIT=$ac_cv_prog_NMEDIT
6346 if test -n "$NMEDIT"; then
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6348 $as_echo "$NMEDIT" >&6; }
6349 else
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354
6355 fi
6356 if test -z "$ac_cv_prog_NMEDIT"; then
6357   ac_ct_NMEDIT=$NMEDIT
6358   # Extract the first word of "nmedit", so it can be a program name with args.
6359 set dummy nmedit; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6363   $as_echo_n "(cached) " >&6
6364 else
6365   if test -n "$ac_ct_NMEDIT"; then
6366   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   test -z "$as_dir" && as_dir=.
6373     for ac_exec_ext in '' $ac_executable_extensions; do
6374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380   done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6386 if test -n "$ac_ct_NMEDIT"; then
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6388 $as_echo "$ac_ct_NMEDIT" >&6; }
6389 else
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394   if test "x$ac_ct_NMEDIT" = x; then
6395     NMEDIT=":"
6396   else
6397     case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403     NMEDIT=$ac_ct_NMEDIT
6404   fi
6405 else
6406   NMEDIT="$ac_cv_prog_NMEDIT"
6407 fi
6408
6409     if test -n "$ac_tool_prefix"; then
6410   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6411 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if ${ac_cv_prog_LIPO+:} false; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   if test -n "$LIPO"; then
6418   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425     for ac_exec_ext in '' $ac_executable_extensions; do
6426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432   done
6433 IFS=$as_save_IFS
6434
6435 fi
6436 fi
6437 LIPO=$ac_cv_prog_LIPO
6438 if test -n "$LIPO"; then
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6440 $as_echo "$LIPO" >&6; }
6441 else
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6444 fi
6445
6446
6447 fi
6448 if test -z "$ac_cv_prog_LIPO"; then
6449   ac_ct_LIPO=$LIPO
6450   # Extract the first word of "lipo", so it can be a program name with args.
6451 set dummy lipo; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6455   $as_echo_n "(cached) " >&6
6456 else
6457   if test -n "$ac_ct_LIPO"; then
6458   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463   IFS=$as_save_IFS
6464   test -z "$as_dir" && as_dir=.
6465     for ac_exec_ext in '' $ac_executable_extensions; do
6466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467     ac_cv_prog_ac_ct_LIPO="lipo"
6468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469     break 2
6470   fi
6471 done
6472   done
6473 IFS=$as_save_IFS
6474
6475 fi
6476 fi
6477 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6478 if test -n "$ac_ct_LIPO"; then
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6480 $as_echo "$ac_ct_LIPO" >&6; }
6481 else
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485
6486   if test "x$ac_ct_LIPO" = x; then
6487     LIPO=":"
6488   else
6489     case $cross_compiling:$ac_tool_warned in
6490 yes:)
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493 ac_tool_warned=yes ;;
6494 esac
6495     LIPO=$ac_ct_LIPO
6496   fi
6497 else
6498   LIPO="$ac_cv_prog_LIPO"
6499 fi
6500
6501     if test -n "$ac_tool_prefix"; then
6502   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}otool; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_OTOOL+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$OTOOL"; then
6510   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 OTOOL=$ac_cv_prog_OTOOL
6530 if test -n "$OTOOL"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6532 $as_echo "$OTOOL" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539 fi
6540 if test -z "$ac_cv_prog_OTOOL"; then
6541   ac_ct_OTOOL=$OTOOL
6542   # Extract the first word of "otool", so it can be a program name with args.
6543 set dummy otool; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -n "$ac_ct_OTOOL"; then
6550   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559     ac_cv_prog_ac_ct_OTOOL="otool"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6570 if test -n "$ac_ct_OTOOL"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6572 $as_echo "$ac_ct_OTOOL" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578   if test "x$ac_ct_OTOOL" = x; then
6579     OTOOL=":"
6580   else
6581     case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587     OTOOL=$ac_ct_OTOOL
6588   fi
6589 else
6590   OTOOL="$ac_cv_prog_OTOOL"
6591 fi
6592
6593     if test -n "$ac_tool_prefix"; then
6594   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_OTOOL64+:} false; then :
6599   $as_echo_n "(cached) " >&6
6600 else
6601   if test -n "$OTOOL64"; then
6602   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609     for ac_exec_ext in '' $ac_executable_extensions; do
6610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616   done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 OTOOL64=$ac_cv_prog_OTOOL64
6622 if test -n "$OTOOL64"; then
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6624 $as_echo "$OTOOL64" >&6; }
6625 else
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 fi
6629
6630
6631 fi
6632 if test -z "$ac_cv_prog_OTOOL64"; then
6633   ac_ct_OTOOL64=$OTOOL64
6634   # Extract the first word of "otool64", so it can be a program name with args.
6635 set dummy otool64; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6639   $as_echo_n "(cached) " >&6
6640 else
6641   if test -n "$ac_ct_OTOOL64"; then
6642   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649     for ac_exec_ext in '' $ac_executable_extensions; do
6650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651     ac_cv_prog_ac_ct_OTOOL64="otool64"
6652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656   done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6662 if test -n "$ac_ct_OTOOL64"; then
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6664 $as_echo "$ac_ct_OTOOL64" >&6; }
6665 else
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670   if test "x$ac_ct_OTOOL64" = x; then
6671     OTOOL64=":"
6672   else
6673     case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677 ac_tool_warned=yes ;;
6678 esac
6679     OTOOL64=$ac_ct_OTOOL64
6680   fi
6681 else
6682   OTOOL64="$ac_cv_prog_OTOOL64"
6683 fi
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6712 $as_echo_n "checking for -single_module linker flag... " >&6; }
6713 if ${lt_cv_apple_cc_single_mod+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   lt_cv_apple_cc_single_mod=no
6717       if test -z "${LT_MULTI_MODULE}"; then
6718         # By default we will add the -single_module flag. You can override
6719         # by either setting the environment variable LT_MULTI_MODULE
6720         # non-empty at configure time, or by adding -multi_module to the
6721         # link flags.
6722         rm -rf libconftest.dylib*
6723         echo "int foo(void){return 1;}" > conftest.c
6724         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6725 -dynamiclib -Wl,-single_module conftest.c" >&5
6726         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6727           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6728         _lt_result=$?
6729         # If there is a non-empty error log, and "single_module"
6730         # appears in it, assume the flag caused a linker warning
6731         if test -s conftest.err && $GREP single_module conftest.err; then
6732           cat conftest.err >&5
6733         # Otherwise, if the output was created with a 0 exit code from
6734         # the compiler, it worked.
6735         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6736           lt_cv_apple_cc_single_mod=yes
6737         else
6738           cat conftest.err >&5
6739         fi
6740         rm -rf libconftest.dylib*
6741         rm -f conftest.*
6742       fi
6743 fi
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6745 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6746
6747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6748 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6749 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752   lt_cv_ld_exported_symbols_list=no
6753       save_LDFLAGS=$LDFLAGS
6754       echo "_main" > conftest.sym
6755       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h.  */
6758
6759 int
6760 main ()
6761 {
6762
6763   ;
6764   return 0;
6765 }
6766 _ACEOF
6767 if ac_fn_c_try_link "$LINENO"; then :
6768   lt_cv_ld_exported_symbols_list=yes
6769 else
6770   lt_cv_ld_exported_symbols_list=no
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext \
6773     conftest$ac_exeext conftest.$ac_ext
6774         LDFLAGS="$save_LDFLAGS"
6775
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6778 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6779
6780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6781 $as_echo_n "checking for -force_load linker flag... " >&6; }
6782 if ${lt_cv_ld_force_load+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   lt_cv_ld_force_load=no
6786       cat > conftest.c << _LT_EOF
6787 int forced_loaded() { return 2;}
6788 _LT_EOF
6789       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6790       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6791       echo "$AR cru libconftest.a conftest.o" >&5
6792       $AR cru libconftest.a conftest.o 2>&5
6793       echo "$RANLIB libconftest.a" >&5
6794       $RANLIB libconftest.a 2>&5
6795       cat > conftest.c << _LT_EOF
6796 int main() { return 0;}
6797 _LT_EOF
6798       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6799       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6800       _lt_result=$?
6801       if test -s conftest.err && $GREP force_load conftest.err; then
6802         cat conftest.err >&5
6803       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6804         lt_cv_ld_force_load=yes
6805       else
6806         cat conftest.err >&5
6807       fi
6808         rm -f conftest.err libconftest.a conftest conftest.c
6809         rm -rf conftest.dSYM
6810
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6813 $as_echo "$lt_cv_ld_force_load" >&6; }
6814     case $host_os in
6815     rhapsody* | darwin1.[012])
6816       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6817     darwin1.*)
6818       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6819     darwin*) # darwin 5.x on
6820       # if running on 10.5 or later, the deployment target defaults
6821       # to the OS version, if on x86, and 10.4, the deployment
6822       # target defaults to 10.4. Don't you love it?
6823       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6824         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6825           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6826         10.[012]*)
6827           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6828         10.*)
6829           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6830       esac
6831     ;;
6832   esac
6833     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6834       _lt_dar_single_mod='$single_module'
6835     fi
6836     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6837       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6838     else
6839       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6840     fi
6841     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6842       _lt_dsymutil='~$DSYMUTIL $lib || :'
6843     else
6844       _lt_dsymutil=
6845     fi
6846     ;;
6847   esac
6848
6849 ac_ext=c
6850 ac_cpp='$CPP $CPPFLAGS'
6851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6855 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6856 # On Suns, sometimes $CPP names a directory.
6857 if test -n "$CPP" && test -d "$CPP"; then
6858   CPP=
6859 fi
6860 if test -z "$CPP"; then
6861   if ${ac_cv_prog_CPP+:} false; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864       # Double quotes because CPP needs to be expanded
6865     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6866     do
6867       ac_preproc_ok=false
6868 for ac_c_preproc_warn_flag in '' yes
6869 do
6870   # Use a header file that comes with gcc, so configuring glibc
6871   # with a fresh cross-compiler works.
6872   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873   # <limits.h> exists even on freestanding compilers.
6874   # On the NeXT, cc -E runs the code through the compiler's parser,
6875   # not just through cpp. "Syntax error" is here to catch this case.
6876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h.  */
6878 #ifdef __STDC__
6879 # include <limits.h>
6880 #else
6881 # include <assert.h>
6882 #endif
6883                      Syntax error
6884 _ACEOF
6885 if ac_fn_c_try_cpp "$LINENO"; then :
6886
6887 else
6888   # Broken: fails on valid input.
6889 continue
6890 fi
6891 rm -f conftest.err conftest.i conftest.$ac_ext
6892
6893   # OK, works on sane cases.  Now check whether nonexistent headers
6894   # can be detected and how.
6895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h.  */
6897 #include <ac_nonexistent.h>
6898 _ACEOF
6899 if ac_fn_c_try_cpp "$LINENO"; then :
6900   # Broken: success on invalid input.
6901 continue
6902 else
6903   # Passes both tests.
6904 ac_preproc_ok=:
6905 break
6906 fi
6907 rm -f conftest.err conftest.i conftest.$ac_ext
6908
6909 done
6910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6911 rm -f conftest.i conftest.err conftest.$ac_ext
6912 if $ac_preproc_ok; then :
6913   break
6914 fi
6915
6916     done
6917     ac_cv_prog_CPP=$CPP
6918
6919 fi
6920   CPP=$ac_cv_prog_CPP
6921 else
6922   ac_cv_prog_CPP=$CPP
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6925 $as_echo "$CPP" >&6; }
6926 ac_preproc_ok=false
6927 for ac_c_preproc_warn_flag in '' yes
6928 do
6929   # Use a header file that comes with gcc, so configuring glibc
6930   # with a fresh cross-compiler works.
6931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932   # <limits.h> exists even on freestanding compilers.
6933   # On the NeXT, cc -E runs the code through the compiler's parser,
6934   # not just through cpp. "Syntax error" is here to catch this case.
6935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h.  */
6937 #ifdef __STDC__
6938 # include <limits.h>
6939 #else
6940 # include <assert.h>
6941 #endif
6942                      Syntax error
6943 _ACEOF
6944 if ac_fn_c_try_cpp "$LINENO"; then :
6945
6946 else
6947   # Broken: fails on valid input.
6948 continue
6949 fi
6950 rm -f conftest.err conftest.i conftest.$ac_ext
6951
6952   # OK, works on sane cases.  Now check whether nonexistent headers
6953   # can be detected and how.
6954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h.  */
6956 #include <ac_nonexistent.h>
6957 _ACEOF
6958 if ac_fn_c_try_cpp "$LINENO"; then :
6959   # Broken: success on invalid input.
6960 continue
6961 else
6962   # Passes both tests.
6963 ac_preproc_ok=:
6964 break
6965 fi
6966 rm -f conftest.err conftest.i conftest.$ac_ext
6967
6968 done
6969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6970 rm -f conftest.i conftest.err conftest.$ac_ext
6971 if $ac_preproc_ok; then :
6972
6973 else
6974   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6976 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6977 See \`config.log' for more details" "$LINENO" 5; }
6978 fi
6979
6980 ac_ext=c
6981 ac_cpp='$CPP $CPPFLAGS'
6982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6985
6986
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6988 $as_echo_n "checking for ANSI C header files... " >&6; }
6989 if ${ac_cv_header_stdc+:} false; then :
6990   $as_echo_n "(cached) " >&6
6991 else
6992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h.  */
6994 #include <stdlib.h>
6995 #include <stdarg.h>
6996 #include <string.h>
6997 #include <float.h>
6998
6999 int
7000 main ()
7001 {
7002
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008   ac_cv_header_stdc=yes
7009 else
7010   ac_cv_header_stdc=no
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013
7014 if test $ac_cv_header_stdc = yes; then
7015   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018 #include <string.h>
7019
7020 _ACEOF
7021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7022   $EGREP "memchr" >/dev/null 2>&1; then :
7023
7024 else
7025   ac_cv_header_stdc=no
7026 fi
7027 rm -f conftest*
7028
7029 fi
7030
7031 if test $ac_cv_header_stdc = yes; then
7032   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h.  */
7035 #include <stdlib.h>
7036
7037 _ACEOF
7038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039   $EGREP "free" >/dev/null 2>&1; then :
7040
7041 else
7042   ac_cv_header_stdc=no
7043 fi
7044 rm -f conftest*
7045
7046 fi
7047
7048 if test $ac_cv_header_stdc = yes; then
7049   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7050   if test "$cross_compiling" = yes; then :
7051   :
7052 else
7053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h.  */
7055 #include <ctype.h>
7056 #include <stdlib.h>
7057 #if ((' ' & 0x0FF) == 0x020)
7058 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7059 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7060 #else
7061 # define ISLOWER(c) \
7062                    (('a' <= (c) && (c) <= 'i') \
7063                      || ('j' <= (c) && (c) <= 'r') \
7064                      || ('s' <= (c) && (c) <= 'z'))
7065 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7066 #endif
7067
7068 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7069 int
7070 main ()
7071 {
7072   int i;
7073   for (i = 0; i < 256; i++)
7074     if (XOR (islower (i), ISLOWER (i))
7075         || toupper (i) != TOUPPER (i))
7076       return 2;
7077   return 0;
7078 }
7079 _ACEOF
7080 if ac_fn_c_try_run "$LINENO"; then :
7081
7082 else
7083   ac_cv_header_stdc=no
7084 fi
7085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7086   conftest.$ac_objext conftest.beam conftest.$ac_ext
7087 fi
7088
7089 fi
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7092 $as_echo "$ac_cv_header_stdc" >&6; }
7093 if test $ac_cv_header_stdc = yes; then
7094
7095 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7096
7097 fi
7098
7099 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7100 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7101                   inttypes.h stdint.h unistd.h
7102 do :
7103   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7105 "
7106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7107   cat >>confdefs.h <<_ACEOF
7108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109 _ACEOF
7110
7111 fi
7112
7113 done
7114
7115
7116 for ac_header in dlfcn.h
7117 do :
7118   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7119 "
7120 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7121   cat >>confdefs.h <<_ACEOF
7122 #define HAVE_DLFCN_H 1
7123 _ACEOF
7124
7125 fi
7126
7127 done
7128
7129
7130
7131
7132
7133 # Set options
7134
7135
7136
7137         enable_dlopen=no
7138
7139
7140   enable_win32_dll=no
7141
7142
7143             # Check whether --enable-shared was given.
7144 if test "${enable_shared+set}" = set; then :
7145   enableval=$enable_shared; p=${PACKAGE-default}
7146     case $enableval in
7147     yes) enable_shared=yes ;;
7148     no) enable_shared=no ;;
7149     *)
7150       enable_shared=no
7151       # Look at the argument we got.  We use all the common list separators.
7152       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7153       for pkg in $enableval; do
7154         IFS="$lt_save_ifs"
7155         if test "X$pkg" = "X$p"; then
7156           enable_shared=yes
7157         fi
7158       done
7159       IFS="$lt_save_ifs"
7160       ;;
7161     esac
7162 else
7163   enable_shared=yes
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174   # Check whether --enable-static was given.
7175 if test "${enable_static+set}" = set; then :
7176   enableval=$enable_static; p=${PACKAGE-default}
7177     case $enableval in
7178     yes) enable_static=yes ;;
7179     no) enable_static=no ;;
7180     *)
7181      enable_static=no
7182       # Look at the argument we got.  We use all the common list separators.
7183       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7184       for pkg in $enableval; do
7185         IFS="$lt_save_ifs"
7186         if test "X$pkg" = "X$p"; then
7187           enable_static=yes
7188         fi
7189       done
7190       IFS="$lt_save_ifs"
7191       ;;
7192     esac
7193 else
7194   enable_static=yes
7195 fi
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206 # Check whether --with-pic was given.
7207 if test "${with_pic+set}" = set; then :
7208   withval=$with_pic; lt_p=${PACKAGE-default}
7209     case $withval in
7210     yes|no) pic_mode=$withval ;;
7211     *)
7212       pic_mode=default
7213       # Look at the argument we got.  We use all the common list separators.
7214       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7215       for lt_pkg in $withval; do
7216         IFS="$lt_save_ifs"
7217         if test "X$lt_pkg" = "X$lt_p"; then
7218           pic_mode=yes
7219         fi
7220       done
7221       IFS="$lt_save_ifs"
7222       ;;
7223     esac
7224 else
7225   pic_mode=default
7226 fi
7227
7228
7229 test -z "$pic_mode" && pic_mode=default
7230
7231
7232
7233
7234
7235
7236
7237   # Check whether --enable-fast-install was given.
7238 if test "${enable_fast_install+set}" = set; then :
7239   enableval=$enable_fast_install; p=${PACKAGE-default}
7240     case $enableval in
7241     yes) enable_fast_install=yes ;;
7242     no) enable_fast_install=no ;;
7243     *)
7244       enable_fast_install=no
7245       # Look at the argument we got.  We use all the common list separators.
7246       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7247       for pkg in $enableval; do
7248         IFS="$lt_save_ifs"
7249         if test "X$pkg" = "X$p"; then
7250           enable_fast_install=yes
7251         fi
7252       done
7253       IFS="$lt_save_ifs"
7254       ;;
7255     esac
7256 else
7257   enable_fast_install=yes
7258 fi
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270 # This can be used to rebuild libtool when needed
7271 LIBTOOL_DEPS="$ltmain"
7272
7273 # Always use our own libtool.
7274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 test -z "$LN_S" && LN_S="ln -s"
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 if test -n "${ZSH_VERSION+set}" ; then
7321    setopt NO_GLOB_SUBST
7322 fi
7323
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7325 $as_echo_n "checking for objdir... " >&6; }
7326 if ${lt_cv_objdir+:} false; then :
7327   $as_echo_n "(cached) " >&6
7328 else
7329   rm -f .libs 2>/dev/null
7330 mkdir .libs 2>/dev/null
7331 if test -d .libs; then
7332   lt_cv_objdir=.libs
7333 else
7334   # MS-DOS does not allow filenames that begin with a dot.
7335   lt_cv_objdir=_libs
7336 fi
7337 rmdir .libs 2>/dev/null
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7340 $as_echo "$lt_cv_objdir" >&6; }
7341 objdir=$lt_cv_objdir
7342
7343
7344
7345
7346
7347 cat >>confdefs.h <<_ACEOF
7348 #define LT_OBJDIR "$lt_cv_objdir/"
7349 _ACEOF
7350
7351
7352
7353
7354 case $host_os in
7355 aix3*)
7356   # AIX sometimes has problems with the GCC collect2 program.  For some
7357   # reason, if we set the COLLECT_NAMES environment variable, the problems
7358   # vanish in a puff of smoke.
7359   if test "X${COLLECT_NAMES+set}" != Xset; then
7360     COLLECT_NAMES=
7361     export COLLECT_NAMES
7362   fi
7363   ;;
7364 esac
7365
7366 # Global variables:
7367 ofile=libtool
7368 can_build_shared=yes
7369
7370 # All known linkers require a `.a' archive for static linking (except MSVC,
7371 # which needs '.lib').
7372 libext=a
7373
7374 with_gnu_ld="$lt_cv_prog_gnu_ld"
7375
7376 old_CC="$CC"
7377 old_CFLAGS="$CFLAGS"
7378
7379 # Set sane defaults for various variables
7380 test -z "$CC" && CC=cc
7381 test -z "$LTCC" && LTCC=$CC
7382 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7383 test -z "$LD" && LD=ld
7384 test -z "$ac_objext" && ac_objext=o
7385
7386 for cc_temp in $compiler""; do
7387   case $cc_temp in
7388     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7389     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7390     \-*) ;;
7391     *) break;;
7392   esac
7393 done
7394 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7395
7396
7397 # Only perform the check for file, if the check method requires it
7398 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7399 case $deplibs_check_method in
7400 file_magic*)
7401   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7403 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407   case $MAGIC_CMD in
7408 [\\/*] |  ?:[\\/]*)
7409   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7410   ;;
7411 *)
7412   lt_save_MAGIC_CMD="$MAGIC_CMD"
7413   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7414   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7415   for ac_dir in $ac_dummy; do
7416     IFS="$lt_save_ifs"
7417     test -z "$ac_dir" && ac_dir=.
7418     if test -f $ac_dir/${ac_tool_prefix}file; then
7419       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7420       if test -n "$file_magic_test_file"; then
7421         case $deplibs_check_method in
7422         "file_magic "*)
7423           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7424           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7425           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7426             $EGREP "$file_magic_regex" > /dev/null; then
7427             :
7428           else
7429             cat <<_LT_EOF 1>&2
7430
7431 *** Warning: the command libtool uses to detect shared libraries,
7432 *** $file_magic_cmd, produces output that libtool cannot recognize.
7433 *** The result is that libtool may fail to recognize shared libraries
7434 *** as such.  This will affect the creation of libtool libraries that
7435 *** depend on shared libraries, but programs linked with such libtool
7436 *** libraries will work regardless of this problem.  Nevertheless, you
7437 *** may want to report the problem to your system manager and/or to
7438 *** bug-libtool@gnu.org
7439
7440 _LT_EOF
7441           fi ;;
7442         esac
7443       fi
7444       break
7445     fi
7446   done
7447   IFS="$lt_save_ifs"
7448   MAGIC_CMD="$lt_save_MAGIC_CMD"
7449   ;;
7450 esac
7451 fi
7452
7453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7454 if test -n "$MAGIC_CMD"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7456 $as_echo "$MAGIC_CMD" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462
7463
7464
7465
7466 if test -z "$lt_cv_path_MAGIC_CMD"; then
7467   if test -n "$ac_tool_prefix"; then
7468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7469 $as_echo_n "checking for file... " >&6; }
7470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   case $MAGIC_CMD in
7474 [\\/*] |  ?:[\\/]*)
7475   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7476   ;;
7477 *)
7478   lt_save_MAGIC_CMD="$MAGIC_CMD"
7479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7480   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7481   for ac_dir in $ac_dummy; do
7482     IFS="$lt_save_ifs"
7483     test -z "$ac_dir" && ac_dir=.
7484     if test -f $ac_dir/file; then
7485       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7486       if test -n "$file_magic_test_file"; then
7487         case $deplibs_check_method in
7488         "file_magic "*)
7489           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7492             $EGREP "$file_magic_regex" > /dev/null; then
7493             :
7494           else
7495             cat <<_LT_EOF 1>&2
7496
7497 *** Warning: the command libtool uses to detect shared libraries,
7498 *** $file_magic_cmd, produces output that libtool cannot recognize.
7499 *** The result is that libtool may fail to recognize shared libraries
7500 *** as such.  This will affect the creation of libtool libraries that
7501 *** depend on shared libraries, but programs linked with such libtool
7502 *** libraries will work regardless of this problem.  Nevertheless, you
7503 *** may want to report the problem to your system manager and/or to
7504 *** bug-libtool@gnu.org
7505
7506 _LT_EOF
7507           fi ;;
7508         esac
7509       fi
7510       break
7511     fi
7512   done
7513   IFS="$lt_save_ifs"
7514   MAGIC_CMD="$lt_save_MAGIC_CMD"
7515   ;;
7516 esac
7517 fi
7518
7519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7520 if test -n "$MAGIC_CMD"; then
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7522 $as_echo "$MAGIC_CMD" >&6; }
7523 else
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7526 fi
7527
7528
7529   else
7530     MAGIC_CMD=:
7531   fi
7532 fi
7533
7534   fi
7535   ;;
7536 esac
7537
7538 # Use C for the default configuration in the libtool script
7539
7540 lt_save_CC="$CC"
7541 ac_ext=c
7542 ac_cpp='$CPP $CPPFLAGS'
7543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7546
7547
7548 # Source file extension for C test sources.
7549 ac_ext=c
7550
7551 # Object file extension for compiled C test sources.
7552 objext=o
7553 objext=$objext
7554
7555 # Code to be used in simple compile tests
7556 lt_simple_compile_test_code="int some_variable = 0;"
7557
7558 # Code to be used in simple link tests
7559 lt_simple_link_test_code='int main(){return(0);}'
7560
7561
7562
7563
7564
7565
7566
7567 # If no C compiler was specified, use CC.
7568 LTCC=${LTCC-"$CC"}
7569
7570 # If no C compiler flags were specified, use CFLAGS.
7571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7572
7573 # Allow CC to be a program name with arguments.
7574 compiler=$CC
7575
7576 # Save the default compiler, since it gets overwritten when the other
7577 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7578 compiler_DEFAULT=$CC
7579
7580 # save warnings/boilerplate of simple test code
7581 ac_outfile=conftest.$ac_objext
7582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7584 _lt_compiler_boilerplate=`cat conftest.err`
7585 $RM conftest*
7586
7587 ac_outfile=conftest.$ac_objext
7588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7590 _lt_linker_boilerplate=`cat conftest.err`
7591 $RM -r conftest*
7592
7593
7594 if test -n "$compiler"; then
7595
7596 lt_prog_compiler_no_builtin_flag=
7597
7598 if test "$GCC" = yes; then
7599   case $cc_basename in
7600   nvcc*)
7601     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7602   *)
7603     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7604   esac
7605
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7608 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   lt_cv_prog_compiler_rtti_exceptions=no
7612    ac_outfile=conftest.$ac_objext
7613    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7614    lt_compiler_flag="-fno-rtti -fno-exceptions"
7615    # Insert the option either (1) after the last *FLAGS variable, or
7616    # (2) before a word containing "conftest.", or (3) at the end.
7617    # Note that $ac_compile itself does not contain backslashes and begins
7618    # with a dollar sign (not a hyphen), so the echo should work correctly.
7619    # The option is referenced via a variable to avoid confusing sed.
7620    lt_compile=`echo "$ac_compile" | $SED \
7621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7623    -e 's:$: $lt_compiler_flag:'`
7624    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7625    (eval "$lt_compile" 2>conftest.err)
7626    ac_status=$?
7627    cat conftest.err >&5
7628    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629    if (exit $ac_status) && test -s "$ac_outfile"; then
7630      # The compiler can only warn and ignore the option if not recognized
7631      # So say no if there are warnings other than the usual output.
7632      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7633      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7634      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7635        lt_cv_prog_compiler_rtti_exceptions=yes
7636      fi
7637    fi
7638    $RM conftest*
7639
7640 fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7643
7644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7645     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7646 else
7647     :
7648 fi
7649
7650 fi
7651
7652
7653
7654
7655
7656
7657   lt_prog_compiler_wl=
7658 lt_prog_compiler_pic=
7659 lt_prog_compiler_static=
7660
7661
7662   if test "$GCC" = yes; then
7663     lt_prog_compiler_wl='-Wl,'
7664     lt_prog_compiler_static='-static'
7665
7666     case $host_os in
7667       aix*)
7668       # All AIX code is PIC.
7669       if test "$host_cpu" = ia64; then
7670         # AIX 5 now supports IA64 processor
7671         lt_prog_compiler_static='-Bstatic'
7672       fi
7673       ;;
7674
7675     amigaos*)
7676       case $host_cpu in
7677       powerpc)
7678             # see comment about AmigaOS4 .so support
7679             lt_prog_compiler_pic='-fPIC'
7680         ;;
7681       m68k)
7682             # FIXME: we need at least 68020 code to build shared libraries, but
7683             # adding the `-m68020' flag to GCC prevents building anything better,
7684             # like `-m68040'.
7685             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7686         ;;
7687       esac
7688       ;;
7689
7690     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7691       # PIC is the default for these OSes.
7692       ;;
7693
7694     mingw* | cygwin* | pw32* | os2* | cegcc*)
7695       # This hack is so that the source file can tell whether it is being
7696       # built for inclusion in a dll (and should export symbols for example).
7697       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7698       # (--disable-auto-import) libraries
7699       lt_prog_compiler_pic='-DDLL_EXPORT'
7700       ;;
7701
7702     darwin* | rhapsody*)
7703       # PIC is the default on this platform
7704       # Common symbols not allowed in MH_DYLIB files
7705       lt_prog_compiler_pic='-fno-common'
7706       ;;
7707
7708     haiku*)
7709       # PIC is the default for Haiku.
7710       # The "-static" flag exists, but is broken.
7711       lt_prog_compiler_static=
7712       ;;
7713
7714     hpux*)
7715       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7716       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7717       # sets the default TLS model and affects inlining.
7718       case $host_cpu in
7719       hppa*64*)
7720         # +Z the default
7721         ;;
7722       *)
7723         lt_prog_compiler_pic='-fPIC'
7724         ;;
7725       esac
7726       ;;
7727
7728     interix[3-9]*)
7729       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7730       # Instead, we relocate shared libraries at runtime.
7731       ;;
7732
7733     msdosdjgpp*)
7734       # Just because we use GCC doesn't mean we suddenly get shared libraries
7735       # on systems that don't support them.
7736       lt_prog_compiler_can_build_shared=no
7737       enable_shared=no
7738       ;;
7739
7740     *nto* | *qnx*)
7741       # QNX uses GNU C++, but need to define -shared option too, otherwise
7742       # it will coredump.
7743       lt_prog_compiler_pic='-fPIC -shared'
7744       ;;
7745
7746     sysv4*MP*)
7747       if test -d /usr/nec; then
7748         lt_prog_compiler_pic=-Kconform_pic
7749       fi
7750       ;;
7751
7752     *)
7753       lt_prog_compiler_pic='-fPIC'
7754       ;;
7755     esac
7756
7757     case $cc_basename in
7758     nvcc*) # Cuda Compiler Driver 2.2
7759       lt_prog_compiler_wl='-Xlinker '
7760       if test -n "$lt_prog_compiler_pic"; then
7761         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7762       fi
7763       ;;
7764     esac
7765   else
7766     # PORTME Check for flag to pass linker flags through the system compiler.
7767     case $host_os in
7768     aix*)
7769       lt_prog_compiler_wl='-Wl,'
7770       if test "$host_cpu" = ia64; then
7771         # AIX 5 now supports IA64 processor
7772         lt_prog_compiler_static='-Bstatic'
7773       else
7774         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7775       fi
7776       ;;
7777
7778     mingw* | cygwin* | pw32* | os2* | cegcc*)
7779       # This hack is so that the source file can tell whether it is being
7780       # built for inclusion in a dll (and should export symbols for example).
7781       lt_prog_compiler_pic='-DDLL_EXPORT'
7782       ;;
7783
7784     hpux9* | hpux10* | hpux11*)
7785       lt_prog_compiler_wl='-Wl,'
7786       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7787       # not for PA HP-UX.
7788       case $host_cpu in
7789       hppa*64*|ia64*)
7790         # +Z the default
7791         ;;
7792       *)
7793         lt_prog_compiler_pic='+Z'
7794         ;;
7795       esac
7796       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7797       lt_prog_compiler_static='${wl}-a ${wl}archive'
7798       ;;
7799
7800     irix5* | irix6* | nonstopux*)
7801       lt_prog_compiler_wl='-Wl,'
7802       # PIC (with -KPIC) is the default.
7803       lt_prog_compiler_static='-non_shared'
7804       ;;
7805
7806     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7807       case $cc_basename in
7808       # old Intel for x86_64 which still supported -KPIC.
7809       ecc*)
7810         lt_prog_compiler_wl='-Wl,'
7811         lt_prog_compiler_pic='-KPIC'
7812         lt_prog_compiler_static='-static'
7813         ;;
7814       # icc used to be incompatible with GCC.
7815       # ICC 10 doesn't accept -KPIC any more.
7816       icc* | ifort*)
7817         lt_prog_compiler_wl='-Wl,'
7818         lt_prog_compiler_pic='-fPIC'
7819         lt_prog_compiler_static='-static'
7820         ;;
7821       # Lahey Fortran 8.1.
7822       lf95*)
7823         lt_prog_compiler_wl='-Wl,'
7824         lt_prog_compiler_pic='--shared'
7825         lt_prog_compiler_static='--static'
7826         ;;
7827       nagfor*)
7828         # NAG Fortran compiler
7829         lt_prog_compiler_wl='-Wl,-Wl,,'
7830         lt_prog_compiler_pic='-PIC'
7831         lt_prog_compiler_static='-Bstatic'
7832         ;;
7833       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7834         # Portland Group compilers (*not* the Pentium gcc compiler,
7835         # which looks to be a dead project)
7836         lt_prog_compiler_wl='-Wl,'
7837         lt_prog_compiler_pic='-fpic'
7838         lt_prog_compiler_static='-Bstatic'
7839         ;;
7840       ccc*)
7841         lt_prog_compiler_wl='-Wl,'
7842         # All Alpha code is PIC.
7843         lt_prog_compiler_static='-non_shared'
7844         ;;
7845       xl* | bgxl* | bgf* | mpixl*)
7846         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7847         lt_prog_compiler_wl='-Wl,'
7848         lt_prog_compiler_pic='-qpic'
7849         lt_prog_compiler_static='-qstaticlink'
7850         ;;
7851       *)
7852         case `$CC -V 2>&1 | sed 5q` in
7853         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7854           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7855           lt_prog_compiler_pic='-KPIC'
7856           lt_prog_compiler_static='-Bstatic'
7857           lt_prog_compiler_wl=''
7858           ;;
7859         *Sun\ F* | *Sun*Fortran*)
7860           lt_prog_compiler_pic='-KPIC'
7861           lt_prog_compiler_static='-Bstatic'
7862           lt_prog_compiler_wl='-Qoption ld '
7863           ;;
7864         *Sun\ C*)
7865           # Sun C 5.9
7866           lt_prog_compiler_pic='-KPIC'
7867           lt_prog_compiler_static='-Bstatic'
7868           lt_prog_compiler_wl='-Wl,'
7869           ;;
7870         *Intel*\ [CF]*Compiler*)
7871           lt_prog_compiler_wl='-Wl,'
7872           lt_prog_compiler_pic='-fPIC'
7873           lt_prog_compiler_static='-static'
7874           ;;
7875         *Portland\ Group*)
7876           lt_prog_compiler_wl='-Wl,'
7877           lt_prog_compiler_pic='-fpic'
7878           lt_prog_compiler_static='-Bstatic'
7879           ;;
7880         esac
7881         ;;
7882       esac
7883       ;;
7884
7885     newsos6)
7886       lt_prog_compiler_pic='-KPIC'
7887       lt_prog_compiler_static='-Bstatic'
7888       ;;
7889
7890     *nto* | *qnx*)
7891       # QNX uses GNU C++, but need to define -shared option too, otherwise
7892       # it will coredump.
7893       lt_prog_compiler_pic='-fPIC -shared'
7894       ;;
7895
7896     osf3* | osf4* | osf5*)
7897       lt_prog_compiler_wl='-Wl,'
7898       # All OSF/1 code is PIC.
7899       lt_prog_compiler_static='-non_shared'
7900       ;;
7901
7902     rdos*)
7903       lt_prog_compiler_static='-non_shared'
7904       ;;
7905
7906     solaris*)
7907       lt_prog_compiler_pic='-KPIC'
7908       lt_prog_compiler_static='-Bstatic'
7909       case $cc_basename in
7910       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7911         lt_prog_compiler_wl='-Qoption ld ';;
7912       *)
7913         lt_prog_compiler_wl='-Wl,';;
7914       esac
7915       ;;
7916
7917     sunos4*)
7918       lt_prog_compiler_wl='-Qoption ld '
7919       lt_prog_compiler_pic='-PIC'
7920       lt_prog_compiler_static='-Bstatic'
7921       ;;
7922
7923     sysv4 | sysv4.2uw2* | sysv4.3*)
7924       lt_prog_compiler_wl='-Wl,'
7925       lt_prog_compiler_pic='-KPIC'
7926       lt_prog_compiler_static='-Bstatic'
7927       ;;
7928
7929     sysv4*MP*)
7930       if test -d /usr/nec ;then
7931         lt_prog_compiler_pic='-Kconform_pic'
7932         lt_prog_compiler_static='-Bstatic'
7933       fi
7934       ;;
7935
7936     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7937       lt_prog_compiler_wl='-Wl,'
7938       lt_prog_compiler_pic='-KPIC'
7939       lt_prog_compiler_static='-Bstatic'
7940       ;;
7941
7942     unicos*)
7943       lt_prog_compiler_wl='-Wl,'
7944       lt_prog_compiler_can_build_shared=no
7945       ;;
7946
7947     uts4*)
7948       lt_prog_compiler_pic='-pic'
7949       lt_prog_compiler_static='-Bstatic'
7950       ;;
7951
7952     *)
7953       lt_prog_compiler_can_build_shared=no
7954       ;;
7955     esac
7956   fi
7957
7958 case $host_os in
7959   # For platforms which do not support PIC, -DPIC is meaningless:
7960   *djgpp*)
7961     lt_prog_compiler_pic=
7962     ;;
7963   *)
7964     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7965     ;;
7966 esac
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7969 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7970 if ${lt_cv_prog_compiler_pic+:} false; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7976 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7977 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7978
7979 #
7980 # Check to make sure the PIC flag actually works.
7981 #
7982 if test -n "$lt_prog_compiler_pic"; then
7983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7984 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7985 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   lt_cv_prog_compiler_pic_works=no
7989    ac_outfile=conftest.$ac_objext
7990    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7991    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7992    # Insert the option either (1) after the last *FLAGS variable, or
7993    # (2) before a word containing "conftest.", or (3) at the end.
7994    # Note that $ac_compile itself does not contain backslashes and begins
7995    # with a dollar sign (not a hyphen), so the echo should work correctly.
7996    # The option is referenced via a variable to avoid confusing sed.
7997    lt_compile=`echo "$ac_compile" | $SED \
7998    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7999    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8000    -e 's:$: $lt_compiler_flag:'`
8001    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8002    (eval "$lt_compile" 2>conftest.err)
8003    ac_status=$?
8004    cat conftest.err >&5
8005    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006    if (exit $ac_status) && test -s "$ac_outfile"; then
8007      # The compiler can only warn and ignore the option if not recognized
8008      # So say no if there are warnings other than the usual output.
8009      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8010      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8011      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8012        lt_cv_prog_compiler_pic_works=yes
8013      fi
8014    fi
8015    $RM conftest*
8016
8017 fi
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8019 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8020
8021 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8022     case $lt_prog_compiler_pic in
8023      "" | " "*) ;;
8024      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8025      esac
8026 else
8027     lt_prog_compiler_pic=
8028      lt_prog_compiler_can_build_shared=no
8029 fi
8030
8031 fi
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043 #
8044 # Check to make sure the static flag actually works.
8045 #
8046 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8048 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8049 if ${lt_cv_prog_compiler_static_works+:} false; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   lt_cv_prog_compiler_static_works=no
8053    save_LDFLAGS="$LDFLAGS"
8054    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8055    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8056    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8057      # The linker can only warn and ignore the option if not recognized
8058      # So say no if there are warnings
8059      if test -s conftest.err; then
8060        # Append any errors to the config.log.
8061        cat conftest.err 1>&5
8062        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8063        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8064        if diff conftest.exp conftest.er2 >/dev/null; then
8065          lt_cv_prog_compiler_static_works=yes
8066        fi
8067      else
8068        lt_cv_prog_compiler_static_works=yes
8069      fi
8070    fi
8071    $RM -r conftest*
8072    LDFLAGS="$save_LDFLAGS"
8073
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8076 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8077
8078 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8079     :
8080 else
8081     lt_prog_compiler_static=
8082 fi
8083
8084
8085
8086
8087
8088
8089
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8091 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8092 if ${lt_cv_prog_compiler_c_o+:} false; then :
8093   $as_echo_n "(cached) " >&6
8094 else
8095   lt_cv_prog_compiler_c_o=no
8096    $RM -r conftest 2>/dev/null
8097    mkdir conftest
8098    cd conftest
8099    mkdir out
8100    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101
8102    lt_compiler_flag="-o out/conftest2.$ac_objext"
8103    # Insert the option either (1) after the last *FLAGS variable, or
8104    # (2) before a word containing "conftest.", or (3) at the end.
8105    # Note that $ac_compile itself does not contain backslashes and begins
8106    # with a dollar sign (not a hyphen), so the echo should work correctly.
8107    lt_compile=`echo "$ac_compile" | $SED \
8108    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110    -e 's:$: $lt_compiler_flag:'`
8111    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112    (eval "$lt_compile" 2>out/conftest.err)
8113    ac_status=$?
8114    cat out/conftest.err >&5
8115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8117    then
8118      # The compiler can only warn and ignore the option if not recognized
8119      # So say no if there are warnings
8120      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8121      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8122      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8123        lt_cv_prog_compiler_c_o=yes
8124      fi
8125    fi
8126    chmod u+w . 2>&5
8127    $RM conftest*
8128    # SGI C++ compiler will create directory out/ii_files/ for
8129    # template instantiation
8130    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8131    $RM out/* && rmdir out
8132    cd ..
8133    $RM -r conftest
8134    $RM conftest*
8135
8136 fi
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8138 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8139
8140
8141
8142
8143
8144
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8147 if ${lt_cv_prog_compiler_c_o+:} false; then :
8148   $as_echo_n "(cached) " >&6
8149 else
8150   lt_cv_prog_compiler_c_o=no
8151    $RM -r conftest 2>/dev/null
8152    mkdir conftest
8153    cd conftest
8154    mkdir out
8155    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8156
8157    lt_compiler_flag="-o out/conftest2.$ac_objext"
8158    # Insert the option either (1) after the last *FLAGS variable, or
8159    # (2) before a word containing "conftest.", or (3) at the end.
8160    # Note that $ac_compile itself does not contain backslashes and begins
8161    # with a dollar sign (not a hyphen), so the echo should work correctly.
8162    lt_compile=`echo "$ac_compile" | $SED \
8163    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8164    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8165    -e 's:$: $lt_compiler_flag:'`
8166    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8167    (eval "$lt_compile" 2>out/conftest.err)
8168    ac_status=$?
8169    cat out/conftest.err >&5
8170    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8172    then
8173      # The compiler can only warn and ignore the option if not recognized
8174      # So say no if there are warnings
8175      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8176      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8177      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8178        lt_cv_prog_compiler_c_o=yes
8179      fi
8180    fi
8181    chmod u+w . 2>&5
8182    $RM conftest*
8183    # SGI C++ compiler will create directory out/ii_files/ for
8184    # template instantiation
8185    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8186    $RM out/* && rmdir out
8187    cd ..
8188    $RM -r conftest
8189    $RM conftest*
8190
8191 fi
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8194
8195
8196
8197
8198 hard_links="nottested"
8199 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8200   # do not overwrite the value of need_locks provided by the user
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8202 $as_echo_n "checking if we can lock with hard links... " >&6; }
8203   hard_links=yes
8204   $RM conftest*
8205   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8206   touch conftest.a
8207   ln conftest.a conftest.b 2>&5 || hard_links=no
8208   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8210 $as_echo "$hard_links" >&6; }
8211   if test "$hard_links" = no; then
8212     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8213 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8214     need_locks=warn
8215   fi
8216 else
8217   need_locks=no
8218 fi
8219
8220
8221
8222
8223
8224
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8227
8228   runpath_var=
8229   allow_undefined_flag=
8230   always_export_symbols=no
8231   archive_cmds=
8232   archive_expsym_cmds=
8233   compiler_needs_object=no
8234   enable_shared_with_static_runtimes=no
8235   export_dynamic_flag_spec=
8236   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8237   hardcode_automatic=no
8238   hardcode_direct=no
8239   hardcode_direct_absolute=no
8240   hardcode_libdir_flag_spec=
8241   hardcode_libdir_separator=
8242   hardcode_minus_L=no
8243   hardcode_shlibpath_var=unsupported
8244   inherit_rpath=no
8245   link_all_deplibs=unknown
8246   module_cmds=
8247   module_expsym_cmds=
8248   old_archive_from_new_cmds=
8249   old_archive_from_expsyms_cmds=
8250   thread_safe_flag_spec=
8251   whole_archive_flag_spec=
8252   # include_expsyms should be a list of space-separated symbols to be *always*
8253   # included in the symbol list
8254   include_expsyms=
8255   # exclude_expsyms can be an extended regexp of symbols to exclude
8256   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8257   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8258   # as well as any symbol that contains `d'.
8259   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8260   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8261   # platforms (ab)use it in PIC code, but their linkers get confused if
8262   # the symbol is explicitly referenced.  Since portable code cannot
8263   # rely on this symbol name, it's probably fine to never include it in
8264   # preloaded symbol tables.
8265   # Exclude shared library initialization/finalization symbols.
8266   extract_expsyms_cmds=
8267
8268   case $host_os in
8269   cygwin* | mingw* | pw32* | cegcc*)
8270     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8271     # When not using gcc, we currently assume that we are using
8272     # Microsoft Visual C++.
8273     if test "$GCC" != yes; then
8274       with_gnu_ld=no
8275     fi
8276     ;;
8277   interix*)
8278     # we just hope/assume this is gcc and not c89 (= MSVC++)
8279     with_gnu_ld=yes
8280     ;;
8281   openbsd*)
8282     with_gnu_ld=no
8283     ;;
8284   esac
8285
8286   ld_shlibs=yes
8287
8288   # On some targets, GNU ld is compatible enough with the native linker
8289   # that we're better off using the native interface for both.
8290   lt_use_gnu_ld_interface=no
8291   if test "$with_gnu_ld" = yes; then
8292     case $host_os in
8293       aix*)
8294         # The AIX port of GNU ld has always aspired to compatibility
8295         # with the native linker.  However, as the warning in the GNU ld
8296         # block says, versions before 2.19.5* couldn't really create working
8297         # shared libraries, regardless of the interface used.
8298         case `$LD -v 2>&1` in
8299           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8300           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8301           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8302           *)
8303             lt_use_gnu_ld_interface=yes
8304             ;;
8305         esac
8306         ;;
8307       *)
8308         lt_use_gnu_ld_interface=yes
8309         ;;
8310     esac
8311   fi
8312
8313   if test "$lt_use_gnu_ld_interface" = yes; then
8314     # If archive_cmds runs LD, not CC, wlarc should be empty
8315     wlarc='${wl}'
8316
8317     # Set some defaults for GNU ld with shared library support. These
8318     # are reset later if shared libraries are not supported. Putting them
8319     # here allows them to be overridden if necessary.
8320     runpath_var=LD_RUN_PATH
8321     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8322     export_dynamic_flag_spec='${wl}--export-dynamic'
8323     # ancient GNU ld didn't support --whole-archive et. al.
8324     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8325       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8326     else
8327       whole_archive_flag_spec=
8328     fi
8329     supports_anon_versioning=no
8330     case `$LD -v 2>&1` in
8331       *GNU\ gold*) supports_anon_versioning=yes ;;
8332       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8333       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8334       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8335       *\ 2.11.*) ;; # other 2.11 versions
8336       *) supports_anon_versioning=yes ;;
8337     esac
8338
8339     # See if GNU ld supports shared libraries.
8340     case $host_os in
8341     aix[3-9]*)
8342       # On AIX/PPC, the GNU linker is very broken
8343       if test "$host_cpu" != ia64; then
8344         ld_shlibs=no
8345         cat <<_LT_EOF 1>&2
8346
8347 *** Warning: the GNU linker, at least up to release 2.19, is reported
8348 *** to be unable to reliably create shared libraries on AIX.
8349 *** Therefore, libtool is disabling shared libraries support.  If you
8350 *** really care for shared libraries, you may want to install binutils
8351 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8352 *** You will then need to restart the configuration process.
8353
8354 _LT_EOF
8355       fi
8356       ;;
8357
8358     amigaos*)
8359       case $host_cpu in
8360       powerpc)
8361             # see comment about AmigaOS4 .so support
8362             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363             archive_expsym_cmds=''
8364         ;;
8365       m68k)
8366             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)'
8367             hardcode_libdir_flag_spec='-L$libdir'
8368             hardcode_minus_L=yes
8369         ;;
8370       esac
8371       ;;
8372
8373     beos*)
8374       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8375         allow_undefined_flag=unsupported
8376         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8377         # support --undefined.  This deserves some investigation.  FIXME
8378         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379       else
8380         ld_shlibs=no
8381       fi
8382       ;;
8383
8384     cygwin* | mingw* | pw32* | cegcc*)
8385       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8386       # as there is no search path for DLLs.
8387       hardcode_libdir_flag_spec='-L$libdir'
8388       export_dynamic_flag_spec='${wl}--export-all-symbols'
8389       allow_undefined_flag=unsupported
8390       always_export_symbols=no
8391       enable_shared_with_static_runtimes=yes
8392       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8393       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8394
8395       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8396         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8397         # If the export-symbols file already is a .def file (1st line
8398         # is EXPORTS), use it as is; otherwise, prepend...
8399         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8400           cp $export_symbols $output_objdir/$soname.def;
8401         else
8402           echo EXPORTS > $output_objdir/$soname.def;
8403           cat $export_symbols >> $output_objdir/$soname.def;
8404         fi~
8405         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8406       else
8407         ld_shlibs=no
8408       fi
8409       ;;
8410
8411     haiku*)
8412       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8413       link_all_deplibs=yes
8414       ;;
8415
8416     interix[3-9]*)
8417       hardcode_direct=no
8418       hardcode_shlibpath_var=no
8419       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8420       export_dynamic_flag_spec='${wl}-E'
8421       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8422       # Instead, shared libraries are loaded at an image base (0x10000000 by
8423       # default) and relocated if they conflict, which is a slow very memory
8424       # consuming and fragmenting process.  To avoid this, we pick a random,
8425       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8426       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8427       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8428       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'
8429       ;;
8430
8431     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8432       tmp_diet=no
8433       if test "$host_os" = linux-dietlibc; then
8434         case $cc_basename in
8435           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8436         esac
8437       fi
8438       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8439          && test "$tmp_diet" = no
8440       then
8441         tmp_addflag=' $pic_flag'
8442         tmp_sharedflag='-shared'
8443         case $cc_basename,$host_cpu in
8444         pgcc*)                          # Portland Group C compiler
8445           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8446           tmp_addflag=' $pic_flag'
8447           ;;
8448         pgf77* | pgf90* | pgf95* | pgfortran*)
8449                                         # Portland Group f77 and f90 compilers
8450           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8451           tmp_addflag=' $pic_flag -Mnomain' ;;
8452         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8453           tmp_addflag=' -i_dynamic' ;;
8454         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8455           tmp_addflag=' -i_dynamic -nofor_main' ;;
8456         ifc* | ifort*)                  # Intel Fortran compiler
8457           tmp_addflag=' -nofor_main' ;;
8458         lf95*)                          # Lahey Fortran 8.1
8459           whole_archive_flag_spec=
8460           tmp_sharedflag='--shared' ;;
8461         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8462           tmp_sharedflag='-qmkshrobj'
8463           tmp_addflag= ;;
8464         nvcc*)  # Cuda Compiler Driver 2.2
8465           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8466           compiler_needs_object=yes
8467           ;;
8468         esac
8469         case `$CC -V 2>&1 | sed 5q` in
8470         *Sun\ C*)                       # Sun C 5.9
8471           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8472           compiler_needs_object=yes
8473           tmp_sharedflag='-G' ;;
8474         *Sun\ F*)                       # Sun Fortran 8.3
8475           tmp_sharedflag='-G' ;;
8476         esac
8477         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478
8479         if test "x$supports_anon_versioning" = xyes; then
8480           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8481             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8482             echo "local: *; };" >> $output_objdir/$libname.ver~
8483             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8484         fi
8485
8486         case $cc_basename in
8487         xlf* | bgf* | bgxlf* | mpixlf*)
8488           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8489           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8490           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8491           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8492           if test "x$supports_anon_versioning" = xyes; then
8493             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8494               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8495               echo "local: *; };" >> $output_objdir/$libname.ver~
8496               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8497           fi
8498           ;;
8499         esac
8500       else
8501         ld_shlibs=no
8502       fi
8503       ;;
8504
8505     netbsd*)
8506       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8507         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8508         wlarc=
8509       else
8510         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8512       fi
8513       ;;
8514
8515     solaris*)
8516       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8517         ld_shlibs=no
8518         cat <<_LT_EOF 1>&2
8519
8520 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8521 *** create shared libraries on Solaris systems.  Therefore, libtool
8522 *** is disabling shared libraries support.  We urge you to upgrade GNU
8523 *** binutils to release 2.9.1 or newer.  Another option is to modify
8524 *** your PATH or compiler configuration so that the native linker is
8525 *** used, and then restart.
8526
8527 _LT_EOF
8528       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8529         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8531       else
8532         ld_shlibs=no
8533       fi
8534       ;;
8535
8536     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8537       case `$LD -v 2>&1` in
8538         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8539         ld_shlibs=no
8540         cat <<_LT_EOF 1>&2
8541
8542 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8543 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8544 *** is disabling shared libraries support.  We urge you to upgrade GNU
8545 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8546 *** your PATH or compiler configuration so that the native linker is
8547 *** used, and then restart.
8548
8549 _LT_EOF
8550         ;;
8551         *)
8552           # For security reasons, it is highly recommended that you always
8553           # use absolute paths for naming shared libraries, and exclude the
8554           # DT_RUNPATH tag from executables and libraries.  But doing so
8555           # requires that you compile everything twice, which is a pain.
8556           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8557             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8558             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8559             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8560           else
8561             ld_shlibs=no
8562           fi
8563         ;;
8564       esac
8565       ;;
8566
8567     sunos4*)
8568       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8569       wlarc=
8570       hardcode_direct=yes
8571       hardcode_shlibpath_var=no
8572       ;;
8573
8574     *)
8575       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8576         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8577         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8578       else
8579         ld_shlibs=no
8580       fi
8581       ;;
8582     esac
8583
8584     if test "$ld_shlibs" = no; then
8585       runpath_var=
8586       hardcode_libdir_flag_spec=
8587       export_dynamic_flag_spec=
8588       whole_archive_flag_spec=
8589     fi
8590   else
8591     # PORTME fill in a description of your system's linker (not GNU ld)
8592     case $host_os in
8593     aix3*)
8594       allow_undefined_flag=unsupported
8595       always_export_symbols=yes
8596       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'
8597       # Note: this linker hardcodes the directories in LIBPATH if there
8598       # are no directories specified by -L.
8599       hardcode_minus_L=yes
8600       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8601         # Neither direct hardcoding nor static linking is supported with a
8602         # broken collect2.
8603         hardcode_direct=unsupported
8604       fi
8605       ;;
8606
8607     aix[4-9]*)
8608       if test "$host_cpu" = ia64; then
8609         # On IA64, the linker does run time linking by default, so we don't
8610         # have to do anything special.
8611         aix_use_runtimelinking=no
8612         exp_sym_flag='-Bexport'
8613         no_entry_flag=""
8614       else
8615         # If we're using GNU nm, then we don't want the "-C" option.
8616         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8617         # Also, AIX nm treats weak defined symbols like other global
8618         # defined symbols, whereas GNU nm marks them as "W".
8619         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8620           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8621         else
8622           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'
8623         fi
8624         aix_use_runtimelinking=no
8625
8626         # Test if we are trying to use run time linking or normal
8627         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8628         # need to do runtime linking.
8629         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8630           for ld_flag in $LDFLAGS; do
8631           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8632             aix_use_runtimelinking=yes
8633             break
8634           fi
8635           done
8636           ;;
8637         esac
8638
8639         exp_sym_flag='-bexport'
8640         no_entry_flag='-bnoentry'
8641       fi
8642
8643       # When large executables or shared objects are built, AIX ld can
8644       # have problems creating the table of contents.  If linking a library
8645       # or program results in "error TOC overflow" add -mminimal-toc to
8646       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8647       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8648
8649       archive_cmds=''
8650       hardcode_direct=yes
8651       hardcode_direct_absolute=yes
8652       hardcode_libdir_separator=':'
8653       link_all_deplibs=yes
8654       file_list_spec='${wl}-f,'
8655
8656       if test "$GCC" = yes; then
8657         case $host_os in aix4.[012]|aix4.[012].*)
8658         # We only want to do this on AIX 4.2 and lower, the check
8659         # below for broken collect2 doesn't work under 4.3+
8660           collect2name=`${CC} -print-prog-name=collect2`
8661           if test -f "$collect2name" &&
8662            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8663           then
8664           # We have reworked collect2
8665           :
8666           else
8667           # We have old collect2
8668           hardcode_direct=unsupported
8669           # It fails to find uninstalled libraries when the uninstalled
8670           # path is not listed in the libpath.  Setting hardcode_minus_L
8671           # to unsupported forces relinking
8672           hardcode_minus_L=yes
8673           hardcode_libdir_flag_spec='-L$libdir'
8674           hardcode_libdir_separator=
8675           fi
8676           ;;
8677         esac
8678         shared_flag='-shared'
8679         if test "$aix_use_runtimelinking" = yes; then
8680           shared_flag="$shared_flag "'${wl}-G'
8681         fi
8682       else
8683         # not using gcc
8684         if test "$host_cpu" = ia64; then
8685         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8686         # chokes on -Wl,-G. The following line is correct:
8687           shared_flag='-G'
8688         else
8689           if test "$aix_use_runtimelinking" = yes; then
8690             shared_flag='${wl}-G'
8691           else
8692             shared_flag='${wl}-bM:SRE'
8693           fi
8694         fi
8695       fi
8696
8697       export_dynamic_flag_spec='${wl}-bexpall'
8698       # It seems that -bexpall does not export symbols beginning with
8699       # underscore (_), so it is better to generate a list of symbols to export.
8700       always_export_symbols=yes
8701       if test "$aix_use_runtimelinking" = yes; then
8702         # Warning - without using the other runtime loading flags (-brtl),
8703         # -berok will link without error, but may produce a broken library.
8704         allow_undefined_flag='-berok'
8705         # Determine the default libpath from the value encoded in an
8706         # empty executable.
8707         if test "${lt_cv_aix_libpath+set}" = set; then
8708   aix_libpath=$lt_cv_aix_libpath
8709 else
8710   if ${lt_cv_aix_libpath_+:} false; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h.  */
8715
8716 int
8717 main ()
8718 {
8719
8720   ;
8721   return 0;
8722 }
8723 _ACEOF
8724 if ac_fn_c_try_link "$LINENO"; then :
8725
8726   lt_aix_libpath_sed='
8727       /Import File Strings/,/^$/ {
8728           /^0/ {
8729               s/^0  *\([^ ]*\) *$/\1/
8730               p
8731           }
8732       }'
8733   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8734   # Check for a 64-bit object if we didn't find anything.
8735   if test -z "$lt_cv_aix_libpath_"; then
8736     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8737   fi
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext \
8740     conftest$ac_exeext conftest.$ac_ext
8741   if test -z "$lt_cv_aix_libpath_"; then
8742     lt_cv_aix_libpath_="/usr/lib:/lib"
8743   fi
8744
8745 fi
8746
8747   aix_libpath=$lt_cv_aix_libpath_
8748 fi
8749
8750         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8751         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8752       else
8753         if test "$host_cpu" = ia64; then
8754           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8755           allow_undefined_flag="-z nodefs"
8756           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"
8757         else
8758          # Determine the default libpath from the value encoded in an
8759          # empty executable.
8760          if test "${lt_cv_aix_libpath+set}" = set; then
8761   aix_libpath=$lt_cv_aix_libpath
8762 else
8763   if ${lt_cv_aix_libpath_+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h.  */
8768
8769 int
8770 main ()
8771 {
8772
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778
8779   lt_aix_libpath_sed='
8780       /Import File Strings/,/^$/ {
8781           /^0/ {
8782               s/^0  *\([^ ]*\) *$/\1/
8783               p
8784           }
8785       }'
8786   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8787   # Check for a 64-bit object if we didn't find anything.
8788   if test -z "$lt_cv_aix_libpath_"; then
8789     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8790   fi
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext \
8793     conftest$ac_exeext conftest.$ac_ext
8794   if test -z "$lt_cv_aix_libpath_"; then
8795     lt_cv_aix_libpath_="/usr/lib:/lib"
8796   fi
8797
8798 fi
8799
8800   aix_libpath=$lt_cv_aix_libpath_
8801 fi
8802
8803          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8804           # Warning - without using the other run time loading flags,
8805           # -berok will link without error, but may produce a broken library.
8806           no_undefined_flag=' ${wl}-bernotok'
8807           allow_undefined_flag=' ${wl}-berok'
8808           if test "$with_gnu_ld" = yes; then
8809             # We only use this code for GNU lds that support --whole-archive.
8810             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8811           else
8812             # Exported symbols can be pulled into shared objects from archives
8813             whole_archive_flag_spec='$convenience'
8814           fi
8815           archive_cmds_need_lc=yes
8816           # This is similar to how AIX traditionally builds its shared libraries.
8817           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'
8818         fi
8819       fi
8820       ;;
8821
8822     amigaos*)
8823       case $host_cpu in
8824       powerpc)
8825             # see comment about AmigaOS4 .so support
8826             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827             archive_expsym_cmds=''
8828         ;;
8829       m68k)
8830             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)'
8831             hardcode_libdir_flag_spec='-L$libdir'
8832             hardcode_minus_L=yes
8833         ;;
8834       esac
8835       ;;
8836
8837     bsdi[45]*)
8838       export_dynamic_flag_spec=-rdynamic
8839       ;;
8840
8841     cygwin* | mingw* | pw32* | cegcc*)
8842       # When not using gcc, we currently assume that we are using
8843       # Microsoft Visual C++.
8844       # hardcode_libdir_flag_spec is actually meaningless, as there is
8845       # no search path for DLLs.
8846       case $cc_basename in
8847       cl*)
8848         # Native MSVC
8849         hardcode_libdir_flag_spec=' '
8850         allow_undefined_flag=unsupported
8851         always_export_symbols=yes
8852         file_list_spec='@'
8853         # Tell ltmain to make .lib files, not .a files.
8854         libext=lib
8855         # Tell ltmain to make .dll files, not .so files.
8856         shrext_cmds=".dll"
8857         # FIXME: Setting linknames here is a bad hack.
8858         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8859         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8860             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8861           else
8862             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8863           fi~
8864           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8865           linknames='
8866         # The linker will not automatically build a static lib if we build a DLL.
8867         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8868         enable_shared_with_static_runtimes=yes
8869         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8870         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8871         # Don't use ranlib
8872         old_postinstall_cmds='chmod 644 $oldlib'
8873         postlink_cmds='lt_outputfile="@OUTPUT@"~
8874           lt_tool_outputfile="@TOOL_OUTPUT@"~
8875           case $lt_outputfile in
8876             *.exe|*.EXE) ;;
8877             *)
8878               lt_outputfile="$lt_outputfile.exe"
8879               lt_tool_outputfile="$lt_tool_outputfile.exe"
8880               ;;
8881           esac~
8882           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8883             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8884             $RM "$lt_outputfile.manifest";
8885           fi'
8886         ;;
8887       *)
8888         # Assume MSVC wrapper
8889         hardcode_libdir_flag_spec=' '
8890         allow_undefined_flag=unsupported
8891         # Tell ltmain to make .lib files, not .a files.
8892         libext=lib
8893         # Tell ltmain to make .dll files, not .so files.
8894         shrext_cmds=".dll"
8895         # FIXME: Setting linknames here is a bad hack.
8896         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8897         # The linker will automatically build a .lib file if we build a DLL.
8898         old_archive_from_new_cmds='true'
8899         # FIXME: Should let the user specify the lib program.
8900         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8901         enable_shared_with_static_runtimes=yes
8902         ;;
8903       esac
8904       ;;
8905
8906     darwin* | rhapsody*)
8907
8908
8909   archive_cmds_need_lc=no
8910   hardcode_direct=no
8911   hardcode_automatic=yes
8912   hardcode_shlibpath_var=unsupported
8913   if test "$lt_cv_ld_force_load" = "yes"; then
8914     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8915
8916   else
8917     whole_archive_flag_spec=''
8918   fi
8919   link_all_deplibs=yes
8920   allow_undefined_flag="$_lt_dar_allow_undefined"
8921   case $cc_basename in
8922      ifort*) _lt_dar_can_shared=yes ;;
8923      *) _lt_dar_can_shared=$GCC ;;
8924   esac
8925   if test "$_lt_dar_can_shared" = "yes"; then
8926     output_verbose_link_cmd=func_echo_all
8927     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8928     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8929     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}"
8930     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}"
8931
8932   else
8933   ld_shlibs=no
8934   fi
8935
8936       ;;
8937
8938     dgux*)
8939       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940       hardcode_libdir_flag_spec='-L$libdir'
8941       hardcode_shlibpath_var=no
8942       ;;
8943
8944     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8945     # support.  Future versions do this automatically, but an explicit c++rt0.o
8946     # does not break anything, and helps significantly (at the cost of a little
8947     # extra space).
8948     freebsd2.2*)
8949       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8950       hardcode_libdir_flag_spec='-R$libdir'
8951       hardcode_direct=yes
8952       hardcode_shlibpath_var=no
8953       ;;
8954
8955     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8956     freebsd2.*)
8957       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8958       hardcode_direct=yes
8959       hardcode_minus_L=yes
8960       hardcode_shlibpath_var=no
8961       ;;
8962
8963     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8964     freebsd* | dragonfly*)
8965       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8966       hardcode_libdir_flag_spec='-R$libdir'
8967       hardcode_direct=yes
8968       hardcode_shlibpath_var=no
8969       ;;
8970
8971     hpux9*)
8972       if test "$GCC" = yes; then
8973         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8974       else
8975         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'
8976       fi
8977       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8978       hardcode_libdir_separator=:
8979       hardcode_direct=yes
8980
8981       # hardcode_minus_L: Not really in the search PATH,
8982       # but as the default location of the library.
8983       hardcode_minus_L=yes
8984       export_dynamic_flag_spec='${wl}-E'
8985       ;;
8986
8987     hpux10*)
8988       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8989         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8990       else
8991         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8992       fi
8993       if test "$with_gnu_ld" = no; then
8994         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8995         hardcode_libdir_separator=:
8996         hardcode_direct=yes
8997         hardcode_direct_absolute=yes
8998         export_dynamic_flag_spec='${wl}-E'
8999         # hardcode_minus_L: Not really in the search PATH,
9000         # but as the default location of the library.
9001         hardcode_minus_L=yes
9002       fi
9003       ;;
9004
9005     hpux11*)
9006       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9007         case $host_cpu in
9008         hppa*64*)
9009           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9010           ;;
9011         ia64*)
9012           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9013           ;;
9014         *)
9015           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9016           ;;
9017         esac
9018       else
9019         case $host_cpu in
9020         hppa*64*)
9021           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9022           ;;
9023         ia64*)
9024           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9025           ;;
9026         *)
9027
9028           # Older versions of the 11.00 compiler do not understand -b yet
9029           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9030           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9031 $as_echo_n "checking if $CC understands -b... " >&6; }
9032 if ${lt_cv_prog_compiler__b+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   lt_cv_prog_compiler__b=no
9036    save_LDFLAGS="$LDFLAGS"
9037    LDFLAGS="$LDFLAGS -b"
9038    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9039    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9040      # The linker can only warn and ignore the option if not recognized
9041      # So say no if there are warnings
9042      if test -s conftest.err; then
9043        # Append any errors to the config.log.
9044        cat conftest.err 1>&5
9045        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9046        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9047        if diff conftest.exp conftest.er2 >/dev/null; then
9048          lt_cv_prog_compiler__b=yes
9049        fi
9050      else
9051        lt_cv_prog_compiler__b=yes
9052      fi
9053    fi
9054    $RM -r conftest*
9055    LDFLAGS="$save_LDFLAGS"
9056
9057 fi
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9059 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9060
9061 if test x"$lt_cv_prog_compiler__b" = xyes; then
9062     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9063 else
9064     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9065 fi
9066
9067           ;;
9068         esac
9069       fi
9070       if test "$with_gnu_ld" = no; then
9071         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9072         hardcode_libdir_separator=:
9073
9074         case $host_cpu in
9075         hppa*64*|ia64*)
9076           hardcode_direct=no
9077           hardcode_shlibpath_var=no
9078           ;;
9079         *)
9080           hardcode_direct=yes
9081           hardcode_direct_absolute=yes
9082           export_dynamic_flag_spec='${wl}-E'
9083
9084           # hardcode_minus_L: Not really in the search PATH,
9085           # but as the default location of the library.
9086           hardcode_minus_L=yes
9087           ;;
9088         esac
9089       fi
9090       ;;
9091
9092     irix5* | irix6* | nonstopux*)
9093       if test "$GCC" = yes; then
9094         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9095         # Try to use the -exported_symbol ld option, if it does not
9096         # work, assume that -exports_file does not work either and
9097         # implicitly export all symbols.
9098         # This should be the same for all languages, so no per-tag cache variable.
9099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9100 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9101 if ${lt_cv_irix_exported_symbol+:} false; then :
9102   $as_echo_n "(cached) " >&6
9103 else
9104   save_LDFLAGS="$LDFLAGS"
9105            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9106            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h.  */
9108 int foo (void) { return 0; }
9109 _ACEOF
9110 if ac_fn_c_try_link "$LINENO"; then :
9111   lt_cv_irix_exported_symbol=yes
9112 else
9113   lt_cv_irix_exported_symbol=no
9114 fi
9115 rm -f core conftest.err conftest.$ac_objext \
9116     conftest$ac_exeext conftest.$ac_ext
9117            LDFLAGS="$save_LDFLAGS"
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9120 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9121         if test "$lt_cv_irix_exported_symbol" = yes; then
9122           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9123         fi
9124       else
9125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9126         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9127       fi
9128       archive_cmds_need_lc='no'
9129       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9130       hardcode_libdir_separator=:
9131       inherit_rpath=yes
9132       link_all_deplibs=yes
9133       ;;
9134
9135     netbsd*)
9136       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9137         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9138       else
9139         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9140       fi
9141       hardcode_libdir_flag_spec='-R$libdir'
9142       hardcode_direct=yes
9143       hardcode_shlibpath_var=no
9144       ;;
9145
9146     newsos6)
9147       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148       hardcode_direct=yes
9149       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150       hardcode_libdir_separator=:
9151       hardcode_shlibpath_var=no
9152       ;;
9153
9154     *nto* | *qnx*)
9155       ;;
9156
9157     openbsd*)
9158       if test -f /usr/libexec/ld.so; then
9159         hardcode_direct=yes
9160         hardcode_shlibpath_var=no
9161         hardcode_direct_absolute=yes
9162         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9163           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9164           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9165           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166           export_dynamic_flag_spec='${wl}-E'
9167         else
9168           case $host_os in
9169            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9170              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9171              hardcode_libdir_flag_spec='-R$libdir'
9172              ;;
9173            *)
9174              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9175              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9176              ;;
9177           esac
9178         fi
9179       else
9180         ld_shlibs=no
9181       fi
9182       ;;
9183
9184     os2*)
9185       hardcode_libdir_flag_spec='-L$libdir'
9186       hardcode_minus_L=yes
9187       allow_undefined_flag=unsupported
9188       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'
9189       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9190       ;;
9191
9192     osf3*)
9193       if test "$GCC" = yes; then
9194         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9195         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9196       else
9197         allow_undefined_flag=' -expect_unresolved \*'
9198         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9199       fi
9200       archive_cmds_need_lc='no'
9201       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202       hardcode_libdir_separator=:
9203       ;;
9204
9205     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9206       if test "$GCC" = yes; then
9207         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9208         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9209         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9210       else
9211         allow_undefined_flag=' -expect_unresolved \*'
9212         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9213         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~
9214         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9215
9216         # Both c and cxx compiler support -rpath directly
9217         hardcode_libdir_flag_spec='-rpath $libdir'
9218       fi
9219       archive_cmds_need_lc='no'
9220       hardcode_libdir_separator=:
9221       ;;
9222
9223     solaris*)
9224       no_undefined_flag=' -z defs'
9225       if test "$GCC" = yes; then
9226         wlarc='${wl}'
9227         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9228         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9229           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9230       else
9231         case `$CC -V 2>&1` in
9232         *"Compilers 5.0"*)
9233           wlarc=''
9234           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9236           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9237           ;;
9238         *)
9239           wlarc='${wl}'
9240           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9241           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9242           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9243           ;;
9244         esac
9245       fi
9246       hardcode_libdir_flag_spec='-R$libdir'
9247       hardcode_shlibpath_var=no
9248       case $host_os in
9249       solaris2.[0-5] | solaris2.[0-5].*) ;;
9250       *)
9251         # The compiler driver will combine and reorder linker options,
9252         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9253         # but is careful enough not to reorder.
9254         # Supported since Solaris 2.6 (maybe 2.5.1?)
9255         if test "$GCC" = yes; then
9256           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9257         else
9258           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9259         fi
9260         ;;
9261       esac
9262       link_all_deplibs=yes
9263       ;;
9264
9265     sunos4*)
9266       if test "x$host_vendor" = xsequent; then
9267         # Use $CC to link under sequent, because it throws in some extra .o
9268         # files that make .init and .fini sections work.
9269         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9270       else
9271         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9272       fi
9273       hardcode_libdir_flag_spec='-L$libdir'
9274       hardcode_direct=yes
9275       hardcode_minus_L=yes
9276       hardcode_shlibpath_var=no
9277       ;;
9278
9279     sysv4)
9280       case $host_vendor in
9281         sni)
9282           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283           hardcode_direct=yes # is this really true???
9284         ;;
9285         siemens)
9286           ## LD is ld it makes a PLAMLIB
9287           ## CC just makes a GrossModule.
9288           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9289           reload_cmds='$CC -r -o $output$reload_objs'
9290           hardcode_direct=no
9291         ;;
9292         motorola)
9293           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9295         ;;
9296       esac
9297       runpath_var='LD_RUN_PATH'
9298       hardcode_shlibpath_var=no
9299       ;;
9300
9301     sysv4.3*)
9302       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303       hardcode_shlibpath_var=no
9304       export_dynamic_flag_spec='-Bexport'
9305       ;;
9306
9307     sysv4*MP*)
9308       if test -d /usr/nec; then
9309         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310         hardcode_shlibpath_var=no
9311         runpath_var=LD_RUN_PATH
9312         hardcode_runpath_var=yes
9313         ld_shlibs=yes
9314       fi
9315       ;;
9316
9317     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9318       no_undefined_flag='${wl}-z,text'
9319       archive_cmds_need_lc=no
9320       hardcode_shlibpath_var=no
9321       runpath_var='LD_RUN_PATH'
9322
9323       if test "$GCC" = yes; then
9324         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9325         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9326       else
9327         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329       fi
9330       ;;
9331
9332     sysv5* | sco3.2v5* | sco5v6*)
9333       # Note: We can NOT use -z defs as we might desire, because we do not
9334       # link with -lc, and that would cause any symbols used from libc to
9335       # always be unresolved, which means just about no library would
9336       # ever link correctly.  If we're not using GNU ld we use -z text
9337       # though, which does catch some bad symbols but isn't as heavy-handed
9338       # as -z defs.
9339       no_undefined_flag='${wl}-z,text'
9340       allow_undefined_flag='${wl}-z,nodefs'
9341       archive_cmds_need_lc=no
9342       hardcode_shlibpath_var=no
9343       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9344       hardcode_libdir_separator=':'
9345       link_all_deplibs=yes
9346       export_dynamic_flag_spec='${wl}-Bexport'
9347       runpath_var='LD_RUN_PATH'
9348
9349       if test "$GCC" = yes; then
9350         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352       else
9353         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355       fi
9356       ;;
9357
9358     uts4*)
9359       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360       hardcode_libdir_flag_spec='-L$libdir'
9361       hardcode_shlibpath_var=no
9362       ;;
9363
9364     *)
9365       ld_shlibs=no
9366       ;;
9367     esac
9368
9369     if test x$host_vendor = xsni; then
9370       case $host in
9371       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9372         export_dynamic_flag_spec='${wl}-Blargedynsym'
9373         ;;
9374       esac
9375     fi
9376   fi
9377
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9379 $as_echo "$ld_shlibs" >&6; }
9380 test "$ld_shlibs" = no && can_build_shared=no
9381
9382 with_gnu_ld=$with_gnu_ld
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398 #
9399 # Do we need to explicitly link libc?
9400 #
9401 case "x$archive_cmds_need_lc" in
9402 x|xyes)
9403   # Assume -lc should be added
9404   archive_cmds_need_lc=yes
9405
9406   if test "$enable_shared" = yes && test "$GCC" = yes; then
9407     case $archive_cmds in
9408     *'~'*)
9409       # FIXME: we may have to deal with multi-command sequences.
9410       ;;
9411     '$CC '*)
9412       # Test whether the compiler implicitly links with -lc since on some
9413       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9414       # to ld, don't add -lc before -lgcc.
9415       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9416 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9417 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9418   $as_echo_n "(cached) " >&6
9419 else
9420   $RM conftest*
9421         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422
9423         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9424   (eval $ac_compile) 2>&5
9425   ac_status=$?
9426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9427   test $ac_status = 0; } 2>conftest.err; then
9428           soname=conftest
9429           lib=conftest
9430           libobjs=conftest.$ac_objext
9431           deplibs=
9432           wl=$lt_prog_compiler_wl
9433           pic_flag=$lt_prog_compiler_pic
9434           compiler_flags=-v
9435           linker_flags=-v
9436           verstring=
9437           output_objdir=.
9438           libname=conftest
9439           lt_save_allow_undefined_flag=$allow_undefined_flag
9440           allow_undefined_flag=
9441           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9442   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9443   ac_status=$?
9444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9445   test $ac_status = 0; }
9446           then
9447             lt_cv_archive_cmds_need_lc=no
9448           else
9449             lt_cv_archive_cmds_need_lc=yes
9450           fi
9451           allow_undefined_flag=$lt_save_allow_undefined_flag
9452         else
9453           cat conftest.err 1>&5
9454         fi
9455         $RM conftest*
9456
9457 fi
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9459 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9460       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9461       ;;
9462     esac
9463   fi
9464   ;;
9465 esac
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9619 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9620
9621 if test "$GCC" = yes; then
9622   case $host_os in
9623     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9624     *) lt_awk_arg="/^libraries:/" ;;
9625   esac
9626   case $host_os in
9627     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9628     *) lt_sed_strip_eq="s,=/,/,g" ;;
9629   esac
9630   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9631   case $lt_search_path_spec in
9632   *\;*)
9633     # if the path contains ";" then we assume it to be the separator
9634     # otherwise default to the standard path separator (i.e. ":") - it is
9635     # assumed that no part of a normal pathname contains ";" but that should
9636     # okay in the real world where ";" in dirpaths is itself problematic.
9637     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9638     ;;
9639   *)
9640     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9641     ;;
9642   esac
9643   # Ok, now we have the path, separated by spaces, we can step through it
9644   # and add multilib dir if necessary.
9645   lt_tmp_lt_search_path_spec=
9646   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9647   for lt_sys_path in $lt_search_path_spec; do
9648     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9649       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9650     else
9651       test -d "$lt_sys_path" && \
9652         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9653     fi
9654   done
9655   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9656 BEGIN {RS=" "; FS="/|\n";} {
9657   lt_foo="";
9658   lt_count=0;
9659   for (lt_i = NF; lt_i > 0; lt_i--) {
9660     if ($lt_i != "" && $lt_i != ".") {
9661       if ($lt_i == "..") {
9662         lt_count++;
9663       } else {
9664         if (lt_count == 0) {
9665           lt_foo="/" $lt_i lt_foo;
9666         } else {
9667           lt_count--;
9668         }
9669       }
9670     }
9671   }
9672   if (lt_foo != "") { lt_freq[lt_foo]++; }
9673   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9674 }'`
9675   # AWK program above erroneously prepends '/' to C:/dos/paths
9676   # for these hosts.
9677   case $host_os in
9678     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9679       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9680   esac
9681   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9682 else
9683   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9684 fi
9685 library_names_spec=
9686 libname_spec='lib$name'
9687 soname_spec=
9688 shrext_cmds=".so"
9689 postinstall_cmds=
9690 postuninstall_cmds=
9691 finish_cmds=
9692 finish_eval=
9693 shlibpath_var=
9694 shlibpath_overrides_runpath=unknown
9695 version_type=none
9696 dynamic_linker="$host_os ld.so"
9697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9698 need_lib_prefix=unknown
9699 hardcode_into_libs=no
9700
9701 # when you set need_version to no, make sure it does not cause -set_version
9702 # flags to be left without arguments
9703 need_version=unknown
9704
9705 case $host_os in
9706 aix3*)
9707   version_type=linux # correct to gnu/linux during the next big refactor
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9709   shlibpath_var=LIBPATH
9710
9711   # AIX 3 has no versioning support, so we append a major version to the name.
9712   soname_spec='${libname}${release}${shared_ext}$major'
9713   ;;
9714
9715 aix[4-9]*)
9716   version_type=linux # correct to gnu/linux during the next big refactor
9717   need_lib_prefix=no
9718   need_version=no
9719   hardcode_into_libs=yes
9720   if test "$host_cpu" = ia64; then
9721     # AIX 5 supports IA64
9722     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9723     shlibpath_var=LD_LIBRARY_PATH
9724   else
9725     # With GCC up to 2.95.x, collect2 would create an import file
9726     # for dependence libraries.  The import file would start with
9727     # the line `#! .'.  This would cause the generated library to
9728     # depend on `.', always an invalid library.  This was fixed in
9729     # development snapshots of GCC prior to 3.0.
9730     case $host_os in
9731       aix4 | aix4.[01] | aix4.[01].*)
9732       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9733            echo ' yes '
9734            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9735         :
9736       else
9737         can_build_shared=no
9738       fi
9739       ;;
9740     esac
9741     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9742     # soname into executable. Probably we can add versioning support to
9743     # collect2, so additional links can be useful in future.
9744     if test "$aix_use_runtimelinking" = yes; then
9745       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9746       # instead of lib<name>.a to let people know that these are not
9747       # typical AIX shared libraries.
9748       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749     else
9750       # We preserve .a as extension for shared libraries through AIX4.2
9751       # and later when we are not doing run time linking.
9752       library_names_spec='${libname}${release}.a $libname.a'
9753       soname_spec='${libname}${release}${shared_ext}$major'
9754     fi
9755     shlibpath_var=LIBPATH
9756   fi
9757   ;;
9758
9759 amigaos*)
9760   case $host_cpu in
9761   powerpc)
9762     # Since July 2007 AmigaOS4 officially supports .so libraries.
9763     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765     ;;
9766   m68k)
9767     library_names_spec='$libname.ixlibrary $libname.a'
9768     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9769     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9770     ;;
9771   esac
9772   ;;
9773
9774 beos*)
9775   library_names_spec='${libname}${shared_ext}'
9776   dynamic_linker="$host_os ld.so"
9777   shlibpath_var=LIBRARY_PATH
9778   ;;
9779
9780 bsdi[45]*)
9781   version_type=linux # correct to gnu/linux during the next big refactor
9782   need_version=no
9783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784   soname_spec='${libname}${release}${shared_ext}$major'
9785   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9786   shlibpath_var=LD_LIBRARY_PATH
9787   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9788   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9789   # the default ld.so.conf also contains /usr/contrib/lib and
9790   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9791   # libtool to hard-code these into programs
9792   ;;
9793
9794 cygwin* | mingw* | pw32* | cegcc*)
9795   version_type=windows
9796   shrext_cmds=".dll"
9797   need_version=no
9798   need_lib_prefix=no
9799
9800   case $GCC,$cc_basename in
9801   yes,*)
9802     # gcc
9803     library_names_spec='$libname.dll.a'
9804     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9805     postinstall_cmds='base_file=`basename \${file}`~
9806       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9807       dldir=$destdir/`dirname \$dlpath`~
9808       test -d \$dldir || mkdir -p \$dldir~
9809       $install_prog $dir/$dlname \$dldir/$dlname~
9810       chmod a+x \$dldir/$dlname~
9811       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9812         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9813       fi'
9814     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9815       dlpath=$dir/\$dldll~
9816        $RM \$dlpath'
9817     shlibpath_overrides_runpath=yes
9818
9819     case $host_os in
9820     cygwin*)
9821       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9822       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9823
9824       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9825       ;;
9826     mingw* | cegcc*)
9827       # MinGW DLLs use traditional 'lib' prefix
9828       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9829       ;;
9830     pw32*)
9831       # pw32 DLLs use 'pw' prefix rather than 'lib'
9832       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9833       ;;
9834     esac
9835     dynamic_linker='Win32 ld.exe'
9836     ;;
9837
9838   *,cl*)
9839     # Native MSVC
9840     libname_spec='$name'
9841     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842     library_names_spec='${libname}.dll.lib'
9843
9844     case $build_os in
9845     mingw*)
9846       sys_lib_search_path_spec=
9847       lt_save_ifs=$IFS
9848       IFS=';'
9849       for lt_path in $LIB
9850       do
9851         IFS=$lt_save_ifs
9852         # Let DOS variable expansion print the short 8.3 style file name.
9853         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9854         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9855       done
9856       IFS=$lt_save_ifs
9857       # Convert to MSYS style.
9858       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9859       ;;
9860     cygwin*)
9861       # Convert to unix form, then to dos form, then back to unix form
9862       # but this time dos style (no spaces!) so that the unix form looks
9863       # like /cygdrive/c/PROGRA~1:/cygdr...
9864       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9865       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9866       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9867       ;;
9868     *)
9869       sys_lib_search_path_spec="$LIB"
9870       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9871         # It is most probably a Windows format PATH.
9872         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9873       else
9874         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9875       fi
9876       # FIXME: find the short name or the path components, as spaces are
9877       # common. (e.g. "Program Files" -> "PROGRA~1")
9878       ;;
9879     esac
9880
9881     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9882     postinstall_cmds='base_file=`basename \${file}`~
9883       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9884       dldir=$destdir/`dirname \$dlpath`~
9885       test -d \$dldir || mkdir -p \$dldir~
9886       $install_prog $dir/$dlname \$dldir/$dlname'
9887     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9888       dlpath=$dir/\$dldll~
9889        $RM \$dlpath'
9890     shlibpath_overrides_runpath=yes
9891     dynamic_linker='Win32 link.exe'
9892     ;;
9893
9894   *)
9895     # Assume MSVC wrapper
9896     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9897     dynamic_linker='Win32 ld.exe'
9898     ;;
9899   esac
9900   # FIXME: first we should search . and the directory the executable is in
9901   shlibpath_var=PATH
9902   ;;
9903
9904 darwin* | rhapsody*)
9905   dynamic_linker="$host_os dyld"
9906   version_type=darwin
9907   need_lib_prefix=no
9908   need_version=no
9909   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9910   soname_spec='${libname}${release}${major}$shared_ext'
9911   shlibpath_overrides_runpath=yes
9912   shlibpath_var=DYLD_LIBRARY_PATH
9913   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9914
9915   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9916   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9917   ;;
9918
9919 dgux*)
9920   version_type=linux # correct to gnu/linux during the next big refactor
9921   need_lib_prefix=no
9922   need_version=no
9923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9924   soname_spec='${libname}${release}${shared_ext}$major'
9925   shlibpath_var=LD_LIBRARY_PATH
9926   ;;
9927
9928 freebsd* | dragonfly*)
9929   # DragonFly does not have aout.  When/if they implement a new
9930   # versioning mechanism, adjust this.
9931   if test -x /usr/bin/objformat; then
9932     objformat=`/usr/bin/objformat`
9933   else
9934     case $host_os in
9935     freebsd[23].*) objformat=aout ;;
9936     *) objformat=elf ;;
9937     esac
9938   fi
9939   version_type=freebsd-$objformat
9940   case $version_type in
9941     freebsd-elf*)
9942       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9943       need_version=no
9944       need_lib_prefix=no
9945       ;;
9946     freebsd-*)
9947       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9948       need_version=yes
9949       ;;
9950   esac
9951   shlibpath_var=LD_LIBRARY_PATH
9952   case $host_os in
9953   freebsd2.*)
9954     shlibpath_overrides_runpath=yes
9955     ;;
9956   freebsd3.[01]* | freebsdelf3.[01]*)
9957     shlibpath_overrides_runpath=yes
9958     hardcode_into_libs=yes
9959     ;;
9960   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9961   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9962     shlibpath_overrides_runpath=no
9963     hardcode_into_libs=yes
9964     ;;
9965   *) # from 4.6 on, and DragonFly
9966     shlibpath_overrides_runpath=yes
9967     hardcode_into_libs=yes
9968     ;;
9969   esac
9970   ;;
9971
9972 gnu*)
9973   version_type=linux # correct to gnu/linux during the next big refactor
9974   need_lib_prefix=no
9975   need_version=no
9976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9977   soname_spec='${libname}${release}${shared_ext}$major'
9978   shlibpath_var=LD_LIBRARY_PATH
9979   shlibpath_overrides_runpath=no
9980   hardcode_into_libs=yes
9981   ;;
9982
9983 haiku*)
9984   version_type=linux # correct to gnu/linux during the next big refactor
9985   need_lib_prefix=no
9986   need_version=no
9987   dynamic_linker="$host_os runtime_loader"
9988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9989   soname_spec='${libname}${release}${shared_ext}$major'
9990   shlibpath_var=LIBRARY_PATH
9991   shlibpath_overrides_runpath=yes
9992   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9993   hardcode_into_libs=yes
9994   ;;
9995
9996 hpux9* | hpux10* | hpux11*)
9997   # Give a soname corresponding to the major version so that dld.sl refuses to
9998   # link against other versions.
9999   version_type=sunos
10000   need_lib_prefix=no
10001   need_version=no
10002   case $host_cpu in
10003   ia64*)
10004     shrext_cmds='.so'
10005     hardcode_into_libs=yes
10006     dynamic_linker="$host_os dld.so"
10007     shlibpath_var=LD_LIBRARY_PATH
10008     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010     soname_spec='${libname}${release}${shared_ext}$major'
10011     if test "X$HPUX_IA64_MODE" = X32; then
10012       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10013     else
10014       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10015     fi
10016     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017     ;;
10018   hppa*64*)
10019     shrext_cmds='.sl'
10020     hardcode_into_libs=yes
10021     dynamic_linker="$host_os dld.sl"
10022     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10023     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025     soname_spec='${libname}${release}${shared_ext}$major'
10026     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10027     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10028     ;;
10029   *)
10030     shrext_cmds='.sl'
10031     dynamic_linker="$host_os dld.sl"
10032     shlibpath_var=SHLIB_PATH
10033     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10035     soname_spec='${libname}${release}${shared_ext}$major'
10036     ;;
10037   esac
10038   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10039   postinstall_cmds='chmod 555 $lib'
10040   # or fails outright, so override atomically:
10041   install_override_mode=555
10042   ;;
10043
10044 interix[3-9]*)
10045   version_type=linux # correct to gnu/linux during the next big refactor
10046   need_lib_prefix=no
10047   need_version=no
10048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10049   soname_spec='${libname}${release}${shared_ext}$major'
10050   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10051   shlibpath_var=LD_LIBRARY_PATH
10052   shlibpath_overrides_runpath=no
10053   hardcode_into_libs=yes
10054   ;;
10055
10056 irix5* | irix6* | nonstopux*)
10057   case $host_os in
10058     nonstopux*) version_type=nonstopux ;;
10059     *)
10060         if test "$lt_cv_prog_gnu_ld" = yes; then
10061                 version_type=linux # correct to gnu/linux during the next big refactor
10062         else
10063                 version_type=irix
10064         fi ;;
10065   esac
10066   need_lib_prefix=no
10067   need_version=no
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10070   case $host_os in
10071   irix5* | nonstopux*)
10072     libsuff= shlibsuff=
10073     ;;
10074   *)
10075     case $LD in # libtool.m4 will add one of these switches to LD
10076     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10077       libsuff= shlibsuff= libmagic=32-bit;;
10078     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10079       libsuff=32 shlibsuff=N32 libmagic=N32;;
10080     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10081       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10082     *) libsuff= shlibsuff= libmagic=never-match;;
10083     esac
10084     ;;
10085   esac
10086   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10087   shlibpath_overrides_runpath=no
10088   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10089   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10090   hardcode_into_libs=yes
10091   ;;
10092
10093 # No shared lib support for Linux oldld, aout, or coff.
10094 linux*oldld* | linux*aout* | linux*coff*)
10095   dynamic_linker=no
10096   ;;
10097
10098 # This must be glibc/ELF.
10099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10100   version_type=linux # correct to gnu/linux during the next big refactor
10101   need_lib_prefix=no
10102   need_version=no
10103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104   soname_spec='${libname}${release}${shared_ext}$major'
10105   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10106   shlibpath_var=LD_LIBRARY_PATH
10107   shlibpath_overrides_runpath=no
10108
10109   # Some binutils ld are patched to set DT_RUNPATH
10110   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10111   $as_echo_n "(cached) " >&6
10112 else
10113   lt_cv_shlibpath_overrides_runpath=no
10114     save_LDFLAGS=$LDFLAGS
10115     save_libdir=$libdir
10116     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10117          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h.  */
10120
10121 int
10122 main ()
10123 {
10124
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_link "$LINENO"; then :
10130   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10131   lt_cv_shlibpath_overrides_runpath=yes
10132 fi
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext \
10135     conftest$ac_exeext conftest.$ac_ext
10136     LDFLAGS=$save_LDFLAGS
10137     libdir=$save_libdir
10138
10139 fi
10140
10141   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10142
10143   # This implies no fast_install, which is unacceptable.
10144   # Some rework will be needed to allow for fast_install
10145   # before this can be enabled.
10146   hardcode_into_libs=yes
10147
10148   # Append ld.so.conf contents to the search path
10149   if test -f /etc/ld.so.conf; then
10150     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10151     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10152   fi
10153
10154   # We used to test for /lib/ld.so.1 and disable shared libraries on
10155   # powerpc, because MkLinux only supported shared libraries with the
10156   # GNU dynamic linker.  Since this was broken with cross compilers,
10157   # most powerpc-linux boxes support dynamic linking these days and
10158   # people can always --disable-shared, the test was removed, and we
10159   # assume the GNU/Linux dynamic linker is in use.
10160   dynamic_linker='GNU/Linux ld.so'
10161   ;;
10162
10163 netbsd*)
10164   version_type=sunos
10165   need_lib_prefix=no
10166   need_version=no
10167   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10169     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10170     dynamic_linker='NetBSD (a.out) ld.so'
10171   else
10172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10173     soname_spec='${libname}${release}${shared_ext}$major'
10174     dynamic_linker='NetBSD ld.elf_so'
10175   fi
10176   shlibpath_var=LD_LIBRARY_PATH
10177   shlibpath_overrides_runpath=yes
10178   hardcode_into_libs=yes
10179   ;;
10180
10181 newsos6)
10182   version_type=linux # correct to gnu/linux during the next big refactor
10183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184   shlibpath_var=LD_LIBRARY_PATH
10185   shlibpath_overrides_runpath=yes
10186   ;;
10187
10188 *nto* | *qnx*)
10189   version_type=qnx
10190   need_lib_prefix=no
10191   need_version=no
10192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193   soname_spec='${libname}${release}${shared_ext}$major'
10194   shlibpath_var=LD_LIBRARY_PATH
10195   shlibpath_overrides_runpath=no
10196   hardcode_into_libs=yes
10197   dynamic_linker='ldqnx.so'
10198   ;;
10199
10200 openbsd*)
10201   version_type=sunos
10202   sys_lib_dlsearch_path_spec="/usr/lib"
10203   need_lib_prefix=no
10204   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10205   case $host_os in
10206     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10207     *)                          need_version=no  ;;
10208   esac
10209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10213     case $host_os in
10214       openbsd2.[89] | openbsd2.[89].*)
10215         shlibpath_overrides_runpath=no
10216         ;;
10217       *)
10218         shlibpath_overrides_runpath=yes
10219         ;;
10220       esac
10221   else
10222     shlibpath_overrides_runpath=yes
10223   fi
10224   ;;
10225
10226 os2*)
10227   libname_spec='$name'
10228   shrext_cmds=".dll"
10229   need_lib_prefix=no
10230   library_names_spec='$libname${shared_ext} $libname.a'
10231   dynamic_linker='OS/2 ld.exe'
10232   shlibpath_var=LIBPATH
10233   ;;
10234
10235 osf3* | osf4* | osf5*)
10236   version_type=osf
10237   need_lib_prefix=no
10238   need_version=no
10239   soname_spec='${libname}${release}${shared_ext}$major'
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241   shlibpath_var=LD_LIBRARY_PATH
10242   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10243   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10244   ;;
10245
10246 rdos*)
10247   dynamic_linker=no
10248   ;;
10249
10250 solaris*)
10251   version_type=linux # correct to gnu/linux during the next big refactor
10252   need_lib_prefix=no
10253   need_version=no
10254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255   soname_spec='${libname}${release}${shared_ext}$major'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   shlibpath_overrides_runpath=yes
10258   hardcode_into_libs=yes
10259   # ldd complains unless libraries are executable
10260   postinstall_cmds='chmod +x $lib'
10261   ;;
10262
10263 sunos4*)
10264   version_type=sunos
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   shlibpath_overrides_runpath=yes
10269   if test "$with_gnu_ld" = yes; then
10270     need_lib_prefix=no
10271   fi
10272   need_version=yes
10273   ;;
10274
10275 sysv4 | sysv4.3*)
10276   version_type=linux # correct to gnu/linux during the next big refactor
10277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278   soname_spec='${libname}${release}${shared_ext}$major'
10279   shlibpath_var=LD_LIBRARY_PATH
10280   case $host_vendor in
10281     sni)
10282       shlibpath_overrides_runpath=no
10283       need_lib_prefix=no
10284       runpath_var=LD_RUN_PATH
10285       ;;
10286     siemens)
10287       need_lib_prefix=no
10288       ;;
10289     motorola)
10290       need_lib_prefix=no
10291       need_version=no
10292       shlibpath_overrides_runpath=no
10293       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10294       ;;
10295   esac
10296   ;;
10297
10298 sysv4*MP*)
10299   if test -d /usr/nec ;then
10300     version_type=linux # correct to gnu/linux during the next big refactor
10301     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10302     soname_spec='$libname${shared_ext}.$major'
10303     shlibpath_var=LD_LIBRARY_PATH
10304   fi
10305   ;;
10306
10307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10308   version_type=freebsd-elf
10309   need_lib_prefix=no
10310   need_version=no
10311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10312   soname_spec='${libname}${release}${shared_ext}$major'
10313   shlibpath_var=LD_LIBRARY_PATH
10314   shlibpath_overrides_runpath=yes
10315   hardcode_into_libs=yes
10316   if test "$with_gnu_ld" = yes; then
10317     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10318   else
10319     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10320     case $host_os in
10321       sco3.2v5*)
10322         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10323         ;;
10324     esac
10325   fi
10326   sys_lib_dlsearch_path_spec='/usr/lib'
10327   ;;
10328
10329 tpf*)
10330   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10331   version_type=linux # correct to gnu/linux during the next big refactor
10332   need_lib_prefix=no
10333   need_version=no
10334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335   shlibpath_var=LD_LIBRARY_PATH
10336   shlibpath_overrides_runpath=no
10337   hardcode_into_libs=yes
10338   ;;
10339
10340 uts4*)
10341   version_type=linux # correct to gnu/linux during the next big refactor
10342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343   soname_spec='${libname}${release}${shared_ext}$major'
10344   shlibpath_var=LD_LIBRARY_PATH
10345   ;;
10346
10347 *)
10348   dynamic_linker=no
10349   ;;
10350 esac
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10352 $as_echo "$dynamic_linker" >&6; }
10353 test "$dynamic_linker" = no && can_build_shared=no
10354
10355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10356 if test "$GCC" = yes; then
10357   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10358 fi
10359
10360 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10361   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10362 fi
10363 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10364   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10365 fi
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10459 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10460 hardcode_action=
10461 if test -n "$hardcode_libdir_flag_spec" ||
10462    test -n "$runpath_var" ||
10463    test "X$hardcode_automatic" = "Xyes" ; then
10464
10465   # We can hardcode non-existent directories.
10466   if test "$hardcode_direct" != no &&
10467      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10468      # have to relink, otherwise we might link with an installed library
10469      # when we should be linking with a yet-to-be-installed one
10470      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10471      test "$hardcode_minus_L" != no; then
10472     # Linking always hardcodes the temporary library directory.
10473     hardcode_action=relink
10474   else
10475     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10476     hardcode_action=immediate
10477   fi
10478 else
10479   # We cannot hardcode anything, or else we can only hardcode existing
10480   # directories.
10481   hardcode_action=unsupported
10482 fi
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10484 $as_echo "$hardcode_action" >&6; }
10485
10486 if test "$hardcode_action" = relink ||
10487    test "$inherit_rpath" = yes; then
10488   # Fast installation is not supported
10489   enable_fast_install=no
10490 elif test "$shlibpath_overrides_runpath" = yes ||
10491      test "$enable_shared" = no; then
10492   # Fast installation is not necessary
10493   enable_fast_install=needless
10494 fi
10495
10496
10497
10498
10499
10500
10501   if test "x$enable_dlopen" != xyes; then
10502   enable_dlopen=unknown
10503   enable_dlopen_self=unknown
10504   enable_dlopen_self_static=unknown
10505 else
10506   lt_cv_dlopen=no
10507   lt_cv_dlopen_libs=
10508
10509   case $host_os in
10510   beos*)
10511     lt_cv_dlopen="load_add_on"
10512     lt_cv_dlopen_libs=
10513     lt_cv_dlopen_self=yes
10514     ;;
10515
10516   mingw* | pw32* | cegcc*)
10517     lt_cv_dlopen="LoadLibrary"
10518     lt_cv_dlopen_libs=
10519     ;;
10520
10521   cygwin*)
10522     lt_cv_dlopen="dlopen"
10523     lt_cv_dlopen_libs=
10524     ;;
10525
10526   darwin*)
10527   # if libdl is installed we need to link against it
10528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10530 if ${ac_cv_lib_dl_dlopen+:} false; then :
10531   $as_echo_n "(cached) " >&6
10532 else
10533   ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-ldl  $LIBS"
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h.  */
10537
10538 /* Override any GCC internal prototype to avoid an error.
10539    Use char because int might match the return type of a GCC
10540    builtin and then its argument prototype would still apply.  */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 char dlopen ();
10545 int
10546 main ()
10547 {
10548 return dlopen ();
10549   ;
10550   return 0;
10551 }
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554   ac_cv_lib_dl_dlopen=yes
10555 else
10556   ac_cv_lib_dl_dlopen=no
10557 fi
10558 rm -f core conftest.err conftest.$ac_objext \
10559     conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10561 fi
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10563 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10564 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10565   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10566 else
10567
10568     lt_cv_dlopen="dyld"
10569     lt_cv_dlopen_libs=
10570     lt_cv_dlopen_self=yes
10571
10572 fi
10573
10574     ;;
10575
10576   *)
10577     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10578 if test "x$ac_cv_func_shl_load" = xyes; then :
10579   lt_cv_dlopen="shl_load"
10580 else
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10582 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10583 if ${ac_cv_lib_dld_shl_load+:} false; then :
10584   $as_echo_n "(cached) " >&6
10585 else
10586   ac_check_lib_save_LIBS=$LIBS
10587 LIBS="-ldld  $LIBS"
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h.  */
10590
10591 /* Override any GCC internal prototype to avoid an error.
10592    Use char because int might match the return type of a GCC
10593    builtin and then its argument prototype would still apply.  */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char shl_load ();
10598 int
10599 main ()
10600 {
10601 return shl_load ();
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_link "$LINENO"; then :
10607   ac_cv_lib_dld_shl_load=yes
10608 else
10609   ac_cv_lib_dld_shl_load=no
10610 fi
10611 rm -f core conftest.err conftest.$ac_objext \
10612     conftest$ac_exeext conftest.$ac_ext
10613 LIBS=$ac_check_lib_save_LIBS
10614 fi
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10616 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10617 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10618   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10619 else
10620   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10621 if test "x$ac_cv_func_dlopen" = xyes; then :
10622   lt_cv_dlopen="dlopen"
10623 else
10624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10626 if ${ac_cv_lib_dl_dlopen+:} false; then :
10627   $as_echo_n "(cached) " >&6
10628 else
10629   ac_check_lib_save_LIBS=$LIBS
10630 LIBS="-ldl  $LIBS"
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h.  */
10633
10634 /* Override any GCC internal prototype to avoid an error.
10635    Use char because int might match the return type of a GCC
10636    builtin and then its argument prototype would still apply.  */
10637 #ifdef __cplusplus
10638 extern "C"
10639 #endif
10640 char dlopen ();
10641 int
10642 main ()
10643 {
10644 return dlopen ();
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_c_try_link "$LINENO"; then :
10650   ac_cv_lib_dl_dlopen=yes
10651 else
10652   ac_cv_lib_dl_dlopen=no
10653 fi
10654 rm -f core conftest.err conftest.$ac_objext \
10655     conftest$ac_exeext conftest.$ac_ext
10656 LIBS=$ac_check_lib_save_LIBS
10657 fi
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10660 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10662 else
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10664 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10665 if ${ac_cv_lib_svld_dlopen+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   ac_check_lib_save_LIBS=$LIBS
10669 LIBS="-lsvld  $LIBS"
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h.  */
10672
10673 /* Override any GCC internal prototype to avoid an error.
10674    Use char because int might match the return type of a GCC
10675    builtin and then its argument prototype would still apply.  */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 char dlopen ();
10680 int
10681 main ()
10682 {
10683 return dlopen ();
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 if ac_fn_c_try_link "$LINENO"; then :
10689   ac_cv_lib_svld_dlopen=yes
10690 else
10691   ac_cv_lib_svld_dlopen=no
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext \
10694     conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10696 fi
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10698 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10699 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10701 else
10702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10703 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10704 if ${ac_cv_lib_dld_dld_link+:} false; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-ldld  $LIBS"
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h.  */
10711
10712 /* Override any GCC internal prototype to avoid an error.
10713    Use char because int might match the return type of a GCC
10714    builtin and then its argument prototype would still apply.  */
10715 #ifdef __cplusplus
10716 extern "C"
10717 #endif
10718 char dld_link ();
10719 int
10720 main ()
10721 {
10722 return dld_link ();
10723   ;
10724   return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728   ac_cv_lib_dld_dld_link=yes
10729 else
10730   ac_cv_lib_dld_dld_link=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext \
10733     conftest$ac_exeext conftest.$ac_ext
10734 LIBS=$ac_check_lib_save_LIBS
10735 fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10737 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10738 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10739   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10740 fi
10741
10742
10743 fi
10744
10745
10746 fi
10747
10748
10749 fi
10750
10751
10752 fi
10753
10754
10755 fi
10756
10757     ;;
10758   esac
10759
10760   if test "x$lt_cv_dlopen" != xno; then
10761     enable_dlopen=yes
10762   else
10763     enable_dlopen=no
10764   fi
10765
10766   case $lt_cv_dlopen in
10767   dlopen)
10768     save_CPPFLAGS="$CPPFLAGS"
10769     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10770
10771     save_LDFLAGS="$LDFLAGS"
10772     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10773
10774     save_LIBS="$LIBS"
10775     LIBS="$lt_cv_dlopen_libs $LIBS"
10776
10777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10778 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10779 if ${lt_cv_dlopen_self+:} false; then :
10780   $as_echo_n "(cached) " >&6
10781 else
10782           if test "$cross_compiling" = yes; then :
10783   lt_cv_dlopen_self=cross
10784 else
10785   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10786   lt_status=$lt_dlunknown
10787   cat > conftest.$ac_ext <<_LT_EOF
10788 #line $LINENO "configure"
10789 #include "confdefs.h"
10790
10791 #if HAVE_DLFCN_H
10792 #include <dlfcn.h>
10793 #endif
10794
10795 #include <stdio.h>
10796
10797 #ifdef RTLD_GLOBAL
10798 #  define LT_DLGLOBAL           RTLD_GLOBAL
10799 #else
10800 #  ifdef DL_GLOBAL
10801 #    define LT_DLGLOBAL         DL_GLOBAL
10802 #  else
10803 #    define LT_DLGLOBAL         0
10804 #  endif
10805 #endif
10806
10807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10808    find out it does not work in some platform. */
10809 #ifndef LT_DLLAZY_OR_NOW
10810 #  ifdef RTLD_LAZY
10811 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10812 #  else
10813 #    ifdef DL_LAZY
10814 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10815 #    else
10816 #      ifdef RTLD_NOW
10817 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10818 #      else
10819 #        ifdef DL_NOW
10820 #          define LT_DLLAZY_OR_NOW      DL_NOW
10821 #        else
10822 #          define LT_DLLAZY_OR_NOW      0
10823 #        endif
10824 #      endif
10825 #    endif
10826 #  endif
10827 #endif
10828
10829 /* When -fvisbility=hidden is used, assume the code has been annotated
10830    correspondingly for the symbols needed.  */
10831 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10832 int fnord () __attribute__((visibility("default")));
10833 #endif
10834
10835 int fnord () { return 42; }
10836 int main ()
10837 {
10838   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10839   int status = $lt_dlunknown;
10840
10841   if (self)
10842     {
10843       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10844       else
10845         {
10846           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10847           else puts (dlerror ());
10848         }
10849       /* dlclose (self); */
10850     }
10851   else
10852     puts (dlerror ());
10853
10854   return status;
10855 }
10856 _LT_EOF
10857   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10858   (eval $ac_link) 2>&5
10859   ac_status=$?
10860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10861   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10862     (./conftest; exit; ) >&5 2>/dev/null
10863     lt_status=$?
10864     case x$lt_status in
10865       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10866       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10867       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10868     esac
10869   else :
10870     # compilation failed
10871     lt_cv_dlopen_self=no
10872   fi
10873 fi
10874 rm -fr conftest*
10875
10876
10877 fi
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10879 $as_echo "$lt_cv_dlopen_self" >&6; }
10880
10881     if test "x$lt_cv_dlopen_self" = xyes; then
10882       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10883       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10884 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10885 if ${lt_cv_dlopen_self_static+:} false; then :
10886   $as_echo_n "(cached) " >&6
10887 else
10888           if test "$cross_compiling" = yes; then :
10889   lt_cv_dlopen_self_static=cross
10890 else
10891   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10892   lt_status=$lt_dlunknown
10893   cat > conftest.$ac_ext <<_LT_EOF
10894 #line $LINENO "configure"
10895 #include "confdefs.h"
10896
10897 #if HAVE_DLFCN_H
10898 #include <dlfcn.h>
10899 #endif
10900
10901 #include <stdio.h>
10902
10903 #ifdef RTLD_GLOBAL
10904 #  define LT_DLGLOBAL           RTLD_GLOBAL
10905 #else
10906 #  ifdef DL_GLOBAL
10907 #    define LT_DLGLOBAL         DL_GLOBAL
10908 #  else
10909 #    define LT_DLGLOBAL         0
10910 #  endif
10911 #endif
10912
10913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10914    find out it does not work in some platform. */
10915 #ifndef LT_DLLAZY_OR_NOW
10916 #  ifdef RTLD_LAZY
10917 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10918 #  else
10919 #    ifdef DL_LAZY
10920 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10921 #    else
10922 #      ifdef RTLD_NOW
10923 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10924 #      else
10925 #        ifdef DL_NOW
10926 #          define LT_DLLAZY_OR_NOW      DL_NOW
10927 #        else
10928 #          define LT_DLLAZY_OR_NOW      0
10929 #        endif
10930 #      endif
10931 #    endif
10932 #  endif
10933 #endif
10934
10935 /* When -fvisbility=hidden is used, assume the code has been annotated
10936    correspondingly for the symbols needed.  */
10937 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10938 int fnord () __attribute__((visibility("default")));
10939 #endif
10940
10941 int fnord () { return 42; }
10942 int main ()
10943 {
10944   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10945   int status = $lt_dlunknown;
10946
10947   if (self)
10948     {
10949       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10950       else
10951         {
10952           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10953           else puts (dlerror ());
10954         }
10955       /* dlclose (self); */
10956     }
10957   else
10958     puts (dlerror ());
10959
10960   return status;
10961 }
10962 _LT_EOF
10963   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10964   (eval $ac_link) 2>&5
10965   ac_status=$?
10966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10968     (./conftest; exit; ) >&5 2>/dev/null
10969     lt_status=$?
10970     case x$lt_status in
10971       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10972       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10973       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10974     esac
10975   else :
10976     # compilation failed
10977     lt_cv_dlopen_self_static=no
10978   fi
10979 fi
10980 rm -fr conftest*
10981
10982
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10985 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10986     fi
10987
10988     CPPFLAGS="$save_CPPFLAGS"
10989     LDFLAGS="$save_LDFLAGS"
10990     LIBS="$save_LIBS"
10991     ;;
10992   esac
10993
10994   case $lt_cv_dlopen_self in
10995   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10996   *) enable_dlopen_self=unknown ;;
10997   esac
10998
10999   case $lt_cv_dlopen_self_static in
11000   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11001   *) enable_dlopen_self_static=unknown ;;
11002   esac
11003 fi
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021 striplib=
11022 old_striplib=
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11024 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11025 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11026   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11027   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11029 $as_echo "yes" >&6; }
11030 else
11031 # FIXME - insert some real tests, host_os isn't really good enough
11032   case $host_os in
11033   darwin*)
11034     if test -n "$STRIP" ; then
11035       striplib="$STRIP -x"
11036       old_striplib="$STRIP -S"
11037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11038 $as_echo "yes" >&6; }
11039     else
11040       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11042     fi
11043     ;;
11044   *)
11045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046 $as_echo "no" >&6; }
11047     ;;
11048   esac
11049 fi
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062   # Report which library types will actually be built
11063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11064 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11066 $as_echo "$can_build_shared" >&6; }
11067
11068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11069 $as_echo_n "checking whether to build shared libraries... " >&6; }
11070   test "$can_build_shared" = "no" && enable_shared=no
11071
11072   # On AIX, shared libraries and static libraries use the same namespace, and
11073   # are all built from PIC.
11074   case $host_os in
11075   aix3*)
11076     test "$enable_shared" = yes && enable_static=no
11077     if test -n "$RANLIB"; then
11078       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11079       postinstall_cmds='$RANLIB $lib'
11080     fi
11081     ;;
11082
11083   aix[4-9]*)
11084     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11085       test "$enable_shared" = yes && enable_static=no
11086     fi
11087     ;;
11088   esac
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11090 $as_echo "$enable_shared" >&6; }
11091
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11093 $as_echo_n "checking whether to build static libraries... " >&6; }
11094   # Make sure either enable_shared or enable_static is yes.
11095   test "$enable_shared" = yes || enable_static=yes
11096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11097 $as_echo "$enable_static" >&6; }
11098
11099
11100
11101
11102 fi
11103 ac_ext=c
11104 ac_cpp='$CPP $CPPFLAGS'
11105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11108
11109 CC="$lt_save_CC"
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125         ac_config_commands="$ac_config_commands libtool"
11126
11127
11128
11129
11130 # Only expand once:
11131
11132
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11134 $as_echo_n "checking whether ln -s works... " >&6; }
11135 LN_S=$as_ln_s
11136 if test "$LN_S" = "ln -s"; then
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11138 $as_echo "yes" >&6; }
11139 else
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11141 $as_echo "no, using $LN_S" >&6; }
11142 fi
11143
11144 for ac_prog in 'bison -y' byacc
11145 do
11146   # Extract the first word of "$ac_prog", so it can be a program name with args.
11147 set dummy $ac_prog; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_prog_YACC+:} false; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   if test -n "$YACC"; then
11154   ac_cv_prog_YACC="$YACC" # Let the user override the test.
11155 else
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11158 do
11159   IFS=$as_save_IFS
11160   test -z "$as_dir" && as_dir=.
11161     for ac_exec_ext in '' $ac_executable_extensions; do
11162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11163     ac_cv_prog_YACC="$ac_prog"
11164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165     break 2
11166   fi
11167 done
11168   done
11169 IFS=$as_save_IFS
11170
11171 fi
11172 fi
11173 YACC=$ac_cv_prog_YACC
11174 if test -n "$YACC"; then
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11176 $as_echo "$YACC" >&6; }
11177 else
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180 fi
11181
11182
11183   test -n "$YACC" && break
11184 done
11185 test -n "$YACC" || YACC="yacc"
11186
11187
11188 am__api_version='1.12'
11189
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11191 $as_echo_n "checking whether build environment is sane... " >&6; }
11192 # Reject unsafe characters in $srcdir or the absolute working directory
11193 # name.  Accept space and tab only in the latter.
11194 am_lf='
11195 '
11196 case `pwd` in
11197   *[\\\"\#\$\&\'\`$am_lf]*)
11198     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11199 esac
11200 case $srcdir in
11201   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
11202     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11203 esac
11204
11205 # Do 'set' in a subshell so we don't clobber the current shell's
11206 # arguments.  Must try -L first in case configure is actually a
11207 # symlink; some systems play weird games with the mod time of symlinks
11208 # (eg FreeBSD returns the mod time of the symlink's containing
11209 # directory).
11210 if (
11211    am_has_slept=no
11212    for am_try in 1 2; do
11213      echo "timestamp, slept: $am_has_slept" > conftest.file
11214      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11215      if test "$*" = "X"; then
11216         # -L didn't work.
11217         set X `ls -t "$srcdir/configure" conftest.file`
11218      fi
11219      if test "$*" != "X $srcdir/configure conftest.file" \
11220         && test "$*" != "X conftest.file $srcdir/configure"; then
11221
11222         # If neither matched, then we have a broken ls.  This can happen
11223         # if, for instance, CONFIG_SHELL is bash and it inherits a
11224         # broken ls alias from the environment.  This has actually
11225         # happened.  Such a system could not be considered "sane".
11226         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11227   alias in your environment" "$LINENO" 5
11228      fi
11229      if test "$2" = conftest.file || test $am_try -eq 2; then
11230        break
11231      fi
11232      # Just in case.
11233      sleep 1
11234      am_has_slept=yes
11235    done
11236    test "$2" = conftest.file
11237    )
11238 then
11239    # Ok.
11240    :
11241 else
11242    as_fn_error $? "newly created file is older than distributed files!
11243 Check your system clock" "$LINENO" 5
11244 fi
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; }
11247 # If we didn't sleep, we still need to ensure time stamps of config.status and
11248 # generated files are strictly newer.
11249 am_sleep_pid=
11250 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11251   ( sleep 1 ) &
11252   am_sleep_pid=$!
11253 fi
11254
11255 rm -f conftest.file
11256
11257 test "$program_prefix" != NONE &&
11258   program_transform_name="s&^&$program_prefix&;$program_transform_name"
11259 # Use a double $ so make ignores it.
11260 test "$program_suffix" != NONE &&
11261   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11262 # Double any \ or $.
11263 # By default was `s,x,x', remove it if useless.
11264 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11265 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11266
11267 # expand $ac_aux_dir to an absolute path
11268 am_aux_dir=`cd $ac_aux_dir && pwd`
11269
11270 if test x"${MISSING+set}" != xset; then
11271   case $am_aux_dir in
11272   *\ * | *\     *)
11273     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11274   *)
11275     MISSING="\${SHELL} $am_aux_dir/missing" ;;
11276   esac
11277 fi
11278 # Use eval to expand $SHELL
11279 if eval "$MISSING --run true"; then
11280   am_missing_run="$MISSING --run "
11281 else
11282   am_missing_run=
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11284 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11285 fi
11286
11287 if test x"${install_sh}" != xset; then
11288   case $am_aux_dir in
11289   *\ * | *\     *)
11290     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11291   *)
11292     install_sh="\${SHELL} $am_aux_dir/install-sh"
11293   esac
11294 fi
11295
11296 # Installed binaries are usually stripped using 'strip' when the user
11297 # run "make install-strip".  However 'strip' might not be the right
11298 # tool to use in cross-compilation environments, therefore Automake
11299 # will honor the 'STRIP' environment variable to overrule this program.
11300 if test "$cross_compiling" != no; then
11301   if test -n "$ac_tool_prefix"; then
11302   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11303 set dummy ${ac_tool_prefix}strip; ac_word=$2
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305 $as_echo_n "checking for $ac_word... " >&6; }
11306 if ${ac_cv_prog_STRIP+:} false; then :
11307   $as_echo_n "(cached) " >&6
11308 else
11309   if test -n "$STRIP"; then
11310   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11311 else
11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11314 do
11315   IFS=$as_save_IFS
11316   test -z "$as_dir" && as_dir=.
11317     for ac_exec_ext in '' $ac_executable_extensions; do
11318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11319     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11321     break 2
11322   fi
11323 done
11324   done
11325 IFS=$as_save_IFS
11326
11327 fi
11328 fi
11329 STRIP=$ac_cv_prog_STRIP
11330 if test -n "$STRIP"; then
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11332 $as_echo "$STRIP" >&6; }
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 fi
11337
11338
11339 fi
11340 if test -z "$ac_cv_prog_STRIP"; then
11341   ac_ct_STRIP=$STRIP
11342   # Extract the first word of "strip", so it can be a program name with args.
11343 set dummy strip; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11347   $as_echo_n "(cached) " >&6
11348 else
11349   if test -n "$ac_ct_STRIP"; then
11350   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355   IFS=$as_save_IFS
11356   test -z "$as_dir" && as_dir=.
11357     for ac_exec_ext in '' $ac_executable_extensions; do
11358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359     ac_cv_prog_ac_ct_STRIP="strip"
11360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361     break 2
11362   fi
11363 done
11364   done
11365 IFS=$as_save_IFS
11366
11367 fi
11368 fi
11369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11370 if test -n "$ac_ct_STRIP"; then
11371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11372 $as_echo "$ac_ct_STRIP" >&6; }
11373 else
11374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11376 fi
11377
11378   if test "x$ac_ct_STRIP" = x; then
11379     STRIP=":"
11380   else
11381     case $cross_compiling:$ac_tool_warned in
11382 yes:)
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11385 ac_tool_warned=yes ;;
11386 esac
11387     STRIP=$ac_ct_STRIP
11388   fi
11389 else
11390   STRIP="$ac_cv_prog_STRIP"
11391 fi
11392
11393 fi
11394 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11395
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11397 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11398 if test -z "$MKDIR_P"; then
11399   if ${ac_cv_path_mkdir+:} false; then :
11400   $as_echo_n "(cached) " >&6
11401 else
11402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11404 do
11405   IFS=$as_save_IFS
11406   test -z "$as_dir" && as_dir=.
11407     for ac_prog in mkdir gmkdir; do
11408          for ac_exec_ext in '' $ac_executable_extensions; do
11409            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11410            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11411              'mkdir (GNU coreutils) '* | \
11412              'mkdir (coreutils) '* | \
11413              'mkdir (fileutils) '4.1*)
11414                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11415                break 3;;
11416            esac
11417          done
11418        done
11419   done
11420 IFS=$as_save_IFS
11421
11422 fi
11423
11424   test -d ./--version && rmdir ./--version
11425   if test "${ac_cv_path_mkdir+set}" = set; then
11426     MKDIR_P="$ac_cv_path_mkdir -p"
11427   else
11428     # As a last resort, use the slow shell script.  Don't cache a
11429     # value for MKDIR_P within a source directory, because that will
11430     # break other packages using the cache if that directory is
11431     # removed, or if the value is a relative name.
11432     MKDIR_P="$ac_install_sh -d"
11433   fi
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11436 $as_echo "$MKDIR_P" >&6; }
11437
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11439 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11440 set x ${MAKE-make}
11441 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11442 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11443   $as_echo_n "(cached) " >&6
11444 else
11445   cat >conftest.make <<\_ACEOF
11446 SHELL = /bin/sh
11447 all:
11448         @echo '@@@%%%=$(MAKE)=@@@%%%'
11449 _ACEOF
11450 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11451 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11452   *@@@%%%=?*=@@@%%%*)
11453     eval ac_cv_prog_make_${ac_make}_set=yes;;
11454   *)
11455     eval ac_cv_prog_make_${ac_make}_set=no;;
11456 esac
11457 rm -f conftest.make
11458 fi
11459 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11461 $as_echo "yes" >&6; }
11462   SET_MAKE=
11463 else
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11466   SET_MAKE="MAKE=${MAKE-make}"
11467 fi
11468
11469 rm -rf .tst 2>/dev/null
11470 mkdir .tst 2>/dev/null
11471 if test -d .tst; then
11472   am__leading_dot=.
11473 else
11474   am__leading_dot=_
11475 fi
11476 rmdir .tst 2>/dev/null
11477
11478 DEPDIR="${am__leading_dot}deps"
11479
11480 ac_config_commands="$ac_config_commands depfiles"
11481
11482
11483 am_make=${MAKE-make}
11484 cat > confinc << 'END'
11485 am__doit:
11486         @echo this is the am__doit target
11487 .PHONY: am__doit
11488 END
11489 # If we don't find an include directive, just comment out the code.
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11491 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11492 am__include="#"
11493 am__quote=
11494 _am_result=none
11495 # First try GNU make style include.
11496 echo "include confinc" > confmf
11497 # Ignore all kinds of additional output from 'make'.
11498 case `$am_make -s -f confmf 2> /dev/null` in #(
11499 *the\ am__doit\ target*)
11500   am__include=include
11501   am__quote=
11502   _am_result=GNU
11503   ;;
11504 esac
11505 # Now try BSD make style include.
11506 if test "$am__include" = "#"; then
11507    echo '.include "confinc"' > confmf
11508    case `$am_make -s -f confmf 2> /dev/null` in #(
11509    *the\ am__doit\ target*)
11510      am__include=.include
11511      am__quote="\""
11512      _am_result=BSD
11513      ;;
11514    esac
11515 fi
11516
11517
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11519 $as_echo "$_am_result" >&6; }
11520 rm -f confinc confmf
11521
11522 # Check whether --enable-dependency-tracking was given.
11523 if test "${enable_dependency_tracking+set}" = set; then :
11524   enableval=$enable_dependency_tracking;
11525 fi
11526
11527 if test "x$enable_dependency_tracking" != xno; then
11528   am_depcomp="$ac_aux_dir/depcomp"
11529   AMDEPBACKSLASH='\'
11530   am__nodep='_no'
11531 fi
11532  if test "x$enable_dependency_tracking" != xno; then
11533   AMDEP_TRUE=
11534   AMDEP_FALSE='#'
11535 else
11536   AMDEP_TRUE='#'
11537   AMDEP_FALSE=
11538 fi
11539
11540
11541 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11542   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11543   # is not polluted with repeated "-I."
11544   am__isrc=' -I$(srcdir)'
11545   # test to see if srcdir already configured
11546   if test -f $srcdir/config.status; then
11547     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11548   fi
11549 fi
11550
11551 # test whether we have cygpath
11552 if test -z "$CYGPATH_W"; then
11553   if (cygpath --version) >/dev/null 2>/dev/null; then
11554     CYGPATH_W='cygpath -w'
11555   else
11556     CYGPATH_W=echo
11557   fi
11558 fi
11559
11560
11561 # Define the identity of the package.
11562
11563  PACKAGE=OpenBSM
11564  VERSION=1.2-alpha4
11565
11566
11567 cat >>confdefs.h <<_ACEOF
11568 #define PACKAGE "$PACKAGE"
11569 _ACEOF
11570
11571
11572 cat >>confdefs.h <<_ACEOF
11573 #define VERSION "$VERSION"
11574 _ACEOF
11575
11576 # Some tools Automake needs.
11577
11578 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11579
11580
11581 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11582
11583
11584 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11585
11586
11587 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11588
11589
11590 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11591
11592 # For better backward compatibility.  To be removed once Automake 1.9.x
11593 # dies out for good.  For more background, see:
11594 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11595 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11596 mkdir_p='$(MKDIR_P)'
11597
11598 # We need awk for the "check" target.  The system "awk" is bad on
11599 # some platforms.
11600 # Always define AMTAR for backward compatibility.  Yes, it's still used
11601 # in the wild :-(  We should find a proper way to deprecate it ...
11602 AMTAR='$${TAR-tar}'
11603
11604 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11605
11606
11607
11608
11609 depcc="$CC"   am_compiler_list=
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11612 $as_echo_n "checking dependency style of $depcc... " >&6; }
11613 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11614   $as_echo_n "(cached) " >&6
11615 else
11616   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11617   # We make a subdir and do the tests there.  Otherwise we can end up
11618   # making bogus files that we don't know about and never remove.  For
11619   # instance it was reported that on HP-UX the gcc test will end up
11620   # making a dummy file named 'D' -- because '-MD' means "put the output
11621   # in D".
11622   rm -rf conftest.dir
11623   mkdir conftest.dir
11624   # Copy depcomp to subdir because otherwise we won't find it if we're
11625   # using a relative directory.
11626   cp "$am_depcomp" conftest.dir
11627   cd conftest.dir
11628   # We will build objects and dependencies in a subdirectory because
11629   # it helps to detect inapplicable dependency modes.  For instance
11630   # both Tru64's cc and ICC support -MD to output dependencies as a
11631   # side effect of compilation, but ICC will put the dependencies in
11632   # the current directory while Tru64 will put them in the object
11633   # directory.
11634   mkdir sub
11635
11636   am_cv_CC_dependencies_compiler_type=none
11637   if test "$am_compiler_list" = ""; then
11638      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11639   fi
11640   am__universal=false
11641   case " $depcc " in #(
11642      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11643      esac
11644
11645   for depmode in $am_compiler_list; do
11646     # Setup a source with many dependencies, because some compilers
11647     # like to wrap large dependency lists on column 80 (with \), and
11648     # we should not choose a depcomp mode which is confused by this.
11649     #
11650     # We need to recreate these files for each test, as the compiler may
11651     # overwrite some of them when testing with obscure command lines.
11652     # This happens at least with the AIX C compiler.
11653     : > sub/conftest.c
11654     for i in 1 2 3 4 5 6; do
11655       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11656       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11657       # Solaris 10 /bin/sh.
11658       echo '/* dummy */' > sub/conftst$i.h
11659     done
11660     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11661
11662     # We check with '-c' and '-o' for the sake of the "dashmstdout"
11663     # mode.  It turns out that the SunPro C++ compiler does not properly
11664     # handle '-M -o', and we need to detect this.  Also, some Intel
11665     # versions had trouble with output in subdirs.
11666     am__obj=sub/conftest.${OBJEXT-o}
11667     am__minus_obj="-o $am__obj"
11668     case $depmode in
11669     gcc)
11670       # This depmode causes a compiler race in universal mode.
11671       test "$am__universal" = false || continue
11672       ;;
11673     nosideeffect)
11674       # After this tag, mechanisms are not by side-effect, so they'll
11675       # only be used when explicitly requested.
11676       if test "x$enable_dependency_tracking" = xyes; then
11677         continue
11678       else
11679         break
11680       fi
11681       ;;
11682     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11683       # This compiler won't grok '-c -o', but also, the minuso test has
11684       # not run yet.  These depmodes are late enough in the game, and
11685       # so weak that their functioning should not be impacted.
11686       am__obj=conftest.${OBJEXT-o}
11687       am__minus_obj=
11688       ;;
11689     none) break ;;
11690     esac
11691     if depmode=$depmode \
11692        source=sub/conftest.c object=$am__obj \
11693        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11694        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11695          >/dev/null 2>conftest.err &&
11696        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11697        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11698        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11699        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11700       # icc doesn't choke on unknown options, it will just issue warnings
11701       # or remarks (even with -Werror).  So we grep stderr for any message
11702       # that says an option was ignored or not supported.
11703       # When given -MP, icc 7.0 and 7.1 complain thusly:
11704       #   icc: Command line warning: ignoring option '-M'; no argument required
11705       # The diagnosis changed in icc 8.0:
11706       #   icc: Command line remark: option '-MP' not supported
11707       if (grep 'ignoring option' conftest.err ||
11708           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11709         am_cv_CC_dependencies_compiler_type=$depmode
11710         break
11711       fi
11712     fi
11713   done
11714
11715   cd ..
11716   rm -rf conftest.dir
11717 else
11718   am_cv_CC_dependencies_compiler_type=none
11719 fi
11720
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11723 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11724 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11725
11726  if
11727   test "x$enable_dependency_tracking" != xno \
11728   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11729   am__fastdepCC_TRUE=
11730   am__fastdepCC_FALSE='#'
11731 else
11732   am__fastdepCC_TRUE='#'
11733   am__fastdepCC_FALSE=
11734 fi
11735
11736
11737
11738
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11740 $as_echo_n "checking for library containing dlsym... " >&6; }
11741 if ${ac_cv_search_dlsym+:} false; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   ac_func_search_save_LIBS=$LIBS
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h.  */
11747
11748 /* Override any GCC internal prototype to avoid an error.
11749    Use char because int might match the return type of a GCC
11750    builtin and then its argument prototype would still apply.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 char dlsym ();
11755 int
11756 main ()
11757 {
11758 return dlsym ();
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 for ac_lib in '' dl; do
11764   if test -z "$ac_lib"; then
11765     ac_res="none required"
11766   else
11767     ac_res=-l$ac_lib
11768     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11769   fi
11770   if ac_fn_c_try_link "$LINENO"; then :
11771   ac_cv_search_dlsym=$ac_res
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext \
11774     conftest$ac_exeext
11775   if ${ac_cv_search_dlsym+:} false; then :
11776   break
11777 fi
11778 done
11779 if ${ac_cv_search_dlsym+:} false; then :
11780
11781 else
11782   ac_cv_search_dlsym=no
11783 fi
11784 rm conftest.$ac_ext
11785 LIBS=$ac_func_search_save_LIBS
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11788 $as_echo "$ac_cv_search_dlsym" >&6; }
11789 ac_res=$ac_cv_search_dlsym
11790 if test "$ac_res" != no; then :
11791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11792
11793 fi
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11796 $as_echo_n "checking for library containing pthread_create... " >&6; }
11797 if ${ac_cv_search_pthread_create+:} false; then :
11798   $as_echo_n "(cached) " >&6
11799 else
11800   ac_func_search_save_LIBS=$LIBS
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h.  */
11803
11804 /* Override any GCC internal prototype to avoid an error.
11805    Use char because int might match the return type of a GCC
11806    builtin and then its argument prototype would still apply.  */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 char pthread_create ();
11811 int
11812 main ()
11813 {
11814 return pthread_create ();
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 for ac_lib in '' pthread; do
11820   if test -z "$ac_lib"; then
11821     ac_res="none required"
11822   else
11823     ac_res=-l$ac_lib
11824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11825   fi
11826   if ac_fn_c_try_link "$LINENO"; then :
11827   ac_cv_search_pthread_create=$ac_res
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext \
11830     conftest$ac_exeext
11831   if ${ac_cv_search_pthread_create+:} false; then :
11832   break
11833 fi
11834 done
11835 if ${ac_cv_search_pthread_create+:} false; then :
11836
11837 else
11838   ac_cv_search_pthread_create=no
11839 fi
11840 rm conftest.$ac_ext
11841 LIBS=$ac_func_search_save_LIBS
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11844 $as_echo "$ac_cv_search_pthread_create" >&6; }
11845 ac_res=$ac_cv_search_pthread_create
11846 if test "$ac_res" != no; then :
11847   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11848
11849 fi
11850
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11852 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11853 if ${ac_cv_search_clock_gettime+:} false; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   ac_func_search_save_LIBS=$LIBS
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char clock_gettime ();
11867 int
11868 main ()
11869 {
11870 return clock_gettime ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 for ac_lib in '' rt; do
11876   if test -z "$ac_lib"; then
11877     ac_res="none required"
11878   else
11879     ac_res=-l$ac_lib
11880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11881   fi
11882   if ac_fn_c_try_link "$LINENO"; then :
11883   ac_cv_search_clock_gettime=$ac_res
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext \
11886     conftest$ac_exeext
11887   if ${ac_cv_search_clock_gettime+:} false; then :
11888   break
11889 fi
11890 done
11891 if ${ac_cv_search_clock_gettime+:} false; then :
11892
11893 else
11894   ac_cv_search_clock_gettime=no
11895 fi
11896 rm conftest.$ac_ext
11897 LIBS=$ac_func_search_save_LIBS
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11900 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11901 ac_res=$ac_cv_search_clock_gettime
11902 if test "$ac_res" != no; then :
11903   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11904
11905 fi
11906
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_connect" >&5
11908 $as_echo_n "checking for library containing SSL_connect... " >&6; }
11909 if ${ac_cv_search_SSL_connect+:} false; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   ac_func_search_save_LIBS=$LIBS
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h.  */
11915
11916 /* Override any GCC internal prototype to avoid an error.
11917    Use char because int might match the return type of a GCC
11918    builtin and then its argument prototype would still apply.  */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 char SSL_connect ();
11923 int
11924 main ()
11925 {
11926 return SSL_connect ();
11927   ;
11928   return 0;
11929 }
11930 _ACEOF
11931 for ac_lib in '' ssl; do
11932   if test -z "$ac_lib"; then
11933     ac_res="none required"
11934   else
11935     ac_res=-l$ac_lib
11936     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11937   fi
11938   if ac_fn_c_try_link "$LINENO"; then :
11939   ac_cv_search_SSL_connect=$ac_res
11940 fi
11941 rm -f core conftest.err conftest.$ac_objext \
11942     conftest$ac_exeext
11943   if ${ac_cv_search_SSL_connect+:} false; then :
11944   break
11945 fi
11946 done
11947 if ${ac_cv_search_SSL_connect+:} false; then :
11948
11949 else
11950   ac_cv_search_SSL_connect=no
11951 fi
11952 rm conftest.$ac_ext
11953 LIBS=$ac_func_search_save_LIBS
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_connect" >&5
11956 $as_echo "$ac_cv_search_SSL_connect" >&6; }
11957 ac_res=$ac_cv_search_SSL_connect
11958 if test "$ac_res" != no; then :
11959   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11960
11961 fi
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing humanize_number" >&5
11964 $as_echo_n "checking for library containing humanize_number... " >&6; }
11965 if ${ac_cv_search_humanize_number+:} false; then :
11966   $as_echo_n "(cached) " >&6
11967 else
11968   ac_func_search_save_LIBS=$LIBS
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h.  */
11971
11972 /* Override any GCC internal prototype to avoid an error.
11973    Use char because int might match the return type of a GCC
11974    builtin and then its argument prototype would still apply.  */
11975 #ifdef __cplusplus
11976 extern "C"
11977 #endif
11978 char humanize_number ();
11979 int
11980 main ()
11981 {
11982 return humanize_number ();
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 for ac_lib in '' util; do
11988   if test -z "$ac_lib"; then
11989     ac_res="none required"
11990   else
11991     ac_res=-l$ac_lib
11992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11993   fi
11994   if ac_fn_c_try_link "$LINENO"; then :
11995   ac_cv_search_humanize_number=$ac_res
11996 fi
11997 rm -f core conftest.err conftest.$ac_objext \
11998     conftest$ac_exeext
11999   if ${ac_cv_search_humanize_number+:} false; then :
12000   break
12001 fi
12002 done
12003 if ${ac_cv_search_humanize_number+:} false; then :
12004
12005 else
12006   ac_cv_search_humanize_number=no
12007 fi
12008 rm conftest.$ac_ext
12009 LIBS=$ac_func_search_save_LIBS
12010 fi
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_humanize_number" >&5
12012 $as_echo "$ac_cv_search_humanize_number" >&6; }
12013 ac_res=$ac_cv_search_humanize_number
12014 if test "$ac_res" != no; then :
12015   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12016
12017 fi
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pidfile_open" >&5
12020 $as_echo_n "checking for library containing pidfile_open... " >&6; }
12021 if ${ac_cv_search_pidfile_open+:} false; then :
12022   $as_echo_n "(cached) " >&6
12023 else
12024   ac_func_search_save_LIBS=$LIBS
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h.  */
12027
12028 /* Override any GCC internal prototype to avoid an error.
12029    Use char because int might match the return type of a GCC
12030    builtin and then its argument prototype would still apply.  */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 char pidfile_open ();
12035 int
12036 main ()
12037 {
12038 return pidfile_open ();
12039   ;
12040   return 0;
12041 }
12042 _ACEOF
12043 for ac_lib in '' util; do
12044   if test -z "$ac_lib"; then
12045     ac_res="none required"
12046   else
12047     ac_res=-l$ac_lib
12048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12049   fi
12050   if ac_fn_c_try_link "$LINENO"; then :
12051   ac_cv_search_pidfile_open=$ac_res
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext \
12054     conftest$ac_exeext
12055   if ${ac_cv_search_pidfile_open+:} false; then :
12056   break
12057 fi
12058 done
12059 if ${ac_cv_search_pidfile_open+:} false; then :
12060
12061 else
12062   ac_cv_search_pidfile_open=no
12063 fi
12064 rm conftest.$ac_ext
12065 LIBS=$ac_func_search_save_LIBS
12066 fi
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pidfile_open" >&5
12068 $as_echo "$ac_cv_search_pidfile_open" >&6; }
12069 ac_res=$ac_cv_search_pidfile_open
12070 if test "$ac_res" != no; then :
12071   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12072
12073 fi
12074
12075
12076 # Checks for header files.
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12078 $as_echo_n "checking for ANSI C header files... " >&6; }
12079 if ${ac_cv_header_stdc+:} false; then :
12080   $as_echo_n "(cached) " >&6
12081 else
12082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h.  */
12084 #include <stdlib.h>
12085 #include <stdarg.h>
12086 #include <string.h>
12087 #include <float.h>
12088
12089 int
12090 main ()
12091 {
12092
12093   ;
12094   return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_c_try_compile "$LINENO"; then :
12098   ac_cv_header_stdc=yes
12099 else
12100   ac_cv_header_stdc=no
12101 fi
12102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103
12104 if test $ac_cv_header_stdc = yes; then
12105   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h.  */
12108 #include <string.h>
12109
12110 _ACEOF
12111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12112   $EGREP "memchr" >/dev/null 2>&1; then :
12113
12114 else
12115   ac_cv_header_stdc=no
12116 fi
12117 rm -f conftest*
12118
12119 fi
12120
12121 if test $ac_cv_header_stdc = yes; then
12122   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125 #include <stdlib.h>
12126
12127 _ACEOF
12128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12129   $EGREP "free" >/dev/null 2>&1; then :
12130
12131 else
12132   ac_cv_header_stdc=no
12133 fi
12134 rm -f conftest*
12135
12136 fi
12137
12138 if test $ac_cv_header_stdc = yes; then
12139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12140   if test "$cross_compiling" = yes; then :
12141   :
12142 else
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145 #include <ctype.h>
12146 #include <stdlib.h>
12147 #if ((' ' & 0x0FF) == 0x020)
12148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12150 #else
12151 # define ISLOWER(c) \
12152                    (('a' <= (c) && (c) <= 'i') \
12153                      || ('j' <= (c) && (c) <= 'r') \
12154                      || ('s' <= (c) && (c) <= 'z'))
12155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12156 #endif
12157
12158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12159 int
12160 main ()
12161 {
12162   int i;
12163   for (i = 0; i < 256; i++)
12164     if (XOR (islower (i), ISLOWER (i))
12165         || toupper (i) != TOUPPER (i))
12166       return 2;
12167   return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_c_try_run "$LINENO"; then :
12171
12172 else
12173   ac_cv_header_stdc=no
12174 fi
12175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12176   conftest.$ac_objext conftest.beam conftest.$ac_ext
12177 fi
12178
12179 fi
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12182 $as_echo "$ac_cv_header_stdc" >&6; }
12183 if test $ac_cv_header_stdc = yes; then
12184
12185 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12186
12187 fi
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12190 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12191 if ${ac_cv_header_sys_wait_h+:} false; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h.  */
12196 #include <sys/types.h>
12197 #include <sys/wait.h>
12198 #ifndef WEXITSTATUS
12199 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12200 #endif
12201 #ifndef WIFEXITED
12202 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12203 #endif
12204
12205 int
12206 main ()
12207 {
12208   int s;
12209   wait (&s);
12210   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12211   ;
12212   return 0;
12213 }
12214 _ACEOF
12215 if ac_fn_c_try_compile "$LINENO"; then :
12216   ac_cv_header_sys_wait_h=yes
12217 else
12218   ac_cv_header_sys_wait_h=no
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12223 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12224 if test $ac_cv_header_sys_wait_h = yes; then
12225
12226 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12227
12228 fi
12229
12230 for ac_header in mach/mach.h stdint.h pthread_np.h printf.h
12231 do :
12232   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12233 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12234 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12235   cat >>confdefs.h <<_ACEOF
12236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12237 _ACEOF
12238
12239 fi
12240
12241 done
12242
12243
12244
12245 $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
12246
12247
12248 # Checks for typedefs, structures, and compiler characteristics.
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12250 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12251 if ${ac_cv_c_const+:} false; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h.  */
12256
12257 int
12258 main ()
12259 {
12260
12261 #ifndef __cplusplus
12262   /* Ultrix mips cc rejects this sort of thing.  */
12263   typedef int charset[2];
12264   const charset cs = { 0, 0 };
12265   /* SunOS 4.1.1 cc rejects this.  */
12266   char const *const *pcpcc;
12267   char **ppc;
12268   /* NEC SVR4.0.2 mips cc rejects this.  */
12269   struct point {int x, y;};
12270   static struct point const zero = {0,0};
12271   /* AIX XL C 1.02.0.0 rejects this.
12272      It does not let you subtract one const X* pointer from another in
12273      an arm of an if-expression whose if-part is not a constant
12274      expression */
12275   const char *g = "string";
12276   pcpcc = &g + (g ? g-g : 0);
12277   /* HPUX 7.0 cc rejects these. */
12278   ++pcpcc;
12279   ppc = (char**) pcpcc;
12280   pcpcc = (char const *const *) ppc;
12281   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12282     char tx;
12283     char *t = &tx;
12284     char const *s = 0 ? (char *) 0 : (char const *) 0;
12285
12286     *t++ = 0;
12287     if (s) return 0;
12288   }
12289   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12290     int x[] = {25, 17};
12291     const int *foo = &x[0];
12292     ++foo;
12293   }
12294   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12295     typedef const int *iptr;
12296     iptr p = 0;
12297     ++p;
12298   }
12299   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12300        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12301     struct s { int j; const int *ap[3]; } bx;
12302     struct s *b = &bx; b->j = 5;
12303   }
12304   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12305     const int foo = 10;
12306     if (!foo) return 0;
12307   }
12308   return !cs[0] && !zero.x;
12309 #endif
12310
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315 if ac_fn_c_try_compile "$LINENO"; then :
12316   ac_cv_c_const=yes
12317 else
12318   ac_cv_c_const=no
12319 fi
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12323 $as_echo "$ac_cv_c_const" >&6; }
12324 if test $ac_cv_c_const = no; then
12325
12326 $as_echo "#define const /**/" >>confdefs.h
12327
12328 fi
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12331 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12332 if ${ac_cv_type_uid_t+:} false; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h.  */
12337 #include <sys/types.h>
12338
12339 _ACEOF
12340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12341   $EGREP "uid_t" >/dev/null 2>&1; then :
12342   ac_cv_type_uid_t=yes
12343 else
12344   ac_cv_type_uid_t=no
12345 fi
12346 rm -f conftest*
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12350 $as_echo "$ac_cv_type_uid_t" >&6; }
12351 if test $ac_cv_type_uid_t = no; then
12352
12353 $as_echo "#define uid_t int" >>confdefs.h
12354
12355
12356 $as_echo "#define gid_t int" >>confdefs.h
12357
12358 fi
12359
12360 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12361 if test "x$ac_cv_type_pid_t" = xyes; then :
12362
12363 else
12364
12365 cat >>confdefs.h <<_ACEOF
12366 #define pid_t int
12367 _ACEOF
12368
12369 fi
12370
12371 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12372 if test "x$ac_cv_type_size_t" = xyes; then :
12373
12374 else
12375
12376 cat >>confdefs.h <<_ACEOF
12377 #define size_t unsigned int
12378 _ACEOF
12379
12380 fi
12381
12382 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12383 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12384
12385 cat >>confdefs.h <<_ACEOF
12386 #define HAVE_STRUCT_STAT_ST_RDEV 1
12387 _ACEOF
12388
12389
12390 fi
12391
12392
12393 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "__key" "ac_cv_member_struct_ipc_perm___key" "
12394 #include <sys/types.h>
12395 #include <sys/ipc.h>
12396
12397 "
12398 if test "x$ac_cv_member_struct_ipc_perm___key" = xyes; then :
12399
12400 $as_echo "#define HAVE_IPC_PERM___KEY /**/" >>confdefs.h
12401
12402 fi
12403
12404
12405 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "_key" "ac_cv_member_struct_ipc_perm__key" "
12406 #include <sys/types.h>
12407 #include <sys/ipc.h>
12408
12409 "
12410 if test "x$ac_cv_member_struct_ipc_perm__key" = xyes; then :
12411
12412 $as_echo "#define HAVE_IPC_PERM__KEY /**/" >>confdefs.h
12413
12414 fi
12415
12416
12417 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "__seq" "ac_cv_member_struct_ipc_perm___seq" "
12418 #include <sys/types.h>
12419 #include <sys/ipc.h>
12420
12421 "
12422 if test "x$ac_cv_member_struct_ipc_perm___seq" = xyes; then :
12423
12424 $as_echo "#define HAVE_IPC_PERM___SEQ /**/" >>confdefs.h
12425
12426 fi
12427
12428
12429 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "_seq" "ac_cv_member_struct_ipc_perm__seq" "
12430 #include <sys/types.h>
12431 #include <sys/ipc.h>
12432
12433 "
12434 if test "x$ac_cv_member_struct_ipc_perm__seq" = xyes; then :
12435
12436 $as_echo "#define HAVE_IPC_PERM__SEQ /**/" >>confdefs.h
12437
12438 fi
12439
12440
12441 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "
12442 #include <sys/types.h>
12443 #include <sys/socket.h>
12444
12445 "
12446 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
12447
12448 $as_echo "#define HAVE_SOCKADDR_STORAGE_SS_LEN /**/" >>confdefs.h
12449
12450 fi
12451
12452
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12454 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12455 if ${ac_cv_header_time+:} false; then :
12456   $as_echo_n "(cached) " >&6
12457 else
12458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h.  */
12460 #include <sys/types.h>
12461 #include <sys/time.h>
12462 #include <time.h>
12463
12464 int
12465 main ()
12466 {
12467 if ((struct tm *) 0)
12468 return 0;
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474   ac_cv_header_time=yes
12475 else
12476   ac_cv_header_time=no
12477 fi
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12481 $as_echo "$ac_cv_header_time" >&6; }
12482 if test $ac_cv_header_time = yes; then
12483
12484 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12485
12486 fi
12487
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12489 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12490 if ${ac_cv_struct_tm+:} false; then :
12491   $as_echo_n "(cached) " >&6
12492 else
12493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h.  */
12495 #include <sys/types.h>
12496 #include <time.h>
12497
12498 int
12499 main ()
12500 {
12501 struct tm tm;
12502                                      int *p = &tm.tm_sec;
12503                                      return !p;
12504   ;
12505   return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_c_try_compile "$LINENO"; then :
12509   ac_cv_struct_tm=time.h
12510 else
12511   ac_cv_struct_tm=sys/time.h
12512 fi
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12516 $as_echo "$ac_cv_struct_tm" >&6; }
12517 if test $ac_cv_struct_tm = sys/time.h; then
12518
12519 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12520
12521 fi
12522
12523
12524 # Checks for library functions.
12525 for ac_header in unistd.h
12526 do :
12527   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12528 if test "x$ac_cv_header_unistd_h" = xyes; then :
12529   cat >>confdefs.h <<_ACEOF
12530 #define HAVE_UNISTD_H 1
12531 _ACEOF
12532
12533 fi
12534
12535 done
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
12538 $as_echo_n "checking for working chown... " >&6; }
12539 if ${ac_cv_func_chown_works+:} false; then :
12540   $as_echo_n "(cached) " >&6
12541 else
12542   if test "$cross_compiling" = yes; then :
12543   ac_cv_func_chown_works=no
12544 else
12545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h.  */
12547 $ac_includes_default
12548 #include <fcntl.h>
12549
12550 int
12551 main ()
12552 {
12553   char *f = "conftest.chown";
12554   struct stat before, after;
12555
12556   if (creat (f, 0600) < 0)
12557     return 1;
12558   if (stat (f, &before) < 0)
12559     return 1;
12560   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12561     return 1;
12562   if (stat (f, &after) < 0)
12563     return 1;
12564   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12565
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_run "$LINENO"; then :
12571   ac_cv_func_chown_works=yes
12572 else
12573   ac_cv_func_chown_works=no
12574 fi
12575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12576   conftest.$ac_objext conftest.beam conftest.$ac_ext
12577 fi
12578
12579 rm -f conftest.chown
12580
12581 fi
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
12583 $as_echo "$ac_cv_func_chown_works" >&6; }
12584 if test $ac_cv_func_chown_works = yes; then
12585
12586 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
12587
12588 fi
12589
12590 for ac_header in vfork.h
12591 do :
12592   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12593 if test "x$ac_cv_header_vfork_h" = xyes; then :
12594   cat >>confdefs.h <<_ACEOF
12595 #define HAVE_VFORK_H 1
12596 _ACEOF
12597
12598 fi
12599
12600 done
12601
12602 for ac_func in fork vfork
12603 do :
12604   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12605 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12606 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12607   cat >>confdefs.h <<_ACEOF
12608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12609 _ACEOF
12610
12611 fi
12612 done
12613
12614 if test "x$ac_cv_func_fork" = xyes; then
12615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12616 $as_echo_n "checking for working fork... " >&6; }
12617 if ${ac_cv_func_fork_works+:} false; then :
12618   $as_echo_n "(cached) " >&6
12619 else
12620   if test "$cross_compiling" = yes; then :
12621   ac_cv_func_fork_works=cross
12622 else
12623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h.  */
12625 $ac_includes_default
12626 int
12627 main ()
12628 {
12629
12630           /* By Ruediger Kuhlmann. */
12631           return fork () < 0;
12632
12633   ;
12634   return 0;
12635 }
12636 _ACEOF
12637 if ac_fn_c_try_run "$LINENO"; then :
12638   ac_cv_func_fork_works=yes
12639 else
12640   ac_cv_func_fork_works=no
12641 fi
12642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12643   conftest.$ac_objext conftest.beam conftest.$ac_ext
12644 fi
12645
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12648 $as_echo "$ac_cv_func_fork_works" >&6; }
12649
12650 else
12651   ac_cv_func_fork_works=$ac_cv_func_fork
12652 fi
12653 if test "x$ac_cv_func_fork_works" = xcross; then
12654   case $host in
12655     *-*-amigaos* | *-*-msdosdjgpp*)
12656       # Override, as these systems have only a dummy fork() stub
12657       ac_cv_func_fork_works=no
12658       ;;
12659     *)
12660       ac_cv_func_fork_works=yes
12661       ;;
12662   esac
12663   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12664 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12665 fi
12666 ac_cv_func_vfork_works=$ac_cv_func_vfork
12667 if test "x$ac_cv_func_vfork" = xyes; then
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12669 $as_echo_n "checking for working vfork... " >&6; }
12670 if ${ac_cv_func_vfork_works+:} false; then :
12671   $as_echo_n "(cached) " >&6
12672 else
12673   if test "$cross_compiling" = yes; then :
12674   ac_cv_func_vfork_works=cross
12675 else
12676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h.  */
12678 /* Thanks to Paul Eggert for this test.  */
12679 $ac_includes_default
12680 #include <sys/wait.h>
12681 #ifdef HAVE_VFORK_H
12682 # include <vfork.h>
12683 #endif
12684 /* On some sparc systems, changes by the child to local and incoming
12685    argument registers are propagated back to the parent.  The compiler
12686    is told about this with #include <vfork.h>, but some compilers
12687    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12688    static variable whose address is put into a register that is
12689    clobbered by the vfork.  */
12690 static void
12691 #ifdef __cplusplus
12692 sparc_address_test (int arg)
12693 # else
12694 sparc_address_test (arg) int arg;
12695 #endif
12696 {
12697   static pid_t child;
12698   if (!child) {
12699     child = vfork ();
12700     if (child < 0) {
12701       perror ("vfork");
12702       _exit(2);
12703     }
12704     if (!child) {
12705       arg = getpid();
12706       write(-1, "", 0);
12707       _exit (arg);
12708     }
12709   }
12710 }
12711
12712 int
12713 main ()
12714 {
12715   pid_t parent = getpid ();
12716   pid_t child;
12717
12718   sparc_address_test (0);
12719
12720   child = vfork ();
12721
12722   if (child == 0) {
12723     /* Here is another test for sparc vfork register problems.  This
12724        test uses lots of local variables, at least as many local
12725        variables as main has allocated so far including compiler
12726        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12727        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12728        reuse the register of parent for one of the local variables,
12729        since it will think that parent can't possibly be used any more
12730        in this routine.  Assigning to the local variable will thus
12731        munge parent in the parent process.  */
12732     pid_t
12733       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12734       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12735     /* Convince the compiler that p..p7 are live; otherwise, it might
12736        use the same hardware register for all 8 local variables.  */
12737     if (p != p1 || p != p2 || p != p3 || p != p4
12738         || p != p5 || p != p6 || p != p7)
12739       _exit(1);
12740
12741     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12742        from child file descriptors.  If the child closes a descriptor
12743        before it execs or exits, this munges the parent's descriptor
12744        as well.  Test for this by closing stdout in the child.  */
12745     _exit(close(fileno(stdout)) != 0);
12746   } else {
12747     int status;
12748     struct stat st;
12749
12750     while (wait(&status) != child)
12751       ;
12752     return (
12753          /* Was there some problem with vforking?  */
12754          child < 0
12755
12756          /* Did the child fail?  (This shouldn't happen.)  */
12757          || status
12758
12759          /* Did the vfork/compiler bug occur?  */
12760          || parent != getpid()
12761
12762          /* Did the file descriptor bug occur?  */
12763          || fstat(fileno(stdout), &st) != 0
12764          );
12765   }
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_run "$LINENO"; then :
12769   ac_cv_func_vfork_works=yes
12770 else
12771   ac_cv_func_vfork_works=no
12772 fi
12773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12774   conftest.$ac_objext conftest.beam conftest.$ac_ext
12775 fi
12776
12777 fi
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12779 $as_echo "$ac_cv_func_vfork_works" >&6; }
12780
12781 fi;
12782 if test "x$ac_cv_func_fork_works" = xcross; then
12783   ac_cv_func_vfork_works=$ac_cv_func_vfork
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12785 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12786 fi
12787
12788 if test "x$ac_cv_func_vfork_works" = xyes; then
12789
12790 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12791
12792 else
12793
12794 $as_echo "#define vfork fork" >>confdefs.h
12795
12796 fi
12797 if test "x$ac_cv_func_fork_works" = xyes; then
12798
12799 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12800
12801 fi
12802
12803 for ac_header in stdlib.h
12804 do :
12805   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12806 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12807   cat >>confdefs.h <<_ACEOF
12808 #define HAVE_STDLIB_H 1
12809 _ACEOF
12810
12811 fi
12812
12813 done
12814
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12816 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12817 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12818   $as_echo_n "(cached) " >&6
12819 else
12820   if test "$cross_compiling" = yes; then :
12821   ac_cv_func_malloc_0_nonnull=no
12822 else
12823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h.  */
12825 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12826 # include <stdlib.h>
12827 #else
12828 char *malloc ();
12829 #endif
12830
12831 int
12832 main ()
12833 {
12834 return ! malloc (0);
12835   ;
12836   return 0;
12837 }
12838 _ACEOF
12839 if ac_fn_c_try_run "$LINENO"; then :
12840   ac_cv_func_malloc_0_nonnull=yes
12841 else
12842   ac_cv_func_malloc_0_nonnull=no
12843 fi
12844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12845   conftest.$ac_objext conftest.beam conftest.$ac_ext
12846 fi
12847
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12850 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12851 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12852
12853 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12854
12855 else
12856   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12857
12858    case " $LIBOBJS " in
12859   *" malloc.$ac_objext "* ) ;;
12860   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12861  ;;
12862 esac
12863
12864
12865 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12866
12867 fi
12868
12869
12870
12871
12872
12873   for ac_header in $ac_header_list
12874 do :
12875   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12877 "
12878 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12879   cat >>confdefs.h <<_ACEOF
12880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12881 _ACEOF
12882
12883 fi
12884
12885 done
12886
12887
12888
12889
12890
12891
12892
12893
12894   for ac_func in $ac_func_list
12895 do :
12896   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12897 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12898 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12899   cat >>confdefs.h <<_ACEOF
12900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12901 _ACEOF
12902
12903 fi
12904 done
12905
12906
12907
12908
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
12911 $as_echo_n "checking for working mktime... " >&6; }
12912 if ${ac_cv_func_working_mktime+:} false; then :
12913   $as_echo_n "(cached) " >&6
12914 else
12915   if test "$cross_compiling" = yes; then :
12916   ac_cv_func_working_mktime=no
12917 else
12918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h.  */
12920 /* Test program from Paul Eggert and Tony Leneis.  */
12921 #ifdef TIME_WITH_SYS_TIME
12922 # include <sys/time.h>
12923 # include <time.h>
12924 #else
12925 # ifdef HAVE_SYS_TIME_H
12926 #  include <sys/time.h>
12927 # else
12928 #  include <time.h>
12929 # endif
12930 #endif
12931
12932 #include <limits.h>
12933 #include <stdlib.h>
12934
12935 #ifdef HAVE_UNISTD_H
12936 # include <unistd.h>
12937 #endif
12938
12939 #ifndef HAVE_ALARM
12940 # define alarm(X) /* empty */
12941 #endif
12942
12943 /* Work around redefinition to rpl_putenv by other config tests.  */
12944 #undef putenv
12945
12946 static time_t time_t_max;
12947 static time_t time_t_min;
12948
12949 /* Values we'll use to set the TZ environment variable.  */
12950 static const char *tz_strings[] = {
12951   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12952   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12953 };
12954 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12955
12956 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12957    Based on a problem report from Andreas Jaeger.  */
12958 static int
12959 spring_forward_gap ()
12960 {
12961   /* glibc (up to about 1998-10-07) failed this test. */
12962   struct tm tm;
12963
12964   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12965      instead of "TZ=America/Vancouver" in order to detect the bug even
12966      on systems that don't support the Olson extension, or don't have the
12967      full zoneinfo tables installed.  */
12968   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12969
12970   tm.tm_year = 98;
12971   tm.tm_mon = 3;
12972   tm.tm_mday = 5;
12973   tm.tm_hour = 2;
12974   tm.tm_min = 0;
12975   tm.tm_sec = 0;
12976   tm.tm_isdst = -1;
12977   return mktime (&tm) != (time_t) -1;
12978 }
12979
12980 static int
12981 mktime_test1 (time_t now)
12982 {
12983   struct tm *lt;
12984   return ! (lt = localtime (&now)) || mktime (lt) == now;
12985 }
12986
12987 static int
12988 mktime_test (time_t now)
12989 {
12990   return (mktime_test1 (now)
12991           && mktime_test1 ((time_t) (time_t_max - now))
12992           && mktime_test1 ((time_t) (time_t_min + now)));
12993 }
12994
12995 static int
12996 irix_6_4_bug ()
12997 {
12998   /* Based on code from Ariel Faigon.  */
12999   struct tm tm;
13000   tm.tm_year = 96;
13001   tm.tm_mon = 3;
13002   tm.tm_mday = 0;
13003   tm.tm_hour = 0;
13004   tm.tm_min = 0;
13005   tm.tm_sec = 0;
13006   tm.tm_isdst = -1;
13007   mktime (&tm);
13008   return tm.tm_mon == 2 && tm.tm_mday == 31;
13009 }
13010
13011 static int
13012 bigtime_test (int j)
13013 {
13014   struct tm tm;
13015   time_t now;
13016   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13017   now = mktime (&tm);
13018   if (now != (time_t) -1)
13019     {
13020       struct tm *lt = localtime (&now);
13021       if (! (lt
13022              && lt->tm_year == tm.tm_year
13023              && lt->tm_mon == tm.tm_mon
13024              && lt->tm_mday == tm.tm_mday
13025              && lt->tm_hour == tm.tm_hour
13026              && lt->tm_min == tm.tm_min
13027              && lt->tm_sec == tm.tm_sec
13028              && lt->tm_yday == tm.tm_yday
13029              && lt->tm_wday == tm.tm_wday
13030              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13031                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13032         return 0;
13033     }
13034   return 1;
13035 }
13036
13037 static int
13038 year_2050_test ()
13039 {
13040   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13041      ignoring leap seconds.  */
13042   unsigned long int answer = 2527315200UL;
13043
13044   struct tm tm;
13045   time_t t;
13046   tm.tm_year = 2050 - 1900;
13047   tm.tm_mon = 2 - 1;
13048   tm.tm_mday = 1;
13049   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13050   tm.tm_isdst = -1;
13051
13052   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13053      instead of "TZ=America/Vancouver" in order to detect the bug even
13054      on systems that don't support the Olson extension, or don't have the
13055      full zoneinfo tables installed.  */
13056   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
13057
13058   t = mktime (&tm);
13059
13060   /* Check that the result is either a failure, or close enough
13061      to the correct answer that we can assume the discrepancy is
13062      due to leap seconds.  */
13063   return (t == (time_t) -1
13064           || (0 < t && answer - 120 <= t && t <= answer + 120));
13065 }
13066
13067 int
13068 main ()
13069 {
13070   time_t t, delta;
13071   int i, j;
13072
13073   /* This test makes some buggy mktime implementations loop.
13074      Give up after 60 seconds; a mktime slower than that
13075      isn't worth using anyway.  */
13076   alarm (60);
13077
13078   for (;;)
13079     {
13080       t = (time_t_max << 1) + 1;
13081       if (t <= time_t_max)
13082         break;
13083       time_t_max = t;
13084     }
13085   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
13086
13087   delta = time_t_max / 997; /* a suitable prime number */
13088   for (i = 0; i < N_STRINGS; i++)
13089     {
13090       if (tz_strings[i])
13091         putenv ((char*) tz_strings[i]);
13092
13093       for (t = 0; t <= time_t_max - delta; t += delta)
13094         if (! mktime_test (t))
13095           return 1;
13096       if (! (mktime_test ((time_t) 1)
13097              && mktime_test ((time_t) (60 * 60))
13098              && mktime_test ((time_t) (60 * 60 * 24))))
13099         return 1;
13100
13101       for (j = 1; ; j <<= 1)
13102         if (! bigtime_test (j))
13103           return 1;
13104         else if (INT_MAX / 2 < j)
13105           break;
13106       if (! bigtime_test (INT_MAX))
13107         return 1;
13108     }
13109   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
13110 }
13111 _ACEOF
13112 if ac_fn_c_try_run "$LINENO"; then :
13113   ac_cv_func_working_mktime=yes
13114 else
13115   ac_cv_func_working_mktime=no
13116 fi
13117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13118   conftest.$ac_objext conftest.beam conftest.$ac_ext
13119 fi
13120
13121 fi
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
13123 $as_echo "$ac_cv_func_working_mktime" >&6; }
13124 if test $ac_cv_func_working_mktime = no; then
13125   case " $LIBOBJS " in
13126   *" mktime.$ac_objext "* ) ;;
13127   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13128  ;;
13129 esac
13130
13131 fi
13132
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13134 $as_echo_n "checking return type of signal handlers... " >&6; }
13135 if ${ac_cv_type_signal+:} false; then :
13136   $as_echo_n "(cached) " >&6
13137 else
13138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h.  */
13140 #include <sys/types.h>
13141 #include <signal.h>
13142
13143 int
13144 main ()
13145 {
13146 return *(signal (0, 0)) (0) == 1;
13147   ;
13148   return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_compile "$LINENO"; then :
13152   ac_cv_type_signal=int
13153 else
13154   ac_cv_type_signal=void
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13159 $as_echo "$ac_cv_type_signal" >&6; }
13160
13161 cat >>confdefs.h <<_ACEOF
13162 #define RETSIGTYPE $ac_cv_type_signal
13163 _ACEOF
13164
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13167 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13168 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   rm -f conftest.sym conftest.file
13172 echo >conftest.file
13173 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13174   if test "$cross_compiling" = yes; then :
13175   ac_cv_func_lstat_dereferences_slashed_symlink=no
13176 else
13177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h.  */
13179 $ac_includes_default
13180 int
13181 main ()
13182 {
13183 struct stat sbuf;
13184      /* Linux will dereference the symlink and fail, as required by POSIX.
13185         That is better in the sense that it means we will not
13186         have to compile and use the lstat wrapper.  */
13187      return lstat ("conftest.sym/", &sbuf) == 0;
13188   ;
13189   return 0;
13190 }
13191 _ACEOF
13192 if ac_fn_c_try_run "$LINENO"; then :
13193   ac_cv_func_lstat_dereferences_slashed_symlink=yes
13194 else
13195   ac_cv_func_lstat_dereferences_slashed_symlink=no
13196 fi
13197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13198   conftest.$ac_objext conftest.beam conftest.$ac_ext
13199 fi
13200
13201 else
13202   # If the `ln -s' command failed, then we probably don't even
13203   # have an lstat function.
13204   ac_cv_func_lstat_dereferences_slashed_symlink=no
13205 fi
13206 rm -f conftest.sym conftest.file
13207
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13210 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13211
13212 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13213
13214 cat >>confdefs.h <<_ACEOF
13215 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13216 _ACEOF
13217
13218
13219 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13220   case " $LIBOBJS " in
13221   *" lstat.$ac_objext "* ) ;;
13222   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13223  ;;
13224 esac
13225
13226 fi
13227
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13229 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
13230 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13231   $as_echo_n "(cached) " >&6
13232 else
13233   if test "$cross_compiling" = yes; then :
13234   ac_cv_func_stat_empty_string_bug=yes
13235 else
13236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h.  */
13238 $ac_includes_default
13239 int
13240 main ()
13241 {
13242 struct stat sbuf;
13243   return stat ("", &sbuf) == 0;
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 if ac_fn_c_try_run "$LINENO"; then :
13249   ac_cv_func_stat_empty_string_bug=no
13250 else
13251   ac_cv_func_stat_empty_string_bug=yes
13252 fi
13253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13254   conftest.$ac_objext conftest.beam conftest.$ac_ext
13255 fi
13256
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13259 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13260 if test $ac_cv_func_stat_empty_string_bug = yes; then
13261   case " $LIBOBJS " in
13262   *" stat.$ac_objext "* ) ;;
13263   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13264  ;;
13265 esac
13266
13267
13268 cat >>confdefs.h <<_ACEOF
13269 #define HAVE_STAT_EMPTY_STRING_BUG 1
13270 _ACEOF
13271
13272 fi
13273
13274 for ac_func in strftime
13275 do :
13276   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13277 if test "x$ac_cv_func_strftime" = xyes; then :
13278   cat >>confdefs.h <<_ACEOF
13279 #define HAVE_STRFTIME 1
13280 _ACEOF
13281
13282 else
13283   # strftime is in -lintl on SCO UNIX.
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13285 $as_echo_n "checking for strftime in -lintl... " >&6; }
13286 if ${ac_cv_lib_intl_strftime+:} false; then :
13287   $as_echo_n "(cached) " >&6
13288 else
13289   ac_check_lib_save_LIBS=$LIBS
13290 LIBS="-lintl  $LIBS"
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h.  */
13293
13294 /* Override any GCC internal prototype to avoid an error.
13295    Use char because int might match the return type of a GCC
13296    builtin and then its argument prototype would still apply.  */
13297 #ifdef __cplusplus
13298 extern "C"
13299 #endif
13300 char strftime ();
13301 int
13302 main ()
13303 {
13304 return strftime ();
13305   ;
13306   return 0;
13307 }
13308 _ACEOF
13309 if ac_fn_c_try_link "$LINENO"; then :
13310   ac_cv_lib_intl_strftime=yes
13311 else
13312   ac_cv_lib_intl_strftime=no
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext \
13315     conftest$ac_exeext conftest.$ac_ext
13316 LIBS=$ac_check_lib_save_LIBS
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13319 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13320 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13321   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13322
13323 LIBS="-lintl $LIBS"
13324 fi
13325
13326 fi
13327 done
13328
13329 for ac_func in arc4random arc4random_buf bzero cap_enter clock_gettime closefrom faccessat fdopendir fstatat ftruncate getresgid getresuid gettimeofday inet_ntoa jail kqueue memset openat pthread_cond_timedwait_relative_np pthread_condattr_setclock pthread_mutex_lock renameat setproctitle sigtimedwait strchr strerror strlcat strlcpy strndup strrchr strstr strtol strtoul unlinkat vis
13330 do :
13331   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13332 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13333 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13334   cat >>confdefs.h <<_ACEOF
13335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13336 _ACEOF
13337
13338 fi
13339 done
13340
13341
13342 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
13343 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
13344 # all of them, and are necessary for OpenBSM.
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h.  */
13347
13348         #include <sys/queue.h>
13349
13350 int
13351 main ()
13352 {
13353
13354
13355         #ifndef LIST_FIRST
13356         #error LIST_FIRST missing
13357         #endif
13358         #ifndef TAILQ_FOREACH_SAFE
13359         #error TAILQ_FOREACH_SAFE
13360         #endif
13361
13362   ;
13363   return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367
13368
13369 $as_echo "#define HAVE_FULL_QUEUE_H /**/" >>confdefs.h
13370
13371
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext \
13374     conftest$ac_exeext conftest.$ac_ext
13375
13376 # Systems may not define key audit system calls, in which case libbsm cannot
13377 # depend on them or it will generate link-time or run-time errors.  Test for
13378 # just one.
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h.  */
13381
13382         #include <stddef.h>
13383
13384         extern int auditon(int, void *, int);
13385
13386 int
13387 main ()
13388 {
13389
13390         int err;
13391
13392         err = auditon(0, NULL, 0);
13393
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 if ac_fn_c_try_link "$LINENO"; then :
13399
13400
13401 $as_echo "#define HAVE_AUDIT_SYSCALLS /**/" >>confdefs.h
13402
13403 have_audit_syscalls=true
13404
13405 else
13406
13407 have_audit_syscalls=false
13408
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext \
13411     conftest$ac_exeext conftest.$ac_ext
13412  if $have_audit_syscalls; then
13413   HAVE_AUDIT_SYSCALLS_TRUE=
13414   HAVE_AUDIT_SYSCALLS_FALSE='#'
13415 else
13416   HAVE_AUDIT_SYSCALLS_TRUE='#'
13417   HAVE_AUDIT_SYSCALLS_FALSE=
13418 fi
13419
13420
13421 #
13422 # We rely on the BSD be32toh() and be32enc()-style endian macros to perform
13423 # byte order conversions.  Availability of these varies considerably -- in
13424 # general, a system might have neither, be32toh(), or be32toh() and be32enc().
13425 # There is also variation in which headers are even present, and whether they
13426 # are macros or functions.  Try to organise the world into some simpler cases.
13427 # The following macros may be set at the end:
13428 #
13429 # USE_ENDIAN_H
13430 # USE_SYS_ENDIAN_H
13431 # USE_MACHINE_ENDIAN_H
13432 # USE_COMPAT_ENDIAN_H
13433 # USE_COMPAT_ENDIAN_ENC_H
13434 #
13435 # First, decide which system endian.h to use.
13436 #
13437 for ac_header in endian.h
13438 do :
13439   ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13440 if test "x$ac_cv_header_endian_h" = xyes; then :
13441   cat >>confdefs.h <<_ACEOF
13442 #define HAVE_ENDIAN_H 1
13443 _ACEOF
13444
13445         have_endian_h=yes
13446
13447 else
13448
13449         have_endian_h=no
13450
13451 fi
13452
13453 done
13454
13455
13456 for ac_header in sys/endian.h
13457 do :
13458   ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13459 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
13460   cat >>confdefs.h <<_ACEOF
13461 #define HAVE_SYS_ENDIAN_H 1
13462 _ACEOF
13463
13464         have_sys_endian_h=yes
13465
13466 else
13467
13468         have_sys_endian_h=no
13469
13470 fi
13471
13472 done
13473
13474
13475 for ac_header in machine/endian.h
13476 do :
13477   ac_fn_c_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
13478 if test "x$ac_cv_header_machine_endian_h" = xyes; then :
13479   cat >>confdefs.h <<_ACEOF
13480 #define HAVE_MACHINE_ENDIAN_H 1
13481 _ACEOF
13482
13483         have_machine_endian_h=yes
13484
13485 else
13486
13487         have_machine_endian_h=no
13488
13489 fi
13490
13491 done
13492
13493
13494 if test $have_endian_h = yes; then
13495
13496 $as_echo "#define USE_ENDIAN_H /**/" >>confdefs.h
13497
13498 elif test $have_sys_endian_h = yes; then
13499
13500 $as_echo "#define USE_SYS_ENDIAN_H /**/" >>confdefs.h
13501
13502 elif test $have_machine_endian_h = yes; then
13503
13504 $as_echo "#define USE_MACHINE_ENDIAN_H /**/" >>confdefs.h
13505
13506 else
13507         as_fn_error $? "no endian.h" "$LINENO" 5
13508 fi
13509
13510 #
13511 # Next, decide if we need to supplement with compat headers.
13512 #
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h.  */
13515
13516         #ifdef USE_ENDIAN_H
13517         #include <endian.h>
13518         #endif
13519         #ifdef USE_SYS_ENDIAN_H
13520         #include <sys/endian.h>
13521         #endif
13522         #ifdef USE_MACHINE_ENDIAN_H
13523         #include <machine/endian.h>
13524         #endif
13525
13526 int
13527 main ()
13528 {
13529
13530         (void)be32toh(0);
13531
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 if ac_fn_c_try_link "$LINENO"; then :
13537
13538 else
13539
13540
13541 $as_echo "#define USE_COMPAT_ENDIAN_H /**/" >>confdefs.h
13542
13543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using compat/endian.h" >&5
13544 $as_echo "using compat/endian.h" >&6; }
13545
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext \
13548     conftest$ac_exeext conftest.$ac_ext
13549
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h.  */
13552
13553         #ifdef USE_ENDIAN_H
13554         #include <endian.h>
13555         #endif
13556         #ifdef USE_SYS_ENDIAN_H
13557         #include <sys/endian.h>
13558         #endif
13559         #ifdef USE_MACHINE_ENDIAN_H
13560         #include <machine/endian.h>
13561         #endif
13562         #ifdef USE_COMPAT_ENDIAN_H
13563         #include "compat/endian.h"
13564         #endif
13565         #include <stdlib.h>
13566
13567 int
13568 main ()
13569 {
13570
13571         int i;
13572
13573         i = bswap16(0);
13574         i = bswap32(0);
13575         i = bswap64(0);
13576         be32enc(NULL, 0);
13577         i = htole64(0);
13578         i = le64toh(0);
13579
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 if ac_fn_c_try_link "$LINENO"; then :
13585
13586 else
13587
13588
13589 $as_echo "#define USE_COMPAT_ENDIAN_ENC_H /**/" >>confdefs.h
13590
13591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using compat/endian_enc.h" >&5
13592 $as_echo "using compat/endian_enc.h" >&6; }
13593
13594 fi
13595 rm -f core conftest.err conftest.$ac_objext \
13596     conftest$ac_exeext conftest.$ac_ext
13597
13598 # Check to see if Mach IPC is used for trigger messages.  If so, use Mach IPC
13599 # instead of the default for sending trigger messages to the audit components.
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/mach/audit_triggers.defs" >&5
13601 $as_echo_n "checking for /usr/include/mach/audit_triggers.defs... " >&6; }
13602 if ${ac_cv_file__usr_include_mach_audit_triggers_defs+:} false; then :
13603   $as_echo_n "(cached) " >&6
13604 else
13605   test "$cross_compiling" = yes &&
13606   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13607 if test -r "/usr/include/mach/audit_triggers.defs"; then
13608   ac_cv_file__usr_include_mach_audit_triggers_defs=yes
13609 else
13610   ac_cv_file__usr_include_mach_audit_triggers_defs=no
13611 fi
13612 fi
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
13614 $as_echo "$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
13615 if test "x$ac_cv_file__usr_include_mach_audit_triggers_defs" = xyes; then :
13616
13617
13618 $as_echo "#define USE_MACH_IPC /**/" >>confdefs.h
13619
13620 use_mach_ipc=true
13621
13622 else
13623
13624 use_mach_ipc=false
13625
13626 fi
13627
13628  if $use_mach_ipc; then
13629   USE_MACH_IPC_TRUE=
13630   USE_MACH_IPC_FALSE='#'
13631 else
13632   USE_MACH_IPC_TRUE='#'
13633   USE_MACH_IPC_FALSE=
13634 fi
13635
13636
13637 ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditdistd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libauditd/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile sys/Makefile sys/bsm/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
13638
13639
13640 cat >confcache <<\_ACEOF
13641 # This file is a shell script that caches the results of configure
13642 # tests run on this system so they can be shared between configure
13643 # scripts and configure runs, see configure's option --config-cache.
13644 # It is not useful on other systems.  If it contains results you don't
13645 # want to keep, you may remove or edit it.
13646 #
13647 # config.status only pays attention to the cache file if you give it
13648 # the --recheck option to rerun configure.
13649 #
13650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13652 # following values.
13653
13654 _ACEOF
13655
13656 # The following way of writing the cache mishandles newlines in values,
13657 # but we know of no workaround that is simple, portable, and efficient.
13658 # So, we kill variables containing newlines.
13659 # Ultrix sh set writes to stderr and can't be redirected directly,
13660 # and sets the high bit in the cache file unless we assign to the vars.
13661 (
13662   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13663     eval ac_val=\$$ac_var
13664     case $ac_val in #(
13665     *${as_nl}*)
13666       case $ac_var in #(
13667       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13668 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13669       esac
13670       case $ac_var in #(
13671       _ | IFS | as_nl) ;; #(
13672       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13673       *) { eval $ac_var=; unset $ac_var;} ;;
13674       esac ;;
13675     esac
13676   done
13677
13678   (set) 2>&1 |
13679     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13680     *${as_nl}ac_space=\ *)
13681       # `set' does not quote correctly, so add quotes: double-quote
13682       # substitution turns \\\\ into \\, and sed turns \\ into \.
13683       sed -n \
13684         "s/'/'\\\\''/g;
13685           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13686       ;; #(
13687     *)
13688       # `set' quotes correctly as required by POSIX, so do not add quotes.
13689       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13690       ;;
13691     esac |
13692     sort
13693 ) |
13694   sed '
13695      /^ac_cv_env_/b end
13696      t clear
13697      :clear
13698      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13699      t end
13700      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13701      :end' >>confcache
13702 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13703   if test -w "$cache_file"; then
13704     if test "x$cache_file" != "x/dev/null"; then
13705       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13706 $as_echo "$as_me: updating cache $cache_file" >&6;}
13707       if test ! -f "$cache_file" || test -h "$cache_file"; then
13708         cat confcache >"$cache_file"
13709       else
13710         case $cache_file in #(
13711         */* | ?:*)
13712           mv -f confcache "$cache_file"$$ &&
13713           mv -f "$cache_file"$$ "$cache_file" ;; #(
13714         *)
13715           mv -f confcache "$cache_file" ;;
13716         esac
13717       fi
13718     fi
13719   else
13720     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13721 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13722   fi
13723 fi
13724 rm -f confcache
13725
13726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13727 # Let make expand exec_prefix.
13728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13729
13730 DEFS=-DHAVE_CONFIG_H
13731
13732 ac_libobjs=
13733 ac_ltlibobjs=
13734 U=
13735 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13736   # 1. Remove the extension, and $U if already installed.
13737   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13738   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13739   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13740   #    will be set to the directory where LIBOBJS objects are built.
13741   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13742   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13743 done
13744 LIBOBJS=$ac_libobjs
13745
13746 LTLIBOBJS=$ac_ltlibobjs
13747
13748
13749 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13750   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13752 fi
13753 if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
13754   as_fn_error $? "conditional \"USE_NATIVE_INCLUDES\" was never defined.
13755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13756 fi
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13758 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13759    if test -n "$am_sleep_pid"; then
13760      # Hide warnings about reused PIDs.
13761      wait $am_sleep_pid 2>/dev/null
13762    fi
13763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13764 $as_echo "done" >&6; }
13765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13766   as_fn_error $? "conditional \"AMDEP\" was never defined.
13767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13768 fi
13769 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13770   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13772 fi
13773  if test -n "$EXEEXT"; then
13774   am__EXEEXT_TRUE=
13775   am__EXEEXT_FALSE='#'
13776 else
13777   am__EXEEXT_TRUE='#'
13778   am__EXEEXT_FALSE=
13779 fi
13780
13781 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
13782   as_fn_error $? "conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
13783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13784 fi
13785 if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
13786   as_fn_error $? "conditional \"USE_MACH_IPC\" was never defined.
13787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13788 fi
13789
13790 : "${CONFIG_STATUS=./config.status}"
13791 ac_write_fail=0
13792 ac_clean_files_save=$ac_clean_files
13793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13796 as_write_fail=0
13797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13798 #! $SHELL
13799 # Generated by $as_me.
13800 # Run this file to recreate the current configuration.
13801 # Compiler output produced by configure, useful for debugging
13802 # configure, is in config.log if it exists.
13803
13804 debug=false
13805 ac_cs_recheck=false
13806 ac_cs_silent=false
13807
13808 SHELL=\${CONFIG_SHELL-$SHELL}
13809 export SHELL
13810 _ASEOF
13811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13812 ## -------------------- ##
13813 ## M4sh Initialization. ##
13814 ## -------------------- ##
13815
13816 # Be more Bourne compatible
13817 DUALCASE=1; export DUALCASE # for MKS sh
13818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13819   emulate sh
13820   NULLCMD=:
13821   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13822   # is contrary to our usage.  Disable this feature.
13823   alias -g '${1+"$@"}'='"$@"'
13824   setopt NO_GLOB_SUBST
13825 else
13826   case `(set -o) 2>/dev/null` in #(
13827   *posix*) :
13828     set -o posix ;; #(
13829   *) :
13830      ;;
13831 esac
13832 fi
13833
13834
13835 as_nl='
13836 '
13837 export as_nl
13838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13839 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13842 # Prefer a ksh shell builtin over an external printf program on Solaris,
13843 # but without wasting forks for bash or zsh.
13844 if test -z "$BASH_VERSION$ZSH_VERSION" \
13845     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13846   as_echo='print -r --'
13847   as_echo_n='print -rn --'
13848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13849   as_echo='printf %s\n'
13850   as_echo_n='printf %s'
13851 else
13852   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13853     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13854     as_echo_n='/usr/ucb/echo -n'
13855   else
13856     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13857     as_echo_n_body='eval
13858       arg=$1;
13859       case $arg in #(
13860       *"$as_nl"*)
13861         expr "X$arg" : "X\\(.*\\)$as_nl";
13862         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13863       esac;
13864       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13865     '
13866     export as_echo_n_body
13867     as_echo_n='sh -c $as_echo_n_body as_echo'
13868   fi
13869   export as_echo_body
13870   as_echo='sh -c $as_echo_body as_echo'
13871 fi
13872
13873 # The user is always right.
13874 if test "${PATH_SEPARATOR+set}" != set; then
13875   PATH_SEPARATOR=:
13876   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13877     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13878       PATH_SEPARATOR=';'
13879   }
13880 fi
13881
13882
13883 # IFS
13884 # We need space, tab and new line, in precisely that order.  Quoting is
13885 # there to prevent editors from complaining about space-tab.
13886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13887 # splitting by setting IFS to empty value.)
13888 IFS=" ""        $as_nl"
13889
13890 # Find who we are.  Look in the path if we contain no directory separator.
13891 as_myself=
13892 case $0 in #((
13893   *[\\/]* ) as_myself=$0 ;;
13894   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $PATH
13896 do
13897   IFS=$as_save_IFS
13898   test -z "$as_dir" && as_dir=.
13899     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13900   done
13901 IFS=$as_save_IFS
13902
13903      ;;
13904 esac
13905 # We did not find ourselves, most probably we were run as `sh COMMAND'
13906 # in which case we are not to be found in the path.
13907 if test "x$as_myself" = x; then
13908   as_myself=$0
13909 fi
13910 if test ! -f "$as_myself"; then
13911   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13912   exit 1
13913 fi
13914
13915 # Unset variables that we do not need and which cause bugs (e.g. in
13916 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13917 # suppresses any "Segmentation fault" message there.  '((' could
13918 # trigger a bug in pdksh 5.2.14.
13919 for as_var in BASH_ENV ENV MAIL MAILPATH
13920 do eval test x\${$as_var+set} = xset \
13921   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13922 done
13923 PS1='$ '
13924 PS2='> '
13925 PS4='+ '
13926
13927 # NLS nuisances.
13928 LC_ALL=C
13929 export LC_ALL
13930 LANGUAGE=C
13931 export LANGUAGE
13932
13933 # CDPATH.
13934 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13935
13936
13937 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13938 # ----------------------------------------
13939 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13940 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13941 # script with STATUS, using 1 if that was 0.
13942 as_fn_error ()
13943 {
13944   as_status=$1; test $as_status -eq 0 && as_status=1
13945   if test "$4"; then
13946     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13947     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13948   fi
13949   $as_echo "$as_me: error: $2" >&2
13950   as_fn_exit $as_status
13951 } # as_fn_error
13952
13953
13954 # as_fn_set_status STATUS
13955 # -----------------------
13956 # Set $? to STATUS, without forking.
13957 as_fn_set_status ()
13958 {
13959   return $1
13960 } # as_fn_set_status
13961
13962 # as_fn_exit STATUS
13963 # -----------------
13964 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13965 as_fn_exit ()
13966 {
13967   set +e
13968   as_fn_set_status $1
13969   exit $1
13970 } # as_fn_exit
13971
13972 # as_fn_unset VAR
13973 # ---------------
13974 # Portably unset VAR.
13975 as_fn_unset ()
13976 {
13977   { eval $1=; unset $1;}
13978 }
13979 as_unset=as_fn_unset
13980 # as_fn_append VAR VALUE
13981 # ----------------------
13982 # Append the text in VALUE to the end of the definition contained in VAR. Take
13983 # advantage of any shell optimizations that allow amortized linear growth over
13984 # repeated appends, instead of the typical quadratic growth present in naive
13985 # implementations.
13986 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13987   eval 'as_fn_append ()
13988   {
13989     eval $1+=\$2
13990   }'
13991 else
13992   as_fn_append ()
13993   {
13994     eval $1=\$$1\$2
13995   }
13996 fi # as_fn_append
13997
13998 # as_fn_arith ARG...
13999 # ------------------
14000 # Perform arithmetic evaluation on the ARGs, and store the result in the
14001 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14002 # must be portable across $(()) and expr.
14003 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14004   eval 'as_fn_arith ()
14005   {
14006     as_val=$(( $* ))
14007   }'
14008 else
14009   as_fn_arith ()
14010   {
14011     as_val=`expr "$@" || test $? -eq 1`
14012   }
14013 fi # as_fn_arith
14014
14015
14016 if expr a : '\(a\)' >/dev/null 2>&1 &&
14017    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14018   as_expr=expr
14019 else
14020   as_expr=false
14021 fi
14022
14023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14024   as_basename=basename
14025 else
14026   as_basename=false
14027 fi
14028
14029 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14030   as_dirname=dirname
14031 else
14032   as_dirname=false
14033 fi
14034
14035 as_me=`$as_basename -- "$0" ||
14036 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14037          X"$0" : 'X\(//\)$' \| \
14038          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14039 $as_echo X/"$0" |
14040     sed '/^.*\/\([^/][^/]*\)\/*$/{
14041             s//\1/
14042             q
14043           }
14044           /^X\/\(\/\/\)$/{
14045             s//\1/
14046             q
14047           }
14048           /^X\/\(\/\).*/{
14049             s//\1/
14050             q
14051           }
14052           s/.*/./; q'`
14053
14054 # Avoid depending upon Character Ranges.
14055 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14056 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14057 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14058 as_cr_digits='0123456789'
14059 as_cr_alnum=$as_cr_Letters$as_cr_digits
14060
14061 ECHO_C= ECHO_N= ECHO_T=
14062 case `echo -n x` in #(((((
14063 -n*)
14064   case `echo 'xy\c'` in
14065   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14066   xy)  ECHO_C='\c';;
14067   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14068        ECHO_T=' ';;
14069   esac;;
14070 *)
14071   ECHO_N='-n';;
14072 esac
14073
14074 rm -f conf$$ conf$$.exe conf$$.file
14075 if test -d conf$$.dir; then
14076   rm -f conf$$.dir/conf$$.file
14077 else
14078   rm -f conf$$.dir
14079   mkdir conf$$.dir 2>/dev/null
14080 fi
14081 if (echo >conf$$.file) 2>/dev/null; then
14082   if ln -s conf$$.file conf$$ 2>/dev/null; then
14083     as_ln_s='ln -s'
14084     # ... but there are two gotchas:
14085     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14086     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14087     # In both cases, we have to default to `cp -pR'.
14088     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14089       as_ln_s='cp -pR'
14090   elif ln conf$$.file conf$$ 2>/dev/null; then
14091     as_ln_s=ln
14092   else
14093     as_ln_s='cp -pR'
14094   fi
14095 else
14096   as_ln_s='cp -pR'
14097 fi
14098 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14099 rmdir conf$$.dir 2>/dev/null
14100
14101
14102 # as_fn_mkdir_p
14103 # -------------
14104 # Create "$as_dir" as a directory, including parents if necessary.
14105 as_fn_mkdir_p ()
14106 {
14107
14108   case $as_dir in #(
14109   -*) as_dir=./$as_dir;;
14110   esac
14111   test -d "$as_dir" || eval $as_mkdir_p || {
14112     as_dirs=
14113     while :; do
14114       case $as_dir in #(
14115       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14116       *) as_qdir=$as_dir;;
14117       esac
14118       as_dirs="'$as_qdir' $as_dirs"
14119       as_dir=`$as_dirname -- "$as_dir" ||
14120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14121          X"$as_dir" : 'X\(//\)[^/]' \| \
14122          X"$as_dir" : 'X\(//\)$' \| \
14123          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14124 $as_echo X"$as_dir" |
14125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14126             s//\1/
14127             q
14128           }
14129           /^X\(\/\/\)[^/].*/{
14130             s//\1/
14131             q
14132           }
14133           /^X\(\/\/\)$/{
14134             s//\1/
14135             q
14136           }
14137           /^X\(\/\).*/{
14138             s//\1/
14139             q
14140           }
14141           s/.*/./; q'`
14142       test -d "$as_dir" && break
14143     done
14144     test -z "$as_dirs" || eval "mkdir $as_dirs"
14145   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14146
14147
14148 } # as_fn_mkdir_p
14149 if mkdir -p . 2>/dev/null; then
14150   as_mkdir_p='mkdir -p "$as_dir"'
14151 else
14152   test -d ./-p && rmdir ./-p
14153   as_mkdir_p=false
14154 fi
14155
14156
14157 # as_fn_executable_p FILE
14158 # -----------------------
14159 # Test if FILE is an executable regular file.
14160 as_fn_executable_p ()
14161 {
14162   test -f "$1" && test -x "$1"
14163 } # as_fn_executable_p
14164 as_test_x='test -x'
14165 as_executable_p=as_fn_executable_p
14166
14167 # Sed expression to map a string onto a valid CPP name.
14168 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14169
14170 # Sed expression to map a string onto a valid variable name.
14171 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14172
14173
14174 exec 6>&1
14175 ## ----------------------------------- ##
14176 ## Main body of $CONFIG_STATUS script. ##
14177 ## ----------------------------------- ##
14178 _ASEOF
14179 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14180
14181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14182 # Save the log message, to keep $0 and so on meaningful, and to
14183 # report actual input values of CONFIG_FILES etc. instead of their
14184 # values after options handling.
14185 ac_log="
14186 This file was extended by OpenBSM $as_me 1.2-alpha4, which was
14187 generated by GNU Autoconf 2.69.  Invocation command line was
14188
14189   CONFIG_FILES    = $CONFIG_FILES
14190   CONFIG_HEADERS  = $CONFIG_HEADERS
14191   CONFIG_LINKS    = $CONFIG_LINKS
14192   CONFIG_COMMANDS = $CONFIG_COMMANDS
14193   $ $0 $@
14194
14195 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14196 "
14197
14198 _ACEOF
14199
14200 case $ac_config_files in *"
14201 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14202 esac
14203
14204 case $ac_config_headers in *"
14205 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14206 esac
14207
14208
14209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14210 # Files that config.status was made for.
14211 config_files="$ac_config_files"
14212 config_headers="$ac_config_headers"
14213 config_commands="$ac_config_commands"
14214
14215 _ACEOF
14216
14217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14218 ac_cs_usage="\
14219 \`$as_me' instantiates files and other configuration actions
14220 from templates according to the current configuration.  Unless the files
14221 and actions are specified as TAGs, all are instantiated by default.
14222
14223 Usage: $0 [OPTION]... [TAG]...
14224
14225   -h, --help       print this help, then exit
14226   -V, --version    print version number and configuration settings, then exit
14227       --config     print configuration, then exit
14228   -q, --quiet, --silent
14229                    do not print progress messages
14230   -d, --debug      don't remove temporary files
14231       --recheck    update $as_me by reconfiguring in the same conditions
14232       --file=FILE[:TEMPLATE]
14233                    instantiate the configuration file FILE
14234       --header=FILE[:TEMPLATE]
14235                    instantiate the configuration header FILE
14236
14237 Configuration files:
14238 $config_files
14239
14240 Configuration headers:
14241 $config_headers
14242
14243 Configuration commands:
14244 $config_commands
14245
14246 Report bugs to <trustedbsd-audit@TrustedBSD.org>."
14247
14248 _ACEOF
14249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14250 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14251 ac_cs_version="\\
14252 OpenBSM config.status 1.2-alpha4
14253 configured by $0, generated by GNU Autoconf 2.69,
14254   with options \\"\$ac_cs_config\\"
14255
14256 Copyright (C) 2012 Free Software Foundation, Inc.
14257 This config.status script is free software; the Free Software Foundation
14258 gives unlimited permission to copy, distribute and modify it."
14259
14260 ac_pwd='$ac_pwd'
14261 srcdir='$srcdir'
14262 INSTALL='$INSTALL'
14263 MKDIR_P='$MKDIR_P'
14264 AWK='$AWK'
14265 test -n "\$AWK" || AWK=awk
14266 _ACEOF
14267
14268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269 # The default lists apply if the user does not specify any file.
14270 ac_need_defaults=:
14271 while test $# != 0
14272 do
14273   case $1 in
14274   --*=?*)
14275     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14276     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14277     ac_shift=:
14278     ;;
14279   --*=)
14280     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14281     ac_optarg=
14282     ac_shift=:
14283     ;;
14284   *)
14285     ac_option=$1
14286     ac_optarg=$2
14287     ac_shift=shift
14288     ;;
14289   esac
14290
14291   case $ac_option in
14292   # Handling of the options.
14293   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14294     ac_cs_recheck=: ;;
14295   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14296     $as_echo "$ac_cs_version"; exit ;;
14297   --config | --confi | --conf | --con | --co | --c )
14298     $as_echo "$ac_cs_config"; exit ;;
14299   --debug | --debu | --deb | --de | --d | -d )
14300     debug=: ;;
14301   --file | --fil | --fi | --f )
14302     $ac_shift
14303     case $ac_optarg in
14304     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14305     '') as_fn_error $? "missing file argument" ;;
14306     esac
14307     as_fn_append CONFIG_FILES " '$ac_optarg'"
14308     ac_need_defaults=false;;
14309   --header | --heade | --head | --hea )
14310     $ac_shift
14311     case $ac_optarg in
14312     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14313     esac
14314     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14315     ac_need_defaults=false;;
14316   --he | --h)
14317     # Conflict between --help and --header
14318     as_fn_error $? "ambiguous option: \`$1'
14319 Try \`$0 --help' for more information.";;
14320   --help | --hel | -h )
14321     $as_echo "$ac_cs_usage"; exit ;;
14322   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14323   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14324     ac_cs_silent=: ;;
14325
14326   # This is an error.
14327   -*) as_fn_error $? "unrecognized option: \`$1'
14328 Try \`$0 --help' for more information." ;;
14329
14330   *) as_fn_append ac_config_targets " $1"
14331      ac_need_defaults=false ;;
14332
14333   esac
14334   shift
14335 done
14336
14337 ac_configure_extra_args=
14338
14339 if $ac_cs_silent; then
14340   exec 6>/dev/null
14341   ac_configure_extra_args="$ac_configure_extra_args --silent"
14342 fi
14343
14344 _ACEOF
14345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14346 if \$ac_cs_recheck; then
14347   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14348   shift
14349   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14350   CONFIG_SHELL='$SHELL'
14351   export CONFIG_SHELL
14352   exec "\$@"
14353 fi
14354
14355 _ACEOF
14356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14357 exec 5>>config.log
14358 {
14359   echo
14360   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14361 ## Running $as_me. ##
14362 _ASBOX
14363   $as_echo "$ac_log"
14364 } >&5
14365
14366 _ACEOF
14367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14368 #
14369 # INIT-COMMANDS
14370 #
14371
14372
14373 # The HP-UX ksh and POSIX shell print the target directory to stdout
14374 # if CDPATH is set.
14375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14376
14377 sed_quote_subst='$sed_quote_subst'
14378 double_quote_subst='$double_quote_subst'
14379 delay_variable_subst='$delay_variable_subst'
14380 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14381 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14382 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14383 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14384 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14385 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14388 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14389 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14390 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14391 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14392 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14393 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14394 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14395 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14396 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14397 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14398 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14399 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14400 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14401 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14402 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14403 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14404 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14405 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14406 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14407 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14408 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14409 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14410 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14411 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14412 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14413 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14414 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14415 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14416 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14417 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14418 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14419 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14420 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14421 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14422 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14423 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14424 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14425 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14426 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14427 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14428 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14429 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14430 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14431 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14432 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14433 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14434 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14435 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14436 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14437 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14438 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14439 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14440 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14441 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14442 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14443 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14444 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14445 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14446 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14447 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14448 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14449 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14450 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14451 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14452 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14453 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14454 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14455 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14456 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14457 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14458 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14459 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14460 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14461 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14462 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14463 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14464 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14465 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14466 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14467 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14468 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14469 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14470 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14471 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14472 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14473 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14474 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14475 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14476 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14477 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14478 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14479 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14480 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14481 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14482 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14483 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14484 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14485 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14486 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14487 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14488 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14489 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14490 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14491 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14492 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14493 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14494 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14495 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14496 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14497 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14498 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14499 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14500 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14501 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14502 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14503 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14504 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14505 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14506 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14507 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14508 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14509 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14510
14511 LTCC='$LTCC'
14512 LTCFLAGS='$LTCFLAGS'
14513 compiler='$compiler_DEFAULT'
14514
14515 # A function that is used when there is no print builtin or printf.
14516 func_fallback_echo ()
14517 {
14518   eval 'cat <<_LTECHO_EOF
14519 \$1
14520 _LTECHO_EOF'
14521 }
14522
14523 # Quote evaled strings.
14524 for var in SHELL \
14525 ECHO \
14526 PATH_SEPARATOR \
14527 SED \
14528 GREP \
14529 EGREP \
14530 FGREP \
14531 LD \
14532 NM \
14533 LN_S \
14534 lt_SP2NL \
14535 lt_NL2SP \
14536 reload_flag \
14537 OBJDUMP \
14538 deplibs_check_method \
14539 file_magic_cmd \
14540 file_magic_glob \
14541 want_nocaseglob \
14542 DLLTOOL \
14543 sharedlib_from_linklib_cmd \
14544 AR \
14545 AR_FLAGS \
14546 archiver_list_spec \
14547 STRIP \
14548 RANLIB \
14549 CC \
14550 CFLAGS \
14551 compiler \
14552 lt_cv_sys_global_symbol_pipe \
14553 lt_cv_sys_global_symbol_to_cdecl \
14554 lt_cv_sys_global_symbol_to_c_name_address \
14555 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14556 nm_file_list_spec \
14557 lt_prog_compiler_no_builtin_flag \
14558 lt_prog_compiler_pic \
14559 lt_prog_compiler_wl \
14560 lt_prog_compiler_static \
14561 lt_cv_prog_compiler_c_o \
14562 need_locks \
14563 MANIFEST_TOOL \
14564 DSYMUTIL \
14565 NMEDIT \
14566 LIPO \
14567 OTOOL \
14568 OTOOL64 \
14569 shrext_cmds \
14570 export_dynamic_flag_spec \
14571 whole_archive_flag_spec \
14572 compiler_needs_object \
14573 with_gnu_ld \
14574 allow_undefined_flag \
14575 no_undefined_flag \
14576 hardcode_libdir_flag_spec \
14577 hardcode_libdir_separator \
14578 exclude_expsyms \
14579 include_expsyms \
14580 file_list_spec \
14581 variables_saved_for_relink \
14582 libname_spec \
14583 library_names_spec \
14584 soname_spec \
14585 install_override_mode \
14586 finish_eval \
14587 old_striplib \
14588 striplib; do
14589     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14590     *[\\\\\\\`\\"\\\$]*)
14591       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14592       ;;
14593     *)
14594       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14595       ;;
14596     esac
14597 done
14598
14599 # Double-quote double-evaled strings.
14600 for var in reload_cmds \
14601 old_postinstall_cmds \
14602 old_postuninstall_cmds \
14603 old_archive_cmds \
14604 extract_expsyms_cmds \
14605 old_archive_from_new_cmds \
14606 old_archive_from_expsyms_cmds \
14607 archive_cmds \
14608 archive_expsym_cmds \
14609 module_cmds \
14610 module_expsym_cmds \
14611 export_symbols_cmds \
14612 prelink_cmds \
14613 postlink_cmds \
14614 postinstall_cmds \
14615 postuninstall_cmds \
14616 finish_cmds \
14617 sys_lib_search_path_spec \
14618 sys_lib_dlsearch_path_spec; do
14619     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14620     *[\\\\\\\`\\"\\\$]*)
14621       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14622       ;;
14623     *)
14624       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14625       ;;
14626     esac
14627 done
14628
14629 ac_aux_dir='$ac_aux_dir'
14630 xsi_shell='$xsi_shell'
14631 lt_shell_append='$lt_shell_append'
14632
14633 # See if we are running on zsh, and set the options which allow our
14634 # commands through without removal of \ escapes INIT.
14635 if test -n "\${ZSH_VERSION+set}" ; then
14636    setopt NO_GLOB_SUBST
14637 fi
14638
14639
14640     PACKAGE='$PACKAGE'
14641     VERSION='$VERSION'
14642     TIMESTAMP='$TIMESTAMP'
14643     RM='$RM'
14644     ofile='$ofile'
14645
14646
14647
14648 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14649
14650 _ACEOF
14651
14652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14653
14654 # Handling of arguments.
14655 for ac_config_target in $ac_config_targets
14656 do
14657   case $ac_config_target in
14658     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
14659     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14660     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14661     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14662     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
14663     "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
14664     "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
14665     "bin/auditdistd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditdistd/Makefile" ;;
14666     "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
14667     "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
14668     "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
14669     "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
14670     "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
14671     "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
14672     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14673     "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
14674     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14675     "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
14676     "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
14677     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14678     "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
14679     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14680
14681   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14682   esac
14683 done
14684
14685
14686 # If the user did not use the arguments to specify the items to instantiate,
14687 # then the envvar interface is used.  Set only those that are not.
14688 # We use the long form for the default assignment because of an extremely
14689 # bizarre bug on SunOS 4.1.3.
14690 if $ac_need_defaults; then
14691   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14692   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14693   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14694 fi
14695
14696 # Have a temporary directory for convenience.  Make it in the build tree
14697 # simply because there is no reason against having it here, and in addition,
14698 # creating and moving files from /tmp can sometimes cause problems.
14699 # Hook for its removal unless debugging.
14700 # Note that there is a small window in which the directory will not be cleaned:
14701 # after its creation but before its name has been assigned to `$tmp'.
14702 $debug ||
14703 {
14704   tmp= ac_tmp=
14705   trap 'exit_status=$?
14706   : "${ac_tmp:=$tmp}"
14707   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14708 ' 0
14709   trap 'as_fn_exit 1' 1 2 13 15
14710 }
14711 # Create a (secure) tmp directory for tmp files.
14712
14713 {
14714   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14715   test -d "$tmp"
14716 }  ||
14717 {
14718   tmp=./conf$$-$RANDOM
14719   (umask 077 && mkdir "$tmp")
14720 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14721 ac_tmp=$tmp
14722
14723 # Set up the scripts for CONFIG_FILES section.
14724 # No need to generate them if there are no CONFIG_FILES.
14725 # This happens for instance with `./config.status config.h'.
14726 if test -n "$CONFIG_FILES"; then
14727
14728
14729 ac_cr=`echo X | tr X '\015'`
14730 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14731 # But we know of no other shell where ac_cr would be empty at this
14732 # point, so we can use a bashism as a fallback.
14733 if test "x$ac_cr" = x; then
14734   eval ac_cr=\$\'\\r\'
14735 fi
14736 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14737 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14738   ac_cs_awk_cr='\\r'
14739 else
14740   ac_cs_awk_cr=$ac_cr
14741 fi
14742
14743 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14744 _ACEOF
14745
14746
14747 {
14748   echo "cat >conf$$subs.awk <<_ACEOF" &&
14749   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14750   echo "_ACEOF"
14751 } >conf$$subs.sh ||
14752   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14753 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14754 ac_delim='%!_!# '
14755 for ac_last_try in false false false false false :; do
14756   . ./conf$$subs.sh ||
14757     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14758
14759   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14760   if test $ac_delim_n = $ac_delim_num; then
14761     break
14762   elif $ac_last_try; then
14763     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14764   else
14765     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14766   fi
14767 done
14768 rm -f conf$$subs.sh
14769
14770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14771 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14772 _ACEOF
14773 sed -n '
14774 h
14775 s/^/S["/; s/!.*/"]=/
14776 p
14777 g
14778 s/^[^!]*!//
14779 :repl
14780 t repl
14781 s/'"$ac_delim"'$//
14782 t delim
14783 :nl
14784 h
14785 s/\(.\{148\}\)..*/\1/
14786 t more1
14787 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14788 p
14789 n
14790 b repl
14791 :more1
14792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14793 p
14794 g
14795 s/.\{148\}//
14796 t nl
14797 :delim
14798 h
14799 s/\(.\{148\}\)..*/\1/
14800 t more2
14801 s/["\\]/\\&/g; s/^/"/; s/$/"/
14802 p
14803 b
14804 :more2
14805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14806 p
14807 g
14808 s/.\{148\}//
14809 t delim
14810 ' <conf$$subs.awk | sed '
14811 /^[^""]/{
14812   N
14813   s/\n//
14814 }
14815 ' >>$CONFIG_STATUS || ac_write_fail=1
14816 rm -f conf$$subs.awk
14817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14818 _ACAWK
14819 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14820   for (key in S) S_is_set[key] = 1
14821   FS = "\a"
14822
14823 }
14824 {
14825   line = $ 0
14826   nfields = split(line, field, "@")
14827   substed = 0
14828   len = length(field[1])
14829   for (i = 2; i < nfields; i++) {
14830     key = field[i]
14831     keylen = length(key)
14832     if (S_is_set[key]) {
14833       value = S[key]
14834       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14835       len += length(value) + length(field[++i])
14836       substed = 1
14837     } else
14838       len += 1 + keylen
14839   }
14840
14841   print line
14842 }
14843
14844 _ACAWK
14845 _ACEOF
14846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14847 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14848   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14849 else
14850   cat
14851 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14852   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14853 _ACEOF
14854
14855 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14856 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14857 # trailing colons and then remove the whole line if VPATH becomes empty
14858 # (actually we leave an empty line to preserve line numbers).
14859 if test "x$srcdir" = x.; then
14860   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14861 h
14862 s///
14863 s/^/:/
14864 s/[      ]*$/:/
14865 s/:\$(srcdir):/:/g
14866 s/:\${srcdir}:/:/g
14867 s/:@srcdir@:/:/g
14868 s/^:*//
14869 s/:*$//
14870 x
14871 s/\(=[   ]*\).*/\1/
14872 G
14873 s/\n//
14874 s/^[^=]*=[       ]*$//
14875 }'
14876 fi
14877
14878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14879 fi # test -n "$CONFIG_FILES"
14880
14881 # Set up the scripts for CONFIG_HEADERS section.
14882 # No need to generate them if there are no CONFIG_HEADERS.
14883 # This happens for instance with `./config.status Makefile'.
14884 if test -n "$CONFIG_HEADERS"; then
14885 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14886 BEGIN {
14887 _ACEOF
14888
14889 # Transform confdefs.h into an awk script `defines.awk', embedded as
14890 # here-document in config.status, that substitutes the proper values into
14891 # config.h.in to produce config.h.
14892
14893 # Create a delimiter string that does not exist in confdefs.h, to ease
14894 # handling of long lines.
14895 ac_delim='%!_!# '
14896 for ac_last_try in false false :; do
14897   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14898   if test -z "$ac_tt"; then
14899     break
14900   elif $ac_last_try; then
14901     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14902   else
14903     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14904   fi
14905 done
14906
14907 # For the awk script, D is an array of macro values keyed by name,
14908 # likewise P contains macro parameters if any.  Preserve backslash
14909 # newline sequences.
14910
14911 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14912 sed -n '
14913 s/.\{148\}/&'"$ac_delim"'/g
14914 t rset
14915 :rset
14916 s/^[     ]*#[    ]*define[       ][      ]*/ /
14917 t def
14918 d
14919 :def
14920 s/\\$//
14921 t bsnl
14922 s/["\\]/\\&/g
14923 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14924 D["\1"]=" \3"/p
14925 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14926 d
14927 :bsnl
14928 s/["\\]/\\&/g
14929 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14930 D["\1"]=" \3\\\\\\n"\\/p
14931 t cont
14932 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14933 t cont
14934 d
14935 :cont
14936 n
14937 s/.\{148\}/&'"$ac_delim"'/g
14938 t clear
14939 :clear
14940 s/\\$//
14941 t bsnlc
14942 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14943 d
14944 :bsnlc
14945 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14946 b cont
14947 ' <confdefs.h | sed '
14948 s/'"$ac_delim"'/"\\\
14949 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14950
14951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952   for (key in D) D_is_set[key] = 1
14953   FS = "\a"
14954 }
14955 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14956   line = \$ 0
14957   split(line, arg, " ")
14958   if (arg[1] == "#") {
14959     defundef = arg[2]
14960     mac1 = arg[3]
14961   } else {
14962     defundef = substr(arg[1], 2)
14963     mac1 = arg[2]
14964   }
14965   split(mac1, mac2, "(") #)
14966   macro = mac2[1]
14967   prefix = substr(line, 1, index(line, defundef) - 1)
14968   if (D_is_set[macro]) {
14969     # Preserve the white space surrounding the "#".
14970     print prefix "define", macro P[macro] D[macro]
14971     next
14972   } else {
14973     # Replace #undef with comments.  This is necessary, for example,
14974     # in the case of _POSIX_SOURCE, which is predefined and required
14975     # on some systems where configure will not decide to define it.
14976     if (defundef == "undef") {
14977       print "/*", prefix defundef, macro, "*/"
14978       next
14979     }
14980   }
14981 }
14982 { print }
14983 _ACAWK
14984 _ACEOF
14985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14986   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14987 fi # test -n "$CONFIG_HEADERS"
14988
14989
14990 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14991 shift
14992 for ac_tag
14993 do
14994   case $ac_tag in
14995   :[FHLC]) ac_mode=$ac_tag; continue;;
14996   esac
14997   case $ac_mode$ac_tag in
14998   :[FHL]*:*);;
14999   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15000   :[FH]-) ac_tag=-:-;;
15001   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15002   esac
15003   ac_save_IFS=$IFS
15004   IFS=:
15005   set x $ac_tag
15006   IFS=$ac_save_IFS
15007   shift
15008   ac_file=$1
15009   shift
15010
15011   case $ac_mode in
15012   :L) ac_source=$1;;
15013   :[FH])
15014     ac_file_inputs=
15015     for ac_f
15016     do
15017       case $ac_f in
15018       -) ac_f="$ac_tmp/stdin";;
15019       *) # Look for the file first in the build tree, then in the source tree
15020          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15021          # because $ac_f cannot contain `:'.
15022          test -f "$ac_f" ||
15023            case $ac_f in
15024            [\\/$]*) false;;
15025            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15026            esac ||
15027            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15028       esac
15029       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15030       as_fn_append ac_file_inputs " '$ac_f'"
15031     done
15032
15033     # Let's still pretend it is `configure' which instantiates (i.e., don't
15034     # use $as_me), people would be surprised to read:
15035     #    /* config.h.  Generated by config.status.  */
15036     configure_input='Generated from '`
15037           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15038         `' by configure.'
15039     if test x"$ac_file" != x-; then
15040       configure_input="$ac_file.  $configure_input"
15041       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15042 $as_echo "$as_me: creating $ac_file" >&6;}
15043     fi
15044     # Neutralize special characters interpreted by sed in replacement strings.
15045     case $configure_input in #(
15046     *\&* | *\|* | *\\* )
15047        ac_sed_conf_input=`$as_echo "$configure_input" |
15048        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15049     *) ac_sed_conf_input=$configure_input;;
15050     esac
15051
15052     case $ac_tag in
15053     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15054       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15055     esac
15056     ;;
15057   esac
15058
15059   ac_dir=`$as_dirname -- "$ac_file" ||
15060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15061          X"$ac_file" : 'X\(//\)[^/]' \| \
15062          X"$ac_file" : 'X\(//\)$' \| \
15063          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15064 $as_echo X"$ac_file" |
15065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15066             s//\1/
15067             q
15068           }
15069           /^X\(\/\/\)[^/].*/{
15070             s//\1/
15071             q
15072           }
15073           /^X\(\/\/\)$/{
15074             s//\1/
15075             q
15076           }
15077           /^X\(\/\).*/{
15078             s//\1/
15079             q
15080           }
15081           s/.*/./; q'`
15082   as_dir="$ac_dir"; as_fn_mkdir_p
15083   ac_builddir=.
15084
15085 case "$ac_dir" in
15086 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15087 *)
15088   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15089   # A ".." for each directory in $ac_dir_suffix.
15090   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15091   case $ac_top_builddir_sub in
15092   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15093   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15094   esac ;;
15095 esac
15096 ac_abs_top_builddir=$ac_pwd
15097 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15098 # for backward compatibility:
15099 ac_top_builddir=$ac_top_build_prefix
15100
15101 case $srcdir in
15102   .)  # We are building in place.
15103     ac_srcdir=.
15104     ac_top_srcdir=$ac_top_builddir_sub
15105     ac_abs_top_srcdir=$ac_pwd ;;
15106   [\\/]* | ?:[\\/]* )  # Absolute name.
15107     ac_srcdir=$srcdir$ac_dir_suffix;
15108     ac_top_srcdir=$srcdir
15109     ac_abs_top_srcdir=$srcdir ;;
15110   *) # Relative name.
15111     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15112     ac_top_srcdir=$ac_top_build_prefix$srcdir
15113     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15114 esac
15115 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15116
15117
15118   case $ac_mode in
15119   :F)
15120   #
15121   # CONFIG_FILE
15122   #
15123
15124   case $INSTALL in
15125   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15126   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15127   esac
15128   ac_MKDIR_P=$MKDIR_P
15129   case $MKDIR_P in
15130   [\\/$]* | ?:[\\/]* ) ;;
15131   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15132   esac
15133 _ACEOF
15134
15135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136 # If the template does not know about datarootdir, expand it.
15137 # FIXME: This hack should be removed a few years after 2.60.
15138 ac_datarootdir_hack=; ac_datarootdir_seen=
15139 ac_sed_dataroot='
15140 /datarootdir/ {
15141   p
15142   q
15143 }
15144 /@datadir@/p
15145 /@docdir@/p
15146 /@infodir@/p
15147 /@localedir@/p
15148 /@mandir@/p'
15149 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15150 *datarootdir*) ac_datarootdir_seen=yes;;
15151 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15152   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15153 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15154 _ACEOF
15155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15156   ac_datarootdir_hack='
15157   s&@datadir@&$datadir&g
15158   s&@docdir@&$docdir&g
15159   s&@infodir@&$infodir&g
15160   s&@localedir@&$localedir&g
15161   s&@mandir@&$mandir&g
15162   s&\\\${datarootdir}&$datarootdir&g' ;;
15163 esac
15164 _ACEOF
15165
15166 # Neutralize VPATH when `$srcdir' = `.'.
15167 # Shell code in configure.ac might set extrasub.
15168 # FIXME: do we really want to maintain this feature?
15169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15170 ac_sed_extra="$ac_vpsub
15171 $extrasub
15172 _ACEOF
15173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15174 :t
15175 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15176 s|@configure_input@|$ac_sed_conf_input|;t t
15177 s&@top_builddir@&$ac_top_builddir_sub&;t t
15178 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15179 s&@srcdir@&$ac_srcdir&;t t
15180 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15181 s&@top_srcdir@&$ac_top_srcdir&;t t
15182 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15183 s&@builddir@&$ac_builddir&;t t
15184 s&@abs_builddir@&$ac_abs_builddir&;t t
15185 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15186 s&@INSTALL@&$ac_INSTALL&;t t
15187 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15188 $ac_datarootdir_hack
15189 "
15190 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15191   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15192
15193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15194   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15195   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15196       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15197   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15198 which seems to be undefined.  Please make sure it is defined" >&5
15199 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15200 which seems to be undefined.  Please make sure it is defined" >&2;}
15201
15202   rm -f "$ac_tmp/stdin"
15203   case $ac_file in
15204   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15205   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15206   esac \
15207   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15208  ;;
15209   :H)
15210   #
15211   # CONFIG_HEADER
15212   #
15213   if test x"$ac_file" != x-; then
15214     {
15215       $as_echo "/* $configure_input  */" \
15216       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15217     } >"$ac_tmp/config.h" \
15218       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15219     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15220       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15221 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15222     else
15223       rm -f "$ac_file"
15224       mv "$ac_tmp/config.h" "$ac_file" \
15225         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15226     fi
15227   else
15228     $as_echo "/* $configure_input  */" \
15229       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15230       || as_fn_error $? "could not create -" "$LINENO" 5
15231   fi
15232 # Compute "$ac_file"'s index in $config_headers.
15233 _am_arg="$ac_file"
15234 _am_stamp_count=1
15235 for _am_header in $config_headers :; do
15236   case $_am_header in
15237     $_am_arg | $_am_arg:* )
15238       break ;;
15239     * )
15240       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15241   esac
15242 done
15243 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15244 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15245          X"$_am_arg" : 'X\(//\)[^/]' \| \
15246          X"$_am_arg" : 'X\(//\)$' \| \
15247          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15248 $as_echo X"$_am_arg" |
15249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15250             s//\1/
15251             q
15252           }
15253           /^X\(\/\/\)[^/].*/{
15254             s//\1/
15255             q
15256           }
15257           /^X\(\/\/\)$/{
15258             s//\1/
15259             q
15260           }
15261           /^X\(\/\).*/{
15262             s//\1/
15263             q
15264           }
15265           s/.*/./; q'`/stamp-h$_am_stamp_count
15266  ;;
15267
15268   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15269 $as_echo "$as_me: executing $ac_file commands" >&6;}
15270  ;;
15271   esac
15272
15273
15274   case $ac_file$ac_mode in
15275     "libtool":C)
15276
15277     # See if we are running on zsh, and set the options which allow our
15278     # commands through without removal of \ escapes.
15279     if test -n "${ZSH_VERSION+set}" ; then
15280       setopt NO_GLOB_SUBST
15281     fi
15282
15283     cfgfile="${ofile}T"
15284     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15285     $RM "$cfgfile"
15286
15287     cat <<_LT_EOF >> "$cfgfile"
15288 #! $SHELL
15289
15290 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15291 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15292 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15293 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15294 #
15295 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15296 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15297 #                 Foundation, Inc.
15298 #   Written by Gordon Matzigkeit, 1996
15299 #
15300 #   This file is part of GNU Libtool.
15301 #
15302 # GNU Libtool is free software; you can redistribute it and/or
15303 # modify it under the terms of the GNU General Public License as
15304 # published by the Free Software Foundation; either version 2 of
15305 # the License, or (at your option) any later version.
15306 #
15307 # As a special exception to the GNU General Public License,
15308 # if you distribute this file as part of a program or library that
15309 # is built using GNU Libtool, you may include this file under the
15310 # same distribution terms that you use for the rest of that program.
15311 #
15312 # GNU Libtool is distributed in the hope that it will be useful,
15313 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15314 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15315 # GNU General Public License for more details.
15316 #
15317 # You should have received a copy of the GNU General Public License
15318 # along with GNU Libtool; see the file COPYING.  If not, a copy
15319 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15320 # obtained by writing to the Free Software Foundation, Inc.,
15321 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15322
15323
15324 # The names of the tagged configurations supported by this script.
15325 available_tags=""
15326
15327 # ### BEGIN LIBTOOL CONFIG
15328
15329 # Which release of libtool.m4 was used?
15330 macro_version=$macro_version
15331 macro_revision=$macro_revision
15332
15333 # Whether or not to build shared libraries.
15334 build_libtool_libs=$enable_shared
15335
15336 # Whether or not to build static libraries.
15337 build_old_libs=$enable_static
15338
15339 # What type of objects to build.
15340 pic_mode=$pic_mode
15341
15342 # Whether or not to optimize for fast installation.
15343 fast_install=$enable_fast_install
15344
15345 # Shell to use when invoking shell scripts.
15346 SHELL=$lt_SHELL
15347
15348 # An echo program that protects backslashes.
15349 ECHO=$lt_ECHO
15350
15351 # The PATH separator for the build system.
15352 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15353
15354 # The host system.
15355 host_alias=$host_alias
15356 host=$host
15357 host_os=$host_os
15358
15359 # The build system.
15360 build_alias=$build_alias
15361 build=$build
15362 build_os=$build_os
15363
15364 # A sed program that does not truncate output.
15365 SED=$lt_SED
15366
15367 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15368 Xsed="\$SED -e 1s/^X//"
15369
15370 # A grep program that handles long lines.
15371 GREP=$lt_GREP
15372
15373 # An ERE matcher.
15374 EGREP=$lt_EGREP
15375
15376 # A literal string matcher.
15377 FGREP=$lt_FGREP
15378
15379 # A BSD- or MS-compatible name lister.
15380 NM=$lt_NM
15381
15382 # Whether we need soft or hard links.
15383 LN_S=$lt_LN_S
15384
15385 # What is the maximum length of a command?
15386 max_cmd_len=$max_cmd_len
15387
15388 # Object file suffix (normally "o").
15389 objext=$ac_objext
15390
15391 # Executable file suffix (normally "").
15392 exeext=$exeext
15393
15394 # whether the shell understands "unset".
15395 lt_unset=$lt_unset
15396
15397 # turn spaces into newlines.
15398 SP2NL=$lt_lt_SP2NL
15399
15400 # turn newlines into spaces.
15401 NL2SP=$lt_lt_NL2SP
15402
15403 # convert \$build file names to \$host format.
15404 to_host_file_cmd=$lt_cv_to_host_file_cmd
15405
15406 # convert \$build files to toolchain format.
15407 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15408
15409 # An object symbol dumper.
15410 OBJDUMP=$lt_OBJDUMP
15411
15412 # Method to check whether dependent libraries are shared objects.
15413 deplibs_check_method=$lt_deplibs_check_method
15414
15415 # Command to use when deplibs_check_method = "file_magic".
15416 file_magic_cmd=$lt_file_magic_cmd
15417
15418 # How to find potential files when deplibs_check_method = "file_magic".
15419 file_magic_glob=$lt_file_magic_glob
15420
15421 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15422 want_nocaseglob=$lt_want_nocaseglob
15423
15424 # DLL creation program.
15425 DLLTOOL=$lt_DLLTOOL
15426
15427 # Command to associate shared and link libraries.
15428 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15429
15430 # The archiver.
15431 AR=$lt_AR
15432
15433 # Flags to create an archive.
15434 AR_FLAGS=$lt_AR_FLAGS
15435
15436 # How to feed a file listing to the archiver.
15437 archiver_list_spec=$lt_archiver_list_spec
15438
15439 # A symbol stripping program.
15440 STRIP=$lt_STRIP
15441
15442 # Commands used to install an old-style archive.
15443 RANLIB=$lt_RANLIB
15444 old_postinstall_cmds=$lt_old_postinstall_cmds
15445 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15446
15447 # Whether to use a lock for old archive extraction.
15448 lock_old_archive_extraction=$lock_old_archive_extraction
15449
15450 # A C compiler.
15451 LTCC=$lt_CC
15452
15453 # LTCC compiler flags.
15454 LTCFLAGS=$lt_CFLAGS
15455
15456 # Take the output of nm and produce a listing of raw symbols and C names.
15457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15458
15459 # Transform the output of nm in a proper C declaration.
15460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15461
15462 # Transform the output of nm in a C name address pair.
15463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15464
15465 # Transform the output of nm in a C name address pair when lib prefix is needed.
15466 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15467
15468 # Specify filename containing input files for \$NM.
15469 nm_file_list_spec=$lt_nm_file_list_spec
15470
15471 # The root where to search for dependent libraries,and in which our libraries should be installed.
15472 lt_sysroot=$lt_sysroot
15473
15474 # The name of the directory that contains temporary libtool files.
15475 objdir=$objdir
15476
15477 # Used to examine libraries when file_magic_cmd begins with "file".
15478 MAGIC_CMD=$MAGIC_CMD
15479
15480 # Must we lock files when doing compilation?
15481 need_locks=$lt_need_locks
15482
15483 # Manifest tool.
15484 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15485
15486 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15487 DSYMUTIL=$lt_DSYMUTIL
15488
15489 # Tool to change global to local symbols on Mac OS X.
15490 NMEDIT=$lt_NMEDIT
15491
15492 # Tool to manipulate fat objects and archives on Mac OS X.
15493 LIPO=$lt_LIPO
15494
15495 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15496 OTOOL=$lt_OTOOL
15497
15498 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15499 OTOOL64=$lt_OTOOL64
15500
15501 # Old archive suffix (normally "a").
15502 libext=$libext
15503
15504 # Shared library suffix (normally ".so").
15505 shrext_cmds=$lt_shrext_cmds
15506
15507 # The commands to extract the exported symbol list from a shared archive.
15508 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15509
15510 # Variables whose values should be saved in libtool wrapper scripts and
15511 # restored at link time.
15512 variables_saved_for_relink=$lt_variables_saved_for_relink
15513
15514 # Do we need the "lib" prefix for modules?
15515 need_lib_prefix=$need_lib_prefix
15516
15517 # Do we need a version for libraries?
15518 need_version=$need_version
15519
15520 # Library versioning type.
15521 version_type=$version_type
15522
15523 # Shared library runtime path variable.
15524 runpath_var=$runpath_var
15525
15526 # Shared library path variable.
15527 shlibpath_var=$shlibpath_var
15528
15529 # Is shlibpath searched before the hard-coded library search path?
15530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15531
15532 # Format of library name prefix.
15533 libname_spec=$lt_libname_spec
15534
15535 # List of archive names.  First name is the real one, the rest are links.
15536 # The last name is the one that the linker finds with -lNAME
15537 library_names_spec=$lt_library_names_spec
15538
15539 # The coded name of the library, if different from the real name.
15540 soname_spec=$lt_soname_spec
15541
15542 # Permission mode override for installation of shared libraries.
15543 install_override_mode=$lt_install_override_mode
15544
15545 # Command to use after installation of a shared archive.
15546 postinstall_cmds=$lt_postinstall_cmds
15547
15548 # Command to use after uninstallation of a shared archive.
15549 postuninstall_cmds=$lt_postuninstall_cmds
15550
15551 # Commands used to finish a libtool library installation in a directory.
15552 finish_cmds=$lt_finish_cmds
15553
15554 # As "finish_cmds", except a single script fragment to be evaled but
15555 # not shown.
15556 finish_eval=$lt_finish_eval
15557
15558 # Whether we should hardcode library paths into libraries.
15559 hardcode_into_libs=$hardcode_into_libs
15560
15561 # Compile-time system search path for libraries.
15562 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15563
15564 # Run-time system search path for libraries.
15565 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15566
15567 # Whether dlopen is supported.
15568 dlopen_support=$enable_dlopen
15569
15570 # Whether dlopen of programs is supported.
15571 dlopen_self=$enable_dlopen_self
15572
15573 # Whether dlopen of statically linked programs is supported.
15574 dlopen_self_static=$enable_dlopen_self_static
15575
15576 # Commands to strip libraries.
15577 old_striplib=$lt_old_striplib
15578 striplib=$lt_striplib
15579
15580
15581 # The linker used to build libraries.
15582 LD=$lt_LD
15583
15584 # How to create reloadable object files.
15585 reload_flag=$lt_reload_flag
15586 reload_cmds=$lt_reload_cmds
15587
15588 # Commands used to build an old-style archive.
15589 old_archive_cmds=$lt_old_archive_cmds
15590
15591 # A language specific compiler.
15592 CC=$lt_compiler
15593
15594 # Is the compiler the GNU compiler?
15595 with_gcc=$GCC
15596
15597 # Compiler flag to turn off builtin functions.
15598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15599
15600 # Additional compiler flags for building library objects.
15601 pic_flag=$lt_lt_prog_compiler_pic
15602
15603 # How to pass a linker flag through the compiler.
15604 wl=$lt_lt_prog_compiler_wl
15605
15606 # Compiler flag to prevent dynamic linking.
15607 link_static_flag=$lt_lt_prog_compiler_static
15608
15609 # Does compiler simultaneously support -c and -o options?
15610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15611
15612 # Whether or not to add -lc for building shared libraries.
15613 build_libtool_need_lc=$archive_cmds_need_lc
15614
15615 # Whether or not to disallow shared libs when runtime libs are static.
15616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15617
15618 # Compiler flag to allow reflexive dlopens.
15619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15620
15621 # Compiler flag to generate shared objects directly from archives.
15622 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15623
15624 # Whether the compiler copes with passing no objects directly.
15625 compiler_needs_object=$lt_compiler_needs_object
15626
15627 # Create an old-style archive from a shared archive.
15628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15629
15630 # Create a temporary old-style archive to link instead of a shared archive.
15631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15632
15633 # Commands used to build a shared archive.
15634 archive_cmds=$lt_archive_cmds
15635 archive_expsym_cmds=$lt_archive_expsym_cmds
15636
15637 # Commands used to build a loadable module if different from building
15638 # a shared archive.
15639 module_cmds=$lt_module_cmds
15640 module_expsym_cmds=$lt_module_expsym_cmds
15641
15642 # Whether we are building with GNU ld or not.
15643 with_gnu_ld=$lt_with_gnu_ld
15644
15645 # Flag that allows shared libraries with undefined symbols to be built.
15646 allow_undefined_flag=$lt_allow_undefined_flag
15647
15648 # Flag that enforces no undefined symbols.
15649 no_undefined_flag=$lt_no_undefined_flag
15650
15651 # Flag to hardcode \$libdir into a binary during linking.
15652 # This must work even if \$libdir does not exist
15653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15654
15655 # Whether we need a single "-rpath" flag with a separated argument.
15656 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15657
15658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15659 # DIR into the resulting binary.
15660 hardcode_direct=$hardcode_direct
15661
15662 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15663 # DIR into the resulting binary and the resulting library dependency is
15664 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15665 # library is relocated.
15666 hardcode_direct_absolute=$hardcode_direct_absolute
15667
15668 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15669 # into the resulting binary.
15670 hardcode_minus_L=$hardcode_minus_L
15671
15672 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15673 # into the resulting binary.
15674 hardcode_shlibpath_var=$hardcode_shlibpath_var
15675
15676 # Set to "yes" if building a shared library automatically hardcodes DIR
15677 # into the library and all subsequent libraries and executables linked
15678 # against it.
15679 hardcode_automatic=$hardcode_automatic
15680
15681 # Set to yes if linker adds runtime paths of dependent libraries
15682 # to runtime path list.
15683 inherit_rpath=$inherit_rpath
15684
15685 # Whether libtool must link a program against all its dependency libraries.
15686 link_all_deplibs=$link_all_deplibs
15687
15688 # Set to "yes" if exported symbols are required.
15689 always_export_symbols=$always_export_symbols
15690
15691 # The commands to list exported symbols.
15692 export_symbols_cmds=$lt_export_symbols_cmds
15693
15694 # Symbols that should not be listed in the preloaded symbols.
15695 exclude_expsyms=$lt_exclude_expsyms
15696
15697 # Symbols that must always be exported.
15698 include_expsyms=$lt_include_expsyms
15699
15700 # Commands necessary for linking programs (against libraries) with templates.
15701 prelink_cmds=$lt_prelink_cmds
15702
15703 # Commands necessary for finishing linking programs.
15704 postlink_cmds=$lt_postlink_cmds
15705
15706 # Specify filename containing input files.
15707 file_list_spec=$lt_file_list_spec
15708
15709 # How to hardcode a shared library path into an executable.
15710 hardcode_action=$hardcode_action
15711
15712 # ### END LIBTOOL CONFIG
15713
15714 _LT_EOF
15715
15716   case $host_os in
15717   aix3*)
15718     cat <<\_LT_EOF >> "$cfgfile"
15719 # AIX sometimes has problems with the GCC collect2 program.  For some
15720 # reason, if we set the COLLECT_NAMES environment variable, the problems
15721 # vanish in a puff of smoke.
15722 if test "X${COLLECT_NAMES+set}" != Xset; then
15723   COLLECT_NAMES=
15724   export COLLECT_NAMES
15725 fi
15726 _LT_EOF
15727     ;;
15728   esac
15729
15730
15731 ltmain="$ac_aux_dir/ltmain.sh"
15732
15733
15734   # We use sed instead of cat because bash on DJGPP gets confused if
15735   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15736   # text mode, it properly converts lines to CR/LF.  This bash problem
15737   # is reportedly fixed, but why not run on old versions too?
15738   sed '$q' "$ltmain" >> "$cfgfile" \
15739      || (rm -f "$cfgfile"; exit 1)
15740
15741   if test x"$xsi_shell" = xyes; then
15742   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15743 func_dirname ()\
15744 {\
15745 \    case ${1} in\
15746 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15747 \      *  ) func_dirname_result="${3}" ;;\
15748 \    esac\
15749 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15750   && mv -f "$cfgfile.tmp" "$cfgfile" \
15751     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15752 test 0 -eq $? || _lt_function_replace_fail=:
15753
15754
15755   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15756 func_basename ()\
15757 {\
15758 \    func_basename_result="${1##*/}"\
15759 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15760   && mv -f "$cfgfile.tmp" "$cfgfile" \
15761     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15762 test 0 -eq $? || _lt_function_replace_fail=:
15763
15764
15765   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15766 func_dirname_and_basename ()\
15767 {\
15768 \    case ${1} in\
15769 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15770 \      *  ) func_dirname_result="${3}" ;;\
15771 \    esac\
15772 \    func_basename_result="${1##*/}"\
15773 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15774   && mv -f "$cfgfile.tmp" "$cfgfile" \
15775     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15776 test 0 -eq $? || _lt_function_replace_fail=:
15777
15778
15779   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15780 func_stripname ()\
15781 {\
15782 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15783 \    # positional parameters, so assign one to ordinary parameter first.\
15784 \    func_stripname_result=${3}\
15785 \    func_stripname_result=${func_stripname_result#"${1}"}\
15786 \    func_stripname_result=${func_stripname_result%"${2}"}\
15787 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15788   && mv -f "$cfgfile.tmp" "$cfgfile" \
15789     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15790 test 0 -eq $? || _lt_function_replace_fail=:
15791
15792
15793   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15794 func_split_long_opt ()\
15795 {\
15796 \    func_split_long_opt_name=${1%%=*}\
15797 \    func_split_long_opt_arg=${1#*=}\
15798 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15799   && mv -f "$cfgfile.tmp" "$cfgfile" \
15800     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15801 test 0 -eq $? || _lt_function_replace_fail=:
15802
15803
15804   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15805 func_split_short_opt ()\
15806 {\
15807 \    func_split_short_opt_arg=${1#??}\
15808 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15809 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15810   && mv -f "$cfgfile.tmp" "$cfgfile" \
15811     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15812 test 0 -eq $? || _lt_function_replace_fail=:
15813
15814
15815   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15816 func_lo2o ()\
15817 {\
15818 \    case ${1} in\
15819 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15820 \      *)    func_lo2o_result=${1} ;;\
15821 \    esac\
15822 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15823   && mv -f "$cfgfile.tmp" "$cfgfile" \
15824     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15825 test 0 -eq $? || _lt_function_replace_fail=:
15826
15827
15828   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15829 func_xform ()\
15830 {\
15831     func_xform_result=${1%.*}.lo\
15832 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15833   && mv -f "$cfgfile.tmp" "$cfgfile" \
15834     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15835 test 0 -eq $? || _lt_function_replace_fail=:
15836
15837
15838   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15839 func_arith ()\
15840 {\
15841     func_arith_result=$(( $* ))\
15842 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15843   && mv -f "$cfgfile.tmp" "$cfgfile" \
15844     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15845 test 0 -eq $? || _lt_function_replace_fail=:
15846
15847
15848   sed -e '/^func_len ()$/,/^} # func_len /c\
15849 func_len ()\
15850 {\
15851     func_len_result=${#1}\
15852 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15853   && mv -f "$cfgfile.tmp" "$cfgfile" \
15854     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15855 test 0 -eq $? || _lt_function_replace_fail=:
15856
15857 fi
15858
15859 if test x"$lt_shell_append" = xyes; then
15860   sed -e '/^func_append ()$/,/^} # func_append /c\
15861 func_append ()\
15862 {\
15863     eval "${1}+=\\${2}"\
15864 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15865   && mv -f "$cfgfile.tmp" "$cfgfile" \
15866     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15867 test 0 -eq $? || _lt_function_replace_fail=:
15868
15869
15870   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15871 func_append_quoted ()\
15872 {\
15873 \    func_quote_for_eval "${2}"\
15874 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15875 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15876   && mv -f "$cfgfile.tmp" "$cfgfile" \
15877     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15878 test 0 -eq $? || _lt_function_replace_fail=:
15879
15880
15881   # Save a `func_append' function call where possible by direct use of '+='
15882   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15883     && mv -f "$cfgfile.tmp" "$cfgfile" \
15884       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15885   test 0 -eq $? || _lt_function_replace_fail=:
15886 else
15887   # Save a `func_append' function call even when '+=' is not available
15888   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15889     && mv -f "$cfgfile.tmp" "$cfgfile" \
15890       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15891   test 0 -eq $? || _lt_function_replace_fail=:
15892 fi
15893
15894 if test x"$_lt_function_replace_fail" = x":"; then
15895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15896 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15897 fi
15898
15899
15900    mv -f "$cfgfile" "$ofile" ||
15901     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15902   chmod +x "$ofile"
15903
15904  ;;
15905     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15906   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15907   # are listed without --file.  Let's play safe and only enable the eval
15908   # if we detect the quoting.
15909   case $CONFIG_FILES in
15910   *\'*) eval set x "$CONFIG_FILES" ;;
15911   *)   set x $CONFIG_FILES ;;
15912   esac
15913   shift
15914   for mf
15915   do
15916     # Strip MF so we end up with the name of the file.
15917     mf=`echo "$mf" | sed -e 's/:.*$//'`
15918     # Check whether this is an Automake generated Makefile or not.
15919     # We used to match only the files named 'Makefile.in', but
15920     # some people rename them; so instead we look at the file content.
15921     # Grep'ing the first line is not enough: some people post-process
15922     # each Makefile.in and add a new line on top of each file to say so.
15923     # Grep'ing the whole file is not good either: AIX grep has a line
15924     # limit of 2048, but all sed's we know have understand at least 4000.
15925     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15926       dirpart=`$as_dirname -- "$mf" ||
15927 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15928          X"$mf" : 'X\(//\)[^/]' \| \
15929          X"$mf" : 'X\(//\)$' \| \
15930          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15931 $as_echo X"$mf" |
15932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15933             s//\1/
15934             q
15935           }
15936           /^X\(\/\/\)[^/].*/{
15937             s//\1/
15938             q
15939           }
15940           /^X\(\/\/\)$/{
15941             s//\1/
15942             q
15943           }
15944           /^X\(\/\).*/{
15945             s//\1/
15946             q
15947           }
15948           s/.*/./; q'`
15949     else
15950       continue
15951     fi
15952     # Extract the definition of DEPDIR, am__include, and am__quote
15953     # from the Makefile without running 'make'.
15954     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15955     test -z "$DEPDIR" && continue
15956     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15957     test -z "am__include" && continue
15958     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15959     # Find all dependency output files, they are included files with
15960     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15961     # simplest approach to changing $(DEPDIR) to its actual value in the
15962     # expansion.
15963     for file in `sed -n "
15964       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15965          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15966       # Make sure the directory exists.
15967       test -f "$dirpart/$file" && continue
15968       fdir=`$as_dirname -- "$file" ||
15969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15970          X"$file" : 'X\(//\)[^/]' \| \
15971          X"$file" : 'X\(//\)$' \| \
15972          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15973 $as_echo X"$file" |
15974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15975             s//\1/
15976             q
15977           }
15978           /^X\(\/\/\)[^/].*/{
15979             s//\1/
15980             q
15981           }
15982           /^X\(\/\/\)$/{
15983             s//\1/
15984             q
15985           }
15986           /^X\(\/\).*/{
15987             s//\1/
15988             q
15989           }
15990           s/.*/./; q'`
15991       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15992       # echo "creating $dirpart/$file"
15993       echo '# dummy' > "$dirpart/$file"
15994     done
15995   done
15996 }
15997  ;;
15998
15999   esac
16000 done # for ac_tag
16001
16002
16003 as_fn_exit 0
16004 _ACEOF
16005 ac_clean_files=$ac_clean_files_save
16006
16007 test $ac_write_fail = 0 ||
16008   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16009
16010
16011 # configure is writing to config.log, and then calls config.status.
16012 # config.status does its own redirection, appending to config.log.
16013 # Unfortunately, on DOS this fails, as config.log is still kept open
16014 # by configure, so config.status won't be able to write to it; its
16015 # output is simply discarded.  So we exec the FD to /dev/null,
16016 # effectively closing config.log, so it can be properly (re)opened and
16017 # appended to by config.status.  When coming back to configure, we
16018 # need to make the FD available again.
16019 if test "$no_create" != yes; then
16020   ac_cs_success=:
16021   ac_config_status_args=
16022   test "$silent" = yes &&
16023     ac_config_status_args="$ac_config_status_args --quiet"
16024   exec 5>/dev/null
16025   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16026   exec 5>>config.log
16027   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16028   # would make configure fail if this is the last instruction.
16029   $ac_cs_success || as_fn_exit 1
16030 fi
16031 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16032   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16033 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16034 fi
16035