8663995c544c9af88bd0ce5781886c91bef2a5e7
[quagga-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Quagga 1.2.3.
4 #
5 # Report bugs to <https://bugzilla.quagga.net>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://bugzilla.quagga.net 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='Quagga'
592 PACKAGE_TARNAME='quagga'
593 PACKAGE_VERSION='1.2.3'
594 PACKAGE_STRING='Quagga 1.2.3'
595 PACKAGE_BUGREPORT='https://bugzilla.quagga.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/zebra.h"
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 quagga_statedir
641 CONFDATE
642 WEAK_ALIAS_CROSSFILE
643 WEAK_ALIAS
644 LIBCAP
645 NETSNMP_CONFIG
646 CARES_LIBS
647 CARES_CFLAGS
648 LIB_REGEX
649 HAVE_LIBPCREPOSIX
650 OSPFAPI
651 OSPFCLIENT
652 CURSES
653 VTYSH
654 SOLARIS
655 PIMD
656 ISISD
657 WATCHQUAGGA
658 NHRPD
659 OSPF6D
660 OSPFD
661 RIPNGD
662 RIPD
663 BGPD
664 ZEBRA
665 DOC
666 PIMD_FALSE
667 PIMD_TRUE
668 ISISD_FALSE
669 ISISD_TRUE
670 OSPF6D_FALSE
671 OSPF6D_TRUE
672 RIPNGD_FALSE
673 RIPNGD_TRUE
674 OSPFCLIENT_FALSE
675 OSPFCLIENT_TRUE
676 WATCHQUAGGA_FALSE
677 WATCHQUAGGA_TRUE
678 NHRPD_FALSE
679 NHRPD_TRUE
680 OSPFD_FALSE
681 OSPFD_TRUE
682 RIPD_FALSE
683 RIPD_TRUE
684 BGPD_FALSE
685 BGPD_TRUE
686 ZEBRA_FALSE
687 ZEBRA_TRUE
688 IPFORWARD
689 IOCTL_METHOD
690 IF_METHOD
691 RTREAD_METHOD
692 HAVE_NETLINK_FALSE
693 HAVE_NETLINK_TRUE
694 KERNEL_METHOD
695 RT_METHOD
696 LIBM
697 LIBOBJS
698 LIBPAM
699 VTYSH_FALSE
700 VTYSH_TRUE
701 LIBREADLINE
702 GIT_VERSION_FALSE
703 GIT_VERSION_TRUE
704 enable_vty_group
705 enable_group
706 enable_user
707 ISIS_TOPOLOGY_LIB
708 ISIS_TOPOLOGY_DIR
709 ISIS_TOPOLOGY_INCLUDES
710 HAVE_PROTOBUF_FALSE
711 HAVE_PROTOBUF_TRUE
712 PROTOBUF_C_LIBS
713 PROTOBUF_C_CFLAGS
714 PROTOC_C
715 DEV_BUILD_FALSE
716 DEV_BUILD_TRUE
717 WERROR
718 HAVE_PANDOC_FALSE
719 HAVE_PANDOC_TRUE
720 PANDOC
721 HAVE_LATEX_FALSE
722 HAVE_LATEX_TRUE
723 LATEXMK
724 PDFLATEX
725 LT_SYS_LIBRARY_PATH
726 OTOOL64
727 OTOOL
728 LIPO
729 NMEDIT
730 DSYMUTIL
731 MANIFEST_TOOL
732 RANLIB
733 ac_ct_AR
734 AR
735 DLLTOOL
736 OBJDUMP
737 LN_S
738 NM
739 ac_ct_DUMPBIN
740 DUMPBIN
741 LD
742 FGREP
743 SED
744 LIBTOOL
745 PKG_CONFIG_LIBDIR
746 PKG_CONFIG_PATH
747 PKG_CONFIG
748 EGREP
749 GREP
750 CPP
751 am__fastdepCC_FALSE
752 am__fastdepCC_TRUE
753 CCDEPMODE
754 am__nodep
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__quote
759 am__include
760 DEPDIR
761 OBJEXT
762 EXEEXT
763 ac_ct_CC
764 CPPFLAGS
765 LDFLAGS
766 CFLAGS
767 CC
768 pkgsrcrcdir
769 pkgsrcdir
770 exampledir
771 GAWK
772 PERL
773 AM_BACKSLASH
774 AM_DEFAULT_VERBOSITY
775 AM_DEFAULT_V
776 AM_V
777 am__untar
778 am__tar
779 AMTAR
780 am__leading_dot
781 SET_MAKE
782 AWK
783 mkdir_p
784 MKDIR_P
785 INSTALL_STRIP_PROGRAM
786 STRIP
787 install_sh
788 MAKEINFO
789 AUTOHEADER
790 AUTOMAKE
791 AUTOCONF
792 ACLOCAL
793 VERSION
794 PACKAGE
795 CYGPATH_W
796 am__isrc
797 INSTALL_DATA
798 INSTALL_SCRIPT
799 INSTALL_PROGRAM
800 target_os
801 target_vendor
802 target_cpu
803 target
804 host_os
805 host_vendor
806 host_cpu
807 host
808 build_os
809 build_vendor
810 build_cpu
811 build
812 CONFIG_ARGS
813 target_alias
814 host_alias
815 build_alias
816 LIBS
817 ECHO_T
818 ECHO_N
819 ECHO_C
820 DEFS
821 mandir
822 localedir
823 libdir
824 psdir
825 pdfdir
826 dvidir
827 htmldir
828 infodir
829 docdir
830 oldincludedir
831 includedir
832 localstatedir
833 sharedstatedir
834 sysconfdir
835 datadir
836 datarootdir
837 libexecdir
838 sbindir
839 bindir
840 program_transform_name
841 prefix
842 exec_prefix
843 PACKAGE_URL
844 PACKAGE_BUGREPORT
845 PACKAGE_STRING
846 PACKAGE_VERSION
847 PACKAGE_TARNAME
848 PACKAGE_NAME
849 PATH_SEPARATOR
850 SHELL'
851 ac_subst_files=''
852 ac_user_opts='
853 enable_option_checking
854 enable_silent_rules
855 enable_exampledir
856 enable_pkgsrcrcdir
857 with_cflags
858 enable_dependency_tracking
859 enable_shared
860 enable_static
861 with_pic
862 enable_fast_install
863 with_aix_soname
864 with_gnu_ld
865 with_sysroot
866 enable_libtool_lock
867 with_pkg_extra_version
868 with_pkg_git_version
869 enable_vtysh
870 enable_doc
871 enable_zebra
872 enable_bgpd
873 enable_ripd
874 enable_ripngd
875 enable_ospfd
876 enable_ospf6d
877 enable_nhrpd
878 enable_watchquagga
879 enable_isisd
880 enable_pimd
881 enable_bgp_announce
882 enable_snmp
883 with_libpam
884 enable_tcp_zebra
885 enable_ospfapi
886 enable_ospfclient
887 enable_multipath
888 enable_user
889 enable_group
890 enable_vty_group
891 enable_configfile_mask
892 enable_logfile_mask
893 enable_rtadv
894 enable_irdp
895 enable_isis_topology
896 enable_capabilities
897 enable_rusage
898 enable_gcc_ultra_verbose
899 enable_linux24_tcp_md5
900 enable_gcc_rdynamic
901 enable_backtrace
902 enable_time_check
903 enable_pcreposix
904 enable_fpm
905 enable_werror
906 enable_protobuf
907 enable_dev_build
908 enable_largefile
909 '
910       ac_precious_vars='build_alias
911 host_alias
912 target_alias
913 GAWK
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP
920 PKG_CONFIG
921 PKG_CONFIG_PATH
922 PKG_CONFIG_LIBDIR
923 LT_SYS_LIBRARY_PATH
924 PROTOBUF_C_CFLAGS
925 PROTOBUF_C_LIBS
926 CARES_CFLAGS
927 CARES_LIBS'
928
929
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 ac_unrecognized_opts=
934 ac_unrecognized_sep=
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
951
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982   # If the previous option needs an argument, assign it.
983   if test -n "$ac_prev"; then
984     eval $ac_prev=\$ac_option
985     ac_prev=
986     continue
987   fi
988
989   case $ac_option in
990   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991   *=)   ac_optarg= ;;
992   *)    ac_optarg=yes ;;
993   esac
994
995   # Accept the important Cygnus configure options, so we can diagnose typos.
996
997   case $ac_dashdash$ac_option in
998   --)
999     ac_dashdash=yes ;;
1000
1001   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002     ac_prev=bindir ;;
1003   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004     bindir=$ac_optarg ;;
1005
1006   -build | --build | --buil | --bui | --bu)
1007     ac_prev=build_alias ;;
1008   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009     build_alias=$ac_optarg ;;
1010
1011   -cache-file | --cache-file | --cache-fil | --cache-fi \
1012   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013     ac_prev=cache_file ;;
1014   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016     cache_file=$ac_optarg ;;
1017
1018   --config-cache | -C)
1019     cache_file=config.cache ;;
1020
1021   -datadir | --datadir | --datadi | --datad)
1022     ac_prev=datadir ;;
1023   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024     datadir=$ac_optarg ;;
1025
1026   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027   | --dataroo | --dataro | --datar)
1028     ac_prev=datarootdir ;;
1029   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031     datarootdir=$ac_optarg ;;
1032
1033   -disable-* | --disable-*)
1034     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037       as_fn_error $? "invalid feature name: $ac_useropt"
1038     ac_useropt_orig=$ac_useropt
1039     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040     case $ac_user_opts in
1041       *"
1042 "enable_$ac_useropt"
1043 "*) ;;
1044       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045          ac_unrecognized_sep=', ';;
1046     esac
1047     eval enable_$ac_useropt=no ;;
1048
1049   -docdir | --docdir | --docdi | --doc | --do)
1050     ac_prev=docdir ;;
1051   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052     docdir=$ac_optarg ;;
1053
1054   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055     ac_prev=dvidir ;;
1056   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057     dvidir=$ac_optarg ;;
1058
1059   -enable-* | --enable-*)
1060     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063       as_fn_error $? "invalid feature name: $ac_useropt"
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval enable_$ac_useropt=\$ac_optarg ;;
1074
1075   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077   | --exec | --exe | --ex)
1078     ac_prev=exec_prefix ;;
1079   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081   | --exec=* | --exe=* | --ex=*)
1082     exec_prefix=$ac_optarg ;;
1083
1084   -gas | --gas | --ga | --g)
1085     # Obsolete; use --with-gas.
1086     with_gas=yes ;;
1087
1088   -help | --help | --hel | --he | -h)
1089     ac_init_help=long ;;
1090   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091     ac_init_help=recursive ;;
1092   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093     ac_init_help=short ;;
1094
1095   -host | --host | --hos | --ho)
1096     ac_prev=host_alias ;;
1097   -host=* | --host=* | --hos=* | --ho=*)
1098     host_alias=$ac_optarg ;;
1099
1100   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101     ac_prev=htmldir ;;
1102   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103   | --ht=*)
1104     htmldir=$ac_optarg ;;
1105
1106   -includedir | --includedir | --includedi | --included | --include \
1107   | --includ | --inclu | --incl | --inc)
1108     ac_prev=includedir ;;
1109   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110   | --includ=* | --inclu=* | --incl=* | --inc=*)
1111     includedir=$ac_optarg ;;
1112
1113   -infodir | --infodir | --infodi | --infod | --info | --inf)
1114     ac_prev=infodir ;;
1115   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116     infodir=$ac_optarg ;;
1117
1118   -libdir | --libdir | --libdi | --libd)
1119     ac_prev=libdir ;;
1120   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121     libdir=$ac_optarg ;;
1122
1123   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124   | --libexe | --libex | --libe)
1125     ac_prev=libexecdir ;;
1126   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127   | --libexe=* | --libex=* | --libe=*)
1128     libexecdir=$ac_optarg ;;
1129
1130   -localedir | --localedir | --localedi | --localed | --locale)
1131     ac_prev=localedir ;;
1132   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133     localedir=$ac_optarg ;;
1134
1135   -localstatedir | --localstatedir | --localstatedi | --localstated \
1136   | --localstate | --localstat | --localsta | --localst | --locals)
1137     ac_prev=localstatedir ;;
1138   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140     localstatedir=$ac_optarg ;;
1141
1142   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143     ac_prev=mandir ;;
1144   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145     mandir=$ac_optarg ;;
1146
1147   -nfp | --nfp | --nf)
1148     # Obsolete; use --without-fp.
1149     with_fp=no ;;
1150
1151   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152   | --no-cr | --no-c | -n)
1153     no_create=yes ;;
1154
1155   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157     no_recursion=yes ;;
1158
1159   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161   | --oldin | --oldi | --old | --ol | --o)
1162     ac_prev=oldincludedir ;;
1163   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166     oldincludedir=$ac_optarg ;;
1167
1168   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169     ac_prev=prefix ;;
1170   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171     prefix=$ac_optarg ;;
1172
1173   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174   | --program-pre | --program-pr | --program-p)
1175     ac_prev=program_prefix ;;
1176   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178     program_prefix=$ac_optarg ;;
1179
1180   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181   | --program-suf | --program-su | --program-s)
1182     ac_prev=program_suffix ;;
1183   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185     program_suffix=$ac_optarg ;;
1186
1187   -program-transform-name | --program-transform-name \
1188   | --program-transform-nam | --program-transform-na \
1189   | --program-transform-n | --program-transform- \
1190   | --program-transform | --program-transfor \
1191   | --program-transfo | --program-transf \
1192   | --program-trans | --program-tran \
1193   | --progr-tra | --program-tr | --program-t)
1194     ac_prev=program_transform_name ;;
1195   -program-transform-name=* | --program-transform-name=* \
1196   | --program-transform-nam=* | --program-transform-na=* \
1197   | --program-transform-n=* | --program-transform-=* \
1198   | --program-transform=* | --program-transfor=* \
1199   | --program-transfo=* | --program-transf=* \
1200   | --program-trans=* | --program-tran=* \
1201   | --progr-tra=* | --program-tr=* | --program-t=*)
1202     program_transform_name=$ac_optarg ;;
1203
1204   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205     ac_prev=pdfdir ;;
1206   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207     pdfdir=$ac_optarg ;;
1208
1209   -psdir | --psdir | --psdi | --psd | --ps)
1210     ac_prev=psdir ;;
1211   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212     psdir=$ac_optarg ;;
1213
1214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215   | -silent | --silent | --silen | --sile | --sil)
1216     silent=yes ;;
1217
1218   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219     ac_prev=sbindir ;;
1220   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221   | --sbi=* | --sb=*)
1222     sbindir=$ac_optarg ;;
1223
1224   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226   | --sharedst | --shareds | --shared | --share | --shar \
1227   | --sha | --sh)
1228     ac_prev=sharedstatedir ;;
1229   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232   | --sha=* | --sh=*)
1233     sharedstatedir=$ac_optarg ;;
1234
1235   -site | --site | --sit)
1236     ac_prev=site ;;
1237   -site=* | --site=* | --sit=*)
1238     site=$ac_optarg ;;
1239
1240   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241     ac_prev=srcdir ;;
1242   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243     srcdir=$ac_optarg ;;
1244
1245   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246   | --syscon | --sysco | --sysc | --sys | --sy)
1247     ac_prev=sysconfdir ;;
1248   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250     sysconfdir=$ac_optarg ;;
1251
1252   -target | --target | --targe | --targ | --tar | --ta | --t)
1253     ac_prev=target_alias ;;
1254   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255     target_alias=$ac_optarg ;;
1256
1257   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258     verbose=yes ;;
1259
1260   -version | --version | --versio | --versi | --vers | -V)
1261     ac_init_version=: ;;
1262
1263   -with-* | --with-*)
1264     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267       as_fn_error $? "invalid package name: $ac_useropt"
1268     ac_useropt_orig=$ac_useropt
1269     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270     case $ac_user_opts in
1271       *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275          ac_unrecognized_sep=', ';;
1276     esac
1277     eval with_$ac_useropt=\$ac_optarg ;;
1278
1279   -without-* | --without-*)
1280     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283       as_fn_error $? "invalid package name: $ac_useropt"
1284     ac_useropt_orig=$ac_useropt
1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286     case $ac_user_opts in
1287       *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291          ac_unrecognized_sep=', ';;
1292     esac
1293     eval with_$ac_useropt=no ;;
1294
1295   --x)
1296     # Obsolete; use --with-x.
1297     with_x=yes ;;
1298
1299   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300   | --x-incl | --x-inc | --x-in | --x-i)
1301     ac_prev=x_includes ;;
1302   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304     x_includes=$ac_optarg ;;
1305
1306   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308     ac_prev=x_libraries ;;
1309   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311     x_libraries=$ac_optarg ;;
1312
1313   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information"
1315     ;;
1316
1317   *=*)
1318     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319     # Reject names that are not valid shell variable names.
1320     case $ac_envvar in #(
1321       '' | [0-9]* | *[!_$as_cr_alnum]* )
1322       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323     esac
1324     eval $ac_envvar=\$ac_optarg
1325     export $ac_envvar ;;
1326
1327   *)
1328     # FIXME: should be removed in autoconf 3.0.
1329     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1333     ;;
1334
1335   esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340   as_fn_error $? "missing argument to $ac_option"
1341 fi
1342
1343 if test -n "$ac_unrecognized_opts"; then
1344   case $enable_option_checking in
1345     no) ;;
1346     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348   esac
1349 fi
1350
1351 # Check all directory arguments for consistency.
1352 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353                 datadir sysconfdir sharedstatedir localstatedir includedir \
1354                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355                 libdir localedir mandir
1356 do
1357   eval ac_val=\$$ac_var
1358   # Remove trailing slashes.
1359   case $ac_val in
1360     */ )
1361       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362       eval $ac_var=\$ac_val;;
1363   esac
1364   # Be sure to have absolute directory names.
1365   case $ac_val in
1366     [\\/$]* | ?:[\\/]* )  continue;;
1367     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368   esac
1369   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1370 done
1371
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1378
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381   if test "x$build_alias" = x; then
1382     cross_compiling=maybe
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   as_fn_error $? "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399   as_fn_error $? "pwd does not report name of working directory"
1400
1401
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404   ac_srcdir_defaulted=yes
1405   # Try the directory containing this script, then the parent directory.
1406   ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408          X"$as_myself" : 'X\(//\)[^/]' \| \
1409          X"$as_myself" : 'X\(//\)$' \| \
1410          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\/\)[^/].*/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\/\)$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\).*/{
1425             s//\1/
1426             q
1427           }
1428           s/.*/./; q'`
1429   srcdir=$ac_confdir
1430   if test ! -r "$srcdir/$ac_unique_file"; then
1431     srcdir=..
1432   fi
1433 else
1434   ac_srcdir_defaulted=no
1435 fi
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1439 fi
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 ac_abs_confdir=`(
1442         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443         pwd)`
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446   srcdir=.
1447 fi
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1451 case $srcdir in
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 esac
1454 for ac_var in $ac_precious_vars; do
1455   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456   eval ac_env_${ac_var}_value=\$${ac_var}
1457   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 done
1460
1461 #
1462 # Report the --help message.
1463 #
1464 if test "$ac_init_help" = "long"; then
1465   # Omit some internal or obsolete options to make the list less imposing.
1466   # This message is too long to be a string in the A/UX 3.1 sh.
1467   cat <<_ACEOF
1468 \`configure' configures Quagga 1.2.3 to adapt to many kinds of systems.
1469
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE.  See below for descriptions of some of the useful variables.
1474
1475 Defaults for the options are specified in brackets.
1476
1477 Configuration:
1478   -h, --help              display this help and exit
1479       --help=short        display options specific to this package
1480       --help=recursive    display the short help of all the included packages
1481   -V, --version           display version information and exit
1482   -q, --quiet, --silent   do not print \`checking ...' messages
1483       --cache-file=FILE   cache test results in FILE [disabled]
1484   -C, --config-cache      alias for \`--cache-file=config.cache'
1485   -n, --no-create         do not create output files
1486       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1487
1488 Installation directories:
1489   --prefix=PREFIX         install architecture-independent files in PREFIX
1490                           [$ac_default_prefix]
1491   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1492                           [PREFIX]
1493
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1498
1499 For better control, use the options below.
1500
1501 Fine tuning of the installation directories:
1502   --bindir=DIR            user executables [EPREFIX/bin]
1503   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1504   --libexecdir=DIR        program executables [EPREFIX/libexec]
1505   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1506   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1507   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1508   --libdir=DIR            object code libraries [EPREFIX/lib]
1509   --includedir=DIR        C header files [PREFIX/include]
1510   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1511   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1512   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1513   --infodir=DIR           info documentation [DATAROOTDIR/info]
1514   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1515   --mandir=DIR            man documentation [DATAROOTDIR/man]
1516   --docdir=DIR            documentation root [DATAROOTDIR/doc/quagga]
1517   --htmldir=DIR           html documentation [DOCDIR]
1518   --dvidir=DIR            dvi documentation [DOCDIR]
1519   --pdfdir=DIR            pdf documentation [DOCDIR]
1520   --psdir=DIR             ps documentation [DOCDIR]
1521 _ACEOF
1522
1523   cat <<\_ACEOF
1524
1525 Program names:
1526   --program-prefix=PREFIX            prepend PREFIX to installed program names
1527   --program-suffix=SUFFIX            append SUFFIX to installed program names
1528   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1529
1530 System types:
1531   --build=BUILD     configure for building on BUILD [guessed]
1532   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1533   --target=TARGET   configure for building compilers for TARGET [HOST]
1534 _ACEOF
1535 fi
1536
1537 if test -n "$ac_init_help"; then
1538   case $ac_init_help in
1539      short | recursive ) echo "Configuration of Quagga 1.2.3:";;
1540    esac
1541   cat <<\_ACEOF
1542
1543 Optional Features:
1544   --disable-option-checking  ignore unrecognized --enable/--with options
1545   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1546   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1547   --enable-silent-rules   less verbose build output (undo: "make V=1")
1548   --disable-silent-rules  verbose build output (undo: "make V=0")
1549   --enable-exampledir     specify alternate directory for examples
1550   --enable-pkgsrcrcdir    specify directory for rc.d scripts
1551   --enable-dependency-tracking
1552                           do not reject slow dependency extractors
1553   --disable-dependency-tracking
1554                           speeds up one-time build
1555   --enable-shared[=PKGS]  build shared libraries [default=yes]
1556   --enable-static[=PKGS]  build static libraries [default=yes]
1557   --enable-fast-install[=PKGS]
1558                           optimize for fast installation [default=yes]
1559   --disable-libtool-lock  avoid locking (might break parallel builds)
1560   --disable-vtysh         do not build integrated vty shell for Quagga
1561   --disable-doc           do not build docs
1562   --disable-zebra         do not build zebra daemon
1563   --disable-bgpd          do not build bgpd
1564   --disable-ripd          do not build ripd
1565   --disable-ripngd        do not build ripngd
1566   --disable-ospfd         do not build ospfd
1567   --disable-ospf6d        do not build ospf6d
1568   --disable-nhrpd         do not build nhrpd
1569   --disable-watchquagga   do not build watchquagga
1570   --disable-isisd         do not build isisd
1571   --disable-pimd          do not build pimd
1572   --disable-bgp-announce, turn off BGP route announcement
1573   --enable-snmp=ARG       enable SNMP support (smux or agentx)
1574   --enable-tcp-zebra      enable TCP/IP socket connection between zebra and
1575                           protocol daemon
1576   --disable-ospfapi       do not build OSPFAPI to access the OSPF LSA Database
1577   --disable-ospfclient    do not build OSPFAPI client for OSPFAPI, (this is
1578                           the default if --disable-ospfapi is set)
1579   --enable-multipath=ARG  enable multipath function, ARG must be digit
1580   --enable-user=USER      user to run Quagga suite as (default quagga)
1581   --enable-group=GROUP    group to run Quagga suite as (default quagga)
1582   --enable-vty-group=ARG  set vty sockets to have specified group as owner
1583   --enable-configfile-mask=ARG
1584                           set mask for config files
1585   --enable-logfile-mask=ARG
1586                           set mask for log files
1587   --disable-rtadv         disable IPV6 router advertisement feature
1588   --enable-irdp           enable IRDP server support in zebra
1589   --enable-isis-topology  enable IS-IS topology generator
1590   --disable-capabilities  disable using POSIX capabilities
1591   --disable-rusage        disable using getrusage
1592   --enable-gcc-ultra-verbose
1593                           enable ultra verbose GCC warnings
1594   --enable-linux24-tcp-md5
1595                           enable support for old, Linux-2.4 RFC2385 patch
1596   --enable-gcc-rdynamic   enable linking with -rdynamic for better backtraces
1597                           (default if gcc)
1598   --disable-backtrace,    disable crash backtraces (default autodetect)
1599   --disable-time-check    disable slow thread warning messages
1600   --enable-pcreposix      enable using PCRE Posix libs for regex functions
1601   --enable-fpm            enable Forwarding Plane Manager support
1602   --enable-werror         enable -Werror (recommended for developers only)
1603   --enable-protobuf       Enable experimental protobuf support
1604   --enable-dev-build      build for development
1605   --disable-largefile     omit support for large files
1606
1607 Optional Packages:
1608   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1609   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1610   --with-cflags           Set CFLAGS for use in compilation.
1611   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1612                           both]
1613   --with-aix-soname=aix|svr4|both
1614                           shared library versioning (aka "SONAME") variant to
1615                           provide on AIX, [default=aix].
1616   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1617   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1618                           compiler's sysroot if not specified).
1619   --with-pkg-extra-version=VER
1620                           add extra version field, for packagers/distributions
1621   --with-pkg-git-version  add git information to MOTD and build version string
1622   --with-libpam           use libpam for PAM support in vtysh
1623
1624 Some influential environment variables:
1625   GAWK        GNU AWK
1626   CC          C compiler command
1627   CFLAGS      C compiler flags
1628   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1629               nonstandard directory <lib dir>
1630   LIBS        libraries to pass to the linker, e.g. -l<library>
1631   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1632               you have headers in a nonstandard directory <include dir>
1633   CPP         C preprocessor
1634   PKG_CONFIG  path to pkg-config utility
1635   PKG_CONFIG_PATH
1636               directories to add to pkg-config's search path
1637   PKG_CONFIG_LIBDIR
1638               path overriding pkg-config's built-in search path
1639   LT_SYS_LIBRARY_PATH
1640               User-defined run-time library search path.
1641   PROTOBUF_C_CFLAGS
1642               C compiler flags for PROTOBUF_C, overriding pkg-config
1643   PROTOBUF_C_LIBS
1644               linker flags for PROTOBUF_C, overriding pkg-config
1645   CARES_CFLAGS
1646               C compiler flags for CARES, overriding pkg-config
1647   CARES_LIBS  linker flags for CARES, overriding pkg-config
1648
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1651
1652 Report bugs to <https://bugzilla.quagga.net>.
1653 _ACEOF
1654 ac_status=$?
1655 fi
1656
1657 if test "$ac_init_help" = "recursive"; then
1658   # If there are subdirs, report their specific --help.
1659   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660     test -d "$ac_dir" ||
1661       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662       continue
1663     ac_builddir=.
1664
1665 case "$ac_dir" in
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *)
1668   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669   # A ".." for each directory in $ac_dir_suffix.
1670   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671   case $ac_top_builddir_sub in
1672   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1674   esac ;;
1675 esac
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1680
1681 case $srcdir in
1682   .)  # We are building in place.
1683     ac_srcdir=.
1684     ac_top_srcdir=$ac_top_builddir_sub
1685     ac_abs_top_srcdir=$ac_pwd ;;
1686   [\\/]* | ?:[\\/]* )  # Absolute name.
1687     ac_srcdir=$srcdir$ac_dir_suffix;
1688     ac_top_srcdir=$srcdir
1689     ac_abs_top_srcdir=$srcdir ;;
1690   *) # Relative name.
1691     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692     ac_top_srcdir=$ac_top_build_prefix$srcdir
1693     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1694 esac
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696
1697     cd "$ac_dir" || { ac_status=$?; continue; }
1698     # Check for guested configure.
1699     if test -f "$ac_srcdir/configure.gnu"; then
1700       echo &&
1701       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702     elif test -f "$ac_srcdir/configure"; then
1703       echo &&
1704       $SHELL "$ac_srcdir/configure" --help=recursive
1705     else
1706       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1707     fi || ac_status=$?
1708     cd "$ac_pwd" || { ac_status=$?; break; }
1709   done
1710 fi
1711
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1714   cat <<\_ACEOF
1715 Quagga configure 1.2.3
1716 generated by GNU Autoconf 2.69
1717
1718 Copyright (C) 2012 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1721 _ACEOF
1722   exit
1723 fi
1724
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1728
1729 # ac_fn_c_try_compile LINENO
1730 # --------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   rm -f conftest.$ac_objext
1736   if { { ac_try="$ac_compile"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_compile") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } && {
1752          test -z "$ac_c_werror_flag" ||
1753          test ! -s conftest.err
1754        } && test -s conftest.$ac_objext; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760         ac_retval=1
1761 fi
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763   as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_compile
1766
1767 # ac_fn_c_try_cpp LINENO
1768 # ----------------------
1769 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_cpp ()
1771 {
1772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773   if { { ac_try="$ac_cpp conftest.$ac_ext"
1774 case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781   ac_status=$?
1782   if test -s conftest.err; then
1783     grep -v '^ *+' conftest.err >conftest.er1
1784     cat conftest.er1 >&5
1785     mv -f conftest.er1 conftest.err
1786   fi
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } > conftest.i && {
1789          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790          test ! -s conftest.err
1791        }; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797     ac_retval=1
1798 fi
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_cpp
1803
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1808 # accordingly.
1809 ac_fn_c_check_header_mongrel ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if eval \${$3+:} false; then :
1813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816   $as_echo_n "(cached) " >&6
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 else
1822   # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h.  */
1827 $4
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831   ac_header_compiler=yes
1832 else
1833   ac_header_compiler=no
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1838
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h.  */
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847   ac_header_preproc=yes
1848 else
1849   ac_header_preproc=no
1850 fi
1851 rm -f conftest.err conftest.i conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1854
1855 # So?  What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857   yes:no: )
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862     ;;
1863   no:yes:* )
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ( $as_echo "## ------------------------------------------ ##
1875 ## Report this to https://bugzilla.quagga.net ##
1876 ## ------------------------------------------ ##"
1877      ) | sed "s/^/$as_me: WARNING:     /" >&2
1878     ;;
1879 esac
1880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883   $as_echo_n "(cached) " >&6
1884 else
1885   eval "$3=\$ac_header_compiler"
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 fi
1891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_header_mongrel
1894
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1899 ac_fn_c_try_run ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905   *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909   (eval "$ac_link") 2>&5
1910   ac_status=$?
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913   { { case "(($ac_try" in
1914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915   *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919   (eval "$ac_try") 2>&5
1920   ac_status=$?
1921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922   test $ac_status = 0; }; }; then :
1923   ac_retval=0
1924 else
1925   $as_echo "$as_me: program exited with status $ac_status" >&5
1926        $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929        ac_retval=$ac_status
1930 fi
1931   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933   as_fn_set_status $ac_retval
1934
1935 } # ac_fn_c_try_run
1936
1937 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_c_check_header_compile ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947   $as_echo_n "(cached) " >&6
1948 else
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955   eval "$3=yes"
1956 else
1957   eval "$3=no"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 fi
1961 eval ac_res=\$$3
1962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_c_check_header_compile
1967
1968 # ac_fn_c_try_link LINENO
1969 # -----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_c_try_link ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   rm -f conftest.$ac_objext conftest$ac_exeext
1975   if { { ac_try="$ac_link"
1976 case "(($ac_try" in
1977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978   *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982   (eval "$ac_link") 2>conftest.err
1983   ac_status=$?
1984   if test -s conftest.err; then
1985     grep -v '^ *+' conftest.err >conftest.er1
1986     cat conftest.er1 >&5
1987     mv -f conftest.er1 conftest.err
1988   fi
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; } && {
1991          test -z "$ac_c_werror_flag" ||
1992          test ! -s conftest.err
1993        } && test -s conftest$ac_exeext && {
1994          test "$cross_compiling" = yes ||
1995          test -x conftest$ac_exeext
1996        }; then :
1997   ac_retval=0
1998 else
1999   $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002         ac_retval=1
2003 fi
2004   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006   # interfere with the next link command; also delete a directory that is
2007   # left behind by Apple's compiler.  We do this before executing the actions.
2008   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010   as_fn_set_status $ac_retval
2011
2012 } # ac_fn_c_try_link
2013
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2018 {
2019   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023   $as_echo_n "(cached) " >&6
2024 else
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2029 #define $2 innocuous_$2
2030
2031 /* System header to define __stub macros and hopefully few prototypes,
2032     which can conflict with char $2 (); below.
2033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034     <limits.h> exists even on freestanding compilers.  */
2035
2036 #ifdef __STDC__
2037 # include <limits.h>
2038 #else
2039 # include <assert.h>
2040 #endif
2041
2042 #undef $2
2043
2044 /* Override any GCC internal prototype to avoid an error.
2045    Use char because int might match the return type of a GCC
2046    builtin and then its argument prototype would still apply.  */
2047 #ifdef __cplusplus
2048 extern "C"
2049 #endif
2050 char $2 ();
2051 /* The GNU C library defines this for functions which it implements
2052     to always fail with ENOSYS.  Some functions are actually named
2053     something starting with __ and the normal name is an alias.  */
2054 #if defined __stub_$2 || defined __stub___$2
2055 choke me
2056 #endif
2057
2058 int
2059 main ()
2060 {
2061 return $2 ();
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_link "$LINENO"; then :
2067   eval "$3=yes"
2068 else
2069   eval "$3=no"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext \
2072     conftest$ac_exeext conftest.$ac_ext
2073 fi
2074 eval ac_res=\$$3
2075                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_c_check_func
2080
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2086 {
2087   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091   $as_echo_n "(cached) " >&6
2092 else
2093   eval "$3=no"
2094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 int
2098 main ()
2099 {
2100 if (sizeof ($2))
2101          return 0;
2102   ;
2103   return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 if (sizeof (($2)))
2114             return 0;
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120
2121 else
2122   eval "$3=yes"
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_type
2134
2135 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136 # ----------------------------------------------------
2137 # Tries to find if the field MEMBER exists in type AGGR, after including
2138 # INCLUDES, setting cache variable VAR accordingly.
2139 ac_fn_c_check_member ()
2140 {
2141   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143 $as_echo_n "checking for $2.$3... " >&6; }
2144 if eval \${$4+:} false; then :
2145   $as_echo_n "(cached) " >&6
2146 else
2147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h.  */
2149 $5
2150 int
2151 main ()
2152 {
2153 static $2 ac_aggr;
2154 if (ac_aggr.$3)
2155 return 0;
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161   eval "$4=yes"
2162 else
2163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $5
2166 int
2167 main ()
2168 {
2169 static $2 ac_aggr;
2170 if (sizeof ac_aggr.$3)
2171 return 0;
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177   eval "$4=yes"
2178 else
2179   eval "$4=no"
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 fi
2185 eval ac_res=\$$4
2186                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189
2190 } # ac_fn_c_check_member
2191
2192 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2193 # ---------------------------------------------
2194 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2195 # accordingly.
2196 ac_fn_c_check_decl ()
2197 {
2198   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199   as_decl_name=`echo $2|sed 's/ *(.*//'`
2200   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2202 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2203 if eval \${$3+:} false; then :
2204   $as_echo_n "(cached) " >&6
2205 else
2206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h.  */
2208 $4
2209 int
2210 main ()
2211 {
2212 #ifndef $as_decl_name
2213 #ifdef __cplusplus
2214   (void) $as_decl_use;
2215 #else
2216   (void) $as_decl_name;
2217 #endif
2218 #endif
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225   eval "$3=yes"
2226 else
2227   eval "$3=no"
2228 fi
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 fi
2231 eval ac_res=\$$3
2232                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235
2236 } # ac_fn_c_check_decl
2237 cat >config.log <<_ACEOF
2238 This file contains any messages produced by compilers while
2239 running configure, to aid debugging if configure makes a mistake.
2240
2241 It was created by Quagga $as_me 1.2.3, which was
2242 generated by GNU Autoconf 2.69.  Invocation command line was
2243
2244   $ $0 $@
2245
2246 _ACEOF
2247 exec 5>>config.log
2248 {
2249 cat <<_ASUNAME
2250 ## --------- ##
2251 ## Platform. ##
2252 ## --------- ##
2253
2254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2259
2260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2262
2263 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2264 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2267 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2268 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2269 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2270
2271 _ASUNAME
2272
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278     $as_echo "PATH: $as_dir"
2279   done
2280 IFS=$as_save_IFS
2281
2282 } >&5
2283
2284 cat >&5 <<_ACEOF
2285
2286
2287 ## ----------- ##
2288 ## Core tests. ##
2289 ## ----------- ##
2290
2291 _ACEOF
2292
2293
2294 # Keep a trace of the command line.
2295 # Strip out --no-create and --no-recursion so they do not pile up.
2296 # Strip out --silent because we don't want to record it for future runs.
2297 # Also quote any args containing shell meta-characters.
2298 # Make two passes to allow for proper duplicate-argument suppression.
2299 ac_configure_args=
2300 ac_configure_args0=
2301 ac_configure_args1=
2302 ac_must_keep_next=false
2303 for ac_pass in 1 2
2304 do
2305   for ac_arg
2306   do
2307     case $ac_arg in
2308     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2309     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2310     | -silent | --silent | --silen | --sile | --sil)
2311       continue ;;
2312     *\'*)
2313       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2314     esac
2315     case $ac_pass in
2316     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2317     2)
2318       as_fn_append ac_configure_args1 " '$ac_arg'"
2319       if test $ac_must_keep_next = true; then
2320         ac_must_keep_next=false # Got value, back to normal.
2321       else
2322         case $ac_arg in
2323           *=* | --config-cache | -C | -disable-* | --disable-* \
2324           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2325           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2326           | -with-* | --with-* | -without-* | --without-* | --x)
2327             case "$ac_configure_args0 " in
2328               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2329             esac
2330             ;;
2331           -* ) ac_must_keep_next=true ;;
2332         esac
2333       fi
2334       as_fn_append ac_configure_args " '$ac_arg'"
2335       ;;
2336     esac
2337   done
2338 done
2339 { ac_configure_args0=; unset ac_configure_args0;}
2340 { ac_configure_args1=; unset ac_configure_args1;}
2341
2342 # When interrupted or exit'd, cleanup temporary files, and complete
2343 # config.log.  We remove comments because anyway the quotes in there
2344 # would cause problems or look ugly.
2345 # WARNING: Use '\'' to represent an apostrophe within the trap.
2346 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347 trap 'exit_status=$?
2348   # Save into config.log some information that might help in debugging.
2349   {
2350     echo
2351
2352     $as_echo "## ---------------- ##
2353 ## Cache variables. ##
2354 ## ---------------- ##"
2355     echo
2356     # The following way of writing the cache mishandles newlines in values,
2357 (
2358   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359     eval ac_val=\$$ac_var
2360     case $ac_val in #(
2361     *${as_nl}*)
2362       case $ac_var in #(
2363       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2365       esac
2366       case $ac_var in #(
2367       _ | IFS | as_nl) ;; #(
2368       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369       *) { eval $ac_var=; unset $ac_var;} ;;
2370       esac ;;
2371     esac
2372   done
2373   (set) 2>&1 |
2374     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375     *${as_nl}ac_space=\ *)
2376       sed -n \
2377         "s/'\''/'\''\\\\'\'''\''/g;
2378           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2379       ;; #(
2380     *)
2381       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2382       ;;
2383     esac |
2384     sort
2385 )
2386     echo
2387
2388     $as_echo "## ----------------- ##
2389 ## Output variables. ##
2390 ## ----------------- ##"
2391     echo
2392     for ac_var in $ac_subst_vars
2393     do
2394       eval ac_val=\$$ac_var
2395       case $ac_val in
2396       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397       esac
2398       $as_echo "$ac_var='\''$ac_val'\''"
2399     done | sort
2400     echo
2401
2402     if test -n "$ac_subst_files"; then
2403       $as_echo "## ------------------- ##
2404 ## File substitutions. ##
2405 ## ------------------- ##"
2406       echo
2407       for ac_var in $ac_subst_files
2408       do
2409         eval ac_val=\$$ac_var
2410         case $ac_val in
2411         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412         esac
2413         $as_echo "$ac_var='\''$ac_val'\''"
2414       done | sort
2415       echo
2416     fi
2417
2418     if test -s confdefs.h; then
2419       $as_echo "## ----------- ##
2420 ## confdefs.h. ##
2421 ## ----------- ##"
2422       echo
2423       cat confdefs.h
2424       echo
2425     fi
2426     test "$ac_signal" != 0 &&
2427       $as_echo "$as_me: caught signal $ac_signal"
2428     $as_echo "$as_me: exit $exit_status"
2429   } >&5
2430   rm -f core *.core core.conftest.* &&
2431     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2432     exit $exit_status
2433 ' 0
2434 for ac_signal in 1 2 13 15; do
2435   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436 done
2437 ac_signal=0
2438
2439 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2440 rm -f -r conftest* confdefs.h
2441
2442 $as_echo "/* confdefs.h */" > confdefs.h
2443
2444 # Predefined preprocessor variables.
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_NAME "$PACKAGE_NAME"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2452 _ACEOF
2453
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2456 _ACEOF
2457
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_STRING "$PACKAGE_STRING"
2460 _ACEOF
2461
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2464 _ACEOF
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_URL "$PACKAGE_URL"
2468 _ACEOF
2469
2470
2471 # Let the site file select an alternate cache file if it wants to.
2472 # Prefer an explicitly selected file to automatically selected ones.
2473 ac_site_file1=NONE
2474 ac_site_file2=NONE
2475 if test -n "$CONFIG_SITE"; then
2476   # We do not want a PATH search for config.site.
2477   case $CONFIG_SITE in #((
2478     -*)  ac_site_file1=./$CONFIG_SITE;;
2479     */*) ac_site_file1=$CONFIG_SITE;;
2480     *)   ac_site_file1=./$CONFIG_SITE;;
2481   esac
2482 elif test "x$prefix" != xNONE; then
2483   ac_site_file1=$prefix/share/config.site
2484   ac_site_file2=$prefix/etc/config.site
2485 else
2486   ac_site_file1=$ac_default_prefix/share/config.site
2487   ac_site_file2=$ac_default_prefix/etc/config.site
2488 fi
2489 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2490 do
2491   test "x$ac_site_file" = xNONE && continue
2492   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2493     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2494 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2495     sed 's/^/| /' "$ac_site_file" >&5
2496     . "$ac_site_file" \
2497       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 as_fn_error $? "failed to load site script $ac_site_file
2500 See \`config.log' for more details" "$LINENO" 5; }
2501   fi
2502 done
2503
2504 if test -r "$cache_file"; then
2505   # Some versions of bash will fail to source /dev/null (special files
2506   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2507   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2508     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2509 $as_echo "$as_me: loading cache $cache_file" >&6;}
2510     case $cache_file in
2511       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2512       *)                      . "./$cache_file";;
2513     esac
2514   fi
2515 else
2516   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2517 $as_echo "$as_me: creating cache $cache_file" >&6;}
2518   >$cache_file
2519 fi
2520
2521 as_fn_append ac_header_list " sys/time.h"
2522 as_fn_append ac_header_list " unistd.h"
2523 as_fn_append ac_func_list " alarm"
2524 # Check that the precious variables saved in the cache have kept the same
2525 # value.
2526 ac_cache_corrupted=false
2527 for ac_var in $ac_precious_vars; do
2528   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529   eval ac_new_set=\$ac_env_${ac_var}_set
2530   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531   eval ac_new_val=\$ac_env_${ac_var}_value
2532   case $ac_old_set,$ac_new_set in
2533     set,)
2534       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536       ac_cache_corrupted=: ;;
2537     ,set)
2538       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2540       ac_cache_corrupted=: ;;
2541     ,);;
2542     *)
2543       if test "x$ac_old_val" != "x$ac_new_val"; then
2544         # differences in whitespace do not lead to failure.
2545         ac_old_val_w=`echo x $ac_old_val`
2546         ac_new_val_w=`echo x $ac_new_val`
2547         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2550           ac_cache_corrupted=:
2551         else
2552           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2553 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554           eval $ac_var=\$ac_old_val
2555         fi
2556         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2557 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2558         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2559 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2560       fi;;
2561   esac
2562   # Pass precious variables to config.status.
2563   if test "$ac_new_set" = set; then
2564     case $ac_new_val in
2565     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2566     *) ac_arg=$ac_var=$ac_new_val ;;
2567     esac
2568     case " $ac_configure_args " in
2569       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2570       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2571     esac
2572   fi
2573 done
2574 if $ac_cache_corrupted; then
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2580 fi
2581 ## -------------------- ##
2582 ## Main body of script. ##
2583 ## -------------------- ##
2584
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590
2591
2592 CONFIG_ARGS="$*"
2593
2594
2595
2596
2597 ac_aux_dir=
2598 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2599   if test -f "$ac_dir/install-sh"; then
2600     ac_aux_dir=$ac_dir
2601     ac_install_sh="$ac_aux_dir/install-sh -c"
2602     break
2603   elif test -f "$ac_dir/install.sh"; then
2604     ac_aux_dir=$ac_dir
2605     ac_install_sh="$ac_aux_dir/install.sh -c"
2606     break
2607   elif test -f "$ac_dir/shtool"; then
2608     ac_aux_dir=$ac_dir
2609     ac_install_sh="$ac_aux_dir/shtool install -c"
2610     break
2611   fi
2612 done
2613 if test -z "$ac_aux_dir"; then
2614   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2615 fi
2616
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2624
2625
2626 # Make sure we can run config.sub.
2627 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2628   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2631 $as_echo_n "checking build system type... " >&6; }
2632 if ${ac_cv_build+:} false; then :
2633   $as_echo_n "(cached) " >&6
2634 else
2635   ac_build_alias=$build_alias
2636 test "x$ac_build_alias" = x &&
2637   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2638 test "x$ac_build_alias" = x &&
2639   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2640 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2641   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2645 $as_echo "$ac_cv_build" >&6; }
2646 case $ac_cv_build in
2647 *-*-*) ;;
2648 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2649 esac
2650 build=$ac_cv_build
2651 ac_save_IFS=$IFS; IFS='-'
2652 set x $ac_cv_build
2653 shift
2654 build_cpu=$1
2655 build_vendor=$2
2656 shift; shift
2657 # Remember, the first character of IFS is used to create $*,
2658 # except with old shells:
2659 build_os=$*
2660 IFS=$ac_save_IFS
2661 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2665 $as_echo_n "checking host system type... " >&6; }
2666 if ${ac_cv_host+:} false; then :
2667   $as_echo_n "(cached) " >&6
2668 else
2669   if test "x$host_alias" = x; then
2670   ac_cv_host=$ac_cv_build
2671 else
2672   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2673     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2674 fi
2675
2676 fi
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2678 $as_echo "$ac_cv_host" >&6; }
2679 case $ac_cv_host in
2680 *-*-*) ;;
2681 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2682 esac
2683 host=$ac_cv_host
2684 ac_save_IFS=$IFS; IFS='-'
2685 set x $ac_cv_host
2686 shift
2687 host_cpu=$1
2688 host_vendor=$2
2689 shift; shift
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2692 host_os=$*
2693 IFS=$ac_save_IFS
2694 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2695
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2698 $as_echo_n "checking target system type... " >&6; }
2699 if ${ac_cv_target+:} false; then :
2700   $as_echo_n "(cached) " >&6
2701 else
2702   if test "x$target_alias" = x; then
2703   ac_cv_target=$ac_cv_host
2704 else
2705   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2706     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2707 fi
2708
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2711 $as_echo "$ac_cv_target" >&6; }
2712 case $ac_cv_target in
2713 *-*-*) ;;
2714 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2715 esac
2716 target=$ac_cv_target
2717 ac_save_IFS=$IFS; IFS='-'
2718 set x $ac_cv_target
2719 shift
2720 target_cpu=$1
2721 target_vendor=$2
2722 shift; shift
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2725 target_os=$*
2726 IFS=$ac_save_IFS
2727 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2728
2729
2730 # The aliases save the names the user supplied, while $host etc.
2731 # will get canonicalized.
2732 test -n "$target_alias" &&
2733   test "$program_prefix$program_suffix$program_transform_name" = \
2734     NONENONEs,x,x, &&
2735   program_prefix=${target_alias}-
2736
2737 # Disable portability warnings -- our automake code (in particular
2738 # common.am) uses some constructs specific to gmake.
2739 am__api_version='1.15'
2740
2741 # Find a good install program.  We prefer a C program (faster),
2742 # so one script is as good as another.  But avoid the broken or
2743 # incompatible versions:
2744 # SysV /etc/install, /usr/sbin/install
2745 # SunOS /usr/etc/install
2746 # IRIX /sbin/install
2747 # AIX /bin/install
2748 # AmigaOS /C/install, which installs bootblocks on floppy discs
2749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2752 # OS/2's system install, which has a completely different semantic
2753 # ./install, which can be erroneously created by make from ./install.sh.
2754 # Reject install programs that cannot install multiple files.
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2757 if test -z "$INSTALL"; then
2758 if ${ac_cv_path_install+:} false; then :
2759   $as_echo_n "(cached) " >&6
2760 else
2761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764   IFS=$as_save_IFS
2765   test -z "$as_dir" && as_dir=.
2766     # Account for people who put trailing slashes in PATH elements.
2767 case $as_dir/ in #((
2768   ./ | .// | /[cC]/* | \
2769   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2770   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2771   /usr/ucb/* ) ;;
2772   *)
2773     # OSF1 and SCO ODT 3.0 have their own names for install.
2774     # Don't use installbsd from OSF since it installs stuff as root
2775     # by default.
2776     for ac_prog in ginstall scoinst install; do
2777       for ac_exec_ext in '' $ac_executable_extensions; do
2778         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2779           if test $ac_prog = install &&
2780             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781             # AIX install.  It has an incompatible calling convention.
2782             :
2783           elif test $ac_prog = install &&
2784             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785             # program-specific install script used by HP pwplus--don't use.
2786             :
2787           else
2788             rm -rf conftest.one conftest.two conftest.dir
2789             echo one > conftest.one
2790             echo two > conftest.two
2791             mkdir conftest.dir
2792             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2793               test -s conftest.one && test -s conftest.two &&
2794               test -s conftest.dir/conftest.one &&
2795               test -s conftest.dir/conftest.two
2796             then
2797               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2798               break 3
2799             fi
2800           fi
2801         fi
2802       done
2803     done
2804     ;;
2805 esac
2806
2807   done
2808 IFS=$as_save_IFS
2809
2810 rm -rf conftest.one conftest.two conftest.dir
2811
2812 fi
2813   if test "${ac_cv_path_install+set}" = set; then
2814     INSTALL=$ac_cv_path_install
2815   else
2816     # As a last resort, use the slow shell script.  Don't cache a
2817     # value for INSTALL within a source directory, because that will
2818     # break other packages using the cache if that directory is
2819     # removed, or if the value is a relative name.
2820     INSTALL=$ac_install_sh
2821   fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2824 $as_echo "$INSTALL" >&6; }
2825
2826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2827 # It thinks the first close brace ends the variable substitution.
2828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2829
2830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2831
2832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2835 $as_echo_n "checking whether build environment is sane... " >&6; }
2836 # Reject unsafe characters in $srcdir or the absolute working directory
2837 # name.  Accept space and tab only in the latter.
2838 am_lf='
2839 '
2840 case `pwd` in
2841   *[\\\"\#\$\&\'\`$am_lf]*)
2842     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2843 esac
2844 case $srcdir in
2845   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2846     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2847 esac
2848
2849 # Do 'set' in a subshell so we don't clobber the current shell's
2850 # arguments.  Must try -L first in case configure is actually a
2851 # symlink; some systems play weird games with the mod time of symlinks
2852 # (eg FreeBSD returns the mod time of the symlink's containing
2853 # directory).
2854 if (
2855    am_has_slept=no
2856    for am_try in 1 2; do
2857      echo "timestamp, slept: $am_has_slept" > conftest.file
2858      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2859      if test "$*" = "X"; then
2860         # -L didn't work.
2861         set X `ls -t "$srcdir/configure" conftest.file`
2862      fi
2863      if test "$*" != "X $srcdir/configure conftest.file" \
2864         && test "$*" != "X conftest.file $srcdir/configure"; then
2865
2866         # If neither matched, then we have a broken ls.  This can happen
2867         # if, for instance, CONFIG_SHELL is bash and it inherits a
2868         # broken ls alias from the environment.  This has actually
2869         # happened.  Such a system could not be considered "sane".
2870         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2871   alias in your environment" "$LINENO" 5
2872      fi
2873      if test "$2" = conftest.file || test $am_try -eq 2; then
2874        break
2875      fi
2876      # Just in case.
2877      sleep 1
2878      am_has_slept=yes
2879    done
2880    test "$2" = conftest.file
2881    )
2882 then
2883    # Ok.
2884    :
2885 else
2886    as_fn_error $? "newly created file is older than distributed files!
2887 Check your system clock" "$LINENO" 5
2888 fi
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891 # If we didn't sleep, we still need to ensure time stamps of config.status and
2892 # generated files are strictly newer.
2893 am_sleep_pid=
2894 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2895   ( sleep 1 ) &
2896   am_sleep_pid=$!
2897 fi
2898
2899 rm -f conftest.file
2900
2901 test "$program_prefix" != NONE &&
2902   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2903 # Use a double $ so make ignores it.
2904 test "$program_suffix" != NONE &&
2905   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2906 # Double any \ or $.
2907 # By default was `s,x,x', remove it if useless.
2908 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2909 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2910
2911 # Expand $ac_aux_dir to an absolute path.
2912 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2913
2914 if test x"${MISSING+set}" != xset; then
2915   case $am_aux_dir in
2916   *\ * | *\     *)
2917     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2918   *)
2919     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2920   esac
2921 fi
2922 # Use eval to expand $SHELL
2923 if eval "$MISSING --is-lightweight"; then
2924   am_missing_run="$MISSING "
2925 else
2926   am_missing_run=
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2928 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2929 fi
2930
2931 if test x"${install_sh+set}" != xset; then
2932   case $am_aux_dir in
2933   *\ * | *\     *)
2934     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2935   *)
2936     install_sh="\${SHELL} $am_aux_dir/install-sh"
2937   esac
2938 fi
2939
2940 # Installed binaries are usually stripped using 'strip' when the user
2941 # run "make install-strip".  However 'strip' might not be the right
2942 # tool to use in cross-compilation environments, therefore Automake
2943 # will honor the 'STRIP' environment variable to overrule this program.
2944 if test "$cross_compiling" != no; then
2945   if test -n "$ac_tool_prefix"; then
2946   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}strip; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_STRIP+:} false; then :
2951   $as_echo_n "(cached) " >&6
2952 else
2953   if test -n "$STRIP"; then
2954   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959   IFS=$as_save_IFS
2960   test -z "$as_dir" && as_dir=.
2961     for ac_exec_ext in '' $ac_executable_extensions; do
2962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965     break 2
2966   fi
2967 done
2968   done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 STRIP=$ac_cv_prog_STRIP
2974 if test -n "$STRIP"; then
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2976 $as_echo "$STRIP" >&6; }
2977 else
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 fi
2984 if test -z "$ac_cv_prog_STRIP"; then
2985   ac_ct_STRIP=$STRIP
2986   # Extract the first word of "strip", so it can be a program name with args.
2987 set dummy strip; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$ac_ct_STRIP"; then
2994   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001     for ac_exec_ext in '' $ac_executable_extensions; do
3002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003     ac_cv_prog_ac_ct_STRIP="strip"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3014 if test -n "$ac_ct_STRIP"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3016 $as_echo "$ac_ct_STRIP" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022   if test "x$ac_ct_STRIP" = x; then
3023     STRIP=":"
3024   else
3025     case $cross_compiling:$ac_tool_warned in
3026 yes:)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3030 esac
3031     STRIP=$ac_ct_STRIP
3032   fi
3033 else
3034   STRIP="$ac_cv_prog_STRIP"
3035 fi
3036
3037 fi
3038 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3041 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3042 if test -z "$MKDIR_P"; then
3043   if ${ac_cv_path_mkdir+:} false; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051     for ac_prog in mkdir gmkdir; do
3052          for ac_exec_ext in '' $ac_executable_extensions; do
3053            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3054            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3055              'mkdir (GNU coreutils) '* | \
3056              'mkdir (coreutils) '* | \
3057              'mkdir (fileutils) '4.1*)
3058                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3059                break 3;;
3060            esac
3061          done
3062        done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067
3068   test -d ./--version && rmdir ./--version
3069   if test "${ac_cv_path_mkdir+set}" = set; then
3070     MKDIR_P="$ac_cv_path_mkdir -p"
3071   else
3072     # As a last resort, use the slow shell script.  Don't cache a
3073     # value for MKDIR_P within a source directory, because that will
3074     # break other packages using the cache if that directory is
3075     # removed, or if the value is a relative name.
3076     MKDIR_P="$ac_install_sh -d"
3077   fi
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3080 $as_echo "$MKDIR_P" >&6; }
3081
3082 for ac_prog in gawk mawk nawk awk
3083 do
3084   # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_AWK+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$AWK"; then
3092   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101     ac_cv_prog_AWK="$ac_prog"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 AWK=$ac_cv_prog_AWK
3112 if test -n "$AWK"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3114 $as_echo "$AWK" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121   test -n "$AWK" && break
3122 done
3123
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3125 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3126 set x ${MAKE-make}
3127 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3128 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   cat >conftest.make <<\_ACEOF
3132 SHELL = /bin/sh
3133 all:
3134         @echo '@@@%%%=$(MAKE)=@@@%%%'
3135 _ACEOF
3136 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3137 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3138   *@@@%%%=?*=@@@%%%*)
3139     eval ac_cv_prog_make_${ac_make}_set=yes;;
3140   *)
3141     eval ac_cv_prog_make_${ac_make}_set=no;;
3142 esac
3143 rm -f conftest.make
3144 fi
3145 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3148   SET_MAKE=
3149 else
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152   SET_MAKE="MAKE=${MAKE-make}"
3153 fi
3154
3155 rm -rf .tst 2>/dev/null
3156 mkdir .tst 2>/dev/null
3157 if test -d .tst; then
3158   am__leading_dot=.
3159 else
3160   am__leading_dot=_
3161 fi
3162 rmdir .tst 2>/dev/null
3163
3164 # Check whether --enable-silent-rules was given.
3165 if test "${enable_silent_rules+set}" = set; then :
3166   enableval=$enable_silent_rules;
3167 fi
3168
3169 case $enable_silent_rules in # (((
3170   yes) AM_DEFAULT_VERBOSITY=0;;
3171    no) AM_DEFAULT_VERBOSITY=1;;
3172     *) AM_DEFAULT_VERBOSITY=1;;
3173 esac
3174 am_make=${MAKE-make}
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3176 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3177 if ${am_cv_make_support_nested_variables+:} false; then :
3178   $as_echo_n "(cached) " >&6
3179 else
3180   if $as_echo 'TRUE=$(BAR$(V))
3181 BAR0=false
3182 BAR1=true
3183 V=1
3184 am__doit:
3185         @$(TRUE)
3186 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3187   am_cv_make_support_nested_variables=yes
3188 else
3189   am_cv_make_support_nested_variables=no
3190 fi
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3193 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3194 if test $am_cv_make_support_nested_variables = yes; then
3195     AM_V='$(V)'
3196   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3197 else
3198   AM_V=$AM_DEFAULT_VERBOSITY
3199   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3200 fi
3201 AM_BACKSLASH='\'
3202
3203 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3204   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3205   # is not polluted with repeated "-I."
3206   am__isrc=' -I$(srcdir)'
3207   # test to see if srcdir already configured
3208   if test -f $srcdir/config.status; then
3209     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3210   fi
3211 fi
3212
3213 # test whether we have cygpath
3214 if test -z "$CYGPATH_W"; then
3215   if (cygpath --version) >/dev/null 2>/dev/null; then
3216     CYGPATH_W='cygpath -w'
3217   else
3218     CYGPATH_W=echo
3219   fi
3220 fi
3221
3222
3223 # Define the identity of the package.
3224  PACKAGE='quagga'
3225  VERSION='1.2.3'
3226
3227
3228 cat >>confdefs.h <<_ACEOF
3229 #define PACKAGE "$PACKAGE"
3230 _ACEOF
3231
3232
3233 cat >>confdefs.h <<_ACEOF
3234 #define VERSION "$VERSION"
3235 _ACEOF
3236
3237 # Some tools Automake needs.
3238
3239 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3240
3241
3242 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3243
3244
3245 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3246
3247
3248 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3249
3250
3251 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3252
3253 # For better backward compatibility.  To be removed once Automake 1.9.x
3254 # dies out for good.  For more background, see:
3255 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3256 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3257 mkdir_p='$(MKDIR_P)'
3258
3259 # We need awk for the "check" target (and possibly the TAP driver).  The
3260 # system "awk" is bad on some platforms.
3261 # Always define AMTAR for backward compatibility.  Yes, it's still used
3262 # in the wild :-(  We should find a proper way to deprecate it ...
3263 AMTAR='$${TAR-tar}'
3264
3265
3266 # We'll loop over all known methods to create a tar archive until one works.
3267 _am_tools='gnutar  pax cpio none'
3268
3269 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3270
3271
3272
3273
3274
3275
3276 # POSIX will say in a future version that running "rm -f" with no argument
3277 # is OK; and we want to be able to make that assumption in our Makefile
3278 # recipes.  So use an aggressive probe to check that the usage we want is
3279 # actually supported "in the wild" to an acceptable degree.
3280 # See automake bug#10828.
3281 # To make any issue more visible, cause the running configure to be aborted
3282 # by default if the 'rm' program in use doesn't match our expectations; the
3283 # user can still override this though.
3284 if rm -f && rm -fr && rm -rf; then : OK; else
3285   cat >&2 <<'END'
3286 Oops!
3287
3288 Your 'rm' program seems unable to run without file operands specified
3289 on the command line, even when the '-f' option is present.  This is contrary
3290 to the behaviour of most rm programs out there, and not conforming with
3291 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3292
3293 Please tell bug-automake@gnu.org about your system, including the value
3294 of your $PATH and any error possibly output before this message.  This
3295 can help us improve future automake versions.
3296
3297 END
3298   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3299     echo 'Configuration will proceed anyway, since you have set the' >&2
3300     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3301     echo >&2
3302   else
3303     cat >&2 <<'END'
3304 Aborting the configuration process, to ensure you take notice of the issue.
3305
3306 You can download and install GNU coreutils to get an 'rm' implementation
3307 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3308
3309 If you want to complete the configuration process using your problematic
3310 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3311 to "yes", and re-run configure.
3312
3313 END
3314     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3315   fi
3316 fi
3317
3318
3319
3320 # Check whether --enable-silent-rules was given.
3321 if test "${enable_silent_rules+set}" = set; then :
3322   enableval=$enable_silent_rules;
3323 fi
3324
3325 case $enable_silent_rules in # (((
3326   yes) AM_DEFAULT_VERBOSITY=0;;
3327    no) AM_DEFAULT_VERBOSITY=1;;
3328     *) AM_DEFAULT_VERBOSITY=0;;
3329 esac
3330 am_make=${MAKE-make}
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3332 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3333 if ${am_cv_make_support_nested_variables+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if $as_echo 'TRUE=$(BAR$(V))
3337 BAR0=false
3338 BAR1=true
3339 V=1
3340 am__doit:
3341         @$(TRUE)
3342 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3343   am_cv_make_support_nested_variables=yes
3344 else
3345   am_cv_make_support_nested_variables=no
3346 fi
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3349 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3350 if test $am_cv_make_support_nested_variables = yes; then
3351     AM_V='$(V)'
3352   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3353 else
3354   AM_V=$AM_DEFAULT_VERBOSITY
3355   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3356 fi
3357 AM_BACKSLASH='\'
3358
3359 ac_config_headers="$ac_config_headers config.h"
3360
3361
3362 # Extract the first word of "perl", so it can be a program name with args.
3363 set dummy perl; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_path_PERL+:} false; then :
3367   $as_echo_n "(cached) " >&6
3368 else
3369   case $PERL in
3370   [\\/]* | ?:[\\/]*)
3371   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3372   ;;
3373   *)
3374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377   IFS=$as_save_IFS
3378   test -z "$as_dir" && as_dir=.
3379     for ac_exec_ext in '' $ac_executable_extensions; do
3380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383     break 2
3384   fi
3385 done
3386   done
3387 IFS=$as_save_IFS
3388
3389   ;;
3390 esac
3391 fi
3392 PERL=$ac_cv_path_PERL
3393 if test -n "$PERL"; then
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
3395 $as_echo "$PERL" >&6; }
3396 else
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401
3402 # Extract the first word of "gawk", so it can be a program name with args.
3403 set dummy gawk; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_GAWK+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -n "$GAWK"; then
3410   ac_cv_prog_GAWK="$GAWK" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415   IFS=$as_save_IFS
3416   test -z "$as_dir" && as_dir=.
3417     for ac_exec_ext in '' $ac_executable_extensions; do
3418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419     ac_cv_prog_GAWK="gawk"
3420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3426
3427   test -z "$ac_cv_prog_GAWK" && ac_cv_prog_GAWK="not-in-PATH"
3428 fi
3429 fi
3430 GAWK=$ac_cv_prog_GAWK
3431 if test -n "$GAWK"; then
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAWK" >&5
3433 $as_echo "$GAWK" >&6; }
3434 else
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 fi
3438
3439
3440 if test "x$GAWK" = "xnot-in-PATH" ; then
3441         as_fn_error $? "GNU awk is required for lib/memtype.h made by memtypes.awk.
3442 BSD awk complains: awk: gensub doesn't support backreferences (subst \"\1\") " "$LINENO" 5
3443 fi
3444
3445
3446 exampledir=${sysconfdir}
3447 # Check whether --enable-exampledir was given.
3448 if test "${enable_exampledir+set}" = set; then :
3449   enableval=$enable_exampledir; exampledir="$enableval"
3450 fi
3451
3452
3453
3454 pkgsrcrcdir=""
3455 pkgsrcdir=""
3456 # Check whether --enable-pkgsrcrcdir was given.
3457 if test "${enable_pkgsrcrcdir+set}" = set; then :
3458   enableval=$enable_pkgsrcrcdir; pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc"
3459 fi
3460
3461
3462
3463
3464
3465 # Check whether --with-cflags was given.
3466 if test "${with_cflags+set}" = set; then :
3467   withval=$with_cflags;
3468 fi
3469
3470 if test "x$with_cflags" != "x" ; then
3471   CFLAGS="$with_cflags" ; cflags_specified=yes ;
3472 elif test -n "$CFLAGS" ; then
3473   cflags_specified=yes ;
3474 fi
3475
3476 ac_ext=c
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493   $as_echo_n "(cached) " >&6
3494 else
3495   if test -n "$CC"; then
3496   ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501   IFS=$as_save_IFS
3502   test -z "$as_dir" && as_dir=.
3503     for ac_exec_ext in '' $ac_executable_extensions; do
3504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507     break 2
3508   fi
3509 done
3510   done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 if test -z "$ac_cv_prog_CC"; then
3527   ac_ct_CC=$CC
3528   # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   if test -n "$ac_ct_CC"; then
3536   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543     for ac_exec_ext in '' $ac_executable_extensions; do
3544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545     ac_cv_prog_ac_ct_CC="gcc"
3546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547     break 2
3548   fi
3549 done
3550   done
3551 IFS=$as_save_IFS
3552
3553 fi
3554 fi
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3559 else
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564   if test "x$ac_ct_CC" = x; then
3565     CC=""
3566   else
3567     case $cross_compiling:$ac_tool_warned in
3568 yes:)
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned=yes ;;
3572 esac
3573     CC=$ac_ct_CC
3574   fi
3575 else
3576   CC="$ac_cv_prog_CC"
3577 fi
3578
3579 if test -z "$CC"; then
3580           if test -n "$ac_tool_prefix"; then
3581     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3582 set dummy ${ac_tool_prefix}cc; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_CC+:} false; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   if test -n "$CC"; then
3589   ac_cv_prog_CC="$CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596     for ac_exec_ext in '' $ac_executable_extensions; do
3597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598     ac_cv_prog_CC="${ac_tool_prefix}cc"
3599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603   done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 CC=$ac_cv_prog_CC
3609 if test -n "$CC"; then
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3612 else
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618   fi
3619 fi
3620 if test -z "$CC"; then
3621   # Extract the first word of "cc", so it can be a program name with args.
3622 set dummy cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if ${ac_cv_prog_CC+:} false; then :
3626   $as_echo_n "(cached) " >&6
3627 else
3628   if test -n "$CC"; then
3629   ac_cv_prog_CC="$CC" # Let the user override the test.
3630 else
3631   ac_prog_rejected=no
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637     for ac_exec_ext in '' $ac_executable_extensions; do
3638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3640        ac_prog_rejected=yes
3641        continue
3642      fi
3643     ac_cv_prog_CC="cc"
3644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648   done
3649 IFS=$as_save_IFS
3650
3651 if test $ac_prog_rejected = yes; then
3652   # We found a bogon in the path, so make sure we never use it.
3653   set dummy $ac_cv_prog_CC
3654   shift
3655   if test $# != 0; then
3656     # We chose a different compiler from the bogus one.
3657     # However, it has the same basename, so the bogon will be chosen
3658     # first if we set CC to just the basename; use the full file name.
3659     shift
3660     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3661   fi
3662 fi
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675 fi
3676 if test -z "$CC"; then
3677   if test -n "$ac_tool_prefix"; then
3678   for ac_prog in cl.exe
3679   do
3680     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_CC+:} false; then :
3685   $as_echo_n "(cached) " >&6
3686 else
3687   if test -n "$CC"; then
3688   ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693   IFS=$as_save_IFS
3694   test -z "$as_dir" && as_dir=.
3695     for ac_exec_ext in '' $ac_executable_extensions; do
3696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699     break 2
3700   fi
3701 done
3702   done
3703 IFS=$as_save_IFS
3704
3705 fi
3706 fi
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3711 else
3712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3714 fi
3715
3716
3717     test -n "$CC" && break
3718   done
3719 fi
3720 if test -z "$CC"; then
3721   ac_ct_CC=$CC
3722   for ac_prog in cl.exe
3723 do
3724   # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy $ac_prog; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3729   $as_echo_n "(cached) " >&6
3730 else
3731   if test -n "$ac_ct_CC"; then
3732   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737   IFS=$as_save_IFS
3738   test -z "$as_dir" && as_dir=.
3739     for ac_exec_ext in '' $ac_executable_extensions; do
3740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741     ac_cv_prog_ac_ct_CC="$ac_prog"
3742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743     break 2
3744   fi
3745 done
3746   done
3747 IFS=$as_save_IFS
3748
3749 fi
3750 fi
3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3755 else
3756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 fi
3759
3760
3761   test -n "$ac_ct_CC" && break
3762 done
3763
3764   if test "x$ac_ct_CC" = x; then
3765     CC=""
3766   else
3767     case $cross_compiling:$ac_tool_warned in
3768 yes:)
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771 ac_tool_warned=yes ;;
3772 esac
3773     CC=$ac_ct_CC
3774   fi
3775 fi
3776
3777 fi
3778
3779
3780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "no acceptable C compiler found in \$PATH
3783 See \`config.log' for more details" "$LINENO" 5; }
3784
3785 # Provide some information about the compiler.
3786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3787 set X $ac_compile
3788 ac_compiler=$2
3789 for ac_option in --version -v -V -qversion; do
3790   { { ac_try="$ac_compiler $ac_option >&5"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3798   ac_status=$?
3799   if test -s conftest.err; then
3800     sed '10a\
3801 ... rest of stderr output deleted ...
3802          10q' conftest.err >conftest.er1
3803     cat conftest.er1 >&5
3804   fi
3805   rm -f conftest.er1 conftest.err
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }
3808 done
3809
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h.  */
3812
3813 int
3814 main ()
3815 {
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 ac_clean_files_save=$ac_clean_files
3822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3823 # Try to create an executable without -o first, disregard a.out.
3824 # It will help us diagnose broken compilers, and finding out an intuition
3825 # of exeext.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3827 $as_echo_n "checking whether the C compiler works... " >&6; }
3828 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3829
3830 # The possible output files:
3831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3832
3833 ac_rmfiles=
3834 for ac_file in $ac_files
3835 do
3836   case $ac_file in
3837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3839   esac
3840 done
3841 rm -f $ac_rmfiles
3842
3843 if { { ac_try="$ac_link_default"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850   (eval "$ac_link_default") 2>&5
3851   ac_status=$?
3852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853   test $ac_status = 0; }; then :
3854   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3856 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3857 # so that the user can short-circuit this test for compilers unknown to
3858 # Autoconf.
3859 for ac_file in $ac_files ''
3860 do
3861   test -f "$ac_file" || continue
3862   case $ac_file in
3863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3864         ;;
3865     [ab].out )
3866         # We found the default executable, but exeext='' is most
3867         # certainly right.
3868         break;;
3869     *.* )
3870         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3871         then :; else
3872            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3873         fi
3874         # We set ac_cv_exeext here because the later test for it is not
3875         # safe: cross compilers may not add the suffix if given an `-o'
3876         # argument, so we may need to know it at that point already.
3877         # Even if this section looks crufty: it has the advantage of
3878         # actually working.
3879         break;;
3880     * )
3881         break;;
3882   esac
3883 done
3884 test "$ac_cv_exeext" = no && ac_cv_exeext=
3885
3886 else
3887   ac_file=''
3888 fi
3889 if test -z "$ac_file"; then :
3890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error 77 "C compiler cannot create executables
3898 See \`config.log' for more details" "$LINENO" 5; }
3899 else
3900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3901 $as_echo "yes" >&6; }
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3904 $as_echo_n "checking for C compiler default output file name... " >&6; }
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3906 $as_echo "$ac_file" >&6; }
3907 ac_exeext=$ac_cv_exeext
3908
3909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3910 ac_clean_files=$ac_clean_files_save
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920   (eval "$ac_link") 2>&5
3921   ac_status=$?
3922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923   test $ac_status = 0; }; then :
3924   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3927 # `rm'.
3928 for ac_file in conftest.exe conftest conftest.*; do
3929   test -f "$ac_file" || continue
3930   case $ac_file in
3931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933           break;;
3934     * ) break;;
3935   esac
3936 done
3937 else
3938   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details" "$LINENO" 5; }
3942 fi
3943 rm -f conftest conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3946
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3949 ac_exeext=$EXEEXT
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h.  */
3952 #include <stdio.h>
3953 int
3954 main ()
3955 {
3956 FILE *f = fopen ("conftest.out", "w");
3957  return ferror (f) || fclose (f) != 0;
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 ac_clean_files="$ac_clean_files conftest.out"
3964 # Check that the compiler produces executables we can run.  If not, either
3965 # the compiler is broken, or we cross compile.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3967 $as_echo_n "checking whether we are cross compiling... " >&6; }
3968 if test "$cross_compiling" != yes; then
3969   { { ac_try="$ac_link"
3970 case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976   (eval "$ac_link") 2>&5
3977   ac_status=$?
3978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979   test $ac_status = 0; }
3980   if { ac_try='./conftest$ac_cv_exeext'
3981   { { case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987   (eval "$ac_try") 2>&5
3988   ac_status=$?
3989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990   test $ac_status = 0; }; }; then
3991     cross_compiling=no
3992   else
3993     if test "$cross_compiling" = maybe; then
3994         cross_compiling=yes
3995     else
3996         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998 as_fn_error $? "cannot run C compiled programs.
3999 If you meant to cross compile, use \`--host'.
4000 See \`config.log' for more details" "$LINENO" 5; }
4001     fi
4002   fi
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4005 $as_echo "$cross_compiling" >&6; }
4006
4007 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4008 ac_clean_files=$ac_clean_files_save
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4010 $as_echo_n "checking for suffix of object files... " >&6; }
4011 if ${ac_cv_objext+:} false; then :
4012   $as_echo_n "(cached) " >&6
4013 else
4014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016
4017 int
4018 main ()
4019 {
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.o conftest.obj
4026 if { { ac_try="$ac_compile"
4027 case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033   (eval "$ac_compile") 2>&5
4034   ac_status=$?
4035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036   test $ac_status = 0; }; then :
4037   for ac_file in conftest.o conftest.obj conftest.*; do
4038   test -f "$ac_file" || continue;
4039   case $ac_file in
4040     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4041     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4042        break;;
4043   esac
4044 done
4045 else
4046   $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "cannot compute suffix of object files: cannot compile
4052 See \`config.log' for more details" "$LINENO" 5; }
4053 fi
4054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4057 $as_echo "$ac_cv_objext" >&6; }
4058 OBJEXT=$ac_cv_objext
4059 ac_objext=$OBJEXT
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4061 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4062 if ${ac_cv_c_compiler_gnu+:} false; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071 #ifndef __GNUC__
4072        choke me
4073 #endif
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 if ac_fn_c_try_compile "$LINENO"; then :
4080   ac_compiler_gnu=yes
4081 else
4082   ac_compiler_gnu=no
4083 fi
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4086
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4089 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4090 if test $ac_compiler_gnu = yes; then
4091   GCC=yes
4092 else
4093   GCC=
4094 fi
4095 ac_test_CFLAGS=${CFLAGS+set}
4096 ac_save_CFLAGS=$CFLAGS
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4098 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4099 if ${ac_cv_prog_cc_g+:} false; then :
4100   $as_echo_n "(cached) " >&6
4101 else
4102   ac_save_c_werror_flag=$ac_c_werror_flag
4103    ac_c_werror_flag=yes
4104    ac_cv_prog_cc_g=no
4105    CFLAGS="-g"
4106    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h.  */
4108
4109 int
4110 main ()
4111 {
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118   ac_cv_prog_cc_g=yes
4119 else
4120   CFLAGS=""
4121       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133
4134 else
4135   ac_c_werror_flag=$ac_save_c_werror_flag
4136          CFLAGS="-g"
4137          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h.  */
4139
4140 int
4141 main ()
4142 {
4143
4144   ;
4145   return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149   ac_cv_prog_cc_g=yes
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156    ac_c_werror_flag=$ac_save_c_werror_flag
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4159 $as_echo "$ac_cv_prog_cc_g" >&6; }
4160 if test "$ac_test_CFLAGS" = set; then
4161   CFLAGS=$ac_save_CFLAGS
4162 elif test $ac_cv_prog_cc_g = yes; then
4163   if test "$GCC" = yes; then
4164     CFLAGS="-g -O2"
4165   else
4166     CFLAGS="-g"
4167   fi
4168 else
4169   if test "$GCC" = yes; then
4170     CFLAGS="-O2"
4171   else
4172     CFLAGS=
4173   fi
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4177 if ${ac_cv_prog_cc_c89+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   ac_cv_prog_cc_c89=no
4181 ac_save_CC=$CC
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184 #include <stdarg.h>
4185 #include <stdio.h>
4186 struct stat;
4187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4188 struct buf { int x; };
4189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4190 static char *e (p, i)
4191      char **p;
4192      int i;
4193 {
4194   return p[i];
4195 }
4196 static char *f (char * (*g) (char **, int), char **p, ...)
4197 {
4198   char *s;
4199   va_list v;
4200   va_start (v,p);
4201   s = g (p, va_arg (v,int));
4202   va_end (v);
4203   return s;
4204 }
4205
4206 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4207    function prototypes and stuff, but not '\xHH' hex character constants.
4208    These don't provoke an error unfortunately, instead are silently treated
4209    as 'x'.  The following induces an error, until -std is added to get
4210    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4211    array size at least.  It's necessary to write '\x00'==0 to get something
4212    that's true only with -std.  */
4213 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4214
4215 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4216    inside strings and character constants.  */
4217 #define FOO(x) 'x'
4218 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4219
4220 int test (int i, double x);
4221 struct s1 {int (*f) (int a);};
4222 struct s2 {int (*f) (double a);};
4223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4224 int argc;
4225 char **argv;
4226 int
4227 main ()
4228 {
4229 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4235         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4236 do
4237   CC="$ac_save_CC $ac_arg"
4238   if ac_fn_c_try_compile "$LINENO"; then :
4239   ac_cv_prog_cc_c89=$ac_arg
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext
4242   test "x$ac_cv_prog_cc_c89" != "xno" && break
4243 done
4244 rm -f conftest.$ac_ext
4245 CC=$ac_save_CC
4246
4247 fi
4248 # AC_CACHE_VAL
4249 case "x$ac_cv_prog_cc_c89" in
4250   x)
4251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4252 $as_echo "none needed" >&6; } ;;
4253   xno)
4254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4255 $as_echo "unsupported" >&6; } ;;
4256   *)
4257     CC="$CC $ac_cv_prog_cc_c89"
4258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4259 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4260 esac
4261 if test "x$ac_cv_prog_cc_c89" != xno; then :
4262
4263 fi
4264
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4277 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4278 if ${am_cv_prog_cc_c_o+:} false; then :
4279   $as_echo_n "(cached) " >&6
4280 else
4281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h.  */
4283
4284 int
4285 main ()
4286 {
4287
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292   # Make sure it works both with $CC and with simple cc.
4293   # Following AC_PROG_CC_C_O, we do the test twice because some
4294   # compilers refuse to overwrite an existing .o file with -o,
4295   # though they will create one.
4296   am_cv_prog_cc_c_o=yes
4297   for am_i in 1 2; do
4298     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4299    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4300    ac_status=$?
4301    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302    (exit $ac_status); } \
4303          && test -f conftest2.$ac_objext; then
4304       : OK
4305     else
4306       am_cv_prog_cc_c_o=no
4307       break
4308     fi
4309   done
4310   rm -f core conftest*
4311   unset am_i
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4314 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4315 if test "$am_cv_prog_cc_c_o" != yes; then
4316    # Losing compiler, so override with the script.
4317    # FIXME: It is wrong to rewrite CC.
4318    # But if we don't then we get into trouble of one sort or another.
4319    # A longer-term fix would be to have automake use am__CC in this case,
4320    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4321    CC="$am_aux_dir/compile $CC"
4322 fi
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329 DEPDIR="${am__leading_dot}deps"
4330
4331 ac_config_commands="$ac_config_commands depfiles"
4332
4333
4334 am_make=${MAKE-make}
4335 cat > confinc << 'END'
4336 am__doit:
4337         @echo this is the am__doit target
4338 .PHONY: am__doit
4339 END
4340 # If we don't find an include directive, just comment out the code.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4342 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4343 am__include="#"
4344 am__quote=
4345 _am_result=none
4346 # First try GNU make style include.
4347 echo "include confinc" > confmf
4348 # Ignore all kinds of additional output from 'make'.
4349 case `$am_make -s -f confmf 2> /dev/null` in #(
4350 *the\ am__doit\ target*)
4351   am__include=include
4352   am__quote=
4353   _am_result=GNU
4354   ;;
4355 esac
4356 # Now try BSD make style include.
4357 if test "$am__include" = "#"; then
4358    echo '.include "confinc"' > confmf
4359    case `$am_make -s -f confmf 2> /dev/null` in #(
4360    *the\ am__doit\ target*)
4361      am__include=.include
4362      am__quote="\""
4363      _am_result=BSD
4364      ;;
4365    esac
4366 fi
4367
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4370 $as_echo "$_am_result" >&6; }
4371 rm -f confinc confmf
4372
4373 # Check whether --enable-dependency-tracking was given.
4374 if test "${enable_dependency_tracking+set}" = set; then :
4375   enableval=$enable_dependency_tracking;
4376 fi
4377
4378 if test "x$enable_dependency_tracking" != xno; then
4379   am_depcomp="$ac_aux_dir/depcomp"
4380   AMDEPBACKSLASH='\'
4381   am__nodep='_no'
4382 fi
4383  if test "x$enable_dependency_tracking" != xno; then
4384   AMDEP_TRUE=
4385   AMDEP_FALSE='#'
4386 else
4387   AMDEP_TRUE='#'
4388   AMDEP_FALSE=
4389 fi
4390
4391
4392
4393 depcc="$CC"   am_compiler_list=
4394
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4396 $as_echo_n "checking dependency style of $depcc... " >&6; }
4397 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4401   # We make a subdir and do the tests there.  Otherwise we can end up
4402   # making bogus files that we don't know about and never remove.  For
4403   # instance it was reported that on HP-UX the gcc test will end up
4404   # making a dummy file named 'D' -- because '-MD' means "put the output
4405   # in D".
4406   rm -rf conftest.dir
4407   mkdir conftest.dir
4408   # Copy depcomp to subdir because otherwise we won't find it if we're
4409   # using a relative directory.
4410   cp "$am_depcomp" conftest.dir
4411   cd conftest.dir
4412   # We will build objects and dependencies in a subdirectory because
4413   # it helps to detect inapplicable dependency modes.  For instance
4414   # both Tru64's cc and ICC support -MD to output dependencies as a
4415   # side effect of compilation, but ICC will put the dependencies in
4416   # the current directory while Tru64 will put them in the object
4417   # directory.
4418   mkdir sub
4419
4420   am_cv_CC_dependencies_compiler_type=none
4421   if test "$am_compiler_list" = ""; then
4422      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4423   fi
4424   am__universal=false
4425   case " $depcc " in #(
4426      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4427      esac
4428
4429   for depmode in $am_compiler_list; do
4430     # Setup a source with many dependencies, because some compilers
4431     # like to wrap large dependency lists on column 80 (with \), and
4432     # we should not choose a depcomp mode which is confused by this.
4433     #
4434     # We need to recreate these files for each test, as the compiler may
4435     # overwrite some of them when testing with obscure command lines.
4436     # This happens at least with the AIX C compiler.
4437     : > sub/conftest.c
4438     for i in 1 2 3 4 5 6; do
4439       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4440       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4441       # Solaris 10 /bin/sh.
4442       echo '/* dummy */' > sub/conftst$i.h
4443     done
4444     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4445
4446     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4447     # mode.  It turns out that the SunPro C++ compiler does not properly
4448     # handle '-M -o', and we need to detect this.  Also, some Intel
4449     # versions had trouble with output in subdirs.
4450     am__obj=sub/conftest.${OBJEXT-o}
4451     am__minus_obj="-o $am__obj"
4452     case $depmode in
4453     gcc)
4454       # This depmode causes a compiler race in universal mode.
4455       test "$am__universal" = false || continue
4456       ;;
4457     nosideeffect)
4458       # After this tag, mechanisms are not by side-effect, so they'll
4459       # only be used when explicitly requested.
4460       if test "x$enable_dependency_tracking" = xyes; then
4461         continue
4462       else
4463         break
4464       fi
4465       ;;
4466     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4467       # This compiler won't grok '-c -o', but also, the minuso test has
4468       # not run yet.  These depmodes are late enough in the game, and
4469       # so weak that their functioning should not be impacted.
4470       am__obj=conftest.${OBJEXT-o}
4471       am__minus_obj=
4472       ;;
4473     none) break ;;
4474     esac
4475     if depmode=$depmode \
4476        source=sub/conftest.c object=$am__obj \
4477        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4478        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4479          >/dev/null 2>conftest.err &&
4480        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4481        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4482        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4483        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4484       # icc doesn't choke on unknown options, it will just issue warnings
4485       # or remarks (even with -Werror).  So we grep stderr for any message
4486       # that says an option was ignored or not supported.
4487       # When given -MP, icc 7.0 and 7.1 complain thusly:
4488       #   icc: Command line warning: ignoring option '-M'; no argument required
4489       # The diagnosis changed in icc 8.0:
4490       #   icc: Command line remark: option '-MP' not supported
4491       if (grep 'ignoring option' conftest.err ||
4492           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4493         am_cv_CC_dependencies_compiler_type=$depmode
4494         break
4495       fi
4496     fi
4497   done
4498
4499   cd ..
4500   rm -rf conftest.dir
4501 else
4502   am_cv_CC_dependencies_compiler_type=none
4503 fi
4504
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4507 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4509
4510  if
4511   test "x$enable_dependency_tracking" != xno \
4512   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4513   am__fastdepCC_TRUE=
4514   am__fastdepCC_FALSE='#'
4515 else
4516   am__fastdepCC_TRUE='#'
4517   am__fastdepCC_FALSE=
4518 fi
4519
4520
4521 ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4528 # On Suns, sometimes $CPP names a directory.
4529 if test -n "$CPP" && test -d "$CPP"; then
4530   CPP=
4531 fi
4532 if test -z "$CPP"; then
4533   if ${ac_cv_prog_CPP+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536       # Double quotes because CPP needs to be expanded
4537     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4538     do
4539       ac_preproc_ok=false
4540 for ac_c_preproc_warn_flag in '' yes
4541 do
4542   # Use a header file that comes with gcc, so configuring glibc
4543   # with a fresh cross-compiler works.
4544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545   # <limits.h> exists even on freestanding compilers.
4546   # On the NeXT, cc -E runs the code through the compiler's parser,
4547   # not just through cpp. "Syntax error" is here to catch this case.
4548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h.  */
4550 #ifdef __STDC__
4551 # include <limits.h>
4552 #else
4553 # include <assert.h>
4554 #endif
4555                      Syntax error
4556 _ACEOF
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558
4559 else
4560   # Broken: fails on valid input.
4561 continue
4562 fi
4563 rm -f conftest.err conftest.i conftest.$ac_ext
4564
4565   # OK, works on sane cases.  Now check whether nonexistent headers
4566   # can be detected and how.
4567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h.  */
4569 #include <ac_nonexistent.h>
4570 _ACEOF
4571 if ac_fn_c_try_cpp "$LINENO"; then :
4572   # Broken: success on invalid input.
4573 continue
4574 else
4575   # Passes both tests.
4576 ac_preproc_ok=:
4577 break
4578 fi
4579 rm -f conftest.err conftest.i conftest.$ac_ext
4580
4581 done
4582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4583 rm -f conftest.i conftest.err conftest.$ac_ext
4584 if $ac_preproc_ok; then :
4585   break
4586 fi
4587
4588     done
4589     ac_cv_prog_CPP=$CPP
4590
4591 fi
4592   CPP=$ac_cv_prog_CPP
4593 else
4594   ac_cv_prog_CPP=$CPP
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4597 $as_echo "$CPP" >&6; }
4598 ac_preproc_ok=false
4599 for ac_c_preproc_warn_flag in '' yes
4600 do
4601   # Use a header file that comes with gcc, so configuring glibc
4602   # with a fresh cross-compiler works.
4603   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4604   # <limits.h> exists even on freestanding compilers.
4605   # On the NeXT, cc -E runs the code through the compiler's parser,
4606   # not just through cpp. "Syntax error" is here to catch this case.
4607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609 #ifdef __STDC__
4610 # include <limits.h>
4611 #else
4612 # include <assert.h>
4613 #endif
4614                      Syntax error
4615 _ACEOF
4616 if ac_fn_c_try_cpp "$LINENO"; then :
4617
4618 else
4619   # Broken: fails on valid input.
4620 continue
4621 fi
4622 rm -f conftest.err conftest.i conftest.$ac_ext
4623
4624   # OK, works on sane cases.  Now check whether nonexistent headers
4625   # can be detected and how.
4626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h.  */
4628 #include <ac_nonexistent.h>
4629 _ACEOF
4630 if ac_fn_c_try_cpp "$LINENO"; then :
4631   # Broken: success on invalid input.
4632 continue
4633 else
4634   # Passes both tests.
4635 ac_preproc_ok=:
4636 break
4637 fi
4638 rm -f conftest.err conftest.i conftest.$ac_ext
4639
4640 done
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.i conftest.err conftest.$ac_ext
4643 if $ac_preproc_ok; then :
4644
4645 else
4646   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4649 See \`config.log' for more details" "$LINENO" 5; }
4650 fi
4651
4652 ac_ext=c
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4660 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4661 if ${ac_cv_path_GREP+:} false; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   if test -z "$GREP"; then
4665   ac_path_GREP_found=false
4666   # Loop through the user's path and test for each of PROGNAME-LIST
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672     for ac_prog in grep ggrep; do
4673     for ac_exec_ext in '' $ac_executable_extensions; do
4674       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4675       as_fn_executable_p "$ac_path_GREP" || continue
4676 # Check for GNU ac_path_GREP and select it if it is found.
4677   # Check for GNU $ac_path_GREP
4678 case `"$ac_path_GREP" --version 2>&1` in
4679 *GNU*)
4680   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4681 *)
4682   ac_count=0
4683   $as_echo_n 0123456789 >"conftest.in"
4684   while :
4685   do
4686     cat "conftest.in" "conftest.in" >"conftest.tmp"
4687     mv "conftest.tmp" "conftest.in"
4688     cp "conftest.in" "conftest.nl"
4689     $as_echo 'GREP' >> "conftest.nl"
4690     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692     as_fn_arith $ac_count + 1 && ac_count=$as_val
4693     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4694       # Best one so far, save it but keep looking for a better one
4695       ac_cv_path_GREP="$ac_path_GREP"
4696       ac_path_GREP_max=$ac_count
4697     fi
4698     # 10*(2^10) chars as input seems more than enough
4699     test $ac_count -gt 10 && break
4700   done
4701   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702 esac
4703
4704       $ac_path_GREP_found && break 3
4705     done
4706   done
4707   done
4708 IFS=$as_save_IFS
4709   if test -z "$ac_cv_path_GREP"; then
4710     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4711   fi
4712 else
4713   ac_cv_path_GREP=$GREP
4714 fi
4715
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4718 $as_echo "$ac_cv_path_GREP" >&6; }
4719  GREP="$ac_cv_path_GREP"
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4723 $as_echo_n "checking for egrep... " >&6; }
4724 if ${ac_cv_path_EGREP+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4728    then ac_cv_path_EGREP="$GREP -E"
4729    else
4730      if test -z "$EGREP"; then
4731   ac_path_EGREP_found=false
4732   # Loop through the user's path and test for each of PROGNAME-LIST
4733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738     for ac_prog in egrep; do
4739     for ac_exec_ext in '' $ac_executable_extensions; do
4740       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4741       as_fn_executable_p "$ac_path_EGREP" || continue
4742 # Check for GNU ac_path_EGREP and select it if it is found.
4743   # Check for GNU $ac_path_EGREP
4744 case `"$ac_path_EGREP" --version 2>&1` in
4745 *GNU*)
4746   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4747 *)
4748   ac_count=0
4749   $as_echo_n 0123456789 >"conftest.in"
4750   while :
4751   do
4752     cat "conftest.in" "conftest.in" >"conftest.tmp"
4753     mv "conftest.tmp" "conftest.in"
4754     cp "conftest.in" "conftest.nl"
4755     $as_echo 'EGREP' >> "conftest.nl"
4756     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758     as_fn_arith $ac_count + 1 && ac_count=$as_val
4759     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4760       # Best one so far, save it but keep looking for a better one
4761       ac_cv_path_EGREP="$ac_path_EGREP"
4762       ac_path_EGREP_max=$ac_count
4763     fi
4764     # 10*(2^10) chars as input seems more than enough
4765     test $ac_count -gt 10 && break
4766   done
4767   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768 esac
4769
4770       $ac_path_EGREP_found && break 3
4771     done
4772   done
4773   done
4774 IFS=$as_save_IFS
4775   if test -z "$ac_cv_path_EGREP"; then
4776     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4777   fi
4778 else
4779   ac_cv_path_EGREP=$EGREP
4780 fi
4781
4782    fi
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4785 $as_echo "$ac_cv_path_EGREP" >&6; }
4786  EGREP="$ac_cv_path_EGREP"
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4797         if test -n "$ac_tool_prefix"; then
4798   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4799 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   case $PKG_CONFIG in
4806   [\\/]* | ?:[\\/]*)
4807   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4808   ;;
4809   *)
4810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815     for ac_exec_ext in '' $ac_executable_extensions; do
4816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822   done
4823 IFS=$as_save_IFS
4824
4825   ;;
4826 esac
4827 fi
4828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4829 if test -n "$PKG_CONFIG"; then
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4831 $as_echo "$PKG_CONFIG" >&6; }
4832 else
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836
4837
4838 fi
4839 if test -z "$ac_cv_path_PKG_CONFIG"; then
4840   ac_pt_PKG_CONFIG=$PKG_CONFIG
4841   # Extract the first word of "pkg-config", so it can be a program name with args.
4842 set dummy pkg-config; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   case $ac_pt_PKG_CONFIG in
4849   [\\/]* | ?:[\\/]*)
4850   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4851   ;;
4852   *)
4853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865   done
4866 IFS=$as_save_IFS
4867
4868   ;;
4869 esac
4870 fi
4871 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4872 if test -n "$ac_pt_PKG_CONFIG"; then
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4874 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4875 else
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878 fi
4879
4880   if test "x$ac_pt_PKG_CONFIG" = x; then
4881     PKG_CONFIG=""
4882   else
4883     case $cross_compiling:$ac_tool_warned in
4884 yes:)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4887 ac_tool_warned=yes ;;
4888 esac
4889     PKG_CONFIG=$ac_pt_PKG_CONFIG
4890   fi
4891 else
4892   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4893 fi
4894
4895 fi
4896 if test -n "$PKG_CONFIG"; then
4897         _pkg_min_version=0.9.0
4898         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4899 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4900         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4901                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902 $as_echo "yes" >&6; }
4903         else
4904                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906                 PKG_CONFIG=""
4907         fi
4908 fi
4909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4910 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4911 if ${ac_cv_prog_cc_c99+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   ac_cv_prog_cc_c99=no
4915 ac_save_CC=$CC
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h.  */
4918 #include <stdarg.h>
4919 #include <stdbool.h>
4920 #include <stdlib.h>
4921 #include <wchar.h>
4922 #include <stdio.h>
4923
4924 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4925 #define debug(...) fprintf (stderr, __VA_ARGS__)
4926 #define showlist(...) puts (#__VA_ARGS__)
4927 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4928 static void
4929 test_varargs_macros (void)
4930 {
4931   int x = 1234;
4932   int y = 5678;
4933   debug ("Flag");
4934   debug ("X = %d\n", x);
4935   showlist (The first, second, and third items.);
4936   report (x>y, "x is %d but y is %d", x, y);
4937 }
4938
4939 // Check long long types.
4940 #define BIG64 18446744073709551615ull
4941 #define BIG32 4294967295ul
4942 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4943 #if !BIG_OK
4944   your preprocessor is broken;
4945 #endif
4946 #if BIG_OK
4947 #else
4948   your preprocessor is broken;
4949 #endif
4950 static long long int bignum = -9223372036854775807LL;
4951 static unsigned long long int ubignum = BIG64;
4952
4953 struct incomplete_array
4954 {
4955   int datasize;
4956   double data[];
4957 };
4958
4959 struct named_init {
4960   int number;
4961   const wchar_t *name;
4962   double average;
4963 };
4964
4965 typedef const char *ccp;
4966
4967 static inline int
4968 test_restrict (ccp restrict text)
4969 {
4970   // See if C++-style comments work.
4971   // Iterate through items via the restricted pointer.
4972   // Also check for declarations in for loops.
4973   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4974     continue;
4975   return 0;
4976 }
4977
4978 // Check varargs and va_copy.
4979 static void
4980 test_varargs (const char *format, ...)
4981 {
4982   va_list args;
4983   va_start (args, format);
4984   va_list args_copy;
4985   va_copy (args_copy, args);
4986
4987   const char *str;
4988   int number;
4989   float fnumber;
4990
4991   while (*format)
4992     {
4993       switch (*format++)
4994         {
4995         case 's': // string
4996           str = va_arg (args_copy, const char *);
4997           break;
4998         case 'd': // int
4999           number = va_arg (args_copy, int);
5000           break;
5001         case 'f': // float
5002           fnumber = va_arg (args_copy, double);
5003           break;
5004         default:
5005           break;
5006         }
5007     }
5008   va_end (args_copy);
5009   va_end (args);
5010 }
5011
5012 int
5013 main ()
5014 {
5015
5016   // Check bool.
5017   _Bool success = false;
5018
5019   // Check restrict.
5020   if (test_restrict ("String literal") == 0)
5021     success = true;
5022   char *restrict newvar = "Another string";
5023
5024   // Check varargs.
5025   test_varargs ("s, d' f .", "string", 65, 34.234);
5026   test_varargs_macros ();
5027
5028   // Check flexible array members.
5029   struct incomplete_array *ia =
5030     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5031   ia->datasize = 10;
5032   for (int i = 0; i < ia->datasize; ++i)
5033     ia->data[i] = i * 1.234;
5034
5035   // Check named initializers.
5036   struct named_init ni = {
5037     .number = 34,
5038     .name = L"Test wide string",
5039     .average = 543.34343,
5040   };
5041
5042   ni.number = 58;
5043
5044   int dynamic_array[ni.number];
5045   dynamic_array[ni.number - 1] = 543;
5046
5047   // work around unused variable warnings
5048   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5049           || dynamic_array[ni.number - 1] != 543);
5050
5051   ;
5052   return 0;
5053 }
5054 _ACEOF
5055 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5056 do
5057   CC="$ac_save_CC $ac_arg"
5058   if ac_fn_c_try_compile "$LINENO"; then :
5059   ac_cv_prog_cc_c99=$ac_arg
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext
5062   test "x$ac_cv_prog_cc_c99" != "xno" && break
5063 done
5064 rm -f conftest.$ac_ext
5065 CC=$ac_save_CC
5066
5067 fi
5068 # AC_CACHE_VAL
5069 case "x$ac_cv_prog_cc_c99" in
5070   x)
5071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5072 $as_echo "none needed" >&6; } ;;
5073   xno)
5074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5075 $as_echo "unsupported" >&6; } ;;
5076   *)
5077     CC="$CC $ac_cv_prog_cc_c99"
5078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5079 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5080 esac
5081 if test "x$ac_cv_prog_cc_c99" != xno; then :
5082
5083 fi
5084
5085
5086
5087
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5090 $as_echo_n "checking for ANSI C header files... " >&6; }
5091 if ${ac_cv_header_stdc+:} false; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h.  */
5096 #include <stdlib.h>
5097 #include <stdarg.h>
5098 #include <string.h>
5099 #include <float.h>
5100
5101 int
5102 main ()
5103 {
5104
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 if ac_fn_c_try_compile "$LINENO"; then :
5110   ac_cv_header_stdc=yes
5111 else
5112   ac_cv_header_stdc=no
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115
5116 if test $ac_cv_header_stdc = yes; then
5117   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h.  */
5120 #include <string.h>
5121
5122 _ACEOF
5123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5124   $EGREP "memchr" >/dev/null 2>&1; then :
5125
5126 else
5127   ac_cv_header_stdc=no
5128 fi
5129 rm -f conftest*
5130
5131 fi
5132
5133 if test $ac_cv_header_stdc = yes; then
5134   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137 #include <stdlib.h>
5138
5139 _ACEOF
5140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141   $EGREP "free" >/dev/null 2>&1; then :
5142
5143 else
5144   ac_cv_header_stdc=no
5145 fi
5146 rm -f conftest*
5147
5148 fi
5149
5150 if test $ac_cv_header_stdc = yes; then
5151   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5152   if test "$cross_compiling" = yes; then :
5153   :
5154 else
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #include <ctype.h>
5158 #include <stdlib.h>
5159 #if ((' ' & 0x0FF) == 0x020)
5160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5162 #else
5163 # define ISLOWER(c) \
5164                    (('a' <= (c) && (c) <= 'i') \
5165                      || ('j' <= (c) && (c) <= 'r') \
5166                      || ('s' <= (c) && (c) <= 'z'))
5167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5168 #endif
5169
5170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5171 int
5172 main ()
5173 {
5174   int i;
5175   for (i = 0; i < 256; i++)
5176     if (XOR (islower (i), ISLOWER (i))
5177         || toupper (i) != TOUPPER (i))
5178       return 2;
5179   return 0;
5180 }
5181 _ACEOF
5182 if ac_fn_c_try_run "$LINENO"; then :
5183
5184 else
5185   ac_cv_header_stdc=no
5186 fi
5187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5188   conftest.$ac_objext conftest.beam conftest.$ac_ext
5189 fi
5190
5191 fi
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5194 $as_echo "$ac_cv_header_stdc" >&6; }
5195 if test $ac_cv_header_stdc = yes; then
5196
5197 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5198
5199 fi
5200
5201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5202 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5203                   inttypes.h stdint.h unistd.h
5204 do :
5205   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5207 "
5208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5209   cat >>confdefs.h <<_ACEOF
5210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5211 _ACEOF
5212
5213 fi
5214
5215 done
5216
5217
5218
5219   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5220 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5221   MINIX=yes
5222 else
5223   MINIX=
5224 fi
5225
5226
5227   if test "$MINIX" = yes; then
5228
5229 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5230
5231
5232 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5233
5234
5235 $as_echo "#define _MINIX 1" >>confdefs.h
5236
5237   fi
5238
5239
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5241 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5242 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5243   $as_echo_n "(cached) " >&6
5244 else
5245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h.  */
5247
5248 #         define __EXTENSIONS__ 1
5249           $ac_includes_default
5250 int
5251 main ()
5252 {
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259   ac_cv_safe_to_define___extensions__=yes
5260 else
5261   ac_cv_safe_to_define___extensions__=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5266 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5267   test $ac_cv_safe_to_define___extensions__ = yes &&
5268     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5269
5270   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5271
5272   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5273
5274   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5275
5276   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5277
5278
5279
5280 case `pwd` in
5281   *\ * | *\     *)
5282     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5283 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5284 esac
5285
5286
5287
5288 macro_version='2.4.6'
5289 macro_revision='2.4.6'
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 ltmain=$ac_aux_dir/ltmain.sh
5304
5305 # Backslashify metacharacters that are still active within
5306 # double-quoted strings.
5307 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5308
5309 # Same as above, but do not quote variable references.
5310 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5311
5312 # Sed substitution to delay expansion of an escaped shell variable in a
5313 # double_quote_subst'ed string.
5314 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5315
5316 # Sed substitution to delay expansion of an escaped single quote.
5317 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5318
5319 # Sed substitution to avoid accidental globbing in evaled expressions
5320 no_glob_subst='s/\*/\\\*/g'
5321
5322 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5323 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5324 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5327 $as_echo_n "checking how to print strings... " >&6; }
5328 # Test print first, because it will be a builtin if present.
5329 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5330    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5331   ECHO='print -r --'
5332 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5333   ECHO='printf %s\n'
5334 else
5335   # Use this function as a fallback that always works.
5336   func_fallback_echo ()
5337   {
5338     eval 'cat <<_LTECHO_EOF
5339 $1
5340 _LTECHO_EOF'
5341   }
5342   ECHO='func_fallback_echo'
5343 fi
5344
5345 # func_echo_all arg...
5346 # Invoke $ECHO with all args, space-separated.
5347 func_echo_all ()
5348 {
5349     $ECHO ""
5350 }
5351
5352 case $ECHO in
5353   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5354 $as_echo "printf" >&6; } ;;
5355   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5356 $as_echo "print -r" >&6; } ;;
5357   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5358 $as_echo "cat" >&6; } ;;
5359 esac
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5375 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5376 if ${ac_cv_path_SED+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5380      for ac_i in 1 2 3 4 5 6 7; do
5381        ac_script="$ac_script$as_nl$ac_script"
5382      done
5383      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5384      { ac_script=; unset ac_script;}
5385      if test -z "$SED"; then
5386   ac_path_SED_found=false
5387   # Loop through the user's path and test for each of PROGNAME-LIST
5388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_prog in sed gsed; do
5394     for ac_exec_ext in '' $ac_executable_extensions; do
5395       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5396       as_fn_executable_p "$ac_path_SED" || continue
5397 # Check for GNU ac_path_SED and select it if it is found.
5398   # Check for GNU $ac_path_SED
5399 case `"$ac_path_SED" --version 2>&1` in
5400 *GNU*)
5401   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5402 *)
5403   ac_count=0
5404   $as_echo_n 0123456789 >"conftest.in"
5405   while :
5406   do
5407     cat "conftest.in" "conftest.in" >"conftest.tmp"
5408     mv "conftest.tmp" "conftest.in"
5409     cp "conftest.in" "conftest.nl"
5410     $as_echo '' >> "conftest.nl"
5411     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413     as_fn_arith $ac_count + 1 && ac_count=$as_val
5414     if test $ac_count -gt ${ac_path_SED_max-0}; then
5415       # Best one so far, save it but keep looking for a better one
5416       ac_cv_path_SED="$ac_path_SED"
5417       ac_path_SED_max=$ac_count
5418     fi
5419     # 10*(2^10) chars as input seems more than enough
5420     test $ac_count -gt 10 && break
5421   done
5422   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423 esac
5424
5425       $ac_path_SED_found && break 3
5426     done
5427   done
5428   done
5429 IFS=$as_save_IFS
5430   if test -z "$ac_cv_path_SED"; then
5431     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5432   fi
5433 else
5434   ac_cv_path_SED=$SED
5435 fi
5436
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5439 $as_echo "$ac_cv_path_SED" >&6; }
5440  SED="$ac_cv_path_SED"
5441   rm -f conftest.sed
5442
5443 test -z "$SED" && SED=sed
5444 Xsed="$SED -e 1s/^X//"
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5457 $as_echo_n "checking for fgrep... " >&6; }
5458 if ${ac_cv_path_FGREP+:} false; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5462    then ac_cv_path_FGREP="$GREP -F"
5463    else
5464      if test -z "$FGREP"; then
5465   ac_path_FGREP_found=false
5466   # Loop through the user's path and test for each of PROGNAME-LIST
5467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472     for ac_prog in fgrep; do
5473     for ac_exec_ext in '' $ac_executable_extensions; do
5474       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5475       as_fn_executable_p "$ac_path_FGREP" || continue
5476 # Check for GNU ac_path_FGREP and select it if it is found.
5477   # Check for GNU $ac_path_FGREP
5478 case `"$ac_path_FGREP" --version 2>&1` in
5479 *GNU*)
5480   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5481 *)
5482   ac_count=0
5483   $as_echo_n 0123456789 >"conftest.in"
5484   while :
5485   do
5486     cat "conftest.in" "conftest.in" >"conftest.tmp"
5487     mv "conftest.tmp" "conftest.in"
5488     cp "conftest.in" "conftest.nl"
5489     $as_echo 'FGREP' >> "conftest.nl"
5490     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492     as_fn_arith $ac_count + 1 && ac_count=$as_val
5493     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5494       # Best one so far, save it but keep looking for a better one
5495       ac_cv_path_FGREP="$ac_path_FGREP"
5496       ac_path_FGREP_max=$ac_count
5497     fi
5498     # 10*(2^10) chars as input seems more than enough
5499     test $ac_count -gt 10 && break
5500   done
5501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 esac
5503
5504       $ac_path_FGREP_found && break 3
5505     done
5506   done
5507   done
5508 IFS=$as_save_IFS
5509   if test -z "$ac_cv_path_FGREP"; then
5510     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5511   fi
5512 else
5513   ac_cv_path_FGREP=$FGREP
5514 fi
5515
5516    fi
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5519 $as_echo "$ac_cv_path_FGREP" >&6; }
5520  FGREP="$ac_cv_path_FGREP"
5521
5522
5523 test -z "$GREP" && GREP=grep
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 # Check whether --with-gnu-ld was given.
5544 if test "${with_gnu_ld+set}" = set; then :
5545   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5546 else
5547   with_gnu_ld=no
5548 fi
5549
5550 ac_prog=ld
5551 if test yes = "$GCC"; then
5552   # Check if gcc -print-prog-name=ld gives a path.
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5554 $as_echo_n "checking for ld used by $CC... " >&6; }
5555   case $host in
5556   *-*-mingw*)
5557     # gcc leaves a trailing carriage return, which upsets mingw
5558     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5559   *)
5560     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5561   esac
5562   case $ac_prog in
5563     # Accept absolute paths.
5564     [\\/]* | ?:[\\/]*)
5565       re_direlt='/[^/][^/]*/\.\./'
5566       # Canonicalize the pathname of ld
5567       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5568       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5569         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5570       done
5571       test -z "$LD" && LD=$ac_prog
5572       ;;
5573   "")
5574     # If it fails, then pretend we aren't using GCC.
5575     ac_prog=ld
5576     ;;
5577   *)
5578     # If it is relative, then search for the first ld in PATH.
5579     with_gnu_ld=unknown
5580     ;;
5581   esac
5582 elif test yes = "$with_gnu_ld"; then
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5584 $as_echo_n "checking for GNU ld... " >&6; }
5585 else
5586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5587 $as_echo_n "checking for non-GNU ld... " >&6; }
5588 fi
5589 if ${lt_cv_path_LD+:} false; then :
5590   $as_echo_n "(cached) " >&6
5591 else
5592   if test -z "$LD"; then
5593   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5594   for ac_dir in $PATH; do
5595     IFS=$lt_save_ifs
5596     test -z "$ac_dir" && ac_dir=.
5597     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5598       lt_cv_path_LD=$ac_dir/$ac_prog
5599       # Check to see if the program is GNU ld.  I'd rather use --version,
5600       # but apparently some variants of GNU ld only accept -v.
5601       # Break only if it was the GNU/non-GNU ld that we prefer.
5602       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5603       *GNU* | *'with BFD'*)
5604         test no != "$with_gnu_ld" && break
5605         ;;
5606       *)
5607         test yes != "$with_gnu_ld" && break
5608         ;;
5609       esac
5610     fi
5611   done
5612   IFS=$lt_save_ifs
5613 else
5614   lt_cv_path_LD=$LD # Let the user override the test with a path.
5615 fi
5616 fi
5617
5618 LD=$lt_cv_path_LD
5619 if test -n "$LD"; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5621 $as_echo "$LD" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5629 if ${lt_cv_prog_gnu_ld+:} false; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5633 case `$LD -v 2>&1 </dev/null` in
5634 *GNU* | *'with BFD'*)
5635   lt_cv_prog_gnu_ld=yes
5636   ;;
5637 *)
5638   lt_cv_prog_gnu_ld=no
5639   ;;
5640 esac
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5643 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5644 with_gnu_ld=$lt_cv_prog_gnu_ld
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5655 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5656 if ${lt_cv_path_NM+:} false; then :
5657   $as_echo_n "(cached) " >&6
5658 else
5659   if test -n "$NM"; then
5660   # Let the user override the test.
5661   lt_cv_path_NM=$NM
5662 else
5663   lt_nm_to_check=${ac_tool_prefix}nm
5664   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5665     lt_nm_to_check="$lt_nm_to_check nm"
5666   fi
5667   for lt_tmp_nm in $lt_nm_to_check; do
5668     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5669     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5670       IFS=$lt_save_ifs
5671       test -z "$ac_dir" && ac_dir=.
5672       tmp_nm=$ac_dir/$lt_tmp_nm
5673       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5674         # Check to see if the nm accepts a BSD-compat flag.
5675         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5676         #   nm: unknown option "B" ignored
5677         # Tru64's nm complains that /dev/null is an invalid object file
5678         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5679         case $build_os in
5680         mingw*) lt_bad_file=conftest.nm/nofile ;;
5681         *) lt_bad_file=/dev/null ;;
5682         esac
5683         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5684         *$lt_bad_file* | *'Invalid file or object type'*)
5685           lt_cv_path_NM="$tmp_nm -B"
5686           break 2
5687           ;;
5688         *)
5689           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5690           */dev/null*)
5691             lt_cv_path_NM="$tmp_nm -p"
5692             break 2
5693             ;;
5694           *)
5695             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696             continue # so that we can try to find one that supports BSD flags
5697             ;;
5698           esac
5699           ;;
5700         esac
5701       fi
5702     done
5703     IFS=$lt_save_ifs
5704   done
5705   : ${lt_cv_path_NM=no}
5706 fi
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5709 $as_echo "$lt_cv_path_NM" >&6; }
5710 if test no != "$lt_cv_path_NM"; then
5711   NM=$lt_cv_path_NM
5712 else
5713   # Didn't find any BSD compatible name lister, look for dumpbin.
5714   if test -n "$DUMPBIN"; then :
5715     # Let the user override the test.
5716   else
5717     if test -n "$ac_tool_prefix"; then
5718   for ac_prog in dumpbin "link -dump"
5719   do
5720     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_DUMPBIN+:} false; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   if test -n "$DUMPBIN"; then
5728   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733   IFS=$as_save_IFS
5734   test -z "$as_dir" && as_dir=.
5735     for ac_exec_ext in '' $ac_executable_extensions; do
5736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739     break 2
5740   fi
5741 done
5742   done
5743 IFS=$as_save_IFS
5744
5745 fi
5746 fi
5747 DUMPBIN=$ac_cv_prog_DUMPBIN
5748 if test -n "$DUMPBIN"; then
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5750 $as_echo "$DUMPBIN" >&6; }
5751 else
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754 fi
5755
5756
5757     test -n "$DUMPBIN" && break
5758   done
5759 fi
5760 if test -z "$DUMPBIN"; then
5761   ac_ct_DUMPBIN=$DUMPBIN
5762   for ac_prog in dumpbin "link -dump"
5763 do
5764   # Extract the first word of "$ac_prog", so it can be a program name with args.
5765 set dummy $ac_prog; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   if test -n "$ac_ct_DUMPBIN"; then
5772   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779     for ac_exec_ext in '' $ac_executable_extensions; do
5780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786   done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5792 if test -n "$ac_ct_DUMPBIN"; then
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5794 $as_echo "$ac_ct_DUMPBIN" >&6; }
5795 else
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800
5801   test -n "$ac_ct_DUMPBIN" && break
5802 done
5803
5804   if test "x$ac_ct_DUMPBIN" = x; then
5805     DUMPBIN=":"
5806   else
5807     case $cross_compiling:$ac_tool_warned in
5808 yes:)
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5812 esac
5813     DUMPBIN=$ac_ct_DUMPBIN
5814   fi
5815 fi
5816
5817     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5818     *COFF*)
5819       DUMPBIN="$DUMPBIN -symbols -headers"
5820       ;;
5821     *)
5822       DUMPBIN=:
5823       ;;
5824     esac
5825   fi
5826
5827   if test : != "$DUMPBIN"; then
5828     NM=$DUMPBIN
5829   fi
5830 fi
5831 test -z "$NM" && NM=nm
5832
5833
5834
5835
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5839 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5840 if ${lt_cv_nm_interface+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   lt_cv_nm_interface="BSD nm"
5844   echo "int some_variable = 0;" > conftest.$ac_ext
5845   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5846   (eval "$ac_compile" 2>conftest.err)
5847   cat conftest.err >&5
5848   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5849   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5850   cat conftest.err >&5
5851   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5852   cat conftest.out >&5
5853   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5854     lt_cv_nm_interface="MS dumpbin"
5855   fi
5856   rm -f conftest*
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5859 $as_echo "$lt_cv_nm_interface" >&6; }
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5862 $as_echo_n "checking whether ln -s works... " >&6; }
5863 LN_S=$as_ln_s
5864 if test "$LN_S" = "ln -s"; then
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5867 else
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5869 $as_echo "no, using $LN_S" >&6; }
5870 fi
5871
5872 # find the maximum length of command line arguments
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5874 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5875 if ${lt_cv_sys_max_cmd_len+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878     i=0
5879   teststring=ABCD
5880
5881   case $build_os in
5882   msdosdjgpp*)
5883     # On DJGPP, this test can blow up pretty badly due to problems in libc
5884     # (any single argument exceeding 2000 bytes causes a buffer overrun
5885     # during glob expansion).  Even if it were fixed, the result of this
5886     # check would be larger than it should be.
5887     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5888     ;;
5889
5890   gnu*)
5891     # Under GNU Hurd, this test is not required because there is
5892     # no limit to the length of command line arguments.
5893     # Libtool will interpret -1 as no limit whatsoever
5894     lt_cv_sys_max_cmd_len=-1;
5895     ;;
5896
5897   cygwin* | mingw* | cegcc*)
5898     # On Win9x/ME, this test blows up -- it succeeds, but takes
5899     # about 5 minutes as the teststring grows exponentially.
5900     # Worse, since 9x/ME are not pre-emptively multitasking,
5901     # you end up with a "frozen" computer, even though with patience
5902     # the test eventually succeeds (with a max line length of 256k).
5903     # Instead, let's just punt: use the minimum linelength reported by
5904     # all of the supported platforms: 8192 (on NT/2K/XP).
5905     lt_cv_sys_max_cmd_len=8192;
5906     ;;
5907
5908   mint*)
5909     # On MiNT this can take a long time and run out of memory.
5910     lt_cv_sys_max_cmd_len=8192;
5911     ;;
5912
5913   amigaos*)
5914     # On AmigaOS with pdksh, this test takes hours, literally.
5915     # So we just punt and use a minimum line length of 8192.
5916     lt_cv_sys_max_cmd_len=8192;
5917     ;;
5918
5919   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5920     # This has been around since 386BSD, at least.  Likely further.
5921     if test -x /sbin/sysctl; then
5922       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5923     elif test -x /usr/sbin/sysctl; then
5924       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5925     else
5926       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5927     fi
5928     # And add a safety zone
5929     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5930     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5931     ;;
5932
5933   interix*)
5934     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5935     lt_cv_sys_max_cmd_len=196608
5936     ;;
5937
5938   os2*)
5939     # The test takes a long time on OS/2.
5940     lt_cv_sys_max_cmd_len=8192
5941     ;;
5942
5943   osf*)
5944     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5945     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5946     # nice to cause kernel panics so lets avoid the loop below.
5947     # First set a reasonable default.
5948     lt_cv_sys_max_cmd_len=16384
5949     #
5950     if test -x /sbin/sysconfig; then
5951       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5952         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5953       esac
5954     fi
5955     ;;
5956   sco3.2v5*)
5957     lt_cv_sys_max_cmd_len=102400
5958     ;;
5959   sysv5* | sco5v6* | sysv4.2uw2*)
5960     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5961     if test -n "$kargmax"; then
5962       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5963     else
5964       lt_cv_sys_max_cmd_len=32768
5965     fi
5966     ;;
5967   *)
5968     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5969     if test -n "$lt_cv_sys_max_cmd_len" && \
5970        test undefined != "$lt_cv_sys_max_cmd_len"; then
5971       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5972       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5973     else
5974       # Make teststring a little bigger before we do anything with it.
5975       # a 1K string should be a reasonable start.
5976       for i in 1 2 3 4 5 6 7 8; do
5977         teststring=$teststring$teststring
5978       done
5979       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5980       # If test is not a shell built-in, we'll probably end up computing a
5981       # maximum length that is only half of the actual maximum length, but
5982       # we can't tell.
5983       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5984                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5985               test 17 != "$i" # 1/2 MB should be enough
5986       do
5987         i=`expr $i + 1`
5988         teststring=$teststring$teststring
5989       done
5990       # Only check the string length outside the loop.
5991       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5992       teststring=
5993       # Add a significant safety factor because C++ compilers can tack on
5994       # massive amounts of additional arguments before passing them to the
5995       # linker.  It appears as though 1/2 is a usable value.
5996       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5997     fi
5998     ;;
5999   esac
6000
6001 fi
6002
6003 if test -n "$lt_cv_sys_max_cmd_len"; then
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6005 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6006 else
6007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6008 $as_echo "none" >&6; }
6009 fi
6010 max_cmd_len=$lt_cv_sys_max_cmd_len
6011
6012
6013
6014
6015
6016
6017 : ${CP="cp -f"}
6018 : ${MV="mv -f"}
6019 : ${RM="rm -f"}
6020
6021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6022   lt_unset=unset
6023 else
6024   lt_unset=false
6025 fi
6026
6027
6028
6029
6030
6031 # test EBCDIC or ASCII
6032 case `echo X|tr X '\101'` in
6033  A) # ASCII based system
6034     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6035   lt_SP2NL='tr \040 \012'
6036   lt_NL2SP='tr \015\012 \040\040'
6037   ;;
6038  *) # EBCDIC based system
6039   lt_SP2NL='tr \100 \n'
6040   lt_NL2SP='tr \r\n \100\100'
6041   ;;
6042 esac
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6053 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6054 if ${lt_cv_to_host_file_cmd+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   case $host in
6058   *-*-mingw* )
6059     case $build in
6060       *-*-mingw* ) # actually msys
6061         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6062         ;;
6063       *-*-cygwin* )
6064         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6065         ;;
6066       * ) # otherwise, assume *nix
6067         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6068         ;;
6069     esac
6070     ;;
6071   *-*-cygwin* )
6072     case $build in
6073       *-*-mingw* ) # actually msys
6074         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6075         ;;
6076       *-*-cygwin* )
6077         lt_cv_to_host_file_cmd=func_convert_file_noop
6078         ;;
6079       * ) # otherwise, assume *nix
6080         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6081         ;;
6082     esac
6083     ;;
6084   * ) # unhandled hosts (and "normal" native builds)
6085     lt_cv_to_host_file_cmd=func_convert_file_noop
6086     ;;
6087 esac
6088
6089 fi
6090
6091 to_host_file_cmd=$lt_cv_to_host_file_cmd
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6093 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6094
6095
6096
6097
6098
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6100 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6101 if ${lt_cv_to_tool_file_cmd+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   #assume ordinary cross tools, or native build.
6105 lt_cv_to_tool_file_cmd=func_convert_file_noop
6106 case $host in
6107   *-*-mingw* )
6108     case $build in
6109       *-*-mingw* ) # actually msys
6110         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6111         ;;
6112     esac
6113     ;;
6114 esac
6115
6116 fi
6117
6118 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6120 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6121
6122
6123
6124
6125
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6127 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6128 if ${lt_cv_ld_reload_flag+:} false; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   lt_cv_ld_reload_flag='-r'
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6134 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6135 reload_flag=$lt_cv_ld_reload_flag
6136 case $reload_flag in
6137 "" | " "*) ;;
6138 *) reload_flag=" $reload_flag" ;;
6139 esac
6140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6141 case $host_os in
6142   cygwin* | mingw* | pw32* | cegcc*)
6143     if test yes != "$GCC"; then
6144       reload_cmds=false
6145     fi
6146     ;;
6147   darwin*)
6148     if test yes = "$GCC"; then
6149       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6150     else
6151       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6152     fi
6153     ;;
6154 esac
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164 if test -n "$ac_tool_prefix"; then
6165   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6166 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_OBJDUMP+:} false; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   if test -n "$OBJDUMP"; then
6173   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180     for ac_exec_ext in '' $ac_executable_extensions; do
6181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187   done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 OBJDUMP=$ac_cv_prog_OBJDUMP
6193 if test -n "$OBJDUMP"; then
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6195 $as_echo "$OBJDUMP" >&6; }
6196 else
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 fi
6200
6201
6202 fi
6203 if test -z "$ac_cv_prog_OBJDUMP"; then
6204   ac_ct_OBJDUMP=$OBJDUMP
6205   # Extract the first word of "objdump", so it can be a program name with args.
6206 set dummy objdump; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6210   $as_echo_n "(cached) " >&6
6211 else
6212   if test -n "$ac_ct_OBJDUMP"; then
6213   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218   IFS=$as_save_IFS
6219   test -z "$as_dir" && as_dir=.
6220     for ac_exec_ext in '' $ac_executable_extensions; do
6221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224     break 2
6225   fi
6226 done
6227   done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6233 if test -n "$ac_ct_OBJDUMP"; then
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6235 $as_echo "$ac_ct_OBJDUMP" >&6; }
6236 else
6237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238 $as_echo "no" >&6; }
6239 fi
6240
6241   if test "x$ac_ct_OBJDUMP" = x; then
6242     OBJDUMP="false"
6243   else
6244     case $cross_compiling:$ac_tool_warned in
6245 yes:)
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6248 ac_tool_warned=yes ;;
6249 esac
6250     OBJDUMP=$ac_ct_OBJDUMP
6251   fi
6252 else
6253   OBJDUMP="$ac_cv_prog_OBJDUMP"
6254 fi
6255
6256 test -z "$OBJDUMP" && OBJDUMP=objdump
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6267 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6268 if ${lt_cv_deplibs_check_method+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   lt_cv_file_magic_cmd='$MAGIC_CMD'
6272 lt_cv_file_magic_test_file=
6273 lt_cv_deplibs_check_method='unknown'
6274 # Need to set the preceding variable on all platforms that support
6275 # interlibrary dependencies.
6276 # 'none' -- dependencies not supported.
6277 # 'unknown' -- same as none, but documents that we really don't know.
6278 # 'pass_all' -- all dependencies passed with no checks.
6279 # 'test_compile' -- check by making test program.
6280 # 'file_magic [[regex]]' -- check by looking for files in library path
6281 # that responds to the $file_magic_cmd with a given extended regex.
6282 # If you have 'file' or equivalent on your system and you're not sure
6283 # whether 'pass_all' will *always* work, you probably want this one.
6284
6285 case $host_os in
6286 aix[4-9]*)
6287   lt_cv_deplibs_check_method=pass_all
6288   ;;
6289
6290 beos*)
6291   lt_cv_deplibs_check_method=pass_all
6292   ;;
6293
6294 bsdi[45]*)
6295   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6296   lt_cv_file_magic_cmd='/usr/bin/file -L'
6297   lt_cv_file_magic_test_file=/shlib/libc.so
6298   ;;
6299
6300 cygwin*)
6301   # func_win32_libid is a shell function defined in ltmain.sh
6302   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6303   lt_cv_file_magic_cmd='func_win32_libid'
6304   ;;
6305
6306 mingw* | pw32*)
6307   # Base MSYS/MinGW do not provide the 'file' command needed by
6308   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6309   # unless we find 'file', for example because we are cross-compiling.
6310   if ( file / ) >/dev/null 2>&1; then
6311     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6312     lt_cv_file_magic_cmd='func_win32_libid'
6313   else
6314     # Keep this pattern in sync with the one in func_win32_libid.
6315     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6316     lt_cv_file_magic_cmd='$OBJDUMP -f'
6317   fi
6318   ;;
6319
6320 cegcc*)
6321   # use the weaker test based on 'objdump'. See mingw*.
6322   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6323   lt_cv_file_magic_cmd='$OBJDUMP -f'
6324   ;;
6325
6326 darwin* | rhapsody*)
6327   lt_cv_deplibs_check_method=pass_all
6328   ;;
6329
6330 freebsd* | dragonfly*)
6331   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6332     case $host_cpu in
6333     i*86 )
6334       # Not sure whether the presence of OpenBSD here was a mistake.
6335       # Let's accept both of them until this is cleared up.
6336       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6337       lt_cv_file_magic_cmd=/usr/bin/file
6338       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6339       ;;
6340     esac
6341   else
6342     lt_cv_deplibs_check_method=pass_all
6343   fi
6344   ;;
6345
6346 haiku*)
6347   lt_cv_deplibs_check_method=pass_all
6348   ;;
6349
6350 hpux10.20* | hpux11*)
6351   lt_cv_file_magic_cmd=/usr/bin/file
6352   case $host_cpu in
6353   ia64*)
6354     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6355     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6356     ;;
6357   hppa*64*)
6358     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]'
6359     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6360     ;;
6361   *)
6362     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6363     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6364     ;;
6365   esac
6366   ;;
6367
6368 interix[3-9]*)
6369   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6370   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6371   ;;
6372
6373 irix5* | irix6* | nonstopux*)
6374   case $LD in
6375   *-32|*"-32 ") libmagic=32-bit;;
6376   *-n32|*"-n32 ") libmagic=N32;;
6377   *-64|*"-64 ") libmagic=64-bit;;
6378   *) libmagic=never-match;;
6379   esac
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382
6383 # This must be glibc/ELF.
6384 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 netbsd*)
6389   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6390     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6391   else
6392     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6393   fi
6394   ;;
6395
6396 newos6*)
6397   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6398   lt_cv_file_magic_cmd=/usr/bin/file
6399   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6400   ;;
6401
6402 *nto* | *qnx*)
6403   lt_cv_deplibs_check_method=pass_all
6404   ;;
6405
6406 openbsd* | bitrig*)
6407   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6408     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6409   else
6410     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6411   fi
6412   ;;
6413
6414 osf3* | osf4* | osf5*)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417
6418 rdos*)
6419   lt_cv_deplibs_check_method=pass_all
6420   ;;
6421
6422 solaris*)
6423   lt_cv_deplibs_check_method=pass_all
6424   ;;
6425
6426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6427   lt_cv_deplibs_check_method=pass_all
6428   ;;
6429
6430 sysv4 | sysv4.3*)
6431   case $host_vendor in
6432   motorola)
6433     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]'
6434     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6435     ;;
6436   ncr)
6437     lt_cv_deplibs_check_method=pass_all
6438     ;;
6439   sequent)
6440     lt_cv_file_magic_cmd='/bin/file'
6441     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6442     ;;
6443   sni)
6444     lt_cv_file_magic_cmd='/bin/file'
6445     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6446     lt_cv_file_magic_test_file=/lib/libc.so
6447     ;;
6448   siemens)
6449     lt_cv_deplibs_check_method=pass_all
6450     ;;
6451   pc)
6452     lt_cv_deplibs_check_method=pass_all
6453     ;;
6454   esac
6455   ;;
6456
6457 tpf*)
6458   lt_cv_deplibs_check_method=pass_all
6459   ;;
6460 os2*)
6461   lt_cv_deplibs_check_method=pass_all
6462   ;;
6463 esac
6464
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6467 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6468
6469 file_magic_glob=
6470 want_nocaseglob=no
6471 if test "$build" = "$host"; then
6472   case $host_os in
6473   mingw* | pw32*)
6474     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6475       want_nocaseglob=yes
6476     else
6477       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6478     fi
6479     ;;
6480   esac
6481 fi
6482
6483 file_magic_cmd=$lt_cv_file_magic_cmd
6484 deplibs_check_method=$lt_cv_deplibs_check_method
6485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 if test -n "$ac_tool_prefix"; then
6509   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_DLLTOOL+:} false; then :
6514   $as_echo_n "(cached) " >&6
6515 else
6516   if test -n "$DLLTOOL"; then
6517   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524     for ac_exec_ext in '' $ac_executable_extensions; do
6525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531   done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 DLLTOOL=$ac_cv_prog_DLLTOOL
6537 if test -n "$DLLTOOL"; then
6538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6539 $as_echo "$DLLTOOL" >&6; }
6540 else
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545
6546 fi
6547 if test -z "$ac_cv_prog_DLLTOOL"; then
6548   ac_ct_DLLTOOL=$DLLTOOL
6549   # Extract the first word of "dlltool", so it can be a program name with args.
6550 set dummy dlltool; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6554   $as_echo_n "(cached) " >&6
6555 else
6556   if test -n "$ac_ct_DLLTOOL"; then
6557   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564     for ac_exec_ext in '' $ac_executable_extensions; do
6565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571   done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6577 if test -n "$ac_ct_DLLTOOL"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6579 $as_echo "$ac_ct_DLLTOOL" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585   if test "x$ac_ct_DLLTOOL" = x; then
6586     DLLTOOL="false"
6587   else
6588     case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6593 esac
6594     DLLTOOL=$ac_ct_DLLTOOL
6595   fi
6596 else
6597   DLLTOOL="$ac_cv_prog_DLLTOOL"
6598 fi
6599
6600 test -z "$DLLTOOL" && DLLTOOL=dlltool
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6612 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6613 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   lt_cv_sharedlib_from_linklib_cmd='unknown'
6617
6618 case $host_os in
6619 cygwin* | mingw* | pw32* | cegcc*)
6620   # two different shell functions defined in ltmain.sh;
6621   # decide which one to use based on capabilities of $DLLTOOL
6622   case `$DLLTOOL --help 2>&1` in
6623   *--identify-strict*)
6624     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6625     ;;
6626   *)
6627     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6628     ;;
6629   esac
6630   ;;
6631 *)
6632   # fallback: assume linklib IS sharedlib
6633   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6634   ;;
6635 esac
6636
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6639 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6640 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6641 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6642
6643
6644
6645
6646
6647
6648
6649 if test -n "$ac_tool_prefix"; then
6650   for ac_prog in ar
6651   do
6652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_AR+:} false; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   if test -n "$AR"; then
6660   ac_cv_prog_AR="$AR" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667     for ac_exec_ext in '' $ac_executable_extensions; do
6668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674   done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 AR=$ac_cv_prog_AR
6680 if test -n "$AR"; then
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6682 $as_echo "$AR" >&6; }
6683 else
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689     test -n "$AR" && break
6690   done
6691 fi
6692 if test -z "$AR"; then
6693   ac_ct_AR=$AR
6694   for ac_prog in ar
6695 do
6696   # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6701   $as_echo_n "(cached) " >&6
6702 else
6703   if test -n "$ac_ct_AR"; then
6704   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711     for ac_exec_ext in '' $ac_executable_extensions; do
6712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713     ac_cv_prog_ac_ct_AR="$ac_prog"
6714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718   done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6724 if test -n "$ac_ct_AR"; then
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6726 $as_echo "$ac_ct_AR" >&6; }
6727 else
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732
6733   test -n "$ac_ct_AR" && break
6734 done
6735
6736   if test "x$ac_ct_AR" = x; then
6737     AR="false"
6738   else
6739     case $cross_compiling:$ac_tool_warned in
6740 yes:)
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745     AR=$ac_ct_AR
6746   fi
6747 fi
6748
6749 : ${AR=ar}
6750 : ${AR_FLAGS=cru}
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6763 $as_echo_n "checking for archiver @FILE support... " >&6; }
6764 if ${lt_cv_ar_at_file+:} false; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   lt_cv_ar_at_file=no
6768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h.  */
6770
6771 int
6772 main ()
6773 {
6774
6775   ;
6776   return 0;
6777 }
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780   echo conftest.$ac_objext > conftest.lst
6781       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6782       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6783   (eval $lt_ar_try) 2>&5
6784   ac_status=$?
6785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786   test $ac_status = 0; }
6787       if test 0 -eq "$ac_status"; then
6788         # Ensure the archiver fails upon bogus file names.
6789         rm -f conftest.$ac_objext libconftest.a
6790         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6791   (eval $lt_ar_try) 2>&5
6792   ac_status=$?
6793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794   test $ac_status = 0; }
6795         if test 0 -ne "$ac_status"; then
6796           lt_cv_ar_at_file=@
6797         fi
6798       fi
6799       rm -f conftest.* libconftest.a
6800
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6806 $as_echo "$lt_cv_ar_at_file" >&6; }
6807
6808 if test no = "$lt_cv_ar_at_file"; then
6809   archiver_list_spec=
6810 else
6811   archiver_list_spec=$lt_cv_ar_at_file
6812 fi
6813
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}strip; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_STRIP+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$STRIP"; then
6829   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 STRIP=$ac_cv_prog_STRIP
6849 if test -n "$STRIP"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6851 $as_echo "$STRIP" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_STRIP"; then
6860   ac_ct_STRIP=$STRIP
6861   # Extract the first word of "strip", so it can be a program name with args.
6862 set dummy strip; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   if test -n "$ac_ct_STRIP"; then
6869   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876     for ac_exec_ext in '' $ac_executable_extensions; do
6877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878     ac_cv_prog_ac_ct_STRIP="strip"
6879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883   done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6889 if test -n "$ac_ct_STRIP"; then
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6891 $as_echo "$ac_ct_STRIP" >&6; }
6892 else
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897   if test "x$ac_ct_STRIP" = x; then
6898     STRIP=":"
6899   else
6900     case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906     STRIP=$ac_ct_STRIP
6907   fi
6908 else
6909   STRIP="$ac_cv_prog_STRIP"
6910 fi
6911
6912 test -z "$STRIP" && STRIP=:
6913
6914
6915
6916
6917
6918
6919 if test -n "$ac_tool_prefix"; then
6920   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_prog_RANLIB+:} false; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927   if test -n "$RANLIB"; then
6928   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933   IFS=$as_save_IFS
6934   test -z "$as_dir" && as_dir=.
6935     for ac_exec_ext in '' $ac_executable_extensions; do
6936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939     break 2
6940   fi
6941 done
6942   done
6943 IFS=$as_save_IFS
6944
6945 fi
6946 fi
6947 RANLIB=$ac_cv_prog_RANLIB
6948 if test -n "$RANLIB"; then
6949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6950 $as_echo "$RANLIB" >&6; }
6951 else
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6954 fi
6955
6956
6957 fi
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959   ac_ct_RANLIB=$RANLIB
6960   # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   if test -n "$ac_ct_RANLIB"; then
6968   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_exec_ext in '' $ac_executable_extensions; do
6976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977     ac_cv_prog_ac_ct_RANLIB="ranlib"
6978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982   done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6990 $as_echo "$ac_ct_RANLIB" >&6; }
6991 else
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995
6996   if test "x$ac_ct_RANLIB" = x; then
6997     RANLIB=":"
6998   else
6999     case $cross_compiling:$ac_tool_warned in
7000 yes:)
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7003 ac_tool_warned=yes ;;
7004 esac
7005     RANLIB=$ac_ct_RANLIB
7006   fi
7007 else
7008   RANLIB="$ac_cv_prog_RANLIB"
7009 fi
7010
7011 test -z "$RANLIB" && RANLIB=:
7012
7013
7014
7015
7016
7017
7018 # Determine commands to create old-style static archives.
7019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7020 old_postinstall_cmds='chmod 644 $oldlib'
7021 old_postuninstall_cmds=
7022
7023 if test -n "$RANLIB"; then
7024   case $host_os in
7025   bitrig* | openbsd*)
7026     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7027     ;;
7028   *)
7029     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7030     ;;
7031   esac
7032   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7033 fi
7034
7035 case $host_os in
7036   darwin*)
7037     lock_old_archive_extraction=yes ;;
7038   *)
7039     lock_old_archive_extraction=no ;;
7040 esac
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 # If no C compiler was specified, use CC.
7081 LTCC=${LTCC-"$CC"}
7082
7083 # If no C compiler flags were specified, use CFLAGS.
7084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7085
7086 # Allow CC to be a program name with arguments.
7087 compiler=$CC
7088
7089
7090 # Check for command to grab the raw symbol name followed by C symbol from nm.
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7094   $as_echo_n "(cached) " >&6
7095 else
7096
7097 # These are sane defaults that work on at least a few old systems.
7098 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7099
7100 # Character class describing NM global symbol codes.
7101 symcode='[BCDEGRST]'
7102
7103 # Regexp to match symbols that can be accessed directly from C.
7104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7105
7106 # Define system-specific variables.
7107 case $host_os in
7108 aix*)
7109   symcode='[BCDT]'
7110   ;;
7111 cygwin* | mingw* | pw32* | cegcc*)
7112   symcode='[ABCDGISTW]'
7113   ;;
7114 hpux*)
7115   if test ia64 = "$host_cpu"; then
7116     symcode='[ABCDEGRST]'
7117   fi
7118   ;;
7119 irix* | nonstopux*)
7120   symcode='[BCDEGRST]'
7121   ;;
7122 osf*)
7123   symcode='[BCDEGQRST]'
7124   ;;
7125 solaris*)
7126   symcode='[BDRT]'
7127   ;;
7128 sco3.2v5*)
7129   symcode='[DT]'
7130   ;;
7131 sysv4.2uw2*)
7132   symcode='[DT]'
7133   ;;
7134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7135   symcode='[ABDT]'
7136   ;;
7137 sysv4)
7138   symcode='[DFNSTU]'
7139   ;;
7140 esac
7141
7142 # If we're using GNU nm, then use its standard symbol codes.
7143 case `$NM -V 2>&1` in
7144 *GNU* | *'with BFD'*)
7145   symcode='[ABCDGIRSTW]' ;;
7146 esac
7147
7148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7149   # Gets list of data symbols to import.
7150   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7151   # Adjust the below global symbol transforms to fixup imported variables.
7152   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7153   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7154   lt_c_name_lib_hook="\
7155   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7156   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7157 else
7158   # Disable hooks by default.
7159   lt_cv_sys_global_symbol_to_import=
7160   lt_cdecl_hook=
7161   lt_c_name_hook=
7162   lt_c_name_lib_hook=
7163 fi
7164
7165 # Transform an extracted symbol line into a proper C declaration.
7166 # Some systems (esp. on ia64) link data and code symbols differently,
7167 # so use this general approach.
7168 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7169 $lt_cdecl_hook\
7170 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7171 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7172
7173 # Transform an extracted symbol line into symbol name and symbol address
7174 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7175 $lt_c_name_hook\
7176 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7177 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7178
7179 # Transform an extracted symbol line into symbol name with lib prefix and
7180 # symbol address.
7181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7182 $lt_c_name_lib_hook\
7183 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7184 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7185 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7186
7187 # Handle CRLF in mingw tool chain
7188 opt_cr=
7189 case $build_os in
7190 mingw*)
7191   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7192   ;;
7193 esac
7194
7195 # Try without a prefix underscore, then with it.
7196 for ac_symprfx in "" "_"; do
7197
7198   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7199   symxfrm="\\1 $ac_symprfx\\2 \\2"
7200
7201   # Write the raw and C identifiers.
7202   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7203     # Fake it for dumpbin and say T for any non-static function,
7204     # D for any global variable and I for any imported variable.
7205     # Also find C++ and __fastcall symbols from MSVC++,
7206     # which start with @ or ?.
7207     lt_cv_sys_global_symbol_pipe="$AWK '"\
7208 "     {last_section=section; section=\$ 3};"\
7209 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7210 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7211 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7212 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7213 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7214 "     \$ 0!~/External *\|/{next};"\
7215 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7216 "     {if(hide[section]) next};"\
7217 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7218 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7219 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7220 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7221 "     ' prfx=^$ac_symprfx"
7222   else
7223     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7224   fi
7225   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7226
7227   # Check to see that the pipe works correctly.
7228   pipe_works=no
7229
7230   rm -f conftest*
7231   cat > conftest.$ac_ext <<_LT_EOF
7232 #ifdef __cplusplus
7233 extern "C" {
7234 #endif
7235 char nm_test_var;
7236 void nm_test_func(void);
7237 void nm_test_func(void){}
7238 #ifdef __cplusplus
7239 }
7240 #endif
7241 int main(){nm_test_var='a';nm_test_func();return(0);}
7242 _LT_EOF
7243
7244   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245   (eval $ac_compile) 2>&5
7246   ac_status=$?
7247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248   test $ac_status = 0; }; then
7249     # Now try to grab the symbols.
7250     nlist=conftest.nm
7251     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7252   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7253   ac_status=$?
7254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255   test $ac_status = 0; } && test -s "$nlist"; then
7256       # Try sorting and uniquifying the output.
7257       if sort "$nlist" | uniq > "$nlist"T; then
7258         mv -f "$nlist"T "$nlist"
7259       else
7260         rm -f "$nlist"T
7261       fi
7262
7263       # Make sure that we snagged all the symbols we need.
7264       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7265         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7266           cat <<_LT_EOF > conftest.$ac_ext
7267 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7268 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7269 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7270    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7271 # define LT_DLSYM_CONST
7272 #elif defined __osf__
7273 /* This system does not cope well with relocations in const data.  */
7274 # define LT_DLSYM_CONST
7275 #else
7276 # define LT_DLSYM_CONST const
7277 #endif
7278
7279 #ifdef __cplusplus
7280 extern "C" {
7281 #endif
7282
7283 _LT_EOF
7284           # Now generate the symbol file.
7285           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7286
7287           cat <<_LT_EOF >> conftest.$ac_ext
7288
7289 /* The mapping between symbol names and symbols.  */
7290 LT_DLSYM_CONST struct {
7291   const char *name;
7292   void       *address;
7293 }
7294 lt__PROGRAM__LTX_preloaded_symbols[] =
7295 {
7296   { "@PROGRAM@", (void *) 0 },
7297 _LT_EOF
7298           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7299           cat <<\_LT_EOF >> conftest.$ac_ext
7300   {0, (void *) 0}
7301 };
7302
7303 /* This works around a problem in FreeBSD linker */
7304 #ifdef FREEBSD_WORKAROUND
7305 static const void *lt_preloaded_setup() {
7306   return lt__PROGRAM__LTX_preloaded_symbols;
7307 }
7308 #endif
7309
7310 #ifdef __cplusplus
7311 }
7312 #endif
7313 _LT_EOF
7314           # Now try linking the two files.
7315           mv conftest.$ac_objext conftstm.$ac_objext
7316           lt_globsym_save_LIBS=$LIBS
7317           lt_globsym_save_CFLAGS=$CFLAGS
7318           LIBS=conftstm.$ac_objext
7319           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7320           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7321   (eval $ac_link) 2>&5
7322   ac_status=$?
7323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7325             pipe_works=yes
7326           fi
7327           LIBS=$lt_globsym_save_LIBS
7328           CFLAGS=$lt_globsym_save_CFLAGS
7329         else
7330           echo "cannot find nm_test_func in $nlist" >&5
7331         fi
7332       else
7333         echo "cannot find nm_test_var in $nlist" >&5
7334       fi
7335     else
7336       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7337     fi
7338   else
7339     echo "$progname: failed program was:" >&5
7340     cat conftest.$ac_ext >&5
7341   fi
7342   rm -rf conftest* conftst*
7343
7344   # Do not use the global_symbol_pipe unless it works.
7345   if test yes = "$pipe_works"; then
7346     break
7347   else
7348     lt_cv_sys_global_symbol_pipe=
7349   fi
7350 done
7351
7352 fi
7353
7354 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7355   lt_cv_sys_global_symbol_to_cdecl=
7356 fi
7357 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7359 $as_echo "failed" >&6; }
7360 else
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7362 $as_echo "ok" >&6; }
7363 fi
7364
7365 # Response file support.
7366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7367   nm_file_list_spec='@'
7368 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7369   nm_file_list_spec='@'
7370 fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7409 $as_echo_n "checking for sysroot... " >&6; }
7410
7411 # Check whether --with-sysroot was given.
7412 if test "${with_sysroot+set}" = set; then :
7413   withval=$with_sysroot;
7414 else
7415   with_sysroot=no
7416 fi
7417
7418
7419 lt_sysroot=
7420 case $with_sysroot in #(
7421  yes)
7422    if test yes = "$GCC"; then
7423      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7424    fi
7425    ;; #(
7426  /*)
7427    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7428    ;; #(
7429  no|'')
7430    ;; #(
7431  *)
7432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7433 $as_echo "$with_sysroot" >&6; }
7434    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7435    ;;
7436 esac
7437
7438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7439 $as_echo "${lt_sysroot:-no}" >&6; }
7440
7441
7442
7443
7444
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7446 $as_echo_n "checking for a working dd... " >&6; }
7447 if ${ac_cv_path_lt_DD+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   printf 0123456789abcdef0123456789abcdef >conftest.i
7451 cat conftest.i conftest.i >conftest2.i
7452 : ${lt_DD:=$DD}
7453 if test -z "$lt_DD"; then
7454   ac_path_lt_DD_found=false
7455   # Loop through the user's path and test for each of PROGNAME-LIST
7456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459   IFS=$as_save_IFS
7460   test -z "$as_dir" && as_dir=.
7461     for ac_prog in dd; do
7462     for ac_exec_ext in '' $ac_executable_extensions; do
7463       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7464       as_fn_executable_p "$ac_path_lt_DD" || continue
7465 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7466   cmp -s conftest.i conftest.out \
7467   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7468 fi
7469       $ac_path_lt_DD_found && break 3
7470     done
7471   done
7472   done
7473 IFS=$as_save_IFS
7474   if test -z "$ac_cv_path_lt_DD"; then
7475     :
7476   fi
7477 else
7478   ac_cv_path_lt_DD=$lt_DD
7479 fi
7480
7481 rm -f conftest.i conftest2.i conftest.out
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7484 $as_echo "$ac_cv_path_lt_DD" >&6; }
7485
7486
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7488 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7489 if ${lt_cv_truncate_bin+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   printf 0123456789abcdef0123456789abcdef >conftest.i
7493 cat conftest.i conftest.i >conftest2.i
7494 lt_cv_truncate_bin=
7495 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7496   cmp -s conftest.i conftest.out \
7497   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7498 fi
7499 rm -f conftest.i conftest2.i conftest.out
7500 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7501 fi
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7503 $as_echo "$lt_cv_truncate_bin" >&6; }
7504
7505
7506
7507
7508
7509
7510
7511 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7512 func_cc_basename ()
7513 {
7514     for cc_temp in $*""; do
7515       case $cc_temp in
7516         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7517         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7518         \-*) ;;
7519         *) break;;
7520       esac
7521     done
7522     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7523 }
7524
7525 # Check whether --enable-libtool-lock was given.
7526 if test "${enable_libtool_lock+set}" = set; then :
7527   enableval=$enable_libtool_lock;
7528 fi
7529
7530 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7531
7532 # Some flags need to be propagated to the compiler or linker for good
7533 # libtool support.
7534 case $host in
7535 ia64-*-hpux*)
7536   # Find out what ABI is being produced by ac_compile, and set mode
7537   # options accordingly.
7538   echo 'int i;' > conftest.$ac_ext
7539   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540   (eval $ac_compile) 2>&5
7541   ac_status=$?
7542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543   test $ac_status = 0; }; then
7544     case `/usr/bin/file conftest.$ac_objext` in
7545       *ELF-32*)
7546         HPUX_IA64_MODE=32
7547         ;;
7548       *ELF-64*)
7549         HPUX_IA64_MODE=64
7550         ;;
7551     esac
7552   fi
7553   rm -rf conftest*
7554   ;;
7555 *-*-irix6*)
7556   # Find out what ABI is being produced by ac_compile, and set linker
7557   # options accordingly.
7558   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7559   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7560   (eval $ac_compile) 2>&5
7561   ac_status=$?
7562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563   test $ac_status = 0; }; then
7564     if test yes = "$lt_cv_prog_gnu_ld"; then
7565       case `/usr/bin/file conftest.$ac_objext` in
7566         *32-bit*)
7567           LD="${LD-ld} -melf32bsmip"
7568           ;;
7569         *N32*)
7570           LD="${LD-ld} -melf32bmipn32"
7571           ;;
7572         *64-bit*)
7573           LD="${LD-ld} -melf64bmip"
7574         ;;
7575       esac
7576     else
7577       case `/usr/bin/file conftest.$ac_objext` in
7578         *32-bit*)
7579           LD="${LD-ld} -32"
7580           ;;
7581         *N32*)
7582           LD="${LD-ld} -n32"
7583           ;;
7584         *64-bit*)
7585           LD="${LD-ld} -64"
7586           ;;
7587       esac
7588     fi
7589   fi
7590   rm -rf conftest*
7591   ;;
7592
7593 mips64*-*linux*)
7594   # Find out what ABI is being produced by ac_compile, and set linker
7595   # options accordingly.
7596   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7597   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7598   (eval $ac_compile) 2>&5
7599   ac_status=$?
7600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601   test $ac_status = 0; }; then
7602     emul=elf
7603     case `/usr/bin/file conftest.$ac_objext` in
7604       *32-bit*)
7605         emul="${emul}32"
7606         ;;
7607       *64-bit*)
7608         emul="${emul}64"
7609         ;;
7610     esac
7611     case `/usr/bin/file conftest.$ac_objext` in
7612       *MSB*)
7613         emul="${emul}btsmip"
7614         ;;
7615       *LSB*)
7616         emul="${emul}ltsmip"
7617         ;;
7618     esac
7619     case `/usr/bin/file conftest.$ac_objext` in
7620       *N32*)
7621         emul="${emul}n32"
7622         ;;
7623     esac
7624     LD="${LD-ld} -m $emul"
7625   fi
7626   rm -rf conftest*
7627   ;;
7628
7629 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7630 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7631   # Find out what ABI is being produced by ac_compile, and set linker
7632   # options accordingly.  Note that the listed cases only cover the
7633   # situations where additional linker options are needed (such as when
7634   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7635   # vice versa); the common cases where no linker options are needed do
7636   # not appear in the list.
7637   echo 'int i;' > conftest.$ac_ext
7638   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7639   (eval $ac_compile) 2>&5
7640   ac_status=$?
7641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642   test $ac_status = 0; }; then
7643     case `/usr/bin/file conftest.o` in
7644       *32-bit*)
7645         case $host in
7646           x86_64-*kfreebsd*-gnu)
7647             LD="${LD-ld} -m elf_i386_fbsd"
7648             ;;
7649           x86_64-*linux*)
7650             case `/usr/bin/file conftest.o` in
7651               *x86-64*)
7652                 LD="${LD-ld} -m elf32_x86_64"
7653                 ;;
7654               *)
7655                 LD="${LD-ld} -m elf_i386"
7656                 ;;
7657             esac
7658             ;;
7659           powerpc64le-*linux*)
7660             LD="${LD-ld} -m elf32lppclinux"
7661             ;;
7662           powerpc64-*linux*)
7663             LD="${LD-ld} -m elf32ppclinux"
7664             ;;
7665           s390x-*linux*)
7666             LD="${LD-ld} -m elf_s390"
7667             ;;
7668           sparc64-*linux*)
7669             LD="${LD-ld} -m elf32_sparc"
7670             ;;
7671         esac
7672         ;;
7673       *64-bit*)
7674         case $host in
7675           x86_64-*kfreebsd*-gnu)
7676             LD="${LD-ld} -m elf_x86_64_fbsd"
7677             ;;
7678           x86_64-*linux*)
7679             LD="${LD-ld} -m elf_x86_64"
7680             ;;
7681           powerpcle-*linux*)
7682             LD="${LD-ld} -m elf64lppc"
7683             ;;
7684           powerpc-*linux*)
7685             LD="${LD-ld} -m elf64ppc"
7686             ;;
7687           s390*-*linux*|s390*-*tpf*)
7688             LD="${LD-ld} -m elf64_s390"
7689             ;;
7690           sparc*-*linux*)
7691             LD="${LD-ld} -m elf64_sparc"
7692             ;;
7693         esac
7694         ;;
7695     esac
7696   fi
7697   rm -rf conftest*
7698   ;;
7699
7700 *-*-sco3.2v5*)
7701   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7702   SAVE_CFLAGS=$CFLAGS
7703   CFLAGS="$CFLAGS -belf"
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7705 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7706 if ${lt_cv_cc_needs_belf+:} false; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   ac_ext=c
7710 ac_cpp='$CPP $CPPFLAGS'
7711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714
7715      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h.  */
7717
7718 int
7719 main ()
7720 {
7721
7722   ;
7723   return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_link "$LINENO"; then :
7727   lt_cv_cc_needs_belf=yes
7728 else
7729   lt_cv_cc_needs_belf=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext \
7732     conftest$ac_exeext conftest.$ac_ext
7733      ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7741 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7742   if test yes != "$lt_cv_cc_needs_belf"; then
7743     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7744     CFLAGS=$SAVE_CFLAGS
7745   fi
7746   ;;
7747 *-*solaris*)
7748   # Find out what ABI is being produced by ac_compile, and set linker
7749   # options accordingly.
7750   echo 'int i;' > conftest.$ac_ext
7751   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7752   (eval $ac_compile) 2>&5
7753   ac_status=$?
7754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755   test $ac_status = 0; }; then
7756     case `/usr/bin/file conftest.o` in
7757     *64-bit*)
7758       case $lt_cv_prog_gnu_ld in
7759       yes*)
7760         case $host in
7761         i?86-*-solaris*|x86_64-*-solaris*)
7762           LD="${LD-ld} -m elf_x86_64"
7763           ;;
7764         sparc*-*-solaris*)
7765           LD="${LD-ld} -m elf64_sparc"
7766           ;;
7767         esac
7768         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7769         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7770           LD=${LD-ld}_sol2
7771         fi
7772         ;;
7773       *)
7774         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7775           LD="${LD-ld} -64"
7776         fi
7777         ;;
7778       esac
7779       ;;
7780     esac
7781   fi
7782   rm -rf conftest*
7783   ;;
7784 esac
7785
7786 need_locks=$enable_libtool_lock
7787
7788 if test -n "$ac_tool_prefix"; then
7789   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}mt; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796   if test -n "$MANIFEST_TOOL"; then
7797   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802   IFS=$as_save_IFS
7803   test -z "$as_dir" && as_dir=.
7804     for ac_exec_ext in '' $ac_executable_extensions; do
7805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808     break 2
7809   fi
7810 done
7811   done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7817 if test -n "$MANIFEST_TOOL"; then
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7819 $as_echo "$MANIFEST_TOOL" >&6; }
7820 else
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825
7826 fi
7827 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7828   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7829   # Extract the first word of "mt", so it can be a program name with args.
7830 set dummy mt; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7834   $as_echo_n "(cached) " >&6
7835 else
7836   if test -n "$ac_ct_MANIFEST_TOOL"; then
7837   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842   IFS=$as_save_IFS
7843   test -z "$as_dir" && as_dir=.
7844     for ac_exec_ext in '' $ac_executable_extensions; do
7845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848     break 2
7849   fi
7850 done
7851   done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7857 if test -n "$ac_ct_MANIFEST_TOOL"; then
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7859 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7860 else
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7866     MANIFEST_TOOL=":"
7867   else
7868     case $cross_compiling:$ac_tool_warned in
7869 yes:)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7875   fi
7876 else
7877   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7878 fi
7879
7880 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7882 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7883 if ${lt_cv_path_mainfest_tool+:} false; then :
7884   $as_echo_n "(cached) " >&6
7885 else
7886   lt_cv_path_mainfest_tool=no
7887   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7888   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7889   cat conftest.err >&5
7890   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7891     lt_cv_path_mainfest_tool=yes
7892   fi
7893   rm -f conftest*
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7896 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7897 if test yes != "$lt_cv_path_mainfest_tool"; then
7898   MANIFEST_TOOL=:
7899 fi
7900
7901
7902
7903
7904
7905
7906   case $host_os in
7907     rhapsody* | darwin*)
7908     if test -n "$ac_tool_prefix"; then
7909   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7914   $as_echo_n "(cached) " >&6
7915 else
7916   if test -n "$DSYMUTIL"; then
7917   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922   IFS=$as_save_IFS
7923   test -z "$as_dir" && as_dir=.
7924     for ac_exec_ext in '' $ac_executable_extensions; do
7925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928     break 2
7929   fi
7930 done
7931   done
7932 IFS=$as_save_IFS
7933
7934 fi
7935 fi
7936 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7937 if test -n "$DSYMUTIL"; then
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7939 $as_echo "$DSYMUTIL" >&6; }
7940 else
7941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 fi
7944
7945
7946 fi
7947 if test -z "$ac_cv_prog_DSYMUTIL"; then
7948   ac_ct_DSYMUTIL=$DSYMUTIL
7949   # Extract the first word of "dsymutil", so it can be a program name with args.
7950 set dummy dsymutil; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7954   $as_echo_n "(cached) " >&6
7955 else
7956   if test -n "$ac_ct_DSYMUTIL"; then
7957   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962   IFS=$as_save_IFS
7963   test -z "$as_dir" && as_dir=.
7964     for ac_exec_ext in '' $ac_executable_extensions; do
7965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968     break 2
7969   fi
7970 done
7971   done
7972 IFS=$as_save_IFS
7973
7974 fi
7975 fi
7976 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7977 if test -n "$ac_ct_DSYMUTIL"; then
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7979 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7980 else
7981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985   if test "x$ac_ct_DSYMUTIL" = x; then
7986     DSYMUTIL=":"
7987   else
7988     case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994     DSYMUTIL=$ac_ct_DSYMUTIL
7995   fi
7996 else
7997   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7998 fi
7999
8000     if test -n "$ac_tool_prefix"; then
8001   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8002 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_NMEDIT+:} false; then :
8006   $as_echo_n "(cached) " >&6
8007 else
8008   if test -n "$NMEDIT"; then
8009   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016     for ac_exec_ext in '' $ac_executable_extensions; do
8017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020     break 2
8021   fi
8022 done
8023   done
8024 IFS=$as_save_IFS
8025
8026 fi
8027 fi
8028 NMEDIT=$ac_cv_prog_NMEDIT
8029 if test -n "$NMEDIT"; then
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8031 $as_echo "$NMEDIT" >&6; }
8032 else
8033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8035 fi
8036
8037
8038 fi
8039 if test -z "$ac_cv_prog_NMEDIT"; then
8040   ac_ct_NMEDIT=$NMEDIT
8041   # Extract the first word of "nmedit", so it can be a program name with args.
8042 set dummy nmedit; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8046   $as_echo_n "(cached) " >&6
8047 else
8048   if test -n "$ac_ct_NMEDIT"; then
8049   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054   IFS=$as_save_IFS
8055   test -z "$as_dir" && as_dir=.
8056     for ac_exec_ext in '' $ac_executable_extensions; do
8057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060     break 2
8061   fi
8062 done
8063   done
8064 IFS=$as_save_IFS
8065
8066 fi
8067 fi
8068 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8069 if test -n "$ac_ct_NMEDIT"; then
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8071 $as_echo "$ac_ct_NMEDIT" >&6; }
8072 else
8073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8075 fi
8076
8077   if test "x$ac_ct_NMEDIT" = x; then
8078     NMEDIT=":"
8079   else
8080     case $cross_compiling:$ac_tool_warned in
8081 yes:)
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8084 ac_tool_warned=yes ;;
8085 esac
8086     NMEDIT=$ac_ct_NMEDIT
8087   fi
8088 else
8089   NMEDIT="$ac_cv_prog_NMEDIT"
8090 fi
8091
8092     if test -n "$ac_tool_prefix"; then
8093   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8094 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_prog_LIPO+:} false; then :
8098   $as_echo_n "(cached) " >&6
8099 else
8100   if test -n "$LIPO"; then
8101   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   test -z "$as_dir" && as_dir=.
8108     for ac_exec_ext in '' $ac_executable_extensions; do
8109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112     break 2
8113   fi
8114 done
8115   done
8116 IFS=$as_save_IFS
8117
8118 fi
8119 fi
8120 LIPO=$ac_cv_prog_LIPO
8121 if test -n "$LIPO"; then
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8123 $as_echo "$LIPO" >&6; }
8124 else
8125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8127 fi
8128
8129
8130 fi
8131 if test -z "$ac_cv_prog_LIPO"; then
8132   ac_ct_LIPO=$LIPO
8133   # Extract the first word of "lipo", so it can be a program name with args.
8134 set dummy lipo; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8138   $as_echo_n "(cached) " >&6
8139 else
8140   if test -n "$ac_ct_LIPO"; then
8141   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146   IFS=$as_save_IFS
8147   test -z "$as_dir" && as_dir=.
8148     for ac_exec_ext in '' $ac_executable_extensions; do
8149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150     ac_cv_prog_ac_ct_LIPO="lipo"
8151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152     break 2
8153   fi
8154 done
8155   done
8156 IFS=$as_save_IFS
8157
8158 fi
8159 fi
8160 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8161 if test -n "$ac_ct_LIPO"; then
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8163 $as_echo "$ac_ct_LIPO" >&6; }
8164 else
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8167 fi
8168
8169   if test "x$ac_ct_LIPO" = x; then
8170     LIPO=":"
8171   else
8172     case $cross_compiling:$ac_tool_warned in
8173 yes:)
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176 ac_tool_warned=yes ;;
8177 esac
8178     LIPO=$ac_ct_LIPO
8179   fi
8180 else
8181   LIPO="$ac_cv_prog_LIPO"
8182 fi
8183
8184     if test -n "$ac_tool_prefix"; then
8185   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8186 set dummy ${ac_tool_prefix}otool; ac_word=$2
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if ${ac_cv_prog_OTOOL+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   if test -n "$OTOOL"; then
8193   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8194 else
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198   IFS=$as_save_IFS
8199   test -z "$as_dir" && as_dir=.
8200     for ac_exec_ext in '' $ac_executable_extensions; do
8201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204     break 2
8205   fi
8206 done
8207   done
8208 IFS=$as_save_IFS
8209
8210 fi
8211 fi
8212 OTOOL=$ac_cv_prog_OTOOL
8213 if test -n "$OTOOL"; then
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8215 $as_echo "$OTOOL" >&6; }
8216 else
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8219 fi
8220
8221
8222 fi
8223 if test -z "$ac_cv_prog_OTOOL"; then
8224   ac_ct_OTOOL=$OTOOL
8225   # Extract the first word of "otool", so it can be a program name with args.
8226 set dummy otool; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   if test -n "$ac_ct_OTOOL"; then
8233   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238   IFS=$as_save_IFS
8239   test -z "$as_dir" && as_dir=.
8240     for ac_exec_ext in '' $ac_executable_extensions; do
8241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242     ac_cv_prog_ac_ct_OTOOL="otool"
8243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244     break 2
8245   fi
8246 done
8247   done
8248 IFS=$as_save_IFS
8249
8250 fi
8251 fi
8252 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8253 if test -n "$ac_ct_OTOOL"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8255 $as_echo "$ac_ct_OTOOL" >&6; }
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261   if test "x$ac_ct_OTOOL" = x; then
8262     OTOOL=":"
8263   else
8264     case $cross_compiling:$ac_tool_warned in
8265 yes:)
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268 ac_tool_warned=yes ;;
8269 esac
8270     OTOOL=$ac_ct_OTOOL
8271   fi
8272 else
8273   OTOOL="$ac_cv_prog_OTOOL"
8274 fi
8275
8276     if test -n "$ac_tool_prefix"; then
8277   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8278 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_OTOOL64+:} false; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   if test -n "$OTOOL64"; then
8285   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8286 else
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290   IFS=$as_save_IFS
8291   test -z "$as_dir" && as_dir=.
8292     for ac_exec_ext in '' $ac_executable_extensions; do
8293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296     break 2
8297   fi
8298 done
8299   done
8300 IFS=$as_save_IFS
8301
8302 fi
8303 fi
8304 OTOOL64=$ac_cv_prog_OTOOL64
8305 if test -n "$OTOOL64"; then
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8307 $as_echo "$OTOOL64" >&6; }
8308 else
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8311 fi
8312
8313
8314 fi
8315 if test -z "$ac_cv_prog_OTOOL64"; then
8316   ac_ct_OTOOL64=$OTOOL64
8317   # Extract the first word of "otool64", so it can be a program name with args.
8318 set dummy otool64; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8322   $as_echo_n "(cached) " >&6
8323 else
8324   if test -n "$ac_ct_OTOOL64"; then
8325   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330   IFS=$as_save_IFS
8331   test -z "$as_dir" && as_dir=.
8332     for ac_exec_ext in '' $ac_executable_extensions; do
8333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334     ac_cv_prog_ac_ct_OTOOL64="otool64"
8335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336     break 2
8337   fi
8338 done
8339   done
8340 IFS=$as_save_IFS
8341
8342 fi
8343 fi
8344 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8345 if test -n "$ac_ct_OTOOL64"; then
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8347 $as_echo "$ac_ct_OTOOL64" >&6; }
8348 else
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8351 fi
8352
8353   if test "x$ac_ct_OTOOL64" = x; then
8354     OTOOL64=":"
8355   else
8356     case $cross_compiling:$ac_tool_warned in
8357 yes:)
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360 ac_tool_warned=yes ;;
8361 esac
8362     OTOOL64=$ac_ct_OTOOL64
8363   fi
8364 else
8365   OTOOL64="$ac_cv_prog_OTOOL64"
8366 fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8395 $as_echo_n "checking for -single_module linker flag... " >&6; }
8396 if ${lt_cv_apple_cc_single_mod+:} false; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   lt_cv_apple_cc_single_mod=no
8400       if test -z "$LT_MULTI_MODULE"; then
8401         # By default we will add the -single_module flag. You can override
8402         # by either setting the environment variable LT_MULTI_MODULE
8403         # non-empty at configure time, or by adding -multi_module to the
8404         # link flags.
8405         rm -rf libconftest.dylib*
8406         echo "int foo(void){return 1;}" > conftest.c
8407         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8408 -dynamiclib -Wl,-single_module conftest.c" >&5
8409         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8410           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8411         _lt_result=$?
8412         # If there is a non-empty error log, and "single_module"
8413         # appears in it, assume the flag caused a linker warning
8414         if test -s conftest.err && $GREP single_module conftest.err; then
8415           cat conftest.err >&5
8416         # Otherwise, if the output was created with a 0 exit code from
8417         # the compiler, it worked.
8418         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8419           lt_cv_apple_cc_single_mod=yes
8420         else
8421           cat conftest.err >&5
8422         fi
8423         rm -rf libconftest.dylib*
8424         rm -f conftest.*
8425       fi
8426 fi
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8428 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8429
8430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8431 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8432 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8433   $as_echo_n "(cached) " >&6
8434 else
8435   lt_cv_ld_exported_symbols_list=no
8436       save_LDFLAGS=$LDFLAGS
8437       echo "_main" > conftest.sym
8438       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8439       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h.  */
8441
8442 int
8443 main ()
8444 {
8445
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_c_try_link "$LINENO"; then :
8451   lt_cv_ld_exported_symbols_list=yes
8452 else
8453   lt_cv_ld_exported_symbols_list=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext \
8456     conftest$ac_exeext conftest.$ac_ext
8457         LDFLAGS=$save_LDFLAGS
8458
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8461 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8462
8463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8464 $as_echo_n "checking for -force_load linker flag... " >&6; }
8465 if ${lt_cv_ld_force_load+:} false; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   lt_cv_ld_force_load=no
8469       cat > conftest.c << _LT_EOF
8470 int forced_loaded() { return 2;}
8471 _LT_EOF
8472       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8473       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8474       echo "$AR cru libconftest.a conftest.o" >&5
8475       $AR cru libconftest.a conftest.o 2>&5
8476       echo "$RANLIB libconftest.a" >&5
8477       $RANLIB libconftest.a 2>&5
8478       cat > conftest.c << _LT_EOF
8479 int main() { return 0;}
8480 _LT_EOF
8481       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8482       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8483       _lt_result=$?
8484       if test -s conftest.err && $GREP force_load conftest.err; then
8485         cat conftest.err >&5
8486       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8487         lt_cv_ld_force_load=yes
8488       else
8489         cat conftest.err >&5
8490       fi
8491         rm -f conftest.err libconftest.a conftest conftest.c
8492         rm -rf conftest.dSYM
8493
8494 fi
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8496 $as_echo "$lt_cv_ld_force_load" >&6; }
8497     case $host_os in
8498     rhapsody* | darwin1.[012])
8499       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8500     darwin1.*)
8501       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8502     darwin*) # darwin 5.x on
8503       # if running on 10.5 or later, the deployment target defaults
8504       # to the OS version, if on x86, and 10.4, the deployment
8505       # target defaults to 10.4. Don't you love it?
8506       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8507         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8508           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8509         10.[012][,.]*)
8510           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8511         10.*)
8512           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8513       esac
8514     ;;
8515   esac
8516     if test yes = "$lt_cv_apple_cc_single_mod"; then
8517       _lt_dar_single_mod='$single_module'
8518     fi
8519     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8520       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8521     else
8522       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8523     fi
8524     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8525       _lt_dsymutil='~$DSYMUTIL $lib || :'
8526     else
8527       _lt_dsymutil=
8528     fi
8529     ;;
8530   esac
8531
8532 # func_munge_path_list VARIABLE PATH
8533 # -----------------------------------
8534 # VARIABLE is name of variable containing _space_ separated list of
8535 # directories to be munged by the contents of PATH, which is string
8536 # having a format:
8537 # "DIR[:DIR]:"
8538 #       string "DIR[ DIR]" will be prepended to VARIABLE
8539 # ":DIR[:DIR]"
8540 #       string "DIR[ DIR]" will be appended to VARIABLE
8541 # "DIRP[:DIRP]::[DIRA:]DIRA"
8542 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8543 #       "DIRA[ DIRA]" will be appended to VARIABLE
8544 # "DIR[:DIR]"
8545 #       VARIABLE will be replaced by "DIR[ DIR]"
8546 func_munge_path_list ()
8547 {
8548     case x$2 in
8549     x)
8550         ;;
8551     *:)
8552         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8553         ;;
8554     x:*)
8555         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8556         ;;
8557     *::*)
8558         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8559         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8560         ;;
8561     *)
8562         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8563         ;;
8564     esac
8565 }
8566
8567 for ac_header in dlfcn.h
8568 do :
8569   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8570 "
8571 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8572   cat >>confdefs.h <<_ACEOF
8573 #define HAVE_DLFCN_H 1
8574 _ACEOF
8575
8576 fi
8577
8578 done
8579
8580
8581
8582
8583
8584 # Set options
8585
8586
8587
8588         enable_dlopen=no
8589
8590
8591   enable_win32_dll=no
8592
8593
8594             # Check whether --enable-shared was given.
8595 if test "${enable_shared+set}" = set; then :
8596   enableval=$enable_shared; p=${PACKAGE-default}
8597     case $enableval in
8598     yes) enable_shared=yes ;;
8599     no) enable_shared=no ;;
8600     *)
8601       enable_shared=no
8602       # Look at the argument we got.  We use all the common list separators.
8603       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8604       for pkg in $enableval; do
8605         IFS=$lt_save_ifs
8606         if test "X$pkg" = "X$p"; then
8607           enable_shared=yes
8608         fi
8609       done
8610       IFS=$lt_save_ifs
8611       ;;
8612     esac
8613 else
8614   enable_shared=yes
8615 fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625   # Check whether --enable-static was given.
8626 if test "${enable_static+set}" = set; then :
8627   enableval=$enable_static; p=${PACKAGE-default}
8628     case $enableval in
8629     yes) enable_static=yes ;;
8630     no) enable_static=no ;;
8631     *)
8632      enable_static=no
8633       # Look at the argument we got.  We use all the common list separators.
8634       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8635       for pkg in $enableval; do
8636         IFS=$lt_save_ifs
8637         if test "X$pkg" = "X$p"; then
8638           enable_static=yes
8639         fi
8640       done
8641       IFS=$lt_save_ifs
8642       ;;
8643     esac
8644 else
8645   enable_static=yes
8646 fi
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657 # Check whether --with-pic was given.
8658 if test "${with_pic+set}" = set; then :
8659   withval=$with_pic; lt_p=${PACKAGE-default}
8660     case $withval in
8661     yes|no) pic_mode=$withval ;;
8662     *)
8663       pic_mode=default
8664       # Look at the argument we got.  We use all the common list separators.
8665       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8666       for lt_pkg in $withval; do
8667         IFS=$lt_save_ifs
8668         if test "X$lt_pkg" = "X$lt_p"; then
8669           pic_mode=yes
8670         fi
8671       done
8672       IFS=$lt_save_ifs
8673       ;;
8674     esac
8675 else
8676   pic_mode=default
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686   # Check whether --enable-fast-install was given.
8687 if test "${enable_fast_install+set}" = set; then :
8688   enableval=$enable_fast_install; p=${PACKAGE-default}
8689     case $enableval in
8690     yes) enable_fast_install=yes ;;
8691     no) enable_fast_install=no ;;
8692     *)
8693       enable_fast_install=no
8694       # Look at the argument we got.  We use all the common list separators.
8695       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8696       for pkg in $enableval; do
8697         IFS=$lt_save_ifs
8698         if test "X$pkg" = "X$p"; then
8699           enable_fast_install=yes
8700         fi
8701       done
8702       IFS=$lt_save_ifs
8703       ;;
8704     esac
8705 else
8706   enable_fast_install=yes
8707 fi
8708
8709
8710
8711
8712
8713
8714
8715
8716   shared_archive_member_spec=
8717 case $host,$enable_shared in
8718 power*-*-aix[5-9]*,yes)
8719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8720 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8721
8722 # Check whether --with-aix-soname was given.
8723 if test "${with_aix_soname+set}" = set; then :
8724   withval=$with_aix_soname; case $withval in
8725     aix|svr4|both)
8726       ;;
8727     *)
8728       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8729       ;;
8730     esac
8731     lt_cv_with_aix_soname=$with_aix_soname
8732 else
8733   if ${lt_cv_with_aix_soname+:} false; then :
8734   $as_echo_n "(cached) " >&6
8735 else
8736   lt_cv_with_aix_soname=aix
8737 fi
8738
8739     with_aix_soname=$lt_cv_with_aix_soname
8740 fi
8741
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8743 $as_echo "$with_aix_soname" >&6; }
8744   if test aix != "$with_aix_soname"; then
8745     # For the AIX way of multilib, we name the shared archive member
8746     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8747     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8748     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8749     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8750     if test 64 = "${OBJECT_MODE-32}"; then
8751       shared_archive_member_spec=shr_64
8752     else
8753       shared_archive_member_spec=shr
8754     fi
8755   fi
8756   ;;
8757 *)
8758   with_aix_soname=aix
8759   ;;
8760 esac
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771 # This can be used to rebuild libtool when needed
8772 LIBTOOL_DEPS=$ltmain
8773
8774 # Always use our own libtool.
8775 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806 test -z "$LN_S" && LN_S="ln -s"
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821 if test -n "${ZSH_VERSION+set}"; then
8822    setopt NO_GLOB_SUBST
8823 fi
8824
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8826 $as_echo_n "checking for objdir... " >&6; }
8827 if ${lt_cv_objdir+:} false; then :
8828   $as_echo_n "(cached) " >&6
8829 else
8830   rm -f .libs 2>/dev/null
8831 mkdir .libs 2>/dev/null
8832 if test -d .libs; then
8833   lt_cv_objdir=.libs
8834 else
8835   # MS-DOS does not allow filenames that begin with a dot.
8836   lt_cv_objdir=_libs
8837 fi
8838 rmdir .libs 2>/dev/null
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8841 $as_echo "$lt_cv_objdir" >&6; }
8842 objdir=$lt_cv_objdir
8843
8844
8845
8846
8847
8848 cat >>confdefs.h <<_ACEOF
8849 #define LT_OBJDIR "$lt_cv_objdir/"
8850 _ACEOF
8851
8852
8853
8854
8855 case $host_os in
8856 aix3*)
8857   # AIX sometimes has problems with the GCC collect2 program.  For some
8858   # reason, if we set the COLLECT_NAMES environment variable, the problems
8859   # vanish in a puff of smoke.
8860   if test set != "${COLLECT_NAMES+set}"; then
8861     COLLECT_NAMES=
8862     export COLLECT_NAMES
8863   fi
8864   ;;
8865 esac
8866
8867 # Global variables:
8868 ofile=libtool
8869 can_build_shared=yes
8870
8871 # All known linkers require a '.a' archive for static linking (except MSVC,
8872 # which needs '.lib').
8873 libext=a
8874
8875 with_gnu_ld=$lt_cv_prog_gnu_ld
8876
8877 old_CC=$CC
8878 old_CFLAGS=$CFLAGS
8879
8880 # Set sane defaults for various variables
8881 test -z "$CC" && CC=cc
8882 test -z "$LTCC" && LTCC=$CC
8883 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8884 test -z "$LD" && LD=ld
8885 test -z "$ac_objext" && ac_objext=o
8886
8887 func_cc_basename $compiler
8888 cc_basename=$func_cc_basename_result
8889
8890
8891 # Only perform the check for file, if the check method requires it
8892 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8893 case $deplibs_check_method in
8894 file_magic*)
8895   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8897 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8898 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   case $MAGIC_CMD in
8902 [\\/*] |  ?:[\\/]*)
8903   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8904   ;;
8905 *)
8906   lt_save_MAGIC_CMD=$MAGIC_CMD
8907   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8908   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8909   for ac_dir in $ac_dummy; do
8910     IFS=$lt_save_ifs
8911     test -z "$ac_dir" && ac_dir=.
8912     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8913       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8914       if test -n "$file_magic_test_file"; then
8915         case $deplibs_check_method in
8916         "file_magic "*)
8917           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8918           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8919           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8920             $EGREP "$file_magic_regex" > /dev/null; then
8921             :
8922           else
8923             cat <<_LT_EOF 1>&2
8924
8925 *** Warning: the command libtool uses to detect shared libraries,
8926 *** $file_magic_cmd, produces output that libtool cannot recognize.
8927 *** The result is that libtool may fail to recognize shared libraries
8928 *** as such.  This will affect the creation of libtool libraries that
8929 *** depend on shared libraries, but programs linked with such libtool
8930 *** libraries will work regardless of this problem.  Nevertheless, you
8931 *** may want to report the problem to your system manager and/or to
8932 *** bug-libtool@gnu.org
8933
8934 _LT_EOF
8935           fi ;;
8936         esac
8937       fi
8938       break
8939     fi
8940   done
8941   IFS=$lt_save_ifs
8942   MAGIC_CMD=$lt_save_MAGIC_CMD
8943   ;;
8944 esac
8945 fi
8946
8947 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8948 if test -n "$MAGIC_CMD"; then
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8950 $as_echo "$MAGIC_CMD" >&6; }
8951 else
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955
8956
8957
8958
8959
8960 if test -z "$lt_cv_path_MAGIC_CMD"; then
8961   if test -n "$ac_tool_prefix"; then
8962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8963 $as_echo_n "checking for file... " >&6; }
8964 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8965   $as_echo_n "(cached) " >&6
8966 else
8967   case $MAGIC_CMD in
8968 [\\/*] |  ?:[\\/]*)
8969   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8970   ;;
8971 *)
8972   lt_save_MAGIC_CMD=$MAGIC_CMD
8973   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8974   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8975   for ac_dir in $ac_dummy; do
8976     IFS=$lt_save_ifs
8977     test -z "$ac_dir" && ac_dir=.
8978     if test -f "$ac_dir/file"; then
8979       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8980       if test -n "$file_magic_test_file"; then
8981         case $deplibs_check_method in
8982         "file_magic "*)
8983           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8984           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8985           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8986             $EGREP "$file_magic_regex" > /dev/null; then
8987             :
8988           else
8989             cat <<_LT_EOF 1>&2
8990
8991 *** Warning: the command libtool uses to detect shared libraries,
8992 *** $file_magic_cmd, produces output that libtool cannot recognize.
8993 *** The result is that libtool may fail to recognize shared libraries
8994 *** as such.  This will affect the creation of libtool libraries that
8995 *** depend on shared libraries, but programs linked with such libtool
8996 *** libraries will work regardless of this problem.  Nevertheless, you
8997 *** may want to report the problem to your system manager and/or to
8998 *** bug-libtool@gnu.org
8999
9000 _LT_EOF
9001           fi ;;
9002         esac
9003       fi
9004       break
9005     fi
9006   done
9007   IFS=$lt_save_ifs
9008   MAGIC_CMD=$lt_save_MAGIC_CMD
9009   ;;
9010 esac
9011 fi
9012
9013 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9014 if test -n "$MAGIC_CMD"; then
9015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9016 $as_echo "$MAGIC_CMD" >&6; }
9017 else
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9020 fi
9021
9022
9023   else
9024     MAGIC_CMD=:
9025   fi
9026 fi
9027
9028   fi
9029   ;;
9030 esac
9031
9032 # Use C for the default configuration in the libtool script
9033
9034 lt_save_CC=$CC
9035 ac_ext=c
9036 ac_cpp='$CPP $CPPFLAGS'
9037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9040
9041
9042 # Source file extension for C test sources.
9043 ac_ext=c
9044
9045 # Object file extension for compiled C test sources.
9046 objext=o
9047 objext=$objext
9048
9049 # Code to be used in simple compile tests
9050 lt_simple_compile_test_code="int some_variable = 0;"
9051
9052 # Code to be used in simple link tests
9053 lt_simple_link_test_code='int main(){return(0);}'
9054
9055
9056
9057
9058
9059
9060
9061 # If no C compiler was specified, use CC.
9062 LTCC=${LTCC-"$CC"}
9063
9064 # If no C compiler flags were specified, use CFLAGS.
9065 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9066
9067 # Allow CC to be a program name with arguments.
9068 compiler=$CC
9069
9070 # Save the default compiler, since it gets overwritten when the other
9071 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9072 compiler_DEFAULT=$CC
9073
9074 # save warnings/boilerplate of simple test code
9075 ac_outfile=conftest.$ac_objext
9076 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9078 _lt_compiler_boilerplate=`cat conftest.err`
9079 $RM conftest*
9080
9081 ac_outfile=conftest.$ac_objext
9082 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9084 _lt_linker_boilerplate=`cat conftest.err`
9085 $RM -r conftest*
9086
9087
9088 ## CAVEAT EMPTOR:
9089 ## There is no encapsulation within the following macros, do not change
9090 ## the running order or otherwise move them around unless you know exactly
9091 ## what you are doing...
9092 if test -n "$compiler"; then
9093
9094 lt_prog_compiler_no_builtin_flag=
9095
9096 if test yes = "$GCC"; then
9097   case $cc_basename in
9098   nvcc*)
9099     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9100   *)
9101     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9102   esac
9103
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9105 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9106 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9107   $as_echo_n "(cached) " >&6
9108 else
9109   lt_cv_prog_compiler_rtti_exceptions=no
9110    ac_outfile=conftest.$ac_objext
9111    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9112    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9113    # Insert the option either (1) after the last *FLAGS variable, or
9114    # (2) before a word containing "conftest.", or (3) at the end.
9115    # Note that $ac_compile itself does not contain backslashes and begins
9116    # with a dollar sign (not a hyphen), so the echo should work correctly.
9117    # The option is referenced via a variable to avoid confusing sed.
9118    lt_compile=`echo "$ac_compile" | $SED \
9119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9121    -e 's:$: $lt_compiler_flag:'`
9122    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9123    (eval "$lt_compile" 2>conftest.err)
9124    ac_status=$?
9125    cat conftest.err >&5
9126    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127    if (exit $ac_status) && test -s "$ac_outfile"; then
9128      # The compiler can only warn and ignore the option if not recognized
9129      # So say no if there are warnings other than the usual output.
9130      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9131      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9133        lt_cv_prog_compiler_rtti_exceptions=yes
9134      fi
9135    fi
9136    $RM conftest*
9137
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9140 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9141
9142 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9143     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9144 else
9145     :
9146 fi
9147
9148 fi
9149
9150
9151
9152
9153
9154
9155   lt_prog_compiler_wl=
9156 lt_prog_compiler_pic=
9157 lt_prog_compiler_static=
9158
9159
9160   if test yes = "$GCC"; then
9161     lt_prog_compiler_wl='-Wl,'
9162     lt_prog_compiler_static='-static'
9163
9164     case $host_os in
9165       aix*)
9166       # All AIX code is PIC.
9167       if test ia64 = "$host_cpu"; then
9168         # AIX 5 now supports IA64 processor
9169         lt_prog_compiler_static='-Bstatic'
9170       fi
9171       lt_prog_compiler_pic='-fPIC'
9172       ;;
9173
9174     amigaos*)
9175       case $host_cpu in
9176       powerpc)
9177             # see comment about AmigaOS4 .so support
9178             lt_prog_compiler_pic='-fPIC'
9179         ;;
9180       m68k)
9181             # FIXME: we need at least 68020 code to build shared libraries, but
9182             # adding the '-m68020' flag to GCC prevents building anything better,
9183             # like '-m68040'.
9184             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9185         ;;
9186       esac
9187       ;;
9188
9189     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9190       # PIC is the default for these OSes.
9191       ;;
9192
9193     mingw* | cygwin* | pw32* | os2* | cegcc*)
9194       # This hack is so that the source file can tell whether it is being
9195       # built for inclusion in a dll (and should export symbols for example).
9196       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9197       # (--disable-auto-import) libraries
9198       lt_prog_compiler_pic='-DDLL_EXPORT'
9199       case $host_os in
9200       os2*)
9201         lt_prog_compiler_static='$wl-static'
9202         ;;
9203       esac
9204       ;;
9205
9206     darwin* | rhapsody*)
9207       # PIC is the default on this platform
9208       # Common symbols not allowed in MH_DYLIB files
9209       lt_prog_compiler_pic='-fno-common'
9210       ;;
9211
9212     haiku*)
9213       # PIC is the default for Haiku.
9214       # The "-static" flag exists, but is broken.
9215       lt_prog_compiler_static=
9216       ;;
9217
9218     hpux*)
9219       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9220       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9221       # sets the default TLS model and affects inlining.
9222       case $host_cpu in
9223       hppa*64*)
9224         # +Z the default
9225         ;;
9226       *)
9227         lt_prog_compiler_pic='-fPIC'
9228         ;;
9229       esac
9230       ;;
9231
9232     interix[3-9]*)
9233       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9234       # Instead, we relocate shared libraries at runtime.
9235       ;;
9236
9237     msdosdjgpp*)
9238       # Just because we use GCC doesn't mean we suddenly get shared libraries
9239       # on systems that don't support them.
9240       lt_prog_compiler_can_build_shared=no
9241       enable_shared=no
9242       ;;
9243
9244     *nto* | *qnx*)
9245       # QNX uses GNU C++, but need to define -shared option too, otherwise
9246       # it will coredump.
9247       lt_prog_compiler_pic='-fPIC -shared'
9248       ;;
9249
9250     sysv4*MP*)
9251       if test -d /usr/nec; then
9252         lt_prog_compiler_pic=-Kconform_pic
9253       fi
9254       ;;
9255
9256     *)
9257       lt_prog_compiler_pic='-fPIC'
9258       ;;
9259     esac
9260
9261     case $cc_basename in
9262     nvcc*) # Cuda Compiler Driver 2.2
9263       lt_prog_compiler_wl='-Xlinker '
9264       if test -n "$lt_prog_compiler_pic"; then
9265         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9266       fi
9267       ;;
9268     esac
9269   else
9270     # PORTME Check for flag to pass linker flags through the system compiler.
9271     case $host_os in
9272     aix*)
9273       lt_prog_compiler_wl='-Wl,'
9274       if test ia64 = "$host_cpu"; then
9275         # AIX 5 now supports IA64 processor
9276         lt_prog_compiler_static='-Bstatic'
9277       else
9278         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9279       fi
9280       ;;
9281
9282     darwin* | rhapsody*)
9283       # PIC is the default on this platform
9284       # Common symbols not allowed in MH_DYLIB files
9285       lt_prog_compiler_pic='-fno-common'
9286       case $cc_basename in
9287       nagfor*)
9288         # NAG Fortran compiler
9289         lt_prog_compiler_wl='-Wl,-Wl,,'
9290         lt_prog_compiler_pic='-PIC'
9291         lt_prog_compiler_static='-Bstatic'
9292         ;;
9293       esac
9294       ;;
9295
9296     mingw* | cygwin* | pw32* | os2* | cegcc*)
9297       # This hack is so that the source file can tell whether it is being
9298       # built for inclusion in a dll (and should export symbols for example).
9299       lt_prog_compiler_pic='-DDLL_EXPORT'
9300       case $host_os in
9301       os2*)
9302         lt_prog_compiler_static='$wl-static'
9303         ;;
9304       esac
9305       ;;
9306
9307     hpux9* | hpux10* | hpux11*)
9308       lt_prog_compiler_wl='-Wl,'
9309       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9310       # not for PA HP-UX.
9311       case $host_cpu in
9312       hppa*64*|ia64*)
9313         # +Z the default
9314         ;;
9315       *)
9316         lt_prog_compiler_pic='+Z'
9317         ;;
9318       esac
9319       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9320       lt_prog_compiler_static='$wl-a ${wl}archive'
9321       ;;
9322
9323     irix5* | irix6* | nonstopux*)
9324       lt_prog_compiler_wl='-Wl,'
9325       # PIC (with -KPIC) is the default.
9326       lt_prog_compiler_static='-non_shared'
9327       ;;
9328
9329     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9330       case $cc_basename in
9331       # old Intel for x86_64, which still supported -KPIC.
9332       ecc*)
9333         lt_prog_compiler_wl='-Wl,'
9334         lt_prog_compiler_pic='-KPIC'
9335         lt_prog_compiler_static='-static'
9336         ;;
9337       # icc used to be incompatible with GCC.
9338       # ICC 10 doesn't accept -KPIC any more.
9339       icc* | ifort*)
9340         lt_prog_compiler_wl='-Wl,'
9341         lt_prog_compiler_pic='-fPIC'
9342         lt_prog_compiler_static='-static'
9343         ;;
9344       # Lahey Fortran 8.1.
9345       lf95*)
9346         lt_prog_compiler_wl='-Wl,'
9347         lt_prog_compiler_pic='--shared'
9348         lt_prog_compiler_static='--static'
9349         ;;
9350       nagfor*)
9351         # NAG Fortran compiler
9352         lt_prog_compiler_wl='-Wl,-Wl,,'
9353         lt_prog_compiler_pic='-PIC'
9354         lt_prog_compiler_static='-Bstatic'
9355         ;;
9356       tcc*)
9357         # Fabrice Bellard et al's Tiny C Compiler
9358         lt_prog_compiler_wl='-Wl,'
9359         lt_prog_compiler_pic='-fPIC'
9360         lt_prog_compiler_static='-static'
9361         ;;
9362       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9363         # Portland Group compilers (*not* the Pentium gcc compiler,
9364         # which looks to be a dead project)
9365         lt_prog_compiler_wl='-Wl,'
9366         lt_prog_compiler_pic='-fpic'
9367         lt_prog_compiler_static='-Bstatic'
9368         ;;
9369       ccc*)
9370         lt_prog_compiler_wl='-Wl,'
9371         # All Alpha code is PIC.
9372         lt_prog_compiler_static='-non_shared'
9373         ;;
9374       xl* | bgxl* | bgf* | mpixl*)
9375         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9376         lt_prog_compiler_wl='-Wl,'
9377         lt_prog_compiler_pic='-qpic'
9378         lt_prog_compiler_static='-qstaticlink'
9379         ;;
9380       *)
9381         case `$CC -V 2>&1 | sed 5q` in
9382         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9383           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9384           lt_prog_compiler_pic='-KPIC'
9385           lt_prog_compiler_static='-Bstatic'
9386           lt_prog_compiler_wl=''
9387           ;;
9388         *Sun\ F* | *Sun*Fortran*)
9389           lt_prog_compiler_pic='-KPIC'
9390           lt_prog_compiler_static='-Bstatic'
9391           lt_prog_compiler_wl='-Qoption ld '
9392           ;;
9393         *Sun\ C*)
9394           # Sun C 5.9
9395           lt_prog_compiler_pic='-KPIC'
9396           lt_prog_compiler_static='-Bstatic'
9397           lt_prog_compiler_wl='-Wl,'
9398           ;;
9399         *Intel*\ [CF]*Compiler*)
9400           lt_prog_compiler_wl='-Wl,'
9401           lt_prog_compiler_pic='-fPIC'
9402           lt_prog_compiler_static='-static'
9403           ;;
9404         *Portland\ Group*)
9405           lt_prog_compiler_wl='-Wl,'
9406           lt_prog_compiler_pic='-fpic'
9407           lt_prog_compiler_static='-Bstatic'
9408           ;;
9409         esac
9410         ;;
9411       esac
9412       ;;
9413
9414     newsos6)
9415       lt_prog_compiler_pic='-KPIC'
9416       lt_prog_compiler_static='-Bstatic'
9417       ;;
9418
9419     *nto* | *qnx*)
9420       # QNX uses GNU C++, but need to define -shared option too, otherwise
9421       # it will coredump.
9422       lt_prog_compiler_pic='-fPIC -shared'
9423       ;;
9424
9425     osf3* | osf4* | osf5*)
9426       lt_prog_compiler_wl='-Wl,'
9427       # All OSF/1 code is PIC.
9428       lt_prog_compiler_static='-non_shared'
9429       ;;
9430
9431     rdos*)
9432       lt_prog_compiler_static='-non_shared'
9433       ;;
9434
9435     solaris*)
9436       lt_prog_compiler_pic='-KPIC'
9437       lt_prog_compiler_static='-Bstatic'
9438       case $cc_basename in
9439       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9440         lt_prog_compiler_wl='-Qoption ld ';;
9441       *)
9442         lt_prog_compiler_wl='-Wl,';;
9443       esac
9444       ;;
9445
9446     sunos4*)
9447       lt_prog_compiler_wl='-Qoption ld '
9448       lt_prog_compiler_pic='-PIC'
9449       lt_prog_compiler_static='-Bstatic'
9450       ;;
9451
9452     sysv4 | sysv4.2uw2* | sysv4.3*)
9453       lt_prog_compiler_wl='-Wl,'
9454       lt_prog_compiler_pic='-KPIC'
9455       lt_prog_compiler_static='-Bstatic'
9456       ;;
9457
9458     sysv4*MP*)
9459       if test -d /usr/nec; then
9460         lt_prog_compiler_pic='-Kconform_pic'
9461         lt_prog_compiler_static='-Bstatic'
9462       fi
9463       ;;
9464
9465     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9466       lt_prog_compiler_wl='-Wl,'
9467       lt_prog_compiler_pic='-KPIC'
9468       lt_prog_compiler_static='-Bstatic'
9469       ;;
9470
9471     unicos*)
9472       lt_prog_compiler_wl='-Wl,'
9473       lt_prog_compiler_can_build_shared=no
9474       ;;
9475
9476     uts4*)
9477       lt_prog_compiler_pic='-pic'
9478       lt_prog_compiler_static='-Bstatic'
9479       ;;
9480
9481     *)
9482       lt_prog_compiler_can_build_shared=no
9483       ;;
9484     esac
9485   fi
9486
9487 case $host_os in
9488   # For platforms that do not support PIC, -DPIC is meaningless:
9489   *djgpp*)
9490     lt_prog_compiler_pic=
9491     ;;
9492   *)
9493     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9494     ;;
9495 esac
9496
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9498 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9499 if ${lt_cv_prog_compiler_pic+:} false; then :
9500   $as_echo_n "(cached) " >&6
9501 else
9502   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9503 fi
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9505 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9506 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9507
9508 #
9509 # Check to make sure the PIC flag actually works.
9510 #
9511 if test -n "$lt_prog_compiler_pic"; then
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9513 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9514 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9515   $as_echo_n "(cached) " >&6
9516 else
9517   lt_cv_prog_compiler_pic_works=no
9518    ac_outfile=conftest.$ac_objext
9519    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9521    # Insert the option either (1) after the last *FLAGS variable, or
9522    # (2) before a word containing "conftest.", or (3) at the end.
9523    # Note that $ac_compile itself does not contain backslashes and begins
9524    # with a dollar sign (not a hyphen), so the echo should work correctly.
9525    # The option is referenced via a variable to avoid confusing sed.
9526    lt_compile=`echo "$ac_compile" | $SED \
9527    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529    -e 's:$: $lt_compiler_flag:'`
9530    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9531    (eval "$lt_compile" 2>conftest.err)
9532    ac_status=$?
9533    cat conftest.err >&5
9534    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535    if (exit $ac_status) && test -s "$ac_outfile"; then
9536      # The compiler can only warn and ignore the option if not recognized
9537      # So say no if there are warnings other than the usual output.
9538      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9539      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9541        lt_cv_prog_compiler_pic_works=yes
9542      fi
9543    fi
9544    $RM conftest*
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9548 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9549
9550 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9551     case $lt_prog_compiler_pic in
9552      "" | " "*) ;;
9553      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9554      esac
9555 else
9556     lt_prog_compiler_pic=
9557      lt_prog_compiler_can_build_shared=no
9558 fi
9559
9560 fi
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572 #
9573 # Check to make sure the static flag actually works.
9574 #
9575 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9577 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9578 if ${lt_cv_prog_compiler_static_works+:} false; then :
9579   $as_echo_n "(cached) " >&6
9580 else
9581   lt_cv_prog_compiler_static_works=no
9582    save_LDFLAGS=$LDFLAGS
9583    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9584    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9585    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9586      # The linker can only warn and ignore the option if not recognized
9587      # So say no if there are warnings
9588      if test -s conftest.err; then
9589        # Append any errors to the config.log.
9590        cat conftest.err 1>&5
9591        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9592        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9593        if diff conftest.exp conftest.er2 >/dev/null; then
9594          lt_cv_prog_compiler_static_works=yes
9595        fi
9596      else
9597        lt_cv_prog_compiler_static_works=yes
9598      fi
9599    fi
9600    $RM -r conftest*
9601    LDFLAGS=$save_LDFLAGS
9602
9603 fi
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9605 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9606
9607 if test yes = "$lt_cv_prog_compiler_static_works"; then
9608     :
9609 else
9610     lt_prog_compiler_static=
9611 fi
9612
9613
9614
9615
9616
9617
9618
9619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9621 if ${lt_cv_prog_compiler_c_o+:} false; then :
9622   $as_echo_n "(cached) " >&6
9623 else
9624   lt_cv_prog_compiler_c_o=no
9625    $RM -r conftest 2>/dev/null
9626    mkdir conftest
9627    cd conftest
9628    mkdir out
9629    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630
9631    lt_compiler_flag="-o out/conftest2.$ac_objext"
9632    # Insert the option either (1) after the last *FLAGS variable, or
9633    # (2) before a word containing "conftest.", or (3) at the end.
9634    # Note that $ac_compile itself does not contain backslashes and begins
9635    # with a dollar sign (not a hyphen), so the echo should work correctly.
9636    lt_compile=`echo "$ac_compile" | $SED \
9637    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9638    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9639    -e 's:$: $lt_compiler_flag:'`
9640    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9641    (eval "$lt_compile" 2>out/conftest.err)
9642    ac_status=$?
9643    cat out/conftest.err >&5
9644    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9646    then
9647      # The compiler can only warn and ignore the option if not recognized
9648      # So say no if there are warnings
9649      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9650      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9651      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9652        lt_cv_prog_compiler_c_o=yes
9653      fi
9654    fi
9655    chmod u+w . 2>&5
9656    $RM conftest*
9657    # SGI C++ compiler will create directory out/ii_files/ for
9658    # template instantiation
9659    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9660    $RM out/* && rmdir out
9661    cd ..
9662    $RM -r conftest
9663    $RM conftest*
9664
9665 fi
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9667 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9668
9669
9670
9671
9672
9673
9674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9675 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9676 if ${lt_cv_prog_compiler_c_o+:} false; then :
9677   $as_echo_n "(cached) " >&6
9678 else
9679   lt_cv_prog_compiler_c_o=no
9680    $RM -r conftest 2>/dev/null
9681    mkdir conftest
9682    cd conftest
9683    mkdir out
9684    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9685
9686    lt_compiler_flag="-o out/conftest2.$ac_objext"
9687    # Insert the option either (1) after the last *FLAGS variable, or
9688    # (2) before a word containing "conftest.", or (3) at the end.
9689    # Note that $ac_compile itself does not contain backslashes and begins
9690    # with a dollar sign (not a hyphen), so the echo should work correctly.
9691    lt_compile=`echo "$ac_compile" | $SED \
9692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9694    -e 's:$: $lt_compiler_flag:'`
9695    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9696    (eval "$lt_compile" 2>out/conftest.err)
9697    ac_status=$?
9698    cat out/conftest.err >&5
9699    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9701    then
9702      # The compiler can only warn and ignore the option if not recognized
9703      # So say no if there are warnings
9704      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9705      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9706      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9707        lt_cv_prog_compiler_c_o=yes
9708      fi
9709    fi
9710    chmod u+w . 2>&5
9711    $RM conftest*
9712    # SGI C++ compiler will create directory out/ii_files/ for
9713    # template instantiation
9714    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9715    $RM out/* && rmdir out
9716    cd ..
9717    $RM -r conftest
9718    $RM conftest*
9719
9720 fi
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9722 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9723
9724
9725
9726
9727 hard_links=nottested
9728 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9729   # do not overwrite the value of need_locks provided by the user
9730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9731 $as_echo_n "checking if we can lock with hard links... " >&6; }
9732   hard_links=yes
9733   $RM conftest*
9734   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9735   touch conftest.a
9736   ln conftest.a conftest.b 2>&5 || hard_links=no
9737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9739 $as_echo "$hard_links" >&6; }
9740   if test no = "$hard_links"; then
9741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9742 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9743     need_locks=warn
9744   fi
9745 else
9746   need_locks=no
9747 fi
9748
9749
9750
9751
9752
9753
9754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9755 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9756
9757   runpath_var=
9758   allow_undefined_flag=
9759   always_export_symbols=no
9760   archive_cmds=
9761   archive_expsym_cmds=
9762   compiler_needs_object=no
9763   enable_shared_with_static_runtimes=no
9764   export_dynamic_flag_spec=
9765   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9766   hardcode_automatic=no
9767   hardcode_direct=no
9768   hardcode_direct_absolute=no
9769   hardcode_libdir_flag_spec=
9770   hardcode_libdir_separator=
9771   hardcode_minus_L=no
9772   hardcode_shlibpath_var=unsupported
9773   inherit_rpath=no
9774   link_all_deplibs=unknown
9775   module_cmds=
9776   module_expsym_cmds=
9777   old_archive_from_new_cmds=
9778   old_archive_from_expsyms_cmds=
9779   thread_safe_flag_spec=
9780   whole_archive_flag_spec=
9781   # include_expsyms should be a list of space-separated symbols to be *always*
9782   # included in the symbol list
9783   include_expsyms=
9784   # exclude_expsyms can be an extended regexp of symbols to exclude
9785   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9786   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9787   # as well as any symbol that contains 'd'.
9788   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9789   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9790   # platforms (ab)use it in PIC code, but their linkers get confused if
9791   # the symbol is explicitly referenced.  Since portable code cannot
9792   # rely on this symbol name, it's probably fine to never include it in
9793   # preloaded symbol tables.
9794   # Exclude shared library initialization/finalization symbols.
9795   extract_expsyms_cmds=
9796
9797   case $host_os in
9798   cygwin* | mingw* | pw32* | cegcc*)
9799     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9800     # When not using gcc, we currently assume that we are using
9801     # Microsoft Visual C++.
9802     if test yes != "$GCC"; then
9803       with_gnu_ld=no
9804     fi
9805     ;;
9806   interix*)
9807     # we just hope/assume this is gcc and not c89 (= MSVC++)
9808     with_gnu_ld=yes
9809     ;;
9810   openbsd* | bitrig*)
9811     with_gnu_ld=no
9812     ;;
9813   esac
9814
9815   ld_shlibs=yes
9816
9817   # On some targets, GNU ld is compatible enough with the native linker
9818   # that we're better off using the native interface for both.
9819   lt_use_gnu_ld_interface=no
9820   if test yes = "$with_gnu_ld"; then
9821     case $host_os in
9822       aix*)
9823         # The AIX port of GNU ld has always aspired to compatibility
9824         # with the native linker.  However, as the warning in the GNU ld
9825         # block says, versions before 2.19.5* couldn't really create working
9826         # shared libraries, regardless of the interface used.
9827         case `$LD -v 2>&1` in
9828           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9829           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9830           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9831           *)
9832             lt_use_gnu_ld_interface=yes
9833             ;;
9834         esac
9835         ;;
9836       *)
9837         lt_use_gnu_ld_interface=yes
9838         ;;
9839     esac
9840   fi
9841
9842   if test yes = "$lt_use_gnu_ld_interface"; then
9843     # If archive_cmds runs LD, not CC, wlarc should be empty
9844     wlarc='$wl'
9845
9846     # Set some defaults for GNU ld with shared library support. These
9847     # are reset later if shared libraries are not supported. Putting them
9848     # here allows them to be overridden if necessary.
9849     runpath_var=LD_RUN_PATH
9850     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9851     export_dynamic_flag_spec='$wl--export-dynamic'
9852     # ancient GNU ld didn't support --whole-archive et. al.
9853     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9854       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9855     else
9856       whole_archive_flag_spec=
9857     fi
9858     supports_anon_versioning=no
9859     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9860       *GNU\ gold*) supports_anon_versioning=yes ;;
9861       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9862       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9863       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9864       *\ 2.11.*) ;; # other 2.11 versions
9865       *) supports_anon_versioning=yes ;;
9866     esac
9867
9868     # See if GNU ld supports shared libraries.
9869     case $host_os in
9870     aix[3-9]*)
9871       # On AIX/PPC, the GNU linker is very broken
9872       if test ia64 != "$host_cpu"; then
9873         ld_shlibs=no
9874         cat <<_LT_EOF 1>&2
9875
9876 *** Warning: the GNU linker, at least up to release 2.19, is reported
9877 *** to be unable to reliably create shared libraries on AIX.
9878 *** Therefore, libtool is disabling shared libraries support.  If you
9879 *** really care for shared libraries, you may want to install binutils
9880 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9881 *** You will then need to restart the configuration process.
9882
9883 _LT_EOF
9884       fi
9885       ;;
9886
9887     amigaos*)
9888       case $host_cpu in
9889       powerpc)
9890             # see comment about AmigaOS4 .so support
9891             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9892             archive_expsym_cmds=''
9893         ;;
9894       m68k)
9895             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)'
9896             hardcode_libdir_flag_spec='-L$libdir'
9897             hardcode_minus_L=yes
9898         ;;
9899       esac
9900       ;;
9901
9902     beos*)
9903       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9904         allow_undefined_flag=unsupported
9905         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9906         # support --undefined.  This deserves some investigation.  FIXME
9907         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9908       else
9909         ld_shlibs=no
9910       fi
9911       ;;
9912
9913     cygwin* | mingw* | pw32* | cegcc*)
9914       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9915       # as there is no search path for DLLs.
9916       hardcode_libdir_flag_spec='-L$libdir'
9917       export_dynamic_flag_spec='$wl--export-all-symbols'
9918       allow_undefined_flag=unsupported
9919       always_export_symbols=no
9920       enable_shared_with_static_runtimes=yes
9921       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'
9922       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9923
9924       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9925         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9926         # If the export-symbols file already is a .def file, use it as
9927         # is; otherwise, prepend EXPORTS...
9928         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9929           cp $export_symbols $output_objdir/$soname.def;
9930         else
9931           echo EXPORTS > $output_objdir/$soname.def;
9932           cat $export_symbols >> $output_objdir/$soname.def;
9933         fi~
9934         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9935       else
9936         ld_shlibs=no
9937       fi
9938       ;;
9939
9940     haiku*)
9941       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9942       link_all_deplibs=yes
9943       ;;
9944
9945     os2*)
9946       hardcode_libdir_flag_spec='-L$libdir'
9947       hardcode_minus_L=yes
9948       allow_undefined_flag=unsupported
9949       shrext_cmds=.dll
9950       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9951         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9952         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9953         $ECHO EXPORTS >> $output_objdir/$libname.def~
9954         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9955         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9956         emximp -o $lib $output_objdir/$libname.def'
9957       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9958         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9959         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9960         $ECHO EXPORTS >> $output_objdir/$libname.def~
9961         prefix_cmds="$SED"~
9962         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9963           prefix_cmds="$prefix_cmds -e 1d";
9964         fi~
9965         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9966         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9967         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9968         emximp -o $lib $output_objdir/$libname.def'
9969       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9970       enable_shared_with_static_runtimes=yes
9971       ;;
9972
9973     interix[3-9]*)
9974       hardcode_direct=no
9975       hardcode_shlibpath_var=no
9976       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9977       export_dynamic_flag_spec='$wl-E'
9978       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9979       # Instead, shared libraries are loaded at an image base (0x10000000 by
9980       # default) and relocated if they conflict, which is a slow very memory
9981       # consuming and fragmenting process.  To avoid this, we pick a random,
9982       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9983       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9984       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9985       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'
9986       ;;
9987
9988     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9989       tmp_diet=no
9990       if test linux-dietlibc = "$host_os"; then
9991         case $cc_basename in
9992           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9993         esac
9994       fi
9995       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9996          && test no = "$tmp_diet"
9997       then
9998         tmp_addflag=' $pic_flag'
9999         tmp_sharedflag='-shared'
10000         case $cc_basename,$host_cpu in
10001         pgcc*)                          # Portland Group C compiler
10002           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'
10003           tmp_addflag=' $pic_flag'
10004           ;;
10005         pgf77* | pgf90* | pgf95* | pgfortran*)
10006                                         # Portland Group f77 and f90 compilers
10007           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'
10008           tmp_addflag=' $pic_flag -Mnomain' ;;
10009         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10010           tmp_addflag=' -i_dynamic' ;;
10011         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10012           tmp_addflag=' -i_dynamic -nofor_main' ;;
10013         ifc* | ifort*)                  # Intel Fortran compiler
10014           tmp_addflag=' -nofor_main' ;;
10015         lf95*)                          # Lahey Fortran 8.1
10016           whole_archive_flag_spec=
10017           tmp_sharedflag='--shared' ;;
10018         nagfor*)                        # NAGFOR 5.3
10019           tmp_sharedflag='-Wl,-shared' ;;
10020         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10021           tmp_sharedflag='-qmkshrobj'
10022           tmp_addflag= ;;
10023         nvcc*)  # Cuda Compiler Driver 2.2
10024           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'
10025           compiler_needs_object=yes
10026           ;;
10027         esac
10028         case `$CC -V 2>&1 | sed 5q` in
10029         *Sun\ C*)                       # Sun C 5.9
10030           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'
10031           compiler_needs_object=yes
10032           tmp_sharedflag='-G' ;;
10033         *Sun\ F*)                       # Sun Fortran 8.3
10034           tmp_sharedflag='-G' ;;
10035         esac
10036         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10037
10038         if test yes = "$supports_anon_versioning"; then
10039           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10040             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10041             echo "local: *; };" >> $output_objdir/$libname.ver~
10042             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10043         fi
10044
10045         case $cc_basename in
10046         tcc*)
10047           export_dynamic_flag_spec='-rdynamic'
10048           ;;
10049         xlf* | bgf* | bgxlf* | mpixlf*)
10050           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10051           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10052           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10053           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10054           if test yes = "$supports_anon_versioning"; then
10055             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10056               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10057               echo "local: *; };" >> $output_objdir/$libname.ver~
10058               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10059           fi
10060           ;;
10061         esac
10062       else
10063         ld_shlibs=no
10064       fi
10065       ;;
10066
10067     netbsd*)
10068       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10069         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10070         wlarc=
10071       else
10072         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10073         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10074       fi
10075       ;;
10076
10077     solaris*)
10078       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10079         ld_shlibs=no
10080         cat <<_LT_EOF 1>&2
10081
10082 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10083 *** create shared libraries on Solaris systems.  Therefore, libtool
10084 *** is disabling shared libraries support.  We urge you to upgrade GNU
10085 *** binutils to release 2.9.1 or newer.  Another option is to modify
10086 *** your PATH or compiler configuration so that the native linker is
10087 *** used, and then restart.
10088
10089 _LT_EOF
10090       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10091         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10092         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10093       else
10094         ld_shlibs=no
10095       fi
10096       ;;
10097
10098     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10099       case `$LD -v 2>&1` in
10100         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10101         ld_shlibs=no
10102         cat <<_LT_EOF 1>&2
10103
10104 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10105 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10106 *** is disabling shared libraries support.  We urge you to upgrade GNU
10107 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10108 *** your PATH or compiler configuration so that the native linker is
10109 *** used, and then restart.
10110
10111 _LT_EOF
10112         ;;
10113         *)
10114           # For security reasons, it is highly recommended that you always
10115           # use absolute paths for naming shared libraries, and exclude the
10116           # DT_RUNPATH tag from executables and libraries.  But doing so
10117           # requires that you compile everything twice, which is a pain.
10118           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10120             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10121             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10122           else
10123             ld_shlibs=no
10124           fi
10125         ;;
10126       esac
10127       ;;
10128
10129     sunos4*)
10130       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10131       wlarc=
10132       hardcode_direct=yes
10133       hardcode_shlibpath_var=no
10134       ;;
10135
10136     *)
10137       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10138         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10139         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10140       else
10141         ld_shlibs=no
10142       fi
10143       ;;
10144     esac
10145
10146     if test no = "$ld_shlibs"; then
10147       runpath_var=
10148       hardcode_libdir_flag_spec=
10149       export_dynamic_flag_spec=
10150       whole_archive_flag_spec=
10151     fi
10152   else
10153     # PORTME fill in a description of your system's linker (not GNU ld)
10154     case $host_os in
10155     aix3*)
10156       allow_undefined_flag=unsupported
10157       always_export_symbols=yes
10158       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'
10159       # Note: this linker hardcodes the directories in LIBPATH if there
10160       # are no directories specified by -L.
10161       hardcode_minus_L=yes
10162       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10163         # Neither direct hardcoding nor static linking is supported with a
10164         # broken collect2.
10165         hardcode_direct=unsupported
10166       fi
10167       ;;
10168
10169     aix[4-9]*)
10170       if test ia64 = "$host_cpu"; then
10171         # On IA64, the linker does run time linking by default, so we don't
10172         # have to do anything special.
10173         aix_use_runtimelinking=no
10174         exp_sym_flag='-Bexport'
10175         no_entry_flag=
10176       else
10177         # If we're using GNU nm, then we don't want the "-C" option.
10178         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10179         # Without the "-l" option, or with the "-B" option, AIX nm treats
10180         # weak defined symbols like other global defined symbols, whereas
10181         # GNU nm marks them as "W".
10182         # While the 'weak' keyword is ignored in the Export File, we need
10183         # it in the Import File for the 'aix-soname' feature, so we have
10184         # to replace the "-B" option with "-P" for AIX nm.
10185         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10186           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10187         else
10188           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10189         fi
10190         aix_use_runtimelinking=no
10191
10192         # Test if we are trying to use run time linking or normal
10193         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10194         # have runtime linking enabled, and use it for executables.
10195         # For shared libraries, we enable/disable runtime linking
10196         # depending on the kind of the shared library created -
10197         # when "with_aix_soname,aix_use_runtimelinking" is:
10198         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10199         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10200         #            lib.a           static archive
10201         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10202         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10203         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10204         #            lib.a(lib.so.V) shared, rtl:no
10205         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10206         #            lib.a           static archive
10207         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10208           for ld_flag in $LDFLAGS; do
10209           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10210             aix_use_runtimelinking=yes
10211             break
10212           fi
10213           done
10214           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10215             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10216             # so we don't have lib.a shared libs to link our executables.
10217             # We have to force runtime linking in this case.
10218             aix_use_runtimelinking=yes
10219             LDFLAGS="$LDFLAGS -Wl,-brtl"
10220           fi
10221           ;;
10222         esac
10223
10224         exp_sym_flag='-bexport'
10225         no_entry_flag='-bnoentry'
10226       fi
10227
10228       # When large executables or shared objects are built, AIX ld can
10229       # have problems creating the table of contents.  If linking a library
10230       # or program results in "error TOC overflow" add -mminimal-toc to
10231       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10232       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10233
10234       archive_cmds=''
10235       hardcode_direct=yes
10236       hardcode_direct_absolute=yes
10237       hardcode_libdir_separator=':'
10238       link_all_deplibs=yes
10239       file_list_spec='$wl-f,'
10240       case $with_aix_soname,$aix_use_runtimelinking in
10241       aix,*) ;; # traditional, no import file
10242       svr4,* | *,yes) # use import file
10243         # The Import File defines what to hardcode.
10244         hardcode_direct=no
10245         hardcode_direct_absolute=no
10246         ;;
10247       esac
10248
10249       if test yes = "$GCC"; then
10250         case $host_os in aix4.[012]|aix4.[012].*)
10251         # We only want to do this on AIX 4.2 and lower, the check
10252         # below for broken collect2 doesn't work under 4.3+
10253           collect2name=`$CC -print-prog-name=collect2`
10254           if test -f "$collect2name" &&
10255            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10256           then
10257           # We have reworked collect2
10258           :
10259           else
10260           # We have old collect2
10261           hardcode_direct=unsupported
10262           # It fails to find uninstalled libraries when the uninstalled
10263           # path is not listed in the libpath.  Setting hardcode_minus_L
10264           # to unsupported forces relinking
10265           hardcode_minus_L=yes
10266           hardcode_libdir_flag_spec='-L$libdir'
10267           hardcode_libdir_separator=
10268           fi
10269           ;;
10270         esac
10271         shared_flag='-shared'
10272         if test yes = "$aix_use_runtimelinking"; then
10273           shared_flag="$shared_flag "'$wl-G'
10274         fi
10275         # Need to ensure runtime linking is disabled for the traditional
10276         # shared library, or the linker may eventually find shared libraries
10277         # /with/ Import File - we do not want to mix them.
10278         shared_flag_aix='-shared'
10279         shared_flag_svr4='-shared $wl-G'
10280       else
10281         # not using gcc
10282         if test ia64 = "$host_cpu"; then
10283         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10284         # chokes on -Wl,-G. The following line is correct:
10285           shared_flag='-G'
10286         else
10287           if test yes = "$aix_use_runtimelinking"; then
10288             shared_flag='$wl-G'
10289           else
10290             shared_flag='$wl-bM:SRE'
10291           fi
10292           shared_flag_aix='$wl-bM:SRE'
10293           shared_flag_svr4='$wl-G'
10294         fi
10295       fi
10296
10297       export_dynamic_flag_spec='$wl-bexpall'
10298       # It seems that -bexpall does not export symbols beginning with
10299       # underscore (_), so it is better to generate a list of symbols to export.
10300       always_export_symbols=yes
10301       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10302         # Warning - without using the other runtime loading flags (-brtl),
10303         # -berok will link without error, but may produce a broken library.
10304         allow_undefined_flag='-berok'
10305         # Determine the default libpath from the value encoded in an
10306         # empty executable.
10307         if test set = "${lt_cv_aix_libpath+set}"; then
10308   aix_libpath=$lt_cv_aix_libpath
10309 else
10310   if ${lt_cv_aix_libpath_+:} false; then :
10311   $as_echo_n "(cached) " >&6
10312 else
10313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h.  */
10315
10316 int
10317 main ()
10318 {
10319
10320   ;
10321   return 0;
10322 }
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325
10326   lt_aix_libpath_sed='
10327       /Import File Strings/,/^$/ {
10328           /^0/ {
10329               s/^0  *\([^ ]*\) *$/\1/
10330               p
10331           }
10332       }'
10333   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10334   # Check for a 64-bit object if we didn't find anything.
10335   if test -z "$lt_cv_aix_libpath_"; then
10336     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10337   fi
10338 fi
10339 rm -f core conftest.err conftest.$ac_objext \
10340     conftest$ac_exeext conftest.$ac_ext
10341   if test -z "$lt_cv_aix_libpath_"; then
10342     lt_cv_aix_libpath_=/usr/lib:/lib
10343   fi
10344
10345 fi
10346
10347   aix_libpath=$lt_cv_aix_libpath_
10348 fi
10349
10350         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10351         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10352       else
10353         if test ia64 = "$host_cpu"; then
10354           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10355           allow_undefined_flag="-z nodefs"
10356           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"
10357         else
10358          # Determine the default libpath from the value encoded in an
10359          # empty executable.
10360          if test set = "${lt_cv_aix_libpath+set}"; then
10361   aix_libpath=$lt_cv_aix_libpath
10362 else
10363   if ${lt_cv_aix_libpath_+:} false; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h.  */
10368
10369 int
10370 main ()
10371 {
10372
10373   ;
10374   return 0;
10375 }
10376 _ACEOF
10377 if ac_fn_c_try_link "$LINENO"; then :
10378
10379   lt_aix_libpath_sed='
10380       /Import File Strings/,/^$/ {
10381           /^0/ {
10382               s/^0  *\([^ ]*\) *$/\1/
10383               p
10384           }
10385       }'
10386   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387   # Check for a 64-bit object if we didn't find anything.
10388   if test -z "$lt_cv_aix_libpath_"; then
10389     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390   fi
10391 fi
10392 rm -f core conftest.err conftest.$ac_objext \
10393     conftest$ac_exeext conftest.$ac_ext
10394   if test -z "$lt_cv_aix_libpath_"; then
10395     lt_cv_aix_libpath_=/usr/lib:/lib
10396   fi
10397
10398 fi
10399
10400   aix_libpath=$lt_cv_aix_libpath_
10401 fi
10402
10403          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10404           # Warning - without using the other run time loading flags,
10405           # -berok will link without error, but may produce a broken library.
10406           no_undefined_flag=' $wl-bernotok'
10407           allow_undefined_flag=' $wl-berok'
10408           if test yes = "$with_gnu_ld"; then
10409             # We only use this code for GNU lds that support --whole-archive.
10410             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10411           else
10412             # Exported symbols can be pulled into shared objects from archives
10413             whole_archive_flag_spec='$convenience'
10414           fi
10415           archive_cmds_need_lc=yes
10416           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10417           # -brtl affects multiple linker settings, -berok does not and is overridden later
10418           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10419           if test svr4 != "$with_aix_soname"; then
10420             # This is similar to how AIX traditionally builds its shared libraries.
10421             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10422           fi
10423           if test aix != "$with_aix_soname"; then
10424             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10425           else
10426             # used by -dlpreopen to get the symbols
10427             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10428           fi
10429           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10430         fi
10431       fi
10432       ;;
10433
10434     amigaos*)
10435       case $host_cpu in
10436       powerpc)
10437             # see comment about AmigaOS4 .so support
10438             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439             archive_expsym_cmds=''
10440         ;;
10441       m68k)
10442             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)'
10443             hardcode_libdir_flag_spec='-L$libdir'
10444             hardcode_minus_L=yes
10445         ;;
10446       esac
10447       ;;
10448
10449     bsdi[45]*)
10450       export_dynamic_flag_spec=-rdynamic
10451       ;;
10452
10453     cygwin* | mingw* | pw32* | cegcc*)
10454       # When not using gcc, we currently assume that we are using
10455       # Microsoft Visual C++.
10456       # hardcode_libdir_flag_spec is actually meaningless, as there is
10457       # no search path for DLLs.
10458       case $cc_basename in
10459       cl*)
10460         # Native MSVC
10461         hardcode_libdir_flag_spec=' '
10462         allow_undefined_flag=unsupported
10463         always_export_symbols=yes
10464         file_list_spec='@'
10465         # Tell ltmain to make .lib files, not .a files.
10466         libext=lib
10467         # Tell ltmain to make .dll files, not .so files.
10468         shrext_cmds=.dll
10469         # FIXME: Setting linknames here is a bad hack.
10470         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10471         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10472             cp "$export_symbols" "$output_objdir/$soname.def";
10473             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10474           else
10475             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10476           fi~
10477           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10478           linknames='
10479         # The linker will not automatically build a static lib if we build a DLL.
10480         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10481         enable_shared_with_static_runtimes=yes
10482         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10483         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10484         # Don't use ranlib
10485         old_postinstall_cmds='chmod 644 $oldlib'
10486         postlink_cmds='lt_outputfile="@OUTPUT@"~
10487           lt_tool_outputfile="@TOOL_OUTPUT@"~
10488           case $lt_outputfile in
10489             *.exe|*.EXE) ;;
10490             *)
10491               lt_outputfile=$lt_outputfile.exe
10492               lt_tool_outputfile=$lt_tool_outputfile.exe
10493               ;;
10494           esac~
10495           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10496             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10497             $RM "$lt_outputfile.manifest";
10498           fi'
10499         ;;
10500       *)
10501         # Assume MSVC wrapper
10502         hardcode_libdir_flag_spec=' '
10503         allow_undefined_flag=unsupported
10504         # Tell ltmain to make .lib files, not .a files.
10505         libext=lib
10506         # Tell ltmain to make .dll files, not .so files.
10507         shrext_cmds=.dll
10508         # FIXME: Setting linknames here is a bad hack.
10509         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10510         # The linker will automatically build a .lib file if we build a DLL.
10511         old_archive_from_new_cmds='true'
10512         # FIXME: Should let the user specify the lib program.
10513         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10514         enable_shared_with_static_runtimes=yes
10515         ;;
10516       esac
10517       ;;
10518
10519     darwin* | rhapsody*)
10520
10521
10522   archive_cmds_need_lc=no
10523   hardcode_direct=no
10524   hardcode_automatic=yes
10525   hardcode_shlibpath_var=unsupported
10526   if test yes = "$lt_cv_ld_force_load"; then
10527     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\"`'
10528
10529   else
10530     whole_archive_flag_spec=''
10531   fi
10532   link_all_deplibs=yes
10533   allow_undefined_flag=$_lt_dar_allow_undefined
10534   case $cc_basename in
10535      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10536      *) _lt_dar_can_shared=$GCC ;;
10537   esac
10538   if test yes = "$_lt_dar_can_shared"; then
10539     output_verbose_link_cmd=func_echo_all
10540     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10541     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10542     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"
10543     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"
10544
10545   else
10546   ld_shlibs=no
10547   fi
10548
10549       ;;
10550
10551     dgux*)
10552       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553       hardcode_libdir_flag_spec='-L$libdir'
10554       hardcode_shlibpath_var=no
10555       ;;
10556
10557     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10558     # support.  Future versions do this automatically, but an explicit c++rt0.o
10559     # does not break anything, and helps significantly (at the cost of a little
10560     # extra space).
10561     freebsd2.2*)
10562       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10563       hardcode_libdir_flag_spec='-R$libdir'
10564       hardcode_direct=yes
10565       hardcode_shlibpath_var=no
10566       ;;
10567
10568     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10569     freebsd2.*)
10570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10571       hardcode_direct=yes
10572       hardcode_minus_L=yes
10573       hardcode_shlibpath_var=no
10574       ;;
10575
10576     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10577     freebsd* | dragonfly*)
10578       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579       hardcode_libdir_flag_spec='-R$libdir'
10580       hardcode_direct=yes
10581       hardcode_shlibpath_var=no
10582       ;;
10583
10584     hpux9*)
10585       if test yes = "$GCC"; then
10586         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10587       else
10588         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10589       fi
10590       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10591       hardcode_libdir_separator=:
10592       hardcode_direct=yes
10593
10594       # hardcode_minus_L: Not really in the search PATH,
10595       # but as the default location of the library.
10596       hardcode_minus_L=yes
10597       export_dynamic_flag_spec='$wl-E'
10598       ;;
10599
10600     hpux10*)
10601       if test yes,no = "$GCC,$with_gnu_ld"; then
10602         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10603       else
10604         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10605       fi
10606       if test no = "$with_gnu_ld"; then
10607         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10608         hardcode_libdir_separator=:
10609         hardcode_direct=yes
10610         hardcode_direct_absolute=yes
10611         export_dynamic_flag_spec='$wl-E'
10612         # hardcode_minus_L: Not really in the search PATH,
10613         # but as the default location of the library.
10614         hardcode_minus_L=yes
10615       fi
10616       ;;
10617
10618     hpux11*)
10619       if test yes,no = "$GCC,$with_gnu_ld"; then
10620         case $host_cpu in
10621         hppa*64*)
10622           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10623           ;;
10624         ia64*)
10625           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10626           ;;
10627         *)
10628           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10629           ;;
10630         esac
10631       else
10632         case $host_cpu in
10633         hppa*64*)
10634           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10635           ;;
10636         ia64*)
10637           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10638           ;;
10639         *)
10640
10641           # Older versions of the 11.00 compiler do not understand -b yet
10642           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10643           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10644 $as_echo_n "checking if $CC understands -b... " >&6; }
10645 if ${lt_cv_prog_compiler__b+:} false; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   lt_cv_prog_compiler__b=no
10649    save_LDFLAGS=$LDFLAGS
10650    LDFLAGS="$LDFLAGS -b"
10651    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10652    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10653      # The linker can only warn and ignore the option if not recognized
10654      # So say no if there are warnings
10655      if test -s conftest.err; then
10656        # Append any errors to the config.log.
10657        cat conftest.err 1>&5
10658        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10659        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10660        if diff conftest.exp conftest.er2 >/dev/null; then
10661          lt_cv_prog_compiler__b=yes
10662        fi
10663      else
10664        lt_cv_prog_compiler__b=yes
10665      fi
10666    fi
10667    $RM -r conftest*
10668    LDFLAGS=$save_LDFLAGS
10669
10670 fi
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10672 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10673
10674 if test yes = "$lt_cv_prog_compiler__b"; then
10675     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10676 else
10677     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10678 fi
10679
10680           ;;
10681         esac
10682       fi
10683       if test no = "$with_gnu_ld"; then
10684         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10685         hardcode_libdir_separator=:
10686
10687         case $host_cpu in
10688         hppa*64*|ia64*)
10689           hardcode_direct=no
10690           hardcode_shlibpath_var=no
10691           ;;
10692         *)
10693           hardcode_direct=yes
10694           hardcode_direct_absolute=yes
10695           export_dynamic_flag_spec='$wl-E'
10696
10697           # hardcode_minus_L: Not really in the search PATH,
10698           # but as the default location of the library.
10699           hardcode_minus_L=yes
10700           ;;
10701         esac
10702       fi
10703       ;;
10704
10705     irix5* | irix6* | nonstopux*)
10706       if test yes = "$GCC"; then
10707         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'
10708         # Try to use the -exported_symbol ld option, if it does not
10709         # work, assume that -exports_file does not work either and
10710         # implicitly export all symbols.
10711         # This should be the same for all languages, so no per-tag cache variable.
10712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10713 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10714 if ${lt_cv_irix_exported_symbol+:} false; then :
10715   $as_echo_n "(cached) " >&6
10716 else
10717   save_LDFLAGS=$LDFLAGS
10718            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10719            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h.  */
10721 int foo (void) { return 0; }
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"; then :
10724   lt_cv_irix_exported_symbol=yes
10725 else
10726   lt_cv_irix_exported_symbol=no
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext \
10729     conftest$ac_exeext conftest.$ac_ext
10730            LDFLAGS=$save_LDFLAGS
10731 fi
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10733 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10734         if test yes = "$lt_cv_irix_exported_symbol"; then
10735           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'
10736         fi
10737       else
10738         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'
10739         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'
10740       fi
10741       archive_cmds_need_lc='no'
10742       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10743       hardcode_libdir_separator=:
10744       inherit_rpath=yes
10745       link_all_deplibs=yes
10746       ;;
10747
10748     linux*)
10749       case $cc_basename in
10750       tcc*)
10751         # Fabrice Bellard et al's Tiny C Compiler
10752         ld_shlibs=yes
10753         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10754         ;;
10755       esac
10756       ;;
10757
10758     netbsd*)
10759       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10760         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10761       else
10762         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10763       fi
10764       hardcode_libdir_flag_spec='-R$libdir'
10765       hardcode_direct=yes
10766       hardcode_shlibpath_var=no
10767       ;;
10768
10769     newsos6)
10770       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771       hardcode_direct=yes
10772       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10773       hardcode_libdir_separator=:
10774       hardcode_shlibpath_var=no
10775       ;;
10776
10777     *nto* | *qnx*)
10778       ;;
10779
10780     openbsd* | bitrig*)
10781       if test -f /usr/libexec/ld.so; then
10782         hardcode_direct=yes
10783         hardcode_shlibpath_var=no
10784         hardcode_direct_absolute=yes
10785         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10786           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10787           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10788           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10789           export_dynamic_flag_spec='$wl-E'
10790         else
10791           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10792           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10793         fi
10794       else
10795         ld_shlibs=no
10796       fi
10797       ;;
10798
10799     os2*)
10800       hardcode_libdir_flag_spec='-L$libdir'
10801       hardcode_minus_L=yes
10802       allow_undefined_flag=unsupported
10803       shrext_cmds=.dll
10804       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10805         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10806         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10807         $ECHO EXPORTS >> $output_objdir/$libname.def~
10808         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10809         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10810         emximp -o $lib $output_objdir/$libname.def'
10811       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10812         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10813         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10814         $ECHO EXPORTS >> $output_objdir/$libname.def~
10815         prefix_cmds="$SED"~
10816         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10817           prefix_cmds="$prefix_cmds -e 1d";
10818         fi~
10819         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10820         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10821         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10822         emximp -o $lib $output_objdir/$libname.def'
10823       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10824       enable_shared_with_static_runtimes=yes
10825       ;;
10826
10827     osf3*)
10828       if test yes = "$GCC"; then
10829         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10830         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'
10831       else
10832         allow_undefined_flag=' -expect_unresolved \*'
10833         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'
10834       fi
10835       archive_cmds_need_lc='no'
10836       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10837       hardcode_libdir_separator=:
10838       ;;
10839
10840     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10841       if test yes = "$GCC"; then
10842         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10843         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'
10844         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10845       else
10846         allow_undefined_flag=' -expect_unresolved \*'
10847         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'
10848         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~
10849           $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'
10850
10851         # Both c and cxx compiler support -rpath directly
10852         hardcode_libdir_flag_spec='-rpath $libdir'
10853       fi
10854       archive_cmds_need_lc='no'
10855       hardcode_libdir_separator=:
10856       ;;
10857
10858     solaris*)
10859       no_undefined_flag=' -z defs'
10860       if test yes = "$GCC"; then
10861         wlarc='$wl'
10862         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10863         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10864           $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'
10865       else
10866         case `$CC -V 2>&1` in
10867         *"Compilers 5.0"*)
10868           wlarc=''
10869           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10871             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10872           ;;
10873         *)
10874           wlarc='$wl'
10875           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10876           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10877             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10878           ;;
10879         esac
10880       fi
10881       hardcode_libdir_flag_spec='-R$libdir'
10882       hardcode_shlibpath_var=no
10883       case $host_os in
10884       solaris2.[0-5] | solaris2.[0-5].*) ;;
10885       *)
10886         # The compiler driver will combine and reorder linker options,
10887         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10888         # but is careful enough not to reorder.
10889         # Supported since Solaris 2.6 (maybe 2.5.1?)
10890         if test yes = "$GCC"; then
10891           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10892         else
10893           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10894         fi
10895         ;;
10896       esac
10897       link_all_deplibs=yes
10898       ;;
10899
10900     sunos4*)
10901       if test sequent = "$host_vendor"; then
10902         # Use $CC to link under sequent, because it throws in some extra .o
10903         # files that make .init and .fini sections work.
10904         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10905       else
10906         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10907       fi
10908       hardcode_libdir_flag_spec='-L$libdir'
10909       hardcode_direct=yes
10910       hardcode_minus_L=yes
10911       hardcode_shlibpath_var=no
10912       ;;
10913
10914     sysv4)
10915       case $host_vendor in
10916         sni)
10917           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918           hardcode_direct=yes # is this really true???
10919         ;;
10920         siemens)
10921           ## LD is ld it makes a PLAMLIB
10922           ## CC just makes a GrossModule.
10923           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10924           reload_cmds='$CC -r -o $output$reload_objs'
10925           hardcode_direct=no
10926         ;;
10927         motorola)
10928           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10930         ;;
10931       esac
10932       runpath_var='LD_RUN_PATH'
10933       hardcode_shlibpath_var=no
10934       ;;
10935
10936     sysv4.3*)
10937       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938       hardcode_shlibpath_var=no
10939       export_dynamic_flag_spec='-Bexport'
10940       ;;
10941
10942     sysv4*MP*)
10943       if test -d /usr/nec; then
10944         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10945         hardcode_shlibpath_var=no
10946         runpath_var=LD_RUN_PATH
10947         hardcode_runpath_var=yes
10948         ld_shlibs=yes
10949       fi
10950       ;;
10951
10952     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10953       no_undefined_flag='$wl-z,text'
10954       archive_cmds_need_lc=no
10955       hardcode_shlibpath_var=no
10956       runpath_var='LD_RUN_PATH'
10957
10958       if test yes = "$GCC"; then
10959         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961       else
10962         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964       fi
10965       ;;
10966
10967     sysv5* | sco3.2v5* | sco5v6*)
10968       # Note: We CANNOT use -z defs as we might desire, because we do not
10969       # link with -lc, and that would cause any symbols used from libc to
10970       # always be unresolved, which means just about no library would
10971       # ever link correctly.  If we're not using GNU ld we use -z text
10972       # though, which does catch some bad symbols but isn't as heavy-handed
10973       # as -z defs.
10974       no_undefined_flag='$wl-z,text'
10975       allow_undefined_flag='$wl-z,nodefs'
10976       archive_cmds_need_lc=no
10977       hardcode_shlibpath_var=no
10978       hardcode_libdir_flag_spec='$wl-R,$libdir'
10979       hardcode_libdir_separator=':'
10980       link_all_deplibs=yes
10981       export_dynamic_flag_spec='$wl-Bexport'
10982       runpath_var='LD_RUN_PATH'
10983
10984       if test yes = "$GCC"; then
10985         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987       else
10988         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990       fi
10991       ;;
10992
10993     uts4*)
10994       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995       hardcode_libdir_flag_spec='-L$libdir'
10996       hardcode_shlibpath_var=no
10997       ;;
10998
10999     *)
11000       ld_shlibs=no
11001       ;;
11002     esac
11003
11004     if test sni = "$host_vendor"; then
11005       case $host in
11006       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11007         export_dynamic_flag_spec='$wl-Blargedynsym'
11008         ;;
11009       esac
11010     fi
11011   fi
11012
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11014 $as_echo "$ld_shlibs" >&6; }
11015 test no = "$ld_shlibs" && can_build_shared=no
11016
11017 with_gnu_ld=$with_gnu_ld
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033 #
11034 # Do we need to explicitly link libc?
11035 #
11036 case "x$archive_cmds_need_lc" in
11037 x|xyes)
11038   # Assume -lc should be added
11039   archive_cmds_need_lc=yes
11040
11041   if test yes,yes = "$GCC,$enable_shared"; then
11042     case $archive_cmds in
11043     *'~'*)
11044       # FIXME: we may have to deal with multi-command sequences.
11045       ;;
11046     '$CC '*)
11047       # Test whether the compiler implicitly links with -lc since on some
11048       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11049       # to ld, don't add -lc before -lgcc.
11050       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11051 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11052 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   $RM conftest*
11056         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11057
11058         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11059   (eval $ac_compile) 2>&5
11060   ac_status=$?
11061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11062   test $ac_status = 0; } 2>conftest.err; then
11063           soname=conftest
11064           lib=conftest
11065           libobjs=conftest.$ac_objext
11066           deplibs=
11067           wl=$lt_prog_compiler_wl
11068           pic_flag=$lt_prog_compiler_pic
11069           compiler_flags=-v
11070           linker_flags=-v
11071           verstring=
11072           output_objdir=.
11073           libname=conftest
11074           lt_save_allow_undefined_flag=$allow_undefined_flag
11075           allow_undefined_flag=
11076           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11077   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11078   ac_status=$?
11079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11080   test $ac_status = 0; }
11081           then
11082             lt_cv_archive_cmds_need_lc=no
11083           else
11084             lt_cv_archive_cmds_need_lc=yes
11085           fi
11086           allow_undefined_flag=$lt_save_allow_undefined_flag
11087         else
11088           cat conftest.err 1>&5
11089         fi
11090         $RM conftest*
11091
11092 fi
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11094 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11095       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11096       ;;
11097     esac
11098   fi
11099   ;;
11100 esac
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11254 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11255
11256 if test yes = "$GCC"; then
11257   case $host_os in
11258     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11259     *) lt_awk_arg='/^libraries:/' ;;
11260   esac
11261   case $host_os in
11262     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11263     *) lt_sed_strip_eq='s|=/|/|g' ;;
11264   esac
11265   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11266   case $lt_search_path_spec in
11267   *\;*)
11268     # if the path contains ";" then we assume it to be the separator
11269     # otherwise default to the standard path separator (i.e. ":") - it is
11270     # assumed that no part of a normal pathname contains ";" but that should
11271     # okay in the real world where ";" in dirpaths is itself problematic.
11272     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11273     ;;
11274   *)
11275     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11276     ;;
11277   esac
11278   # Ok, now we have the path, separated by spaces, we can step through it
11279   # and add multilib dir if necessary...
11280   lt_tmp_lt_search_path_spec=
11281   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11282   # ...but if some path component already ends with the multilib dir we assume
11283   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11284   case "$lt_multi_os_dir; $lt_search_path_spec " in
11285   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11286     lt_multi_os_dir=
11287     ;;
11288   esac
11289   for lt_sys_path in $lt_search_path_spec; do
11290     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11291       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11292     elif test -n "$lt_multi_os_dir"; then
11293       test -d "$lt_sys_path" && \
11294         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11295     fi
11296   done
11297   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11298 BEGIN {RS = " "; FS = "/|\n";} {
11299   lt_foo = "";
11300   lt_count = 0;
11301   for (lt_i = NF; lt_i > 0; lt_i--) {
11302     if ($lt_i != "" && $lt_i != ".") {
11303       if ($lt_i == "..") {
11304         lt_count++;
11305       } else {
11306         if (lt_count == 0) {
11307           lt_foo = "/" $lt_i lt_foo;
11308         } else {
11309           lt_count--;
11310         }
11311       }
11312     }
11313   }
11314   if (lt_foo != "") { lt_freq[lt_foo]++; }
11315   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11316 }'`
11317   # AWK program above erroneously prepends '/' to C:/dos/paths
11318   # for these hosts.
11319   case $host_os in
11320     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11321       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11322   esac
11323   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11324 else
11325   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11326 fi
11327 library_names_spec=
11328 libname_spec='lib$name'
11329 soname_spec=
11330 shrext_cmds=.so
11331 postinstall_cmds=
11332 postuninstall_cmds=
11333 finish_cmds=
11334 finish_eval=
11335 shlibpath_var=
11336 shlibpath_overrides_runpath=unknown
11337 version_type=none
11338 dynamic_linker="$host_os ld.so"
11339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11340 need_lib_prefix=unknown
11341 hardcode_into_libs=no
11342
11343 # when you set need_version to no, make sure it does not cause -set_version
11344 # flags to be left without arguments
11345 need_version=unknown
11346
11347
11348
11349 case $host_os in
11350 aix3*)
11351   version_type=linux # correct to gnu/linux during the next big refactor
11352   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11353   shlibpath_var=LIBPATH
11354
11355   # AIX 3 has no versioning support, so we append a major version to the name.
11356   soname_spec='$libname$release$shared_ext$major'
11357   ;;
11358
11359 aix[4-9]*)
11360   version_type=linux # correct to gnu/linux during the next big refactor
11361   need_lib_prefix=no
11362   need_version=no
11363   hardcode_into_libs=yes
11364   if test ia64 = "$host_cpu"; then
11365     # AIX 5 supports IA64
11366     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11367     shlibpath_var=LD_LIBRARY_PATH
11368   else
11369     # With GCC up to 2.95.x, collect2 would create an import file
11370     # for dependence libraries.  The import file would start with
11371     # the line '#! .'.  This would cause the generated library to
11372     # depend on '.', always an invalid library.  This was fixed in
11373     # development snapshots of GCC prior to 3.0.
11374     case $host_os in
11375       aix4 | aix4.[01] | aix4.[01].*)
11376       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11377            echo ' yes '
11378            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11379         :
11380       else
11381         can_build_shared=no
11382       fi
11383       ;;
11384     esac
11385     # Using Import Files as archive members, it is possible to support
11386     # filename-based versioning of shared library archives on AIX. While
11387     # this would work for both with and without runtime linking, it will
11388     # prevent static linking of such archives. So we do filename-based
11389     # shared library versioning with .so extension only, which is used
11390     # when both runtime linking and shared linking is enabled.
11391     # Unfortunately, runtime linking may impact performance, so we do
11392     # not want this to be the default eventually. Also, we use the
11393     # versioned .so libs for executables only if there is the -brtl
11394     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11395     # To allow for filename-based versioning support, we need to create
11396     # libNAME.so.V as an archive file, containing:
11397     # *) an Import File, referring to the versioned filename of the
11398     #    archive as well as the shared archive member, telling the
11399     #    bitwidth (32 or 64) of that shared object, and providing the
11400     #    list of exported symbols of that shared object, eventually
11401     #    decorated with the 'weak' keyword
11402     # *) the shared object with the F_LOADONLY flag set, to really avoid
11403     #    it being seen by the linker.
11404     # At run time we better use the real file rather than another symlink,
11405     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11406
11407     case $with_aix_soname,$aix_use_runtimelinking in
11408     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11409     # soname into executable. Probably we can add versioning support to
11410     # collect2, so additional links can be useful in future.
11411     aix,yes) # traditional libtool
11412       dynamic_linker='AIX unversionable lib.so'
11413       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11414       # instead of lib<name>.a to let people know that these are not
11415       # typical AIX shared libraries.
11416       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11417       ;;
11418     aix,no) # traditional AIX only
11419       dynamic_linker='AIX lib.a(lib.so.V)'
11420       # We preserve .a as extension for shared libraries through AIX4.2
11421       # and later when we are not doing run time linking.
11422       library_names_spec='$libname$release.a $libname.a'
11423       soname_spec='$libname$release$shared_ext$major'
11424       ;;
11425     svr4,*) # full svr4 only
11426       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11427       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11428       # We do not specify a path in Import Files, so LIBPATH fires.
11429       shlibpath_overrides_runpath=yes
11430       ;;
11431     *,yes) # both, prefer svr4
11432       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11433       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11434       # unpreferred sharedlib libNAME.a needs extra handling
11435       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11436       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11437       # We do not specify a path in Import Files, so LIBPATH fires.
11438       shlibpath_overrides_runpath=yes
11439       ;;
11440     *,no) # both, prefer aix
11441       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11442       library_names_spec='$libname$release.a $libname.a'
11443       soname_spec='$libname$release$shared_ext$major'
11444       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11445       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11446       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11447       ;;
11448     esac
11449     shlibpath_var=LIBPATH
11450   fi
11451   ;;
11452
11453 amigaos*)
11454   case $host_cpu in
11455   powerpc)
11456     # Since July 2007 AmigaOS4 officially supports .so libraries.
11457     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11458     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11459     ;;
11460   m68k)
11461     library_names_spec='$libname.ixlibrary $libname.a'
11462     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11463     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11464     ;;
11465   esac
11466   ;;
11467
11468 beos*)
11469   library_names_spec='$libname$shared_ext'
11470   dynamic_linker="$host_os ld.so"
11471   shlibpath_var=LIBRARY_PATH
11472   ;;
11473
11474 bsdi[45]*)
11475   version_type=linux # correct to gnu/linux during the next big refactor
11476   need_version=no
11477   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11478   soname_spec='$libname$release$shared_ext$major'
11479   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11480   shlibpath_var=LD_LIBRARY_PATH
11481   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11482   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11483   # the default ld.so.conf also contains /usr/contrib/lib and
11484   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11485   # libtool to hard-code these into programs
11486   ;;
11487
11488 cygwin* | mingw* | pw32* | cegcc*)
11489   version_type=windows
11490   shrext_cmds=.dll
11491   need_version=no
11492   need_lib_prefix=no
11493
11494   case $GCC,$cc_basename in
11495   yes,*)
11496     # gcc
11497     library_names_spec='$libname.dll.a'
11498     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11499     postinstall_cmds='base_file=`basename \$file`~
11500       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11501       dldir=$destdir/`dirname \$dlpath`~
11502       test -d \$dldir || mkdir -p \$dldir~
11503       $install_prog $dir/$dlname \$dldir/$dlname~
11504       chmod a+x \$dldir/$dlname~
11505       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11506         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11507       fi'
11508     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11509       dlpath=$dir/\$dldll~
11510        $RM \$dlpath'
11511     shlibpath_overrides_runpath=yes
11512
11513     case $host_os in
11514     cygwin*)
11515       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11516       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11517
11518       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11519       ;;
11520     mingw* | cegcc*)
11521       # MinGW DLLs use traditional 'lib' prefix
11522       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11523       ;;
11524     pw32*)
11525       # pw32 DLLs use 'pw' prefix rather than 'lib'
11526       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11527       ;;
11528     esac
11529     dynamic_linker='Win32 ld.exe'
11530     ;;
11531
11532   *,cl*)
11533     # Native MSVC
11534     libname_spec='$name'
11535     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11536     library_names_spec='$libname.dll.lib'
11537
11538     case $build_os in
11539     mingw*)
11540       sys_lib_search_path_spec=
11541       lt_save_ifs=$IFS
11542       IFS=';'
11543       for lt_path in $LIB
11544       do
11545         IFS=$lt_save_ifs
11546         # Let DOS variable expansion print the short 8.3 style file name.
11547         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11548         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11549       done
11550       IFS=$lt_save_ifs
11551       # Convert to MSYS style.
11552       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11553       ;;
11554     cygwin*)
11555       # Convert to unix form, then to dos form, then back to unix form
11556       # but this time dos style (no spaces!) so that the unix form looks
11557       # like /cygdrive/c/PROGRA~1:/cygdr...
11558       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11559       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11560       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11561       ;;
11562     *)
11563       sys_lib_search_path_spec=$LIB
11564       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11565         # It is most probably a Windows format PATH.
11566         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11567       else
11568         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11569       fi
11570       # FIXME: find the short name or the path components, as spaces are
11571       # common. (e.g. "Program Files" -> "PROGRA~1")
11572       ;;
11573     esac
11574
11575     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11576     postinstall_cmds='base_file=`basename \$file`~
11577       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11578       dldir=$destdir/`dirname \$dlpath`~
11579       test -d \$dldir || mkdir -p \$dldir~
11580       $install_prog $dir/$dlname \$dldir/$dlname'
11581     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11582       dlpath=$dir/\$dldll~
11583        $RM \$dlpath'
11584     shlibpath_overrides_runpath=yes
11585     dynamic_linker='Win32 link.exe'
11586     ;;
11587
11588   *)
11589     # Assume MSVC wrapper
11590     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11591     dynamic_linker='Win32 ld.exe'
11592     ;;
11593   esac
11594   # FIXME: first we should search . and the directory the executable is in
11595   shlibpath_var=PATH
11596   ;;
11597
11598 darwin* | rhapsody*)
11599   dynamic_linker="$host_os dyld"
11600   version_type=darwin
11601   need_lib_prefix=no
11602   need_version=no
11603   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11604   soname_spec='$libname$release$major$shared_ext'
11605   shlibpath_overrides_runpath=yes
11606   shlibpath_var=DYLD_LIBRARY_PATH
11607   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11608
11609   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11610   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11611   ;;
11612
11613 dgux*)
11614   version_type=linux # correct to gnu/linux during the next big refactor
11615   need_lib_prefix=no
11616   need_version=no
11617   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618   soname_spec='$libname$release$shared_ext$major'
11619   shlibpath_var=LD_LIBRARY_PATH
11620   ;;
11621
11622 freebsd* | dragonfly*)
11623   # DragonFly does not have aout.  When/if they implement a new
11624   # versioning mechanism, adjust this.
11625   if test -x /usr/bin/objformat; then
11626     objformat=`/usr/bin/objformat`
11627   else
11628     case $host_os in
11629     freebsd[23].*) objformat=aout ;;
11630     *) objformat=elf ;;
11631     esac
11632   fi
11633   version_type=freebsd-$objformat
11634   case $version_type in
11635     freebsd-elf*)
11636       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637       soname_spec='$libname$release$shared_ext$major'
11638       need_version=no
11639       need_lib_prefix=no
11640       ;;
11641     freebsd-*)
11642       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11643       need_version=yes
11644       ;;
11645   esac
11646   shlibpath_var=LD_LIBRARY_PATH
11647   case $host_os in
11648   freebsd2.*)
11649     shlibpath_overrides_runpath=yes
11650     ;;
11651   freebsd3.[01]* | freebsdelf3.[01]*)
11652     shlibpath_overrides_runpath=yes
11653     hardcode_into_libs=yes
11654     ;;
11655   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11656   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11657     shlibpath_overrides_runpath=no
11658     hardcode_into_libs=yes
11659     ;;
11660   *) # from 4.6 on, and DragonFly
11661     shlibpath_overrides_runpath=yes
11662     hardcode_into_libs=yes
11663     ;;
11664   esac
11665   ;;
11666
11667 haiku*)
11668   version_type=linux # correct to gnu/linux during the next big refactor
11669   need_lib_prefix=no
11670   need_version=no
11671   dynamic_linker="$host_os runtime_loader"
11672   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11673   soname_spec='$libname$release$shared_ext$major'
11674   shlibpath_var=LIBRARY_PATH
11675   shlibpath_overrides_runpath=no
11676   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11677   hardcode_into_libs=yes
11678   ;;
11679
11680 hpux9* | hpux10* | hpux11*)
11681   # Give a soname corresponding to the major version so that dld.sl refuses to
11682   # link against other versions.
11683   version_type=sunos
11684   need_lib_prefix=no
11685   need_version=no
11686   case $host_cpu in
11687   ia64*)
11688     shrext_cmds='.so'
11689     hardcode_into_libs=yes
11690     dynamic_linker="$host_os dld.so"
11691     shlibpath_var=LD_LIBRARY_PATH
11692     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11693     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11694     soname_spec='$libname$release$shared_ext$major'
11695     if test 32 = "$HPUX_IA64_MODE"; then
11696       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11697       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11698     else
11699       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11700       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11701     fi
11702     ;;
11703   hppa*64*)
11704     shrext_cmds='.sl'
11705     hardcode_into_libs=yes
11706     dynamic_linker="$host_os dld.sl"
11707     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11708     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11709     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710     soname_spec='$libname$release$shared_ext$major'
11711     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11712     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11713     ;;
11714   *)
11715     shrext_cmds='.sl'
11716     dynamic_linker="$host_os dld.sl"
11717     shlibpath_var=SHLIB_PATH
11718     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11719     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720     soname_spec='$libname$release$shared_ext$major'
11721     ;;
11722   esac
11723   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11724   postinstall_cmds='chmod 555 $lib'
11725   # or fails outright, so override atomically:
11726   install_override_mode=555
11727   ;;
11728
11729 interix[3-9]*)
11730   version_type=linux # correct to gnu/linux during the next big refactor
11731   need_lib_prefix=no
11732   need_version=no
11733   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734   soname_spec='$libname$release$shared_ext$major'
11735   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11736   shlibpath_var=LD_LIBRARY_PATH
11737   shlibpath_overrides_runpath=no
11738   hardcode_into_libs=yes
11739   ;;
11740
11741 irix5* | irix6* | nonstopux*)
11742   case $host_os in
11743     nonstopux*) version_type=nonstopux ;;
11744     *)
11745         if test yes = "$lt_cv_prog_gnu_ld"; then
11746                 version_type=linux # correct to gnu/linux during the next big refactor
11747         else
11748                 version_type=irix
11749         fi ;;
11750   esac
11751   need_lib_prefix=no
11752   need_version=no
11753   soname_spec='$libname$release$shared_ext$major'
11754   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11755   case $host_os in
11756   irix5* | nonstopux*)
11757     libsuff= shlibsuff=
11758     ;;
11759   *)
11760     case $LD in # libtool.m4 will add one of these switches to LD
11761     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11762       libsuff= shlibsuff= libmagic=32-bit;;
11763     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11764       libsuff=32 shlibsuff=N32 libmagic=N32;;
11765     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11766       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11767     *) libsuff= shlibsuff= libmagic=never-match;;
11768     esac
11769     ;;
11770   esac
11771   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11772   shlibpath_overrides_runpath=no
11773   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11774   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11775   hardcode_into_libs=yes
11776   ;;
11777
11778 # No shared lib support for Linux oldld, aout, or coff.
11779 linux*oldld* | linux*aout* | linux*coff*)
11780   dynamic_linker=no
11781   ;;
11782
11783 linux*android*)
11784   version_type=none # Android doesn't support versioned libraries.
11785   need_lib_prefix=no
11786   need_version=no
11787   library_names_spec='$libname$release$shared_ext'
11788   soname_spec='$libname$release$shared_ext'
11789   finish_cmds=
11790   shlibpath_var=LD_LIBRARY_PATH
11791   shlibpath_overrides_runpath=yes
11792
11793   # This implies no fast_install, which is unacceptable.
11794   # Some rework will be needed to allow for fast_install
11795   # before this can be enabled.
11796   hardcode_into_libs=yes
11797
11798   dynamic_linker='Android linker'
11799   # Don't embed -rpath directories since the linker doesn't support them.
11800   hardcode_libdir_flag_spec='-L$libdir'
11801   ;;
11802
11803 # This must be glibc/ELF.
11804 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11805   version_type=linux # correct to gnu/linux during the next big refactor
11806   need_lib_prefix=no
11807   need_version=no
11808   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11809   soname_spec='$libname$release$shared_ext$major'
11810   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11811   shlibpath_var=LD_LIBRARY_PATH
11812   shlibpath_overrides_runpath=no
11813
11814   # Some binutils ld are patched to set DT_RUNPATH
11815   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11816   $as_echo_n "(cached) " >&6
11817 else
11818   lt_cv_shlibpath_overrides_runpath=no
11819     save_LDFLAGS=$LDFLAGS
11820     save_libdir=$libdir
11821     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11822          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11823     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h.  */
11825
11826 int
11827 main ()
11828 {
11829
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11836   lt_cv_shlibpath_overrides_runpath=yes
11837 fi
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext \
11840     conftest$ac_exeext conftest.$ac_ext
11841     LDFLAGS=$save_LDFLAGS
11842     libdir=$save_libdir
11843
11844 fi
11845
11846   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11847
11848   # This implies no fast_install, which is unacceptable.
11849   # Some rework will be needed to allow for fast_install
11850   # before this can be enabled.
11851   hardcode_into_libs=yes
11852
11853   # Add ABI-specific directories to the system library path.
11854   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11855
11856   # Ideally, we could use ldconfig to report *all* directores which are
11857   # searched for libraries, however this is still not possible.  Aside from not
11858   # being certain /sbin/ldconfig is available, command
11859   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11860   # even though it is searched at run-time.  Try to do the best guess by
11861   # appending ld.so.conf contents (and includes) to the search path.
11862   if test -f /etc/ld.so.conf; then
11863     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' ' '`
11864     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11865   fi
11866
11867   # We used to test for /lib/ld.so.1 and disable shared libraries on
11868   # powerpc, because MkLinux only supported shared libraries with the
11869   # GNU dynamic linker.  Since this was broken with cross compilers,
11870   # most powerpc-linux boxes support dynamic linking these days and
11871   # people can always --disable-shared, the test was removed, and we
11872   # assume the GNU/Linux dynamic linker is in use.
11873   dynamic_linker='GNU/Linux ld.so'
11874   ;;
11875
11876 netbsd*)
11877   version_type=sunos
11878   need_lib_prefix=no
11879   need_version=no
11880   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11881     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11882     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11883     dynamic_linker='NetBSD (a.out) ld.so'
11884   else
11885     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886     soname_spec='$libname$release$shared_ext$major'
11887     dynamic_linker='NetBSD ld.elf_so'
11888   fi
11889   shlibpath_var=LD_LIBRARY_PATH
11890   shlibpath_overrides_runpath=yes
11891   hardcode_into_libs=yes
11892   ;;
11893
11894 newsos6)
11895   version_type=linux # correct to gnu/linux during the next big refactor
11896   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897   shlibpath_var=LD_LIBRARY_PATH
11898   shlibpath_overrides_runpath=yes
11899   ;;
11900
11901 *nto* | *qnx*)
11902   version_type=qnx
11903   need_lib_prefix=no
11904   need_version=no
11905   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906   soname_spec='$libname$release$shared_ext$major'
11907   shlibpath_var=LD_LIBRARY_PATH
11908   shlibpath_overrides_runpath=no
11909   hardcode_into_libs=yes
11910   dynamic_linker='ldqnx.so'
11911   ;;
11912
11913 openbsd* | bitrig*)
11914   version_type=sunos
11915   sys_lib_dlsearch_path_spec=/usr/lib
11916   need_lib_prefix=no
11917   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11918     need_version=no
11919   else
11920     need_version=yes
11921   fi
11922   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11923   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11924   shlibpath_var=LD_LIBRARY_PATH
11925   shlibpath_overrides_runpath=yes
11926   ;;
11927
11928 os2*)
11929   libname_spec='$name'
11930   version_type=windows
11931   shrext_cmds=.dll
11932   need_version=no
11933   need_lib_prefix=no
11934   # OS/2 can only load a DLL with a base name of 8 characters or less.
11935   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11936     v=$($ECHO $release$versuffix | tr -d .-);
11937     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11938     $ECHO $n$v`$shared_ext'
11939   library_names_spec='${libname}_dll.$libext'
11940   dynamic_linker='OS/2 ld.exe'
11941   shlibpath_var=BEGINLIBPATH
11942   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11943   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11944   postinstall_cmds='base_file=`basename \$file`~
11945     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11946     dldir=$destdir/`dirname \$dlpath`~
11947     test -d \$dldir || mkdir -p \$dldir~
11948     $install_prog $dir/$dlname \$dldir/$dlname~
11949     chmod a+x \$dldir/$dlname~
11950     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11951       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11952     fi'
11953   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11954     dlpath=$dir/\$dldll~
11955     $RM \$dlpath'
11956   ;;
11957
11958 osf3* | osf4* | osf5*)
11959   version_type=osf
11960   need_lib_prefix=no
11961   need_version=no
11962   soname_spec='$libname$release$shared_ext$major'
11963   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11966   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11967   ;;
11968
11969 rdos*)
11970   dynamic_linker=no
11971   ;;
11972
11973 solaris*)
11974   version_type=linux # correct to gnu/linux during the next big refactor
11975   need_lib_prefix=no
11976   need_version=no
11977   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978   soname_spec='$libname$release$shared_ext$major'
11979   shlibpath_var=LD_LIBRARY_PATH
11980   shlibpath_overrides_runpath=yes
11981   hardcode_into_libs=yes
11982   # ldd complains unless libraries are executable
11983   postinstall_cmds='chmod +x $lib'
11984   ;;
11985
11986 sunos4*)
11987   version_type=sunos
11988   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11989   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11990   shlibpath_var=LD_LIBRARY_PATH
11991   shlibpath_overrides_runpath=yes
11992   if test yes = "$with_gnu_ld"; then
11993     need_lib_prefix=no
11994   fi
11995   need_version=yes
11996   ;;
11997
11998 sysv4 | sysv4.3*)
11999   version_type=linux # correct to gnu/linux during the next big refactor
12000   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12001   soname_spec='$libname$release$shared_ext$major'
12002   shlibpath_var=LD_LIBRARY_PATH
12003   case $host_vendor in
12004     sni)
12005       shlibpath_overrides_runpath=no
12006       need_lib_prefix=no
12007       runpath_var=LD_RUN_PATH
12008       ;;
12009     siemens)
12010       need_lib_prefix=no
12011       ;;
12012     motorola)
12013       need_lib_prefix=no
12014       need_version=no
12015       shlibpath_overrides_runpath=no
12016       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12017       ;;
12018   esac
12019   ;;
12020
12021 sysv4*MP*)
12022   if test -d /usr/nec; then
12023     version_type=linux # correct to gnu/linux during the next big refactor
12024     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12025     soname_spec='$libname$shared_ext.$major'
12026     shlibpath_var=LD_LIBRARY_PATH
12027   fi
12028   ;;
12029
12030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12031   version_type=sco
12032   need_lib_prefix=no
12033   need_version=no
12034   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12035   soname_spec='$libname$release$shared_ext$major'
12036   shlibpath_var=LD_LIBRARY_PATH
12037   shlibpath_overrides_runpath=yes
12038   hardcode_into_libs=yes
12039   if test yes = "$with_gnu_ld"; then
12040     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12041   else
12042     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12043     case $host_os in
12044       sco3.2v5*)
12045         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12046         ;;
12047     esac
12048   fi
12049   sys_lib_dlsearch_path_spec='/usr/lib'
12050   ;;
12051
12052 tpf*)
12053   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12054   version_type=linux # correct to gnu/linux during the next big refactor
12055   need_lib_prefix=no
12056   need_version=no
12057   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12058   shlibpath_var=LD_LIBRARY_PATH
12059   shlibpath_overrides_runpath=no
12060   hardcode_into_libs=yes
12061   ;;
12062
12063 uts4*)
12064   version_type=linux # correct to gnu/linux during the next big refactor
12065   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12066   soname_spec='$libname$release$shared_ext$major'
12067   shlibpath_var=LD_LIBRARY_PATH
12068   ;;
12069
12070 *)
12071   dynamic_linker=no
12072   ;;
12073 esac
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12075 $as_echo "$dynamic_linker" >&6; }
12076 test no = "$dynamic_linker" && can_build_shared=no
12077
12078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12079 if test yes = "$GCC"; then
12080   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12081 fi
12082
12083 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12084   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12085 fi
12086
12087 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12088   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12089 fi
12090
12091 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12092 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12093
12094 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12095 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12096
12097 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12098 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12197 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12198 hardcode_action=
12199 if test -n "$hardcode_libdir_flag_spec" ||
12200    test -n "$runpath_var" ||
12201    test yes = "$hardcode_automatic"; then
12202
12203   # We can hardcode non-existent directories.
12204   if test no != "$hardcode_direct" &&
12205      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12206      # have to relink, otherwise we might link with an installed library
12207      # when we should be linking with a yet-to-be-installed one
12208      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12209      test no != "$hardcode_minus_L"; then
12210     # Linking always hardcodes the temporary library directory.
12211     hardcode_action=relink
12212   else
12213     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12214     hardcode_action=immediate
12215   fi
12216 else
12217   # We cannot hardcode anything, or else we can only hardcode existing
12218   # directories.
12219   hardcode_action=unsupported
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12222 $as_echo "$hardcode_action" >&6; }
12223
12224 if test relink = "$hardcode_action" ||
12225    test yes = "$inherit_rpath"; then
12226   # Fast installation is not supported
12227   enable_fast_install=no
12228 elif test yes = "$shlibpath_overrides_runpath" ||
12229      test no = "$enable_shared"; then
12230   # Fast installation is not necessary
12231   enable_fast_install=needless
12232 fi
12233
12234
12235
12236
12237
12238
12239   if test yes != "$enable_dlopen"; then
12240   enable_dlopen=unknown
12241   enable_dlopen_self=unknown
12242   enable_dlopen_self_static=unknown
12243 else
12244   lt_cv_dlopen=no
12245   lt_cv_dlopen_libs=
12246
12247   case $host_os in
12248   beos*)
12249     lt_cv_dlopen=load_add_on
12250     lt_cv_dlopen_libs=
12251     lt_cv_dlopen_self=yes
12252     ;;
12253
12254   mingw* | pw32* | cegcc*)
12255     lt_cv_dlopen=LoadLibrary
12256     lt_cv_dlopen_libs=
12257     ;;
12258
12259   cygwin*)
12260     lt_cv_dlopen=dlopen
12261     lt_cv_dlopen_libs=
12262     ;;
12263
12264   darwin*)
12265     # if libdl is installed we need to link against it
12266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12267 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12268 if ${ac_cv_lib_dl_dlopen+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   ac_check_lib_save_LIBS=$LIBS
12272 LIBS="-ldl  $LIBS"
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h.  */
12275
12276 /* Override any GCC internal prototype to avoid an error.
12277    Use char because int might match the return type of a GCC
12278    builtin and then its argument prototype would still apply.  */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char dlopen ();
12283 int
12284 main ()
12285 {
12286 return dlopen ();
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 if ac_fn_c_try_link "$LINENO"; then :
12292   ac_cv_lib_dl_dlopen=yes
12293 else
12294   ac_cv_lib_dl_dlopen=no
12295 fi
12296 rm -f core conftest.err conftest.$ac_objext \
12297     conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12299 fi
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12301 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12302 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12303   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12304 else
12305
12306     lt_cv_dlopen=dyld
12307     lt_cv_dlopen_libs=
12308     lt_cv_dlopen_self=yes
12309
12310 fi
12311
12312     ;;
12313
12314   tpf*)
12315     # Don't try to run any link tests for TPF.  We know it's impossible
12316     # because TPF is a cross-compiler, and we know how we open DSOs.
12317     lt_cv_dlopen=dlopen
12318     lt_cv_dlopen_libs=
12319     lt_cv_dlopen_self=no
12320     ;;
12321
12322   *)
12323     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12324 if test "x$ac_cv_func_shl_load" = xyes; then :
12325   lt_cv_dlopen=shl_load
12326 else
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12328 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12329 if ${ac_cv_lib_dld_shl_load+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-ldld  $LIBS"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h.  */
12336
12337 /* Override any GCC internal prototype to avoid an error.
12338    Use char because int might match the return type of a GCC
12339    builtin and then its argument prototype would still apply.  */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 char shl_load ();
12344 int
12345 main ()
12346 {
12347 return shl_load ();
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353   ac_cv_lib_dld_shl_load=yes
12354 else
12355   ac_cv_lib_dld_shl_load=no
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358     conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12362 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12363 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12364   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12365 else
12366   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12367 if test "x$ac_cv_func_dlopen" = xyes; then :
12368   lt_cv_dlopen=dlopen
12369 else
12370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12371 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12372 if ${ac_cv_lib_dl_dlopen+:} false; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375   ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-ldl  $LIBS"
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h.  */
12379
12380 /* Override any GCC internal prototype to avoid an error.
12381    Use char because int might match the return type of a GCC
12382    builtin and then its argument prototype would still apply.  */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 char dlopen ();
12387 int
12388 main ()
12389 {
12390 return dlopen ();
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_link "$LINENO"; then :
12396   ac_cv_lib_dl_dlopen=yes
12397 else
12398   ac_cv_lib_dl_dlopen=no
12399 fi
12400 rm -f core conftest.err conftest.$ac_objext \
12401     conftest$ac_exeext conftest.$ac_ext
12402 LIBS=$ac_check_lib_save_LIBS
12403 fi
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12405 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12406 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12407   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12408 else
12409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12410 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12411 if ${ac_cv_lib_svld_dlopen+:} false; then :
12412   $as_echo_n "(cached) " >&6
12413 else
12414   ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-lsvld  $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h.  */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420    Use char because int might match the return type of a GCC
12421    builtin and then its argument prototype would still apply.  */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char dlopen ();
12426 int
12427 main ()
12428 {
12429 return dlopen ();
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"; then :
12435   ac_cv_lib_svld_dlopen=yes
12436 else
12437   ac_cv_lib_svld_dlopen=no
12438 fi
12439 rm -f core conftest.err conftest.$ac_objext \
12440     conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12444 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12445 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12446   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12447 else
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12449 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12450 if ${ac_cv_lib_dld_dld_link+:} false; then :
12451   $as_echo_n "(cached) " >&6
12452 else
12453   ac_check_lib_save_LIBS=$LIBS
12454 LIBS="-ldld  $LIBS"
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h.  */
12457
12458 /* Override any GCC internal prototype to avoid an error.
12459    Use char because int might match the return type of a GCC
12460    builtin and then its argument prototype would still apply.  */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char dld_link ();
12465 int
12466 main ()
12467 {
12468 return dld_link ();
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 if ac_fn_c_try_link "$LINENO"; then :
12474   ac_cv_lib_dld_dld_link=yes
12475 else
12476   ac_cv_lib_dld_dld_link=no
12477 fi
12478 rm -f core conftest.err conftest.$ac_objext \
12479     conftest$ac_exeext conftest.$ac_ext
12480 LIBS=$ac_check_lib_save_LIBS
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12483 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12484 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12485   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12486 fi
12487
12488
12489 fi
12490
12491
12492 fi
12493
12494
12495 fi
12496
12497
12498 fi
12499
12500
12501 fi
12502
12503     ;;
12504   esac
12505
12506   if test no = "$lt_cv_dlopen"; then
12507     enable_dlopen=no
12508   else
12509     enable_dlopen=yes
12510   fi
12511
12512   case $lt_cv_dlopen in
12513   dlopen)
12514     save_CPPFLAGS=$CPPFLAGS
12515     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12516
12517     save_LDFLAGS=$LDFLAGS
12518     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12519
12520     save_LIBS=$LIBS
12521     LIBS="$lt_cv_dlopen_libs $LIBS"
12522
12523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12524 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12525 if ${lt_cv_dlopen_self+:} false; then :
12526   $as_echo_n "(cached) " >&6
12527 else
12528           if test yes = "$cross_compiling"; then :
12529   lt_cv_dlopen_self=cross
12530 else
12531   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12532   lt_status=$lt_dlunknown
12533   cat > conftest.$ac_ext <<_LT_EOF
12534 #line $LINENO "configure"
12535 #include "confdefs.h"
12536
12537 #if HAVE_DLFCN_H
12538 #include <dlfcn.h>
12539 #endif
12540
12541 #include <stdio.h>
12542
12543 #ifdef RTLD_GLOBAL
12544 #  define LT_DLGLOBAL           RTLD_GLOBAL
12545 #else
12546 #  ifdef DL_GLOBAL
12547 #    define LT_DLGLOBAL         DL_GLOBAL
12548 #  else
12549 #    define LT_DLGLOBAL         0
12550 #  endif
12551 #endif
12552
12553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12554    find out it does not work in some platform. */
12555 #ifndef LT_DLLAZY_OR_NOW
12556 #  ifdef RTLD_LAZY
12557 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12558 #  else
12559 #    ifdef DL_LAZY
12560 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12561 #    else
12562 #      ifdef RTLD_NOW
12563 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12564 #      else
12565 #        ifdef DL_NOW
12566 #          define LT_DLLAZY_OR_NOW      DL_NOW
12567 #        else
12568 #          define LT_DLLAZY_OR_NOW      0
12569 #        endif
12570 #      endif
12571 #    endif
12572 #  endif
12573 #endif
12574
12575 /* When -fvisibility=hidden is used, assume the code has been annotated
12576    correspondingly for the symbols needed.  */
12577 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12578 int fnord () __attribute__((visibility("default")));
12579 #endif
12580
12581 int fnord () { return 42; }
12582 int main ()
12583 {
12584   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12585   int status = $lt_dlunknown;
12586
12587   if (self)
12588     {
12589       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12590       else
12591         {
12592           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12593           else puts (dlerror ());
12594         }
12595       /* dlclose (self); */
12596     }
12597   else
12598     puts (dlerror ());
12599
12600   return status;
12601 }
12602 _LT_EOF
12603   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12604   (eval $ac_link) 2>&5
12605   ac_status=$?
12606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12608     (./conftest; exit; ) >&5 2>/dev/null
12609     lt_status=$?
12610     case x$lt_status in
12611       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12612       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12613       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12614     esac
12615   else :
12616     # compilation failed
12617     lt_cv_dlopen_self=no
12618   fi
12619 fi
12620 rm -fr conftest*
12621
12622
12623 fi
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12625 $as_echo "$lt_cv_dlopen_self" >&6; }
12626
12627     if test yes = "$lt_cv_dlopen_self"; then
12628       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12629       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12630 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12631 if ${lt_cv_dlopen_self_static+:} false; then :
12632   $as_echo_n "(cached) " >&6
12633 else
12634           if test yes = "$cross_compiling"; then :
12635   lt_cv_dlopen_self_static=cross
12636 else
12637   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12638   lt_status=$lt_dlunknown
12639   cat > conftest.$ac_ext <<_LT_EOF
12640 #line $LINENO "configure"
12641 #include "confdefs.h"
12642
12643 #if HAVE_DLFCN_H
12644 #include <dlfcn.h>
12645 #endif
12646
12647 #include <stdio.h>
12648
12649 #ifdef RTLD_GLOBAL
12650 #  define LT_DLGLOBAL           RTLD_GLOBAL
12651 #else
12652 #  ifdef DL_GLOBAL
12653 #    define LT_DLGLOBAL         DL_GLOBAL
12654 #  else
12655 #    define LT_DLGLOBAL         0
12656 #  endif
12657 #endif
12658
12659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12660    find out it does not work in some platform. */
12661 #ifndef LT_DLLAZY_OR_NOW
12662 #  ifdef RTLD_LAZY
12663 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12664 #  else
12665 #    ifdef DL_LAZY
12666 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12667 #    else
12668 #      ifdef RTLD_NOW
12669 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12670 #      else
12671 #        ifdef DL_NOW
12672 #          define LT_DLLAZY_OR_NOW      DL_NOW
12673 #        else
12674 #          define LT_DLLAZY_OR_NOW      0
12675 #        endif
12676 #      endif
12677 #    endif
12678 #  endif
12679 #endif
12680
12681 /* When -fvisibility=hidden is used, assume the code has been annotated
12682    correspondingly for the symbols needed.  */
12683 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12684 int fnord () __attribute__((visibility("default")));
12685 #endif
12686
12687 int fnord () { return 42; }
12688 int main ()
12689 {
12690   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12691   int status = $lt_dlunknown;
12692
12693   if (self)
12694     {
12695       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12696       else
12697         {
12698           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12699           else puts (dlerror ());
12700         }
12701       /* dlclose (self); */
12702     }
12703   else
12704     puts (dlerror ());
12705
12706   return status;
12707 }
12708 _LT_EOF
12709   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12710   (eval $ac_link) 2>&5
12711   ac_status=$?
12712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12713   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12714     (./conftest; exit; ) >&5 2>/dev/null
12715     lt_status=$?
12716     case x$lt_status in
12717       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12718       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12719       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12720     esac
12721   else :
12722     # compilation failed
12723     lt_cv_dlopen_self_static=no
12724   fi
12725 fi
12726 rm -fr conftest*
12727
12728
12729 fi
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12731 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12732     fi
12733
12734     CPPFLAGS=$save_CPPFLAGS
12735     LDFLAGS=$save_LDFLAGS
12736     LIBS=$save_LIBS
12737     ;;
12738   esac
12739
12740   case $lt_cv_dlopen_self in
12741   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12742   *) enable_dlopen_self=unknown ;;
12743   esac
12744
12745   case $lt_cv_dlopen_self_static in
12746   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12747   *) enable_dlopen_self_static=unknown ;;
12748   esac
12749 fi
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767 striplib=
12768 old_striplib=
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12770 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12771 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12772   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12773   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12775 $as_echo "yes" >&6; }
12776 else
12777 # FIXME - insert some real tests, host_os isn't really good enough
12778   case $host_os in
12779   darwin*)
12780     if test -n "$STRIP"; then
12781       striplib="$STRIP -x"
12782       old_striplib="$STRIP -S"
12783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12784 $as_echo "yes" >&6; }
12785     else
12786       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788     fi
12789     ;;
12790   *)
12791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12793     ;;
12794   esac
12795 fi
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808   # Report what library types will actually be built
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12810 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12812 $as_echo "$can_build_shared" >&6; }
12813
12814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12815 $as_echo_n "checking whether to build shared libraries... " >&6; }
12816   test no = "$can_build_shared" && enable_shared=no
12817
12818   # On AIX, shared libraries and static libraries use the same namespace, and
12819   # are all built from PIC.
12820   case $host_os in
12821   aix3*)
12822     test yes = "$enable_shared" && enable_static=no
12823     if test -n "$RANLIB"; then
12824       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12825       postinstall_cmds='$RANLIB $lib'
12826     fi
12827     ;;
12828
12829   aix[4-9]*)
12830     if test ia64 != "$host_cpu"; then
12831       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12832       yes,aix,yes) ;;                   # shared object as lib.so file only
12833       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12834       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12835       esac
12836     fi
12837     ;;
12838   esac
12839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12840 $as_echo "$enable_shared" >&6; }
12841
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12843 $as_echo_n "checking whether to build static libraries... " >&6; }
12844   # Make sure either enable_shared or enable_static is yes.
12845   test yes = "$enable_shared" || enable_static=yes
12846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12847 $as_echo "$enable_static" >&6; }
12848
12849
12850
12851
12852 fi
12853 ac_ext=c
12854 ac_cpp='$CPP $CPPFLAGS'
12855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12858
12859 CC=$lt_save_CC
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875         ac_config_commands="$ac_config_commands libtool"
12876
12877
12878
12879
12880 # Only expand once:
12881
12882
12883
12884 : ${CONFIG_LT=./config.lt}
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
12886 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
12887 as_write_fail=0
12888 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
12889 #! $SHELL
12890 # Generated by $as_me.
12891 # Run this file to recreate a libtool stub with the current configuration.
12892 SHELL=\${CONFIG_SHELL-$SHELL}
12893 export SHELL
12894 _ASEOF
12895 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
12896 ## -------------------- ##
12897 ## M4sh Initialization. ##
12898 ## -------------------- ##
12899
12900 # Be more Bourne compatible
12901 DUALCASE=1; export DUALCASE # for MKS sh
12902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12903   emulate sh
12904   NULLCMD=:
12905   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12906   # is contrary to our usage.  Disable this feature.
12907   alias -g '${1+"$@"}'='"$@"'
12908   setopt NO_GLOB_SUBST
12909 else
12910   case `(set -o) 2>/dev/null` in #(
12911   *posix*) :
12912     set -o posix ;; #(
12913   *) :
12914      ;;
12915 esac
12916 fi
12917
12918
12919 as_nl='
12920 '
12921 export as_nl
12922 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12923 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12926 # Prefer a ksh shell builtin over an external printf program on Solaris,
12927 # but without wasting forks for bash or zsh.
12928 if test -z "$BASH_VERSION$ZSH_VERSION" \
12929     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12930   as_echo='print -r --'
12931   as_echo_n='print -rn --'
12932 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12933   as_echo='printf %s\n'
12934   as_echo_n='printf %s'
12935 else
12936   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12937     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12938     as_echo_n='/usr/ucb/echo -n'
12939   else
12940     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12941     as_echo_n_body='eval
12942       arg=$1;
12943       case $arg in #(
12944       *"$as_nl"*)
12945         expr "X$arg" : "X\\(.*\\)$as_nl";
12946         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12947       esac;
12948       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12949     '
12950     export as_echo_n_body
12951     as_echo_n='sh -c $as_echo_n_body as_echo'
12952   fi
12953   export as_echo_body
12954   as_echo='sh -c $as_echo_body as_echo'
12955 fi
12956
12957 # The user is always right.
12958 if test "${PATH_SEPARATOR+set}" != set; then
12959   PATH_SEPARATOR=:
12960   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12961     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12962       PATH_SEPARATOR=';'
12963   }
12964 fi
12965
12966
12967 # IFS
12968 # We need space, tab and new line, in precisely that order.  Quoting is
12969 # there to prevent editors from complaining about space-tab.
12970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12971 # splitting by setting IFS to empty value.)
12972 IFS=" ""        $as_nl"
12973
12974 # Find who we are.  Look in the path if we contain no directory separator.
12975 as_myself=
12976 case $0 in #((
12977   *[\\/]* ) as_myself=$0 ;;
12978   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12980 do
12981   IFS=$as_save_IFS
12982   test -z "$as_dir" && as_dir=.
12983     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12984   done
12985 IFS=$as_save_IFS
12986
12987      ;;
12988 esac
12989 # We did not find ourselves, most probably we were run as `sh COMMAND'
12990 # in which case we are not to be found in the path.
12991 if test "x$as_myself" = x; then
12992   as_myself=$0
12993 fi
12994 if test ! -f "$as_myself"; then
12995   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12996   exit 1
12997 fi
12998
12999 # Unset variables that we do not need and which cause bugs (e.g. in
13000 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13001 # suppresses any "Segmentation fault" message there.  '((' could
13002 # trigger a bug in pdksh 5.2.14.
13003 for as_var in BASH_ENV ENV MAIL MAILPATH
13004 do eval test x\${$as_var+set} = xset \
13005   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13006 done
13007 PS1='$ '
13008 PS2='> '
13009 PS4='+ '
13010
13011 # NLS nuisances.
13012 LC_ALL=C
13013 export LC_ALL
13014 LANGUAGE=C
13015 export LANGUAGE
13016
13017 # CDPATH.
13018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13019
13020
13021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13022 # ----------------------------------------
13023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13025 # script with STATUS, using 1 if that was 0.
13026 as_fn_error ()
13027 {
13028   as_status=$1; test $as_status -eq 0 && as_status=1
13029   if test "$4"; then
13030     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13031     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13032   fi
13033   $as_echo "$as_me: error: $2" >&2
13034   as_fn_exit $as_status
13035 } # as_fn_error
13036
13037
13038 # as_fn_set_status STATUS
13039 # -----------------------
13040 # Set $? to STATUS, without forking.
13041 as_fn_set_status ()
13042 {
13043   return $1
13044 } # as_fn_set_status
13045
13046 # as_fn_exit STATUS
13047 # -----------------
13048 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13049 as_fn_exit ()
13050 {
13051   set +e
13052   as_fn_set_status $1
13053   exit $1
13054 } # as_fn_exit
13055
13056 # as_fn_unset VAR
13057 # ---------------
13058 # Portably unset VAR.
13059 as_fn_unset ()
13060 {
13061   { eval $1=; unset $1;}
13062 }
13063 as_unset=as_fn_unset
13064 # as_fn_append VAR VALUE
13065 # ----------------------
13066 # Append the text in VALUE to the end of the definition contained in VAR. Take
13067 # advantage of any shell optimizations that allow amortized linear growth over
13068 # repeated appends, instead of the typical quadratic growth present in naive
13069 # implementations.
13070 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13071   eval 'as_fn_append ()
13072   {
13073     eval $1+=\$2
13074   }'
13075 else
13076   as_fn_append ()
13077   {
13078     eval $1=\$$1\$2
13079   }
13080 fi # as_fn_append
13081
13082 # as_fn_arith ARG...
13083 # ------------------
13084 # Perform arithmetic evaluation on the ARGs, and store the result in the
13085 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13086 # must be portable across $(()) and expr.
13087 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13088   eval 'as_fn_arith ()
13089   {
13090     as_val=$(( $* ))
13091   }'
13092 else
13093   as_fn_arith ()
13094   {
13095     as_val=`expr "$@" || test $? -eq 1`
13096   }
13097 fi # as_fn_arith
13098
13099
13100 if expr a : '\(a\)' >/dev/null 2>&1 &&
13101    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13102   as_expr=expr
13103 else
13104   as_expr=false
13105 fi
13106
13107 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13108   as_basename=basename
13109 else
13110   as_basename=false
13111 fi
13112
13113 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13114   as_dirname=dirname
13115 else
13116   as_dirname=false
13117 fi
13118
13119 as_me=`$as_basename -- "$0" ||
13120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13121          X"$0" : 'X\(//\)$' \| \
13122          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13123 $as_echo X/"$0" |
13124     sed '/^.*\/\([^/][^/]*\)\/*$/{
13125             s//\1/
13126             q
13127           }
13128           /^X\/\(\/\/\)$/{
13129             s//\1/
13130             q
13131           }
13132           /^X\/\(\/\).*/{
13133             s//\1/
13134             q
13135           }
13136           s/.*/./; q'`
13137
13138 # Avoid depending upon Character Ranges.
13139 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13140 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13141 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13142 as_cr_digits='0123456789'
13143 as_cr_alnum=$as_cr_Letters$as_cr_digits
13144
13145 ECHO_C= ECHO_N= ECHO_T=
13146 case `echo -n x` in #(((((
13147 -n*)
13148   case `echo 'xy\c'` in
13149   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13150   xy)  ECHO_C='\c';;
13151   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13152        ECHO_T=' ';;
13153   esac;;
13154 *)
13155   ECHO_N='-n';;
13156 esac
13157
13158 rm -f conf$$ conf$$.exe conf$$.file
13159 if test -d conf$$.dir; then
13160   rm -f conf$$.dir/conf$$.file
13161 else
13162   rm -f conf$$.dir
13163   mkdir conf$$.dir 2>/dev/null
13164 fi
13165 if (echo >conf$$.file) 2>/dev/null; then
13166   if ln -s conf$$.file conf$$ 2>/dev/null; then
13167     as_ln_s='ln -s'
13168     # ... but there are two gotchas:
13169     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13170     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13171     # In both cases, we have to default to `cp -pR'.
13172     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13173       as_ln_s='cp -pR'
13174   elif ln conf$$.file conf$$ 2>/dev/null; then
13175     as_ln_s=ln
13176   else
13177     as_ln_s='cp -pR'
13178   fi
13179 else
13180   as_ln_s='cp -pR'
13181 fi
13182 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13183 rmdir conf$$.dir 2>/dev/null
13184
13185
13186 # as_fn_mkdir_p
13187 # -------------
13188 # Create "$as_dir" as a directory, including parents if necessary.
13189 as_fn_mkdir_p ()
13190 {
13191
13192   case $as_dir in #(
13193   -*) as_dir=./$as_dir;;
13194   esac
13195   test -d "$as_dir" || eval $as_mkdir_p || {
13196     as_dirs=
13197     while :; do
13198       case $as_dir in #(
13199       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13200       *) as_qdir=$as_dir;;
13201       esac
13202       as_dirs="'$as_qdir' $as_dirs"
13203       as_dir=`$as_dirname -- "$as_dir" ||
13204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13205          X"$as_dir" : 'X\(//\)[^/]' \| \
13206          X"$as_dir" : 'X\(//\)$' \| \
13207          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13208 $as_echo X"$as_dir" |
13209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13210             s//\1/
13211             q
13212           }
13213           /^X\(\/\/\)[^/].*/{
13214             s//\1/
13215             q
13216           }
13217           /^X\(\/\/\)$/{
13218             s//\1/
13219             q
13220           }
13221           /^X\(\/\).*/{
13222             s//\1/
13223             q
13224           }
13225           s/.*/./; q'`
13226       test -d "$as_dir" && break
13227     done
13228     test -z "$as_dirs" || eval "mkdir $as_dirs"
13229   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13230
13231
13232 } # as_fn_mkdir_p
13233 if mkdir -p . 2>/dev/null; then
13234   as_mkdir_p='mkdir -p "$as_dir"'
13235 else
13236   test -d ./-p && rmdir ./-p
13237   as_mkdir_p=false
13238 fi
13239
13240
13241 # as_fn_executable_p FILE
13242 # -----------------------
13243 # Test if FILE is an executable regular file.
13244 as_fn_executable_p ()
13245 {
13246   test -f "$1" && test -x "$1"
13247 } # as_fn_executable_p
13248 as_test_x='test -x'
13249 as_executable_p=as_fn_executable_p
13250
13251 # Sed expression to map a string onto a valid CPP name.
13252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13253
13254 # Sed expression to map a string onto a valid variable name.
13255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13256
13257
13258 exec 6>&1
13259 ## --------------------------------- ##
13260 ## Main body of "$CONFIG_LT" script. ##
13261 ## --------------------------------- ##
13262 _ASEOF
13263 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
13264
13265 cat >>"$CONFIG_LT" <<\_LTEOF
13266 lt_cl_silent=false
13267 exec 5>>config.log
13268 {
13269   echo
13270   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13271 ## Running $as_me. ##
13272 _ASBOX
13273 } >&5
13274
13275 lt_cl_help="\
13276 '$as_me' creates a local libtool stub from the current configuration,
13277 for use in further configure time tests before the real libtool is
13278 generated.
13279
13280 Usage: $0 [OPTIONS]
13281
13282   -h, --help      print this help, then exit
13283   -V, --version   print version number, then exit
13284   -q, --quiet     do not print progress messages
13285   -d, --debug     don't remove temporary files
13286
13287 Report bugs to <bug-libtool@gnu.org>."
13288
13289 lt_cl_version="\
13290 Quagga config.lt 1.2.3
13291 configured by $0, generated by GNU Autoconf 2.69.
13292
13293 Copyright (C) 2011 Free Software Foundation, Inc.
13294 This config.lt script is free software; the Free Software Foundation
13295 gives unlimited permision to copy, distribute and modify it."
13296
13297 while test 0 != $#
13298 do
13299   case $1 in
13300     --version | --v* | -V )
13301       echo "$lt_cl_version"; exit 0 ;;
13302     --help | --h* | -h )
13303       echo "$lt_cl_help"; exit 0 ;;
13304     --debug | --d* | -d )
13305       debug=: ;;
13306     --quiet | --q* | --silent | --s* | -q )
13307       lt_cl_silent=: ;;
13308
13309     -*) as_fn_error $? "unrecognized option: $1
13310 Try '$0 --help' for more information." "$LINENO" 5 ;;
13311
13312     *) as_fn_error $? "unrecognized argument: $1
13313 Try '$0 --help' for more information." "$LINENO" 5 ;;
13314   esac
13315   shift
13316 done
13317
13318 if $lt_cl_silent; then
13319   exec 6>/dev/null
13320 fi
13321 _LTEOF
13322
13323 cat >>"$CONFIG_LT" <<_LTEOF
13324
13325
13326 # The HP-UX ksh and POSIX shell print the target directory to stdout
13327 # if CDPATH is set.
13328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13329
13330 sed_quote_subst='$sed_quote_subst'
13331 double_quote_subst='$double_quote_subst'
13332 delay_variable_subst='$delay_variable_subst'
13333 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13334 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13335 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13336 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13337 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13338 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13339 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13340 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13341 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13342 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13343 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13344 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13345 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13346 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13347 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13348 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13349 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13350 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13351 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13352 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13353 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13354 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13355 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13356 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13357 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13358 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13359 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13360 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13361 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13362 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13363 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13364 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13365 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13366 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13367 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13368 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13369 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13370 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13371 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13372 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13373 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13374 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13375 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13376 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13377 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13378 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13379 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13380 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13381 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13382 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13383 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13384 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13385 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13386 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13387 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13388 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13389 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13390 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13391 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"`'
13392 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13393 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13394 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13395 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13396 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13397 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13398 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13399 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13400 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13401 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13402 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13403 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13404 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13405 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13406 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13407 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13408 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13409 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13410 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13411 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13412 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13413 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13414 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13415 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13416 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13417 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13418 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13419 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13420 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13421 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13422 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13423 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13424 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13425 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13426 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13427 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13428 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13429 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13430 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13431 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13432 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13433 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13434 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13435 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13436 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13437 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13438 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13439 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13440 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13441 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13442 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13443 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13444 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13445 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13446 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13447 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13448 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13449 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13450 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13451 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13452 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13453 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13454 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13455 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13456 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13457 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13458 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13459 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13460 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13461 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13462 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13463 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13464 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13465 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13466 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13467 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13468
13469 LTCC='$LTCC'
13470 LTCFLAGS='$LTCFLAGS'
13471 compiler='$compiler_DEFAULT'
13472
13473 # A function that is used when there is no print builtin or printf.
13474 func_fallback_echo ()
13475 {
13476   eval 'cat <<_LTECHO_EOF
13477 \$1
13478 _LTECHO_EOF'
13479 }
13480
13481 # Quote evaled strings.
13482 for var in SHELL \
13483 ECHO \
13484 PATH_SEPARATOR \
13485 SED \
13486 GREP \
13487 EGREP \
13488 FGREP \
13489 LD \
13490 NM \
13491 LN_S \
13492 lt_SP2NL \
13493 lt_NL2SP \
13494 reload_flag \
13495 OBJDUMP \
13496 deplibs_check_method \
13497 file_magic_cmd \
13498 file_magic_glob \
13499 want_nocaseglob \
13500 DLLTOOL \
13501 sharedlib_from_linklib_cmd \
13502 AR \
13503 AR_FLAGS \
13504 archiver_list_spec \
13505 STRIP \
13506 RANLIB \
13507 CC \
13508 CFLAGS \
13509 compiler \
13510 lt_cv_sys_global_symbol_pipe \
13511 lt_cv_sys_global_symbol_to_cdecl \
13512 lt_cv_sys_global_symbol_to_import \
13513 lt_cv_sys_global_symbol_to_c_name_address \
13514 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13515 lt_cv_nm_interface \
13516 nm_file_list_spec \
13517 lt_cv_truncate_bin \
13518 lt_prog_compiler_no_builtin_flag \
13519 lt_prog_compiler_pic \
13520 lt_prog_compiler_wl \
13521 lt_prog_compiler_static \
13522 lt_cv_prog_compiler_c_o \
13523 need_locks \
13524 MANIFEST_TOOL \
13525 DSYMUTIL \
13526 NMEDIT \
13527 LIPO \
13528 OTOOL \
13529 OTOOL64 \
13530 shrext_cmds \
13531 export_dynamic_flag_spec \
13532 whole_archive_flag_spec \
13533 compiler_needs_object \
13534 with_gnu_ld \
13535 allow_undefined_flag \
13536 no_undefined_flag \
13537 hardcode_libdir_flag_spec \
13538 hardcode_libdir_separator \
13539 exclude_expsyms \
13540 include_expsyms \
13541 file_list_spec \
13542 variables_saved_for_relink \
13543 libname_spec \
13544 library_names_spec \
13545 soname_spec \
13546 install_override_mode \
13547 finish_eval \
13548 old_striplib \
13549 striplib; do
13550     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13551     *[\\\\\\\`\\"\\\$]*)
13552       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13553       ;;
13554     *)
13555       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13556       ;;
13557     esac
13558 done
13559
13560 # Double-quote double-evaled strings.
13561 for var in reload_cmds \
13562 old_postinstall_cmds \
13563 old_postuninstall_cmds \
13564 old_archive_cmds \
13565 extract_expsyms_cmds \
13566 old_archive_from_new_cmds \
13567 old_archive_from_expsyms_cmds \
13568 archive_cmds \
13569 archive_expsym_cmds \
13570 module_cmds \
13571 module_expsym_cmds \
13572 export_symbols_cmds \
13573 prelink_cmds \
13574 postlink_cmds \
13575 postinstall_cmds \
13576 postuninstall_cmds \
13577 finish_cmds \
13578 sys_lib_search_path_spec \
13579 configure_time_dlsearch_path \
13580 configure_time_lt_sys_library_path; do
13581     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13582     *[\\\\\\\`\\"\\\$]*)
13583       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13584       ;;
13585     *)
13586       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13587       ;;
13588     esac
13589 done
13590
13591 ac_aux_dir='$ac_aux_dir'
13592
13593 # See if we are running on zsh, and set the options that allow our
13594 # commands through without removal of \ escapes INIT.
13595 if test -n "\${ZSH_VERSION+set}"; then
13596    setopt NO_GLOB_SUBST
13597 fi
13598
13599
13600     PACKAGE='$PACKAGE'
13601     VERSION='$VERSION'
13602     RM='$RM'
13603     ofile='$ofile'
13604
13605
13606
13607 _LTEOF
13608
13609 cat >>"$CONFIG_LT" <<\_LTEOF
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
13611 $as_echo "$as_me: creating $ofile" >&6;}
13612
13613
13614     # See if we are running on zsh, and set the options that allow our
13615     # commands through without removal of \ escapes.
13616     if test -n "${ZSH_VERSION+set}"; then
13617       setopt NO_GLOB_SUBST
13618     fi
13619
13620     cfgfile=${ofile}T
13621     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13622     $RM "$cfgfile"
13623
13624     cat <<_LT_EOF >> "$cfgfile"
13625 #! $SHELL
13626 # Generated automatically by $as_me ($PACKAGE) $VERSION
13627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13629
13630 # Provide generalized library-building support services.
13631 # Written by Gordon Matzigkeit, 1996
13632
13633 # Copyright (C) 2014 Free Software Foundation, Inc.
13634 # This is free software; see the source for copying conditions.  There is NO
13635 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13636
13637 # GNU Libtool is free software; you can redistribute it and/or modify
13638 # it under the terms of the GNU General Public License as published by
13639 # the Free Software Foundation; either version 2 of of the License, or
13640 # (at your option) any later version.
13641 #
13642 # As a special exception to the GNU General Public License, if you
13643 # distribute this file as part of a program or library that is built
13644 # using GNU Libtool, you may include this file under the  same
13645 # distribution terms that you use for the rest of that program.
13646 #
13647 # GNU Libtool is distributed in the hope that it will be useful, but
13648 # WITHOUT ANY WARRANTY; without even the implied warranty of
13649 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13650 # GNU General Public License for more details.
13651 #
13652 # You should have received a copy of the GNU General Public License
13653 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
13654
13655
13656 # The names of the tagged configurations supported by this script.
13657 available_tags=''
13658
13659 # Configured defaults for sys_lib_dlsearch_path munging.
13660 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
13661
13662 # ### BEGIN LIBTOOL CONFIG
13663
13664 # Which release of libtool.m4 was used?
13665 macro_version=$macro_version
13666 macro_revision=$macro_revision
13667
13668 # Whether or not to build shared libraries.
13669 build_libtool_libs=$enable_shared
13670
13671 # Whether or not to build static libraries.
13672 build_old_libs=$enable_static
13673
13674 # What type of objects to build.
13675 pic_mode=$pic_mode
13676
13677 # Whether or not to optimize for fast installation.
13678 fast_install=$enable_fast_install
13679
13680 # Shared archive member basename,for filename based shared library versioning on AIX.
13681 shared_archive_member_spec=$shared_archive_member_spec
13682
13683 # Shell to use when invoking shell scripts.
13684 SHELL=$lt_SHELL
13685
13686 # An echo program that protects backslashes.
13687 ECHO=$lt_ECHO
13688
13689 # The PATH separator for the build system.
13690 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13691
13692 # The host system.
13693 host_alias=$host_alias
13694 host=$host
13695 host_os=$host_os
13696
13697 # The build system.
13698 build_alias=$build_alias
13699 build=$build
13700 build_os=$build_os
13701
13702 # A sed program that does not truncate output.
13703 SED=$lt_SED
13704
13705 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13706 Xsed="\$SED -e 1s/^X//"
13707
13708 # A grep program that handles long lines.
13709 GREP=$lt_GREP
13710
13711 # An ERE matcher.
13712 EGREP=$lt_EGREP
13713
13714 # A literal string matcher.
13715 FGREP=$lt_FGREP
13716
13717 # A BSD- or MS-compatible name lister.
13718 NM=$lt_NM
13719
13720 # Whether we need soft or hard links.
13721 LN_S=$lt_LN_S
13722
13723 # What is the maximum length of a command?
13724 max_cmd_len=$max_cmd_len
13725
13726 # Object file suffix (normally "o").
13727 objext=$ac_objext
13728
13729 # Executable file suffix (normally "").
13730 exeext=$exeext
13731
13732 # whether the shell understands "unset".
13733 lt_unset=$lt_unset
13734
13735 # turn spaces into newlines.
13736 SP2NL=$lt_lt_SP2NL
13737
13738 # turn newlines into spaces.
13739 NL2SP=$lt_lt_NL2SP
13740
13741 # convert \$build file names to \$host format.
13742 to_host_file_cmd=$lt_cv_to_host_file_cmd
13743
13744 # convert \$build files to toolchain format.
13745 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13746
13747 # An object symbol dumper.
13748 OBJDUMP=$lt_OBJDUMP
13749
13750 # Method to check whether dependent libraries are shared objects.
13751 deplibs_check_method=$lt_deplibs_check_method
13752
13753 # Command to use when deplibs_check_method = "file_magic".
13754 file_magic_cmd=$lt_file_magic_cmd
13755
13756 # How to find potential files when deplibs_check_method = "file_magic".
13757 file_magic_glob=$lt_file_magic_glob
13758
13759 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13760 want_nocaseglob=$lt_want_nocaseglob
13761
13762 # DLL creation program.
13763 DLLTOOL=$lt_DLLTOOL
13764
13765 # Command to associate shared and link libraries.
13766 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13767
13768 # The archiver.
13769 AR=$lt_AR
13770
13771 # Flags to create an archive.
13772 AR_FLAGS=$lt_AR_FLAGS
13773
13774 # How to feed a file listing to the archiver.
13775 archiver_list_spec=$lt_archiver_list_spec
13776
13777 # A symbol stripping program.
13778 STRIP=$lt_STRIP
13779
13780 # Commands used to install an old-style archive.
13781 RANLIB=$lt_RANLIB
13782 old_postinstall_cmds=$lt_old_postinstall_cmds
13783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13784
13785 # Whether to use a lock for old archive extraction.
13786 lock_old_archive_extraction=$lock_old_archive_extraction
13787
13788 # A C compiler.
13789 LTCC=$lt_CC
13790
13791 # LTCC compiler flags.
13792 LTCFLAGS=$lt_CFLAGS
13793
13794 # Take the output of nm and produce a listing of raw symbols and C names.
13795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13796
13797 # Transform the output of nm in a proper C declaration.
13798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13799
13800 # Transform the output of nm into a list of symbols to manually relocate.
13801 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
13802
13803 # Transform the output of nm in a C name address pair.
13804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13805
13806 # Transform the output of nm in a C name address pair when lib prefix is needed.
13807 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13808
13809 # The name lister interface.
13810 nm_interface=$lt_lt_cv_nm_interface
13811
13812 # Specify filename containing input files for \$NM.
13813 nm_file_list_spec=$lt_nm_file_list_spec
13814
13815 # The root where to search for dependent libraries,and where our libraries should be installed.
13816 lt_sysroot=$lt_sysroot
13817
13818 # Command to truncate a binary pipe.
13819 lt_truncate_bin=$lt_lt_cv_truncate_bin
13820
13821 # The name of the directory that contains temporary libtool files.
13822 objdir=$objdir
13823
13824 # Used to examine libraries when file_magic_cmd begins with "file".
13825 MAGIC_CMD=$MAGIC_CMD
13826
13827 # Must we lock files when doing compilation?
13828 need_locks=$lt_need_locks
13829
13830 # Manifest tool.
13831 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13832
13833 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13834 DSYMUTIL=$lt_DSYMUTIL
13835
13836 # Tool to change global to local symbols on Mac OS X.
13837 NMEDIT=$lt_NMEDIT
13838
13839 # Tool to manipulate fat objects and archives on Mac OS X.
13840 LIPO=$lt_LIPO
13841
13842 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13843 OTOOL=$lt_OTOOL
13844
13845 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13846 OTOOL64=$lt_OTOOL64
13847
13848 # Old archive suffix (normally "a").
13849 libext=$libext
13850
13851 # Shared library suffix (normally ".so").
13852 shrext_cmds=$lt_shrext_cmds
13853
13854 # The commands to extract the exported symbol list from a shared archive.
13855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13856
13857 # Variables whose values should be saved in libtool wrapper scripts and
13858 # restored at link time.
13859 variables_saved_for_relink=$lt_variables_saved_for_relink
13860
13861 # Do we need the "lib" prefix for modules?
13862 need_lib_prefix=$need_lib_prefix
13863
13864 # Do we need a version for libraries?
13865 need_version=$need_version
13866
13867 # Library versioning type.
13868 version_type=$version_type
13869
13870 # Shared library runtime path variable.
13871 runpath_var=$runpath_var
13872
13873 # Shared library path variable.
13874 shlibpath_var=$shlibpath_var
13875
13876 # Is shlibpath searched before the hard-coded library search path?
13877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13878
13879 # Format of library name prefix.
13880 libname_spec=$lt_libname_spec
13881
13882 # List of archive names.  First name is the real one, the rest are links.
13883 # The last name is the one that the linker finds with -lNAME
13884 library_names_spec=$lt_library_names_spec
13885
13886 # The coded name of the library, if different from the real name.
13887 soname_spec=$lt_soname_spec
13888
13889 # Permission mode override for installation of shared libraries.
13890 install_override_mode=$lt_install_override_mode
13891
13892 # Command to use after installation of a shared archive.
13893 postinstall_cmds=$lt_postinstall_cmds
13894
13895 # Command to use after uninstallation of a shared archive.
13896 postuninstall_cmds=$lt_postuninstall_cmds
13897
13898 # Commands used to finish a libtool library installation in a directory.
13899 finish_cmds=$lt_finish_cmds
13900
13901 # As "finish_cmds", except a single script fragment to be evaled but
13902 # not shown.
13903 finish_eval=$lt_finish_eval
13904
13905 # Whether we should hardcode library paths into libraries.
13906 hardcode_into_libs=$hardcode_into_libs
13907
13908 # Compile-time system search path for libraries.
13909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13910
13911 # Detected run-time system search path for libraries.
13912 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
13913
13914 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
13915 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
13916
13917 # Whether dlopen is supported.
13918 dlopen_support=$enable_dlopen
13919
13920 # Whether dlopen of programs is supported.
13921 dlopen_self=$enable_dlopen_self
13922
13923 # Whether dlopen of statically linked programs is supported.
13924 dlopen_self_static=$enable_dlopen_self_static
13925
13926 # Commands to strip libraries.
13927 old_striplib=$lt_old_striplib
13928 striplib=$lt_striplib
13929
13930
13931 # The linker used to build libraries.
13932 LD=$lt_LD
13933
13934 # How to create reloadable object files.
13935 reload_flag=$lt_reload_flag
13936 reload_cmds=$lt_reload_cmds
13937
13938 # Commands used to build an old-style archive.
13939 old_archive_cmds=$lt_old_archive_cmds
13940
13941 # A language specific compiler.
13942 CC=$lt_compiler
13943
13944 # Is the compiler the GNU compiler?
13945 with_gcc=$GCC
13946
13947 # Compiler flag to turn off builtin functions.
13948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13949
13950 # Additional compiler flags for building library objects.
13951 pic_flag=$lt_lt_prog_compiler_pic
13952
13953 # How to pass a linker flag through the compiler.
13954 wl=$lt_lt_prog_compiler_wl
13955
13956 # Compiler flag to prevent dynamic linking.
13957 link_static_flag=$lt_lt_prog_compiler_static
13958
13959 # Does compiler simultaneously support -c and -o options?
13960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13961
13962 # Whether or not to add -lc for building shared libraries.
13963 build_libtool_need_lc=$archive_cmds_need_lc
13964
13965 # Whether or not to disallow shared libs when runtime libs are static.
13966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13967
13968 # Compiler flag to allow reflexive dlopens.
13969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13970
13971 # Compiler flag to generate shared objects directly from archives.
13972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13973
13974 # Whether the compiler copes with passing no objects directly.
13975 compiler_needs_object=$lt_compiler_needs_object
13976
13977 # Create an old-style archive from a shared archive.
13978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13979
13980 # Create a temporary old-style archive to link instead of a shared archive.
13981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13982
13983 # Commands used to build a shared archive.
13984 archive_cmds=$lt_archive_cmds
13985 archive_expsym_cmds=$lt_archive_expsym_cmds
13986
13987 # Commands used to build a loadable module if different from building
13988 # a shared archive.
13989 module_cmds=$lt_module_cmds
13990 module_expsym_cmds=$lt_module_expsym_cmds
13991
13992 # Whether we are building with GNU ld or not.
13993 with_gnu_ld=$lt_with_gnu_ld
13994
13995 # Flag that allows shared libraries with undefined symbols to be built.
13996 allow_undefined_flag=$lt_allow_undefined_flag
13997
13998 # Flag that enforces no undefined symbols.
13999 no_undefined_flag=$lt_no_undefined_flag
14000
14001 # Flag to hardcode \$libdir into a binary during linking.
14002 # This must work even if \$libdir does not exist
14003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14004
14005 # Whether we need a single "-rpath" flag with a separated argument.
14006 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14007
14008 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14009 # DIR into the resulting binary.
14010 hardcode_direct=$hardcode_direct
14011
14012 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14013 # DIR into the resulting binary and the resulting library dependency is
14014 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14015 # library is relocated.
14016 hardcode_direct_absolute=$hardcode_direct_absolute
14017
14018 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14019 # into the resulting binary.
14020 hardcode_minus_L=$hardcode_minus_L
14021
14022 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14023 # into the resulting binary.
14024 hardcode_shlibpath_var=$hardcode_shlibpath_var
14025
14026 # Set to "yes" if building a shared library automatically hardcodes DIR
14027 # into the library and all subsequent libraries and executables linked
14028 # against it.
14029 hardcode_automatic=$hardcode_automatic
14030
14031 # Set to yes if linker adds runtime paths of dependent libraries
14032 # to runtime path list.
14033 inherit_rpath=$inherit_rpath
14034
14035 # Whether libtool must link a program against all its dependency libraries.
14036 link_all_deplibs=$link_all_deplibs
14037
14038 # Set to "yes" if exported symbols are required.
14039 always_export_symbols=$always_export_symbols
14040
14041 # The commands to list exported symbols.
14042 export_symbols_cmds=$lt_export_symbols_cmds
14043
14044 # Symbols that should not be listed in the preloaded symbols.
14045 exclude_expsyms=$lt_exclude_expsyms
14046
14047 # Symbols that must always be exported.
14048 include_expsyms=$lt_include_expsyms
14049
14050 # Commands necessary for linking programs (against libraries) with templates.
14051 prelink_cmds=$lt_prelink_cmds
14052
14053 # Commands necessary for finishing linking programs.
14054 postlink_cmds=$lt_postlink_cmds
14055
14056 # Specify filename containing input files.
14057 file_list_spec=$lt_file_list_spec
14058
14059 # How to hardcode a shared library path into an executable.
14060 hardcode_action=$hardcode_action
14061
14062 # ### END LIBTOOL CONFIG
14063
14064 _LT_EOF
14065
14066     cat <<'_LT_EOF' >> "$cfgfile"
14067
14068 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14069
14070 # func_munge_path_list VARIABLE PATH
14071 # -----------------------------------
14072 # VARIABLE is name of variable containing _space_ separated list of
14073 # directories to be munged by the contents of PATH, which is string
14074 # having a format:
14075 # "DIR[:DIR]:"
14076 #       string "DIR[ DIR]" will be prepended to VARIABLE
14077 # ":DIR[:DIR]"
14078 #       string "DIR[ DIR]" will be appended to VARIABLE
14079 # "DIRP[:DIRP]::[DIRA:]DIRA"
14080 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14081 #       "DIRA[ DIRA]" will be appended to VARIABLE
14082 # "DIR[:DIR]"
14083 #       VARIABLE will be replaced by "DIR[ DIR]"
14084 func_munge_path_list ()
14085 {
14086     case x$2 in
14087     x)
14088         ;;
14089     *:)
14090         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14091         ;;
14092     x:*)
14093         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14094         ;;
14095     *::*)
14096         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14097         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14098         ;;
14099     *)
14100         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14101         ;;
14102     esac
14103 }
14104
14105
14106 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14107 func_cc_basename ()
14108 {
14109     for cc_temp in $*""; do
14110       case $cc_temp in
14111         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14112         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14113         \-*) ;;
14114         *) break;;
14115       esac
14116     done
14117     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14118 }
14119
14120
14121 # ### END FUNCTIONS SHARED WITH CONFIGURE
14122
14123 _LT_EOF
14124
14125   case $host_os in
14126   aix3*)
14127     cat <<\_LT_EOF >> "$cfgfile"
14128 # AIX sometimes has problems with the GCC collect2 program.  For some
14129 # reason, if we set the COLLECT_NAMES environment variable, the problems
14130 # vanish in a puff of smoke.
14131 if test set != "${COLLECT_NAMES+set}"; then
14132   COLLECT_NAMES=
14133   export COLLECT_NAMES
14134 fi
14135 _LT_EOF
14136     ;;
14137   esac
14138
14139
14140 ltmain=$ac_aux_dir/ltmain.sh
14141
14142
14143   # We use sed instead of cat because bash on DJGPP gets confused if
14144   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14145   # text mode, it properly converts lines to CR/LF.  This bash problem
14146   # is reportedly fixed, but why not run on old versions too?
14147   sed '$q' "$ltmain" >> "$cfgfile" \
14148      || (rm -f "$cfgfile"; exit 1)
14149
14150    mv -f "$cfgfile" "$ofile" ||
14151     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14152   chmod +x "$ofile"
14153
14154
14155 as_fn_exit 0
14156 _LTEOF
14157 chmod +x "$CONFIG_LT"
14158
14159 # configure is writing to config.log, but config.lt does its own redirection,
14160 # appending to config.log, which fails on DOS, as config.log is still kept
14161 # open by configure.  Here we exec the FD to /dev/null, effectively closing
14162 # config.log, so it can be properly (re)opened and appended to by config.lt.
14163 lt_cl_success=:
14164 test yes = "$silent" &&
14165   lt_config_lt_args="$lt_config_lt_args --quiet"
14166 exec 5>/dev/null
14167 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
14168 exec 5>>config.log
14169 $lt_cl_success || as_fn_exit 1
14170
14171
14172 # Extract the first word of "sed", so it can be a program name with args.
14173 set dummy sed; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if ${ac_cv_prog_SED+:} false; then :
14177   $as_echo_n "(cached) " >&6
14178 else
14179   if test -n "$SED"; then
14180   ac_cv_prog_SED="$SED" # Let the user override the test.
14181 else
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14184 do
14185   IFS=$as_save_IFS
14186   test -z "$as_dir" && as_dir=.
14187     for ac_exec_ext in '' $ac_executable_extensions; do
14188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189     ac_cv_prog_SED="sed"
14190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14191     break 2
14192   fi
14193 done
14194   done
14195 IFS=$as_save_IFS
14196
14197   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="/bin/false"
14198 fi
14199 fi
14200 SED=$ac_cv_prog_SED
14201 if test -n "$SED"; then
14202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14203 $as_echo "$SED" >&6; }
14204 else
14205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14207 fi
14208
14209
14210
14211 # Extract the first word of "pdflatex", so it can be a program name with args.
14212 set dummy pdflatex; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if ${ac_cv_prog_PDFLATEX+:} false; then :
14216   $as_echo_n "(cached) " >&6
14217 else
14218   if test -n "$PDFLATEX"; then
14219   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
14220 else
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14223 do
14224   IFS=$as_save_IFS
14225   test -z "$as_dir" && as_dir=.
14226     for ac_exec_ext in '' $ac_executable_extensions; do
14227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14228     ac_cv_prog_PDFLATEX="pdflatex"
14229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14230     break 2
14231   fi
14232 done
14233   done
14234 IFS=$as_save_IFS
14235
14236   test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="/bin/false"
14237 fi
14238 fi
14239 PDFLATEX=$ac_cv_prog_PDFLATEX
14240 if test -n "$PDFLATEX"; then
14241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
14242 $as_echo "$PDFLATEX" >&6; }
14243 else
14244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14246 fi
14247
14248
14249 # Extract the first word of "latexmk", so it can be a program name with args.
14250 set dummy latexmk; ac_word=$2
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14252 $as_echo_n "checking for $ac_word... " >&6; }
14253 if ${ac_cv_prog_LATEXMK+:} false; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   if test -n "$LATEXMK"; then
14257   ac_cv_prog_LATEXMK="$LATEXMK" # Let the user override the test.
14258 else
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14261 do
14262   IFS=$as_save_IFS
14263   test -z "$as_dir" && as_dir=.
14264     for ac_exec_ext in '' $ac_executable_extensions; do
14265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14266     ac_cv_prog_LATEXMK="latexmk"
14267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14268     break 2
14269   fi
14270 done
14271   done
14272 IFS=$as_save_IFS
14273
14274   test -z "$ac_cv_prog_LATEXMK" && ac_cv_prog_LATEXMK="/bin/false"
14275 fi
14276 fi
14277 LATEXMK=$ac_cv_prog_LATEXMK
14278 if test -n "$LATEXMK"; then
14279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
14280 $as_echo "$LATEXMK" >&6; }
14281 else
14282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14284 fi
14285
14286
14287 if test "x$PDFLATEX" = "x/bin/false" -o "x$LATEXMK" = "x/bin/false"; then
14288         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not be able to make PDF versions of TeX documents" >&5
14289 $as_echo "$as_me: WARNING: Will not be able to make PDF versions of TeX documents" >&2;}
14290 else
14291         HAVE_LATEX=true
14292 fi
14293  if test "x$HAVE_LATEX" = "xtrue"; then
14294   HAVE_LATEX_TRUE=
14295   HAVE_LATEX_FALSE='#'
14296 else
14297   HAVE_LATEX_TRUE='#'
14298   HAVE_LATEX_FALSE=
14299 fi
14300
14301 # Extract the first word of "pandoc", so it can be a program name with args.
14302 set dummy pandoc; ac_word=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_prog_PANDOC+:} false; then :
14306   $as_echo_n "(cached) " >&6
14307 else
14308   if test -n "$PANDOC"; then
14309   ac_cv_prog_PANDOC="$PANDOC" # Let the user override the test.
14310 else
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14313 do
14314   IFS=$as_save_IFS
14315   test -z "$as_dir" && as_dir=.
14316     for ac_exec_ext in '' $ac_executable_extensions; do
14317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14318     ac_cv_prog_PANDOC="pandoc"
14319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14320     break 2
14321   fi
14322 done
14323   done
14324 IFS=$as_save_IFS
14325
14326   test -z "$ac_cv_prog_PANDOC" && ac_cv_prog_PANDOC="/bin/false"
14327 fi
14328 fi
14329 PANDOC=$ac_cv_prog_PANDOC
14330 if test -n "$PANDOC"; then
14331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
14332 $as_echo "$PANDOC" >&6; }
14333 else
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14336 fi
14337
14338
14339 if test "x$PDFLATEX" = "x/bin/false" -o "x$PANDOC" = "x/bin/false"; then
14340         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not be able to make PDF versions of MD documents" >&5
14341 $as_echo "$as_me: WARNING: Will not be able to make PDF versions of MD documents" >&2;}
14342 else
14343         HAVE_PANDOC=true
14344 fi
14345  if test "x$HAVE_PANDOC" = "xtrue"; then
14346   HAVE_PANDOC_TRUE=
14347   HAVE_PANDOC_FALSE='#'
14348 else
14349   HAVE_PANDOC_TRUE='#'
14350   HAVE_PANDOC_FALSE=
14351 fi
14352
14353
14354 if test "x${GCC}" != "xyes" ; then
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SunPro compiler" >&5
14356 $as_echo_n "checking whether we are using SunPro compiler... " >&6; }
14357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h.  */
14359 "__SUNPRO_C" __SUNPRO_C
14360 _ACEOF
14361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14362   $EGREP "^__SUNPRO_C.*0x5(7|8|9)" >/dev/null 2>&1; then :
14363   COMPILER="SUNPRO"
14364        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14365 $as_echo "yes" >&6; }
14366 else
14367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14369
14370 fi
14371 rm -f conftest*
14372
14373 fi
14374
14375
14376
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which default CFLAGS to set" >&5
14379 $as_echo_n "checking which default CFLAGS to set... " >&6; }
14380 if test "x${cflags_specified}" = "x" ; then
14381   case ${COMPILER} in
14382     "SUNPRO")
14383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Studio" >&5
14384 $as_echo "Sun Studio" >&6; }
14385         {
14386         ac_ext=c
14387 ac_cpp='$CPP $CPPFLAGS'
14388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14391
14392         ac_c_flag_save="$CFLAGS"
14393         CFLAGS="$CFLAGS -g"
14394         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
14395 $as_echo_n "checking whether $CC supports -g... " >&6; }
14396         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h.  */
14398
14399 int
14400 main ()
14401 {
14402
14403   ;
14404   return 0;
14405 }
14406 _ACEOF
14407 if ac_fn_c_try_compile "$LINENO"; then :
14408
14409                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14410 $as_echo "yes" >&6; }
14411
14412
14413 else
14414
14415                         CFLAGS="$ac_c_flag_save"
14416                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418
14419
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422         ac_ext=c
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427
14428         }
14429         {
14430         ac_ext=c
14431 ac_cpp='$CPP $CPPFLAGS'
14432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14435
14436         ac_c_flag_save="$CFLAGS"
14437         CFLAGS="$CFLAGS -xO4"
14438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xO4" >&5
14439 $as_echo_n "checking whether $CC supports -xO4... " >&6; }
14440         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h.  */
14442
14443 int
14444 main ()
14445 {
14446
14447   ;
14448   return 0;
14449 }
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452
14453                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14454 $as_echo "yes" >&6; }
14455
14456
14457 else
14458
14459                         CFLAGS="$ac_c_flag_save"
14460                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 $as_echo "no" >&6; }
14462
14463
14464 fi
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466         ac_ext=c
14467 ac_cpp='$CPP $CPPFLAGS'
14468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14471
14472         }
14473         {
14474         ac_ext=c
14475 ac_cpp='$CPP $CPPFLAGS'
14476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14479
14480         ac_c_flag_save="$CFLAGS"
14481         CFLAGS="$CFLAGS -xspace"
14482         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xspace" >&5
14483 $as_echo_n "checking whether $CC supports -xspace... " >&6; }
14484         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h.  */
14486
14487 int
14488 main ()
14489 {
14490
14491   ;
14492   return 0;
14493 }
14494 _ACEOF
14495 if ac_fn_c_try_compile "$LINENO"; then :
14496
14497                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14498 $as_echo "yes" >&6; }
14499
14500
14501 else
14502
14503                         CFLAGS="$ac_c_flag_save"
14504                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14506
14507
14508 fi
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510         ac_ext=c
14511 ac_cpp='$CPP $CPPFLAGS'
14512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14515
14516         }
14517         {
14518         ac_ext=c
14519 ac_cpp='$CPP $CPPFLAGS'
14520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14523
14524         ac_c_flag_save="$CFLAGS"
14525         CFLAGS="$CFLAGS -xstrconst"
14526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xstrconst" >&5
14527 $as_echo_n "checking whether $CC supports -xstrconst... " >&6; }
14528         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h.  */
14530
14531 int
14532 main ()
14533 {
14534
14535   ;
14536   return 0;
14537 }
14538 _ACEOF
14539 if ac_fn_c_try_compile "$LINENO"; then :
14540
14541                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14542 $as_echo "yes" >&6; }
14543
14544
14545 else
14546
14547                         CFLAGS="$ac_c_flag_save"
14548                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549 $as_echo "no" >&6; }
14550
14551
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554         ac_ext=c
14555 ac_cpp='$CPP $CPPFLAGS'
14556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14559
14560         }
14561         {
14562         ac_ext=c
14563 ac_cpp='$CPP $CPPFLAGS'
14564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14567
14568         ac_c_flag_save="$CFLAGS"
14569         CFLAGS="$CFLAGS -xc99"
14570         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
14571 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
14572         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h.  */
14574
14575 int
14576 main ()
14577 {
14578
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_c_try_compile "$LINENO"; then :
14584
14585                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14586 $as_echo "yes" >&6; }
14587
14588
14589 else
14590
14591                         CFLAGS="$ac_c_flag_save"
14592                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593 $as_echo "no" >&6; }
14594
14595
14596 fi
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598         ac_ext=c
14599 ac_cpp='$CPP $CPPFLAGS'
14600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14603
14604         }
14605         {
14606         ac_ext=c
14607 ac_cpp='$CPP $CPPFLAGS'
14608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611
14612         ac_c_flag_save="$CFLAGS"
14613         CFLAGS="$CFLAGS -errfmt"
14614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -errfmt" >&5
14615 $as_echo_n "checking whether $CC supports -errfmt... " >&6; }
14616         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h.  */
14618
14619 int
14620 main ()
14621 {
14622
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 if ac_fn_c_try_compile "$LINENO"; then :
14628
14629                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14630 $as_echo "yes" >&6; }
14631
14632
14633 else
14634
14635                         CFLAGS="$ac_c_flag_save"
14636                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14638
14639
14640 fi
14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14642         ac_ext=c
14643 ac_cpp='$CPP $CPPFLAGS'
14644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14647
14648         }
14649         {
14650         ac_ext=c
14651 ac_cpp='$CPP $CPPFLAGS'
14652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14655
14656         ac_c_flag_save="$CFLAGS"
14657         CFLAGS="$CFLAGS -xipo"
14658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xipo" >&5
14659 $as_echo_n "checking whether $CC supports -xipo... " >&6; }
14660         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h.  */
14662
14663 int
14664 main ()
14665 {
14666
14667   ;
14668   return 0;
14669 }
14670 _ACEOF
14671 if ac_fn_c_try_compile "$LINENO"; then :
14672
14673                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14674 $as_echo "yes" >&6; }
14675
14676
14677 else
14678
14679                         CFLAGS="$ac_c_flag_save"
14680                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14682
14683
14684 fi
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686         ac_ext=c
14687 ac_cpp='$CPP $CPPFLAGS'
14688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14691
14692         }
14693                         ;;
14694     *)
14695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetecting" >&5
14696 $as_echo "autodetecting" >&6; }
14697
14698         {
14699         ac_ext=c
14700 ac_cpp='$CPP $CPPFLAGS'
14701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14704
14705         ac_c_flag_save="$CFLAGS"
14706         CFLAGS="$CFLAGS -diag-error 10006"
14707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -diag-error 10006" >&5
14708 $as_echo_n "checking whether $CC supports -diag-error 10006... " >&6; }
14709         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h.  */
14711
14712 int
14713 main ()
14714 {
14715
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721
14722                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14723 $as_echo "yes" >&6; }
14724
14725
14726 else
14727
14728                         CFLAGS="$ac_c_flag_save"
14729                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14731
14732
14733 fi
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735         ac_ext=c
14736 ac_cpp='$CPP $CPPFLAGS'
14737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14740
14741         }
14742         {
14743         ac_ext=c
14744 ac_cpp='$CPP $CPPFLAGS'
14745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14748
14749         ac_c_flag_save="$CFLAGS"
14750         CFLAGS="$CFLAGS -g"
14751         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
14752 $as_echo_n "checking whether $CC supports -g... " >&6; }
14753         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h.  */
14755
14756 int
14757 main ()
14758 {
14759
14760   ;
14761   return 0;
14762 }
14763 _ACEOF
14764 if ac_fn_c_try_compile "$LINENO"; then :
14765
14766                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14767 $as_echo "yes" >&6; }
14768
14769
14770 else
14771
14772                         CFLAGS="$ac_c_flag_save"
14773                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14775
14776
14777 fi
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779         ac_ext=c
14780 ac_cpp='$CPP $CPPFLAGS'
14781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14784
14785         }
14786         {
14787         ac_ext=c
14788 ac_cpp='$CPP $CPPFLAGS'
14789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14792
14793         ac_c_flag_save="$CFLAGS"
14794         CFLAGS="$CFLAGS -Os"
14795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Os" >&5
14796 $as_echo_n "checking whether $CC supports -Os... " >&6; }
14797         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h.  */
14799
14800 int
14801 main ()
14802 {
14803
14804   ;
14805   return 0;
14806 }
14807 _ACEOF
14808 if ac_fn_c_try_compile "$LINENO"; then :
14809
14810                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14811 $as_echo "yes" >&6; }
14812
14813
14814 else
14815
14816                         CFLAGS="$ac_c_flag_save"
14817                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14819
14820           {
14821         ac_ext=c
14822 ac_cpp='$CPP $CPPFLAGS'
14823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14826
14827         ac_c_flag_save="$CFLAGS"
14828         CFLAGS="$CFLAGS -O2"
14829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
14830 $as_echo_n "checking whether $CC supports -O2... " >&6; }
14831         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h.  */
14833
14834 int
14835 main ()
14836 {
14837
14838   ;
14839   return 0;
14840 }
14841 _ACEOF
14842 if ac_fn_c_try_compile "$LINENO"; then :
14843
14844                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14845 $as_echo "yes" >&6; }
14846
14847
14848 else
14849
14850                         CFLAGS="$ac_c_flag_save"
14851                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852 $as_echo "no" >&6; }
14853
14854
14855 fi
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857         ac_ext=c
14858 ac_cpp='$CPP $CPPFLAGS'
14859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14862
14863         }
14864
14865
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868         ac_ext=c
14869 ac_cpp='$CPP $CPPFLAGS'
14870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14873
14874         }
14875                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool can support fstack-protector" >&5
14876 $as_echo_n "checking whether libtool can support fstack-protector... " >&6; }
14877         if test x"$(./libtool --version | awk 'NR == 1 { print $NF }' \
14878                     | awk -F. '{ \
14879                         if ($(NF-2) < 2) print 0; \
14880                         else if ($(NF-2) > 2) print 1; \
14881                         else if ($(NF-1) < 4) print 0; \
14882                         else if ($(NF-1) > 4) print 1; \
14883                         else if ($NF < 6) print 0; \
14884                         else print 1;  \
14885                         }')" = "x1" ; then
14886                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14887 $as_echo "yes" >&6; }
14888                 {
14889         ac_ext=c
14890 ac_cpp='$CPP $CPPFLAGS'
14891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14894
14895         ac_c_flag_save="$CFLAGS"
14896         CFLAGS="$CFLAGS -fstack-protector-strong"
14897         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fstack-protector-strong" >&5
14898 $as_echo_n "checking whether $CC supports -fstack-protector-strong... " >&6; }
14899         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h.  */
14901
14902 int
14903 main ()
14904 {
14905
14906   ;
14907   return 0;
14908 }
14909 _ACEOF
14910 if ac_fn_c_try_compile "$LINENO"; then :
14911
14912                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14913 $as_echo "yes" >&6; }
14914
14915
14916 else
14917
14918                         CFLAGS="$ac_c_flag_save"
14919                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920 $as_echo "no" >&6; }
14921
14922
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925         ac_ext=c
14926 ac_cpp='$CPP $CPPFLAGS'
14927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14930
14931         }
14932                 {
14933         ac_ext=c
14934 ac_cpp='$CPP $CPPFLAGS'
14935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14938
14939         ac_c_flag_save="$CFLAGS"
14940         CFLAGS="$CFLAGS --param=ssp-buffer-size=4"
14941         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports --param=ssp-buffer-size=4" >&5
14942 $as_echo_n "checking whether $CC supports --param=ssp-buffer-size=4... " >&6; }
14943         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h.  */
14945
14946 int
14947 main ()
14948 {
14949
14950   ;
14951   return 0;
14952 }
14953 _ACEOF
14954 if ac_fn_c_try_compile "$LINENO"; then :
14955
14956                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14957 $as_echo "yes" >&6; }
14958
14959
14960 else
14961
14962                         CFLAGS="$ac_c_flag_save"
14963                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14964 $as_echo "no" >&6; }
14965
14966
14967 fi
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969         ac_ext=c
14970 ac_cpp='$CPP $CPPFLAGS'
14971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14974
14975         }
14976         else
14977                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 $as_echo "no" >&6; }
14979                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: upgrade to libtool >= 2.4.6!" >&5
14980 $as_echo "$as_me: WARNING: upgrade to libtool >= 2.4.6!" >&2;}
14981         fi
14982         {
14983         ac_ext=c
14984 ac_cpp='$CPP $CPPFLAGS'
14985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14988
14989         ac_c_flag_save="$CFLAGS"
14990         CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
14991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -D_FORTIFY_SOURCE=2" >&5
14992 $as_echo_n "checking whether $CC supports -D_FORTIFY_SOURCE=2... " >&6; }
14993         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h.  */
14995
14996 int
14997 main ()
14998 {
14999
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 if ac_fn_c_try_compile "$LINENO"; then :
15005
15006                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15007 $as_echo "yes" >&6; }
15008
15009
15010 else
15011
15012                         CFLAGS="$ac_c_flag_save"
15013                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15015
15016
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019         ac_ext=c
15020 ac_cpp='$CPP $CPPFLAGS'
15021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15024
15025         }
15026         {
15027         ac_ext=c
15028 ac_cpp='$CPP $CPPFLAGS'
15029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15032
15033         ac_c_flag_save="$CFLAGS"
15034         CFLAGS="$CFLAGS -Wformat"
15035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat" >&5
15036 $as_echo_n "checking whether $CC supports -Wformat... " >&6; }
15037         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h.  */
15039
15040 int
15041 main ()
15042 {
15043
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 if ac_fn_c_try_compile "$LINENO"; then :
15049
15050                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 $as_echo "yes" >&6; }
15052
15053
15054 else
15055
15056                         CFLAGS="$ac_c_flag_save"
15057                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15059
15060
15061 fi
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063         ac_ext=c
15064 ac_cpp='$CPP $CPPFLAGS'
15065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15068
15069         }
15070         {
15071         ac_ext=c
15072 ac_cpp='$CPP $CPPFLAGS'
15073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15076
15077         ac_c_flag_save="$CFLAGS"
15078         CFLAGS="$CFLAGS -Wformat-security"
15079         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
15080 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
15081         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h.  */
15083
15084 int
15085 main ()
15086 {
15087
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 if ac_fn_c_try_compile "$LINENO"; then :
15093
15094                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15095 $as_echo "yes" >&6; }
15096
15097
15098 else
15099
15100                         CFLAGS="$ac_c_flag_save"
15101                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15103
15104
15105 fi
15106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15107         ac_ext=c
15108 ac_cpp='$CPP $CPPFLAGS'
15109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15112
15113         }
15114         {
15115         ac_ext=c
15116 ac_cpp='$CPP $CPPFLAGS'
15117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15120
15121         ac_c_flag_save="$CFLAGS"
15122         CFLAGS="$CFLAGS -fpie"
15123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fpie" >&5
15124 $as_echo_n "checking whether $CC supports -fpie... " >&6; }
15125         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h.  */
15127
15128 int
15129 main ()
15130 {
15131
15132   ;
15133   return 0;
15134 }
15135 _ACEOF
15136 if ac_fn_c_try_compile "$LINENO"; then :
15137
15138                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15139 $as_echo "yes" >&6; }
15140
15141
15142 else
15143
15144                         CFLAGS="$ac_c_flag_save"
15145                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15146 $as_echo "no" >&6; }
15147
15148
15149 fi
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151         ac_ext=c
15152 ac_cpp='$CPP $CPPFLAGS'
15153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15156
15157         }
15158         {
15159         ac_ext=c
15160 ac_cpp='$CPP $CPPFLAGS'
15161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15164
15165         ac_c_flag_save="$CFLAGS"
15166         CFLAGS="$CFLAGS -fno-omit-frame-pointer"
15167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-omit-frame-pointer" >&5
15168 $as_echo_n "checking whether $CC supports -fno-omit-frame-pointer... " >&6; }
15169         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h.  */
15171
15172 int
15173 main ()
15174 {
15175
15176   ;
15177   return 0;
15178 }
15179 _ACEOF
15180 if ac_fn_c_try_compile "$LINENO"; then :
15181
15182                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183 $as_echo "yes" >&6; }
15184
15185
15186 else
15187
15188                         CFLAGS="$ac_c_flag_save"
15189                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15191
15192
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195         ac_ext=c
15196 ac_cpp='$CPP $CPPFLAGS'
15197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15200
15201         }
15202         {
15203         ac_ext=c
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209         ac_c_flag_save="$CFLAGS"
15210         CFLAGS="$CFLAGS -Wall"
15211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
15212 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
15213         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h.  */
15215
15216 int
15217 main ()
15218 {
15219
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 if ac_fn_c_try_compile "$LINENO"; then :
15225
15226                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15227 $as_echo "yes" >&6; }
15228
15229
15230 else
15231
15232                         CFLAGS="$ac_c_flag_save"
15233                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15235
15236
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239         ac_ext=c
15240 ac_cpp='$CPP $CPPFLAGS'
15241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15244
15245         }
15246         {
15247         ac_ext=c
15248 ac_cpp='$CPP $CPPFLAGS'
15249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15252
15253         ac_c_flag_save="$CFLAGS"
15254         CFLAGS="$CFLAGS -Wextra"
15255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
15256 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
15257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h.  */
15259
15260 int
15261 main ()
15262 {
15263
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 if ac_fn_c_try_compile "$LINENO"; then :
15269
15270                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15271 $as_echo "yes" >&6; }
15272
15273
15274 else
15275
15276                         CFLAGS="$ac_c_flag_save"
15277                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278 $as_echo "no" >&6; }
15279
15280
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283         ac_ext=c
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15288
15289         }
15290         {
15291         ac_ext=c
15292 ac_cpp='$CPP $CPPFLAGS'
15293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15296
15297         ac_c_flag_save="$CFLAGS"
15298         CFLAGS="$CFLAGS -Wmissing-prototypes"
15299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
15300 $as_echo_n "checking whether $CC supports -Wmissing-prototypes... " >&6; }
15301         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h.  */
15303
15304 int
15305 main ()
15306 {
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 if ac_fn_c_try_compile "$LINENO"; then :
15313
15314                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15315 $as_echo "yes" >&6; }
15316
15317
15318 else
15319
15320                         CFLAGS="$ac_c_flag_save"
15321                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322 $as_echo "no" >&6; }
15323
15324
15325 fi
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327         ac_ext=c
15328 ac_cpp='$CPP $CPPFLAGS'
15329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15332
15333         }
15334         {
15335         ac_ext=c
15336 ac_cpp='$CPP $CPPFLAGS'
15337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15340
15341         ac_c_flag_save="$CFLAGS"
15342         CFLAGS="$CFLAGS -Wmissing-declarations"
15343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-declarations" >&5
15344 $as_echo_n "checking whether $CC supports -Wmissing-declarations... " >&6; }
15345         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h.  */
15347
15348 int
15349 main ()
15350 {
15351
15352   ;
15353   return 0;
15354 }
15355 _ACEOF
15356 if ac_fn_c_try_compile "$LINENO"; then :
15357
15358                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15359 $as_echo "yes" >&6; }
15360
15361
15362 else
15363
15364                         CFLAGS="$ac_c_flag_save"
15365                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15367
15368
15369 fi
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371         ac_ext=c
15372 ac_cpp='$CPP $CPPFLAGS'
15373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15376
15377         }
15378         {
15379         ac_ext=c
15380 ac_cpp='$CPP $CPPFLAGS'
15381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15384
15385         ac_c_flag_save="$CFLAGS"
15386         CFLAGS="$CFLAGS -Wpointer-arith"
15387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpointer-arith" >&5
15388 $as_echo_n "checking whether $CC supports -Wpointer-arith... " >&6; }
15389         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h.  */
15391
15392 int
15393 main ()
15394 {
15395
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"; then :
15401
15402                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15403 $as_echo "yes" >&6; }
15404
15405
15406 else
15407
15408                         CFLAGS="$ac_c_flag_save"
15409                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410 $as_echo "no" >&6; }
15411
15412
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415         ac_ext=c
15416 ac_cpp='$CPP $CPPFLAGS'
15417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15420
15421         }
15422         {
15423         ac_ext=c
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428
15429         ac_c_flag_save="$CFLAGS"
15430         CFLAGS="$CFLAGS -Wbad-function-cast"
15431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbad-function-cast" >&5
15432 $as_echo_n "checking whether $CC supports -Wbad-function-cast... " >&6; }
15433         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h.  */
15435
15436 int
15437 main ()
15438 {
15439
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 if ac_fn_c_try_compile "$LINENO"; then :
15445
15446                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15447 $as_echo "yes" >&6; }
15448
15449
15450 else
15451
15452                         CFLAGS="$ac_c_flag_save"
15453                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15454 $as_echo "no" >&6; }
15455
15456
15457 fi
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459         ac_ext=c
15460 ac_cpp='$CPP $CPPFLAGS'
15461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15464
15465         }
15466         {
15467         ac_ext=c
15468 ac_cpp='$CPP $CPPFLAGS'
15469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15472
15473         ac_c_flag_save="$CFLAGS"
15474         CFLAGS="$CFLAGS -Wwrite-strings"
15475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
15476 $as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
15477         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h.  */
15479
15480 int
15481 main ()
15482 {
15483
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 if ac_fn_c_try_compile "$LINENO"; then :
15489
15490                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15491 $as_echo "yes" >&6; }
15492
15493
15494 else
15495
15496                         CFLAGS="$ac_c_flag_save"
15497                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15498 $as_echo "no" >&6; }
15499
15500
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503         ac_ext=c
15504 ac_cpp='$CPP $CPPFLAGS'
15505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15508
15509         }
15510         if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
15511           {
15512         ac_ext=c
15513 ac_cpp='$CPP $CPPFLAGS'
15514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15517
15518         ac_c_flag_save="$CFLAGS"
15519         CFLAGS="$CFLAGS -Wcast-qual"
15520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcast-qual" >&5
15521 $as_echo_n "checking whether $CC supports -Wcast-qual... " >&6; }
15522         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h.  */
15524
15525 int
15526 main ()
15527 {
15528
15529   ;
15530   return 0;
15531 }
15532 _ACEOF
15533 if ac_fn_c_try_compile "$LINENO"; then :
15534
15535                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15536 $as_echo "yes" >&6; }
15537
15538
15539 else
15540
15541                         CFLAGS="$ac_c_flag_save"
15542                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15543 $as_echo "no" >&6; }
15544
15545
15546 fi
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15548         ac_ext=c
15549 ac_cpp='$CPP $CPPFLAGS'
15550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15553
15554         }
15555           {
15556         ac_ext=c
15557 ac_cpp='$CPP $CPPFLAGS'
15558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15561
15562         ac_c_flag_save="$CFLAGS"
15563         CFLAGS="$CFLAGS -Wstrict-prototypes"
15564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
15565 $as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; }
15566         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h.  */
15568
15569 int
15570 main ()
15571 {
15572
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 if ac_fn_c_try_compile "$LINENO"; then :
15578
15579                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15580 $as_echo "yes" >&6; }
15581
15582
15583 else
15584
15585                         CFLAGS="$ac_c_flag_save"
15586                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15587 $as_echo "no" >&6; }
15588
15589
15590 fi
15591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15592         ac_ext=c
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15597
15598         }
15599           {
15600         ac_ext=c
15601 ac_cpp='$CPP $CPPFLAGS'
15602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15605
15606         ac_c_flag_save="$CFLAGS"
15607         CFLAGS="$CFLAGS -Wmissing-noreturn"
15608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-noreturn" >&5
15609 $as_echo_n "checking whether $CC supports -Wmissing-noreturn... " >&6; }
15610         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h.  */
15612
15613 int
15614 main ()
15615 {
15616
15617   ;
15618   return 0;
15619 }
15620 _ACEOF
15621 if ac_fn_c_try_compile "$LINENO"; then :
15622
15623                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15624 $as_echo "yes" >&6; }
15625
15626
15627 else
15628
15629                         CFLAGS="$ac_c_flag_save"
15630                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15631 $as_echo "no" >&6; }
15632
15633
15634 fi
15635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15636         ac_ext=c
15637 ac_cpp='$CPP $CPPFLAGS'
15638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15641
15642         }
15643           {
15644         ac_ext=c
15645 ac_cpp='$CPP $CPPFLAGS'
15646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15649
15650         ac_c_flag_save="$CFLAGS"
15651         CFLAGS="$CFLAGS -Wmissing-format-attribute"
15652         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
15653 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
15654         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h.  */
15656
15657 int
15658 main ()
15659 {
15660
15661   ;
15662   return 0;
15663 }
15664 _ACEOF
15665 if ac_fn_c_try_compile "$LINENO"; then :
15666
15667                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15668 $as_echo "yes" >&6; }
15669
15670
15671 else
15672
15673                         CFLAGS="$ac_c_flag_save"
15674                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15676
15677
15678 fi
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680         ac_ext=c
15681 ac_cpp='$CPP $CPPFLAGS'
15682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15685
15686         }
15687           {
15688         ac_ext=c
15689 ac_cpp='$CPP $CPPFLAGS'
15690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15693
15694         ac_c_flag_save="$CFLAGS"
15695         CFLAGS="$CFLAGS -Wunreachable-code"
15696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunreachable-code" >&5
15697 $as_echo_n "checking whether $CC supports -Wunreachable-code... " >&6; }
15698         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h.  */
15700
15701 int
15702 main ()
15703 {
15704
15705   ;
15706   return 0;
15707 }
15708 _ACEOF
15709 if ac_fn_c_try_compile "$LINENO"; then :
15710
15711                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15712 $as_echo "yes" >&6; }
15713
15714
15715 else
15716
15717                         CFLAGS="$ac_c_flag_save"
15718                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15719 $as_echo "no" >&6; }
15720
15721
15722 fi
15723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724         ac_ext=c
15725 ac_cpp='$CPP $CPPFLAGS'
15726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15729
15730         }
15731           {
15732         ac_ext=c
15733 ac_cpp='$CPP $CPPFLAGS'
15734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15737
15738         ac_c_flag_save="$CFLAGS"
15739         CFLAGS="$CFLAGS -Wpacked"
15740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpacked" >&5
15741 $as_echo_n "checking whether $CC supports -Wpacked... " >&6; }
15742         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h.  */
15744
15745 int
15746 main ()
15747 {
15748
15749   ;
15750   return 0;
15751 }
15752 _ACEOF
15753 if ac_fn_c_try_compile "$LINENO"; then :
15754
15755                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15756 $as_echo "yes" >&6; }
15757
15758
15759 else
15760
15761                         CFLAGS="$ac_c_flag_save"
15762                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 $as_echo "no" >&6; }
15764
15765
15766 fi
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768         ac_ext=c
15769 ac_cpp='$CPP $CPPFLAGS'
15770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15773
15774         }
15775           {
15776         ac_ext=c
15777 ac_cpp='$CPP $CPPFLAGS'
15778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15781
15782         ac_c_flag_save="$CFLAGS"
15783         CFLAGS="$CFLAGS -Wpadded"
15784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpadded" >&5
15785 $as_echo_n "checking whether $CC supports -Wpadded... " >&6; }
15786         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h.  */
15788
15789 int
15790 main ()
15791 {
15792
15793   ;
15794   return 0;
15795 }
15796 _ACEOF
15797 if ac_fn_c_try_compile "$LINENO"; then :
15798
15799                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800 $as_echo "yes" >&6; }
15801
15802
15803 else
15804
15805                         CFLAGS="$ac_c_flag_save"
15806                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807 $as_echo "no" >&6; }
15808
15809
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812         ac_ext=c
15813 ac_cpp='$CPP $CPPFLAGS'
15814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15817
15818         }
15819         else
15820           {
15821         ac_ext=c
15822 ac_cpp='$CPP $CPPFLAGS'
15823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15826
15827         ac_c_flag_save="$CFLAGS"
15828         CFLAGS="$CFLAGS -Wno-unused-result"
15829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-result" >&5
15830 $as_echo_n "checking whether $CC supports -Wno-unused-result... " >&6; }
15831         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h.  */
15833
15834 int
15835 main ()
15836 {
15837
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 if ac_fn_c_try_compile "$LINENO"; then :
15843
15844                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15845 $as_echo "yes" >&6; }
15846
15847
15848 else
15849
15850                         CFLAGS="$ac_c_flag_save"
15851                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852 $as_echo "no" >&6; }
15853
15854
15855 fi
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857         ac_ext=c
15858 ac_cpp='$CPP $CPPFLAGS'
15859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15862
15863         }
15864         fi
15865         {
15866         ac_ext=c
15867 ac_cpp='$CPP $CPPFLAGS'
15868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15871
15872         ac_c_flag_save="$CFLAGS"
15873         CFLAGS="$CFLAGS -Wno-unused-parameter"
15874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
15875 $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
15876         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h.  */
15878
15879 int
15880 main ()
15881 {
15882
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 if ac_fn_c_try_compile "$LINENO"; then :
15888
15889                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15890 $as_echo "yes" >&6; }
15891
15892
15893 else
15894
15895                         CFLAGS="$ac_c_flag_save"
15896                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15898
15899
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902         ac_ext=c
15903 ac_cpp='$CPP $CPPFLAGS'
15904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15907
15908         }
15909         {
15910         ac_ext=c
15911 ac_cpp='$CPP $CPPFLAGS'
15912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15915
15916         ac_c_flag_save="$CFLAGS"
15917         CFLAGS="$CFLAGS -Wno-missing-field-initializers"
15918         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
15919 $as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
15920         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h.  */
15922
15923 int
15924 main ()
15925 {
15926
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 if ac_fn_c_try_compile "$LINENO"; then :
15932
15933                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15934 $as_echo "yes" >&6; }
15935
15936
15937 else
15938
15939                         CFLAGS="$ac_c_flag_save"
15940                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15942
15943
15944 fi
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946         ac_ext=c
15947 ac_cpp='$CPP $CPPFLAGS'
15948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15951
15952         }
15953         # ICC emits a broken warning for const char *x = a ? "b" : "c";
15954         # for some reason the string consts get 'promoted' to char *,
15955         # triggering a const to non-const conversion warning.
15956         {
15957         ac_ext=c
15958 ac_cpp='$CPP $CPPFLAGS'
15959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15962
15963         ac_c_flag_save="$CFLAGS"
15964         CFLAGS="$CFLAGS -diag-disable 3179"
15965         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -diag-disable 3179" >&5
15966 $as_echo_n "checking whether $CC supports -diag-disable 3179... " >&6; }
15967         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h.  */
15969
15970 int
15971 main ()
15972 {
15973
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 if ac_fn_c_try_compile "$LINENO"; then :
15979
15980                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15981 $as_echo "yes" >&6; }
15982
15983
15984 else
15985
15986                         CFLAGS="$ac_c_flag_save"
15987                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15988 $as_echo "no" >&6; }
15989
15990
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15993         ac_ext=c
15994 ac_cpp='$CPP $CPPFLAGS'
15995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15998
15999         }
16000         ;;
16001   esac
16002 else
16003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS supplied by user" >&5
16004 $as_echo "CFLAGS supplied by user" >&6; }
16005 fi
16006
16007 if test x"${enable_werror}" = x"yes" ; then
16008   WERROR="-Werror"
16009 fi
16010
16011
16012
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16014 $as_echo_n "checking whether ln -s works... " >&6; }
16015 LN_S=$as_ln_s
16016 if test "$LN_S" = "ln -s"; then
16017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018 $as_echo "yes" >&6; }
16019 else
16020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16021 $as_echo "no, using $LN_S" >&6; }
16022 fi
16023
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16025 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16026 set x ${MAKE-make}
16027 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16028 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16029   $as_echo_n "(cached) " >&6
16030 else
16031   cat >conftest.make <<\_ACEOF
16032 SHELL = /bin/sh
16033 all:
16034         @echo '@@@%%%=$(MAKE)=@@@%%%'
16035 _ACEOF
16036 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16037 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16038   *@@@%%%=?*=@@@%%%*)
16039     eval ac_cv_prog_make_${ac_make}_set=yes;;
16040   *)
16041     eval ac_cv_prog_make_${ac_make}_set=no;;
16042 esac
16043 rm -f conftest.make
16044 fi
16045 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16047 $as_echo "yes" >&6; }
16048   SET_MAKE=
16049 else
16050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051 $as_echo "no" >&6; }
16052   SET_MAKE="MAKE=${MAKE-make}"
16053 fi
16054
16055 if test -n "$ac_tool_prefix"; then
16056   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16057 set dummy ${ac_tool_prefix}ar; ac_word=$2
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16059 $as_echo_n "checking for $ac_word... " >&6; }
16060 if ${ac_cv_prog_AR+:} false; then :
16061   $as_echo_n "(cached) " >&6
16062 else
16063   if test -n "$AR"; then
16064   ac_cv_prog_AR="$AR" # Let the user override the test.
16065 else
16066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16067 for as_dir in $PATH
16068 do
16069   IFS=$as_save_IFS
16070   test -z "$as_dir" && as_dir=.
16071     for ac_exec_ext in '' $ac_executable_extensions; do
16072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16073     ac_cv_prog_AR="${ac_tool_prefix}ar"
16074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16075     break 2
16076   fi
16077 done
16078   done
16079 IFS=$as_save_IFS
16080
16081 fi
16082 fi
16083 AR=$ac_cv_prog_AR
16084 if test -n "$AR"; then
16085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16086 $as_echo "$AR" >&6; }
16087 else
16088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16089 $as_echo "no" >&6; }
16090 fi
16091
16092
16093 fi
16094 if test -z "$ac_cv_prog_AR"; then
16095   ac_ct_AR=$AR
16096   # Extract the first word of "ar", so it can be a program name with args.
16097 set dummy ar; ac_word=$2
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16099 $as_echo_n "checking for $ac_word... " >&6; }
16100 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16101   $as_echo_n "(cached) " >&6
16102 else
16103   if test -n "$ac_ct_AR"; then
16104   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16105 else
16106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16107 for as_dir in $PATH
16108 do
16109   IFS=$as_save_IFS
16110   test -z "$as_dir" && as_dir=.
16111     for ac_exec_ext in '' $ac_executable_extensions; do
16112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16113     ac_cv_prog_ac_ct_AR="ar"
16114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16115     break 2
16116   fi
16117 done
16118   done
16119 IFS=$as_save_IFS
16120
16121 fi
16122 fi
16123 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16124 if test -n "$ac_ct_AR"; then
16125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16126 $as_echo "$ac_ct_AR" >&6; }
16127 else
16128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 $as_echo "no" >&6; }
16130 fi
16131
16132   if test "x$ac_ct_AR" = x; then
16133     AR=""
16134   else
16135     case $cross_compiling:$ac_tool_warned in
16136 yes:)
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16139 ac_tool_warned=yes ;;
16140 esac
16141     AR=$ac_ct_AR
16142   fi
16143 else
16144   AR="$ac_cv_prog_AR"
16145 fi
16146
16147
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE-make} is GNU make" >&5
16149 $as_echo_n "checking if ${MAKE-make} is GNU make... " >&6; }
16150 if ${quagga_cv_gnu_make+:} false; then :
16151   $as_echo_n "(cached) " >&6
16152 else
16153   quagga_cv_gnu_make=no
16154          if ${MAKE-make} --version 2>/dev/null | \
16155                 grep '^GNU Make ' >/dev/null ; then
16156                 quagga_cv_gnu_make=yes;
16157          fi
16158
16159
16160 fi
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_gnu_make" >&5
16162 $as_echo "$quagga_cv_gnu_make" >&6; }
16163
16164
16165
16166
16167
16168 # Check whether --with-pkg-extra-version was given.
16169 if test "${with_pkg_extra_version+set}" = set; then :
16170   withval=$with_pkg_extra_version; EXTRAVERSION=$withval
16171 fi
16172
16173
16174 # Check whether --with-pkg-git-version was given.
16175 if test "${with_pkg_git_version+set}" = set; then :
16176   withval=$with_pkg_git_version;  test "x$withval" != "xno" && with_pkg_git_version="yes"
16177 fi
16178
16179 # Check whether --enable-vtysh was given.
16180 if test "${enable_vtysh+set}" = set; then :
16181   enableval=$enable_vtysh;
16182 fi
16183
16184 # Check whether --enable-doc was given.
16185 if test "${enable_doc+set}" = set; then :
16186   enableval=$enable_doc;
16187 fi
16188
16189 # Check whether --enable-zebra was given.
16190 if test "${enable_zebra+set}" = set; then :
16191   enableval=$enable_zebra;
16192 fi
16193
16194 # Check whether --enable-bgpd was given.
16195 if test "${enable_bgpd+set}" = set; then :
16196   enableval=$enable_bgpd;
16197 fi
16198
16199 # Check whether --enable-ripd was given.
16200 if test "${enable_ripd+set}" = set; then :
16201   enableval=$enable_ripd;
16202 fi
16203
16204 # Check whether --enable-ripngd was given.
16205 if test "${enable_ripngd+set}" = set; then :
16206   enableval=$enable_ripngd;
16207 fi
16208
16209 # Check whether --enable-ospfd was given.
16210 if test "${enable_ospfd+set}" = set; then :
16211   enableval=$enable_ospfd;
16212 fi
16213
16214 # Check whether --enable-ospf6d was given.
16215 if test "${enable_ospf6d+set}" = set; then :
16216   enableval=$enable_ospf6d;
16217 fi
16218
16219 # Check whether --enable-nhrpd was given.
16220 if test "${enable_nhrpd+set}" = set; then :
16221   enableval=$enable_nhrpd;
16222 fi
16223
16224 # Check whether --enable-watchquagga was given.
16225 if test "${enable_watchquagga+set}" = set; then :
16226   enableval=$enable_watchquagga;
16227 fi
16228
16229 # Check whether --enable-isisd was given.
16230 if test "${enable_isisd+set}" = set; then :
16231   enableval=$enable_isisd;
16232 fi
16233
16234 # Check whether --enable-pimd was given.
16235 if test "${enable_pimd+set}" = set; then :
16236   enableval=$enable_pimd;
16237 fi
16238
16239 # Check whether --enable-bgp-announce was given.
16240 if test "${enable_bgp_announce+set}" = set; then :
16241   enableval=$enable_bgp_announce;
16242 fi
16243
16244 # Check whether --enable-snmp was given.
16245 if test "${enable_snmp+set}" = set; then :
16246   enableval=$enable_snmp;
16247 fi
16248
16249
16250 # Check whether --with-libpam was given.
16251 if test "${with_libpam+set}" = set; then :
16252   withval=$with_libpam;
16253 fi
16254
16255 # Check whether --enable-tcp-zebra was given.
16256 if test "${enable_tcp_zebra+set}" = set; then :
16257   enableval=$enable_tcp_zebra;
16258 fi
16259
16260 # Check whether --enable-ospfapi was given.
16261 if test "${enable_ospfapi+set}" = set; then :
16262   enableval=$enable_ospfapi;
16263 fi
16264
16265 # Check whether --enable-ospfclient was given.
16266 if test "${enable_ospfclient+set}" = set; then :
16267   enableval=$enable_ospfclient;
16268 fi
16269
16270 # Check whether --enable-multipath was given.
16271 if test "${enable_multipath+set}" = set; then :
16272   enableval=$enable_multipath;
16273 fi
16274
16275 # Check whether --enable-user was given.
16276 if test "${enable_user+set}" = set; then :
16277   enableval=$enable_user;
16278 fi
16279
16280 # Check whether --enable-group was given.
16281 if test "${enable_group+set}" = set; then :
16282   enableval=$enable_group;
16283 fi
16284
16285 # Check whether --enable-vty_group was given.
16286 if test "${enable_vty_group+set}" = set; then :
16287   enableval=$enable_vty_group;
16288 fi
16289
16290 # Check whether --enable-configfile_mask was given.
16291 if test "${enable_configfile_mask+set}" = set; then :
16292   enableval=$enable_configfile_mask;
16293 fi
16294
16295 # Check whether --enable-logfile_mask was given.
16296 if test "${enable_logfile_mask+set}" = set; then :
16297   enableval=$enable_logfile_mask;
16298 fi
16299
16300
16301 # Check whether --enable-rtadv was given.
16302 if test "${enable_rtadv+set}" = set; then :
16303   enableval=$enable_rtadv;
16304 fi
16305
16306 # Check whether --enable-irdp was given.
16307 if test "${enable_irdp+set}" = set; then :
16308   enableval=$enable_irdp;
16309 fi
16310
16311 # Check whether --enable-isis_topology was given.
16312 if test "${enable_isis_topology+set}" = set; then :
16313   enableval=$enable_isis_topology;
16314 fi
16315
16316 # Check whether --enable-capabilities was given.
16317 if test "${enable_capabilities+set}" = set; then :
16318   enableval=$enable_capabilities;
16319 fi
16320
16321 # Check whether --enable-rusage was given.
16322 if test "${enable_rusage+set}" = set; then :
16323   enableval=$enable_rusage;
16324 fi
16325
16326 # Check whether --enable-gcc_ultra_verbose was given.
16327 if test "${enable_gcc_ultra_verbose+set}" = set; then :
16328   enableval=$enable_gcc_ultra_verbose;
16329 fi
16330
16331 # Check whether --enable-linux24_tcp_md5 was given.
16332 if test "${enable_linux24_tcp_md5+set}" = set; then :
16333   enableval=$enable_linux24_tcp_md5;
16334 fi
16335
16336 # Check whether --enable-gcc-rdynamic was given.
16337 if test "${enable_gcc_rdynamic+set}" = set; then :
16338   enableval=$enable_gcc_rdynamic;
16339 fi
16340
16341 # Check whether --enable-backtrace was given.
16342 if test "${enable_backtrace+set}" = set; then :
16343   enableval=$enable_backtrace;
16344 fi
16345
16346 # Check whether --enable-time-check was given.
16347 if test "${enable_time_check+set}" = set; then :
16348   enableval=$enable_time_check;
16349 fi
16350
16351 # Check whether --enable-pcreposix was given.
16352 if test "${enable_pcreposix+set}" = set; then :
16353   enableval=$enable_pcreposix;
16354 fi
16355
16356 # Check whether --enable-fpm was given.
16357 if test "${enable_fpm+set}" = set; then :
16358   enableval=$enable_fpm;
16359 fi
16360
16361 # Check whether --enable-werror was given.
16362 if test "${enable_werror+set}" = set; then :
16363   enableval=$enable_werror;
16364 fi
16365
16366 # Check whether --enable-protobuf was given.
16367 if test "${enable_protobuf+set}" = set; then :
16368   enableval=$enable_protobuf;
16369 fi
16370
16371
16372 # Check whether --enable-dev_build was given.
16373 if test "${enable_dev_build+set}" = set; then :
16374   enableval=$enable_dev_build;
16375 fi
16376
16377
16378 if test x"${enable_gcc_rdynamic}" != x"no" ; then
16379   if test x"${enable_gcc_rdynamic}" = x"yes" -o x"$COMPILER" = x"GCC"; then
16380     LDFLAGS="${LDFLAGS} -rdynamic"
16381   fi
16382 fi
16383
16384 if test x"${enable_time_check}" != x"no" ; then
16385   if test x"${enable_time_check}" = x"yes" -o x"${enable_time_check}" = x ; then
16386
16387 $as_echo "#define CONSUMED_TIME_CHECK 5000000" >>confdefs.h
16388
16389   else
16390
16391 cat >>confdefs.h <<_ACEOF
16392 #define CONSUMED_TIME_CHECK $enable_time_check
16393 _ACEOF
16394
16395   fi
16396 fi
16397
16398 if test "${enable_fpm}" = "yes"; then
16399
16400 $as_echo "#define HAVE_FPM /**/" >>confdefs.h
16401
16402 fi
16403
16404 if test "x${enable_dev_build}" = "xyes"; then
16405
16406 $as_echo "#define DEV_BUILD /**/" >>confdefs.h
16407
16408 fi
16409  if test "x$enable_dev_build" = "xyes"; then
16410   DEV_BUILD_TRUE=
16411   DEV_BUILD_FALSE='#'
16412 else
16413   DEV_BUILD_TRUE='#'
16414   DEV_BUILD_FALSE=
16415 fi
16416
16417
16418 #
16419 # Logic for protobuf support.
16420 #
16421 if test "$enable_protobuf" = "yes"; then
16422    have_protobuf=yes
16423
16424    # Check for protoc-c
16425    # Extract the first word of "protoc-c", so it can be a program name with args.
16426 set dummy protoc-c; ac_word=$2
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16428 $as_echo_n "checking for $ac_word... " >&6; }
16429 if ${ac_cv_prog_PROTOC_C+:} false; then :
16430   $as_echo_n "(cached) " >&6
16431 else
16432   if test -n "$PROTOC_C"; then
16433   ac_cv_prog_PROTOC_C="$PROTOC_C" # Let the user override the test.
16434 else
16435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16436 for as_dir in $PATH
16437 do
16438   IFS=$as_save_IFS
16439   test -z "$as_dir" && as_dir=.
16440     for ac_exec_ext in '' $ac_executable_extensions; do
16441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16442     ac_cv_prog_PROTOC_C="protoc-c"
16443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16444     break 2
16445   fi
16446 done
16447   done
16448 IFS=$as_save_IFS
16449
16450   test -z "$ac_cv_prog_PROTOC_C" && ac_cv_prog_PROTOC_C="/bin/false"
16451 fi
16452 fi
16453 PROTOC_C=$ac_cv_prog_PROTOC_C
16454 if test -n "$PROTOC_C"; then
16455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
16456 $as_echo "$PROTOC_C" >&6; }
16457 else
16458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16460 fi
16461
16462
16463    if test "x$PROTOC_C" = "x/bin/false"; then
16464       have_protobuf=no
16465    else
16466       found_protobuf_c=no
16467
16468 pkg_failed=no
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTOBUF_C" >&5
16470 $as_echo_n "checking for PROTOBUF_C... " >&6; }
16471
16472 if test -n "$PROTOBUF_C_CFLAGS"; then
16473     pkg_cv_PROTOBUF_C_CFLAGS="$PROTOBUF_C_CFLAGS"
16474  elif test -n "$PKG_CONFIG"; then
16475     if test -n "$PKG_CONFIG" && \
16476     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c >= 0.14\""; } >&5
16477   ($PKG_CONFIG --exists --print-errors "libprotobuf-c >= 0.14") 2>&5
16478   ac_status=$?
16479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16480   test $ac_status = 0; }; then
16481   pkg_cv_PROTOBUF_C_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c >= 0.14" 2>/dev/null`
16482                       test "x$?" != "x0" && pkg_failed=yes
16483 else
16484   pkg_failed=yes
16485 fi
16486  else
16487     pkg_failed=untried
16488 fi
16489 if test -n "$PROTOBUF_C_LIBS"; then
16490     pkg_cv_PROTOBUF_C_LIBS="$PROTOBUF_C_LIBS"
16491  elif test -n "$PKG_CONFIG"; then
16492     if test -n "$PKG_CONFIG" && \
16493     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c >= 0.14\""; } >&5
16494   ($PKG_CONFIG --exists --print-errors "libprotobuf-c >= 0.14") 2>&5
16495   ac_status=$?
16496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16497   test $ac_status = 0; }; then
16498   pkg_cv_PROTOBUF_C_LIBS=`$PKG_CONFIG --libs "libprotobuf-c >= 0.14" 2>/dev/null`
16499                       test "x$?" != "x0" && pkg_failed=yes
16500 else
16501   pkg_failed=yes
16502 fi
16503  else
16504     pkg_failed=untried
16505 fi
16506
16507
16508
16509 if test $pkg_failed = yes; then
16510         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16512
16513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16514         _pkg_short_errors_supported=yes
16515 else
16516         _pkg_short_errors_supported=no
16517 fi
16518         if test $_pkg_short_errors_supported = yes; then
16519                 PROTOBUF_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c >= 0.14" 2>&1`
16520         else
16521                 PROTOBUF_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c >= 0.14" 2>&1`
16522         fi
16523         # Put the nasty error message in config.log where it belongs
16524         echo "$PROTOBUF_C_PKG_ERRORS" >&5
16525
16526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config did not find libprotobuf-c" >&5
16527 $as_echo "pkg-config did not find libprotobuf-c" >&6; }
16528 elif test $pkg_failed = untried; then
16529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16530 $as_echo "no" >&6; }
16531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config did not find libprotobuf-c" >&5
16532 $as_echo "pkg-config did not find libprotobuf-c" >&6; }
16533 else
16534         PROTOBUF_C_CFLAGS=$pkg_cv_PROTOBUF_C_CFLAGS
16535         PROTOBUF_C_LIBS=$pkg_cv_PROTOBUF_C_LIBS
16536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16537 $as_echo "yes" >&6; }
16538         found_protobuf_c=yes
16539 fi
16540
16541       if test "x$found_protobuf_c" = "xyes"; then
16542          LDFLAGS="$LDFLAGS $PROTOBUF_C_LIBS"
16543          CFLAGS="$CFLAGS $PROTOBUF_C_CFLAGS"
16544       else
16545         ac_fn_c_check_header_mongrel "$LINENO" "google/protobuf-c/protobuf-c.h" "ac_cv_header_google_protobuf_c_protobuf_c_h" "$ac_includes_default"
16546 if test "x$ac_cv_header_google_protobuf_c_protobuf_c_h" = xyes; then :
16547
16548 else
16549   have_protobuf=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Couldn't find google/protobuf-c.h" >&5
16550 $as_echo "Couldn't find google/protobuf-c.h" >&6; }
16551 fi
16552
16553
16554       fi
16555    fi
16556 fi
16557
16558 # Fail if the user explicity enabled protobuf support and we couldn't
16559 # find the compiler or libraries.
16560 if test "x$have_protobuf" = "xno" && test "x$enable_protobuf" = "xyes"; then
16561    as_fn_error $? "Protobuf enabled explicitly but can't find libraries/tools" "$LINENO" 5
16562 fi
16563
16564 if test "x$have_protobuf" = "xyes"; then
16565
16566 $as_echo "#define HAVE_PROTOBUF /**/" >>confdefs.h
16567
16568 fi
16569
16570  if test "x$have_protobuf" = "xyes"; then
16571   HAVE_PROTOBUF_TRUE=
16572   HAVE_PROTOBUF_FALSE='#'
16573 else
16574   HAVE_PROTOBUF_TRUE='#'
16575   HAVE_PROTOBUF_FALSE=
16576 fi
16577
16578
16579 #
16580 # End of logic for protobuf support.
16581 #
16582
16583 if test "${enable_tcp_zebra}" = "yes"; then
16584
16585 $as_echo "#define HAVE_TCP_ZEBRA /**/" >>confdefs.h
16586
16587 fi
16588
16589 if test "${enable_linux24_tcp_md5}" = "yes"; then
16590
16591 $as_echo "#define HAVE_TCP_MD5_LINUX24 /**/" >>confdefs.h
16592
16593 fi
16594
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zebra should be configurable to send Route Advertisements" >&5
16596 $as_echo_n "checking if zebra should be configurable to send Route Advertisements... " >&6; }
16597 if test "${enable_rtadv}" != "no"; then
16598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16599 $as_echo "yes" >&6; }
16600
16601 $as_echo "#define HAVE_RTADV /**/" >>confdefs.h
16602
16603 else
16604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16605 $as_echo "no" >&6; }
16606 fi
16607
16608 if test "${enable_irdp}" = "yes"; then
16609
16610 $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
16611
16612 fi
16613
16614 if test "${enable_isisd}" != "no" && test "${enable_isis_topology}" = yes; then
16615
16616 $as_echo "#define TOPOLOGY_GENERATE /**/" >>confdefs.h
16617
16618   ISIS_TOPOLOGY_INCLUDES="-I\$(srcdir)/topology"
16619   ISIS_TOPOLOGY_DIR="topology"
16620   ISIS_TOPOLOGY_LIB="./topology/libtopology.a"
16621 fi
16622
16623
16624
16625
16626
16627 if test x"${enable_user}" = x"no"; then
16628   enable_user=""
16629 else
16630   if test x"${enable_user}" = x"yes" || test x"${enable_user}" = x""; then
16631     enable_user="quagga"
16632   fi
16633
16634 cat >>confdefs.h <<_ACEOF
16635 #define QUAGGA_USER "${enable_user}"
16636 _ACEOF
16637
16638 fi
16639
16640 if test x"${enable_group}" = x"no"; then
16641   enable_group=""
16642 else
16643   if test x"${enable_group}" = x"yes" || test x"${enable_group}" = x""; then
16644     enable_group="quagga"
16645   fi
16646
16647 cat >>confdefs.h <<_ACEOF
16648 #define QUAGGA_GROUP "${enable_group}"
16649 _ACEOF
16650
16651 fi
16652
16653 if test x"${enable_vty_group}" = x"yes" ; then
16654   as_fn_error $? "--enable-vty-group requires a group as argument, not yes" "$LINENO" 5
16655 elif test x"${enable_vty_group}" != x""; then
16656   if test x"${enable_vty_group}" != x"no"; then
16657
16658 cat >>confdefs.h <<_ACEOF
16659 #define VTY_GROUP "${enable_vty_group}"
16660 _ACEOF
16661
16662   fi
16663 fi
16664
16665
16666
16667
16668 enable_configfile_mask=${enable_configfile_mask:-0600}
16669
16670 cat >>confdefs.h <<_ACEOF
16671 #define CONFIGFILE_MASK ${enable_configfile_mask}
16672 _ACEOF
16673
16674
16675 enable_logfile_mask=${enable_logfile_mask:-0600}
16676
16677 cat >>confdefs.h <<_ACEOF
16678 #define LOGFILE_MASK ${enable_logfile_mask}
16679 _ACEOF
16680
16681
16682 MPATH_NUM=1
16683
16684 case "${enable_multipath}" in
16685   0)
16686     MPATH_NUM=64
16687     ;;
16688   [1-9]|[1-9][0-9]|[1-9][0-9][0-9])
16689     MPATH_NUM="${enable_multipath}"
16690     ;;
16691   "")
16692     ;;
16693   *)
16694     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16696 as_fn_error $? "Please specify digit to enable multipath ARG
16697 See \`config.log' for more details" "$LINENO" 5; }
16698     ;;
16699 esac
16700
16701
16702 cat >>confdefs.h <<_ACEOF
16703 #define MULTIPATH_NUM $MPATH_NUM
16704 _ACEOF
16705
16706
16707 if test "x${EXTRAVERSION}" != "x" ; then
16708   VERSION="${VERSION}${EXTRAVERSION}"
16709   PACKAGE_VERSION="${PACKAGE_VERSION}${EXTRAVERSION}"
16710   PACKAGE_STRING="${PACKAGE_STRING}${EXTRAVERSION}"
16711 fi
16712
16713 if test "x$with_pkg_git_version" = "xyes"; then
16714         if test -d "${srcdir}/.git"; then
16715
16716 $as_echo "#define GIT_VERSION 1" >>confdefs.h
16717
16718         else    with_pkg_git_version="no"
16719                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pkg-git-version given, but this is not a git checkout" >&5
16720 $as_echo "$as_me: WARNING: --with-pkg-git-version given, but this is not a git checkout" >&2;}
16721         fi
16722 fi
16723  if test "x$with_pkg_git_version" = "xyes"; then
16724   GIT_VERSION_TRUE=
16725   GIT_VERSION_FALSE='#'
16726 else
16727   GIT_VERSION_TRUE='#'
16728   GIT_VERSION_FALSE=
16729 fi
16730
16731
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16733 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16734 if ${ac_cv_c_const+:} false; then :
16735   $as_echo_n "(cached) " >&6
16736 else
16737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h.  */
16739
16740 int
16741 main ()
16742 {
16743
16744 #ifndef __cplusplus
16745   /* Ultrix mips cc rejects this sort of thing.  */
16746   typedef int charset[2];
16747   const charset cs = { 0, 0 };
16748   /* SunOS 4.1.1 cc rejects this.  */
16749   char const *const *pcpcc;
16750   char **ppc;
16751   /* NEC SVR4.0.2 mips cc rejects this.  */
16752   struct point {int x, y;};
16753   static struct point const zero = {0,0};
16754   /* AIX XL C 1.02.0.0 rejects this.
16755      It does not let you subtract one const X* pointer from another in
16756      an arm of an if-expression whose if-part is not a constant
16757      expression */
16758   const char *g = "string";
16759   pcpcc = &g + (g ? g-g : 0);
16760   /* HPUX 7.0 cc rejects these. */
16761   ++pcpcc;
16762   ppc = (char**) pcpcc;
16763   pcpcc = (char const *const *) ppc;
16764   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16765     char tx;
16766     char *t = &tx;
16767     char const *s = 0 ? (char *) 0 : (char const *) 0;
16768
16769     *t++ = 0;
16770     if (s) return 0;
16771   }
16772   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16773     int x[] = {25, 17};
16774     const int *foo = &x[0];
16775     ++foo;
16776   }
16777   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16778     typedef const int *iptr;
16779     iptr p = 0;
16780     ++p;
16781   }
16782   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16783        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16784     struct s { int j; const int *ap[3]; } bx;
16785     struct s *b = &bx; b->j = 5;
16786   }
16787   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16788     const int foo = 10;
16789     if (!foo) return 0;
16790   }
16791   return !cs[0] && !zero.x;
16792 #endif
16793
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 if ac_fn_c_try_compile "$LINENO"; then :
16799   ac_cv_c_const=yes
16800 else
16801   ac_cv_c_const=no
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804 fi
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16806 $as_echo "$ac_cv_c_const" >&6; }
16807 if test $ac_cv_c_const = no; then
16808
16809 $as_echo "#define const /**/" >>confdefs.h
16810
16811 fi
16812
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16814 $as_echo_n "checking for inline... " >&6; }
16815 if ${ac_cv_c_inline+:} false; then :
16816   $as_echo_n "(cached) " >&6
16817 else
16818   ac_cv_c_inline=no
16819 for ac_kw in inline __inline__ __inline; do
16820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h.  */
16822 #ifndef __cplusplus
16823 typedef int foo_t;
16824 static $ac_kw foo_t static_foo () {return 0; }
16825 $ac_kw foo_t foo () {return 0; }
16826 #endif
16827
16828 _ACEOF
16829 if ac_fn_c_try_compile "$LINENO"; then :
16830   ac_cv_c_inline=$ac_kw
16831 fi
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833   test "$ac_cv_c_inline" != no && break
16834 done
16835
16836 fi
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16838 $as_echo "$ac_cv_c_inline" >&6; }
16839
16840 case $ac_cv_c_inline in
16841   inline | yes) ;;
16842   *)
16843     case $ac_cv_c_inline in
16844       no) ac_val=;;
16845       *) ac_val=$ac_cv_c_inline;;
16846     esac
16847     cat >>confdefs.h <<_ACEOF
16848 #ifndef __cplusplus
16849 #define inline $ac_val
16850 #endif
16851 _ACEOF
16852     ;;
16853 esac
16854
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16856 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16857 if ${ac_cv_c_restrict+:} false; then :
16858   $as_echo_n "(cached) " >&6
16859 else
16860   ac_cv_c_restrict=no
16861    # The order here caters to the fact that C++ does not require restrict.
16862    for ac_kw in __restrict __restrict__ _Restrict restrict; do
16863      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h.  */
16865 typedef int * int_ptr;
16866         int foo (int_ptr $ac_kw ip) {
16867         return ip[0];
16868        }
16869 int
16870 main ()
16871 {
16872 int s[1];
16873         int * $ac_kw t = s;
16874         t[0] = 0;
16875         return foo(t)
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881   ac_cv_c_restrict=$ac_kw
16882 fi
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884      test "$ac_cv_c_restrict" != no && break
16885    done
16886
16887 fi
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16889 $as_echo "$ac_cv_c_restrict" >&6; }
16890
16891  case $ac_cv_c_restrict in
16892    restrict) ;;
16893    no) $as_echo "#define restrict /**/" >>confdefs.h
16894  ;;
16895    *)  cat >>confdefs.h <<_ACEOF
16896 #define restrict $ac_cv_c_restrict
16897 _ACEOF
16898  ;;
16899  esac
16900
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16902 $as_echo_n "checking for working volatile... " >&6; }
16903 if ${ac_cv_c_volatile+:} false; then :
16904   $as_echo_n "(cached) " >&6
16905 else
16906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h.  */
16908
16909 int
16910 main ()
16911 {
16912
16913 volatile int x;
16914 int * volatile y = (int *) 0;
16915 return !x && !y;
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_compile "$LINENO"; then :
16921   ac_cv_c_volatile=yes
16922 else
16923   ac_cv_c_volatile=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926 fi
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16928 $as_echo "$ac_cv_c_volatile" >&6; }
16929 if test $ac_cv_c_volatile = no; then
16930
16931 $as_echo "#define volatile /**/" >>confdefs.h
16932
16933 fi
16934
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16936 $as_echo_n "checking for ANSI C header files... " >&6; }
16937 if ${ac_cv_header_stdc+:} false; then :
16938   $as_echo_n "(cached) " >&6
16939 else
16940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h.  */
16942 #include <stdlib.h>
16943 #include <stdarg.h>
16944 #include <string.h>
16945 #include <float.h>
16946
16947 int
16948 main ()
16949 {
16950
16951   ;
16952   return 0;
16953 }
16954 _ACEOF
16955 if ac_fn_c_try_compile "$LINENO"; then :
16956   ac_cv_header_stdc=yes
16957 else
16958   ac_cv_header_stdc=no
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961
16962 if test $ac_cv_header_stdc = yes; then
16963   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h.  */
16966 #include <string.h>
16967
16968 _ACEOF
16969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16970   $EGREP "memchr" >/dev/null 2>&1; then :
16971
16972 else
16973   ac_cv_header_stdc=no
16974 fi
16975 rm -f conftest*
16976
16977 fi
16978
16979 if test $ac_cv_header_stdc = yes; then
16980   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h.  */
16983 #include <stdlib.h>
16984
16985 _ACEOF
16986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16987   $EGREP "free" >/dev/null 2>&1; then :
16988
16989 else
16990   ac_cv_header_stdc=no
16991 fi
16992 rm -f conftest*
16993
16994 fi
16995
16996 if test $ac_cv_header_stdc = yes; then
16997   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16998   if test "$cross_compiling" = yes; then :
16999   :
17000 else
17001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h.  */
17003 #include <ctype.h>
17004 #include <stdlib.h>
17005 #if ((' ' & 0x0FF) == 0x020)
17006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17008 #else
17009 # define ISLOWER(c) \
17010                    (('a' <= (c) && (c) <= 'i') \
17011                      || ('j' <= (c) && (c) <= 'r') \
17012                      || ('s' <= (c) && (c) <= 'z'))
17013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17014 #endif
17015
17016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17017 int
17018 main ()
17019 {
17020   int i;
17021   for (i = 0; i < 256; i++)
17022     if (XOR (islower (i), ISLOWER (i))
17023         || toupper (i) != TOUPPER (i))
17024       return 2;
17025   return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_run "$LINENO"; then :
17029
17030 else
17031   ac_cv_header_stdc=no
17032 fi
17033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17034   conftest.$ac_objext conftest.beam conftest.$ac_ext
17035 fi
17036
17037 fi
17038 fi
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17040 $as_echo "$ac_cv_header_stdc" >&6; }
17041 if test $ac_cv_header_stdc = yes; then
17042
17043 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17044
17045 fi
17046
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17048 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17049 if ${ac_cv_header_time+:} false; then :
17050   $as_echo_n "(cached) " >&6
17051 else
17052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h.  */
17054 #include <sys/types.h>
17055 #include <sys/time.h>
17056 #include <time.h>
17057
17058 int
17059 main ()
17060 {
17061 if ((struct tm *) 0)
17062 return 0;
17063   ;
17064   return 0;
17065 }
17066 _ACEOF
17067 if ac_fn_c_try_compile "$LINENO"; then :
17068   ac_cv_header_time=yes
17069 else
17070   ac_cv_header_time=no
17071 fi
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 fi
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17075 $as_echo "$ac_cv_header_time" >&6; }
17076 if test $ac_cv_header_time = yes; then
17077
17078 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17079
17080 fi
17081
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
17083 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17084 if ${ac_cv_header_sys_wait_h+:} false; then :
17085   $as_echo_n "(cached) " >&6
17086 else
17087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h.  */
17089 #include <sys/types.h>
17090 #include <sys/wait.h>
17091 #ifndef WEXITSTATUS
17092 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17093 #endif
17094 #ifndef WIFEXITED
17095 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17096 #endif
17097
17098 int
17099 main ()
17100 {
17101   int s;
17102   wait (&s);
17103   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17104   ;
17105   return 0;
17106 }
17107 _ACEOF
17108 if ac_fn_c_try_compile "$LINENO"; then :
17109   ac_cv_header_sys_wait_h=yes
17110 else
17111   ac_cv_header_sys_wait_h=no
17112 fi
17113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
17116 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
17117 if test $ac_cv_header_sys_wait_h = yes; then
17118
17119 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17120
17121 fi
17122
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17124 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17125 if ${ac_cv_header_stdbool_h+:} false; then :
17126   $as_echo_n "(cached) " >&6
17127 else
17128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h.  */
17130
17131              #include <stdbool.h>
17132              #ifndef bool
17133               "error: bool is not defined"
17134              #endif
17135              #ifndef false
17136               "error: false is not defined"
17137              #endif
17138              #if false
17139               "error: false is not 0"
17140              #endif
17141              #ifndef true
17142               "error: true is not defined"
17143              #endif
17144              #if true != 1
17145               "error: true is not 1"
17146              #endif
17147              #ifndef __bool_true_false_are_defined
17148               "error: __bool_true_false_are_defined is not defined"
17149              #endif
17150
17151              struct s { _Bool s: 1; _Bool t; } s;
17152
17153              char a[true == 1 ? 1 : -1];
17154              char b[false == 0 ? 1 : -1];
17155              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17156              char d[(bool) 0.5 == true ? 1 : -1];
17157              /* See body of main program for 'e'.  */
17158              char f[(_Bool) 0.0 == false ? 1 : -1];
17159              char g[true];
17160              char h[sizeof (_Bool)];
17161              char i[sizeof s.t];
17162              enum { j = false, k = true, l = false * true, m = true * 256 };
17163              /* The following fails for
17164                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17165              _Bool n[m];
17166              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17167              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17168              /* Catch a bug in an HP-UX C compiler.  See
17169                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17170                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17171               */
17172              _Bool q = true;
17173              _Bool *pq = &q;
17174
17175 int
17176 main ()
17177 {
17178
17179              bool e = &s;
17180              *pq |= q;
17181              *pq |= ! q;
17182              /* Refer to every declared value, to avoid compiler optimizations.  */
17183              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17184                      + !m + !n + !o + !p + !q + !pq);
17185
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 if ac_fn_c_try_compile "$LINENO"; then :
17191   ac_cv_header_stdbool_h=yes
17192 else
17193   ac_cv_header_stdbool_h=no
17194 fi
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 fi
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17198 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17199    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17200 if test "x$ac_cv_type__Bool" = xyes; then :
17201
17202 cat >>confdefs.h <<_ACEOF
17203 #define HAVE__BOOL 1
17204 _ACEOF
17205
17206
17207 fi
17208
17209
17210 if test $ac_cv_header_stdbool_h = yes; then
17211
17212 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17213
17214 fi
17215
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17217 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17218 if ${ac_cv_type_uid_t+:} false; then :
17219   $as_echo_n "(cached) " >&6
17220 else
17221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h.  */
17223 #include <sys/types.h>
17224
17225 _ACEOF
17226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17227   $EGREP "uid_t" >/dev/null 2>&1; then :
17228   ac_cv_type_uid_t=yes
17229 else
17230   ac_cv_type_uid_t=no
17231 fi
17232 rm -f conftest*
17233
17234 fi
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17236 $as_echo "$ac_cv_type_uid_t" >&6; }
17237 if test $ac_cv_type_uid_t = no; then
17238
17239 $as_echo "#define uid_t int" >>confdefs.h
17240
17241
17242 $as_echo "#define gid_t int" >>confdefs.h
17243
17244 fi
17245
17246 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17247 if test "x$ac_cv_type_mode_t" = xyes; then :
17248
17249 else
17250
17251 cat >>confdefs.h <<_ACEOF
17252 #define mode_t int
17253 _ACEOF
17254
17255 fi
17256
17257 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17258 if test "x$ac_cv_type_size_t" = xyes; then :
17259
17260 else
17261
17262 cat >>confdefs.h <<_ACEOF
17263 #define size_t unsigned int
17264 _ACEOF
17265
17266 fi
17267
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17269 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17270 if ${ac_cv_struct_tm+:} false; then :
17271   $as_echo_n "(cached) " >&6
17272 else
17273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274 /* end confdefs.h.  */
17275 #include <sys/types.h>
17276 #include <time.h>
17277
17278 int
17279 main ()
17280 {
17281 struct tm tm;
17282                                      int *p = &tm.tm_sec;
17283                                      return !p;
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 if ac_fn_c_try_compile "$LINENO"; then :
17289   ac_cv_struct_tm=time.h
17290 else
17291   ac_cv_struct_tm=sys/time.h
17292 fi
17293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17294 fi
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17296 $as_echo "$ac_cv_struct_tm" >&6; }
17297 if test $ac_cv_struct_tm = sys/time.h; then
17298
17299 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17300
17301 fi
17302
17303
17304 for ac_header in stropts.h sys/ksym.h sys/times.h sys/select.h \
17305         sys/types.h linux/version.h netdb.h asm/types.h \
17306         sys/cdefs.h sys/param.h limits.h signal.h \
17307         sys/socket.h netinet/in.h time.h sys/time.h features.h
17308 do :
17309   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17312   cat >>confdefs.h <<_ACEOF
17313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17314 _ACEOF
17315
17316 fi
17317
17318 done
17319
17320
17321
17322
17323 for ac_header in net/if.h
17324 do :
17325   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
17326 #define _XPG4_2
17327 #define __EXTENSIONS__
17328 #endif
17329 #include <stdio.h>
17330 #if STDC_HEADERS
17331 # include <stdlib.h>
17332 # include <stddef.h>
17333 #else
17334 # if HAVE_STDLIB_H
17335 #  include <stdlib.h>
17336 # endif
17337 #endif
17338 #if HAVE_SYS_TYPES_H
17339 # include <sys/types.h>
17340 #endif
17341 /* sys/conf.h depends on param.h on FBSD at least */
17342 #if HAVE_SYS_PARAM_H
17343 # include <sys/param.h>
17344 #endif
17345 /* Required for MAXSIG */
17346 #if HAVE_SIGNAL_H
17347 # include <signal.h>
17348 #endif
17349 #if HAVE_SYS_SOCKET_H
17350 # include <sys/socket.h>
17351 #endif
17352 #ifdef __APPLE__
17353 # define __APPLE_USE_RFC_3542
17354 #endif
17355 #if HAVE_NETINET_IN_H
17356 # include <netinet/in.h>
17357 #endif
17358 #ifdef TIME_WITH_SYS_TIME
17359 # include <sys/time.h>
17360 # include <time.h>
17361 #else
17362 # ifdef HAVE_SYS_TIME_H
17363 #  include <sys/time.h>
17364 # else
17365 #  include <time.h>
17366 # endif
17367 #endif /* TIME_WITH_SYS_TIME */
17368
17369 "
17370 if test "x$ac_cv_header_net_if_h" = xyes; then :
17371   cat >>confdefs.h <<_ACEOF
17372 #define HAVE_NET_IF_H 1
17373 _ACEOF
17374
17375 fi
17376
17377 done
17378
17379
17380
17381
17382 for ac_header in net/if_var.h
17383 do :
17384   ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#ifdef SUNOS_5
17385 #define _XPG4_2
17386 #define __EXTENSIONS__
17387 #endif
17388 #include <stdio.h>
17389 #if STDC_HEADERS
17390 # include <stdlib.h>
17391 # include <stddef.h>
17392 #else
17393 # if HAVE_STDLIB_H
17394 #  include <stdlib.h>
17395 # endif
17396 #endif
17397 #if HAVE_SYS_TYPES_H
17398 # include <sys/types.h>
17399 #endif
17400 /* sys/conf.h depends on param.h on FBSD at least */
17401 #if HAVE_SYS_PARAM_H
17402 # include <sys/param.h>
17403 #endif
17404 /* Required for MAXSIG */
17405 #if HAVE_SIGNAL_H
17406 # include <signal.h>
17407 #endif
17408 #if HAVE_SYS_SOCKET_H
17409 # include <sys/socket.h>
17410 #endif
17411 #ifdef __APPLE__
17412 # define __APPLE_USE_RFC_3542
17413 #endif
17414 #if HAVE_NETINET_IN_H
17415 # include <netinet/in.h>
17416 #endif
17417 #ifdef TIME_WITH_SYS_TIME
17418 # include <sys/time.h>
17419 # include <time.h>
17420 #else
17421 # ifdef HAVE_SYS_TIME_H
17422 #  include <sys/time.h>
17423 # else
17424 #  include <time.h>
17425 # endif
17426 #endif /* TIME_WITH_SYS_TIME */
17427
17428 #if HAVE_NET_IF_H
17429 # include <net/if.h>
17430 #endif
17431
17432 "
17433 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
17434   cat >>confdefs.h <<_ACEOF
17435 #define HAVE_NET_IF_VAR_H 1
17436 _ACEOF
17437
17438 fi
17439
17440 done
17441
17442
17443
17444 for ac_header in sys/un.h netinet/in_systm.h netinet/in_var.h \
17445         net/if_dl.h net/netopt.h net/route.h \
17446         inet/nd.h arpa/inet.h netinet/ip_icmp.h \
17447         fcntl.h stddef.h sys/ioctl.h syslog.h wchar.h wctype.h \
17448         sys/sysctl.h sys/sockio.h kvm.h sys/conf.h
17449 do :
17450   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17451 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
17452 #define _XPG4_2
17453 #define __EXTENSIONS__
17454 #endif
17455 #include <stdio.h>
17456 #if STDC_HEADERS
17457 # include <stdlib.h>
17458 # include <stddef.h>
17459 #else
17460 # if HAVE_STDLIB_H
17461 #  include <stdlib.h>
17462 # endif
17463 #endif
17464 #if HAVE_SYS_TYPES_H
17465 # include <sys/types.h>
17466 #endif
17467 /* sys/conf.h depends on param.h on FBSD at least */
17468 #if HAVE_SYS_PARAM_H
17469 # include <sys/param.h>
17470 #endif
17471 /* Required for MAXSIG */
17472 #if HAVE_SIGNAL_H
17473 # include <signal.h>
17474 #endif
17475 #if HAVE_SYS_SOCKET_H
17476 # include <sys/socket.h>
17477 #endif
17478 #ifdef __APPLE__
17479 # define __APPLE_USE_RFC_3542
17480 #endif
17481 #if HAVE_NETINET_IN_H
17482 # include <netinet/in.h>
17483 #endif
17484 #ifdef TIME_WITH_SYS_TIME
17485 # include <sys/time.h>
17486 # include <time.h>
17487 #else
17488 # ifdef HAVE_SYS_TIME_H
17489 #  include <sys/time.h>
17490 # else
17491 #  include <time.h>
17492 # endif
17493 #endif /* TIME_WITH_SYS_TIME */
17494
17495 #if HAVE_NET_IF_H
17496 # include <net/if.h>
17497 #endif
17498
17499 #if HAVE_NET_IF_VAR_H
17500 # include <net/if_var.h>
17501 #endif
17502
17503 "
17504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17505   cat >>confdefs.h <<_ACEOF
17506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17507 _ACEOF
17508
17509 fi
17510
17511 done
17512
17513
17514 for ac_header in ucontext.h
17515 do :
17516   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#ifndef __USE_GNU
17517 #define __USE_GNU
17518 #endif /* __USE_GNU */
17519 #ifdef SUNOS_5
17520 #define _XPG4_2
17521 #define __EXTENSIONS__
17522 #endif
17523 #include <stdio.h>
17524 #if STDC_HEADERS
17525 # include <stdlib.h>
17526 # include <stddef.h>
17527 #else
17528 # if HAVE_STDLIB_H
17529 #  include <stdlib.h>
17530 # endif
17531 #endif
17532 #if HAVE_SYS_TYPES_H
17533 # include <sys/types.h>
17534 #endif
17535 /* sys/conf.h depends on param.h on FBSD at least */
17536 #if HAVE_SYS_PARAM_H
17537 # include <sys/param.h>
17538 #endif
17539 /* Required for MAXSIG */
17540 #if HAVE_SIGNAL_H
17541 # include <signal.h>
17542 #endif
17543 #if HAVE_SYS_SOCKET_H
17544 # include <sys/socket.h>
17545 #endif
17546 #ifdef __APPLE__
17547 # define __APPLE_USE_RFC_3542
17548 #endif
17549 #if HAVE_NETINET_IN_H
17550 # include <netinet/in.h>
17551 #endif
17552 #ifdef TIME_WITH_SYS_TIME
17553 # include <sys/time.h>
17554 # include <time.h>
17555 #else
17556 # ifdef HAVE_SYS_TIME_H
17557 #  include <sys/time.h>
17558 # else
17559 #  include <time.h>
17560 # endif
17561 #endif /* TIME_WITH_SYS_TIME */
17562
17563 #if HAVE_NET_IF_H
17564 # include <net/if.h>
17565 #endif
17566
17567 #if HAVE_NET_IF_VAR_H
17568 # include <net/if_var.h>
17569 #endif
17570
17571
17572 "
17573 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17574   cat >>confdefs.h <<_ACEOF
17575 #define HAVE_UCONTEXT_H 1
17576 _ACEOF
17577
17578 fi
17579
17580 done
17581
17582
17583
17584 ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.uc_regs" "ac_cv_member_ucontext_t_uc_mcontext_uc_regs" "#include <ucontext.h>
17585 "
17586 if test "x$ac_cv_member_ucontext_t_uc_mcontext_uc_regs" = xyes; then :
17587
17588 cat >>confdefs.h <<_ACEOF
17589 #define HAVE_UCONTEXT_T_UC_MCONTEXT_UC_REGS 1
17590 _ACEOF
17591
17592
17593 fi
17594
17595 ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.regs" "ac_cv_member_ucontext_t_uc_mcontext_regs" "#include <ucontext.h>
17596 "
17597 if test "x$ac_cv_member_ucontext_t_uc_mcontext_regs" = xyes; then :
17598
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_UCONTEXT_T_UC_MCONTEXT_REGS 1
17601 _ACEOF
17602
17603 ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.regs.nip" "ac_cv_member_ucontext_t_uc_mcontext_regs_nip" "#include <ucontext.h>
17604 "
17605 if test "x$ac_cv_member_ucontext_t_uc_mcontext_regs_nip" = xyes; then :
17606
17607 cat >>confdefs.h <<_ACEOF
17608 #define HAVE_UCONTEXT_T_UC_MCONTEXT_REGS_NIP 1
17609 _ACEOF
17610
17611
17612 fi
17613
17614 fi
17615
17616 ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.gregs" "ac_cv_member_ucontext_t_uc_mcontext_gregs" "#include <ucontext.h>
17617 "
17618 if test "x$ac_cv_member_ucontext_t_uc_mcontext_gregs" = xyes; then :
17619
17620 cat >>confdefs.h <<_ACEOF
17621 #define HAVE_UCONTEXT_T_UC_MCONTEXT_GREGS 1
17622 _ACEOF
17623
17624
17625 fi
17626
17627
17628
17629
17630 case "$host" in
17631   *-sunos5.[6-7]* | *-solaris2.[6-7]*)
17632       opsys=sol2-6
17633
17634 $as_echo "#define SUNOS_56 1" >>confdefs.h
17635
17636
17637 $as_echo "#define SUNOS_5 1" >>confdefs.h
17638
17639       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
17640 $as_echo_n "checking for main in -lxnet... " >&6; }
17641 if ${ac_cv_lib_xnet_main+:} false; then :
17642   $as_echo_n "(cached) " >&6
17643 else
17644   ac_check_lib_save_LIBS=$LIBS
17645 LIBS="-lxnet  $LIBS"
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h.  */
17648
17649
17650 int
17651 main ()
17652 {
17653 return main ();
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 if ac_fn_c_try_link "$LINENO"; then :
17659   ac_cv_lib_xnet_main=yes
17660 else
17661   ac_cv_lib_xnet_main=no
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext \
17664     conftest$ac_exeext conftest.$ac_ext
17665 LIBS=$ac_check_lib_save_LIBS
17666 fi
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
17668 $as_echo "$ac_cv_lib_xnet_main" >&6; }
17669 if test "x$ac_cv_lib_xnet_main" = xyes; then :
17670   cat >>confdefs.h <<_ACEOF
17671 #define HAVE_LIBXNET 1
17672 _ACEOF
17673
17674   LIBS="-lxnet $LIBS"
17675
17676 fi
17677
17678       CURSES=-lcurses
17679       SOLARIS="solaris"
17680   ;;
17681   *-sunos5.[8-9] \
17682   | *-sunos5.1[0-9] \
17683   | *-sunos5.1[0-9].[0-9] \
17684   | *-solaris2.[8-9] \
17685   | *-solaris2.1[0-9] \
17686   | *-solaris2.1[0-9].[0-9])
17687       opsys=sol8
17688
17689 $as_echo "#define SUNOS_59 1" >>confdefs.h
17690
17691
17692 $as_echo "#define SUNOS_5 1" >>confdefs.h
17693
17694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
17695 $as_echo_n "checking for main in -lsocket... " >&6; }
17696 if ${ac_cv_lib_socket_main+:} false; then :
17697   $as_echo_n "(cached) " >&6
17698 else
17699   ac_check_lib_save_LIBS=$LIBS
17700 LIBS="-lsocket  $LIBS"
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h.  */
17703
17704
17705 int
17706 main ()
17707 {
17708 return main ();
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_link "$LINENO"; then :
17714   ac_cv_lib_socket_main=yes
17715 else
17716   ac_cv_lib_socket_main=no
17717 fi
17718 rm -f core conftest.err conftest.$ac_objext \
17719     conftest$ac_exeext conftest.$ac_ext
17720 LIBS=$ac_check_lib_save_LIBS
17721 fi
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
17723 $as_echo "$ac_cv_lib_socket_main" >&6; }
17724 if test "x$ac_cv_lib_socket_main" = xyes; then :
17725   cat >>confdefs.h <<_ACEOF
17726 #define HAVE_LIBSOCKET 1
17727 _ACEOF
17728
17729   LIBS="-lsocket $LIBS"
17730
17731 fi
17732
17733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
17734 $as_echo_n "checking for main in -lnsl... " >&6; }
17735 if ${ac_cv_lib_nsl_main+:} false; then :
17736   $as_echo_n "(cached) " >&6
17737 else
17738   ac_check_lib_save_LIBS=$LIBS
17739 LIBS="-lnsl  $LIBS"
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h.  */
17742
17743
17744 int
17745 main ()
17746 {
17747 return main ();
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 if ac_fn_c_try_link "$LINENO"; then :
17753   ac_cv_lib_nsl_main=yes
17754 else
17755   ac_cv_lib_nsl_main=no
17756 fi
17757 rm -f core conftest.err conftest.$ac_objext \
17758     conftest$ac_exeext conftest.$ac_ext
17759 LIBS=$ac_check_lib_save_LIBS
17760 fi
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
17762 $as_echo "$ac_cv_lib_nsl_main" >&6; }
17763 if test "x$ac_cv_lib_nsl_main" = xyes; then :
17764   cat >>confdefs.h <<_ACEOF
17765 #define HAVE_LIBNSL 1
17766 _ACEOF
17767
17768   LIBS="-lnsl $LIBS"
17769
17770 fi
17771
17772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lumem" >&5
17773 $as_echo_n "checking for main in -lumem... " >&6; }
17774 if ${ac_cv_lib_umem_main+:} false; then :
17775   $as_echo_n "(cached) " >&6
17776 else
17777   ac_check_lib_save_LIBS=$LIBS
17778 LIBS="-lumem  $LIBS"
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h.  */
17781
17782
17783 int
17784 main ()
17785 {
17786 return main ();
17787   ;
17788   return 0;
17789 }
17790 _ACEOF
17791 if ac_fn_c_try_link "$LINENO"; then :
17792   ac_cv_lib_umem_main=yes
17793 else
17794   ac_cv_lib_umem_main=no
17795 fi
17796 rm -f core conftest.err conftest.$ac_objext \
17797     conftest$ac_exeext conftest.$ac_ext
17798 LIBS=$ac_check_lib_save_LIBS
17799 fi
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_main" >&5
17801 $as_echo "$ac_cv_lib_umem_main" >&6; }
17802 if test "x$ac_cv_lib_umem_main" = xyes; then :
17803   cat >>confdefs.h <<_ACEOF
17804 #define HAVE_LIBUMEM 1
17805 _ACEOF
17806
17807   LIBS="-lumem $LIBS"
17808
17809 fi
17810
17811       for ac_func in printstack
17812 do :
17813   ac_fn_c_check_func "$LINENO" "printstack" "ac_cv_func_printstack"
17814 if test "x$ac_cv_func_printstack" = xyes; then :
17815   cat >>confdefs.h <<_ACEOF
17816 #define HAVE_PRINTSTACK 1
17817 _ACEOF
17818
17819 $as_echo "#define HAVE_PRINTSTACK 1" >>confdefs.h
17820
17821
17822 $as_echo "#define HAVE_STACK_TRACE 1" >>confdefs.h
17823
17824
17825 fi
17826 done
17827
17828       CURSES=-lcurses
17829       SOLARIS="solaris"
17830   ;;
17831   *-sunos5* | *-solaris2*)
17832
17833 $as_echo "#define SUNOS_5 /**/" >>confdefs.h
17834
17835       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
17836 $as_echo_n "checking for main in -lsocket... " >&6; }
17837 if ${ac_cv_lib_socket_main+:} false; then :
17838   $as_echo_n "(cached) " >&6
17839 else
17840   ac_check_lib_save_LIBS=$LIBS
17841 LIBS="-lsocket  $LIBS"
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h.  */
17844
17845
17846 int
17847 main ()
17848 {
17849 return main ();
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 if ac_fn_c_try_link "$LINENO"; then :
17855   ac_cv_lib_socket_main=yes
17856 else
17857   ac_cv_lib_socket_main=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext \
17860     conftest$ac_exeext conftest.$ac_ext
17861 LIBS=$ac_check_lib_save_LIBS
17862 fi
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
17864 $as_echo "$ac_cv_lib_socket_main" >&6; }
17865 if test "x$ac_cv_lib_socket_main" = xyes; then :
17866   cat >>confdefs.h <<_ACEOF
17867 #define HAVE_LIBSOCKET 1
17868 _ACEOF
17869
17870   LIBS="-lsocket $LIBS"
17871
17872 fi
17873
17874       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
17875 $as_echo_n "checking for main in -lnsl... " >&6; }
17876 if ${ac_cv_lib_nsl_main+:} false; then :
17877   $as_echo_n "(cached) " >&6
17878 else
17879   ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-lnsl  $LIBS"
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h.  */
17883
17884
17885 int
17886 main ()
17887 {
17888 return main ();
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 if ac_fn_c_try_link "$LINENO"; then :
17894   ac_cv_lib_nsl_main=yes
17895 else
17896   ac_cv_lib_nsl_main=no
17897 fi
17898 rm -f core conftest.err conftest.$ac_objext \
17899     conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17901 fi
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
17903 $as_echo "$ac_cv_lib_nsl_main" >&6; }
17904 if test "x$ac_cv_lib_nsl_main" = xyes; then :
17905   cat >>confdefs.h <<_ACEOF
17906 #define HAVE_LIBNSL 1
17907 _ACEOF
17908
17909   LIBS="-lnsl $LIBS"
17910
17911 fi
17912
17913       CURSES=-lcurses
17914       SOLARIS="solaris"
17915   ;;
17916   *-linux*)
17917       opsys=gnu-linux
17918
17919 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17920
17921   ;;
17922   *-openbsd*)
17923       opsys=openbsd
17924
17925 $as_echo "#define OPEN_BSD /**/" >>confdefs.h
17926
17927   ;;
17928 esac
17929
17930 # Check whether --enable-largefile was given.
17931 if test "${enable_largefile+set}" = set; then :
17932   enableval=$enable_largefile;
17933 fi
17934
17935 if test "$enable_largefile" != no; then
17936
17937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17938 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17939 if ${ac_cv_sys_largefile_CC+:} false; then :
17940   $as_echo_n "(cached) " >&6
17941 else
17942   ac_cv_sys_largefile_CC=no
17943      if test "$GCC" != yes; then
17944        ac_save_CC=$CC
17945        while :; do
17946          # IRIX 6.2 and later do not support large files by default,
17947          # so use the C compiler's -n32 option if that helps.
17948          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h.  */
17950 #include <sys/types.h>
17951  /* Check that off_t can represent 2**63 - 1 correctly.
17952     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17953     since some C++ compilers masquerading as C compilers
17954     incorrectly reject 9223372036854775807.  */
17955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17956   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17957                        && LARGE_OFF_T % 2147483647 == 1)
17958                       ? 1 : -1];
17959 int
17960 main ()
17961 {
17962
17963   ;
17964   return 0;
17965 }
17966 _ACEOF
17967          if ac_fn_c_try_compile "$LINENO"; then :
17968   break
17969 fi
17970 rm -f core conftest.err conftest.$ac_objext
17971          CC="$CC -n32"
17972          if ac_fn_c_try_compile "$LINENO"; then :
17973   ac_cv_sys_largefile_CC=' -n32'; break
17974 fi
17975 rm -f core conftest.err conftest.$ac_objext
17976          break
17977        done
17978        CC=$ac_save_CC
17979        rm -f conftest.$ac_ext
17980     fi
17981 fi
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17983 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17984   if test "$ac_cv_sys_largefile_CC" != no; then
17985     CC=$CC$ac_cv_sys_largefile_CC
17986   fi
17987
17988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17989 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17990 if ${ac_cv_sys_file_offset_bits+:} false; then :
17991   $as_echo_n "(cached) " >&6
17992 else
17993   while :; do
17994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h.  */
17996 #include <sys/types.h>
17997  /* Check that off_t can represent 2**63 - 1 correctly.
17998     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17999     since some C++ compilers masquerading as C compilers
18000     incorrectly reject 9223372036854775807.  */
18001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18002   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18003                        && LARGE_OFF_T % 2147483647 == 1)
18004                       ? 1 : -1];
18005 int
18006 main ()
18007 {
18008
18009   ;
18010   return 0;
18011 }
18012 _ACEOF
18013 if ac_fn_c_try_compile "$LINENO"; then :
18014   ac_cv_sys_file_offset_bits=no; break
18015 fi
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h.  */
18019 #define _FILE_OFFSET_BITS 64
18020 #include <sys/types.h>
18021  /* Check that off_t can represent 2**63 - 1 correctly.
18022     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18023     since some C++ compilers masquerading as C compilers
18024     incorrectly reject 9223372036854775807.  */
18025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18026   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18027                        && LARGE_OFF_T % 2147483647 == 1)
18028                       ? 1 : -1];
18029 int
18030 main ()
18031 {
18032
18033   ;
18034   return 0;
18035 }
18036 _ACEOF
18037 if ac_fn_c_try_compile "$LINENO"; then :
18038   ac_cv_sys_file_offset_bits=64; break
18039 fi
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041   ac_cv_sys_file_offset_bits=unknown
18042   break
18043 done
18044 fi
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18046 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18047 case $ac_cv_sys_file_offset_bits in #(
18048   no | unknown) ;;
18049   *)
18050 cat >>confdefs.h <<_ACEOF
18051 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18052 _ACEOF
18053 ;;
18054 esac
18055 rm -rf conftest*
18056   if test $ac_cv_sys_file_offset_bits = unknown; then
18057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18058 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18059 if ${ac_cv_sys_large_files+:} false; then :
18060   $as_echo_n "(cached) " >&6
18061 else
18062   while :; do
18063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h.  */
18065 #include <sys/types.h>
18066  /* Check that off_t can represent 2**63 - 1 correctly.
18067     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18068     since some C++ compilers masquerading as C compilers
18069     incorrectly reject 9223372036854775807.  */
18070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18071   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18072                        && LARGE_OFF_T % 2147483647 == 1)
18073                       ? 1 : -1];
18074 int
18075 main ()
18076 {
18077
18078   ;
18079   return 0;
18080 }
18081 _ACEOF
18082 if ac_fn_c_try_compile "$LINENO"; then :
18083   ac_cv_sys_large_files=no; break
18084 fi
18085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h.  */
18088 #define _LARGE_FILES 1
18089 #include <sys/types.h>
18090  /* Check that off_t can represent 2**63 - 1 correctly.
18091     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18092     since some C++ compilers masquerading as C compilers
18093     incorrectly reject 9223372036854775807.  */
18094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18095   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18096                        && LARGE_OFF_T % 2147483647 == 1)
18097                       ? 1 : -1];
18098 int
18099 main ()
18100 {
18101
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 if ac_fn_c_try_compile "$LINENO"; then :
18107   ac_cv_sys_large_files=1; break
18108 fi
18109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18110   ac_cv_sys_large_files=unknown
18111   break
18112 done
18113 fi
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18115 $as_echo "$ac_cv_sys_large_files" >&6; }
18116 case $ac_cv_sys_large_files in #(
18117   no | unknown) ;;
18118   *)
18119 cat >>confdefs.h <<_ACEOF
18120 #define _LARGE_FILES $ac_cv_sys_large_files
18121 _ACEOF
18122 ;;
18123 esac
18124 rm -rf conftest*
18125   fi
18126
18127
18128 fi
18129
18130
18131 case "${enable_vtysh}" in
18132   "no") VTYSH="";;
18133   *)    VTYSH="vtysh";
18134
18135 $as_echo "#define VTYSH /**/" >>confdefs.h
18136
18137          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltermcap" >&5
18138 $as_echo_n "checking for tputs in -ltermcap... " >&6; }
18139 if ${ac_cv_lib_termcap_tputs+:} false; then :
18140   $as_echo_n "(cached) " >&6
18141 else
18142   ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-ltermcap  $LIBS"
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h.  */
18146
18147 /* Override any GCC internal prototype to avoid an error.
18148    Use char because int might match the return type of a GCC
18149    builtin and then its argument prototype would still apply.  */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char tputs ();
18154 int
18155 main ()
18156 {
18157 return tputs ();
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 if ac_fn_c_try_link "$LINENO"; then :
18163   ac_cv_lib_termcap_tputs=yes
18164 else
18165   ac_cv_lib_termcap_tputs=no
18166 fi
18167 rm -f core conftest.err conftest.$ac_objext \
18168     conftest$ac_exeext conftest.$ac_ext
18169 LIBS=$ac_check_lib_save_LIBS
18170 fi
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tputs" >&5
18172 $as_echo "$ac_cv_lib_termcap_tputs" >&6; }
18173 if test "x$ac_cv_lib_termcap_tputs" = xyes; then :
18174   LIBREADLINE="$LIBREADLINE -ltermcap"
18175 else
18176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltinfo" >&5
18177 $as_echo_n "checking for tputs in -ltinfo... " >&6; }
18178 if ${ac_cv_lib_tinfo_tputs+:} false; then :
18179   $as_echo_n "(cached) " >&6
18180 else
18181   ac_check_lib_save_LIBS=$LIBS
18182 LIBS="-ltinfo  $LIBS"
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h.  */
18185
18186 /* Override any GCC internal prototype to avoid an error.
18187    Use char because int might match the return type of a GCC
18188    builtin and then its argument prototype would still apply.  */
18189 #ifdef __cplusplus
18190 extern "C"
18191 #endif
18192 char tputs ();
18193 int
18194 main ()
18195 {
18196 return tputs ();
18197   ;
18198   return 0;
18199 }
18200 _ACEOF
18201 if ac_fn_c_try_link "$LINENO"; then :
18202   ac_cv_lib_tinfo_tputs=yes
18203 else
18204   ac_cv_lib_tinfo_tputs=no
18205 fi
18206 rm -f core conftest.err conftest.$ac_objext \
18207     conftest$ac_exeext conftest.$ac_ext
18208 LIBS=$ac_check_lib_save_LIBS
18209 fi
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tputs" >&5
18211 $as_echo "$ac_cv_lib_tinfo_tputs" >&6; }
18212 if test "x$ac_cv_lib_tinfo_tputs" = xyes; then :
18213   LIBREADLINE="$LIBREADLINE -ltinfo"
18214 else
18215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
18216 $as_echo_n "checking for tputs in -lcurses... " >&6; }
18217 if ${ac_cv_lib_curses_tputs+:} false; then :
18218   $as_echo_n "(cached) " >&6
18219 else
18220   ac_check_lib_save_LIBS=$LIBS
18221 LIBS="-lcurses  $LIBS"
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h.  */
18224
18225 /* Override any GCC internal prototype to avoid an error.
18226    Use char because int might match the return type of a GCC
18227    builtin and then its argument prototype would still apply.  */
18228 #ifdef __cplusplus
18229 extern "C"
18230 #endif
18231 char tputs ();
18232 int
18233 main ()
18234 {
18235 return tputs ();
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 if ac_fn_c_try_link "$LINENO"; then :
18241   ac_cv_lib_curses_tputs=yes
18242 else
18243   ac_cv_lib_curses_tputs=no
18244 fi
18245 rm -f core conftest.err conftest.$ac_objext \
18246     conftest$ac_exeext conftest.$ac_ext
18247 LIBS=$ac_check_lib_save_LIBS
18248 fi
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
18250 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
18251 if test "x$ac_cv_lib_curses_tputs" = xyes; then :
18252   LIBREADLINE="$LIBREADLINE -lcurses"
18253 else
18254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
18255 $as_echo_n "checking for tputs in -lncurses... " >&6; }
18256 if ${ac_cv_lib_ncurses_tputs+:} false; then :
18257   $as_echo_n "(cached) " >&6
18258 else
18259   ac_check_lib_save_LIBS=$LIBS
18260 LIBS="-lncurses  $LIBS"
18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h.  */
18263
18264 /* Override any GCC internal prototype to avoid an error.
18265    Use char because int might match the return type of a GCC
18266    builtin and then its argument prototype would still apply.  */
18267 #ifdef __cplusplus
18268 extern "C"
18269 #endif
18270 char tputs ();
18271 int
18272 main ()
18273 {
18274 return tputs ();
18275   ;
18276   return 0;
18277 }
18278 _ACEOF
18279 if ac_fn_c_try_link "$LINENO"; then :
18280   ac_cv_lib_ncurses_tputs=yes
18281 else
18282   ac_cv_lib_ncurses_tputs=no
18283 fi
18284 rm -f core conftest.err conftest.$ac_objext \
18285     conftest$ac_exeext conftest.$ac_ext
18286 LIBS=$ac_check_lib_save_LIBS
18287 fi
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
18289 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
18290 if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
18291   LIBREADLINE="$LIBREADLINE -lncurses"
18292 fi
18293
18294
18295 fi
18296
18297
18298 fi
18299
18300
18301 fi
18302
18303          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
18304 $as_echo_n "checking for main in -lreadline... " >&6; }
18305 if ${ac_cv_lib_readline_main+:} false; then :
18306   $as_echo_n "(cached) " >&6
18307 else
18308   ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lreadline "$LIBREADLINE" $LIBS"
18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h.  */
18312
18313
18314 int
18315 main ()
18316 {
18317 return main ();
18318   ;
18319   return 0;
18320 }
18321 _ACEOF
18322 if ac_fn_c_try_link "$LINENO"; then :
18323   ac_cv_lib_readline_main=yes
18324 else
18325   ac_cv_lib_readline_main=no
18326 fi
18327 rm -f core conftest.err conftest.$ac_objext \
18328     conftest$ac_exeext conftest.$ac_ext
18329 LIBS=$ac_check_lib_save_LIBS
18330 fi
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
18332 $as_echo "$ac_cv_lib_readline_main" >&6; }
18333 if test "x$ac_cv_lib_readline_main" = xyes; then :
18334   LIBREADLINE="-lreadline $LIBREADLINE"
18335 fi
18336
18337          if test $ac_cv_lib_readline_main = no; then
18338            as_fn_error $? "vtysh needs libreadline but was not found and usable on your system." "$LINENO" 5
18339          fi
18340          ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18341 if test "x$ac_cv_header_readline_history_h" = xyes; then :
18342
18343 fi
18344
18345
18346          if test $ac_cv_header_readline_history_h = no;then
18347            as_fn_error $? "readline is too old to have readline/history.h, please update to the latest readline library." "$LINENO" 5
18348          fi
18349          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
18350 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
18351 if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
18352   $as_echo_n "(cached) " >&6
18353 else
18354   ac_check_lib_save_LIBS=$LIBS
18355 LIBS="-lreadline "$LIBREADLINE" $LIBS"
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h.  */
18358
18359 /* Override any GCC internal prototype to avoid an error.
18360    Use char because int might match the return type of a GCC
18361    builtin and then its argument prototype would still apply.  */
18362 #ifdef __cplusplus
18363 extern "C"
18364 #endif
18365 char rl_completion_matches ();
18366 int
18367 main ()
18368 {
18369 return rl_completion_matches ();
18370   ;
18371   return 0;
18372 }
18373 _ACEOF
18374 if ac_fn_c_try_link "$LINENO"; then :
18375   ac_cv_lib_readline_rl_completion_matches=yes
18376 else
18377   ac_cv_lib_readline_rl_completion_matches=no
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext \
18380     conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18382 fi
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
18384 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
18385 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
18386   LIBREADLINE="$LIBREADLINE"
18387 fi
18388
18389          if test $ac_cv_lib_readline_rl_completion_matches = no; then
18390
18391 $as_echo "#define rl_completion_matches completion_matches" >>confdefs.h
18392
18393          fi
18394          ;;
18395   "no" ) VTYSH="";;
18396 esac
18397
18398  if test "x$VTYSH" = "xvtysh"; then
18399   VTYSH_TRUE=
18400   VTYSH_FALSE='#'
18401 else
18402   VTYSH_TRUE='#'
18403   VTYSH_FALSE=
18404 fi
18405
18406
18407 if test "$with_libpam" = "yes"; then
18408   ac_fn_c_check_header_compile "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "#ifdef SUNOS_5
18409 #define _XPG4_2
18410 #define __EXTENSIONS__
18411 #endif
18412 #include <stdio.h>
18413 #if STDC_HEADERS
18414 # include <stdlib.h>
18415 # include <stddef.h>
18416 #else
18417 # if HAVE_STDLIB_H
18418 #  include <stdlib.h>
18419 # endif
18420 #endif
18421 #if HAVE_SYS_TYPES_H
18422 # include <sys/types.h>
18423 #endif
18424 /* sys/conf.h depends on param.h on FBSD at least */
18425 #if HAVE_SYS_PARAM_H
18426 # include <sys/param.h>
18427 #endif
18428 /* Required for MAXSIG */
18429 #if HAVE_SIGNAL_H
18430 # include <signal.h>
18431 #endif
18432 #if HAVE_SYS_SOCKET_H
18433 # include <sys/socket.h>
18434 #endif
18435 #ifdef __APPLE__
18436 # define __APPLE_USE_RFC_3542
18437 #endif
18438 #if HAVE_NETINET_IN_H
18439 # include <netinet/in.h>
18440 #endif
18441 #ifdef TIME_WITH_SYS_TIME
18442 # include <sys/time.h>
18443 # include <time.h>
18444 #else
18445 # ifdef HAVE_SYS_TIME_H
18446 #  include <sys/time.h>
18447 # else
18448 #  include <time.h>
18449 # endif
18450 #endif /* TIME_WITH_SYS_TIME */
18451
18452 #if HAVE_NET_IF_H
18453 # include <net/if.h>
18454 #endif
18455
18456 #if HAVE_NET_IF_VAR_H
18457 # include <net/if_var.h>
18458 #endif
18459
18460 #if HAVE_SYS_UN_H
18461 # include <sys/un.h>
18462 #endif
18463 #if HAVE_NETINET_IN_SYSTM_H
18464 # include <netinet/in_systm.h>
18465 #endif
18466 #if HAVE_NETINET_IN_VAR_H
18467 # include <netinet/in_var.h>
18468 #endif
18469 #if HAVE_NET_IF_DL_H
18470 # include <net/if_dl.h>
18471 #endif
18472 #if HAVE_NET_NETOPT_H
18473 # include <net/netopt.h>
18474 #endif
18475 #if HAVE_NET_ROUTE_H
18476 # include <net/route.h>
18477 #endif
18478 #if HAVE_INET_ND_H
18479 # include <inet/nd.h>
18480 #endif
18481 #if HAVE_ARPA_INET_H
18482 # include <arpa/inet.h>
18483 #endif
18484 /* Required for IDRP */
18485 #if HAVE_NETINET_IP_ICMP_H
18486 # include <netinet/ip_icmp.h>
18487 #endif
18488
18489 "
18490 if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
18491
18492 $as_echo "#define HAVE_PAM_MISC_H /**/" >>confdefs.h
18493
18494
18495 $as_echo "#define PAM_CONV_FUNC misc_conv" >>confdefs.h
18496
18497      pam_conv_func="misc_conv"
18498
18499 fi
18500
18501
18502   ac_fn_c_check_header_compile "$LINENO" "security/openpam.h" "ac_cv_header_security_openpam_h" "#ifdef SUNOS_5
18503 #define _XPG4_2
18504 #define __EXTENSIONS__
18505 #endif
18506 #include <stdio.h>
18507 #if STDC_HEADERS
18508 # include <stdlib.h>
18509 # include <stddef.h>
18510 #else
18511 # if HAVE_STDLIB_H
18512 #  include <stdlib.h>
18513 # endif
18514 #endif
18515 #if HAVE_SYS_TYPES_H
18516 # include <sys/types.h>
18517 #endif
18518 /* sys/conf.h depends on param.h on FBSD at least */
18519 #if HAVE_SYS_PARAM_H
18520 # include <sys/param.h>
18521 #endif
18522 /* Required for MAXSIG */
18523 #if HAVE_SIGNAL_H
18524 # include <signal.h>
18525 #endif
18526 #if HAVE_SYS_SOCKET_H
18527 # include <sys/socket.h>
18528 #endif
18529 #ifdef __APPLE__
18530 # define __APPLE_USE_RFC_3542
18531 #endif
18532 #if HAVE_NETINET_IN_H
18533 # include <netinet/in.h>
18534 #endif
18535 #ifdef TIME_WITH_SYS_TIME
18536 # include <sys/time.h>
18537 # include <time.h>
18538 #else
18539 # ifdef HAVE_SYS_TIME_H
18540 #  include <sys/time.h>
18541 # else
18542 #  include <time.h>
18543 # endif
18544 #endif /* TIME_WITH_SYS_TIME */
18545
18546 #if HAVE_NET_IF_H
18547 # include <net/if.h>
18548 #endif
18549
18550 #if HAVE_NET_IF_VAR_H
18551 # include <net/if_var.h>
18552 #endif
18553
18554 #if HAVE_SYS_UN_H
18555 # include <sys/un.h>
18556 #endif
18557 #if HAVE_NETINET_IN_SYSTM_H
18558 # include <netinet/in_systm.h>
18559 #endif
18560 #if HAVE_NETINET_IN_VAR_H
18561 # include <netinet/in_var.h>
18562 #endif
18563 #if HAVE_NET_IF_DL_H
18564 # include <net/if_dl.h>
18565 #endif
18566 #if HAVE_NET_NETOPT_H
18567 # include <net/netopt.h>
18568 #endif
18569 #if HAVE_NET_ROUTE_H
18570 # include <net/route.h>
18571 #endif
18572 #if HAVE_INET_ND_H
18573 # include <inet/nd.h>
18574 #endif
18575 #if HAVE_ARPA_INET_H
18576 # include <arpa/inet.h>
18577 #endif
18578 /* Required for IDRP */
18579 #if HAVE_NETINET_IP_ICMP_H
18580 # include <netinet/ip_icmp.h>
18581 #endif
18582 #include <security/pam_appl.h>
18583 "
18584 if test "x$ac_cv_header_security_openpam_h" = xyes; then :
18585
18586 $as_echo "#define HAVE_OPENPAM_H /**/" >>confdefs.h
18587
18588
18589 $as_echo "#define PAM_CONV_FUNC openpam_ttyconv" >>confdefs.h
18590
18591      pam_conv_func="openpam_ttyconv"
18592
18593 fi
18594
18595
18596   if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
18597     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
18598 $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
18599     with_libpam="no"
18600   fi
18601 fi
18602
18603 if test "$with_libpam" = "yes"; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18605 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18606 if ${ac_cv_lib_pam_pam_start+:} false; then :
18607   $as_echo_n "(cached) " >&6
18608 else
18609   ac_check_lib_save_LIBS=$LIBS
18610 LIBS="-lpam  $LIBS"
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h.  */
18613
18614 /* Override any GCC internal prototype to avoid an error.
18615    Use char because int might match the return type of a GCC
18616    builtin and then its argument prototype would still apply.  */
18617 #ifdef __cplusplus
18618 extern "C"
18619 #endif
18620 char pam_start ();
18621 int
18622 main ()
18623 {
18624 return pam_start ();
18625   ;
18626   return 0;
18627 }
18628 _ACEOF
18629 if ac_fn_c_try_link "$LINENO"; then :
18630   ac_cv_lib_pam_pam_start=yes
18631 else
18632   ac_cv_lib_pam_pam_start=no
18633 fi
18634 rm -f core conftest.err conftest.$ac_objext \
18635     conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18637 fi
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18639 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18640 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18641   as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
18643 $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
18644 if eval \${$as_ac_Lib+:} false; then :
18645   $as_echo_n "(cached) " >&6
18646 else
18647   ac_check_lib_save_LIBS=$LIBS
18648 LIBS="-lpam  $LIBS"
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h.  */
18651
18652 /* Override any GCC internal prototype to avoid an error.
18653    Use char because int might match the return type of a GCC
18654    builtin and then its argument prototype would still apply.  */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 char $pam_conv_func ();
18659 int
18660 main ()
18661 {
18662 return $pam_conv_func ();
18663   ;
18664   return 0;
18665 }
18666 _ACEOF
18667 if ac_fn_c_try_link "$LINENO"; then :
18668   eval "$as_ac_Lib=yes"
18669 else
18670   eval "$as_ac_Lib=no"
18671 fi
18672 rm -f core conftest.err conftest.$ac_objext \
18673     conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18675 fi
18676 eval ac_res=\$$as_ac_Lib
18677                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18678 $as_echo "$ac_res" >&6; }
18679 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18680
18681 $as_echo "#define USE_PAM /**/" >>confdefs.h
18682
18683      LIBPAM="-lpam"
18684 else
18685
18686 $as_echo "#define USE_PAM /**/" >>confdefs.h
18687
18688      LIBPAM="-lpam -lpam_misc"
18689
18690 fi
18691
18692
18693 else
18694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
18695 $as_echo_n "checking for pam_end in -lpam... " >&6; }
18696 if ${ac_cv_lib_pam_pam_end+:} false; then :
18697   $as_echo_n "(cached) " >&6
18698 else
18699   ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-lpam -ldl $LIBS"
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h.  */
18703
18704 /* Override any GCC internal prototype to avoid an error.
18705    Use char because int might match the return type of a GCC
18706    builtin and then its argument prototype would still apply.  */
18707 #ifdef __cplusplus
18708 extern "C"
18709 #endif
18710 char pam_end ();
18711 int
18712 main ()
18713 {
18714 return pam_end ();
18715   ;
18716   return 0;
18717 }
18718 _ACEOF
18719 if ac_fn_c_try_link "$LINENO"; then :
18720   ac_cv_lib_pam_pam_end=yes
18721 else
18722   ac_cv_lib_pam_pam_end=no
18723 fi
18724 rm -f core conftest.err conftest.$ac_objext \
18725     conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18727 fi
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
18729 $as_echo "$ac_cv_lib_pam_pam_end" >&6; }
18730 if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
18731   as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
18733 $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
18734 if eval \${$as_ac_Lib+:} false; then :
18735   $as_echo_n "(cached) " >&6
18736 else
18737   ac_check_lib_save_LIBS=$LIBS
18738 LIBS="-lpam  $LIBS"
18739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h.  */
18741
18742 /* Override any GCC internal prototype to avoid an error.
18743    Use char because int might match the return type of a GCC
18744    builtin and then its argument prototype would still apply.  */
18745 #ifdef __cplusplus
18746 extern "C"
18747 #endif
18748 char $pam_conv_func ();
18749 int
18750 main ()
18751 {
18752 return $pam_conv_func ();
18753   ;
18754   return 0;
18755 }
18756 _ACEOF
18757 if ac_fn_c_try_link "$LINENO"; then :
18758   eval "$as_ac_Lib=yes"
18759 else
18760   eval "$as_ac_Lib=no"
18761 fi
18762 rm -f core conftest.err conftest.$ac_objext \
18763     conftest$ac_exeext conftest.$ac_ext
18764 LIBS=$ac_check_lib_save_LIBS
18765 fi
18766 eval ac_res=\$$as_ac_Lib
18767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18768 $as_echo "$ac_res" >&6; }
18769 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18770
18771 $as_echo "#define USE_PAM /**/" >>confdefs.h
18772
18773        LIBPAM="-lpam -ldl"
18774 else
18775
18776 $as_echo "#define USE_PAM /**/" >>confdefs.h
18777
18778        LIBPAM="-lpam -ldl -lpam_misc"
18779
18780 fi
18781
18782
18783 else
18784   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
18785 $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
18786 fi
18787
18788
18789
18790 fi
18791
18792 fi
18793
18794
18795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18796 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18797 if ${ac_cv_c_bigendian+:} false; then :
18798   $as_echo_n "(cached) " >&6
18799 else
18800   ac_cv_c_bigendian=unknown
18801     # See if we're dealing with a universal compiler.
18802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h.  */
18804 #ifndef __APPLE_CC__
18805                not a universal capable compiler
18806              #endif
18807              typedef int dummy;
18808
18809 _ACEOF
18810 if ac_fn_c_try_compile "$LINENO"; then :
18811
18812         # Check for potential -arch flags.  It is not universal unless
18813         # there are at least two -arch flags with different values.
18814         ac_arch=
18815         ac_prev=
18816         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18817          if test -n "$ac_prev"; then
18818            case $ac_word in
18819              i?86 | x86_64 | ppc | ppc64)
18820                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18821                  ac_arch=$ac_word
18822                else
18823                  ac_cv_c_bigendian=universal
18824                  break
18825                fi
18826                ;;
18827            esac
18828            ac_prev=
18829          elif test "x$ac_word" = "x-arch"; then
18830            ac_prev=arch
18831          fi
18832        done
18833 fi
18834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835     if test $ac_cv_c_bigendian = unknown; then
18836       # See if sys/param.h defines the BYTE_ORDER macro.
18837       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h.  */
18839 #include <sys/types.h>
18840              #include <sys/param.h>
18841
18842 int
18843 main ()
18844 {
18845 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18846                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18847                      && LITTLE_ENDIAN)
18848               bogus endian macros
18849              #endif
18850
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 if ac_fn_c_try_compile "$LINENO"; then :
18856   # It does; now see whether it defined to BIG_ENDIAN or not.
18857          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h.  */
18859 #include <sys/types.h>
18860                 #include <sys/param.h>
18861
18862 int
18863 main ()
18864 {
18865 #if BYTE_ORDER != BIG_ENDIAN
18866                  not big endian
18867                 #endif
18868
18869   ;
18870   return 0;
18871 }
18872 _ACEOF
18873 if ac_fn_c_try_compile "$LINENO"; then :
18874   ac_cv_c_bigendian=yes
18875 else
18876   ac_cv_c_bigendian=no
18877 fi
18878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18879 fi
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18881     fi
18882     if test $ac_cv_c_bigendian = unknown; then
18883       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18884       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h.  */
18886 #include <limits.h>
18887
18888 int
18889 main ()
18890 {
18891 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18892               bogus endian macros
18893              #endif
18894
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 if ac_fn_c_try_compile "$LINENO"; then :
18900   # It does; now see whether it defined to _BIG_ENDIAN or not.
18901          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h.  */
18903 #include <limits.h>
18904
18905 int
18906 main ()
18907 {
18908 #ifndef _BIG_ENDIAN
18909                  not big endian
18910                 #endif
18911
18912   ;
18913   return 0;
18914 }
18915 _ACEOF
18916 if ac_fn_c_try_compile "$LINENO"; then :
18917   ac_cv_c_bigendian=yes
18918 else
18919   ac_cv_c_bigendian=no
18920 fi
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922 fi
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924     fi
18925     if test $ac_cv_c_bigendian = unknown; then
18926       # Compile a test program.
18927       if test "$cross_compiling" = yes; then :
18928   # Try to guess by grepping values from an object file.
18929          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h.  */
18931 short int ascii_mm[] =
18932                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18933                 short int ascii_ii[] =
18934                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18935                 int use_ascii (int i) {
18936                   return ascii_mm[i] + ascii_ii[i];
18937                 }
18938                 short int ebcdic_ii[] =
18939                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18940                 short int ebcdic_mm[] =
18941                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18942                 int use_ebcdic (int i) {
18943                   return ebcdic_mm[i] + ebcdic_ii[i];
18944                 }
18945                 extern int foo;
18946
18947 int
18948 main ()
18949 {
18950 return use_ascii (foo) == use_ebcdic (foo);
18951   ;
18952   return 0;
18953 }
18954 _ACEOF
18955 if ac_fn_c_try_compile "$LINENO"; then :
18956   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18957               ac_cv_c_bigendian=yes
18958             fi
18959             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18960               if test "$ac_cv_c_bigendian" = unknown; then
18961                 ac_cv_c_bigendian=no
18962               else
18963                 # finding both strings is unlikely to happen, but who knows?
18964                 ac_cv_c_bigendian=unknown
18965               fi
18966             fi
18967 fi
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969 else
18970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h.  */
18972 $ac_includes_default
18973 int
18974 main ()
18975 {
18976
18977              /* Are we little or big endian?  From Harbison&Steele.  */
18978              union
18979              {
18980                long int l;
18981                char c[sizeof (long int)];
18982              } u;
18983              u.l = 1;
18984              return u.c[sizeof (long int) - 1] == 1;
18985
18986   ;
18987   return 0;
18988 }
18989 _ACEOF
18990 if ac_fn_c_try_run "$LINENO"; then :
18991   ac_cv_c_bigendian=no
18992 else
18993   ac_cv_c_bigendian=yes
18994 fi
18995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18996   conftest.$ac_objext conftest.beam conftest.$ac_ext
18997 fi
18998
18999     fi
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19002 $as_echo "$ac_cv_c_bigendian" >&6; }
19003  case $ac_cv_c_bigendian in #(
19004    yes)
19005      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19006 ;; #(
19007    no)
19008       ;; #(
19009    universal)
19010
19011 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19012
19013      ;; #(
19014    *)
19015      as_fn_error $? "unknown endianness
19016  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
19017  esac
19018
19019
19020
19021 for ac_header in unistd.h
19022 do :
19023   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19024 if test "x$ac_cv_header_unistd_h" = xyes; then :
19025   cat >>confdefs.h <<_ACEOF
19026 #define HAVE_UNISTD_H 1
19027 _ACEOF
19028
19029 fi
19030
19031 done
19032
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
19034 $as_echo_n "checking for working chown... " >&6; }
19035 if ${ac_cv_func_chown_works+:} false; then :
19036   $as_echo_n "(cached) " >&6
19037 else
19038   if test "$cross_compiling" = yes; then :
19039   ac_cv_func_chown_works=no
19040 else
19041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h.  */
19043 $ac_includes_default
19044 #include <fcntl.h>
19045
19046 int
19047 main ()
19048 {
19049   char *f = "conftest.chown";
19050   struct stat before, after;
19051
19052   if (creat (f, 0600) < 0)
19053     return 1;
19054   if (stat (f, &before) < 0)
19055     return 1;
19056   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
19057     return 1;
19058   if (stat (f, &after) < 0)
19059     return 1;
19060   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
19061
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 if ac_fn_c_try_run "$LINENO"; then :
19067   ac_cv_func_chown_works=yes
19068 else
19069   ac_cv_func_chown_works=no
19070 fi
19071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19072   conftest.$ac_objext conftest.beam conftest.$ac_ext
19073 fi
19074
19075 rm -f conftest.chown
19076
19077 fi
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
19079 $as_echo "$ac_cv_func_chown_works" >&6; }
19080 if test $ac_cv_func_chown_works = yes; then
19081
19082 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
19083
19084 fi
19085
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
19087 $as_echo_n "checking for working POSIX fnmatch... " >&6; }
19088 if ${ac_cv_func_fnmatch_works+:} false; then :
19089   $as_echo_n "(cached) " >&6
19090 else
19091   # Some versions of Solaris, SCO, and the GNU C Library
19092    # have a broken or incompatible fnmatch.
19093    # So we run a test program.  If we are cross-compiling, take no chance.
19094    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
19095    if test "$cross_compiling" = yes; then :
19096   ac_cv_func_fnmatch_works=cross
19097 else
19098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h.  */
19100 #include <fnmatch.h>
19101 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
19102 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
19103
19104 int
19105 main ()
19106 {
19107 return
19108            (!(y ("a*", "abc", 0)
19109               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19110               && y ("a\\\\bc", "abc", 0)
19111               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19112               && y ("*x", ".x", 0)
19113               && n ("*x", ".x", FNM_PERIOD)
19114               && 1));
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 if ac_fn_c_try_run "$LINENO"; then :
19120   ac_cv_func_fnmatch_works=yes
19121 else
19122   ac_cv_func_fnmatch_works=no
19123 fi
19124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19125   conftest.$ac_objext conftest.beam conftest.$ac_ext
19126 fi
19127
19128 fi
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
19130 $as_echo "$ac_cv_func_fnmatch_works" >&6; }
19131 if test $ac_cv_func_fnmatch_works = yes; then :
19132
19133 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
19134
19135 fi
19136
19137
19138 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19139 if test "x$ac_cv_type_pid_t" = xyes; then :
19140
19141 else
19142
19143 cat >>confdefs.h <<_ACEOF
19144 #define pid_t int
19145 _ACEOF
19146
19147 fi
19148
19149 for ac_header in vfork.h
19150 do :
19151   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19152 if test "x$ac_cv_header_vfork_h" = xyes; then :
19153   cat >>confdefs.h <<_ACEOF
19154 #define HAVE_VFORK_H 1
19155 _ACEOF
19156
19157 fi
19158
19159 done
19160
19161 for ac_func in fork vfork
19162 do :
19163   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19164 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19165 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19166   cat >>confdefs.h <<_ACEOF
19167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19168 _ACEOF
19169
19170 fi
19171 done
19172
19173 if test "x$ac_cv_func_fork" = xyes; then
19174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19175 $as_echo_n "checking for working fork... " >&6; }
19176 if ${ac_cv_func_fork_works+:} false; then :
19177   $as_echo_n "(cached) " >&6
19178 else
19179   if test "$cross_compiling" = yes; then :
19180   ac_cv_func_fork_works=cross
19181 else
19182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h.  */
19184 $ac_includes_default
19185 int
19186 main ()
19187 {
19188
19189           /* By Ruediger Kuhlmann. */
19190           return fork () < 0;
19191
19192   ;
19193   return 0;
19194 }
19195 _ACEOF
19196 if ac_fn_c_try_run "$LINENO"; then :
19197   ac_cv_func_fork_works=yes
19198 else
19199   ac_cv_func_fork_works=no
19200 fi
19201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19202   conftest.$ac_objext conftest.beam conftest.$ac_ext
19203 fi
19204
19205 fi
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19207 $as_echo "$ac_cv_func_fork_works" >&6; }
19208
19209 else
19210   ac_cv_func_fork_works=$ac_cv_func_fork
19211 fi
19212 if test "x$ac_cv_func_fork_works" = xcross; then
19213   case $host in
19214     *-*-amigaos* | *-*-msdosdjgpp*)
19215       # Override, as these systems have only a dummy fork() stub
19216       ac_cv_func_fork_works=no
19217       ;;
19218     *)
19219       ac_cv_func_fork_works=yes
19220       ;;
19221   esac
19222   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19223 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19224 fi
19225 ac_cv_func_vfork_works=$ac_cv_func_vfork
19226 if test "x$ac_cv_func_vfork" = xyes; then
19227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19228 $as_echo_n "checking for working vfork... " >&6; }
19229 if ${ac_cv_func_vfork_works+:} false; then :
19230   $as_echo_n "(cached) " >&6
19231 else
19232   if test "$cross_compiling" = yes; then :
19233   ac_cv_func_vfork_works=cross
19234 else
19235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h.  */
19237 /* Thanks to Paul Eggert for this test.  */
19238 $ac_includes_default
19239 #include <sys/wait.h>
19240 #ifdef HAVE_VFORK_H
19241 # include <vfork.h>
19242 #endif
19243 /* On some sparc systems, changes by the child to local and incoming
19244    argument registers are propagated back to the parent.  The compiler
19245    is told about this with #include <vfork.h>, but some compilers
19246    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19247    static variable whose address is put into a register that is
19248    clobbered by the vfork.  */
19249 static void
19250 #ifdef __cplusplus
19251 sparc_address_test (int arg)
19252 # else
19253 sparc_address_test (arg) int arg;
19254 #endif
19255 {
19256   static pid_t child;
19257   if (!child) {
19258     child = vfork ();
19259     if (child < 0) {
19260       perror ("vfork");
19261       _exit(2);
19262     }
19263     if (!child) {
19264       arg = getpid();
19265       write(-1, "", 0);
19266       _exit (arg);
19267     }
19268   }
19269 }
19270
19271 int
19272 main ()
19273 {
19274   pid_t parent = getpid ();
19275   pid_t child;
19276
19277   sparc_address_test (0);
19278
19279   child = vfork ();
19280
19281   if (child == 0) {
19282     /* Here is another test for sparc vfork register problems.  This
19283        test uses lots of local variables, at least as many local
19284        variables as main has allocated so far including compiler
19285        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19286        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19287        reuse the register of parent for one of the local variables,
19288        since it will think that parent can't possibly be used any more
19289        in this routine.  Assigning to the local variable will thus
19290        munge parent in the parent process.  */
19291     pid_t
19292       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19293       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19294     /* Convince the compiler that p..p7 are live; otherwise, it might
19295        use the same hardware register for all 8 local variables.  */
19296     if (p != p1 || p != p2 || p != p3 || p != p4
19297         || p != p5 || p != p6 || p != p7)
19298       _exit(1);
19299
19300     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19301        from child file descriptors.  If the child closes a descriptor
19302        before it execs or exits, this munges the parent's descriptor
19303        as well.  Test for this by closing stdout in the child.  */
19304     _exit(close(fileno(stdout)) != 0);
19305   } else {
19306     int status;
19307     struct stat st;
19308
19309     while (wait(&status) != child)
19310       ;
19311     return (
19312          /* Was there some problem with vforking?  */
19313          child < 0
19314
19315          /* Did the child fail?  (This shouldn't happen.)  */
19316          || status
19317
19318          /* Did the vfork/compiler bug occur?  */
19319          || parent != getpid()
19320
19321          /* Did the file descriptor bug occur?  */
19322          || fstat(fileno(stdout), &st) != 0
19323          );
19324   }
19325 }
19326 _ACEOF
19327 if ac_fn_c_try_run "$LINENO"; then :
19328   ac_cv_func_vfork_works=yes
19329 else
19330   ac_cv_func_vfork_works=no
19331 fi
19332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19333   conftest.$ac_objext conftest.beam conftest.$ac_ext
19334 fi
19335
19336 fi
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19338 $as_echo "$ac_cv_func_vfork_works" >&6; }
19339
19340 fi;
19341 if test "x$ac_cv_func_fork_works" = xcross; then
19342   ac_cv_func_vfork_works=$ac_cv_func_vfork
19343   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19344 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19345 fi
19346
19347 if test "x$ac_cv_func_vfork_works" = xyes; then
19348
19349 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19350
19351 else
19352
19353 $as_echo "#define vfork fork" >>confdefs.h
19354
19355 fi
19356 if test "x$ac_cv_func_fork_works" = xyes; then
19357
19358 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19359
19360 fi
19361
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19363 $as_echo_n "checking for working memcmp... " >&6; }
19364 if ${ac_cv_func_memcmp_working+:} false; then :
19365   $as_echo_n "(cached) " >&6
19366 else
19367   if test "$cross_compiling" = yes; then :
19368   ac_cv_func_memcmp_working=no
19369 else
19370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h.  */
19372 $ac_includes_default
19373 int
19374 main ()
19375 {
19376
19377   /* Some versions of memcmp are not 8-bit clean.  */
19378   char c0 = '\100', c1 = '\200', c2 = '\201';
19379   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19380     return 1;
19381
19382   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19383      or more and with at least one buffer not starting on a 4-byte boundary.
19384      William Lewis provided this test program.   */
19385   {
19386     char foo[21];
19387     char bar[21];
19388     int i;
19389     for (i = 0; i < 4; i++)
19390       {
19391         char *a = foo + i;
19392         char *b = bar + i;
19393         strcpy (a, "--------01111111");
19394         strcpy (b, "--------10000000");
19395         if (memcmp (a, b, 16) >= 0)
19396           return 1;
19397       }
19398     return 0;
19399   }
19400
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 if ac_fn_c_try_run "$LINENO"; then :
19406   ac_cv_func_memcmp_working=yes
19407 else
19408   ac_cv_func_memcmp_working=no
19409 fi
19410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19411   conftest.$ac_objext conftest.beam conftest.$ac_ext
19412 fi
19413
19414 fi
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19416 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19417 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19418   *" memcmp.$ac_objext "* ) ;;
19419   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19420  ;;
19421 esac
19422
19423
19424
19425
19426
19427   for ac_header in $ac_header_list
19428 do :
19429   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19430 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19431 "
19432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19433   cat >>confdefs.h <<_ACEOF
19434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19435 _ACEOF
19436
19437 fi
19438
19439 done
19440
19441
19442
19443
19444
19445
19446
19447
19448   for ac_func in $ac_func_list
19449 do :
19450   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19453   cat >>confdefs.h <<_ACEOF
19454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19455 _ACEOF
19456
19457 fi
19458 done
19459
19460
19461
19462
19463
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19465 $as_echo_n "checking for working mktime... " >&6; }
19466 if ${ac_cv_func_working_mktime+:} false; then :
19467   $as_echo_n "(cached) " >&6
19468 else
19469   if test "$cross_compiling" = yes; then :
19470   ac_cv_func_working_mktime=no
19471 else
19472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h.  */
19474 /* Test program from Paul Eggert and Tony Leneis.  */
19475 #ifdef TIME_WITH_SYS_TIME
19476 # include <sys/time.h>
19477 # include <time.h>
19478 #else
19479 # ifdef HAVE_SYS_TIME_H
19480 #  include <sys/time.h>
19481 # else
19482 #  include <time.h>
19483 # endif
19484 #endif
19485
19486 #include <limits.h>
19487 #include <stdlib.h>
19488
19489 #ifdef HAVE_UNISTD_H
19490 # include <unistd.h>
19491 #endif
19492
19493 #ifndef HAVE_ALARM
19494 # define alarm(X) /* empty */
19495 #endif
19496
19497 /* Work around redefinition to rpl_putenv by other config tests.  */
19498 #undef putenv
19499
19500 static time_t time_t_max;
19501 static time_t time_t_min;
19502
19503 /* Values we'll use to set the TZ environment variable.  */
19504 static const char *tz_strings[] = {
19505   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
19506   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19507 };
19508 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19509
19510 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19511    Based on a problem report from Andreas Jaeger.  */
19512 static int
19513 spring_forward_gap ()
19514 {
19515   /* glibc (up to about 1998-10-07) failed this test. */
19516   struct tm tm;
19517
19518   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19519      instead of "TZ=America/Vancouver" in order to detect the bug even
19520      on systems that don't support the Olson extension, or don't have the
19521      full zoneinfo tables installed.  */
19522   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
19523
19524   tm.tm_year = 98;
19525   tm.tm_mon = 3;
19526   tm.tm_mday = 5;
19527   tm.tm_hour = 2;
19528   tm.tm_min = 0;
19529   tm.tm_sec = 0;
19530   tm.tm_isdst = -1;
19531   return mktime (&tm) != (time_t) -1;
19532 }
19533
19534 static int
19535 mktime_test1 (time_t now)
19536 {
19537   struct tm *lt;
19538   return ! (lt = localtime (&now)) || mktime (lt) == now;
19539 }
19540
19541 static int
19542 mktime_test (time_t now)
19543 {
19544   return (mktime_test1 (now)
19545           && mktime_test1 ((time_t) (time_t_max - now))
19546           && mktime_test1 ((time_t) (time_t_min + now)));
19547 }
19548
19549 static int
19550 irix_6_4_bug ()
19551 {
19552   /* Based on code from Ariel Faigon.  */
19553   struct tm tm;
19554   tm.tm_year = 96;
19555   tm.tm_mon = 3;
19556   tm.tm_mday = 0;
19557   tm.tm_hour = 0;
19558   tm.tm_min = 0;
19559   tm.tm_sec = 0;
19560   tm.tm_isdst = -1;
19561   mktime (&tm);
19562   return tm.tm_mon == 2 && tm.tm_mday == 31;
19563 }
19564
19565 static int
19566 bigtime_test (int j)
19567 {
19568   struct tm tm;
19569   time_t now;
19570   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19571   now = mktime (&tm);
19572   if (now != (time_t) -1)
19573     {
19574       struct tm *lt = localtime (&now);
19575       if (! (lt
19576              && lt->tm_year == tm.tm_year
19577              && lt->tm_mon == tm.tm_mon
19578              && lt->tm_mday == tm.tm_mday
19579              && lt->tm_hour == tm.tm_hour
19580              && lt->tm_min == tm.tm_min
19581              && lt->tm_sec == tm.tm_sec
19582              && lt->tm_yday == tm.tm_yday
19583              && lt->tm_wday == tm.tm_wday
19584              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19585                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19586         return 0;
19587     }
19588   return 1;
19589 }
19590
19591 static int
19592 year_2050_test ()
19593 {
19594   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19595      ignoring leap seconds.  */
19596   unsigned long int answer = 2527315200UL;
19597
19598   struct tm tm;
19599   time_t t;
19600   tm.tm_year = 2050 - 1900;
19601   tm.tm_mon = 2 - 1;
19602   tm.tm_mday = 1;
19603   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19604   tm.tm_isdst = -1;
19605
19606   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19607      instead of "TZ=America/Vancouver" in order to detect the bug even
19608      on systems that don't support the Olson extension, or don't have the
19609      full zoneinfo tables installed.  */
19610   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
19611
19612   t = mktime (&tm);
19613
19614   /* Check that the result is either a failure, or close enough
19615      to the correct answer that we can assume the discrepancy is
19616      due to leap seconds.  */
19617   return (t == (time_t) -1
19618           || (0 < t && answer - 120 <= t && t <= answer + 120));
19619 }
19620
19621 int
19622 main ()
19623 {
19624   time_t t, delta;
19625   int i, j;
19626
19627   /* This test makes some buggy mktime implementations loop.
19628      Give up after 60 seconds; a mktime slower than that
19629      isn't worth using anyway.  */
19630   alarm (60);
19631
19632   for (;;)
19633     {
19634       t = (time_t_max << 1) + 1;
19635       if (t <= time_t_max)
19636         break;
19637       time_t_max = t;
19638     }
19639   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
19640
19641   delta = time_t_max / 997; /* a suitable prime number */
19642   for (i = 0; i < N_STRINGS; i++)
19643     {
19644       if (tz_strings[i])
19645         putenv ((char*) tz_strings[i]);
19646
19647       for (t = 0; t <= time_t_max - delta; t += delta)
19648         if (! mktime_test (t))
19649           return 1;
19650       if (! (mktime_test ((time_t) 1)
19651              && mktime_test ((time_t) (60 * 60))
19652              && mktime_test ((time_t) (60 * 60 * 24))))
19653         return 1;
19654
19655       for (j = 1; ; j <<= 1)
19656         if (! bigtime_test (j))
19657           return 1;
19658         else if (INT_MAX / 2 < j)
19659           break;
19660       if (! bigtime_test (INT_MAX))
19661         return 1;
19662     }
19663   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
19664 }
19665 _ACEOF
19666 if ac_fn_c_try_run "$LINENO"; then :
19667   ac_cv_func_working_mktime=yes
19668 else
19669   ac_cv_func_working_mktime=no
19670 fi
19671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19672   conftest.$ac_objext conftest.beam conftest.$ac_ext
19673 fi
19674
19675 fi
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
19677 $as_echo "$ac_cv_func_working_mktime" >&6; }
19678 if test $ac_cv_func_working_mktime = no; then
19679   case " $LIBOBJS " in
19680   *" mktime.$ac_objext "* ) ;;
19681   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
19682  ;;
19683 esac
19684
19685 fi
19686
19687 for ac_func in strftime
19688 do :
19689   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19690 if test "x$ac_cv_func_strftime" = xyes; then :
19691   cat >>confdefs.h <<_ACEOF
19692 #define HAVE_STRFTIME 1
19693 _ACEOF
19694
19695 else
19696   # strftime is in -lintl on SCO UNIX.
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
19698 $as_echo_n "checking for strftime in -lintl... " >&6; }
19699 if ${ac_cv_lib_intl_strftime+:} false; then :
19700   $as_echo_n "(cached) " >&6
19701 else
19702   ac_check_lib_save_LIBS=$LIBS
19703 LIBS="-lintl  $LIBS"
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h.  */
19706
19707 /* Override any GCC internal prototype to avoid an error.
19708    Use char because int might match the return type of a GCC
19709    builtin and then its argument prototype would still apply.  */
19710 #ifdef __cplusplus
19711 extern "C"
19712 #endif
19713 char strftime ();
19714 int
19715 main ()
19716 {
19717 return strftime ();
19718   ;
19719   return 0;
19720 }
19721 _ACEOF
19722 if ac_fn_c_try_link "$LINENO"; then :
19723   ac_cv_lib_intl_strftime=yes
19724 else
19725   ac_cv_lib_intl_strftime=no
19726 fi
19727 rm -f core conftest.err conftest.$ac_objext \
19728     conftest$ac_exeext conftest.$ac_ext
19729 LIBS=$ac_check_lib_save_LIBS
19730 fi
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
19732 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
19733 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
19734   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
19735
19736 LIBS="-lintl $LIBS"
19737 fi
19738
19739 fi
19740 done
19741
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19743 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19744 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
19745   $as_echo_n "(cached) " >&6
19746 else
19747   rm -f conftest.sym conftest.file
19748 echo >conftest.file
19749 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19750   if test "$cross_compiling" = yes; then :
19751   ac_cv_func_lstat_dereferences_slashed_symlink=no
19752 else
19753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h.  */
19755 $ac_includes_default
19756 int
19757 main ()
19758 {
19759 struct stat sbuf;
19760      /* Linux will dereference the symlink and fail, as required by POSIX.
19761         That is better in the sense that it means we will not
19762         have to compile and use the lstat wrapper.  */
19763      return lstat ("conftest.sym/", &sbuf) == 0;
19764   ;
19765   return 0;
19766 }
19767 _ACEOF
19768 if ac_fn_c_try_run "$LINENO"; then :
19769   ac_cv_func_lstat_dereferences_slashed_symlink=yes
19770 else
19771   ac_cv_func_lstat_dereferences_slashed_symlink=no
19772 fi
19773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19774   conftest.$ac_objext conftest.beam conftest.$ac_ext
19775 fi
19776
19777 else
19778   # If the `ln -s' command failed, then we probably don't even
19779   # have an lstat function.
19780   ac_cv_func_lstat_dereferences_slashed_symlink=no
19781 fi
19782 rm -f conftest.sym conftest.file
19783
19784 fi
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19786 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19787
19788 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19789
19790 cat >>confdefs.h <<_ACEOF
19791 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19792 _ACEOF
19793
19794
19795 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19796   case " $LIBOBJS " in
19797   *" lstat.$ac_objext "* ) ;;
19798   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19799  ;;
19800 esac
19801
19802 fi
19803
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
19805 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
19806 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
19807   $as_echo_n "(cached) " >&6
19808 else
19809   if test "$cross_compiling" = yes; then :
19810   ac_cv_func_stat_empty_string_bug=yes
19811 else
19812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813 /* end confdefs.h.  */
19814 $ac_includes_default
19815 int
19816 main ()
19817 {
19818 struct stat sbuf;
19819   return stat ("", &sbuf) == 0;
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 if ac_fn_c_try_run "$LINENO"; then :
19825   ac_cv_func_stat_empty_string_bug=no
19826 else
19827   ac_cv_func_stat_empty_string_bug=yes
19828 fi
19829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19830   conftest.$ac_objext conftest.beam conftest.$ac_ext
19831 fi
19832
19833 fi
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
19835 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
19836 if test $ac_cv_func_stat_empty_string_bug = yes; then
19837   case " $LIBOBJS " in
19838   *" stat.$ac_objext "* ) ;;
19839   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
19840  ;;
19841 esac
19842
19843
19844 cat >>confdefs.h <<_ACEOF
19845 #define HAVE_STAT_EMPTY_STRING_BUG 1
19846 _ACEOF
19847
19848 fi
19849
19850 for ac_header in sys/select.h sys/socket.h
19851 do :
19852   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19853 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19854 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19855   cat >>confdefs.h <<_ACEOF
19856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19857 _ACEOF
19858
19859 fi
19860
19861 done
19862
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19864 $as_echo_n "checking types of arguments for select... " >&6; }
19865 if ${ac_cv_func_select_args+:} false; then :
19866   $as_echo_n "(cached) " >&6
19867 else
19868   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19869  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19870   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19871    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h.  */
19873 $ac_includes_default
19874 #ifdef HAVE_SYS_SELECT_H
19875 # include <sys/select.h>
19876 #endif
19877 #ifdef HAVE_SYS_SOCKET_H
19878 # include <sys/socket.h>
19879 #endif
19880
19881 int
19882 main ()
19883 {
19884 extern int select ($ac_arg1,
19885                                             $ac_arg234, $ac_arg234, $ac_arg234,
19886                                             $ac_arg5);
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 if ac_fn_c_try_compile "$LINENO"; then :
19892   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19893 fi
19894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895   done
19896  done
19897 done
19898 # Provide a safe default value.
19899 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19900
19901 fi
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19903 $as_echo "$ac_cv_func_select_args" >&6; }
19904 ac_save_IFS=$IFS; IFS=','
19905 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19906 IFS=$ac_save_IFS
19907 shift
19908
19909 cat >>confdefs.h <<_ACEOF
19910 #define SELECT_TYPE_ARG1 $1
19911 _ACEOF
19912
19913
19914 cat >>confdefs.h <<_ACEOF
19915 #define SELECT_TYPE_ARG234 ($2)
19916 _ACEOF
19917
19918
19919 cat >>confdefs.h <<_ACEOF
19920 #define SELECT_TYPE_ARG5 ($3)
19921 _ACEOF
19922
19923 rm -f conftest*
19924
19925 for ac_func in strftime
19926 do :
19927   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19928 if test "x$ac_cv_func_strftime" = xyes; then :
19929   cat >>confdefs.h <<_ACEOF
19930 #define HAVE_STRFTIME 1
19931 _ACEOF
19932
19933 else
19934   # strftime is in -lintl on SCO UNIX.
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
19936 $as_echo_n "checking for strftime in -lintl... " >&6; }
19937 if ${ac_cv_lib_intl_strftime+:} false; then :
19938   $as_echo_n "(cached) " >&6
19939 else
19940   ac_check_lib_save_LIBS=$LIBS
19941 LIBS="-lintl  $LIBS"
19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943 /* end confdefs.h.  */
19944
19945 /* Override any GCC internal prototype to avoid an error.
19946    Use char because int might match the return type of a GCC
19947    builtin and then its argument prototype would still apply.  */
19948 #ifdef __cplusplus
19949 extern "C"
19950 #endif
19951 char strftime ();
19952 int
19953 main ()
19954 {
19955 return strftime ();
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 if ac_fn_c_try_link "$LINENO"; then :
19961   ac_cv_lib_intl_strftime=yes
19962 else
19963   ac_cv_lib_intl_strftime=no
19964 fi
19965 rm -f core conftest.err conftest.$ac_objext \
19966     conftest$ac_exeext conftest.$ac_ext
19967 LIBS=$ac_check_lib_save_LIBS
19968 fi
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
19970 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
19971 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
19972   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
19973
19974 LIBS="-lintl $LIBS"
19975 fi
19976
19977 fi
19978 done
19979
19980 for ac_func in vprintf
19981 do :
19982   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19983 if test "x$ac_cv_func_vprintf" = xyes; then :
19984   cat >>confdefs.h <<_ACEOF
19985 #define HAVE_VPRINTF 1
19986 _ACEOF
19987
19988 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19989 if test "x$ac_cv_func__doprnt" = xyes; then :
19990
19991 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19992
19993 fi
19994
19995 fi
19996 done
19997
19998
19999
20000 TMPLIBS="$LIBS"
20001 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
20002 if test "x$ac_cv_header_math_h" = xyes; then :
20003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
20004 $as_echo_n "checking for pow in -lm... " >&6; }
20005 if ${ac_cv_lib_m_pow+:} false; then :
20006   $as_echo_n "(cached) " >&6
20007 else
20008   ac_check_lib_save_LIBS=$LIBS
20009 LIBS="-lm  $LIBS"
20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011 /* end confdefs.h.  */
20012
20013 /* Override any GCC internal prototype to avoid an error.
20014    Use char because int might match the return type of a GCC
20015    builtin and then its argument prototype would still apply.  */
20016 #ifdef __cplusplus
20017 extern "C"
20018 #endif
20019 char pow ();
20020 int
20021 main ()
20022 {
20023 return pow ();
20024   ;
20025   return 0;
20026 }
20027 _ACEOF
20028 if ac_fn_c_try_link "$LINENO"; then :
20029   ac_cv_lib_m_pow=yes
20030 else
20031   ac_cv_lib_m_pow=no
20032 fi
20033 rm -f core conftest.err conftest.$ac_objext \
20034     conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20036 fi
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
20038 $as_echo "$ac_cv_lib_m_pow" >&6; }
20039 if test "x$ac_cv_lib_m_pow" = xyes; then :
20040   LIBM="-lm"
20041      LIBS="$LIBS $LIBM"
20042
20043 $as_echo "#define HAVE_LIBM /**/" >>confdefs.h
20044
20045      for ac_func in pow
20046 do :
20047   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
20048 if test "x$ac_cv_func_pow" = xyes; then :
20049   cat >>confdefs.h <<_ACEOF
20050 #define HAVE_POW 1
20051 _ACEOF
20052
20053 else
20054   LIBM=""
20055 fi
20056 done
20057
20058
20059 fi
20060
20061
20062 fi
20063
20064
20065 if test x"$LIBM" = x ; then
20066   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find working pow function - bgpd may not link" >&5
20067 $as_echo "$as_me: WARNING: Unable to find working pow function - bgpd may not link" >&2;}
20068 fi
20069 LIBS="$TMPLIBS"
20070
20071
20072 for ac_func in dup2 ftruncate getcwd gethostbyname getpagesize gettimeofday \
20073         inet_ntoa inet_aton strnlen \
20074         memchr memmove memset select socket \
20075         strcasecmp strchr strcspn strdup strerror \
20076         strncasecmp strndup strrchr strspn strstr \
20077         strtol strtoul strlcat strlcpy \
20078         daemon snprintf vsnprintf \
20079         if_nametoindex if_indextoname getifaddrs \
20080         uname fcntl getgrouplist
20081 do :
20082   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20083 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20084 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20085   cat >>confdefs.h <<_ACEOF
20086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20087 _ACEOF
20088
20089 fi
20090 done
20091
20092
20093
20094 ac_fn_c_check_header_mongrel "$LINENO" "asm-generic/unistd.h" "ac_cv_header_asm_generic_unistd_h" "$ac_includes_default"
20095 if test "x$ac_cv_header_asm_generic_unistd_h" = xyes; then :
20096   ac_fn_c_check_decl "$LINENO" "__NR_setns" "ac_cv_have_decl___NR_setns" "#ifdef SUNOS_5
20097 #define _XPG4_2
20098 #define __EXTENSIONS__
20099 #endif
20100 #include <stdio.h>
20101 #if STDC_HEADERS
20102 # include <stdlib.h>
20103 # include <stddef.h>
20104 #else
20105 # if HAVE_STDLIB_H
20106 #  include <stdlib.h>
20107 # endif
20108 #endif
20109 #if HAVE_SYS_TYPES_H
20110 # include <sys/types.h>
20111 #endif
20112 /* sys/conf.h depends on param.h on FBSD at least */
20113 #if HAVE_SYS_PARAM_H
20114 # include <sys/param.h>
20115 #endif
20116 /* Required for MAXSIG */
20117 #if HAVE_SIGNAL_H
20118 # include <signal.h>
20119 #endif
20120 #if HAVE_SYS_SOCKET_H
20121 # include <sys/socket.h>
20122 #endif
20123 #ifdef __APPLE__
20124 # define __APPLE_USE_RFC_3542
20125 #endif
20126 #if HAVE_NETINET_IN_H
20127 # include <netinet/in.h>
20128 #endif
20129 #ifdef TIME_WITH_SYS_TIME
20130 # include <sys/time.h>
20131 # include <time.h>
20132 #else
20133 # ifdef HAVE_SYS_TIME_H
20134 #  include <sys/time.h>
20135 # else
20136 #  include <time.h>
20137 # endif
20138 #endif /* TIME_WITH_SYS_TIME */
20139
20140 #if HAVE_NET_IF_H
20141 # include <net/if.h>
20142 #endif
20143
20144 #if HAVE_NET_IF_VAR_H
20145 # include <net/if_var.h>
20146 #endif
20147
20148 #if HAVE_SYS_UN_H
20149 # include <sys/un.h>
20150 #endif
20151 #if HAVE_NETINET_IN_SYSTM_H
20152 # include <netinet/in_systm.h>
20153 #endif
20154 #if HAVE_NETINET_IN_VAR_H
20155 # include <netinet/in_var.h>
20156 #endif
20157 #if HAVE_NET_IF_DL_H
20158 # include <net/if_dl.h>
20159 #endif
20160 #if HAVE_NET_NETOPT_H
20161 # include <net/netopt.h>
20162 #endif
20163 #if HAVE_NET_ROUTE_H
20164 # include <net/route.h>
20165 #endif
20166 #if HAVE_INET_ND_H
20167 # include <inet/nd.h>
20168 #endif
20169 #if HAVE_ARPA_INET_H
20170 # include <arpa/inet.h>
20171 #endif
20172 /* Required for IDRP */
20173 #if HAVE_NETINET_IP_ICMP_H
20174 # include <netinet/ip_icmp.h>
20175 #endif
20176  #include <asm-generic/unistd.h>
20177
20178 "
20179 if test "x$ac_cv_have_decl___NR_setns" = xyes; then :
20180
20181 $as_echo "#define HAVE_NETNS /**/" >>confdefs.h
20182
20183 fi
20184
20185                  for ac_func in setns
20186 do :
20187   ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
20188 if test "x$ac_cv_func_setns" = xyes; then :
20189   cat >>confdefs.h <<_ACEOF
20190 #define HAVE_SETNS 1
20191 _ACEOF
20192
20193 $as_echo "#define HAVE_SETNS /**/" >>confdefs.h
20194
20195 fi
20196 done
20197
20198
20199 fi
20200
20201
20202
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra between kernel interface method" >&5
20204 $as_echo_n "checking zebra between kernel interface method... " >&6; }
20205 if test x"$opsys" = x"gnu-linux"; then
20206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
20207 $as_echo "netlink" >&6; }
20208   RT_METHOD=rt_netlink.o
20209
20210 $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
20211
20212   netlink=yes
20213 else
20214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
20215 $as_echo "Route socket" >&6; }
20216   KERNEL_METHOD="kernel_socket.o"
20217   RT_METHOD="rt_socket.o"
20218 fi
20219
20220
20221  if test "x$netlink" = "xyes"; then
20222   HAVE_NETLINK_TRUE=
20223   HAVE_NETLINK_FALSE='#'
20224 else
20225   HAVE_NETLINK_TRUE='#'
20226   HAVE_NETLINK_FALSE=
20227 fi
20228
20229
20230
20231 $as_echo "#define ISIS_METHOD_PFPACKET 1" >>confdefs.h
20232
20233
20234 $as_echo "#define ISIS_METHOD_DLPI 2" >>confdefs.h
20235
20236
20237 $as_echo "#define ISIS_METHOD_BPF 3" >>confdefs.h
20238
20239 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
20240 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
20241
20242 fi
20243
20244
20245 ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
20246 if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
20247
20248 fi
20249
20250
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra IS-IS I/O method" >&5
20252 $as_echo_n "checking zebra IS-IS I/O method... " >&6; }
20253 if test x"$opsys" = x"gnu-linux"; then
20254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: pfpacket" >&5
20255 $as_echo "pfpacket" >&6; }
20256   ISIS_METHOD_MACRO="ISIS_METHOD_PFPACKET"
20257 elif test x"$opsys" = x"sol2-6" -o x"$opsys" = x"sol8"; then
20258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
20259 $as_echo "DLPI" >&6; }
20260   ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
20261 else
20262   if test $ac_cv_header_net_bpf_h = no; then
20263     if test $ac_cv_header_sys_dlpi_h = no; then
20264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20265 $as_echo "none" >&6; }
20266       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** IS-IS support will not be built ***" >&5
20267 $as_echo "$as_me: WARNING: *** IS-IS support will not be built ***" >&2;}
20268       ISISD=""
20269     else
20270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
20271 $as_echo "DLPI" >&6; }
20272     fi
20273     ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
20274   else
20275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: BPF" >&5
20276 $as_echo "BPF" >&6; }
20277     ISIS_METHOD_MACRO="ISIS_METHOD_BPF"
20278   fi
20279 fi
20280
20281 cat >>confdefs.h <<_ACEOF
20282 #define ISIS_METHOD $ISIS_METHOD_MACRO
20283 _ACEOF
20284
20285
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken CMSG_FIRSTHDR" >&5
20287 $as_echo_n "checking for broken CMSG_FIRSTHDR... " >&6; }
20288 if test "$cross_compiling" = yes; then :
20289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20290 $as_echo "no" >&6; }
20291 else
20292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h.  */
20294
20295 #ifdef SUNOS_5
20296 #define _XPG4_2
20297 #define __EXTENSIONS__
20298 #endif
20299 #ifdef HAVE_STDLIB_H
20300 # include <stdlib.h>
20301 #endif
20302 #ifdef HAVE_SYS_TYPES_H
20303 #include <sys/types.h>
20304 #endif
20305 #ifdef HAVE_SYS_SOCKET_H
20306 #include <sys/socket.h>
20307 #endif
20308
20309 main()
20310 {
20311   struct msghdr msg;
20312   char buf[4];
20313
20314   msg.msg_control = buf;
20315   msg.msg_controllen = 0;
20316
20317   if (CMSG_FIRSTHDR(&msg) != NULL)
20318     exit(0);
20319   exit (1);
20320 }
20321 _ACEOF
20322 if ac_fn_c_try_run "$LINENO"; then :
20323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - using workaround" >&5
20324 $as_echo "yes - using workaround" >&6; }
20325 $as_echo "#define HAVE_BROKEN_CMSG_FIRSTHDR /**/" >>confdefs.h
20326
20327 else
20328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20329 $as_echo "no" >&6; }
20330 fi
20331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20332   conftest.$ac_objext conftest.beam conftest.$ac_ext
20333 fi
20334
20335
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking route read method" >&5
20337 $as_echo_n "checking route read method... " >&6; }
20338 if ${quagga_cv_rtread_method+:} false; then :
20339   $as_echo_n "(cached) " >&6
20340 else
20341   if test "x$netlink" = xyes; then
20342   quagga_cv_rtread_method="netlink"
20343 else
20344 for quagga_cv_rtread_method in /dev/ip /dev/null;
20345 do
20346   test x`ls $quagga_cv_rtread_method 2>/dev/null` = x"$quagga_cv_rtread_method" && break
20347 done
20348 case $quagga_cv_rtread_method in
20349   "/dev/ip")
20350                      case "$host" in
20351                        *-freebsd*)    quagga_cv_rtread_method="sysctl";;
20352                        *)             quagga_cv_rtread_method="getmsg";;
20353                      esac;;
20354         *)
20355                      quagga_cv_rtread_method="sysctl";;
20356 esac
20357 fi
20358 fi
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_rtread_method" >&5
20360 $as_echo "$quagga_cv_rtread_method" >&6; }
20361 RTREAD_METHOD=rtread_${quagga_cv_rtread_method}.o
20362
20363
20364 IOCTL_METHOD=ioctl.o
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking interface looking up method" >&5
20366 $as_echo_n "checking interface looking up method... " >&6; }
20367 if test "$netlink" = yes; then
20368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
20369 $as_echo "netlink" >&6; }
20370   IF_METHOD=if_netlink.o
20371 elif test "$opsys" = "sol2-6";then
20372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GIF" >&5
20373 $as_echo "Solaris GIF" >&6; }
20374   IF_METHOD=if_ioctl.o
20375 elif test "$opsys" = "sol8";then
20376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GLIF" >&5
20377 $as_echo "Solaris GLIF" >&6; }
20378   IF_METHOD=if_ioctl_solaris.o
20379   IOCTL_METHOD=ioctl_solaris.o
20380 elif test "$opsys" = "openbsd";then
20381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
20382 $as_echo "openbsd" >&6; }
20383   IF_METHOD=if_ioctl.o
20384 elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
20385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysctl" >&5
20386 $as_echo "sysctl" >&6; }
20387     IF_METHOD=if_sysctl.o
20388
20389 $as_echo "#define HAVE_NET_RT_IFLIST /**/" >>confdefs.h
20390
20391 else
20392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
20393 $as_echo "ioctl" >&6; }
20394     IF_METHOD=if_ioctl.o
20395 fi
20396
20397
20398
20399 ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" "#ifdef SUNOS_5
20400 #define _XPG4_2
20401 #define __EXTENSIONS__
20402 #endif
20403 #include <stdio.h>
20404 #if STDC_HEADERS
20405 # include <stdlib.h>
20406 # include <stddef.h>
20407 #else
20408 # if HAVE_STDLIB_H
20409 #  include <stdlib.h>
20410 # endif
20411 #endif
20412 #if HAVE_SYS_TYPES_H
20413 # include <sys/types.h>
20414 #endif
20415 /* sys/conf.h depends on param.h on FBSD at least */
20416 #if HAVE_SYS_PARAM_H
20417 # include <sys/param.h>
20418 #endif
20419 /* Required for MAXSIG */
20420 #if HAVE_SIGNAL_H
20421 # include <signal.h>
20422 #endif
20423 #if HAVE_SYS_SOCKET_H
20424 # include <sys/socket.h>
20425 #endif
20426 #ifdef __APPLE__
20427 # define __APPLE_USE_RFC_3542
20428 #endif
20429 #if HAVE_NETINET_IN_H
20430 # include <netinet/in.h>
20431 #endif
20432 #ifdef TIME_WITH_SYS_TIME
20433 # include <sys/time.h>
20434 # include <time.h>
20435 #else
20436 # ifdef HAVE_SYS_TIME_H
20437 #  include <sys/time.h>
20438 # else
20439 #  include <time.h>
20440 # endif
20441 #endif /* TIME_WITH_SYS_TIME */
20442
20443 #if HAVE_NET_IF_H
20444 # include <net/if.h>
20445 #endif
20446
20447 #if HAVE_NET_IF_VAR_H
20448 # include <net/if_var.h>
20449 #endif
20450
20451 #if HAVE_SYS_UN_H
20452 # include <sys/un.h>
20453 #endif
20454 #if HAVE_NETINET_IN_SYSTM_H
20455 # include <netinet/in_systm.h>
20456 #endif
20457 #if HAVE_NETINET_IN_VAR_H
20458 # include <netinet/in_var.h>
20459 #endif
20460 #if HAVE_NET_IF_DL_H
20461 # include <net/if_dl.h>
20462 #endif
20463 #if HAVE_NET_NETOPT_H
20464 # include <net/netopt.h>
20465 #endif
20466 #if HAVE_NET_ROUTE_H
20467 # include <net/route.h>
20468 #endif
20469 #if HAVE_INET_ND_H
20470 # include <inet/nd.h>
20471 #endif
20472 #if HAVE_ARPA_INET_H
20473 # include <arpa/inet.h>
20474 #endif
20475 /* Required for IDRP */
20476 #if HAVE_NETINET_IP_ICMP_H
20477 # include <netinet/ip_icmp.h>
20478 #endif
20479
20480 "
20481 if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes; then :
20482
20483 cat >>confdefs.h <<_ACEOF
20484 #define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1
20485 _ACEOF
20486
20487
20488 fi
20489
20490
20491 for ac_header in linux/mroute.h
20492 do :
20493   ac_fn_c_check_header_compile "$LINENO" "linux/mroute.h" "ac_cv_header_linux_mroute_h" "
20494 #if HAVE_NETINET_IN_H
20495 #include<netinet/in.h>
20496 #endif
20497 "
20498 if test "x$ac_cv_header_linux_mroute_h" = xyes; then :
20499   cat >>confdefs.h <<_ACEOF
20500 #define HAVE_LINUX_MROUTE_H 1
20501 _ACEOF
20502
20503 fi
20504
20505 done
20506
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD struct ip_mreq hack" >&5
20508 $as_echo_n "checking for BSD struct ip_mreq hack... " >&6; }
20509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h.  */
20511 #ifdef HAVE_SYS_PARAM_H
20512 #include <sys/param.h>
20513 #endif
20514 int
20515 main ()
20516 {
20517 #if (defined(__FreeBSD__) && ((__FreeBSD_version >= 500022 && __FreeBSD_version < 700000) || (__FreeBSD_version < 500000 && __FreeBSD_version >= 440000))) || (defined(__NetBSD__) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 106010000) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__sun)
20518   return (0);
20519 #else
20520   #error No support for BSD struct ip_mreq hack detected
20521 #endif
20522   ;
20523   return 0;
20524 }
20525 _ACEOF
20526 if ac_fn_c_try_compile "$LINENO"; then :
20527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20528 $as_echo "yes" >&6; }
20529
20530 $as_echo "#define HAVE_BSD_STRUCT_IP_MREQ_HACK /**/" >>confdefs.h
20531
20532 else
20533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 $as_echo "no" >&6; }
20535 fi
20536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20537
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC3678 protocol-independed API" >&5
20539 $as_echo_n "checking for RFC3678 protocol-independed API... " >&6; }
20540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541 /* end confdefs.h.  */
20542
20543 #include <sys/types.h>
20544 #include <netinet/in.h>
20545
20546 int
20547 main ()
20548 {
20549 struct group_req gr; int sock; setsockopt(sock, IPPROTO_IP, MCAST_JOIN_GROUP, (void*)&gr, sizeof(gr));
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 if ac_fn_c_try_compile "$LINENO"; then :
20556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20557 $as_echo "yes" >&6; }
20558
20559 $as_echo "#define HAVE_RFC3678 1" >>confdefs.h
20560
20561 else
20562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20563 $as_echo "no" >&6; }
20564 fi
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566
20567 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
20568 #define _XPG4_2
20569 #define __EXTENSIONS__
20570 #endif
20571 #include <stdio.h>
20572 #if STDC_HEADERS
20573 # include <stdlib.h>
20574 # include <stddef.h>
20575 #else
20576 # if HAVE_STDLIB_H
20577 #  include <stdlib.h>
20578 # endif
20579 #endif
20580 #if HAVE_SYS_TYPES_H
20581 # include <sys/types.h>
20582 #endif
20583 /* sys/conf.h depends on param.h on FBSD at least */
20584 #if HAVE_SYS_PARAM_H
20585 # include <sys/param.h>
20586 #endif
20587 /* Required for MAXSIG */
20588 #if HAVE_SIGNAL_H
20589 # include <signal.h>
20590 #endif
20591 #if HAVE_SYS_SOCKET_H
20592 # include <sys/socket.h>
20593 #endif
20594 #ifdef __APPLE__
20595 # define __APPLE_USE_RFC_3542
20596 #endif
20597 #if HAVE_NETINET_IN_H
20598 # include <netinet/in.h>
20599 #endif
20600 #ifdef TIME_WITH_SYS_TIME
20601 # include <sys/time.h>
20602 # include <time.h>
20603 #else
20604 # ifdef HAVE_SYS_TIME_H
20605 #  include <sys/time.h>
20606 # else
20607 #  include <time.h>
20608 # endif
20609 #endif /* TIME_WITH_SYS_TIME */
20610
20611 #if HAVE_NET_IF_H
20612 # include <net/if.h>
20613 #endif
20614
20615 #if HAVE_NET_IF_VAR_H
20616 # include <net/if_var.h>
20617 #endif
20618
20619 #if HAVE_SYS_UN_H
20620 # include <sys/un.h>
20621 #endif
20622 #if HAVE_NETINET_IN_SYSTM_H
20623 # include <netinet/in_systm.h>
20624 #endif
20625 #if HAVE_NETINET_IN_VAR_H
20626 # include <netinet/in_var.h>
20627 #endif
20628 #if HAVE_NET_IF_DL_H
20629 # include <net/if_dl.h>
20630 #endif
20631 #if HAVE_NET_NETOPT_H
20632 # include <net/netopt.h>
20633 #endif
20634 #if HAVE_NET_ROUTE_H
20635 # include <net/route.h>
20636 #endif
20637 #if HAVE_INET_ND_H
20638 # include <inet/nd.h>
20639 #endif
20640 #if HAVE_ARPA_INET_H
20641 # include <arpa/inet.h>
20642 #endif
20643 /* Required for IDRP */
20644 #if HAVE_NETINET_IP_ICMP_H
20645 # include <netinet/ip_icmp.h>
20646 #endif
20647
20648 "
20649 if test "x$ac_cv_header_net_if_h" = xyes; then :
20650   ac_fn_c_check_header_compile "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "#ifdef SUNOS_5
20651 #define _XPG4_2
20652 #define __EXTENSIONS__
20653 #endif
20654 #include <stdio.h>
20655 #if STDC_HEADERS
20656 # include <stdlib.h>
20657 # include <stddef.h>
20658 #else
20659 # if HAVE_STDLIB_H
20660 #  include <stdlib.h>
20661 # endif
20662 #endif
20663 #if HAVE_SYS_TYPES_H
20664 # include <sys/types.h>
20665 #endif
20666 /* sys/conf.h depends on param.h on FBSD at least */
20667 #if HAVE_SYS_PARAM_H
20668 # include <sys/param.h>
20669 #endif
20670 /* Required for MAXSIG */
20671 #if HAVE_SIGNAL_H
20672 # include <signal.h>
20673 #endif
20674 #if HAVE_SYS_SOCKET_H
20675 # include <sys/socket.h>
20676 #endif
20677 #ifdef __APPLE__
20678 # define __APPLE_USE_RFC_3542
20679 #endif
20680 #if HAVE_NETINET_IN_H
20681 # include <netinet/in.h>
20682 #endif
20683 #ifdef TIME_WITH_SYS_TIME
20684 # include <sys/time.h>
20685 # include <time.h>
20686 #else
20687 # ifdef HAVE_SYS_TIME_H
20688 #  include <sys/time.h>
20689 # else
20690 #  include <time.h>
20691 # endif
20692 #endif /* TIME_WITH_SYS_TIME */
20693
20694 #if HAVE_NET_IF_H
20695 # include <net/if.h>
20696 #endif
20697
20698 #if HAVE_NET_IF_VAR_H
20699 # include <net/if_var.h>
20700 #endif
20701
20702 #if HAVE_SYS_UN_H
20703 # include <sys/un.h>
20704 #endif
20705 #if HAVE_NETINET_IN_SYSTM_H
20706 # include <netinet/in_systm.h>
20707 #endif
20708 #if HAVE_NETINET_IN_VAR_H
20709 # include <netinet/in_var.h>
20710 #endif
20711 #if HAVE_NET_IF_DL_H
20712 # include <net/if_dl.h>
20713 #endif
20714 #if HAVE_NET_NETOPT_H
20715 # include <net/netopt.h>
20716 #endif
20717 #if HAVE_NET_ROUTE_H
20718 # include <net/route.h>
20719 #endif
20720 #if HAVE_INET_ND_H
20721 # include <inet/nd.h>
20722 #endif
20723 #if HAVE_ARPA_INET_H
20724 # include <arpa/inet.h>
20725 #endif
20726 /* Required for IDRP */
20727 #if HAVE_NETINET_IP_ICMP_H
20728 # include <netinet/ip_icmp.h>
20729 #endif
20730
20731 "
20732 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
20733
20734     ac_fn_c_check_member "$LINENO" "struct ifmediareq" "ifm_status" "ac_cv_member_struct_ifmediareq_ifm_status" "#ifdef SUNOS_5
20735 #define _XPG4_2
20736 #define __EXTENSIONS__
20737 #endif
20738 #include <stdio.h>
20739 #if STDC_HEADERS
20740 # include <stdlib.h>
20741 # include <stddef.h>
20742 #else
20743 # if HAVE_STDLIB_H
20744 #  include <stdlib.h>
20745 # endif
20746 #endif
20747 #if HAVE_SYS_TYPES_H
20748 # include <sys/types.h>
20749 #endif
20750 /* sys/conf.h depends on param.h on FBSD at least */
20751 #if HAVE_SYS_PARAM_H
20752 # include <sys/param.h>
20753 #endif
20754 /* Required for MAXSIG */
20755 #if HAVE_SIGNAL_H
20756 # include <signal.h>
20757 #endif
20758 #if HAVE_SYS_SOCKET_H
20759 # include <sys/socket.h>
20760 #endif
20761 #ifdef __APPLE__
20762 # define __APPLE_USE_RFC_3542
20763 #endif
20764 #if HAVE_NETINET_IN_H
20765 # include <netinet/in.h>
20766 #endif
20767 #ifdef TIME_WITH_SYS_TIME
20768 # include <sys/time.h>
20769 # include <time.h>
20770 #else
20771 # ifdef HAVE_SYS_TIME_H
20772 #  include <sys/time.h>
20773 # else
20774 #  include <time.h>
20775 # endif
20776 #endif /* TIME_WITH_SYS_TIME */
20777
20778 #if HAVE_NET_IF_H
20779 # include <net/if.h>
20780 #endif
20781
20782 #if HAVE_NET_IF_VAR_H
20783 # include <net/if_var.h>
20784 #endif
20785
20786 #if HAVE_SYS_UN_H
20787 # include <sys/un.h>
20788 #endif
20789 #if HAVE_NETINET_IN_SYSTM_H
20790 # include <netinet/in_systm.h>
20791 #endif
20792 #if HAVE_NETINET_IN_VAR_H
20793 # include <netinet/in_var.h>
20794 #endif
20795 #if HAVE_NET_IF_DL_H
20796 # include <net/if_dl.h>
20797 #endif
20798 #if HAVE_NET_NETOPT_H
20799 # include <net/netopt.h>
20800 #endif
20801 #if HAVE_NET_ROUTE_H
20802 # include <net/route.h>
20803 #endif
20804 #if HAVE_INET_ND_H
20805 # include <inet/nd.h>
20806 #endif
20807 #if HAVE_ARPA_INET_H
20808 # include <arpa/inet.h>
20809 #endif
20810 /* Required for IDRP */
20811 #if HAVE_NETINET_IP_ICMP_H
20812 # include <netinet/ip_icmp.h>
20813 #endif
20814
20815       #include <net/if_media.h>
20816
20817 "
20818 if test "x$ac_cv_member_struct_ifmediareq_ifm_status" = xyes; then :
20819
20820 cat >>confdefs.h <<_ACEOF
20821 #define HAVE_STRUCT_IFMEDIAREQ_IFM_STATUS 1
20822 _ACEOF
20823
20824
20825 $as_echo "#define HAVE_BSD_LINK_DETECT /**/" >>confdefs.h
20826
20827 fi
20828
20829 fi
20830
20831
20832 fi
20833
20834
20835
20836 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
20837 if test "x$ac_cv_header_net_if_h" = xyes; then :
20838   ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_link_state" "ac_cv_member_struct_if_data_ifi_link_state" "#ifdef SUNOS_5
20839 #define _XPG4_2
20840 #define __EXTENSIONS__
20841 #endif
20842 #include <stdio.h>
20843 #if STDC_HEADERS
20844 # include <stdlib.h>
20845 # include <stddef.h>
20846 #else
20847 # if HAVE_STDLIB_H
20848 #  include <stdlib.h>
20849 # endif
20850 #endif
20851 #if HAVE_SYS_TYPES_H
20852 # include <sys/types.h>
20853 #endif
20854 /* sys/conf.h depends on param.h on FBSD at least */
20855 #if HAVE_SYS_PARAM_H
20856 # include <sys/param.h>
20857 #endif
20858 /* Required for MAXSIG */
20859 #if HAVE_SIGNAL_H
20860 # include <signal.h>
20861 #endif
20862 #if HAVE_SYS_SOCKET_H
20863 # include <sys/socket.h>
20864 #endif
20865 #ifdef __APPLE__
20866 # define __APPLE_USE_RFC_3542
20867 #endif
20868 #if HAVE_NETINET_IN_H
20869 # include <netinet/in.h>
20870 #endif
20871 #ifdef TIME_WITH_SYS_TIME
20872 # include <sys/time.h>
20873 # include <time.h>
20874 #else
20875 # ifdef HAVE_SYS_TIME_H
20876 #  include <sys/time.h>
20877 # else
20878 #  include <time.h>
20879 # endif
20880 #endif /* TIME_WITH_SYS_TIME */
20881
20882 #if HAVE_NET_IF_H
20883 # include <net/if.h>
20884 #endif
20885
20886 #if HAVE_NET_IF_VAR_H
20887 # include <net/if_var.h>
20888 #endif
20889
20890 #if HAVE_SYS_UN_H
20891 # include <sys/un.h>
20892 #endif
20893 #if HAVE_NETINET_IN_SYSTM_H
20894 # include <netinet/in_systm.h>
20895 #endif
20896 #if HAVE_NETINET_IN_VAR_H
20897 # include <netinet/in_var.h>
20898 #endif
20899 #if HAVE_NET_IF_DL_H
20900 # include <net/if_dl.h>
20901 #endif
20902 #if HAVE_NET_NETOPT_H
20903 # include <net/netopt.h>
20904 #endif
20905 #if HAVE_NET_ROUTE_H
20906 # include <net/route.h>
20907 #endif
20908 #if HAVE_INET_ND_H
20909 # include <inet/nd.h>
20910 #endif
20911 #if HAVE_ARPA_INET_H
20912 # include <arpa/inet.h>
20913 #endif
20914 /* Required for IDRP */
20915 #if HAVE_NETINET_IP_ICMP_H
20916 # include <netinet/ip_icmp.h>
20917 #endif
20918
20919 "
20920 if test "x$ac_cv_member_struct_if_data_ifi_link_state" = xyes; then :
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define HAVE_STRUCT_IF_DATA_IFI_LINK_STATE 1
20924 _ACEOF
20925
20926
20927 $as_echo "#define HAVE_BSD_IFI_LINK_STATE /**/" >>confdefs.h
20928
20929 fi
20930
20931 fi
20932
20933
20934
20935
20936 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "#ifdef SUNOS_5
20937 #define _XPG4_2
20938 #define __EXTENSIONS__
20939 #endif
20940 #include <stdio.h>
20941 #if STDC_HEADERS
20942 # include <stdlib.h>
20943 # include <stddef.h>
20944 #else
20945 # if HAVE_STDLIB_H
20946 #  include <stdlib.h>
20947 # endif
20948 #endif
20949 #if HAVE_SYS_TYPES_H
20950 # include <sys/types.h>
20951 #endif
20952 /* sys/conf.h depends on param.h on FBSD at least */
20953 #if HAVE_SYS_PARAM_H
20954 # include <sys/param.h>
20955 #endif
20956 /* Required for MAXSIG */
20957 #if HAVE_SIGNAL_H
20958 # include <signal.h>
20959 #endif
20960 #if HAVE_SYS_SOCKET_H
20961 # include <sys/socket.h>
20962 #endif
20963 #ifdef __APPLE__
20964 # define __APPLE_USE_RFC_3542
20965 #endif
20966 #if HAVE_NETINET_IN_H
20967 # include <netinet/in.h>
20968 #endif
20969 #ifdef TIME_WITH_SYS_TIME
20970 # include <sys/time.h>
20971 # include <time.h>
20972 #else
20973 # ifdef HAVE_SYS_TIME_H
20974 #  include <sys/time.h>
20975 # else
20976 #  include <time.h>
20977 # endif
20978 #endif /* TIME_WITH_SYS_TIME */
20979
20980 #if HAVE_NET_IF_H
20981 # include <net/if.h>
20982 #endif
20983
20984 #if HAVE_NET_IF_VAR_H
20985 # include <net/if_var.h>
20986 #endif
20987
20988 #if HAVE_SYS_UN_H
20989 # include <sys/un.h>
20990 #endif
20991 #if HAVE_NETINET_IN_SYSTM_H
20992 # include <netinet/in_systm.h>
20993 #endif
20994 #if HAVE_NETINET_IN_VAR_H
20995 # include <netinet/in_var.h>
20996 #endif
20997 #if HAVE_NET_IF_DL_H
20998 # include <net/if_dl.h>
20999 #endif
21000 #if HAVE_NET_NETOPT_H
21001 # include <net/netopt.h>
21002 #endif
21003 #if HAVE_NET_ROUTE_H
21004 # include <net/route.h>
21005 #endif
21006 #if HAVE_INET_ND_H
21007 # include <inet/nd.h>
21008 #endif
21009 #if HAVE_ARPA_INET_H
21010 # include <arpa/inet.h>
21011 #endif
21012 /* Required for IDRP */
21013 #if HAVE_NETINET_IP_ICMP_H
21014 # include <netinet/ip_icmp.h>
21015 #endif
21016
21017 "
21018 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
21019
21020     ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
21021 #define _XPG4_2
21022 #define __EXTENSIONS__
21023 #endif
21024 #include <stdio.h>
21025 #if STDC_HEADERS
21026 # include <stdlib.h>
21027 # include <stddef.h>
21028 #else
21029 # if HAVE_STDLIB_H
21030 #  include <stdlib.h>
21031 # endif
21032 #endif
21033 #if HAVE_SYS_TYPES_H
21034 # include <sys/types.h>
21035 #endif
21036 /* sys/conf.h depends on param.h on FBSD at least */
21037 #if HAVE_SYS_PARAM_H
21038 # include <sys/param.h>
21039 #endif
21040 /* Required for MAXSIG */
21041 #if HAVE_SIGNAL_H
21042 # include <signal.h>
21043 #endif
21044 #if HAVE_SYS_SOCKET_H
21045 # include <sys/socket.h>
21046 #endif
21047 #ifdef __APPLE__
21048 # define __APPLE_USE_RFC_3542
21049 #endif
21050 #if HAVE_NETINET_IN_H
21051 # include <netinet/in.h>
21052 #endif
21053 #ifdef TIME_WITH_SYS_TIME
21054 # include <sys/time.h>
21055 # include <time.h>
21056 #else
21057 # ifdef HAVE_SYS_TIME_H
21058 #  include <sys/time.h>
21059 # else
21060 #  include <time.h>
21061 # endif
21062 #endif /* TIME_WITH_SYS_TIME */
21063
21064 #if HAVE_NET_IF_H
21065 # include <net/if.h>
21066 #endif
21067
21068 #if HAVE_NET_IF_VAR_H
21069 # include <net/if_var.h>
21070 #endif
21071
21072 #if HAVE_SYS_UN_H
21073 # include <sys/un.h>
21074 #endif
21075 #if HAVE_NETINET_IN_SYSTM_H
21076 # include <netinet/in_systm.h>
21077 #endif
21078 #if HAVE_NETINET_IN_VAR_H
21079 # include <netinet/in_var.h>
21080 #endif
21081 #if HAVE_NET_IF_DL_H
21082 # include <net/if_dl.h>
21083 #endif
21084 #if HAVE_NET_NETOPT_H
21085 # include <net/netopt.h>
21086 #endif
21087 #if HAVE_NET_ROUTE_H
21088 # include <net/route.h>
21089 #endif
21090 #if HAVE_INET_ND_H
21091 # include <inet/nd.h>
21092 #endif
21093 #if HAVE_ARPA_INET_H
21094 # include <arpa/inet.h>
21095 #endif
21096 /* Required for IDRP */
21097 #if HAVE_NETINET_IP_ICMP_H
21098 # include <netinet/ip_icmp.h>
21099 #endif
21100
21101       #include <netinet/tcp.h>
21102
21103 "
21104 if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
21105   ac_have_decl=1
21106 else
21107   ac_have_decl=0
21108 fi
21109
21110 cat >>confdefs.h <<_ACEOF
21111 #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
21112 _ACEOF
21113
21114 fi
21115
21116
21117 if test $ac_cv_have_decl_TCP_MD5SIG = no; then
21118   ac_fn_c_check_header_mongrel "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
21119 if test "x$ac_cv_header_linux_tcp_h" = xyes; then :
21120
21121        ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
21122 #define _XPG4_2
21123 #define __EXTENSIONS__
21124 #endif
21125 #include <stdio.h>
21126 #if STDC_HEADERS
21127 # include <stdlib.h>
21128 # include <stddef.h>
21129 #else
21130 # if HAVE_STDLIB_H
21131 #  include <stdlib.h>
21132 # endif
21133 #endif
21134 #if HAVE_SYS_TYPES_H
21135 # include <sys/types.h>
21136 #endif
21137 /* sys/conf.h depends on param.h on FBSD at least */
21138 #if HAVE_SYS_PARAM_H
21139 # include <sys/param.h>
21140 #endif
21141 /* Required for MAXSIG */
21142 #if HAVE_SIGNAL_H
21143 # include <signal.h>
21144 #endif
21145 #if HAVE_SYS_SOCKET_H
21146 # include <sys/socket.h>
21147 #endif
21148 #ifdef __APPLE__
21149 # define __APPLE_USE_RFC_3542
21150 #endif
21151 #if HAVE_NETINET_IN_H
21152 # include <netinet/in.h>
21153 #endif
21154 #ifdef TIME_WITH_SYS_TIME
21155 # include <sys/time.h>
21156 # include <time.h>
21157 #else
21158 # ifdef HAVE_SYS_TIME_H
21159 #  include <sys/time.h>
21160 # else
21161 #  include <time.h>
21162 # endif
21163 #endif /* TIME_WITH_SYS_TIME */
21164
21165 #if HAVE_NET_IF_H
21166 # include <net/if.h>
21167 #endif
21168
21169 #if HAVE_NET_IF_VAR_H
21170 # include <net/if_var.h>
21171 #endif
21172
21173 #if HAVE_SYS_UN_H
21174 # include <sys/un.h>
21175 #endif
21176 #if HAVE_NETINET_IN_SYSTM_H
21177 # include <netinet/in_systm.h>
21178 #endif
21179 #if HAVE_NETINET_IN_VAR_H
21180 # include <netinet/in_var.h>
21181 #endif
21182 #if HAVE_NET_IF_DL_H
21183 # include <net/if_dl.h>
21184 #endif
21185 #if HAVE_NET_NETOPT_H
21186 # include <net/netopt.h>
21187 #endif
21188 #if HAVE_NET_ROUTE_H
21189 # include <net/route.h>
21190 #endif
21191 #if HAVE_INET_ND_H
21192 # include <inet/nd.h>
21193 #endif
21194 #if HAVE_ARPA_INET_H
21195 # include <arpa/inet.h>
21196 #endif
21197 /* Required for IDRP */
21198 #if HAVE_NETINET_IP_ICMP_H
21199 # include <netinet/ip_icmp.h>
21200 #endif
21201
21202           #include <linux/tcp.h>
21203
21204 "
21205 if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
21206   ac_have_decl=1
21207 else
21208   ac_have_decl=0
21209 fi
21210
21211 cat >>confdefs.h <<_ACEOF
21212 #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
21213 _ACEOF
21214
21215 fi
21216
21217
21218 fi
21219
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipforward method" >&5
21221 $as_echo_n "checking ipforward method... " >&6; }
21222 if ${quagga_cv_ipforward_method+:} false; then :
21223   $as_echo_n "(cached) " >&6
21224 else
21225   if test x$cross_compiling = xyes; then
21226   if test x"$opsys" = x"gnu-linux"; then
21227     quagga_cv_ipforward_method=/proc/net/snmp
21228   else
21229     quagga_cv_ipforward_method=/dev/ip
21230   fi
21231 else
21232   for quagga_cv_ipforward_method in /proc/net/snmp /dev/ip /dev/null;
21233   do
21234     test x`ls $quagga_cv_ipforward_method 2>/dev/null` = x"$quagga_cv_ipforward_method" && break
21235   done
21236 fi
21237 case $quagga_cv_ipforward_method in
21238   "/proc/net/snmp")  quagga_cv_ipforward_method="proc";;
21239   "/dev/ip")
21240                      case "$host" in
21241                        *-freebsd*)    quagga_cv_ipforward_method="sysctl";;
21242                        *)             quagga_cv_ipforward_method="solaris";;
21243                      esac;;
21244   *)                 quagga_cv_ipforward_method="sysctl";;
21245 esac
21246 fi
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_ipforward_method" >&5
21248 $as_echo "$quagga_cv_ipforward_method" >&6; }
21249 IPFORWARD=ipforward_${quagga_cv_ipforward_method}.o
21250
21251
21252 for ac_func in getaddrinfo
21253 do :
21254   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21255 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
21256   cat >>confdefs.h <<_ACEOF
21257 #define HAVE_GETADDRINFO 1
21258 _ACEOF
21259  have_getaddrinfo=yes
21260 else
21261   have_getaddrinfo=no
21262 fi
21263 done
21264
21265
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether does this OS have IPv6 stack" >&5
21267 $as_echo_n "checking whether does this OS have IPv6 stack... " >&6; }
21268   if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
21269
21270 $as_echo "#define KAME 1" >>confdefs.h
21271
21272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: KAME" >&5
21273 $as_echo "KAME" >&6; }
21274   elif test x"$opsys" = x"sol8"; then
21275
21276 $as_echo "#define SOLARIS_IPV6 1" >>confdefs.h
21277
21278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris IPv6" >&5
21279 $as_echo "Solaris IPv6" >&6; }
21280   elif test x"$opsys" = x"gnu-linux"; then
21281
21282 $as_echo "#define LINUX_IPV6 1" >>confdefs.h
21283
21284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5
21285 $as_echo "Linux IPv6" >&6; }
21286   else
21287     as_fn_error $? "Failed to detect IPv6 stack" "$LINENO" 5
21288   fi
21289
21290
21291 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21292
21293
21294 for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
21295         netinet6/in6_var.h netinet6/nd6.h
21296 do :
21297   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21298 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
21299 #define _XPG4_2
21300 #define __EXTENSIONS__
21301 #endif
21302 #include <stdio.h>
21303 #if STDC_HEADERS
21304 # include <stdlib.h>
21305 # include <stddef.h>
21306 #else
21307 # if HAVE_STDLIB_H
21308 #  include <stdlib.h>
21309 # endif
21310 #endif
21311 #if HAVE_SYS_TYPES_H
21312 # include <sys/types.h>
21313 #endif
21314 /* sys/conf.h depends on param.h on FBSD at least */
21315 #if HAVE_SYS_PARAM_H
21316 # include <sys/param.h>
21317 #endif
21318 /* Required for MAXSIG */
21319 #if HAVE_SIGNAL_H
21320 # include <signal.h>
21321 #endif
21322 #if HAVE_SYS_SOCKET_H
21323 # include <sys/socket.h>
21324 #endif
21325 #ifdef __APPLE__
21326 # define __APPLE_USE_RFC_3542
21327 #endif
21328 #if HAVE_NETINET_IN_H
21329 # include <netinet/in.h>
21330 #endif
21331 #ifdef TIME_WITH_SYS_TIME
21332 # include <sys/time.h>
21333 # include <time.h>
21334 #else
21335 # ifdef HAVE_SYS_TIME_H
21336 #  include <sys/time.h>
21337 # else
21338 #  include <time.h>
21339 # endif
21340 #endif /* TIME_WITH_SYS_TIME */
21341
21342 #if HAVE_NET_IF_H
21343 # include <net/if.h>
21344 #endif
21345
21346 #if HAVE_NET_IF_VAR_H
21347 # include <net/if_var.h>
21348 #endif
21349
21350 #if HAVE_SYS_UN_H
21351 # include <sys/un.h>
21352 #endif
21353 #if HAVE_NETINET_IN_SYSTM_H
21354 # include <netinet/in_systm.h>
21355 #endif
21356 #if HAVE_NETINET_IN_VAR_H
21357 # include <netinet/in_var.h>
21358 #endif
21359 #if HAVE_NET_IF_DL_H
21360 # include <net/if_dl.h>
21361 #endif
21362 #if HAVE_NET_NETOPT_H
21363 # include <net/netopt.h>
21364 #endif
21365 #if HAVE_NET_ROUTE_H
21366 # include <net/route.h>
21367 #endif
21368 #if HAVE_INET_ND_H
21369 # include <inet/nd.h>
21370 #endif
21371 #if HAVE_ARPA_INET_H
21372 # include <arpa/inet.h>
21373 #endif
21374 /* Required for IDRP */
21375 #if HAVE_NETINET_IP_ICMP_H
21376 # include <netinet/ip_icmp.h>
21377 #endif
21378
21379 "
21380 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21381   cat >>confdefs.h <<_ACEOF
21382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21383 _ACEOF
21384
21385 fi
21386
21387 done
21388
21389
21390
21391 if test "${enable_doc}" = "no";then
21392   DOC=""
21393 else
21394   DOC="doc"
21395 fi
21396
21397 if test "${enable_zebra}" = "no";then
21398   ZEBRA=""
21399 else
21400   ZEBRA="zebra"
21401 fi
21402  if test "x$ZEBRA" = "xzebra"; then
21403   ZEBRA_TRUE=
21404   ZEBRA_FALSE='#'
21405 else
21406   ZEBRA_TRUE='#'
21407   ZEBRA_FALSE=
21408 fi
21409
21410
21411 if test "${enable_bgpd}" = "no";then
21412   BGPD=""
21413 else
21414   BGPD="bgpd"
21415 fi
21416  if test "x$BGPD" = "xbgpd"; then
21417   BGPD_TRUE=
21418   BGPD_FALSE='#'
21419 else
21420   BGPD_TRUE='#'
21421   BGPD_FALSE=
21422 fi
21423
21424
21425 if test "${enable_ripd}" = "no";then
21426   RIPD=""
21427 else
21428   RIPD="ripd"
21429 fi
21430  if test "x$RIPD" = "xripd"; then
21431   RIPD_TRUE=
21432   RIPD_FALSE='#'
21433 else
21434   RIPD_TRUE='#'
21435   RIPD_FALSE=
21436 fi
21437
21438
21439 if test "${enable_ospfd}" = "no";then
21440   OSPFD=""
21441 else
21442   OSPFD="ospfd"
21443 fi
21444  if test "x$OSPFD" = "xospfd"; then
21445   OSPFD_TRUE=
21446   OSPFD_FALSE='#'
21447 else
21448   OSPFD_TRUE='#'
21449   OSPFD_FALSE=
21450 fi
21451
21452
21453 if test x"$opsys" != x"gnu-linux"; then
21454                 enable_nhrpd="no"
21455 fi
21456 if test "${enable_nhrpd}" = "no";then
21457   NHRPD=""
21458 else
21459   NHRPD="nhrpd"
21460 fi
21461  if test "x$NHRPD" = "xnhrpd"; then
21462   NHRPD_TRUE=
21463   NHRPD_FALSE='#'
21464 else
21465   NHRPD_TRUE='#'
21466   NHRPD_FALSE=
21467 fi
21468
21469
21470 if test "${enable_watchquagga}" = "no";then
21471   WATCHQUAGGA=""
21472 else
21473   WATCHQUAGGA="watchquagga"
21474 fi
21475  if test "x$WATCHQUAGGA" = "xwatchquagga"; then
21476   WATCHQUAGGA_TRUE=
21477   WATCHQUAGGA_FALSE='#'
21478 else
21479   WATCHQUAGGA_TRUE='#'
21480   WATCHQUAGGA_FALSE=
21481 fi
21482
21483
21484 OSPFCLIENT=""
21485 if test "${enable_ospfapi}" != "no";then
21486
21487 $as_echo "#define SUPPORT_OSPF_API /**/" >>confdefs.h
21488
21489
21490   if test "${enable_ospfclient}" != "no";then
21491       OSPFCLIENT="ospfclient"
21492   fi
21493 fi
21494
21495  if test "x$OSPFCLIENT" = "xospfclient"; then
21496   OSPFCLIENT_TRUE=
21497   OSPFCLIENT_FALSE='#'
21498 else
21499   OSPFCLIENT_TRUE='#'
21500   OSPFCLIENT_FALSE=
21501 fi
21502
21503
21504 case "${enable_ripngd}" in
21505   "no" ) RIPNGD="";;
21506   *    ) RIPNGD="ripngd";;
21507 esac
21508  if test "x$RIPNGD" = "xripngd"; then
21509   RIPNGD_TRUE=
21510   RIPNGD_FALSE='#'
21511 else
21512   RIPNGD_TRUE='#'
21513   RIPNGD_FALSE=
21514 fi
21515
21516
21517 case "${enable_ospf6d}" in
21518   "no" ) OSPF6D="";;
21519   *    ) OSPF6D="ospf6d";;
21520 esac
21521  if test "x$OSPF6D" = "xospf6d"; then
21522   OSPF6D_TRUE=
21523   OSPF6D_FALSE='#'
21524 else
21525   OSPF6D_TRUE='#'
21526   OSPF6D_FALSE=
21527 fi
21528
21529
21530 case "${enable_isisd}" in
21531   "no" ) ISISD="";;
21532   *    ) ISISD="isisd";;
21533 esac
21534  if test "x$ISISD" = "xisisd"; then
21535   ISISD_TRUE=
21536   ISISD_FALSE='#'
21537 else
21538   ISISD_TRUE='#'
21539   ISISD_FALSE=
21540 fi
21541
21542
21543 case "${enable_pimd}" in
21544   "no" ) PIMD="";;
21545   *    ) PIMD="pimd";;
21546 esac
21547  if test "x$PIMD" = "xpimd"; then
21548   PIMD_TRUE=
21549   PIMD_FALSE='#'
21550 else
21551   PIMD_TRUE='#'
21552   PIMD_FALSE=
21553 fi
21554
21555
21556 if test "${enable_bgp_announce}" = "no";then
21557
21558 $as_echo "#define DISABLE_BGP_ANNOUNCE 1" >>confdefs.h
21559
21560 else
21561
21562 $as_echo "#define DISABLE_BGP_ANNOUNCE 0" >>confdefs.h
21563
21564 fi
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lc" >&5
21583 $as_echo_n "checking for inet_ntop in -lc... " >&6; }
21584 if ${ac_cv_lib_c_inet_ntop+:} false; then :
21585   $as_echo_n "(cached) " >&6
21586 else
21587   ac_check_lib_save_LIBS=$LIBS
21588 LIBS="-lc  $LIBS"
21589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h.  */
21591
21592 /* Override any GCC internal prototype to avoid an error.
21593    Use char because int might match the return type of a GCC
21594    builtin and then its argument prototype would still apply.  */
21595 #ifdef __cplusplus
21596 extern "C"
21597 #endif
21598 char inet_ntop ();
21599 int
21600 main ()
21601 {
21602 return inet_ntop ();
21603   ;
21604   return 0;
21605 }
21606 _ACEOF
21607 if ac_fn_c_try_link "$LINENO"; then :
21608   ac_cv_lib_c_inet_ntop=yes
21609 else
21610   ac_cv_lib_c_inet_ntop=no
21611 fi
21612 rm -f core conftest.err conftest.$ac_objext \
21613     conftest$ac_exeext conftest.$ac_ext
21614 LIBS=$ac_check_lib_save_LIBS
21615 fi
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_ntop" >&5
21617 $as_echo "$ac_cv_lib_c_inet_ntop" >&6; }
21618 if test "x$ac_cv_lib_c_inet_ntop" = xyes; then :
21619
21620 $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
21621
21622 fi
21623
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lc" >&5
21625 $as_echo_n "checking for inet_pton in -lc... " >&6; }
21626 if ${ac_cv_lib_c_inet_pton+:} false; then :
21627   $as_echo_n "(cached) " >&6
21628 else
21629   ac_check_lib_save_LIBS=$LIBS
21630 LIBS="-lc  $LIBS"
21631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21632 /* end confdefs.h.  */
21633
21634 /* Override any GCC internal prototype to avoid an error.
21635    Use char because int might match the return type of a GCC
21636    builtin and then its argument prototype would still apply.  */
21637 #ifdef __cplusplus
21638 extern "C"
21639 #endif
21640 char inet_pton ();
21641 int
21642 main ()
21643 {
21644 return inet_pton ();
21645   ;
21646   return 0;
21647 }
21648 _ACEOF
21649 if ac_fn_c_try_link "$LINENO"; then :
21650   ac_cv_lib_c_inet_pton=yes
21651 else
21652   ac_cv_lib_c_inet_pton=no
21653 fi
21654 rm -f core conftest.err conftest.$ac_objext \
21655     conftest$ac_exeext conftest.$ac_ext
21656 LIBS=$ac_check_lib_save_LIBS
21657 fi
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_pton" >&5
21659 $as_echo "$ac_cv_lib_c_inet_pton" >&6; }
21660 if test "x$ac_cv_lib_c_inet_pton" = xyes; then :
21661
21662 $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
21663
21664 fi
21665
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
21667 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
21668 if ${ac_cv_lib_crypt_crypt+:} false; then :
21669   $as_echo_n "(cached) " >&6
21670 else
21671   ac_check_lib_save_LIBS=$LIBS
21672 LIBS="-lcrypt  $LIBS"
21673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h.  */
21675
21676 /* Override any GCC internal prototype to avoid an error.
21677    Use char because int might match the return type of a GCC
21678    builtin and then its argument prototype would still apply.  */
21679 #ifdef __cplusplus
21680 extern "C"
21681 #endif
21682 char crypt ();
21683 int
21684 main ()
21685 {
21686 return crypt ();
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 if ac_fn_c_try_link "$LINENO"; then :
21692   ac_cv_lib_crypt_crypt=yes
21693 else
21694   ac_cv_lib_crypt_crypt=no
21695 fi
21696 rm -f core conftest.err conftest.$ac_objext \
21697     conftest$ac_exeext conftest.$ac_ext
21698 LIBS=$ac_check_lib_save_LIBS
21699 fi
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
21701 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
21702 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
21703   cat >>confdefs.h <<_ACEOF
21704 #define HAVE_LIBCRYPT 1
21705 _ACEOF
21706
21707   LIBS="-lcrypt $LIBS"
21708
21709 fi
21710
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5
21712 $as_echo_n "checking for res_init in -lresolv... " >&6; }
21713 if ${ac_cv_lib_resolv_res_init+:} false; then :
21714   $as_echo_n "(cached) " >&6
21715 else
21716   ac_check_lib_save_LIBS=$LIBS
21717 LIBS="-lresolv  $LIBS"
21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h.  */
21720
21721 /* Override any GCC internal prototype to avoid an error.
21722    Use char because int might match the return type of a GCC
21723    builtin and then its argument prototype would still apply.  */
21724 #ifdef __cplusplus
21725 extern "C"
21726 #endif
21727 char res_init ();
21728 int
21729 main ()
21730 {
21731 return res_init ();
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 if ac_fn_c_try_link "$LINENO"; then :
21737   ac_cv_lib_resolv_res_init=yes
21738 else
21739   ac_cv_lib_resolv_res_init=no
21740 fi
21741 rm -f core conftest.err conftest.$ac_objext \
21742     conftest$ac_exeext conftest.$ac_ext
21743 LIBS=$ac_check_lib_save_LIBS
21744 fi
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5
21746 $as_echo "$ac_cv_lib_resolv_res_init" >&6; }
21747 if test "x$ac_cv_lib_resolv_res_init" = xyes; then :
21748   cat >>confdefs.h <<_ACEOF
21749 #define HAVE_LIBRESOLV 1
21750 _ACEOF
21751
21752   LIBS="-lresolv $LIBS"
21753
21754 fi
21755
21756
21757 if test "x$enable_pcreposix" = "xyes"; then
21758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix_regexec in -lpcreposix" >&5
21759 $as_echo_n "checking for pcreposix_regexec in -lpcreposix... " >&6; }
21760 if ${ac_cv_lib_pcreposix_pcreposix_regexec+:} false; then :
21761   $as_echo_n "(cached) " >&6
21762 else
21763   ac_check_lib_save_LIBS=$LIBS
21764 LIBS="-lpcreposix  $LIBS"
21765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21766 /* end confdefs.h.  */
21767
21768 /* Override any GCC internal prototype to avoid an error.
21769    Use char because int might match the return type of a GCC
21770    builtin and then its argument prototype would still apply.  */
21771 #ifdef __cplusplus
21772 extern "C"
21773 #endif
21774 char pcreposix_regexec ();
21775 int
21776 main ()
21777 {
21778 return pcreposix_regexec ();
21779   ;
21780   return 0;
21781 }
21782 _ACEOF
21783 if ac_fn_c_try_link "$LINENO"; then :
21784   ac_cv_lib_pcreposix_pcreposix_regexec=yes
21785 else
21786   ac_cv_lib_pcreposix_pcreposix_regexec=no
21787 fi
21788 rm -f core conftest.err conftest.$ac_objext \
21789     conftest$ac_exeext conftest.$ac_ext
21790 LIBS=$ac_check_lib_save_LIBS
21791 fi
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_pcreposix_regexec" >&5
21793 $as_echo "$ac_cv_lib_pcreposix_pcreposix_regexec" >&6; }
21794 if test "x$ac_cv_lib_pcreposix_pcreposix_regexec" = xyes; then :
21795   cat >>confdefs.h <<_ACEOF
21796 #define HAVE_LIBPCREPOSIX 1
21797 _ACEOF
21798
21799   LIBS="-lpcreposix $LIBS"
21800
21801 else
21802   enable_pcreposix=no
21803   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** falling back to other regex library ***" >&5
21804 $as_echo "$as_me: WARNING: *** falling back to other regex library ***" >&2;}
21805 fi
21806
21807 fi
21808
21809 if test "x$enable_pcreposix" != "xyes"; then
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system has GNU regex" >&5
21811 $as_echo_n "checking whether system has GNU regex... " >&6; }
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lc" >&5
21813 $as_echo_n "checking for regexec in -lc... " >&6; }
21814 if ${ac_cv_lib_c_regexec+:} false; then :
21815   $as_echo_n "(cached) " >&6
21816 else
21817   ac_check_lib_save_LIBS=$LIBS
21818 LIBS="-lc  $LIBS"
21819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h.  */
21821
21822 /* Override any GCC internal prototype to avoid an error.
21823    Use char because int might match the return type of a GCC
21824    builtin and then its argument prototype would still apply.  */
21825 #ifdef __cplusplus
21826 extern "C"
21827 #endif
21828 char regexec ();
21829 int
21830 main ()
21831 {
21832 return regexec ();
21833   ;
21834   return 0;
21835 }
21836 _ACEOF
21837 if ac_fn_c_try_link "$LINENO"; then :
21838   ac_cv_lib_c_regexec=yes
21839 else
21840   ac_cv_lib_c_regexec=no
21841 fi
21842 rm -f core conftest.err conftest.$ac_objext \
21843     conftest$ac_exeext conftest.$ac_ext
21844 LIBS=$ac_check_lib_save_LIBS
21845 fi
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_regexec" >&5
21847 $as_echo "$ac_cv_lib_c_regexec" >&6; }
21848 if test "x$ac_cv_lib_c_regexec" = xyes; then :
21849
21850 $as_echo "#define HAVE_GNU_REGEX /**/" >>confdefs.h
21851
21852  LIB_REGEX=""
21853 else
21854   LIB_REGEX="regex.o"
21855 fi
21856
21857 fi
21858
21859
21860
21861 if test "${enable_nhrpd}" != "no";then
21862
21863 pkg_failed=no
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5
21865 $as_echo_n "checking for CARES... " >&6; }
21866
21867 if test -n "$CARES_CFLAGS"; then
21868     pkg_cv_CARES_CFLAGS="$CARES_CFLAGS"
21869  elif test -n "$PKG_CONFIG"; then
21870     if test -n "$PKG_CONFIG" && \
21871     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares\""; } >&5
21872   ($PKG_CONFIG --exists --print-errors "libcares") 2>&5
21873   ac_status=$?
21874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21875   test $ac_status = 0; }; then
21876   pkg_cv_CARES_CFLAGS=`$PKG_CONFIG --cflags "libcares" 2>/dev/null`
21877                       test "x$?" != "x0" && pkg_failed=yes
21878 else
21879   pkg_failed=yes
21880 fi
21881  else
21882     pkg_failed=untried
21883 fi
21884 if test -n "$CARES_LIBS"; then
21885     pkg_cv_CARES_LIBS="$CARES_LIBS"
21886  elif test -n "$PKG_CONFIG"; then
21887     if test -n "$PKG_CONFIG" && \
21888     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares\""; } >&5
21889   ($PKG_CONFIG --exists --print-errors "libcares") 2>&5
21890   ac_status=$?
21891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21892   test $ac_status = 0; }; then
21893   pkg_cv_CARES_LIBS=`$PKG_CONFIG --libs "libcares" 2>/dev/null`
21894                       test "x$?" != "x0" && pkg_failed=yes
21895 else
21896   pkg_failed=yes
21897 fi
21898  else
21899     pkg_failed=untried
21900 fi
21901
21902
21903
21904 if test $pkg_failed = yes; then
21905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21906 $as_echo "no" >&6; }
21907
21908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21909         _pkg_short_errors_supported=yes
21910 else
21911         _pkg_short_errors_supported=no
21912 fi
21913         if test $_pkg_short_errors_supported = yes; then
21914                 CARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares" 2>&1`
21915         else
21916                 CARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares" 2>&1`
21917         fi
21918         # Put the nasty error message in config.log where it belongs
21919         echo "$CARES_PKG_ERRORS" >&5
21920
21921         as_fn_error $? "Package requirements (libcares) were not met:
21922
21923 $CARES_PKG_ERRORS
21924
21925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21926 installed software in a non-standard prefix.
21927
21928 Alternatively, you may set the environment variables CARES_CFLAGS
21929 and CARES_LIBS to avoid the need to call pkg-config.
21930 See the pkg-config man page for more details." "$LINENO" 5
21931 elif test $pkg_failed = untried; then
21932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21934         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21936 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21937 is in your PATH or set the PKG_CONFIG environment variable to the full
21938 path to pkg-config.
21939
21940 Alternatively, you may set the environment variables CARES_CFLAGS
21941 and CARES_LIBS to avoid the need to call pkg-config.
21942 See the pkg-config man page for more details.
21943
21944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21945 See \`config.log' for more details" "$LINENO" 5; }
21946 else
21947         CARES_CFLAGS=$pkg_cv_CARES_CFLAGS
21948         CARES_LIBS=$pkg_cv_CARES_LIBS
21949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21950 $as_echo "yes" >&6; }
21951
21952 fi
21953 fi
21954
21955
21956 if test "${enable_snmp}" != ""; then
21957    if test -n "$ac_tool_prefix"; then
21958   # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21959 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21961 $as_echo_n "checking for $ac_word... " >&6; }
21962 if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
21963   $as_echo_n "(cached) " >&6
21964 else
21965   case $NETSNMP_CONFIG in
21966   [\\/]* | ?:[\\/]*)
21967   ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21968   ;;
21969   *)
21970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21971 for as_dir in $PATH
21972 do
21973   IFS=$as_save_IFS
21974   test -z "$as_dir" && as_dir=.
21975     for ac_exec_ext in '' $ac_executable_extensions; do
21976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21977     ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21979     break 2
21980   fi
21981 done
21982   done
21983 IFS=$as_save_IFS
21984
21985   ;;
21986 esac
21987 fi
21988 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21989 if test -n "$NETSNMP_CONFIG"; then
21990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
21991 $as_echo "$NETSNMP_CONFIG" >&6; }
21992 else
21993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21994 $as_echo "no" >&6; }
21995 fi
21996
21997
21998 fi
21999 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22000   ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22001   # Extract the first word of "net-snmp-config", so it can be a program name with args.
22002 set dummy net-snmp-config; ac_word=$2
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22004 $as_echo_n "checking for $ac_word... " >&6; }
22005 if ${ac_cv_path_ac_pt_NETSNMP_CONFIG+:} false; then :
22006   $as_echo_n "(cached) " >&6
22007 else
22008   case $ac_pt_NETSNMP_CONFIG in
22009   [\\/]* | ?:[\\/]*)
22010   ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22011   ;;
22012   *)
22013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22014 for as_dir in $PATH
22015 do
22016   IFS=$as_save_IFS
22017   test -z "$as_dir" && as_dir=.
22018     for ac_exec_ext in '' $ac_executable_extensions; do
22019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22020     ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22022     break 2
22023   fi
22024 done
22025   done
22026 IFS=$as_save_IFS
22027
22028   ;;
22029 esac
22030 fi
22031 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22032 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NETSNMP_CONFIG" >&5
22034 $as_echo "$ac_pt_NETSNMP_CONFIG" >&6; }
22035 else
22036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22037 $as_echo "no" >&6; }
22038 fi
22039
22040   if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22041     NETSNMP_CONFIG="no"
22042   else
22043     case $cross_compiling:$ac_tool_warned in
22044 yes:)
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22047 ac_tool_warned=yes ;;
22048 esac
22049     NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22050   fi
22051 else
22052   NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22053 fi
22054
22055    if test x"$NETSNMP_CONFIG" = x"no"; then
22056       as_fn_error $? "--enable-snmp given but unable to find net-snmp-config" "$LINENO" 5
22057    fi
22058    LIBS="$LIBS `${NETSNMP_CONFIG} --agent-libs`"
22059    CFLAGS="`${NETSNMP_CONFIG} --base-cflags` $CFLAGS"
22060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link to Net-SNMP" >&5
22061 $as_echo_n "checking whether we can link to Net-SNMP... " >&6; }
22062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22063 /* end confdefs.h.  */
22064
22065 int main(void);
22066
22067 int
22068 main ()
22069 {
22070
22071 {
22072   return 0;
22073 }
22074
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 if ac_fn_c_try_link "$LINENO"; then :
22080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22081 $as_echo "yes" >&6; }
22082 else
22083
22084      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22085 $as_echo "no" >&6; }
22086      as_fn_error $? "--enable-snmp given but not usable" "$LINENO" 5
22087 fi
22088 rm -f core conftest.err conftest.$ac_objext \
22089     conftest$ac_exeext conftest.$ac_ext
22090
22091 $as_echo "#define HAVE_SNMP /**/" >>confdefs.h
22092
22093    case "${enable_snmp}" in
22094      yes)
22095       SNMP_METHOD=agentx
22096       ;;
22097      smux|agentx)
22098       SNMP_METHOD="${enable_snmp}"
22099       ;;
22100      *)
22101       as_fn_error $? "--enable-snmp given with an unknown method (${enable_snmp}). Use smux or agentx" "$LINENO" 5
22102       ;;
22103    esac
22104
22105
22106
22107 cat >>confdefs.h <<_ACEOF
22108 #define `$as_echo "SNMP_${SNMP_METHOD}" | $as_tr_cpp` /**/
22109 _ACEOF
22110
22111 fi
22112
22113 ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "#ifdef SUNOS_5
22114 #define _XPG4_2
22115 #define __EXTENSIONS__
22116 #endif
22117 #include <stdio.h>
22118 #if STDC_HEADERS
22119 # include <stdlib.h>
22120 # include <stddef.h>
22121 #else
22122 # if HAVE_STDLIB_H
22123 #  include <stdlib.h>
22124 # endif
22125 #endif
22126 #if HAVE_SYS_TYPES_H
22127 # include <sys/types.h>
22128 #endif
22129 /* sys/conf.h depends on param.h on FBSD at least */
22130 #if HAVE_SYS_PARAM_H
22131 # include <sys/param.h>
22132 #endif
22133 /* Required for MAXSIG */
22134 #if HAVE_SIGNAL_H
22135 # include <signal.h>
22136 #endif
22137 #if HAVE_SYS_SOCKET_H
22138 # include <sys/socket.h>
22139 #endif
22140 #ifdef __APPLE__
22141 # define __APPLE_USE_RFC_3542
22142 #endif
22143 #if HAVE_NETINET_IN_H
22144 # include <netinet/in.h>
22145 #endif
22146 #ifdef TIME_WITH_SYS_TIME
22147 # include <sys/time.h>
22148 # include <time.h>
22149 #else
22150 # ifdef HAVE_SYS_TIME_H
22151 #  include <sys/time.h>
22152 # else
22153 #  include <time.h>
22154 # endif
22155 #endif /* TIME_WITH_SYS_TIME */
22156
22157 #if HAVE_NET_IF_H
22158 # include <net/if.h>
22159 #endif
22160
22161 #if HAVE_NET_IF_VAR_H
22162 # include <net/if_var.h>
22163 #endif
22164
22165 #if HAVE_SYS_UN_H
22166 # include <sys/un.h>
22167 #endif
22168 #if HAVE_NETINET_IN_SYSTM_H
22169 # include <netinet/in_systm.h>
22170 #endif
22171 #if HAVE_NETINET_IN_VAR_H
22172 # include <netinet/in_var.h>
22173 #endif
22174 #if HAVE_NET_IF_DL_H
22175 # include <net/if_dl.h>
22176 #endif
22177 #if HAVE_NET_NETOPT_H
22178 # include <net/netopt.h>
22179 #endif
22180 #if HAVE_NET_ROUTE_H
22181 # include <net/route.h>
22182 #endif
22183 #if HAVE_INET_ND_H
22184 # include <inet/nd.h>
22185 #endif
22186 #if HAVE_ARPA_INET_H
22187 # include <arpa/inet.h>
22188 #endif
22189 /* Required for IDRP */
22190 #if HAVE_NETINET_IP_ICMP_H
22191 # include <netinet/ip_icmp.h>
22192 #endif
22193
22194 #if HAVE_NETINET6_IN6_H
22195 #include <netinet6/in6.h>
22196 #endif
22197 #if HAVE_NETINET_IN6_VAR_H
22198 #include <netinet/in6_var.h>
22199 #endif
22200 #if HAVE_NETINET_ICMP6_H
22201 # include <netinet/icmp6.h>
22202 #endif
22203 #if HAVE_NETINET6_IN6_VAR_H
22204 # include <netinet6/in6_var.h>
22205 #endif
22206 #if HAVE_NETINET6_ND6_H
22207 # include <netinet6/nd6.h>
22208 #endif
22209
22210 "
22211 if test "x$ac_cv_type_struct_sockaddr" = xyes; then :
22212
22213 cat >>confdefs.h <<_ACEOF
22214 #define HAVE_STRUCT_SOCKADDR 1
22215 _ACEOF
22216
22217
22218 fi
22219 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#ifdef SUNOS_5
22220 #define _XPG4_2
22221 #define __EXTENSIONS__
22222 #endif
22223 #include <stdio.h>
22224 #if STDC_HEADERS
22225 # include <stdlib.h>
22226 # include <stddef.h>
22227 #else
22228 # if HAVE_STDLIB_H
22229 #  include <stdlib.h>
22230 # endif
22231 #endif
22232 #if HAVE_SYS_TYPES_H
22233 # include <sys/types.h>
22234 #endif
22235 /* sys/conf.h depends on param.h on FBSD at least */
22236 #if HAVE_SYS_PARAM_H
22237 # include <sys/param.h>
22238 #endif
22239 /* Required for MAXSIG */
22240 #if HAVE_SIGNAL_H
22241 # include <signal.h>
22242 #endif
22243 #if HAVE_SYS_SOCKET_H
22244 # include <sys/socket.h>
22245 #endif
22246 #ifdef __APPLE__
22247 # define __APPLE_USE_RFC_3542
22248 #endif
22249 #if HAVE_NETINET_IN_H
22250 # include <netinet/in.h>
22251 #endif
22252 #ifdef TIME_WITH_SYS_TIME
22253 # include <sys/time.h>
22254 # include <time.h>
22255 #else
22256 # ifdef HAVE_SYS_TIME_H
22257 #  include <sys/time.h>
22258 # else
22259 #  include <time.h>
22260 # endif
22261 #endif /* TIME_WITH_SYS_TIME */
22262
22263 #if HAVE_NET_IF_H
22264 # include <net/if.h>
22265 #endif
22266
22267 #if HAVE_NET_IF_VAR_H
22268 # include <net/if_var.h>
22269 #endif
22270
22271 #if HAVE_SYS_UN_H
22272 # include <sys/un.h>
22273 #endif
22274 #if HAVE_NETINET_IN_SYSTM_H
22275 # include <netinet/in_systm.h>
22276 #endif
22277 #if HAVE_NETINET_IN_VAR_H
22278 # include <netinet/in_var.h>
22279 #endif
22280 #if HAVE_NET_IF_DL_H
22281 # include <net/if_dl.h>
22282 #endif
22283 #if HAVE_NET_NETOPT_H
22284 # include <net/netopt.h>
22285 #endif
22286 #if HAVE_NET_ROUTE_H
22287 # include <net/route.h>
22288 #endif
22289 #if HAVE_INET_ND_H
22290 # include <inet/nd.h>
22291 #endif
22292 #if HAVE_ARPA_INET_H
22293 # include <arpa/inet.h>
22294 #endif
22295 /* Required for IDRP */
22296 #if HAVE_NETINET_IP_ICMP_H
22297 # include <netinet/ip_icmp.h>
22298 #endif
22299
22300 #if HAVE_NETINET6_IN6_H
22301 #include <netinet6/in6.h>
22302 #endif
22303 #if HAVE_NETINET_IN6_VAR_H
22304 #include <netinet/in6_var.h>
22305 #endif
22306 #if HAVE_NETINET_ICMP6_H
22307 # include <netinet/icmp6.h>
22308 #endif
22309 #if HAVE_NETINET6_IN6_VAR_H
22310 # include <netinet6/in6_var.h>
22311 #endif
22312 #if HAVE_NETINET6_ND6_H
22313 # include <netinet6/nd6.h>
22314 #endif
22315
22316 "
22317 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
22318
22319 cat >>confdefs.h <<_ACEOF
22320 #define HAVE_STRUCT_SOCKADDR_IN 1
22321 _ACEOF
22322
22323
22324 fi
22325 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef SUNOS_5
22326 #define _XPG4_2
22327 #define __EXTENSIONS__
22328 #endif
22329 #include <stdio.h>
22330 #if STDC_HEADERS
22331 # include <stdlib.h>
22332 # include <stddef.h>
22333 #else
22334 # if HAVE_STDLIB_H
22335 #  include <stdlib.h>
22336 # endif
22337 #endif
22338 #if HAVE_SYS_TYPES_H
22339 # include <sys/types.h>
22340 #endif
22341 /* sys/conf.h depends on param.h on FBSD at least */
22342 #if HAVE_SYS_PARAM_H
22343 # include <sys/param.h>
22344 #endif
22345 /* Required for MAXSIG */
22346 #if HAVE_SIGNAL_H
22347 # include <signal.h>
22348 #endif
22349 #if HAVE_SYS_SOCKET_H
22350 # include <sys/socket.h>
22351 #endif
22352 #ifdef __APPLE__
22353 # define __APPLE_USE_RFC_3542
22354 #endif
22355 #if HAVE_NETINET_IN_H
22356 # include <netinet/in.h>
22357 #endif
22358 #ifdef TIME_WITH_SYS_TIME
22359 # include <sys/time.h>
22360 # include <time.h>
22361 #else
22362 # ifdef HAVE_SYS_TIME_H
22363 #  include <sys/time.h>
22364 # else
22365 #  include <time.h>
22366 # endif
22367 #endif /* TIME_WITH_SYS_TIME */
22368
22369 #if HAVE_NET_IF_H
22370 # include <net/if.h>
22371 #endif
22372
22373 #if HAVE_NET_IF_VAR_H
22374 # include <net/if_var.h>
22375 #endif
22376
22377 #if HAVE_SYS_UN_H
22378 # include <sys/un.h>
22379 #endif
22380 #if HAVE_NETINET_IN_SYSTM_H
22381 # include <netinet/in_systm.h>
22382 #endif
22383 #if HAVE_NETINET_IN_VAR_H
22384 # include <netinet/in_var.h>
22385 #endif
22386 #if HAVE_NET_IF_DL_H
22387 # include <net/if_dl.h>
22388 #endif
22389 #if HAVE_NET_NETOPT_H
22390 # include <net/netopt.h>
22391 #endif
22392 #if HAVE_NET_ROUTE_H
22393 # include <net/route.h>
22394 #endif
22395 #if HAVE_INET_ND_H
22396 # include <inet/nd.h>
22397 #endif
22398 #if HAVE_ARPA_INET_H
22399 # include <arpa/inet.h>
22400 #endif
22401 /* Required for IDRP */
22402 #if HAVE_NETINET_IP_ICMP_H
22403 # include <netinet/ip_icmp.h>
22404 #endif
22405
22406 #if HAVE_NETINET6_IN6_H
22407 #include <netinet6/in6.h>
22408 #endif
22409 #if HAVE_NETINET_IN6_VAR_H
22410 #include <netinet/in6_var.h>
22411 #endif
22412 #if HAVE_NETINET_ICMP6_H
22413 # include <netinet/icmp6.h>
22414 #endif
22415 #if HAVE_NETINET6_IN6_VAR_H
22416 # include <netinet6/in6_var.h>
22417 #endif
22418 #if HAVE_NETINET6_ND6_H
22419 # include <netinet6/nd6.h>
22420 #endif
22421
22422 "
22423 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
22424
22425 cat >>confdefs.h <<_ACEOF
22426 #define HAVE_STRUCT_SOCKADDR_IN6 1
22427 _ACEOF
22428
22429
22430 fi
22431 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#ifdef SUNOS_5
22432 #define _XPG4_2
22433 #define __EXTENSIONS__
22434 #endif
22435 #include <stdio.h>
22436 #if STDC_HEADERS
22437 # include <stdlib.h>
22438 # include <stddef.h>
22439 #else
22440 # if HAVE_STDLIB_H
22441 #  include <stdlib.h>
22442 # endif
22443 #endif
22444 #if HAVE_SYS_TYPES_H
22445 # include <sys/types.h>
22446 #endif
22447 /* sys/conf.h depends on param.h on FBSD at least */
22448 #if HAVE_SYS_PARAM_H
22449 # include <sys/param.h>
22450 #endif
22451 /* Required for MAXSIG */
22452 #if HAVE_SIGNAL_H
22453 # include <signal.h>
22454 #endif
22455 #if HAVE_SYS_SOCKET_H
22456 # include <sys/socket.h>
22457 #endif
22458 #ifdef __APPLE__
22459 # define __APPLE_USE_RFC_3542
22460 #endif
22461 #if HAVE_NETINET_IN_H
22462 # include <netinet/in.h>
22463 #endif
22464 #ifdef TIME_WITH_SYS_TIME
22465 # include <sys/time.h>
22466 # include <time.h>
22467 #else
22468 # ifdef HAVE_SYS_TIME_H
22469 #  include <sys/time.h>
22470 # else
22471 #  include <time.h>
22472 # endif
22473 #endif /* TIME_WITH_SYS_TIME */
22474
22475 #if HAVE_NET_IF_H
22476 # include <net/if.h>
22477 #endif
22478
22479 #if HAVE_NET_IF_VAR_H
22480 # include <net/if_var.h>
22481 #endif
22482
22483 #if HAVE_SYS_UN_H
22484 # include <sys/un.h>
22485 #endif
22486 #if HAVE_NETINET_IN_SYSTM_H
22487 # include <netinet/in_systm.h>
22488 #endif
22489 #if HAVE_NETINET_IN_VAR_H
22490 # include <netinet/in_var.h>
22491 #endif
22492 #if HAVE_NET_IF_DL_H
22493 # include <net/if_dl.h>
22494 #endif
22495 #if HAVE_NET_NETOPT_H
22496 # include <net/netopt.h>
22497 #endif
22498 #if HAVE_NET_ROUTE_H
22499 # include <net/route.h>
22500 #endif
22501 #if HAVE_INET_ND_H
22502 # include <inet/nd.h>
22503 #endif
22504 #if HAVE_ARPA_INET_H
22505 # include <arpa/inet.h>
22506 #endif
22507 /* Required for IDRP */
22508 #if HAVE_NETINET_IP_ICMP_H
22509 # include <netinet/ip_icmp.h>
22510 #endif
22511
22512 #if HAVE_NETINET6_IN6_H
22513 #include <netinet6/in6.h>
22514 #endif
22515 #if HAVE_NETINET_IN6_VAR_H
22516 #include <netinet/in6_var.h>
22517 #endif
22518 #if HAVE_NETINET_ICMP6_H
22519 # include <netinet/icmp6.h>
22520 #endif
22521 #if HAVE_NETINET6_IN6_VAR_H
22522 # include <netinet6/in6_var.h>
22523 #endif
22524 #if HAVE_NETINET6_ND6_H
22525 # include <netinet6/nd6.h>
22526 #endif
22527
22528 "
22529 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
22530
22531 cat >>confdefs.h <<_ACEOF
22532 #define HAVE_STRUCT_SOCKADDR_UN 1
22533 _ACEOF
22534
22535
22536 fi
22537 ac_fn_c_check_type "$LINENO" "struct sockaddr_dl" "ac_cv_type_struct_sockaddr_dl" "#ifdef SUNOS_5
22538 #define _XPG4_2
22539 #define __EXTENSIONS__
22540 #endif
22541 #include <stdio.h>
22542 #if STDC_HEADERS
22543 # include <stdlib.h>
22544 # include <stddef.h>
22545 #else
22546 # if HAVE_STDLIB_H
22547 #  include <stdlib.h>
22548 # endif
22549 #endif
22550 #if HAVE_SYS_TYPES_H
22551 # include <sys/types.h>
22552 #endif
22553 /* sys/conf.h depends on param.h on FBSD at least */
22554 #if HAVE_SYS_PARAM_H
22555 # include <sys/param.h>
22556 #endif
22557 /* Required for MAXSIG */
22558 #if HAVE_SIGNAL_H
22559 # include <signal.h>
22560 #endif
22561 #if HAVE_SYS_SOCKET_H
22562 # include <sys/socket.h>
22563 #endif
22564 #ifdef __APPLE__
22565 # define __APPLE_USE_RFC_3542
22566 #endif
22567 #if HAVE_NETINET_IN_H
22568 # include <netinet/in.h>
22569 #endif
22570 #ifdef TIME_WITH_SYS_TIME
22571 # include <sys/time.h>
22572 # include <time.h>
22573 #else
22574 # ifdef HAVE_SYS_TIME_H
22575 #  include <sys/time.h>
22576 # else
22577 #  include <time.h>
22578 # endif
22579 #endif /* TIME_WITH_SYS_TIME */
22580
22581 #if HAVE_NET_IF_H
22582 # include <net/if.h>
22583 #endif
22584
22585 #if HAVE_NET_IF_VAR_H
22586 # include <net/if_var.h>
22587 #endif
22588
22589 #if HAVE_SYS_UN_H
22590 # include <sys/un.h>
22591 #endif
22592 #if HAVE_NETINET_IN_SYSTM_H
22593 # include <netinet/in_systm.h>
22594 #endif
22595 #if HAVE_NETINET_IN_VAR_H
22596 # include <netinet/in_var.h>
22597 #endif
22598 #if HAVE_NET_IF_DL_H
22599 # include <net/if_dl.h>
22600 #endif
22601 #if HAVE_NET_NETOPT_H
22602 # include <net/netopt.h>
22603 #endif
22604 #if HAVE_NET_ROUTE_H
22605 # include <net/route.h>
22606 #endif
22607 #if HAVE_INET_ND_H
22608 # include <inet/nd.h>
22609 #endif
22610 #if HAVE_ARPA_INET_H
22611 # include <arpa/inet.h>
22612 #endif
22613 /* Required for IDRP */
22614 #if HAVE_NETINET_IP_ICMP_H
22615 # include <netinet/ip_icmp.h>
22616 #endif
22617
22618 #if HAVE_NETINET6_IN6_H
22619 #include <netinet6/in6.h>
22620 #endif
22621 #if HAVE_NETINET_IN6_VAR_H
22622 #include <netinet/in6_var.h>
22623 #endif
22624 #if HAVE_NETINET_ICMP6_H
22625 # include <netinet/icmp6.h>
22626 #endif
22627 #if HAVE_NETINET6_IN6_VAR_H
22628 # include <netinet6/in6_var.h>
22629 #endif
22630 #if HAVE_NETINET6_ND6_H
22631 # include <netinet6/nd6.h>
22632 #endif
22633
22634 "
22635 if test "x$ac_cv_type_struct_sockaddr_dl" = xyes; then :
22636
22637 cat >>confdefs.h <<_ACEOF
22638 #define HAVE_STRUCT_SOCKADDR_DL 1
22639 _ACEOF
22640
22641
22642 fi
22643 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef SUNOS_5
22644 #define _XPG4_2
22645 #define __EXTENSIONS__
22646 #endif
22647 #include <stdio.h>
22648 #if STDC_HEADERS
22649 # include <stdlib.h>
22650 # include <stddef.h>
22651 #else
22652 # if HAVE_STDLIB_H
22653 #  include <stdlib.h>
22654 # endif
22655 #endif
22656 #if HAVE_SYS_TYPES_H
22657 # include <sys/types.h>
22658 #endif
22659 /* sys/conf.h depends on param.h on FBSD at least */
22660 #if HAVE_SYS_PARAM_H
22661 # include <sys/param.h>
22662 #endif
22663 /* Required for MAXSIG */
22664 #if HAVE_SIGNAL_H
22665 # include <signal.h>
22666 #endif
22667 #if HAVE_SYS_SOCKET_H
22668 # include <sys/socket.h>
22669 #endif
22670 #ifdef __APPLE__
22671 # define __APPLE_USE_RFC_3542
22672 #endif
22673 #if HAVE_NETINET_IN_H
22674 # include <netinet/in.h>
22675 #endif
22676 #ifdef TIME_WITH_SYS_TIME
22677 # include <sys/time.h>
22678 # include <time.h>
22679 #else
22680 # ifdef HAVE_SYS_TIME_H
22681 #  include <sys/time.h>
22682 # else
22683 #  include <time.h>
22684 # endif
22685 #endif /* TIME_WITH_SYS_TIME */
22686
22687 #if HAVE_NET_IF_H
22688 # include <net/if.h>
22689 #endif
22690
22691 #if HAVE_NET_IF_VAR_H
22692 # include <net/if_var.h>
22693 #endif
22694
22695 #if HAVE_SYS_UN_H
22696 # include <sys/un.h>
22697 #endif
22698 #if HAVE_NETINET_IN_SYSTM_H
22699 # include <netinet/in_systm.h>
22700 #endif
22701 #if HAVE_NETINET_IN_VAR_H
22702 # include <netinet/in_var.h>
22703 #endif
22704 #if HAVE_NET_IF_DL_H
22705 # include <net/if_dl.h>
22706 #endif
22707 #if HAVE_NET_NETOPT_H
22708 # include <net/netopt.h>
22709 #endif
22710 #if HAVE_NET_ROUTE_H
22711 # include <net/route.h>
22712 #endif
22713 #if HAVE_INET_ND_H
22714 # include <inet/nd.h>
22715 #endif
22716 #if HAVE_ARPA_INET_H
22717 # include <arpa/inet.h>
22718 #endif
22719 /* Required for IDRP */
22720 #if HAVE_NETINET_IP_ICMP_H
22721 # include <netinet/ip_icmp.h>
22722 #endif
22723
22724 #if HAVE_NETINET6_IN6_H
22725 #include <netinet6/in6.h>
22726 #endif
22727 #if HAVE_NETINET_IN6_VAR_H
22728 #include <netinet/in6_var.h>
22729 #endif
22730 #if HAVE_NETINET_ICMP6_H
22731 # include <netinet/icmp6.h>
22732 #endif
22733 #if HAVE_NETINET6_IN6_VAR_H
22734 # include <netinet6/in6_var.h>
22735 #endif
22736 #if HAVE_NETINET6_ND6_H
22737 # include <netinet6/nd6.h>
22738 #endif
22739
22740 "
22741 if test "x$ac_cv_type_socklen_t" = xyes; then :
22742
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_SOCKLEN_T 1
22745 _ACEOF
22746
22747
22748 fi
22749 ac_fn_c_check_type "$LINENO" "struct vifctl" "ac_cv_type_struct_vifctl" "#ifdef SUNOS_5
22750 #define _XPG4_2
22751 #define __EXTENSIONS__
22752 #endif
22753 #include <stdio.h>
22754 #if STDC_HEADERS
22755 # include <stdlib.h>
22756 # include <stddef.h>
22757 #else
22758 # if HAVE_STDLIB_H
22759 #  include <stdlib.h>
22760 # endif
22761 #endif
22762 #if HAVE_SYS_TYPES_H
22763 # include <sys/types.h>
22764 #endif
22765 /* sys/conf.h depends on param.h on FBSD at least */
22766 #if HAVE_SYS_PARAM_H
22767 # include <sys/param.h>
22768 #endif
22769 /* Required for MAXSIG */
22770 #if HAVE_SIGNAL_H
22771 # include <signal.h>
22772 #endif
22773 #if HAVE_SYS_SOCKET_H
22774 # include <sys/socket.h>
22775 #endif
22776 #ifdef __APPLE__
22777 # define __APPLE_USE_RFC_3542
22778 #endif
22779 #if HAVE_NETINET_IN_H
22780 # include <netinet/in.h>
22781 #endif
22782 #ifdef TIME_WITH_SYS_TIME
22783 # include <sys/time.h>
22784 # include <time.h>
22785 #else
22786 # ifdef HAVE_SYS_TIME_H
22787 #  include <sys/time.h>
22788 # else
22789 #  include <time.h>
22790 # endif
22791 #endif /* TIME_WITH_SYS_TIME */
22792
22793 #if HAVE_NET_IF_H
22794 # include <net/if.h>
22795 #endif
22796
22797 #if HAVE_NET_IF_VAR_H
22798 # include <net/if_var.h>
22799 #endif
22800
22801 #if HAVE_SYS_UN_H
22802 # include <sys/un.h>
22803 #endif
22804 #if HAVE_NETINET_IN_SYSTM_H
22805 # include <netinet/in_systm.h>
22806 #endif
22807 #if HAVE_NETINET_IN_VAR_H
22808 # include <netinet/in_var.h>
22809 #endif
22810 #if HAVE_NET_IF_DL_H
22811 # include <net/if_dl.h>
22812 #endif
22813 #if HAVE_NET_NETOPT_H
22814 # include <net/netopt.h>
22815 #endif
22816 #if HAVE_NET_ROUTE_H
22817 # include <net/route.h>
22818 #endif
22819 #if HAVE_INET_ND_H
22820 # include <inet/nd.h>
22821 #endif
22822 #if HAVE_ARPA_INET_H
22823 # include <arpa/inet.h>
22824 #endif
22825 /* Required for IDRP */
22826 #if HAVE_NETINET_IP_ICMP_H
22827 # include <netinet/ip_icmp.h>
22828 #endif
22829
22830 #if HAVE_NETINET6_IN6_H
22831 #include <netinet6/in6.h>
22832 #endif
22833 #if HAVE_NETINET_IN6_VAR_H
22834 #include <netinet/in6_var.h>
22835 #endif
22836 #if HAVE_NETINET_ICMP6_H
22837 # include <netinet/icmp6.h>
22838 #endif
22839 #if HAVE_NETINET6_IN6_VAR_H
22840 # include <netinet6/in6_var.h>
22841 #endif
22842 #if HAVE_NETINET6_ND6_H
22843 # include <netinet6/nd6.h>
22844 #endif
22845
22846 "
22847 if test "x$ac_cv_type_struct_vifctl" = xyes; then :
22848
22849 cat >>confdefs.h <<_ACEOF
22850 #define HAVE_STRUCT_VIFCTL 1
22851 _ACEOF
22852
22853
22854 fi
22855 ac_fn_c_check_type "$LINENO" "struct mfcctl" "ac_cv_type_struct_mfcctl" "#ifdef SUNOS_5
22856 #define _XPG4_2
22857 #define __EXTENSIONS__
22858 #endif
22859 #include <stdio.h>
22860 #if STDC_HEADERS
22861 # include <stdlib.h>
22862 # include <stddef.h>
22863 #else
22864 # if HAVE_STDLIB_H
22865 #  include <stdlib.h>
22866 # endif
22867 #endif
22868 #if HAVE_SYS_TYPES_H
22869 # include <sys/types.h>
22870 #endif
22871 /* sys/conf.h depends on param.h on FBSD at least */
22872 #if HAVE_SYS_PARAM_H
22873 # include <sys/param.h>
22874 #endif
22875 /* Required for MAXSIG */
22876 #if HAVE_SIGNAL_H
22877 # include <signal.h>
22878 #endif
22879 #if HAVE_SYS_SOCKET_H
22880 # include <sys/socket.h>
22881 #endif
22882 #ifdef __APPLE__
22883 # define __APPLE_USE_RFC_3542
22884 #endif
22885 #if HAVE_NETINET_IN_H
22886 # include <netinet/in.h>
22887 #endif
22888 #ifdef TIME_WITH_SYS_TIME
22889 # include <sys/time.h>
22890 # include <time.h>
22891 #else
22892 # ifdef HAVE_SYS_TIME_H
22893 #  include <sys/time.h>
22894 # else
22895 #  include <time.h>
22896 # endif
22897 #endif /* TIME_WITH_SYS_TIME */
22898
22899 #if HAVE_NET_IF_H
22900 # include <net/if.h>
22901 #endif
22902
22903 #if HAVE_NET_IF_VAR_H
22904 # include <net/if_var.h>
22905 #endif
22906
22907 #if HAVE_SYS_UN_H
22908 # include <sys/un.h>
22909 #endif
22910 #if HAVE_NETINET_IN_SYSTM_H
22911 # include <netinet/in_systm.h>
22912 #endif
22913 #if HAVE_NETINET_IN_VAR_H
22914 # include <netinet/in_var.h>
22915 #endif
22916 #if HAVE_NET_IF_DL_H
22917 # include <net/if_dl.h>
22918 #endif
22919 #if HAVE_NET_NETOPT_H
22920 # include <net/netopt.h>
22921 #endif
22922 #if HAVE_NET_ROUTE_H
22923 # include <net/route.h>
22924 #endif
22925 #if HAVE_INET_ND_H
22926 # include <inet/nd.h>
22927 #endif
22928 #if HAVE_ARPA_INET_H
22929 # include <arpa/inet.h>
22930 #endif
22931 /* Required for IDRP */
22932 #if HAVE_NETINET_IP_ICMP_H
22933 # include <netinet/ip_icmp.h>
22934 #endif
22935
22936 #if HAVE_NETINET6_IN6_H
22937 #include <netinet6/in6.h>
22938 #endif
22939 #if HAVE_NETINET_IN6_VAR_H
22940 #include <netinet/in6_var.h>
22941 #endif
22942 #if HAVE_NETINET_ICMP6_H
22943 # include <netinet/icmp6.h>
22944 #endif
22945 #if HAVE_NETINET6_IN6_VAR_H
22946 # include <netinet6/in6_var.h>
22947 #endif
22948 #if HAVE_NETINET6_ND6_H
22949 # include <netinet6/nd6.h>
22950 #endif
22951
22952 "
22953 if test "x$ac_cv_type_struct_mfcctl" = xyes; then :
22954
22955 cat >>confdefs.h <<_ACEOF
22956 #define HAVE_STRUCT_MFCCTL 1
22957 _ACEOF
22958
22959
22960 fi
22961 ac_fn_c_check_type "$LINENO" "struct sioc_sg_req" "ac_cv_type_struct_sioc_sg_req" "#ifdef SUNOS_5
22962 #define _XPG4_2
22963 #define __EXTENSIONS__
22964 #endif
22965 #include <stdio.h>
22966 #if STDC_HEADERS
22967 # include <stdlib.h>
22968 # include <stddef.h>
22969 #else
22970 # if HAVE_STDLIB_H
22971 #  include <stdlib.h>
22972 # endif
22973 #endif
22974 #if HAVE_SYS_TYPES_H
22975 # include <sys/types.h>
22976 #endif
22977 /* sys/conf.h depends on param.h on FBSD at least */
22978 #if HAVE_SYS_PARAM_H
22979 # include <sys/param.h>
22980 #endif
22981 /* Required for MAXSIG */
22982 #if HAVE_SIGNAL_H
22983 # include <signal.h>
22984 #endif
22985 #if HAVE_SYS_SOCKET_H
22986 # include <sys/socket.h>
22987 #endif
22988 #ifdef __APPLE__
22989 # define __APPLE_USE_RFC_3542
22990 #endif
22991 #if HAVE_NETINET_IN_H
22992 # include <netinet/in.h>
22993 #endif
22994 #ifdef TIME_WITH_SYS_TIME
22995 # include <sys/time.h>
22996 # include <time.h>
22997 #else
22998 # ifdef HAVE_SYS_TIME_H
22999 #  include <sys/time.h>
23000 # else
23001 #  include <time.h>
23002 # endif
23003 #endif /* TIME_WITH_SYS_TIME */
23004
23005 #if HAVE_NET_IF_H
23006 # include <net/if.h>
23007 #endif
23008
23009 #if HAVE_NET_IF_VAR_H
23010 # include <net/if_var.h>
23011 #endif
23012
23013 #if HAVE_SYS_UN_H
23014 # include <sys/un.h>
23015 #endif
23016 #if HAVE_NETINET_IN_SYSTM_H
23017 # include <netinet/in_systm.h>
23018 #endif
23019 #if HAVE_NETINET_IN_VAR_H
23020 # include <netinet/in_var.h>
23021 #endif
23022 #if HAVE_NET_IF_DL_H
23023 # include <net/if_dl.h>
23024 #endif
23025 #if HAVE_NET_NETOPT_H
23026 # include <net/netopt.h>
23027 #endif
23028 #if HAVE_NET_ROUTE_H
23029 # include <net/route.h>
23030 #endif
23031 #if HAVE_INET_ND_H
23032 # include <inet/nd.h>
23033 #endif
23034 #if HAVE_ARPA_INET_H
23035 # include <arpa/inet.h>
23036 #endif
23037 /* Required for IDRP */
23038 #if HAVE_NETINET_IP_ICMP_H
23039 # include <netinet/ip_icmp.h>
23040 #endif
23041
23042 #if HAVE_NETINET6_IN6_H
23043 #include <netinet6/in6.h>
23044 #endif
23045 #if HAVE_NETINET_IN6_VAR_H
23046 #include <netinet/in6_var.h>
23047 #endif
23048 #if HAVE_NETINET_ICMP6_H
23049 # include <netinet/icmp6.h>
23050 #endif
23051 #if HAVE_NETINET6_IN6_VAR_H
23052 # include <netinet6/in6_var.h>
23053 #endif
23054 #if HAVE_NETINET6_ND6_H
23055 # include <netinet6/nd6.h>
23056 #endif
23057
23058 "
23059 if test "x$ac_cv_type_struct_sioc_sg_req" = xyes; then :
23060
23061 cat >>confdefs.h <<_ACEOF
23062 #define HAVE_STRUCT_SIOC_SG_REQ 1
23063 _ACEOF
23064
23065
23066 fi
23067 ac_fn_c_check_type "$LINENO" "vifi_t" "ac_cv_type_vifi_t" "#ifdef SUNOS_5
23068 #define _XPG4_2
23069 #define __EXTENSIONS__
23070 #endif
23071 #include <stdio.h>
23072 #if STDC_HEADERS
23073 # include <stdlib.h>
23074 # include <stddef.h>
23075 #else
23076 # if HAVE_STDLIB_H
23077 #  include <stdlib.h>
23078 # endif
23079 #endif
23080 #if HAVE_SYS_TYPES_H
23081 # include <sys/types.h>
23082 #endif
23083 /* sys/conf.h depends on param.h on FBSD at least */
23084 #if HAVE_SYS_PARAM_H
23085 # include <sys/param.h>
23086 #endif
23087 /* Required for MAXSIG */
23088 #if HAVE_SIGNAL_H
23089 # include <signal.h>
23090 #endif
23091 #if HAVE_SYS_SOCKET_H
23092 # include <sys/socket.h>
23093 #endif
23094 #ifdef __APPLE__
23095 # define __APPLE_USE_RFC_3542
23096 #endif
23097 #if HAVE_NETINET_IN_H
23098 # include <netinet/in.h>
23099 #endif
23100 #ifdef TIME_WITH_SYS_TIME
23101 # include <sys/time.h>
23102 # include <time.h>
23103 #else
23104 # ifdef HAVE_SYS_TIME_H
23105 #  include <sys/time.h>
23106 # else
23107 #  include <time.h>
23108 # endif
23109 #endif /* TIME_WITH_SYS_TIME */
23110
23111 #if HAVE_NET_IF_H
23112 # include <net/if.h>
23113 #endif
23114
23115 #if HAVE_NET_IF_VAR_H
23116 # include <net/if_var.h>
23117 #endif
23118
23119 #if HAVE_SYS_UN_H
23120 # include <sys/un.h>
23121 #endif
23122 #if HAVE_NETINET_IN_SYSTM_H
23123 # include <netinet/in_systm.h>
23124 #endif
23125 #if HAVE_NETINET_IN_VAR_H
23126 # include <netinet/in_var.h>
23127 #endif
23128 #if HAVE_NET_IF_DL_H
23129 # include <net/if_dl.h>
23130 #endif
23131 #if HAVE_NET_NETOPT_H
23132 # include <net/netopt.h>
23133 #endif
23134 #if HAVE_NET_ROUTE_H
23135 # include <net/route.h>
23136 #endif
23137 #if HAVE_INET_ND_H
23138 # include <inet/nd.h>
23139 #endif
23140 #if HAVE_ARPA_INET_H
23141 # include <arpa/inet.h>
23142 #endif
23143 /* Required for IDRP */
23144 #if HAVE_NETINET_IP_ICMP_H
23145 # include <netinet/ip_icmp.h>
23146 #endif
23147
23148 #if HAVE_NETINET6_IN6_H
23149 #include <netinet6/in6.h>
23150 #endif
23151 #if HAVE_NETINET_IN6_VAR_H
23152 #include <netinet/in6_var.h>
23153 #endif
23154 #if HAVE_NETINET_ICMP6_H
23155 # include <netinet/icmp6.h>
23156 #endif
23157 #if HAVE_NETINET6_IN6_VAR_H
23158 # include <netinet6/in6_var.h>
23159 #endif
23160 #if HAVE_NETINET6_ND6_H
23161 # include <netinet6/nd6.h>
23162 #endif
23163
23164 "
23165 if test "x$ac_cv_type_vifi_t" = xyes; then :
23166
23167 cat >>confdefs.h <<_ACEOF
23168 #define HAVE_VIFI_T 1
23169 _ACEOF
23170
23171
23172 fi
23173 ac_fn_c_check_type "$LINENO" "struct sioc_vif_req" "ac_cv_type_struct_sioc_vif_req" "#ifdef SUNOS_5
23174 #define _XPG4_2
23175 #define __EXTENSIONS__
23176 #endif
23177 #include <stdio.h>
23178 #if STDC_HEADERS
23179 # include <stdlib.h>
23180 # include <stddef.h>
23181 #else
23182 # if HAVE_STDLIB_H
23183 #  include <stdlib.h>
23184 # endif
23185 #endif
23186 #if HAVE_SYS_TYPES_H
23187 # include <sys/types.h>
23188 #endif
23189 /* sys/conf.h depends on param.h on FBSD at least */
23190 #if HAVE_SYS_PARAM_H
23191 # include <sys/param.h>
23192 #endif
23193 /* Required for MAXSIG */
23194 #if HAVE_SIGNAL_H
23195 # include <signal.h>
23196 #endif
23197 #if HAVE_SYS_SOCKET_H
23198 # include <sys/socket.h>
23199 #endif
23200 #ifdef __APPLE__
23201 # define __APPLE_USE_RFC_3542
23202 #endif
23203 #if HAVE_NETINET_IN_H
23204 # include <netinet/in.h>
23205 #endif
23206 #ifdef TIME_WITH_SYS_TIME
23207 # include <sys/time.h>
23208 # include <time.h>
23209 #else
23210 # ifdef HAVE_SYS_TIME_H
23211 #  include <sys/time.h>
23212 # else
23213 #  include <time.h>
23214 # endif
23215 #endif /* TIME_WITH_SYS_TIME */
23216
23217 #if HAVE_NET_IF_H
23218 # include <net/if.h>
23219 #endif
23220
23221 #if HAVE_NET_IF_VAR_H
23222 # include <net/if_var.h>
23223 #endif
23224
23225 #if HAVE_SYS_UN_H
23226 # include <sys/un.h>
23227 #endif
23228 #if HAVE_NETINET_IN_SYSTM_H
23229 # include <netinet/in_systm.h>
23230 #endif
23231 #if HAVE_NETINET_IN_VAR_H
23232 # include <netinet/in_var.h>
23233 #endif
23234 #if HAVE_NET_IF_DL_H
23235 # include <net/if_dl.h>
23236 #endif
23237 #if HAVE_NET_NETOPT_H
23238 # include <net/netopt.h>
23239 #endif
23240 #if HAVE_NET_ROUTE_H
23241 # include <net/route.h>
23242 #endif
23243 #if HAVE_INET_ND_H
23244 # include <inet/nd.h>
23245 #endif
23246 #if HAVE_ARPA_INET_H
23247 # include <arpa/inet.h>
23248 #endif
23249 /* Required for IDRP */
23250 #if HAVE_NETINET_IP_ICMP_H
23251 # include <netinet/ip_icmp.h>
23252 #endif
23253
23254 #if HAVE_NETINET6_IN6_H
23255 #include <netinet6/in6.h>
23256 #endif
23257 #if HAVE_NETINET_IN6_VAR_H
23258 #include <netinet/in6_var.h>
23259 #endif
23260 #if HAVE_NETINET_ICMP6_H
23261 # include <netinet/icmp6.h>
23262 #endif
23263 #if HAVE_NETINET6_IN6_VAR_H
23264 # include <netinet6/in6_var.h>
23265 #endif
23266 #if HAVE_NETINET6_ND6_H
23267 # include <netinet6/nd6.h>
23268 #endif
23269
23270 "
23271 if test "x$ac_cv_type_struct_sioc_vif_req" = xyes; then :
23272
23273 cat >>confdefs.h <<_ACEOF
23274 #define HAVE_STRUCT_SIOC_VIF_REQ 1
23275 _ACEOF
23276
23277
23278 fi
23279 ac_fn_c_check_type "$LINENO" "struct igmpmsg" "ac_cv_type_struct_igmpmsg" "#ifdef SUNOS_5
23280 #define _XPG4_2
23281 #define __EXTENSIONS__
23282 #endif
23283 #include <stdio.h>
23284 #if STDC_HEADERS
23285 # include <stdlib.h>
23286 # include <stddef.h>
23287 #else
23288 # if HAVE_STDLIB_H
23289 #  include <stdlib.h>
23290 # endif
23291 #endif
23292 #if HAVE_SYS_TYPES_H
23293 # include <sys/types.h>
23294 #endif
23295 /* sys/conf.h depends on param.h on FBSD at least */
23296 #if HAVE_SYS_PARAM_H
23297 # include <sys/param.h>
23298 #endif
23299 /* Required for MAXSIG */
23300 #if HAVE_SIGNAL_H
23301 # include <signal.h>
23302 #endif
23303 #if HAVE_SYS_SOCKET_H
23304 # include <sys/socket.h>
23305 #endif
23306 #ifdef __APPLE__
23307 # define __APPLE_USE_RFC_3542
23308 #endif
23309 #if HAVE_NETINET_IN_H
23310 # include <netinet/in.h>
23311 #endif
23312 #ifdef TIME_WITH_SYS_TIME
23313 # include <sys/time.h>
23314 # include <time.h>
23315 #else
23316 # ifdef HAVE_SYS_TIME_H
23317 #  include <sys/time.h>
23318 # else
23319 #  include <time.h>
23320 # endif
23321 #endif /* TIME_WITH_SYS_TIME */
23322
23323 #if HAVE_NET_IF_H
23324 # include <net/if.h>
23325 #endif
23326
23327 #if HAVE_NET_IF_VAR_H
23328 # include <net/if_var.h>
23329 #endif
23330
23331 #if HAVE_SYS_UN_H
23332 # include <sys/un.h>
23333 #endif
23334 #if HAVE_NETINET_IN_SYSTM_H
23335 # include <netinet/in_systm.h>
23336 #endif
23337 #if HAVE_NETINET_IN_VAR_H
23338 # include <netinet/in_var.h>
23339 #endif
23340 #if HAVE_NET_IF_DL_H
23341 # include <net/if_dl.h>
23342 #endif
23343 #if HAVE_NET_NETOPT_H
23344 # include <net/netopt.h>
23345 #endif
23346 #if HAVE_NET_ROUTE_H
23347 # include <net/route.h>
23348 #endif
23349 #if HAVE_INET_ND_H
23350 # include <inet/nd.h>
23351 #endif
23352 #if HAVE_ARPA_INET_H
23353 # include <arpa/inet.h>
23354 #endif
23355 /* Required for IDRP */
23356 #if HAVE_NETINET_IP_ICMP_H
23357 # include <netinet/ip_icmp.h>
23358 #endif
23359
23360 #if HAVE_NETINET6_IN6_H
23361 #include <netinet6/in6.h>
23362 #endif
23363 #if HAVE_NETINET_IN6_VAR_H
23364 #include <netinet/in6_var.h>
23365 #endif
23366 #if HAVE_NETINET_ICMP6_H
23367 # include <netinet/icmp6.h>
23368 #endif
23369 #if HAVE_NETINET6_IN6_VAR_H
23370 # include <netinet6/in6_var.h>
23371 #endif
23372 #if HAVE_NETINET6_ND6_H
23373 # include <netinet6/nd6.h>
23374 #endif
23375
23376 "
23377 if test "x$ac_cv_type_struct_igmpmsg" = xyes; then :
23378
23379 cat >>confdefs.h <<_ACEOF
23380 #define HAVE_STRUCT_IGMPMSG 1
23381 _ACEOF
23382
23383
23384 fi
23385 ac_fn_c_check_type "$LINENO" "struct ifaliasreq" "ac_cv_type_struct_ifaliasreq" "#ifdef SUNOS_5
23386 #define _XPG4_2
23387 #define __EXTENSIONS__
23388 #endif
23389 #include <stdio.h>
23390 #if STDC_HEADERS
23391 # include <stdlib.h>
23392 # include <stddef.h>
23393 #else
23394 # if HAVE_STDLIB_H
23395 #  include <stdlib.h>
23396 # endif
23397 #endif
23398 #if HAVE_SYS_TYPES_H
23399 # include <sys/types.h>
23400 #endif
23401 /* sys/conf.h depends on param.h on FBSD at least */
23402 #if HAVE_SYS_PARAM_H
23403 # include <sys/param.h>
23404 #endif
23405 /* Required for MAXSIG */
23406 #if HAVE_SIGNAL_H
23407 # include <signal.h>
23408 #endif
23409 #if HAVE_SYS_SOCKET_H
23410 # include <sys/socket.h>
23411 #endif
23412 #ifdef __APPLE__
23413 # define __APPLE_USE_RFC_3542
23414 #endif
23415 #if HAVE_NETINET_IN_H
23416 # include <netinet/in.h>
23417 #endif
23418 #ifdef TIME_WITH_SYS_TIME
23419 # include <sys/time.h>
23420 # include <time.h>
23421 #else
23422 # ifdef HAVE_SYS_TIME_H
23423 #  include <sys/time.h>
23424 # else
23425 #  include <time.h>
23426 # endif
23427 #endif /* TIME_WITH_SYS_TIME */
23428
23429 #if HAVE_NET_IF_H
23430 # include <net/if.h>
23431 #endif
23432
23433 #if HAVE_NET_IF_VAR_H
23434 # include <net/if_var.h>
23435 #endif
23436
23437 #if HAVE_SYS_UN_H
23438 # include <sys/un.h>
23439 #endif
23440 #if HAVE_NETINET_IN_SYSTM_H
23441 # include <netinet/in_systm.h>
23442 #endif
23443 #if HAVE_NETINET_IN_VAR_H
23444 # include <netinet/in_var.h>
23445 #endif
23446 #if HAVE_NET_IF_DL_H
23447 # include <net/if_dl.h>
23448 #endif
23449 #if HAVE_NET_NETOPT_H
23450 # include <net/netopt.h>
23451 #endif
23452 #if HAVE_NET_ROUTE_H
23453 # include <net/route.h>
23454 #endif
23455 #if HAVE_INET_ND_H
23456 # include <inet/nd.h>
23457 #endif
23458 #if HAVE_ARPA_INET_H
23459 # include <arpa/inet.h>
23460 #endif
23461 /* Required for IDRP */
23462 #if HAVE_NETINET_IP_ICMP_H
23463 # include <netinet/ip_icmp.h>
23464 #endif
23465
23466 #if HAVE_NETINET6_IN6_H
23467 #include <netinet6/in6.h>
23468 #endif
23469 #if HAVE_NETINET_IN6_VAR_H
23470 #include <netinet/in6_var.h>
23471 #endif
23472 #if HAVE_NETINET_ICMP6_H
23473 # include <netinet/icmp6.h>
23474 #endif
23475 #if HAVE_NETINET6_IN6_VAR_H
23476 # include <netinet6/in6_var.h>
23477 #endif
23478 #if HAVE_NETINET6_ND6_H
23479 # include <netinet6/nd6.h>
23480 #endif
23481
23482 "
23483 if test "x$ac_cv_type_struct_ifaliasreq" = xyes; then :
23484
23485 cat >>confdefs.h <<_ACEOF
23486 #define HAVE_STRUCT_IFALIASREQ 1
23487 _ACEOF
23488
23489
23490 fi
23491 ac_fn_c_check_type "$LINENO" "struct if6_aliasreq" "ac_cv_type_struct_if6_aliasreq" "#ifdef SUNOS_5
23492 #define _XPG4_2
23493 #define __EXTENSIONS__
23494 #endif
23495 #include <stdio.h>
23496 #if STDC_HEADERS
23497 # include <stdlib.h>
23498 # include <stddef.h>
23499 #else
23500 # if HAVE_STDLIB_H
23501 #  include <stdlib.h>
23502 # endif
23503 #endif
23504 #if HAVE_SYS_TYPES_H
23505 # include <sys/types.h>
23506 #endif
23507 /* sys/conf.h depends on param.h on FBSD at least */
23508 #if HAVE_SYS_PARAM_H
23509 # include <sys/param.h>
23510 #endif
23511 /* Required for MAXSIG */
23512 #if HAVE_SIGNAL_H
23513 # include <signal.h>
23514 #endif
23515 #if HAVE_SYS_SOCKET_H
23516 # include <sys/socket.h>
23517 #endif
23518 #ifdef __APPLE__
23519 # define __APPLE_USE_RFC_3542
23520 #endif
23521 #if HAVE_NETINET_IN_H
23522 # include <netinet/in.h>
23523 #endif
23524 #ifdef TIME_WITH_SYS_TIME
23525 # include <sys/time.h>
23526 # include <time.h>
23527 #else
23528 # ifdef HAVE_SYS_TIME_H
23529 #  include <sys/time.h>
23530 # else
23531 #  include <time.h>
23532 # endif
23533 #endif /* TIME_WITH_SYS_TIME */
23534
23535 #if HAVE_NET_IF_H
23536 # include <net/if.h>
23537 #endif
23538
23539 #if HAVE_NET_IF_VAR_H
23540 # include <net/if_var.h>
23541 #endif
23542
23543 #if HAVE_SYS_UN_H
23544 # include <sys/un.h>
23545 #endif
23546 #if HAVE_NETINET_IN_SYSTM_H
23547 # include <netinet/in_systm.h>
23548 #endif
23549 #if HAVE_NETINET_IN_VAR_H
23550 # include <netinet/in_var.h>
23551 #endif
23552 #if HAVE_NET_IF_DL_H
23553 # include <net/if_dl.h>
23554 #endif
23555 #if HAVE_NET_NETOPT_H
23556 # include <net/netopt.h>
23557 #endif
23558 #if HAVE_NET_ROUTE_H
23559 # include <net/route.h>
23560 #endif
23561 #if HAVE_INET_ND_H
23562 # include <inet/nd.h>
23563 #endif
23564 #if HAVE_ARPA_INET_H
23565 # include <arpa/inet.h>
23566 #endif
23567 /* Required for IDRP */
23568 #if HAVE_NETINET_IP_ICMP_H
23569 # include <netinet/ip_icmp.h>
23570 #endif
23571
23572 #if HAVE_NETINET6_IN6_H
23573 #include <netinet6/in6.h>
23574 #endif
23575 #if HAVE_NETINET_IN6_VAR_H
23576 #include <netinet/in6_var.h>
23577 #endif
23578 #if HAVE_NETINET_ICMP6_H
23579 # include <netinet/icmp6.h>
23580 #endif
23581 #if HAVE_NETINET6_IN6_VAR_H
23582 # include <netinet6/in6_var.h>
23583 #endif
23584 #if HAVE_NETINET6_ND6_H
23585 # include <netinet6/nd6.h>
23586 #endif
23587
23588 "
23589 if test "x$ac_cv_type_struct_if6_aliasreq" = xyes; then :
23590
23591 cat >>confdefs.h <<_ACEOF
23592 #define HAVE_STRUCT_IF6_ALIASREQ 1
23593 _ACEOF
23594
23595
23596 fi
23597 ac_fn_c_check_type "$LINENO" "struct in6_aliasreq" "ac_cv_type_struct_in6_aliasreq" "#ifdef SUNOS_5
23598 #define _XPG4_2
23599 #define __EXTENSIONS__
23600 #endif
23601 #include <stdio.h>
23602 #if STDC_HEADERS
23603 # include <stdlib.h>
23604 # include <stddef.h>
23605 #else
23606 # if HAVE_STDLIB_H
23607 #  include <stdlib.h>
23608 # endif
23609 #endif
23610 #if HAVE_SYS_TYPES_H
23611 # include <sys/types.h>
23612 #endif
23613 /* sys/conf.h depends on param.h on FBSD at least */
23614 #if HAVE_SYS_PARAM_H
23615 # include <sys/param.h>
23616 #endif
23617 /* Required for MAXSIG */
23618 #if HAVE_SIGNAL_H
23619 # include <signal.h>
23620 #endif
23621 #if HAVE_SYS_SOCKET_H
23622 # include <sys/socket.h>
23623 #endif
23624 #ifdef __APPLE__
23625 # define __APPLE_USE_RFC_3542
23626 #endif
23627 #if HAVE_NETINET_IN_H
23628 # include <netinet/in.h>
23629 #endif
23630 #ifdef TIME_WITH_SYS_TIME
23631 # include <sys/time.h>
23632 # include <time.h>
23633 #else
23634 # ifdef HAVE_SYS_TIME_H
23635 #  include <sys/time.h>
23636 # else
23637 #  include <time.h>
23638 # endif
23639 #endif /* TIME_WITH_SYS_TIME */
23640
23641 #if HAVE_NET_IF_H
23642 # include <net/if.h>
23643 #endif
23644
23645 #if HAVE_NET_IF_VAR_H
23646 # include <net/if_var.h>
23647 #endif
23648
23649 #if HAVE_SYS_UN_H
23650 # include <sys/un.h>
23651 #endif
23652 #if HAVE_NETINET_IN_SYSTM_H
23653 # include <netinet/in_systm.h>
23654 #endif
23655 #if HAVE_NETINET_IN_VAR_H
23656 # include <netinet/in_var.h>
23657 #endif
23658 #if HAVE_NET_IF_DL_H
23659 # include <net/if_dl.h>
23660 #endif
23661 #if HAVE_NET_NETOPT_H
23662 # include <net/netopt.h>
23663 #endif
23664 #if HAVE_NET_ROUTE_H
23665 # include <net/route.h>
23666 #endif
23667 #if HAVE_INET_ND_H
23668 # include <inet/nd.h>
23669 #endif
23670 #if HAVE_ARPA_INET_H
23671 # include <arpa/inet.h>
23672 #endif
23673 /* Required for IDRP */
23674 #if HAVE_NETINET_IP_ICMP_H
23675 # include <netinet/ip_icmp.h>
23676 #endif
23677
23678 #if HAVE_NETINET6_IN6_H
23679 #include <netinet6/in6.h>
23680 #endif
23681 #if HAVE_NETINET_IN6_VAR_H
23682 #include <netinet/in6_var.h>
23683 #endif
23684 #if HAVE_NETINET_ICMP6_H
23685 # include <netinet/icmp6.h>
23686 #endif
23687 #if HAVE_NETINET6_IN6_VAR_H
23688 # include <netinet6/in6_var.h>
23689 #endif
23690 #if HAVE_NETINET6_ND6_H
23691 # include <netinet6/nd6.h>
23692 #endif
23693
23694 "
23695 if test "x$ac_cv_type_struct_in6_aliasreq" = xyes; then :
23696
23697 cat >>confdefs.h <<_ACEOF
23698 #define HAVE_STRUCT_IN6_ALIASREQ 1
23699 _ACEOF
23700
23701
23702 fi
23703 ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
23704 #define _XPG4_2
23705 #define __EXTENSIONS__
23706 #endif
23707 #include <stdio.h>
23708 #if STDC_HEADERS
23709 # include <stdlib.h>
23710 # include <stddef.h>
23711 #else
23712 # if HAVE_STDLIB_H
23713 #  include <stdlib.h>
23714 # endif
23715 #endif
23716 #if HAVE_SYS_TYPES_H
23717 # include <sys/types.h>
23718 #endif
23719 /* sys/conf.h depends on param.h on FBSD at least */
23720 #if HAVE_SYS_PARAM_H
23721 # include <sys/param.h>
23722 #endif
23723 /* Required for MAXSIG */
23724 #if HAVE_SIGNAL_H
23725 # include <signal.h>
23726 #endif
23727 #if HAVE_SYS_SOCKET_H
23728 # include <sys/socket.h>
23729 #endif
23730 #ifdef __APPLE__
23731 # define __APPLE_USE_RFC_3542
23732 #endif
23733 #if HAVE_NETINET_IN_H
23734 # include <netinet/in.h>
23735 #endif
23736 #ifdef TIME_WITH_SYS_TIME
23737 # include <sys/time.h>
23738 # include <time.h>
23739 #else
23740 # ifdef HAVE_SYS_TIME_H
23741 #  include <sys/time.h>
23742 # else
23743 #  include <time.h>
23744 # endif
23745 #endif /* TIME_WITH_SYS_TIME */
23746
23747 #if HAVE_NET_IF_H
23748 # include <net/if.h>
23749 #endif
23750
23751 #if HAVE_NET_IF_VAR_H
23752 # include <net/if_var.h>
23753 #endif
23754
23755 #if HAVE_SYS_UN_H
23756 # include <sys/un.h>
23757 #endif
23758 #if HAVE_NETINET_IN_SYSTM_H
23759 # include <netinet/in_systm.h>
23760 #endif
23761 #if HAVE_NETINET_IN_VAR_H
23762 # include <netinet/in_var.h>
23763 #endif
23764 #if HAVE_NET_IF_DL_H
23765 # include <net/if_dl.h>
23766 #endif
23767 #if HAVE_NET_NETOPT_H
23768 # include <net/netopt.h>
23769 #endif
23770 #if HAVE_NET_ROUTE_H
23771 # include <net/route.h>
23772 #endif
23773 #if HAVE_INET_ND_H
23774 # include <inet/nd.h>
23775 #endif
23776 #if HAVE_ARPA_INET_H
23777 # include <arpa/inet.h>
23778 #endif
23779 /* Required for IDRP */
23780 #if HAVE_NETINET_IP_ICMP_H
23781 # include <netinet/ip_icmp.h>
23782 #endif
23783
23784 #if HAVE_NETINET6_IN6_H
23785 #include <netinet6/in6.h>
23786 #endif
23787 #if HAVE_NETINET_IN6_VAR_H
23788 #include <netinet/in6_var.h>
23789 #endif
23790 #if HAVE_NETINET_ICMP6_H
23791 # include <netinet/icmp6.h>
23792 #endif
23793 #if HAVE_NETINET6_IN6_VAR_H
23794 # include <netinet6/in6_var.h>
23795 #endif
23796 #if HAVE_NETINET6_ND6_H
23797 # include <netinet6/nd6.h>
23798 #endif
23799
23800 "
23801 if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
23802
23803 cat >>confdefs.h <<_ACEOF
23804 #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
23805 _ACEOF
23806
23807
23808 fi
23809 ac_fn_c_check_type "$LINENO" "struct rt_addrinfo" "ac_cv_type_struct_rt_addrinfo" "#ifdef SUNOS_5
23810 #define _XPG4_2
23811 #define __EXTENSIONS__
23812 #endif
23813 #include <stdio.h>
23814 #if STDC_HEADERS
23815 # include <stdlib.h>
23816 # include <stddef.h>
23817 #else
23818 # if HAVE_STDLIB_H
23819 #  include <stdlib.h>
23820 # endif
23821 #endif
23822 #if HAVE_SYS_TYPES_H
23823 # include <sys/types.h>
23824 #endif
23825 /* sys/conf.h depends on param.h on FBSD at least */
23826 #if HAVE_SYS_PARAM_H
23827 # include <sys/param.h>
23828 #endif
23829 /* Required for MAXSIG */
23830 #if HAVE_SIGNAL_H
23831 # include <signal.h>
23832 #endif
23833 #if HAVE_SYS_SOCKET_H
23834 # include <sys/socket.h>
23835 #endif
23836 #ifdef __APPLE__
23837 # define __APPLE_USE_RFC_3542
23838 #endif
23839 #if HAVE_NETINET_IN_H
23840 # include <netinet/in.h>
23841 #endif
23842 #ifdef TIME_WITH_SYS_TIME
23843 # include <sys/time.h>
23844 # include <time.h>
23845 #else
23846 # ifdef HAVE_SYS_TIME_H
23847 #  include <sys/time.h>
23848 # else
23849 #  include <time.h>
23850 # endif
23851 #endif /* TIME_WITH_SYS_TIME */
23852
23853 #if HAVE_NET_IF_H
23854 # include <net/if.h>
23855 #endif
23856
23857 #if HAVE_NET_IF_VAR_H
23858 # include <net/if_var.h>
23859 #endif
23860
23861 #if HAVE_SYS_UN_H
23862 # include <sys/un.h>
23863 #endif
23864 #if HAVE_NETINET_IN_SYSTM_H
23865 # include <netinet/in_systm.h>
23866 #endif
23867 #if HAVE_NETINET_IN_VAR_H
23868 # include <netinet/in_var.h>
23869 #endif
23870 #if HAVE_NET_IF_DL_H
23871 # include <net/if_dl.h>
23872 #endif
23873 #if HAVE_NET_NETOPT_H
23874 # include <net/netopt.h>
23875 #endif
23876 #if HAVE_NET_ROUTE_H
23877 # include <net/route.h>
23878 #endif
23879 #if HAVE_INET_ND_H
23880 # include <inet/nd.h>
23881 #endif
23882 #if HAVE_ARPA_INET_H
23883 # include <arpa/inet.h>
23884 #endif
23885 /* Required for IDRP */
23886 #if HAVE_NETINET_IP_ICMP_H
23887 # include <netinet/ip_icmp.h>
23888 #endif
23889
23890 #if HAVE_NETINET6_IN6_H
23891 #include <netinet6/in6.h>
23892 #endif
23893 #if HAVE_NETINET_IN6_VAR_H
23894 #include <netinet/in6_var.h>
23895 #endif
23896 #if HAVE_NETINET_ICMP6_H
23897 # include <netinet/icmp6.h>
23898 #endif
23899 #if HAVE_NETINET6_IN6_VAR_H
23900 # include <netinet6/in6_var.h>
23901 #endif
23902 #if HAVE_NETINET6_ND6_H
23903 # include <netinet6/nd6.h>
23904 #endif
23905
23906 "
23907 if test "x$ac_cv_type_struct_rt_addrinfo" = xyes; then :
23908
23909 cat >>confdefs.h <<_ACEOF
23910 #define HAVE_STRUCT_RT_ADDRINFO 1
23911 _ACEOF
23912
23913
23914 fi
23915 ac_fn_c_check_type "$LINENO" "struct nd_opt_homeagent_info" "ac_cv_type_struct_nd_opt_homeagent_info" "#ifdef SUNOS_5
23916 #define _XPG4_2
23917 #define __EXTENSIONS__
23918 #endif
23919 #include <stdio.h>
23920 #if STDC_HEADERS
23921 # include <stdlib.h>
23922 # include <stddef.h>
23923 #else
23924 # if HAVE_STDLIB_H
23925 #  include <stdlib.h>
23926 # endif
23927 #endif
23928 #if HAVE_SYS_TYPES_H
23929 # include <sys/types.h>
23930 #endif
23931 /* sys/conf.h depends on param.h on FBSD at least */
23932 #if HAVE_SYS_PARAM_H
23933 # include <sys/param.h>
23934 #endif
23935 /* Required for MAXSIG */
23936 #if HAVE_SIGNAL_H
23937 # include <signal.h>
23938 #endif
23939 #if HAVE_SYS_SOCKET_H
23940 # include <sys/socket.h>
23941 #endif
23942 #ifdef __APPLE__
23943 # define __APPLE_USE_RFC_3542
23944 #endif
23945 #if HAVE_NETINET_IN_H
23946 # include <netinet/in.h>
23947 #endif
23948 #ifdef TIME_WITH_SYS_TIME
23949 # include <sys/time.h>
23950 # include <time.h>
23951 #else
23952 # ifdef HAVE_SYS_TIME_H
23953 #  include <sys/time.h>
23954 # else
23955 #  include <time.h>
23956 # endif
23957 #endif /* TIME_WITH_SYS_TIME */
23958
23959 #if HAVE_NET_IF_H
23960 # include <net/if.h>
23961 #endif
23962
23963 #if HAVE_NET_IF_VAR_H
23964 # include <net/if_var.h>
23965 #endif
23966
23967 #if HAVE_SYS_UN_H
23968 # include <sys/un.h>
23969 #endif
23970 #if HAVE_NETINET_IN_SYSTM_H
23971 # include <netinet/in_systm.h>
23972 #endif
23973 #if HAVE_NETINET_IN_VAR_H
23974 # include <netinet/in_var.h>
23975 #endif
23976 #if HAVE_NET_IF_DL_H
23977 # include <net/if_dl.h>
23978 #endif
23979 #if HAVE_NET_NETOPT_H
23980 # include <net/netopt.h>
23981 #endif
23982 #if HAVE_NET_ROUTE_H
23983 # include <net/route.h>
23984 #endif
23985 #if HAVE_INET_ND_H
23986 # include <inet/nd.h>
23987 #endif
23988 #if HAVE_ARPA_INET_H
23989 # include <arpa/inet.h>
23990 #endif
23991 /* Required for IDRP */
23992 #if HAVE_NETINET_IP_ICMP_H
23993 # include <netinet/ip_icmp.h>
23994 #endif
23995
23996 #if HAVE_NETINET6_IN6_H
23997 #include <netinet6/in6.h>
23998 #endif
23999 #if HAVE_NETINET_IN6_VAR_H
24000 #include <netinet/in6_var.h>
24001 #endif
24002 #if HAVE_NETINET_ICMP6_H
24003 # include <netinet/icmp6.h>
24004 #endif
24005 #if HAVE_NETINET6_IN6_VAR_H
24006 # include <netinet6/in6_var.h>
24007 #endif
24008 #if HAVE_NETINET6_ND6_H
24009 # include <netinet6/nd6.h>
24010 #endif
24011
24012 "
24013 if test "x$ac_cv_type_struct_nd_opt_homeagent_info" = xyes; then :
24014
24015 cat >>confdefs.h <<_ACEOF
24016 #define HAVE_STRUCT_ND_OPT_HOMEAGENT_INFO 1
24017 _ACEOF
24018
24019
24020 fi
24021 ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
24022 #define _XPG4_2
24023 #define __EXTENSIONS__
24024 #endif
24025 #include <stdio.h>
24026 #if STDC_HEADERS
24027 # include <stdlib.h>
24028 # include <stddef.h>
24029 #else
24030 # if HAVE_STDLIB_H
24031 #  include <stdlib.h>
24032 # endif
24033 #endif
24034 #if HAVE_SYS_TYPES_H
24035 # include <sys/types.h>
24036 #endif
24037 /* sys/conf.h depends on param.h on FBSD at least */
24038 #if HAVE_SYS_PARAM_H
24039 # include <sys/param.h>
24040 #endif
24041 /* Required for MAXSIG */
24042 #if HAVE_SIGNAL_H
24043 # include <signal.h>
24044 #endif
24045 #if HAVE_SYS_SOCKET_H
24046 # include <sys/socket.h>
24047 #endif
24048 #ifdef __APPLE__
24049 # define __APPLE_USE_RFC_3542
24050 #endif
24051 #if HAVE_NETINET_IN_H
24052 # include <netinet/in.h>
24053 #endif
24054 #ifdef TIME_WITH_SYS_TIME
24055 # include <sys/time.h>
24056 # include <time.h>
24057 #else
24058 # ifdef HAVE_SYS_TIME_H
24059 #  include <sys/time.h>
24060 # else
24061 #  include <time.h>
24062 # endif
24063 #endif /* TIME_WITH_SYS_TIME */
24064
24065 #if HAVE_NET_IF_H
24066 # include <net/if.h>
24067 #endif
24068
24069 #if HAVE_NET_IF_VAR_H
24070 # include <net/if_var.h>
24071 #endif
24072
24073 #if HAVE_SYS_UN_H
24074 # include <sys/un.h>
24075 #endif
24076 #if HAVE_NETINET_IN_SYSTM_H
24077 # include <netinet/in_systm.h>
24078 #endif
24079 #if HAVE_NETINET_IN_VAR_H
24080 # include <netinet/in_var.h>
24081 #endif
24082 #if HAVE_NET_IF_DL_H
24083 # include <net/if_dl.h>
24084 #endif
24085 #if HAVE_NET_NETOPT_H
24086 # include <net/netopt.h>
24087 #endif
24088 #if HAVE_NET_ROUTE_H
24089 # include <net/route.h>
24090 #endif
24091 #if HAVE_INET_ND_H
24092 # include <inet/nd.h>
24093 #endif
24094 #if HAVE_ARPA_INET_H
24095 # include <arpa/inet.h>
24096 #endif
24097 /* Required for IDRP */
24098 #if HAVE_NETINET_IP_ICMP_H
24099 # include <netinet/ip_icmp.h>
24100 #endif
24101
24102 #if HAVE_NETINET6_IN6_H
24103 #include <netinet6/in6.h>
24104 #endif
24105 #if HAVE_NETINET_IN6_VAR_H
24106 #include <netinet/in6_var.h>
24107 #endif
24108 #if HAVE_NETINET_ICMP6_H
24109 # include <netinet/icmp6.h>
24110 #endif
24111 #if HAVE_NETINET6_IN6_VAR_H
24112 # include <netinet6/in6_var.h>
24113 #endif
24114 #if HAVE_NETINET6_ND6_H
24115 # include <netinet6/nd6.h>
24116 #endif
24117
24118 "
24119 if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
24120
24121 cat >>confdefs.h <<_ACEOF
24122 #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
24123 _ACEOF
24124
24125
24126 fi
24127
24128
24129 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#ifdef SUNOS_5
24130 #define _XPG4_2
24131 #define __EXTENSIONS__
24132 #endif
24133 #include <stdio.h>
24134 #if STDC_HEADERS
24135 # include <stdlib.h>
24136 # include <stddef.h>
24137 #else
24138 # if HAVE_STDLIB_H
24139 #  include <stdlib.h>
24140 # endif
24141 #endif
24142 #if HAVE_SYS_TYPES_H
24143 # include <sys/types.h>
24144 #endif
24145 /* sys/conf.h depends on param.h on FBSD at least */
24146 #if HAVE_SYS_PARAM_H
24147 # include <sys/param.h>
24148 #endif
24149 /* Required for MAXSIG */
24150 #if HAVE_SIGNAL_H
24151 # include <signal.h>
24152 #endif
24153 #if HAVE_SYS_SOCKET_H
24154 # include <sys/socket.h>
24155 #endif
24156 #ifdef __APPLE__
24157 # define __APPLE_USE_RFC_3542
24158 #endif
24159 #if HAVE_NETINET_IN_H
24160 # include <netinet/in.h>
24161 #endif
24162 #ifdef TIME_WITH_SYS_TIME
24163 # include <sys/time.h>
24164 # include <time.h>
24165 #else
24166 # ifdef HAVE_SYS_TIME_H
24167 #  include <sys/time.h>
24168 # else
24169 #  include <time.h>
24170 # endif
24171 #endif /* TIME_WITH_SYS_TIME */
24172
24173 #if HAVE_NET_IF_H
24174 # include <net/if.h>
24175 #endif
24176
24177 #if HAVE_NET_IF_VAR_H
24178 # include <net/if_var.h>
24179 #endif
24180
24181 #if HAVE_SYS_UN_H
24182 # include <sys/un.h>
24183 #endif
24184 #if HAVE_NETINET_IN_SYSTM_H
24185 # include <netinet/in_systm.h>
24186 #endif
24187 #if HAVE_NETINET_IN_VAR_H
24188 # include <netinet/in_var.h>
24189 #endif
24190 #if HAVE_NET_IF_DL_H
24191 # include <net/if_dl.h>
24192 #endif
24193 #if HAVE_NET_NETOPT_H
24194 # include <net/netopt.h>
24195 #endif
24196 #if HAVE_NET_ROUTE_H
24197 # include <net/route.h>
24198 #endif
24199 #if HAVE_INET_ND_H
24200 # include <inet/nd.h>
24201 #endif
24202 #if HAVE_ARPA_INET_H
24203 # include <arpa/inet.h>
24204 #endif
24205 /* Required for IDRP */
24206 #if HAVE_NETINET_IP_ICMP_H
24207 # include <netinet/ip_icmp.h>
24208 #endif
24209
24210 #if HAVE_NETINET6_IN6_H
24211 #include <netinet6/in6.h>
24212 #endif
24213 #if HAVE_NETINET_IN6_VAR_H
24214 #include <netinet/in6_var.h>
24215 #endif
24216 #if HAVE_NETINET_ICMP6_H
24217 # include <netinet/icmp6.h>
24218 #endif
24219 #if HAVE_NETINET6_IN6_VAR_H
24220 # include <netinet6/in6_var.h>
24221 #endif
24222 #if HAVE_NETINET6_ND6_H
24223 # include <netinet6/nd6.h>
24224 #endif
24225
24226 "
24227 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
24228
24229 cat >>confdefs.h <<_ACEOF
24230 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
24231 _ACEOF
24232
24233
24234 fi
24235 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef SUNOS_5
24236 #define _XPG4_2
24237 #define __EXTENSIONS__
24238 #endif
24239 #include <stdio.h>
24240 #if STDC_HEADERS
24241 # include <stdlib.h>
24242 # include <stddef.h>
24243 #else
24244 # if HAVE_STDLIB_H
24245 #  include <stdlib.h>
24246 # endif
24247 #endif
24248 #if HAVE_SYS_TYPES_H
24249 # include <sys/types.h>
24250 #endif
24251 /* sys/conf.h depends on param.h on FBSD at least */
24252 #if HAVE_SYS_PARAM_H
24253 # include <sys/param.h>
24254 #endif
24255 /* Required for MAXSIG */
24256 #if HAVE_SIGNAL_H
24257 # include <signal.h>
24258 #endif
24259 #if HAVE_SYS_SOCKET_H
24260 # include <sys/socket.h>
24261 #endif
24262 #ifdef __APPLE__
24263 # define __APPLE_USE_RFC_3542
24264 #endif
24265 #if HAVE_NETINET_IN_H
24266 # include <netinet/in.h>
24267 #endif
24268 #ifdef TIME_WITH_SYS_TIME
24269 # include <sys/time.h>
24270 # include <time.h>
24271 #else
24272 # ifdef HAVE_SYS_TIME_H
24273 #  include <sys/time.h>
24274 # else
24275 #  include <time.h>
24276 # endif
24277 #endif /* TIME_WITH_SYS_TIME */
24278
24279 #if HAVE_NET_IF_H
24280 # include <net/if.h>
24281 #endif
24282
24283 #if HAVE_NET_IF_VAR_H
24284 # include <net/if_var.h>
24285 #endif
24286
24287 #if HAVE_SYS_UN_H
24288 # include <sys/un.h>
24289 #endif
24290 #if HAVE_NETINET_IN_SYSTM_H
24291 # include <netinet/in_systm.h>
24292 #endif
24293 #if HAVE_NETINET_IN_VAR_H
24294 # include <netinet/in_var.h>
24295 #endif
24296 #if HAVE_NET_IF_DL_H
24297 # include <net/if_dl.h>
24298 #endif
24299 #if HAVE_NET_NETOPT_H
24300 # include <net/netopt.h>
24301 #endif
24302 #if HAVE_NET_ROUTE_H
24303 # include <net/route.h>
24304 #endif
24305 #if HAVE_INET_ND_H
24306 # include <inet/nd.h>
24307 #endif
24308 #if HAVE_ARPA_INET_H
24309 # include <arpa/inet.h>
24310 #endif
24311 /* Required for IDRP */
24312 #if HAVE_NETINET_IP_ICMP_H
24313 # include <netinet/ip_icmp.h>
24314 #endif
24315
24316 #if HAVE_NETINET6_IN6_H
24317 #include <netinet6/in6.h>
24318 #endif
24319 #if HAVE_NETINET_IN6_VAR_H
24320 #include <netinet/in6_var.h>
24321 #endif
24322 #if HAVE_NETINET_ICMP6_H
24323 # include <netinet/icmp6.h>
24324 #endif
24325 #if HAVE_NETINET6_IN6_VAR_H
24326 # include <netinet6/in6_var.h>
24327 #endif
24328 #if HAVE_NETINET6_ND6_H
24329 # include <netinet6/nd6.h>
24330 #endif
24331
24332 "
24333 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
24334
24335 cat >>confdefs.h <<_ACEOF
24336 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
24337 _ACEOF
24338
24339
24340 fi
24341 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#ifdef SUNOS_5
24342 #define _XPG4_2
24343 #define __EXTENSIONS__
24344 #endif
24345 #include <stdio.h>
24346 #if STDC_HEADERS
24347 # include <stdlib.h>
24348 # include <stddef.h>
24349 #else
24350 # if HAVE_STDLIB_H
24351 #  include <stdlib.h>
24352 # endif
24353 #endif
24354 #if HAVE_SYS_TYPES_H
24355 # include <sys/types.h>
24356 #endif
24357 /* sys/conf.h depends on param.h on FBSD at least */
24358 #if HAVE_SYS_PARAM_H
24359 # include <sys/param.h>
24360 #endif
24361 /* Required for MAXSIG */
24362 #if HAVE_SIGNAL_H
24363 # include <signal.h>
24364 #endif
24365 #if HAVE_SYS_SOCKET_H
24366 # include <sys/socket.h>
24367 #endif
24368 #ifdef __APPLE__
24369 # define __APPLE_USE_RFC_3542
24370 #endif
24371 #if HAVE_NETINET_IN_H
24372 # include <netinet/in.h>
24373 #endif
24374 #ifdef TIME_WITH_SYS_TIME
24375 # include <sys/time.h>
24376 # include <time.h>
24377 #else
24378 # ifdef HAVE_SYS_TIME_H
24379 #  include <sys/time.h>
24380 # else
24381 #  include <time.h>
24382 # endif
24383 #endif /* TIME_WITH_SYS_TIME */
24384
24385 #if HAVE_NET_IF_H
24386 # include <net/if.h>
24387 #endif
24388
24389 #if HAVE_NET_IF_VAR_H
24390 # include <net/if_var.h>
24391 #endif
24392
24393 #if HAVE_SYS_UN_H
24394 # include <sys/un.h>
24395 #endif
24396 #if HAVE_NETINET_IN_SYSTM_H
24397 # include <netinet/in_systm.h>
24398 #endif
24399 #if HAVE_NETINET_IN_VAR_H
24400 # include <netinet/in_var.h>
24401 #endif
24402 #if HAVE_NET_IF_DL_H
24403 # include <net/if_dl.h>
24404 #endif
24405 #if HAVE_NET_NETOPT_H
24406 # include <net/netopt.h>
24407 #endif
24408 #if HAVE_NET_ROUTE_H
24409 # include <net/route.h>
24410 #endif
24411 #if HAVE_INET_ND_H
24412 # include <inet/nd.h>
24413 #endif
24414 #if HAVE_ARPA_INET_H
24415 # include <arpa/inet.h>
24416 #endif
24417 /* Required for IDRP */
24418 #if HAVE_NETINET_IP_ICMP_H
24419 # include <netinet/ip_icmp.h>
24420 #endif
24421
24422 #if HAVE_NETINET6_IN6_H
24423 #include <netinet6/in6.h>
24424 #endif
24425 #if HAVE_NETINET_IN6_VAR_H
24426 #include <netinet/in6_var.h>
24427 #endif
24428 #if HAVE_NETINET_ICMP6_H
24429 # include <netinet/icmp6.h>
24430 #endif
24431 #if HAVE_NETINET6_IN6_VAR_H
24432 # include <netinet6/in6_var.h>
24433 #endif
24434 #if HAVE_NETINET6_ND6_H
24435 # include <netinet6/nd6.h>
24436 #endif
24437
24438 "
24439 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
24440
24441 cat >>confdefs.h <<_ACEOF
24442 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
24443 _ACEOF
24444
24445
24446 fi
24447 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef SUNOS_5
24448 #define _XPG4_2
24449 #define __EXTENSIONS__
24450 #endif
24451 #include <stdio.h>
24452 #if STDC_HEADERS
24453 # include <stdlib.h>
24454 # include <stddef.h>
24455 #else
24456 # if HAVE_STDLIB_H
24457 #  include <stdlib.h>
24458 # endif
24459 #endif
24460 #if HAVE_SYS_TYPES_H
24461 # include <sys/types.h>
24462 #endif
24463 /* sys/conf.h depends on param.h on FBSD at least */
24464 #if HAVE_SYS_PARAM_H
24465 # include <sys/param.h>
24466 #endif
24467 /* Required for MAXSIG */
24468 #if HAVE_SIGNAL_H
24469 # include <signal.h>
24470 #endif
24471 #if HAVE_SYS_SOCKET_H
24472 # include <sys/socket.h>
24473 #endif
24474 #ifdef __APPLE__
24475 # define __APPLE_USE_RFC_3542
24476 #endif
24477 #if HAVE_NETINET_IN_H
24478 # include <netinet/in.h>
24479 #endif
24480 #ifdef TIME_WITH_SYS_TIME
24481 # include <sys/time.h>
24482 # include <time.h>
24483 #else
24484 # ifdef HAVE_SYS_TIME_H
24485 #  include <sys/time.h>
24486 # else
24487 #  include <time.h>
24488 # endif
24489 #endif /* TIME_WITH_SYS_TIME */
24490
24491 #if HAVE_NET_IF_H
24492 # include <net/if.h>
24493 #endif
24494
24495 #if HAVE_NET_IF_VAR_H
24496 # include <net/if_var.h>
24497 #endif
24498
24499 #if HAVE_SYS_UN_H
24500 # include <sys/un.h>
24501 #endif
24502 #if HAVE_NETINET_IN_SYSTM_H
24503 # include <netinet/in_systm.h>
24504 #endif
24505 #if HAVE_NETINET_IN_VAR_H
24506 # include <netinet/in_var.h>
24507 #endif
24508 #if HAVE_NET_IF_DL_H
24509 # include <net/if_dl.h>
24510 #endif
24511 #if HAVE_NET_NETOPT_H
24512 # include <net/netopt.h>
24513 #endif
24514 #if HAVE_NET_ROUTE_H
24515 # include <net/route.h>
24516 #endif
24517 #if HAVE_INET_ND_H
24518 # include <inet/nd.h>
24519 #endif
24520 #if HAVE_ARPA_INET_H
24521 # include <arpa/inet.h>
24522 #endif
24523 /* Required for IDRP */
24524 #if HAVE_NETINET_IP_ICMP_H
24525 # include <netinet/ip_icmp.h>
24526 #endif
24527
24528 #if HAVE_NETINET6_IN6_H
24529 #include <netinet6/in6.h>
24530 #endif
24531 #if HAVE_NETINET_IN6_VAR_H
24532 #include <netinet/in6_var.h>
24533 #endif
24534 #if HAVE_NETINET_ICMP6_H
24535 # include <netinet/icmp6.h>
24536 #endif
24537 #if HAVE_NETINET6_IN6_VAR_H
24538 # include <netinet6/in6_var.h>
24539 #endif
24540 #if HAVE_NETINET6_ND6_H
24541 # include <netinet6/nd6.h>
24542 #endif
24543
24544 "
24545 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
24546
24547 cat >>confdefs.h <<_ACEOF
24548 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
24549 _ACEOF
24550
24551
24552 fi
24553 ac_fn_c_check_member "$LINENO" "struct sockaddr_dl" "sdl_len" "ac_cv_member_struct_sockaddr_dl_sdl_len" "#ifdef SUNOS_5
24554 #define _XPG4_2
24555 #define __EXTENSIONS__
24556 #endif
24557 #include <stdio.h>
24558 #if STDC_HEADERS
24559 # include <stdlib.h>
24560 # include <stddef.h>
24561 #else
24562 # if HAVE_STDLIB_H
24563 #  include <stdlib.h>
24564 # endif
24565 #endif
24566 #if HAVE_SYS_TYPES_H
24567 # include <sys/types.h>
24568 #endif
24569 /* sys/conf.h depends on param.h on FBSD at least */
24570 #if HAVE_SYS_PARAM_H
24571 # include <sys/param.h>
24572 #endif
24573 /* Required for MAXSIG */
24574 #if HAVE_SIGNAL_H
24575 # include <signal.h>
24576 #endif
24577 #if HAVE_SYS_SOCKET_H
24578 # include <sys/socket.h>
24579 #endif
24580 #ifdef __APPLE__
24581 # define __APPLE_USE_RFC_3542
24582 #endif
24583 #if HAVE_NETINET_IN_H
24584 # include <netinet/in.h>
24585 #endif
24586 #ifdef TIME_WITH_SYS_TIME
24587 # include <sys/time.h>
24588 # include <time.h>
24589 #else
24590 # ifdef HAVE_SYS_TIME_H
24591 #  include <sys/time.h>
24592 # else
24593 #  include <time.h>
24594 # endif
24595 #endif /* TIME_WITH_SYS_TIME */
24596
24597 #if HAVE_NET_IF_H
24598 # include <net/if.h>
24599 #endif
24600
24601 #if HAVE_NET_IF_VAR_H
24602 # include <net/if_var.h>
24603 #endif
24604
24605 #if HAVE_SYS_UN_H
24606 # include <sys/un.h>
24607 #endif
24608 #if HAVE_NETINET_IN_SYSTM_H
24609 # include <netinet/in_systm.h>
24610 #endif
24611 #if HAVE_NETINET_IN_VAR_H
24612 # include <netinet/in_var.h>
24613 #endif
24614 #if HAVE_NET_IF_DL_H
24615 # include <net/if_dl.h>
24616 #endif
24617 #if HAVE_NET_NETOPT_H
24618 # include <net/netopt.h>
24619 #endif
24620 #if HAVE_NET_ROUTE_H
24621 # include <net/route.h>
24622 #endif
24623 #if HAVE_INET_ND_H
24624 # include <inet/nd.h>
24625 #endif
24626 #if HAVE_ARPA_INET_H
24627 # include <arpa/inet.h>
24628 #endif
24629 /* Required for IDRP */
24630 #if HAVE_NETINET_IP_ICMP_H
24631 # include <netinet/ip_icmp.h>
24632 #endif
24633
24634 #if HAVE_NETINET6_IN6_H
24635 #include <netinet6/in6.h>
24636 #endif
24637 #if HAVE_NETINET_IN6_VAR_H
24638 #include <netinet/in6_var.h>
24639 #endif
24640 #if HAVE_NETINET_ICMP6_H
24641 # include <netinet/icmp6.h>
24642 #endif
24643 #if HAVE_NETINET6_IN6_VAR_H
24644 # include <netinet6/in6_var.h>
24645 #endif
24646 #if HAVE_NETINET6_ND6_H
24647 # include <netinet6/nd6.h>
24648 #endif
24649
24650 "
24651 if test "x$ac_cv_member_struct_sockaddr_dl_sdl_len" = xyes; then :
24652
24653 cat >>confdefs.h <<_ACEOF
24654 #define HAVE_STRUCT_SOCKADDR_DL_SDL_LEN 1
24655 _ACEOF
24656
24657
24658 fi
24659 ac_fn_c_check_member "$LINENO" "struct if6_aliasreq" "ifra_lifetime" "ac_cv_member_struct_if6_aliasreq_ifra_lifetime" "#ifdef SUNOS_5
24660 #define _XPG4_2
24661 #define __EXTENSIONS__
24662 #endif
24663 #include <stdio.h>
24664 #if STDC_HEADERS
24665 # include <stdlib.h>
24666 # include <stddef.h>
24667 #else
24668 # if HAVE_STDLIB_H
24669 #  include <stdlib.h>
24670 # endif
24671 #endif
24672 #if HAVE_SYS_TYPES_H
24673 # include <sys/types.h>
24674 #endif
24675 /* sys/conf.h depends on param.h on FBSD at least */
24676 #if HAVE_SYS_PARAM_H
24677 # include <sys/param.h>
24678 #endif
24679 /* Required for MAXSIG */
24680 #if HAVE_SIGNAL_H
24681 # include <signal.h>
24682 #endif
24683 #if HAVE_SYS_SOCKET_H
24684 # include <sys/socket.h>
24685 #endif
24686 #ifdef __APPLE__
24687 # define __APPLE_USE_RFC_3542
24688 #endif
24689 #if HAVE_NETINET_IN_H
24690 # include <netinet/in.h>
24691 #endif
24692 #ifdef TIME_WITH_SYS_TIME
24693 # include <sys/time.h>
24694 # include <time.h>
24695 #else
24696 # ifdef HAVE_SYS_TIME_H
24697 #  include <sys/time.h>
24698 # else
24699 #  include <time.h>
24700 # endif
24701 #endif /* TIME_WITH_SYS_TIME */
24702
24703 #if HAVE_NET_IF_H
24704 # include <net/if.h>
24705 #endif
24706
24707 #if HAVE_NET_IF_VAR_H
24708 # include <net/if_var.h>
24709 #endif
24710
24711 #if HAVE_SYS_UN_H
24712 # include <sys/un.h>
24713 #endif
24714 #if HAVE_NETINET_IN_SYSTM_H
24715 # include <netinet/in_systm.h>
24716 #endif
24717 #if HAVE_NETINET_IN_VAR_H
24718 # include <netinet/in_var.h>
24719 #endif
24720 #if HAVE_NET_IF_DL_H
24721 # include <net/if_dl.h>
24722 #endif
24723 #if HAVE_NET_NETOPT_H
24724 # include <net/netopt.h>
24725 #endif
24726 #if HAVE_NET_ROUTE_H
24727 # include <net/route.h>
24728 #endif
24729 #if HAVE_INET_ND_H
24730 # include <inet/nd.h>
24731 #endif
24732 #if HAVE_ARPA_INET_H
24733 # include <arpa/inet.h>
24734 #endif
24735 /* Required for IDRP */
24736 #if HAVE_NETINET_IP_ICMP_H
24737 # include <netinet/ip_icmp.h>
24738 #endif
24739
24740 #if HAVE_NETINET6_IN6_H
24741 #include <netinet6/in6.h>
24742 #endif
24743 #if HAVE_NETINET_IN6_VAR_H
24744 #include <netinet/in6_var.h>
24745 #endif
24746 #if HAVE_NETINET_ICMP6_H
24747 # include <netinet/icmp6.h>
24748 #endif
24749 #if HAVE_NETINET6_IN6_VAR_H
24750 # include <netinet6/in6_var.h>
24751 #endif
24752 #if HAVE_NETINET6_ND6_H
24753 # include <netinet6/nd6.h>
24754 #endif
24755
24756 "
24757 if test "x$ac_cv_member_struct_if6_aliasreq_ifra_lifetime" = xyes; then :
24758
24759 cat >>confdefs.h <<_ACEOF
24760 #define HAVE_STRUCT_IF6_ALIASREQ_IFRA_LIFETIME 1
24761 _ACEOF
24762
24763
24764 fi
24765 ac_fn_c_check_member "$LINENO" "struct nd_opt_adv_interval" "nd_opt_ai_type" "ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" "#ifdef SUNOS_5
24766 #define _XPG4_2
24767 #define __EXTENSIONS__
24768 #endif
24769 #include <stdio.h>
24770 #if STDC_HEADERS
24771 # include <stdlib.h>
24772 # include <stddef.h>
24773 #else
24774 # if HAVE_STDLIB_H
24775 #  include <stdlib.h>
24776 # endif
24777 #endif
24778 #if HAVE_SYS_TYPES_H
24779 # include <sys/types.h>
24780 #endif
24781 /* sys/conf.h depends on param.h on FBSD at least */
24782 #if HAVE_SYS_PARAM_H
24783 # include <sys/param.h>
24784 #endif
24785 /* Required for MAXSIG */
24786 #if HAVE_SIGNAL_H
24787 # include <signal.h>
24788 #endif
24789 #if HAVE_SYS_SOCKET_H
24790 # include <sys/socket.h>
24791 #endif
24792 #ifdef __APPLE__
24793 # define __APPLE_USE_RFC_3542
24794 #endif
24795 #if HAVE_NETINET_IN_H
24796 # include <netinet/in.h>
24797 #endif
24798 #ifdef TIME_WITH_SYS_TIME
24799 # include <sys/time.h>
24800 # include <time.h>
24801 #else
24802 # ifdef HAVE_SYS_TIME_H
24803 #  include <sys/time.h>
24804 # else
24805 #  include <time.h>
24806 # endif
24807 #endif /* TIME_WITH_SYS_TIME */
24808
24809 #if HAVE_NET_IF_H
24810 # include <net/if.h>
24811 #endif
24812
24813 #if HAVE_NET_IF_VAR_H
24814 # include <net/if_var.h>
24815 #endif
24816
24817 #if HAVE_SYS_UN_H
24818 # include <sys/un.h>
24819 #endif
24820 #if HAVE_NETINET_IN_SYSTM_H
24821 # include <netinet/in_systm.h>
24822 #endif
24823 #if HAVE_NETINET_IN_VAR_H
24824 # include <netinet/in_var.h>
24825 #endif
24826 #if HAVE_NET_IF_DL_H
24827 # include <net/if_dl.h>
24828 #endif
24829 #if HAVE_NET_NETOPT_H
24830 # include <net/netopt.h>
24831 #endif
24832 #if HAVE_NET_ROUTE_H
24833 # include <net/route.h>
24834 #endif
24835 #if HAVE_INET_ND_H
24836 # include <inet/nd.h>
24837 #endif
24838 #if HAVE_ARPA_INET_H
24839 # include <arpa/inet.h>
24840 #endif
24841 /* Required for IDRP */
24842 #if HAVE_NETINET_IP_ICMP_H
24843 # include <netinet/ip_icmp.h>
24844 #endif
24845
24846 #if HAVE_NETINET6_IN6_H
24847 #include <netinet6/in6.h>
24848 #endif
24849 #if HAVE_NETINET_IN6_VAR_H
24850 #include <netinet/in6_var.h>
24851 #endif
24852 #if HAVE_NETINET_ICMP6_H
24853 # include <netinet/icmp6.h>
24854 #endif
24855 #if HAVE_NETINET6_IN6_VAR_H
24856 # include <netinet6/in6_var.h>
24857 #endif
24858 #if HAVE_NETINET6_ND6_H
24859 # include <netinet6/nd6.h>
24860 #endif
24861
24862 "
24863 if test "x$ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" = xyes; then :
24864
24865 cat >>confdefs.h <<_ACEOF
24866 #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL_ND_OPT_AI_TYPE 1
24867 _ACEOF
24868
24869
24870 fi
24871
24872
24873 ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "#ifdef SUNOS_5
24874 #define _XPG4_2
24875 #define __EXTENSIONS__
24876 #endif
24877 #include <stdio.h>
24878 #if STDC_HEADERS
24879 # include <stdlib.h>
24880 # include <stddef.h>
24881 #else
24882 # if HAVE_STDLIB_H
24883 #  include <stdlib.h>
24884 # endif
24885 #endif
24886 #if HAVE_SYS_TYPES_H
24887 # include <sys/types.h>
24888 #endif
24889 /* sys/conf.h depends on param.h on FBSD at least */
24890 #if HAVE_SYS_PARAM_H
24891 # include <sys/param.h>
24892 #endif
24893 /* Required for MAXSIG */
24894 #if HAVE_SIGNAL_H
24895 # include <signal.h>
24896 #endif
24897 #if HAVE_SYS_SOCKET_H
24898 # include <sys/socket.h>
24899 #endif
24900 #ifdef __APPLE__
24901 # define __APPLE_USE_RFC_3542
24902 #endif
24903 #if HAVE_NETINET_IN_H
24904 # include <netinet/in.h>
24905 #endif
24906 #ifdef TIME_WITH_SYS_TIME
24907 # include <sys/time.h>
24908 # include <time.h>
24909 #else
24910 # ifdef HAVE_SYS_TIME_H
24911 #  include <sys/time.h>
24912 # else
24913 #  include <time.h>
24914 # endif
24915 #endif /* TIME_WITH_SYS_TIME */
24916
24917 #if HAVE_NET_IF_H
24918 # include <net/if.h>
24919 #endif
24920
24921 #if HAVE_NET_IF_VAR_H
24922 # include <net/if_var.h>
24923 #endif
24924
24925 #if HAVE_SYS_UN_H
24926 # include <sys/un.h>
24927 #endif
24928 #if HAVE_NETINET_IN_SYSTM_H
24929 # include <netinet/in_systm.h>
24930 #endif
24931 #if HAVE_NETINET_IN_VAR_H
24932 # include <netinet/in_var.h>
24933 #endif
24934 #if HAVE_NET_IF_DL_H
24935 # include <net/if_dl.h>
24936 #endif
24937 #if HAVE_NET_NETOPT_H
24938 # include <net/netopt.h>
24939 #endif
24940 #if HAVE_NET_ROUTE_H
24941 # include <net/route.h>
24942 #endif
24943 #if HAVE_INET_ND_H
24944 # include <inet/nd.h>
24945 #endif
24946 #if HAVE_ARPA_INET_H
24947 # include <arpa/inet.h>
24948 #endif
24949 /* Required for IDRP */
24950 #if HAVE_NETINET_IP_ICMP_H
24951 # include <netinet/ip_icmp.h>
24952 #endif
24953
24954 #if HAVE_NETINET6_IN6_H
24955 #include <netinet6/in6.h>
24956 #endif
24957 #if HAVE_NETINET_IN6_VAR_H
24958 #include <netinet/in6_var.h>
24959 #endif
24960 #if HAVE_NETINET_ICMP6_H
24961 # include <netinet/icmp6.h>
24962 #endif
24963 #if HAVE_NETINET6_IN6_VAR_H
24964 # include <netinet6/in6_var.h>
24965 #endif
24966 #if HAVE_NETINET6_ND6_H
24967 # include <netinet6/nd6.h>
24968 #endif
24969
24970 "
24971 if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
24972
24973 cat >>confdefs.h <<_ACEOF
24974 #define HAVE_STRUCT_IN_PKTINFO 1
24975 _ACEOF
24976
24977 ac_fn_c_check_type "$LINENO" "struct icmphdr" "ac_cv_type_struct_icmphdr" "#ifdef SUNOS_5
24978 #define _XPG4_2
24979 #define __EXTENSIONS__
24980 #endif
24981 #include <stdio.h>
24982 #if STDC_HEADERS
24983 # include <stdlib.h>
24984 # include <stddef.h>
24985 #else
24986 # if HAVE_STDLIB_H
24987 #  include <stdlib.h>
24988 # endif
24989 #endif
24990 #if HAVE_SYS_TYPES_H
24991 # include <sys/types.h>
24992 #endif
24993 /* sys/conf.h depends on param.h on FBSD at least */
24994 #if HAVE_SYS_PARAM_H
24995 # include <sys/param.h>
24996 #endif
24997 /* Required for MAXSIG */
24998 #if HAVE_SIGNAL_H
24999 # include <signal.h>
25000 #endif
25001 #if HAVE_SYS_SOCKET_H
25002 # include <sys/socket.h>
25003 #endif
25004 #ifdef __APPLE__
25005 # define __APPLE_USE_RFC_3542
25006 #endif
25007 #if HAVE_NETINET_IN_H
25008 # include <netinet/in.h>
25009 #endif
25010 #ifdef TIME_WITH_SYS_TIME
25011 # include <sys/time.h>
25012 # include <time.h>
25013 #else
25014 # ifdef HAVE_SYS_TIME_H
25015 #  include <sys/time.h>
25016 # else
25017 #  include <time.h>
25018 # endif
25019 #endif /* TIME_WITH_SYS_TIME */
25020
25021 #if HAVE_NET_IF_H
25022 # include <net/if.h>
25023 #endif
25024
25025 #if HAVE_NET_IF_VAR_H
25026 # include <net/if_var.h>
25027 #endif
25028
25029 #if HAVE_SYS_UN_H
25030 # include <sys/un.h>
25031 #endif
25032 #if HAVE_NETINET_IN_SYSTM_H
25033 # include <netinet/in_systm.h>
25034 #endif
25035 #if HAVE_NETINET_IN_VAR_H
25036 # include <netinet/in_var.h>
25037 #endif
25038 #if HAVE_NET_IF_DL_H
25039 # include <net/if_dl.h>
25040 #endif
25041 #if HAVE_NET_NETOPT_H
25042 # include <net/netopt.h>
25043 #endif
25044 #if HAVE_NET_ROUTE_H
25045 # include <net/route.h>
25046 #endif
25047 #if HAVE_INET_ND_H
25048 # include <inet/nd.h>
25049 #endif
25050 #if HAVE_ARPA_INET_H
25051 # include <arpa/inet.h>
25052 #endif
25053 /* Required for IDRP */
25054 #if HAVE_NETINET_IP_ICMP_H
25055 # include <netinet/ip_icmp.h>
25056 #endif
25057
25058 #if HAVE_NETINET6_IN6_H
25059 #include <netinet6/in6.h>
25060 #endif
25061 #if HAVE_NETINET_IN6_VAR_H
25062 #include <netinet/in6_var.h>
25063 #endif
25064 #if HAVE_NETINET_ICMP6_H
25065 # include <netinet/icmp6.h>
25066 #endif
25067 #if HAVE_NETINET6_IN6_VAR_H
25068 # include <netinet6/in6_var.h>
25069 #endif
25070 #if HAVE_NETINET6_ND6_H
25071 # include <netinet6/nd6.h>
25072 #endif
25073
25074 "
25075 if test "x$ac_cv_type_struct_icmphdr" = xyes; then :
25076
25077 cat >>confdefs.h <<_ACEOF
25078 #define HAVE_STRUCT_ICMPHDR 1
25079 _ACEOF
25080
25081 if test "${enable_irdp}" != "no"; then
25082
25083 $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
25084
25085     fi
25086 else
25087   if test "${enable_irdp}" = "yes"; then
25088       as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
25089     fi
25090 fi
25091
25092 else
25093   if test "${enable_irdp}" = "yes"; then
25094     as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
25095   fi
25096 fi
25097
25098
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
25100 $as_echo_n "checking for IP_PKTINFO... " >&6; }
25101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25102 /* end confdefs.h.  */
25103 #include <netdb.h>
25104 int
25105 main ()
25106 {
25107
25108   int opt = IP_PKTINFO;
25109
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 if ac_fn_c_try_compile "$LINENO"; then :
25115
25116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25117 $as_echo "yes" >&6; }
25118
25119 $as_echo "#define HAVE_IP_PKTINFO 1" >>confdefs.h
25120
25121
25122 else
25123
25124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25125 $as_echo "no" >&6; }
25126
25127 fi
25128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_RECVDSTADDR" >&5
25131 $as_echo_n "checking for IP_RECVDSTADDR... " >&6; }
25132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25133 /* end confdefs.h.  */
25134 #include <netinet/in.h>
25135 int
25136 main ()
25137 {
25138
25139   int opt = IP_RECVDSTADDR;
25140
25141   ;
25142   return 0;
25143 }
25144 _ACEOF
25145 if ac_fn_c_try_compile "$LINENO"; then :
25146
25147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25148 $as_echo "yes" >&6; }
25149
25150 $as_echo "#define HAVE_IP_RECVDSTADDR 1" >>confdefs.h
25151
25152
25153 else
25154
25155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25156 $as_echo "no" >&6; }
25157
25158 fi
25159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25160
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_RECVIF" >&5
25162 $as_echo_n "checking for IP_RECVIF... " >&6; }
25163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h.  */
25165 #include <netinet/in.h>
25166 int
25167 main ()
25168 {
25169
25170   int opt = IP_RECVIF;
25171
25172   ;
25173   return 0;
25174 }
25175 _ACEOF
25176 if ac_fn_c_try_compile "$LINENO"; then :
25177
25178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25179 $as_echo "yes" >&6; }
25180
25181 $as_echo "#define HAVE_IP_RECVIF 1" >>confdefs.h
25182
25183
25184 else
25185
25186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25187 $as_echo "no" >&6; }
25188
25189 fi
25190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191
25192 if test "${enable_rusage}" != "no"; then
25193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrusage is available" >&5
25194 $as_echo_n "checking whether getrusage is available... " >&6; }
25195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25196 /* end confdefs.h.  */
25197 #include <sys/resource.h>
25198 int
25199 main ()
25200 {
25201 struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
25202   ;
25203   return 0;
25204 }
25205 _ACEOF
25206 if ac_fn_c_try_compile "$LINENO"; then :
25207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25208 $as_echo "yes" >&6; }
25209
25210 $as_echo "#define HAVE_RUSAGE /**/" >>confdefs.h
25211
25212 else
25213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25214 $as_echo "no" >&6; }
25215 fi
25216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25217 fi
25218
25219 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#ifdef SUNOS_5
25220 #define _XPG4_2
25221 #define __EXTENSIONS__
25222 #endif
25223 #include <stdio.h>
25224 #if STDC_HEADERS
25225 # include <stdlib.h>
25226 # include <stddef.h>
25227 #else
25228 # if HAVE_STDLIB_H
25229 #  include <stdlib.h>
25230 # endif
25231 #endif
25232 #if HAVE_SYS_TYPES_H
25233 # include <sys/types.h>
25234 #endif
25235 /* sys/conf.h depends on param.h on FBSD at least */
25236 #if HAVE_SYS_PARAM_H
25237 # include <sys/param.h>
25238 #endif
25239 /* Required for MAXSIG */
25240 #if HAVE_SIGNAL_H
25241 # include <signal.h>
25242 #endif
25243 #if HAVE_SYS_SOCKET_H
25244 # include <sys/socket.h>
25245 #endif
25246 #ifdef __APPLE__
25247 # define __APPLE_USE_RFC_3542
25248 #endif
25249 #if HAVE_NETINET_IN_H
25250 # include <netinet/in.h>
25251 #endif
25252 #ifdef TIME_WITH_SYS_TIME
25253 # include <sys/time.h>
25254 # include <time.h>
25255 #else
25256 # ifdef HAVE_SYS_TIME_H
25257 #  include <sys/time.h>
25258 # else
25259 #  include <time.h>
25260 # endif
25261 #endif /* TIME_WITH_SYS_TIME */
25262
25263 #if HAVE_NET_IF_H
25264 # include <net/if.h>
25265 #endif
25266
25267 #if HAVE_NET_IF_VAR_H
25268 # include <net/if_var.h>
25269 #endif
25270
25271 #if HAVE_SYS_UN_H
25272 # include <sys/un.h>
25273 #endif
25274 #if HAVE_NETINET_IN_SYSTM_H
25275 # include <netinet/in_systm.h>
25276 #endif
25277 #if HAVE_NETINET_IN_VAR_H
25278 # include <netinet/in_var.h>
25279 #endif
25280 #if HAVE_NET_IF_DL_H
25281 # include <net/if_dl.h>
25282 #endif
25283 #if HAVE_NET_NETOPT_H
25284 # include <net/netopt.h>
25285 #endif
25286 #if HAVE_NET_ROUTE_H
25287 # include <net/route.h>
25288 #endif
25289 #if HAVE_INET_ND_H
25290 # include <inet/nd.h>
25291 #endif
25292 #if HAVE_ARPA_INET_H
25293 # include <arpa/inet.h>
25294 #endif
25295 /* Required for IDRP */
25296 #if HAVE_NETINET_IP_ICMP_H
25297 # include <netinet/ip_icmp.h>
25298 #endif
25299
25300 #if HAVE_NETINET6_IN6_H
25301 #include <netinet6/in6.h>
25302 #endif
25303 #if HAVE_NETINET_IN6_VAR_H
25304 #include <netinet/in6_var.h>
25305 #endif
25306 #if HAVE_NETINET_ICMP6_H
25307 # include <netinet/icmp6.h>
25308 #endif
25309 #if HAVE_NETINET6_IN6_VAR_H
25310 # include <netinet6/in6_var.h>
25311 #endif
25312 #if HAVE_NETINET6_ND6_H
25313 # include <netinet6/nd6.h>
25314 #endif
25315
25316 "
25317 if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
25318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25319 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25320 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
25321   $as_echo_n "(cached) " >&6
25322 else
25323   ac_check_lib_save_LIBS=$LIBS
25324 LIBS="-lrt  $LIBS"
25325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25326 /* end confdefs.h.  */
25327
25328 /* Override any GCC internal prototype to avoid an error.
25329    Use char because int might match the return type of a GCC
25330    builtin and then its argument prototype would still apply.  */
25331 #ifdef __cplusplus
25332 extern "C"
25333 #endif
25334 char clock_gettime ();
25335 int
25336 main ()
25337 {
25338 return clock_gettime ();
25339   ;
25340   return 0;
25341 }
25342 _ACEOF
25343 if ac_fn_c_try_link "$LINENO"; then :
25344   ac_cv_lib_rt_clock_gettime=yes
25345 else
25346   ac_cv_lib_rt_clock_gettime=no
25347 fi
25348 rm -f core conftest.err conftest.$ac_objext \
25349     conftest$ac_exeext conftest.$ac_ext
25350 LIBS=$ac_check_lib_save_LIBS
25351 fi
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25353 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25354 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
25355   LIBS="$LIBS -lrt"
25356 fi
25357
25358
25359 $as_echo "#define HAVE_CLOCK_MONOTONIC /**/" >>confdefs.h
25360
25361
25362 else
25363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25364 $as_echo "no" >&6; }
25365 fi
25366
25367
25368 if test "${enable_capabilities}" != "no"; then
25369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prctl PR_SET_KEEPCAPS is available" >&5
25370 $as_echo_n "checking whether prctl PR_SET_KEEPCAPS is available... " >&6; }
25371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h.  */
25373 #include <sys/prctl.h>
25374 int
25375 main ()
25376 {
25377 prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
25378   ;
25379   return 0;
25380 }
25381 _ACEOF
25382 if ac_fn_c_try_compile "$LINENO"; then :
25383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25384 $as_echo "yes" >&6; }
25385
25386 $as_echo "#define HAVE_PR_SET_KEEPCAPS /**/" >>confdefs.h
25387
25388      quagga_ac_keepcaps="yes"
25389 else
25390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25391 $as_echo "no" >&6; }
25392
25393 fi
25394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395   if test x"${quagga_ac_keepcaps}" = x"yes"; then
25396     for ac_header in sys/capability.h
25397 do :
25398   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
25399 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
25400   cat >>confdefs.h <<_ACEOF
25401 #define HAVE_SYS_CAPABILITY_H 1
25402 _ACEOF
25403
25404 fi
25405
25406 done
25407
25408   fi
25409   if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
25410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
25411 $as_echo_n "checking for cap_init in -lcap... " >&6; }
25412 if ${ac_cv_lib_cap_cap_init+:} false; then :
25413   $as_echo_n "(cached) " >&6
25414 else
25415   ac_check_lib_save_LIBS=$LIBS
25416 LIBS="-lcap  $LIBS"
25417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25418 /* end confdefs.h.  */
25419
25420 /* Override any GCC internal prototype to avoid an error.
25421    Use char because int might match the return type of a GCC
25422    builtin and then its argument prototype would still apply.  */
25423 #ifdef __cplusplus
25424 extern "C"
25425 #endif
25426 char cap_init ();
25427 int
25428 main ()
25429 {
25430 return cap_init ();
25431   ;
25432   return 0;
25433 }
25434 _ACEOF
25435 if ac_fn_c_try_link "$LINENO"; then :
25436   ac_cv_lib_cap_cap_init=yes
25437 else
25438   ac_cv_lib_cap_cap_init=no
25439 fi
25440 rm -f core conftest.err conftest.$ac_objext \
25441     conftest$ac_exeext conftest.$ac_ext
25442 LIBS=$ac_check_lib_save_LIBS
25443 fi
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
25445 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
25446 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
25447
25448 $as_echo "#define HAVE_LCAPS 1" >>confdefs.h
25449
25450        LIBCAP="-lcap"
25451        quagga_ac_lcaps="yes"
25452
25453 fi
25454
25455   else
25456     for ac_header in priv.h
25457 do :
25458   ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
25459 if test "x$ac_cv_header_priv_h" = xyes; then :
25460   cat >>confdefs.h <<_ACEOF
25461 #define HAVE_PRIV_H 1
25462 _ACEOF
25463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris style privileges are available" >&5
25464 $as_echo_n "checking Solaris style privileges are available... " >&6; }
25465       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h.  */
25467 #include <priv.h>
25468 int
25469 main ()
25470 {
25471 getpflags(PRIV_AWARE);
25472   ;
25473   return 0;
25474 }
25475 _ACEOF
25476 if ac_fn_c_try_compile "$LINENO"; then :
25477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25478 $as_echo "yes" >&6; }
25479
25480 $as_echo "#define HAVE_SOLARIS_CAPABILITIES 1" >>confdefs.h
25481
25482            quagga_ac_scaps="yes"
25483 else
25484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25485 $as_echo "no" >&6; }
25486
25487 fi
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489
25490
25491 fi
25492
25493 done
25494
25495   fi
25496   if test x"${quagga_ac_scaps}" = x"yes" \
25497        -o x"${quagga_ac_lcaps}" = x"yes"; then
25498
25499 $as_echo "#define HAVE_CAPABILITIES 1" >>confdefs.h
25500
25501   fi
25502 fi
25503
25504
25505
25506   # starting point: no aliasing scheme yet...
25507   ax_sys_weak_alias=no
25508
25509   # Figure out what kind of aliasing may be supported...
25510    # Test whether compiler accepts __attribute__ form of weak aliasing
25511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts function __attribute__((weak,alias()))" >&5
25512 $as_echo_n "checking whether $CC accepts function __attribute__((weak,alias()))... " >&6; }
25513 if ${ax_cv_sys_weak_alias_attribute+:} false; then :
25514   $as_echo_n "(cached) " >&6
25515 else
25516
25517     # We add -Werror if it's gcc to force an error exit if the weak attribute
25518     # isn't understood
25519     if test $GCC = yes; then :
25520
25521       save_CFLAGS=$CFLAGS
25522       CFLAGS=-Werror
25523 fi
25524
25525     # Try linking with a weak alias...
25526     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25527 /* end confdefs.h.  */
25528
25529
25530 void __weakf(int c) {}
25531 void weakf(int c) __attribute__((weak, alias("__weakf")));
25532 int
25533 main ()
25534 {
25535 weakf(0)
25536   ;
25537   return 0;
25538 }
25539 _ACEOF
25540 if ac_fn_c_try_link "$LINENO"; then :
25541   ax_cv_sys_weak_alias_attribute=yes
25542 else
25543   ax_cv_sys_weak_alias_attribute=no
25544 fi
25545 rm -f core conftest.err conftest.$ac_objext \
25546     conftest$ac_exeext conftest.$ac_ext
25547
25548     # Restore original CFLAGS
25549     if test $GCC = yes; then :
25550
25551       CFLAGS=$save_CFLAGS
25552 fi
25553
25554 fi
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_attribute" >&5
25556 $as_echo "$ax_cv_sys_weak_alias_attribute" >&6; }
25557
25558   # What was the result of the test?
25559   if test $ax_cv_sys_weak_alias_attribute = yes; then :
25560
25561     test $ax_sys_weak_alias = no && ax_sys_weak_alias=attribute
25562
25563 $as_echo "#define HAVE_SYS_WEAK_ALIAS_ATTRIBUTE 1" >>confdefs.h
25564
25565
25566 fi
25567
25568    # Test whether compiler accepts #pragma form of weak aliasing
25569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma weak" >&5
25570 $as_echo_n "checking whether $CC supports #pragma weak... " >&6; }
25571 if ${ax_cv_sys_weak_alias_pragma+:} false; then :
25572   $as_echo_n "(cached) " >&6
25573 else
25574
25575
25576     # Try linking with a weak alias...
25577     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25578 /* end confdefs.h.  */
25579
25580
25581 extern void weakf(int c);
25582 #pragma weak weakf = __weakf
25583 void __weakf(int c) {}
25584 int
25585 main ()
25586 {
25587 weakf(0)
25588   ;
25589   return 0;
25590 }
25591 _ACEOF
25592 if ac_fn_c_try_link "$LINENO"; then :
25593   ax_cv_sys_weak_alias_pragma=yes
25594 else
25595   ax_cv_sys_weak_alias_pragma=no
25596 fi
25597 rm -f core conftest.err conftest.$ac_objext \
25598     conftest$ac_exeext conftest.$ac_ext
25599
25600 fi
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_pragma" >&5
25602 $as_echo "$ax_cv_sys_weak_alias_pragma" >&6; }
25603
25604   # What was the result of the test?
25605   if test $ax_cv_sys_weak_alias_pragma = yes; then :
25606
25607     test $ax_sys_weak_alias = no && ax_sys_weak_alias=pragma
25608
25609 $as_echo "#define HAVE_SYS_WEAK_ALIAS_PRAGMA 1" >>confdefs.h
25610
25611
25612 fi
25613
25614    # Test whether compiler accepts _HP_SECONDARY_DEF pragma from HP...
25615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma _HP_SECONDARY_DEF" >&5
25616 $as_echo_n "checking whether $CC supports #pragma _HP_SECONDARY_DEF... " >&6; }
25617 if ${ax_cv_sys_weak_alias_hpsecondary+:} false; then :
25618   $as_echo_n "(cached) " >&6
25619 else
25620
25621
25622     # Try linking with a weak alias...
25623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624 /* end confdefs.h.  */
25625
25626
25627 extern void weakf(int c);
25628 #pragma _HP_SECONDARY_DEF __weakf weakf
25629 void __weakf(int c) {}
25630 int
25631 main ()
25632 {
25633 weakf(0)
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 if ac_fn_c_try_link "$LINENO"; then :
25639   ax_cv_sys_weak_alias_hpsecondary=yes
25640 else
25641   ax_cv_sys_weak_alias_hpsecondary=no
25642 fi
25643 rm -f core conftest.err conftest.$ac_objext \
25644     conftest$ac_exeext conftest.$ac_ext
25645
25646 fi
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_hpsecondary" >&5
25648 $as_echo "$ax_cv_sys_weak_alias_hpsecondary" >&6; }
25649
25650   # What was the result of the test?
25651   if test $ax_cv_sys_weak_alias_hpsecondary = yes; then :
25652
25653     test $ax_sys_weak_alias = no && ax_sys_weak_alias=hpsecondary
25654
25655 $as_echo "#define HAVE_SYS_WEAK_ALIAS_HPSECONDARY 1" >>confdefs.h
25656
25657
25658 fi
25659
25660    # Test whether compiler accepts "_CRI duplicate" pragma from Cray
25661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma _CRI duplicate" >&5
25662 $as_echo_n "checking whether $CC supports #pragma _CRI duplicate... " >&6; }
25663 if ${ax_cv_sys_weak_alias_criduplicate+:} false; then :
25664   $as_echo_n "(cached) " >&6
25665 else
25666
25667
25668     # Try linking with a weak alias...
25669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h.  */
25671
25672
25673 extern void weakf(int c);
25674 #pragma _CRI duplicate weakf as __weakf
25675 void __weakf(int c) {}
25676 int
25677 main ()
25678 {
25679 weakf(0)
25680   ;
25681   return 0;
25682 }
25683 _ACEOF
25684 if ac_fn_c_try_link "$LINENO"; then :
25685   ax_cv_sys_weak_alias_criduplicate=yes
25686 else
25687   ax_cv_sys_weak_alias_criduplicate=no
25688 fi
25689 rm -f core conftest.err conftest.$ac_objext \
25690     conftest$ac_exeext conftest.$ac_ext
25691
25692 fi
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_criduplicate" >&5
25694 $as_echo "$ax_cv_sys_weak_alias_criduplicate" >&6; }
25695
25696   # What was the result of the test?
25697   if test $ax_cv_sys_weak_alias_criduplicate = yes; then :
25698
25699     test $ax_sys_weak_alias = no && ax_sys_weak_alias=criduplicate
25700
25701 $as_echo "#define HAVE_SYS_WEAK_ALIAS_CRIDUPLICATE 1" >>confdefs.h
25702
25703
25704 fi
25705
25706
25707   # Do we actually support aliasing?
25708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create weak aliases with $CC" >&5
25709 $as_echo_n "checking how to create weak aliases with $CC... " >&6; }
25710 if ${ax_cv_sys_weak_alias+:} false; then :
25711   $as_echo_n "(cached) " >&6
25712 else
25713   ax_cv_sys_weak_alias=$ax_sys_weak_alias
25714 fi
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias" >&5
25716 $as_echo "$ax_cv_sys_weak_alias" >&6; }
25717
25718   # OK, set a #define
25719   if test $ax_cv_sys_weak_alias != no; then :
25720
25721
25722 $as_echo "#define HAVE_SYS_WEAK_ALIAS 1" >>confdefs.h
25723
25724
25725 fi
25726
25727   # Can aliases cross object file boundaries?
25728    # Check to see if weak aliases can cross object file boundaries
25729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports weak aliases across object file boundaries" >&5
25730 $as_echo_n "checking whether $CC supports weak aliases across object file boundaries... " >&6; }
25731 if ${ax_cv_sys_weak_alias_crossfile+:} false; then :
25732   $as_echo_n "(cached) " >&6
25733 else
25734
25735     if test $ax_cv_sys_weak_alias = no; then :
25736   ax_cv_sys_weak_alias_crossfile=no
25737 else
25738
25739       # conftest1 contains our weak alias definition...
25740       cat >conftest1.$ac_ext <<_ACEOF
25741 /* confdefs.h.  */
25742 _ACEOF
25743       cat confdefs.h >>conftest1.$ac_ext
25744       cat >>conftest1.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746
25747 #ifndef HAVE_SYS_WEAK_ALIAS_ATTRIBUTE
25748 extern void weakf(int c);
25749 #if defined(HAVE_SYS_WEAK_ALIAS_PRAGMA)
25750 #pragma weak weakf = __weakf
25751 #elif defined(HAVE_SYS_WEAK_ALIAS_HPSECONDARY)
25752 #pragma _HP_SECONDARY_DEF __weakf weakf
25753 #elif defined(HAVE_SYS_WEAK_ALIAS_CRIDUPLICATE)
25754 #pragma _CRI duplicate weakf as __weakf
25755 #endif
25756 #endif
25757 void __weakf(int c) {}
25758 #ifdef HAVE_SYS_WEAK_ALIAS_ATTRIBUTE
25759 void weakf(int c) __attribute((weak, alias("__weakf")));
25760 #endif
25761 _ACEOF
25762       # And conftest2 contains our main routine that calls it
25763       cat >conftest2.$ac_ext <<_ACEOF
25764 /* confdefs.h.  */
25765 _ACEOF
25766       cat confdefs.h >> conftest2.$ac_ext
25767       cat >>conftest2.$ac_ext <<_ACEOF
25768 /* end confdefs.h.  */
25769
25770 extern void weakf(int c);
25771 int
25772 main ()
25773 {
25774   weakf(0);
25775   return 0;
25776 }
25777 _ACEOF
25778       # We must remove the object files (if any) ourselves...
25779       rm -f conftest2.$ac_objext conftest$ac_exeext
25780
25781       # Change ac_link to compile *2* files together
25782       save_aclink=$ac_link
25783       ac_link=`echo "$ac_link" | \
25784                sed -e 's/conftest\(\.\$ac_ext\)/conftest1\1 conftest2\1/'`
25785       # Since we created the files ourselves, don't use SOURCE argument
25786       if ac_fn_c_try_link "$LINENO"; then :
25787   ax_cv_sys_weak_alias_crossfile=yes
25788 else
25789   ax_cv_sys_weak_alias_crossfile=no
25790 fi
25791 rm -f core conftest.err conftest.$ac_objext \
25792     conftest$ac_exeext
25793       # Restore ac_link
25794       ac_link=$save_aclink
25795
25796       # We must remove the object files (if any) and C files ourselves...
25797       rm -f conftest1.$ac_ext conftest2.$ac_ext \
25798             conftest1.$ac_objext conftest2.$ac_objext
25799
25800 fi
25801
25802 fi
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_crossfile" >&5
25804 $as_echo "$ax_cv_sys_weak_alias_crossfile" >&6; }
25805
25806   # What were the results of the test?
25807   if test $ax_cv_sys_weak_alias_crossfile = yes; then :
25808
25809
25810 $as_echo "#define HAVE_SYS_WEAK_ALIAS_CROSSFILE 1" >>confdefs.h
25811
25812
25813 fi
25814
25815
25816   # OK, remember the results
25817   WEAK_ALIAS=$ax_cv_sys_weak_alias
25818
25819   WEAK_ALIAS_CROSSFILE=$ax_cv_sys_weak_alias_crossfile
25820
25821
25822
25823 if test x"${enable_backtrace}" != x"no" ; then
25824   backtrace_ok=no
25825   ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
25826 if test "x$ac_cv_header_execinfo_h" = xyes; then :
25827
25828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
25829 $as_echo_n "checking for library containing backtrace... " >&6; }
25830 if ${ac_cv_search_backtrace+:} false; then :
25831   $as_echo_n "(cached) " >&6
25832 else
25833   ac_func_search_save_LIBS=$LIBS
25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835 /* end confdefs.h.  */
25836
25837 /* Override any GCC internal prototype to avoid an error.
25838    Use char because int might match the return type of a GCC
25839    builtin and then its argument prototype would still apply.  */
25840 #ifdef __cplusplus
25841 extern "C"
25842 #endif
25843 char backtrace ();
25844 int
25845 main ()
25846 {
25847 return backtrace ();
25848   ;
25849   return 0;
25850 }
25851 _ACEOF
25852 for ac_lib in '' execinfo; do
25853   if test -z "$ac_lib"; then
25854     ac_res="none required"
25855   else
25856     ac_res=-l$ac_lib
25857     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
25858   fi
25859   if ac_fn_c_try_link "$LINENO"; then :
25860   ac_cv_search_backtrace=$ac_res
25861 fi
25862 rm -f core conftest.err conftest.$ac_objext \
25863     conftest$ac_exeext
25864   if ${ac_cv_search_backtrace+:} false; then :
25865   break
25866 fi
25867 done
25868 if ${ac_cv_search_backtrace+:} false; then :
25869
25870 else
25871   ac_cv_search_backtrace=no
25872 fi
25873 rm conftest.$ac_ext
25874 LIBS=$ac_func_search_save_LIBS
25875 fi
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
25877 $as_echo "$ac_cv_search_backtrace" >&6; }
25878 ac_res=$ac_cv_search_backtrace
25879 if test "$ac_res" != no; then :
25880   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25881
25882
25883 $as_echo "#define HAVE_GLIBC_BACKTRACE /**/" >>confdefs.h
25884
25885
25886 $as_echo "#define HAVE_STACK_TRACE /**/" >>confdefs.h
25887
25888       backtrace_ok=yes
25889
25890 fi
25891
25892
25893 fi
25894
25895
25896
25897   if test x"${enable_backtrace}" = x"yes" -a x"${backtrace_ok}" = x"no"; then
25898         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25900 as_fn_error $? "failed to find backtrace support
25901 See \`config.log' for more details" "$LINENO" 5; }
25902   fi
25903 fi
25904
25905 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "#ifdef SUNOS_5
25906 #define _XPG4_2
25907 #define __EXTENSIONS__
25908 #endif
25909 #include <stdio.h>
25910 #if STDC_HEADERS
25911 # include <stdlib.h>
25912 # include <stddef.h>
25913 #else
25914 # if HAVE_STDLIB_H
25915 #  include <stdlib.h>
25916 # endif
25917 #endif
25918 #if HAVE_SYS_TYPES_H
25919 # include <sys/types.h>
25920 #endif
25921 /* sys/conf.h depends on param.h on FBSD at least */
25922 #if HAVE_SYS_PARAM_H
25923 # include <sys/param.h>
25924 #endif
25925 /* Required for MAXSIG */
25926 #if HAVE_SIGNAL_H
25927 # include <signal.h>
25928 #endif
25929 #if HAVE_SYS_SOCKET_H
25930 # include <sys/socket.h>
25931 #endif
25932 #ifdef __APPLE__
25933 # define __APPLE_USE_RFC_3542
25934 #endif
25935 #if HAVE_NETINET_IN_H
25936 # include <netinet/in.h>
25937 #endif
25938 #ifdef TIME_WITH_SYS_TIME
25939 # include <sys/time.h>
25940 # include <time.h>
25941 #else
25942 # ifdef HAVE_SYS_TIME_H
25943 #  include <sys/time.h>
25944 # else
25945 #  include <time.h>
25946 # endif
25947 #endif /* TIME_WITH_SYS_TIME */
25948
25949 #if HAVE_NET_IF_H
25950 # include <net/if.h>
25951 #endif
25952
25953 #if HAVE_NET_IF_VAR_H
25954 # include <net/if_var.h>
25955 #endif
25956
25957 #if HAVE_SYS_UN_H
25958 # include <sys/un.h>
25959 #endif
25960 #if HAVE_NETINET_IN_SYSTM_H
25961 # include <netinet/in_systm.h>
25962 #endif
25963 #if HAVE_NETINET_IN_VAR_H
25964 # include <netinet/in_var.h>
25965 #endif
25966 #if HAVE_NET_IF_DL_H
25967 # include <net/if_dl.h>
25968 #endif
25969 #if HAVE_NET_NETOPT_H
25970 # include <net/netopt.h>
25971 #endif
25972 #if HAVE_NET_ROUTE_H
25973 # include <net/route.h>
25974 #endif
25975 #if HAVE_INET_ND_H
25976 # include <inet/nd.h>
25977 #endif
25978 #if HAVE_ARPA_INET_H
25979 # include <arpa/inet.h>
25980 #endif
25981 /* Required for IDRP */
25982 #if HAVE_NETINET_IP_ICMP_H
25983 # include <netinet/ip_icmp.h>
25984 #endif
25985
25986 #if HAVE_NETINET6_IN6_H
25987 #include <netinet6/in6.h>
25988 #endif
25989 #if HAVE_NETINET_IN6_VAR_H
25990 #include <netinet/in6_var.h>
25991 #endif
25992 #if HAVE_NETINET_ICMP6_H
25993 # include <netinet/icmp6.h>
25994 #endif
25995 #if HAVE_NETINET6_IN6_VAR_H
25996 # include <netinet6/in6_var.h>
25997 #endif
25998 #if HAVE_NETINET6_ND6_H
25999 # include <netinet6/nd6.h>
26000 #endif
26001
26002 "
26003 if test "x$ac_cv_header_malloc_h" = xyes; then :
26004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mallinfo is available" >&5
26005 $as_echo_n "checking whether mallinfo is available... " >&6; }
26006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h.  */
26008 #include <malloc.h>
26009 int
26010 main ()
26011 {
26012 struct mallinfo ac_x; ac_x = mallinfo ();
26013   ;
26014   return 0;
26015 }
26016 _ACEOF
26017 if ac_fn_c_try_link "$LINENO"; then :
26018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26019 $as_echo "yes" >&6; }
26020
26021 $as_echo "#define HAVE_MALLINFO /**/" >>confdefs.h
26022
26023 else
26024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26025 $as_echo "no" >&6; }
26026
26027 fi
26028 rm -f core conftest.err conftest.$ac_objext \
26029     conftest$ac_exeext conftest.$ac_ext
26030
26031 fi
26032
26033
26034
26035 CONFDATE=`date '+%Y%m%d'`
26036
26037
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking directory to use for state file" >&5
26039 $as_echo_n "checking directory to use for state file... " >&6; }
26040 if test "${prefix}" = "NONE"; then
26041   quagga_statedir_prefix="";
26042 else
26043   quagga_statedir_prefix=${prefix}
26044 fi
26045 if test "${localstatedir}" = '${prefix}/var'; then
26046   for QUAGGA_STATE_DIR in ${quagga_statedir_prefix}/var/run                     ${quagga_statedir_prefix}/var/adm                       ${quagga_statedir_prefix}/etc                   /var/run                                /var/adm                                /etc                                    /dev/null;
26047   do
26048     test -d $QUAGGA_STATE_DIR && break
26049   done
26050   quagga_statedir=$QUAGGA_STATE_DIR
26051 else
26052   quagga_statedir=${localstatedir}
26053 fi
26054 if test $quagga_statedir = "/dev/null"; then
26055     as_fn_error $? "'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" "$LINENO" 5
26056 fi
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${quagga_statedir}" >&5
26058 $as_echo "${quagga_statedir}" >&6; }
26059
26060
26061
26062 cat >>confdefs.h <<_ACEOF
26063 #define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
26064 _ACEOF
26065
26066
26067 cat >>confdefs.h <<_ACEOF
26068 #define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
26069 _ACEOF
26070
26071
26072 cat >>confdefs.h <<_ACEOF
26073 #define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
26074 _ACEOF
26075
26076
26077 cat >>confdefs.h <<_ACEOF
26078 #define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
26079 _ACEOF
26080
26081
26082 cat >>confdefs.h <<_ACEOF
26083 #define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
26084 _ACEOF
26085
26086
26087 cat >>confdefs.h <<_ACEOF
26088 #define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
26089 _ACEOF
26090
26091
26092 cat >>confdefs.h <<_ACEOF
26093 #define PATH_NHRPD_PID "$quagga_statedir/nhrpd.pid"
26094 _ACEOF
26095
26096
26097 cat >>confdefs.h <<_ACEOF
26098 #define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
26099 _ACEOF
26100
26101
26102 cat >>confdefs.h <<_ACEOF
26103 #define PATH_PIMD_PID "$quagga_statedir/pimd.pid"
26104 _ACEOF
26105
26106
26107 cat >>confdefs.h <<_ACEOF
26108 #define PATH_WATCHQUAGGA_PID "$quagga_statedir/watchquagga.pid"
26109 _ACEOF
26110
26111
26112 cat >>confdefs.h <<_ACEOF
26113 #define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
26114 _ACEOF
26115
26116
26117 cat >>confdefs.h <<_ACEOF
26118 #define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
26119 _ACEOF
26120
26121
26122 cat >>confdefs.h <<_ACEOF
26123 #define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
26124 _ACEOF
26125
26126
26127 cat >>confdefs.h <<_ACEOF
26128 #define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
26129 _ACEOF
26130
26131
26132 cat >>confdefs.h <<_ACEOF
26133 #define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
26134 _ACEOF
26135
26136
26137 cat >>confdefs.h <<_ACEOF
26138 #define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
26139 _ACEOF
26140
26141
26142 cat >>confdefs.h <<_ACEOF
26143 #define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
26144 _ACEOF
26145
26146
26147 cat >>confdefs.h <<_ACEOF
26148 #define NHRP_VTYSH_PATH "$quagga_statedir/nhrpd.vty"
26149 _ACEOF
26150
26151
26152 cat >>confdefs.h <<_ACEOF
26153 #define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
26154 _ACEOF
26155
26156
26157 cat >>confdefs.h <<_ACEOF
26158 #define PIM_VTYSH_PATH "$quagga_statedir/pimd.vty"
26159 _ACEOF
26160
26161
26162 cat >>confdefs.h <<_ACEOF
26163 #define DAEMON_VTY_DIR "$quagga_statedir"
26164 _ACEOF
26165
26166
26167
26168 $as_echo "#define QUAGGA_NO_DEPRECATED_INTERFACES 1" >>confdefs.h
26169
26170
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working htonl" >&5
26172 $as_echo_n "checking for working htonl... " >&6; }
26173 if ${ac_cv_htonl_works+:} false; then :
26174   $as_echo_n "(cached) " >&6
26175 else
26176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26177 /* end confdefs.h.  */
26178 #ifdef SUNOS_5
26179 #define _XPG4_2
26180 #define __EXTENSIONS__
26181 #endif
26182 #include <stdio.h>
26183 #if STDC_HEADERS
26184 # include <stdlib.h>
26185 # include <stddef.h>
26186 #else
26187 # if HAVE_STDLIB_H
26188 #  include <stdlib.h>
26189 # endif
26190 #endif
26191 #if HAVE_SYS_TYPES_H
26192 # include <sys/types.h>
26193 #endif
26194 /* sys/conf.h depends on param.h on FBSD at least */
26195 #if HAVE_SYS_PARAM_H
26196 # include <sys/param.h>
26197 #endif
26198 /* Required for MAXSIG */
26199 #if HAVE_SIGNAL_H
26200 # include <signal.h>
26201 #endif
26202 #if HAVE_SYS_SOCKET_H
26203 # include <sys/socket.h>
26204 #endif
26205 #ifdef __APPLE__
26206 # define __APPLE_USE_RFC_3542
26207 #endif
26208 #if HAVE_NETINET_IN_H
26209 # include <netinet/in.h>
26210 #endif
26211 #ifdef TIME_WITH_SYS_TIME
26212 # include <sys/time.h>
26213 # include <time.h>
26214 #else
26215 # ifdef HAVE_SYS_TIME_H
26216 #  include <sys/time.h>
26217 # else
26218 #  include <time.h>
26219 # endif
26220 #endif /* TIME_WITH_SYS_TIME */
26221
26222 #if HAVE_NET_IF_H
26223 # include <net/if.h>
26224 #endif
26225
26226 #if HAVE_NET_IF_VAR_H
26227 # include <net/if_var.h>
26228 #endif
26229
26230 #if HAVE_SYS_UN_H
26231 # include <sys/un.h>
26232 #endif
26233 #if HAVE_NETINET_IN_SYSTM_H
26234 # include <netinet/in_systm.h>
26235 #endif
26236 #if HAVE_NETINET_IN_VAR_H
26237 # include <netinet/in_var.h>
26238 #endif
26239 #if HAVE_NET_IF_DL_H
26240 # include <net/if_dl.h>
26241 #endif
26242 #if HAVE_NET_NETOPT_H
26243 # include <net/netopt.h>
26244 #endif
26245 #if HAVE_NET_ROUTE_H
26246 # include <net/route.h>
26247 #endif
26248 #if HAVE_INET_ND_H
26249 # include <inet/nd.h>
26250 #endif
26251 #if HAVE_ARPA_INET_H
26252 # include <arpa/inet.h>
26253 #endif
26254 /* Required for IDRP */
26255 #if HAVE_NETINET_IP_ICMP_H
26256 # include <netinet/ip_icmp.h>
26257 #endif
26258
26259 #if HAVE_NETINET6_IN6_H
26260 #include <netinet6/in6.h>
26261 #endif
26262 #if HAVE_NETINET_IN6_VAR_H
26263 #include <netinet/in6_var.h>
26264 #endif
26265 #if HAVE_NETINET_ICMP6_H
26266 # include <netinet/icmp6.h>
26267 #endif
26268 #if HAVE_NETINET6_IN6_VAR_H
26269 # include <netinet6/in6_var.h>
26270 #endif
26271 #if HAVE_NETINET6_ND6_H
26272 # include <netinet6/nd6.h>
26273 #endif
26274
26275 int
26276 main ()
26277 {
26278 htonl (0);
26279   ;
26280   return 0;
26281 }
26282 _ACEOF
26283 if ac_fn_c_try_link "$LINENO"; then :
26284   ac_cv_htonl_works=yes
26285 else
26286   ac_cv_htonl_works=no
26287 fi
26288 rm -f core conftest.err conftest.$ac_objext \
26289     conftest$ac_exeext conftest.$ac_ext
26290
26291
26292 fi
26293
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_htonl_works" >&5
26295 $as_echo "$ac_cv_htonl_works" >&6; }
26296
26297 ac_config_files="$ac_config_files Makefile lib/Makefile qpb/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile watchquagga/Makefile ospf6d/Makefile isisd/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile tests/Makefile m4/Makefile pimd/Makefile nhrpd/Makefile redhat/Makefile pkgsrc/Makefile fpm/Makefile redhat/quagga.spec redhat/quagga.sysconfig lib/version.h isisd/topology/Makefile pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh"
26298
26299 ac_config_files="$ac_config_files solaris/Makefile"
26300
26301
26302 ac_config_files="$ac_config_files vtysh/extract.pl"
26303
26304 ## Hack, but working solution to avoid rebuilding of quagga.info.
26305 ## It's already in CVS until texinfo 4.7 is more common.
26306 cat >confcache <<\_ACEOF
26307 # This file is a shell script that caches the results of configure
26308 # tests run on this system so they can be shared between configure
26309 # scripts and configure runs, see configure's option --config-cache.
26310 # It is not useful on other systems.  If it contains results you don't
26311 # want to keep, you may remove or edit it.
26312 #
26313 # config.status only pays attention to the cache file if you give it
26314 # the --recheck option to rerun configure.
26315 #
26316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26318 # following values.
26319
26320 _ACEOF
26321
26322 # The following way of writing the cache mishandles newlines in values,
26323 # but we know of no workaround that is simple, portable, and efficient.
26324 # So, we kill variables containing newlines.
26325 # Ultrix sh set writes to stderr and can't be redirected directly,
26326 # and sets the high bit in the cache file unless we assign to the vars.
26327 (
26328   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26329     eval ac_val=\$$ac_var
26330     case $ac_val in #(
26331     *${as_nl}*)
26332       case $ac_var in #(
26333       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26334 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26335       esac
26336       case $ac_var in #(
26337       _ | IFS | as_nl) ;; #(
26338       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26339       *) { eval $ac_var=; unset $ac_var;} ;;
26340       esac ;;
26341     esac
26342   done
26343
26344   (set) 2>&1 |
26345     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26346     *${as_nl}ac_space=\ *)
26347       # `set' does not quote correctly, so add quotes: double-quote
26348       # substitution turns \\\\ into \\, and sed turns \\ into \.
26349       sed -n \
26350         "s/'/'\\\\''/g;
26351           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26352       ;; #(
26353     *)
26354       # `set' quotes correctly as required by POSIX, so do not add quotes.
26355       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26356       ;;
26357     esac |
26358     sort
26359 ) |
26360   sed '
26361      /^ac_cv_env_/b end
26362      t clear
26363      :clear
26364      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26365      t end
26366      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26367      :end' >>confcache
26368 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26369   if test -w "$cache_file"; then
26370     if test "x$cache_file" != "x/dev/null"; then
26371       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26372 $as_echo "$as_me: updating cache $cache_file" >&6;}
26373       if test ! -f "$cache_file" || test -h "$cache_file"; then
26374         cat confcache >"$cache_file"
26375       else
26376         case $cache_file in #(
26377         */* | ?:*)
26378           mv -f confcache "$cache_file"$$ &&
26379           mv -f "$cache_file"$$ "$cache_file" ;; #(
26380         *)
26381           mv -f confcache "$cache_file" ;;
26382         esac
26383       fi
26384     fi
26385   else
26386     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26387 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26388   fi
26389 fi
26390 rm -f confcache
26391
26392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26393 # Let make expand exec_prefix.
26394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26395
26396 DEFS=-DHAVE_CONFIG_H
26397
26398 ac_libobjs=
26399 ac_ltlibobjs=
26400 U=
26401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26402   # 1. Remove the extension, and $U if already installed.
26403   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26404   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26405   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26406   #    will be set to the directory where LIBOBJS objects are built.
26407   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26408   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26409 done
26410 LIBOBJS=$ac_libobjs
26411
26412 LTLIBOBJS=$ac_ltlibobjs
26413
26414
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26416 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26417    if test -n "$am_sleep_pid"; then
26418      # Hide warnings about reused PIDs.
26419      wait $am_sleep_pid 2>/dev/null
26420    fi
26421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26422 $as_echo "done" >&6; }
26423  if test -n "$EXEEXT"; then
26424   am__EXEEXT_TRUE=
26425   am__EXEEXT_FALSE='#'
26426 else
26427   am__EXEEXT_TRUE='#'
26428   am__EXEEXT_FALSE=
26429 fi
26430
26431 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26432   as_fn_error $? "conditional \"AMDEP\" was never defined.
26433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26434 fi
26435 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26436   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26438 fi
26439 if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then
26440   as_fn_error $? "conditional \"HAVE_LATEX\" was never defined.
26441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26442 fi
26443 if test -z "${HAVE_PANDOC_TRUE}" && test -z "${HAVE_PANDOC_FALSE}"; then
26444   as_fn_error $? "conditional \"HAVE_PANDOC\" was never defined.
26445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26446 fi
26447 if test -z "${DEV_BUILD_TRUE}" && test -z "${DEV_BUILD_FALSE}"; then
26448   as_fn_error $? "conditional \"DEV_BUILD\" was never defined.
26449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26450 fi
26451 if test -z "${HAVE_PROTOBUF_TRUE}" && test -z "${HAVE_PROTOBUF_FALSE}"; then
26452   as_fn_error $? "conditional \"HAVE_PROTOBUF\" was never defined.
26453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26454 fi
26455 if test -z "${GIT_VERSION_TRUE}" && test -z "${GIT_VERSION_FALSE}"; then
26456   as_fn_error $? "conditional \"GIT_VERSION\" was never defined.
26457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26458 fi
26459 if test -z "${VTYSH_TRUE}" && test -z "${VTYSH_FALSE}"; then
26460   as_fn_error $? "conditional \"VTYSH\" was never defined.
26461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26462 fi
26463
26464 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
26465   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
26466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26467 fi
26468 if test -z "${ZEBRA_TRUE}" && test -z "${ZEBRA_FALSE}"; then
26469   as_fn_error $? "conditional \"ZEBRA\" was never defined.
26470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26471 fi
26472 if test -z "${BGPD_TRUE}" && test -z "${BGPD_FALSE}"; then
26473   as_fn_error $? "conditional \"BGPD\" was never defined.
26474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26475 fi
26476 if test -z "${RIPD_TRUE}" && test -z "${RIPD_FALSE}"; then
26477   as_fn_error $? "conditional \"RIPD\" was never defined.
26478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26479 fi
26480 if test -z "${OSPFD_TRUE}" && test -z "${OSPFD_FALSE}"; then
26481   as_fn_error $? "conditional \"OSPFD\" was never defined.
26482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26483 fi
26484 if test -z "${NHRPD_TRUE}" && test -z "${NHRPD_FALSE}"; then
26485   as_fn_error $? "conditional \"NHRPD\" was never defined.
26486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26487 fi
26488 if test -z "${WATCHQUAGGA_TRUE}" && test -z "${WATCHQUAGGA_FALSE}"; then
26489   as_fn_error $? "conditional \"WATCHQUAGGA\" was never defined.
26490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26491 fi
26492 if test -z "${OSPFCLIENT_TRUE}" && test -z "${OSPFCLIENT_FALSE}"; then
26493   as_fn_error $? "conditional \"OSPFCLIENT\" was never defined.
26494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26495 fi
26496 if test -z "${RIPNGD_TRUE}" && test -z "${RIPNGD_FALSE}"; then
26497   as_fn_error $? "conditional \"RIPNGD\" was never defined.
26498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26499 fi
26500 if test -z "${OSPF6D_TRUE}" && test -z "${OSPF6D_FALSE}"; then
26501   as_fn_error $? "conditional \"OSPF6D\" was never defined.
26502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26503 fi
26504 if test -z "${ISISD_TRUE}" && test -z "${ISISD_FALSE}"; then
26505   as_fn_error $? "conditional \"ISISD\" was never defined.
26506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26507 fi
26508 if test -z "${PIMD_TRUE}" && test -z "${PIMD_FALSE}"; then
26509   as_fn_error $? "conditional \"PIMD\" was never defined.
26510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26511 fi
26512
26513 : "${CONFIG_STATUS=./config.status}"
26514 ac_write_fail=0
26515 ac_clean_files_save=$ac_clean_files
26516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26518 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26519 as_write_fail=0
26520 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26521 #! $SHELL
26522 # Generated by $as_me.
26523 # Run this file to recreate the current configuration.
26524 # Compiler output produced by configure, useful for debugging
26525 # configure, is in config.log if it exists.
26526
26527 debug=false
26528 ac_cs_recheck=false
26529 ac_cs_silent=false
26530
26531 SHELL=\${CONFIG_SHELL-$SHELL}
26532 export SHELL
26533 _ASEOF
26534 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26535 ## -------------------- ##
26536 ## M4sh Initialization. ##
26537 ## -------------------- ##
26538
26539 # Be more Bourne compatible
26540 DUALCASE=1; export DUALCASE # for MKS sh
26541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26542   emulate sh
26543   NULLCMD=:
26544   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26545   # is contrary to our usage.  Disable this feature.
26546   alias -g '${1+"$@"}'='"$@"'
26547   setopt NO_GLOB_SUBST
26548 else
26549   case `(set -o) 2>/dev/null` in #(
26550   *posix*) :
26551     set -o posix ;; #(
26552   *) :
26553      ;;
26554 esac
26555 fi
26556
26557
26558 as_nl='
26559 '
26560 export as_nl
26561 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26562 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26565 # Prefer a ksh shell builtin over an external printf program on Solaris,
26566 # but without wasting forks for bash or zsh.
26567 if test -z "$BASH_VERSION$ZSH_VERSION" \
26568     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26569   as_echo='print -r --'
26570   as_echo_n='print -rn --'
26571 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26572   as_echo='printf %s\n'
26573   as_echo_n='printf %s'
26574 else
26575   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26576     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26577     as_echo_n='/usr/ucb/echo -n'
26578   else
26579     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26580     as_echo_n_body='eval
26581       arg=$1;
26582       case $arg in #(
26583       *"$as_nl"*)
26584         expr "X$arg" : "X\\(.*\\)$as_nl";
26585         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26586       esac;
26587       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26588     '
26589     export as_echo_n_body
26590     as_echo_n='sh -c $as_echo_n_body as_echo'
26591   fi
26592   export as_echo_body
26593   as_echo='sh -c $as_echo_body as_echo'
26594 fi
26595
26596 # The user is always right.
26597 if test "${PATH_SEPARATOR+set}" != set; then
26598   PATH_SEPARATOR=:
26599   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26600     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26601       PATH_SEPARATOR=';'
26602   }
26603 fi
26604
26605
26606 # IFS
26607 # We need space, tab and new line, in precisely that order.  Quoting is
26608 # there to prevent editors from complaining about space-tab.
26609 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26610 # splitting by setting IFS to empty value.)
26611 IFS=" ""        $as_nl"
26612
26613 # Find who we are.  Look in the path if we contain no directory separator.
26614 as_myself=
26615 case $0 in #((
26616   *[\\/]* ) as_myself=$0 ;;
26617   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26618 for as_dir in $PATH
26619 do
26620   IFS=$as_save_IFS
26621   test -z "$as_dir" && as_dir=.
26622     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26623   done
26624 IFS=$as_save_IFS
26625
26626      ;;
26627 esac
26628 # We did not find ourselves, most probably we were run as `sh COMMAND'
26629 # in which case we are not to be found in the path.
26630 if test "x$as_myself" = x; then
26631   as_myself=$0
26632 fi
26633 if test ! -f "$as_myself"; then
26634   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26635   exit 1
26636 fi
26637
26638 # Unset variables that we do not need and which cause bugs (e.g. in
26639 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26640 # suppresses any "Segmentation fault" message there.  '((' could
26641 # trigger a bug in pdksh 5.2.14.
26642 for as_var in BASH_ENV ENV MAIL MAILPATH
26643 do eval test x\${$as_var+set} = xset \
26644   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26645 done
26646 PS1='$ '
26647 PS2='> '
26648 PS4='+ '
26649
26650 # NLS nuisances.
26651 LC_ALL=C
26652 export LC_ALL
26653 LANGUAGE=C
26654 export LANGUAGE
26655
26656 # CDPATH.
26657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26658
26659
26660 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26661 # ----------------------------------------
26662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26664 # script with STATUS, using 1 if that was 0.
26665 as_fn_error ()
26666 {
26667   as_status=$1; test $as_status -eq 0 && as_status=1
26668   if test "$4"; then
26669     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26670     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26671   fi
26672   $as_echo "$as_me: error: $2" >&2
26673   as_fn_exit $as_status
26674 } # as_fn_error
26675
26676
26677 # as_fn_set_status STATUS
26678 # -----------------------
26679 # Set $? to STATUS, without forking.
26680 as_fn_set_status ()
26681 {
26682   return $1
26683 } # as_fn_set_status
26684
26685 # as_fn_exit STATUS
26686 # -----------------
26687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26688 as_fn_exit ()
26689 {
26690   set +e
26691   as_fn_set_status $1
26692   exit $1
26693 } # as_fn_exit
26694
26695 # as_fn_unset VAR
26696 # ---------------
26697 # Portably unset VAR.
26698 as_fn_unset ()
26699 {
26700   { eval $1=; unset $1;}
26701 }
26702 as_unset=as_fn_unset
26703 # as_fn_append VAR VALUE
26704 # ----------------------
26705 # Append the text in VALUE to the end of the definition contained in VAR. Take
26706 # advantage of any shell optimizations that allow amortized linear growth over
26707 # repeated appends, instead of the typical quadratic growth present in naive
26708 # implementations.
26709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26710   eval 'as_fn_append ()
26711   {
26712     eval $1+=\$2
26713   }'
26714 else
26715   as_fn_append ()
26716   {
26717     eval $1=\$$1\$2
26718   }
26719 fi # as_fn_append
26720
26721 # as_fn_arith ARG...
26722 # ------------------
26723 # Perform arithmetic evaluation on the ARGs, and store the result in the
26724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26725 # must be portable across $(()) and expr.
26726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26727   eval 'as_fn_arith ()
26728   {
26729     as_val=$(( $* ))
26730   }'
26731 else
26732   as_fn_arith ()
26733   {
26734     as_val=`expr "$@" || test $? -eq 1`
26735   }
26736 fi # as_fn_arith
26737
26738
26739 if expr a : '\(a\)' >/dev/null 2>&1 &&
26740    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26741   as_expr=expr
26742 else
26743   as_expr=false
26744 fi
26745
26746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26747   as_basename=basename
26748 else
26749   as_basename=false
26750 fi
26751
26752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26753   as_dirname=dirname
26754 else
26755   as_dirname=false
26756 fi
26757
26758 as_me=`$as_basename -- "$0" ||
26759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26760          X"$0" : 'X\(//\)$' \| \
26761          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26762 $as_echo X/"$0" |
26763     sed '/^.*\/\([^/][^/]*\)\/*$/{
26764             s//\1/
26765             q
26766           }
26767           /^X\/\(\/\/\)$/{
26768             s//\1/
26769             q
26770           }
26771           /^X\/\(\/\).*/{
26772             s//\1/
26773             q
26774           }
26775           s/.*/./; q'`
26776
26777 # Avoid depending upon Character Ranges.
26778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26781 as_cr_digits='0123456789'
26782 as_cr_alnum=$as_cr_Letters$as_cr_digits
26783
26784 ECHO_C= ECHO_N= ECHO_T=
26785 case `echo -n x` in #(((((
26786 -n*)
26787   case `echo 'xy\c'` in
26788   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26789   xy)  ECHO_C='\c';;
26790   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26791        ECHO_T=' ';;
26792   esac;;
26793 *)
26794   ECHO_N='-n';;
26795 esac
26796
26797 rm -f conf$$ conf$$.exe conf$$.file
26798 if test -d conf$$.dir; then
26799   rm -f conf$$.dir/conf$$.file
26800 else
26801   rm -f conf$$.dir
26802   mkdir conf$$.dir 2>/dev/null
26803 fi
26804 if (echo >conf$$.file) 2>/dev/null; then
26805   if ln -s conf$$.file conf$$ 2>/dev/null; then
26806     as_ln_s='ln -s'
26807     # ... but there are two gotchas:
26808     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26809     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26810     # In both cases, we have to default to `cp -pR'.
26811     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26812       as_ln_s='cp -pR'
26813   elif ln conf$$.file conf$$ 2>/dev/null; then
26814     as_ln_s=ln
26815   else
26816     as_ln_s='cp -pR'
26817   fi
26818 else
26819   as_ln_s='cp -pR'
26820 fi
26821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26822 rmdir conf$$.dir 2>/dev/null
26823
26824
26825 # as_fn_mkdir_p
26826 # -------------
26827 # Create "$as_dir" as a directory, including parents if necessary.
26828 as_fn_mkdir_p ()
26829 {
26830
26831   case $as_dir in #(
26832   -*) as_dir=./$as_dir;;
26833   esac
26834   test -d "$as_dir" || eval $as_mkdir_p || {
26835     as_dirs=
26836     while :; do
26837       case $as_dir in #(
26838       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26839       *) as_qdir=$as_dir;;
26840       esac
26841       as_dirs="'$as_qdir' $as_dirs"
26842       as_dir=`$as_dirname -- "$as_dir" ||
26843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26844          X"$as_dir" : 'X\(//\)[^/]' \| \
26845          X"$as_dir" : 'X\(//\)$' \| \
26846          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26847 $as_echo X"$as_dir" |
26848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26849             s//\1/
26850             q
26851           }
26852           /^X\(\/\/\)[^/].*/{
26853             s//\1/
26854             q
26855           }
26856           /^X\(\/\/\)$/{
26857             s//\1/
26858             q
26859           }
26860           /^X\(\/\).*/{
26861             s//\1/
26862             q
26863           }
26864           s/.*/./; q'`
26865       test -d "$as_dir" && break
26866     done
26867     test -z "$as_dirs" || eval "mkdir $as_dirs"
26868   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26869
26870
26871 } # as_fn_mkdir_p
26872 if mkdir -p . 2>/dev/null; then
26873   as_mkdir_p='mkdir -p "$as_dir"'
26874 else
26875   test -d ./-p && rmdir ./-p
26876   as_mkdir_p=false
26877 fi
26878
26879
26880 # as_fn_executable_p FILE
26881 # -----------------------
26882 # Test if FILE is an executable regular file.
26883 as_fn_executable_p ()
26884 {
26885   test -f "$1" && test -x "$1"
26886 } # as_fn_executable_p
26887 as_test_x='test -x'
26888 as_executable_p=as_fn_executable_p
26889
26890 # Sed expression to map a string onto a valid CPP name.
26891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26892
26893 # Sed expression to map a string onto a valid variable name.
26894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26895
26896
26897 exec 6>&1
26898 ## ----------------------------------- ##
26899 ## Main body of $CONFIG_STATUS script. ##
26900 ## ----------------------------------- ##
26901 _ASEOF
26902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26903
26904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26905 # Save the log message, to keep $0 and so on meaningful, and to
26906 # report actual input values of CONFIG_FILES etc. instead of their
26907 # values after options handling.
26908 ac_log="
26909 This file was extended by Quagga $as_me 1.2.3, which was
26910 generated by GNU Autoconf 2.69.  Invocation command line was
26911
26912   CONFIG_FILES    = $CONFIG_FILES
26913   CONFIG_HEADERS  = $CONFIG_HEADERS
26914   CONFIG_LINKS    = $CONFIG_LINKS
26915   CONFIG_COMMANDS = $CONFIG_COMMANDS
26916   $ $0 $@
26917
26918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26919 "
26920
26921 _ACEOF
26922
26923 case $ac_config_files in *"
26924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26925 esac
26926
26927 case $ac_config_headers in *"
26928 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26929 esac
26930
26931
26932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26933 # Files that config.status was made for.
26934 config_files="$ac_config_files"
26935 config_headers="$ac_config_headers"
26936 config_commands="$ac_config_commands"
26937
26938 _ACEOF
26939
26940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26941 ac_cs_usage="\
26942 \`$as_me' instantiates files and other configuration actions
26943 from templates according to the current configuration.  Unless the files
26944 and actions are specified as TAGs, all are instantiated by default.
26945
26946 Usage: $0 [OPTION]... [TAG]...
26947
26948   -h, --help       print this help, then exit
26949   -V, --version    print version number and configuration settings, then exit
26950       --config     print configuration, then exit
26951   -q, --quiet, --silent
26952                    do not print progress messages
26953   -d, --debug      don't remove temporary files
26954       --recheck    update $as_me by reconfiguring in the same conditions
26955       --file=FILE[:TEMPLATE]
26956                    instantiate the configuration file FILE
26957       --header=FILE[:TEMPLATE]
26958                    instantiate the configuration header FILE
26959
26960 Configuration files:
26961 $config_files
26962
26963 Configuration headers:
26964 $config_headers
26965
26966 Configuration commands:
26967 $config_commands
26968
26969 Report bugs to <https://bugzilla.quagga.net>."
26970
26971 _ACEOF
26972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26973 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26974 ac_cs_version="\\
26975 Quagga config.status 1.2.3
26976 configured by $0, generated by GNU Autoconf 2.69,
26977   with options \\"\$ac_cs_config\\"
26978
26979 Copyright (C) 2012 Free Software Foundation, Inc.
26980 This config.status script is free software; the Free Software Foundation
26981 gives unlimited permission to copy, distribute and modify it."
26982
26983 ac_pwd='$ac_pwd'
26984 srcdir='$srcdir'
26985 INSTALL='$INSTALL'
26986 MKDIR_P='$MKDIR_P'
26987 AWK='$AWK'
26988 test -n "\$AWK" || AWK=awk
26989 _ACEOF
26990
26991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26992 # The default lists apply if the user does not specify any file.
26993 ac_need_defaults=:
26994 while test $# != 0
26995 do
26996   case $1 in
26997   --*=?*)
26998     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26999     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27000     ac_shift=:
27001     ;;
27002   --*=)
27003     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27004     ac_optarg=
27005     ac_shift=:
27006     ;;
27007   *)
27008     ac_option=$1
27009     ac_optarg=$2
27010     ac_shift=shift
27011     ;;
27012   esac
27013
27014   case $ac_option in
27015   # Handling of the options.
27016   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27017     ac_cs_recheck=: ;;
27018   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27019     $as_echo "$ac_cs_version"; exit ;;
27020   --config | --confi | --conf | --con | --co | --c )
27021     $as_echo "$ac_cs_config"; exit ;;
27022   --debug | --debu | --deb | --de | --d | -d )
27023     debug=: ;;
27024   --file | --fil | --fi | --f )
27025     $ac_shift
27026     case $ac_optarg in
27027     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27028     '') as_fn_error $? "missing file argument" ;;
27029     esac
27030     as_fn_append CONFIG_FILES " '$ac_optarg'"
27031     ac_need_defaults=false;;
27032   --header | --heade | --head | --hea )
27033     $ac_shift
27034     case $ac_optarg in
27035     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27036     esac
27037     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27038     ac_need_defaults=false;;
27039   --he | --h)
27040     # Conflict between --help and --header
27041     as_fn_error $? "ambiguous option: \`$1'
27042 Try \`$0 --help' for more information.";;
27043   --help | --hel | -h )
27044     $as_echo "$ac_cs_usage"; exit ;;
27045   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27046   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27047     ac_cs_silent=: ;;
27048
27049   # This is an error.
27050   -*) as_fn_error $? "unrecognized option: \`$1'
27051 Try \`$0 --help' for more information." ;;
27052
27053   *) as_fn_append ac_config_targets " $1"
27054      ac_need_defaults=false ;;
27055
27056   esac
27057   shift
27058 done
27059
27060 ac_configure_extra_args=
27061
27062 if $ac_cs_silent; then
27063   exec 6>/dev/null
27064   ac_configure_extra_args="$ac_configure_extra_args --silent"
27065 fi
27066
27067 _ACEOF
27068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27069 if \$ac_cs_recheck; then
27070   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27071   shift
27072   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27073   CONFIG_SHELL='$SHELL'
27074   export CONFIG_SHELL
27075   exec "\$@"
27076 fi
27077
27078 _ACEOF
27079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27080 exec 5>>config.log
27081 {
27082   echo
27083   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27084 ## Running $as_me. ##
27085 _ASBOX
27086   $as_echo "$ac_log"
27087 } >&5
27088
27089 _ACEOF
27090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27091 #
27092 # INIT-COMMANDS
27093 #
27094 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27095
27096
27097 # The HP-UX ksh and POSIX shell print the target directory to stdout
27098 # if CDPATH is set.
27099 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27100
27101 sed_quote_subst='$sed_quote_subst'
27102 double_quote_subst='$double_quote_subst'
27103 delay_variable_subst='$delay_variable_subst'
27104 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27105 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27106 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27107 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27108 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27109 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27110 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27111 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27112 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27113 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27114 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27115 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27116 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27117 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27118 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27119 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27120 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27121 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27122 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27123 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27124 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27125 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27126 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27127 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27128 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27129 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27130 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27131 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27132 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27133 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27134 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27135 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27136 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27137 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27138 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27139 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27140 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27141 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27142 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27143 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27144 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27145 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27146 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27147 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27148 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27149 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27150 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27151 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27152 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27153 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27154 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27155 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27156 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27157 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27158 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27159 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27160 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27161 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27162 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"`'
27163 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27164 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27165 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27166 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27167 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27168 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27169 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27170 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27171 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27172 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27173 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27174 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27175 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27176 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27177 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27178 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27179 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27180 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27181 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27182 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27183 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27184 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27185 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27186 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27187 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27188 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27189 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27190 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27191 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27192 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27193 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27194 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27195 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27196 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27197 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27198 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27199 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27200 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27201 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27202 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27203 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27204 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27205 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27206 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27207 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27208 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27209 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27210 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27211 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27212 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27213 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27214 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27215 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27216 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27217 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27218 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27219 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27220 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27221 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27222 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27223 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27224 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27225 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27226 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27227 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27228 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27229 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27230 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27231 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27232 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27233 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27234 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27235 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27236 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27237 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27238 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27239
27240 LTCC='$LTCC'
27241 LTCFLAGS='$LTCFLAGS'
27242 compiler='$compiler_DEFAULT'
27243
27244 # A function that is used when there is no print builtin or printf.
27245 func_fallback_echo ()
27246 {
27247   eval 'cat <<_LTECHO_EOF
27248 \$1
27249 _LTECHO_EOF'
27250 }
27251
27252 # Quote evaled strings.
27253 for var in SHELL \
27254 ECHO \
27255 PATH_SEPARATOR \
27256 SED \
27257 GREP \
27258 EGREP \
27259 FGREP \
27260 LD \
27261 NM \
27262 LN_S \
27263 lt_SP2NL \
27264 lt_NL2SP \
27265 reload_flag \
27266 OBJDUMP \
27267 deplibs_check_method \
27268 file_magic_cmd \
27269 file_magic_glob \
27270 want_nocaseglob \
27271 DLLTOOL \
27272 sharedlib_from_linklib_cmd \
27273 AR \
27274 AR_FLAGS \
27275 archiver_list_spec \
27276 STRIP \
27277 RANLIB \
27278 CC \
27279 CFLAGS \
27280 compiler \
27281 lt_cv_sys_global_symbol_pipe \
27282 lt_cv_sys_global_symbol_to_cdecl \
27283 lt_cv_sys_global_symbol_to_import \
27284 lt_cv_sys_global_symbol_to_c_name_address \
27285 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27286 lt_cv_nm_interface \
27287 nm_file_list_spec \
27288 lt_cv_truncate_bin \
27289 lt_prog_compiler_no_builtin_flag \
27290 lt_prog_compiler_pic \
27291 lt_prog_compiler_wl \
27292 lt_prog_compiler_static \
27293 lt_cv_prog_compiler_c_o \
27294 need_locks \
27295 MANIFEST_TOOL \
27296 DSYMUTIL \
27297 NMEDIT \
27298 LIPO \
27299 OTOOL \
27300 OTOOL64 \
27301 shrext_cmds \
27302 export_dynamic_flag_spec \
27303 whole_archive_flag_spec \
27304 compiler_needs_object \
27305 with_gnu_ld \
27306 allow_undefined_flag \
27307 no_undefined_flag \
27308 hardcode_libdir_flag_spec \
27309 hardcode_libdir_separator \
27310 exclude_expsyms \
27311 include_expsyms \
27312 file_list_spec \
27313 variables_saved_for_relink \
27314 libname_spec \
27315 library_names_spec \
27316 soname_spec \
27317 install_override_mode \
27318 finish_eval \
27319 old_striplib \
27320 striplib; do
27321     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27322     *[\\\\\\\`\\"\\\$]*)
27323       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27324       ;;
27325     *)
27326       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27327       ;;
27328     esac
27329 done
27330
27331 # Double-quote double-evaled strings.
27332 for var in reload_cmds \
27333 old_postinstall_cmds \
27334 old_postuninstall_cmds \
27335 old_archive_cmds \
27336 extract_expsyms_cmds \
27337 old_archive_from_new_cmds \
27338 old_archive_from_expsyms_cmds \
27339 archive_cmds \
27340 archive_expsym_cmds \
27341 module_cmds \
27342 module_expsym_cmds \
27343 export_symbols_cmds \
27344 prelink_cmds \
27345 postlink_cmds \
27346 postinstall_cmds \
27347 postuninstall_cmds \
27348 finish_cmds \
27349 sys_lib_search_path_spec \
27350 configure_time_dlsearch_path \
27351 configure_time_lt_sys_library_path; do
27352     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27353     *[\\\\\\\`\\"\\\$]*)
27354       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27355       ;;
27356     *)
27357       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27358       ;;
27359     esac
27360 done
27361
27362 ac_aux_dir='$ac_aux_dir'
27363
27364 # See if we are running on zsh, and set the options that allow our
27365 # commands through without removal of \ escapes INIT.
27366 if test -n "\${ZSH_VERSION+set}"; then
27367    setopt NO_GLOB_SUBST
27368 fi
27369
27370
27371     PACKAGE='$PACKAGE'
27372     VERSION='$VERSION'
27373     RM='$RM'
27374     ofile='$ofile'
27375
27376 ac_aux_dir='$ac_aux_dir'
27377
27378
27379
27380 _ACEOF
27381
27382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27383
27384 # Handling of arguments.
27385 for ac_config_target in $ac_config_targets
27386 do
27387   case $ac_config_target in
27388     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27389     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27390     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27391     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27392     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27393     "qpb/Makefile") CONFIG_FILES="$CONFIG_FILES qpb/Makefile" ;;
27394     "zebra/Makefile") CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
27395     "ripd/Makefile") CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
27396     "ripngd/Makefile") CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
27397     "bgpd/Makefile") CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
27398     "ospfd/Makefile") CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
27399     "watchquagga/Makefile") CONFIG_FILES="$CONFIG_FILES watchquagga/Makefile" ;;
27400     "ospf6d/Makefile") CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
27401     "isisd/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
27402     "vtysh/Makefile") CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
27403     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27404     "ospfclient/Makefile") CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
27405     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27406     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
27407     "pimd/Makefile") CONFIG_FILES="$CONFIG_FILES pimd/Makefile" ;;
27408     "nhrpd/Makefile") CONFIG_FILES="$CONFIG_FILES nhrpd/Makefile" ;;
27409     "redhat/Makefile") CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
27410     "pkgsrc/Makefile") CONFIG_FILES="$CONFIG_FILES pkgsrc/Makefile" ;;
27411     "fpm/Makefile") CONFIG_FILES="$CONFIG_FILES fpm/Makefile" ;;
27412     "redhat/quagga.spec") CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
27413     "redhat/quagga.sysconfig") CONFIG_FILES="$CONFIG_FILES redhat/quagga.sysconfig" ;;
27414     "lib/version.h") CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
27415     "isisd/topology/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/topology/Makefile" ;;
27416     "pkgsrc/bgpd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/bgpd.sh" ;;
27417     "pkgsrc/ospf6d.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospf6d.sh" ;;
27418     "pkgsrc/ospfd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospfd.sh" ;;
27419     "pkgsrc/ripd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripd.sh" ;;
27420     "pkgsrc/ripngd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripngd.sh" ;;
27421     "pkgsrc/zebra.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/zebra.sh" ;;
27422     "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
27423     "vtysh/extract.pl") CONFIG_FILES="$CONFIG_FILES vtysh/extract.pl" ;;
27424
27425   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27426   esac
27427 done
27428
27429
27430 # If the user did not use the arguments to specify the items to instantiate,
27431 # then the envvar interface is used.  Set only those that are not.
27432 # We use the long form for the default assignment because of an extremely
27433 # bizarre bug on SunOS 4.1.3.
27434 if $ac_need_defaults; then
27435   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27436   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27437   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27438 fi
27439
27440 # Have a temporary directory for convenience.  Make it in the build tree
27441 # simply because there is no reason against having it here, and in addition,
27442 # creating and moving files from /tmp can sometimes cause problems.
27443 # Hook for its removal unless debugging.
27444 # Note that there is a small window in which the directory will not be cleaned:
27445 # after its creation but before its name has been assigned to `$tmp'.
27446 $debug ||
27447 {
27448   tmp= ac_tmp=
27449   trap 'exit_status=$?
27450   : "${ac_tmp:=$tmp}"
27451   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27452 ' 0
27453   trap 'as_fn_exit 1' 1 2 13 15
27454 }
27455 # Create a (secure) tmp directory for tmp files.
27456
27457 {
27458   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27459   test -d "$tmp"
27460 }  ||
27461 {
27462   tmp=./conf$$-$RANDOM
27463   (umask 077 && mkdir "$tmp")
27464 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27465 ac_tmp=$tmp
27466
27467 # Set up the scripts for CONFIG_FILES section.
27468 # No need to generate them if there are no CONFIG_FILES.
27469 # This happens for instance with `./config.status config.h'.
27470 if test -n "$CONFIG_FILES"; then
27471
27472
27473 ac_cr=`echo X | tr X '\015'`
27474 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27475 # But we know of no other shell where ac_cr would be empty at this
27476 # point, so we can use a bashism as a fallback.
27477 if test "x$ac_cr" = x; then
27478   eval ac_cr=\$\'\\r\'
27479 fi
27480 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27481 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27482   ac_cs_awk_cr='\\r'
27483 else
27484   ac_cs_awk_cr=$ac_cr
27485 fi
27486
27487 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27488 _ACEOF
27489
27490
27491 {
27492   echo "cat >conf$$subs.awk <<_ACEOF" &&
27493   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27494   echo "_ACEOF"
27495 } >conf$$subs.sh ||
27496   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27497 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27498 ac_delim='%!_!# '
27499 for ac_last_try in false false false false false :; do
27500   . ./conf$$subs.sh ||
27501     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27502
27503   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27504   if test $ac_delim_n = $ac_delim_num; then
27505     break
27506   elif $ac_last_try; then
27507     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27508   else
27509     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27510   fi
27511 done
27512 rm -f conf$$subs.sh
27513
27514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27515 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27516 _ACEOF
27517 sed -n '
27518 h
27519 s/^/S["/; s/!.*/"]=/
27520 p
27521 g
27522 s/^[^!]*!//
27523 :repl
27524 t repl
27525 s/'"$ac_delim"'$//
27526 t delim
27527 :nl
27528 h
27529 s/\(.\{148\}\)..*/\1/
27530 t more1
27531 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27532 p
27533 n
27534 b repl
27535 :more1
27536 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27537 p
27538 g
27539 s/.\{148\}//
27540 t nl
27541 :delim
27542 h
27543 s/\(.\{148\}\)..*/\1/
27544 t more2
27545 s/["\\]/\\&/g; s/^/"/; s/$/"/
27546 p
27547 b
27548 :more2
27549 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27550 p
27551 g
27552 s/.\{148\}//
27553 t delim
27554 ' <conf$$subs.awk | sed '
27555 /^[^""]/{
27556   N
27557   s/\n//
27558 }
27559 ' >>$CONFIG_STATUS || ac_write_fail=1
27560 rm -f conf$$subs.awk
27561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27562 _ACAWK
27563 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27564   for (key in S) S_is_set[key] = 1
27565   FS = "\a"
27566
27567 }
27568 {
27569   line = $ 0
27570   nfields = split(line, field, "@")
27571   substed = 0
27572   len = length(field[1])
27573   for (i = 2; i < nfields; i++) {
27574     key = field[i]
27575     keylen = length(key)
27576     if (S_is_set[key]) {
27577       value = S[key]
27578       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27579       len += length(value) + length(field[++i])
27580       substed = 1
27581     } else
27582       len += 1 + keylen
27583   }
27584
27585   print line
27586 }
27587
27588 _ACAWK
27589 _ACEOF
27590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27591 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27592   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27593 else
27594   cat
27595 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27596   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27597 _ACEOF
27598
27599 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27600 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27601 # trailing colons and then remove the whole line if VPATH becomes empty
27602 # (actually we leave an empty line to preserve line numbers).
27603 if test "x$srcdir" = x.; then
27604   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27605 h
27606 s///
27607 s/^/:/
27608 s/[      ]*$/:/
27609 s/:\$(srcdir):/:/g
27610 s/:\${srcdir}:/:/g
27611 s/:@srcdir@:/:/g
27612 s/^:*//
27613 s/:*$//
27614 x
27615 s/\(=[   ]*\).*/\1/
27616 G
27617 s/\n//
27618 s/^[^=]*=[       ]*$//
27619 }'
27620 fi
27621
27622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27623 fi # test -n "$CONFIG_FILES"
27624
27625 # Set up the scripts for CONFIG_HEADERS section.
27626 # No need to generate them if there are no CONFIG_HEADERS.
27627 # This happens for instance with `./config.status Makefile'.
27628 if test -n "$CONFIG_HEADERS"; then
27629 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27630 BEGIN {
27631 _ACEOF
27632
27633 # Transform confdefs.h into an awk script `defines.awk', embedded as
27634 # here-document in config.status, that substitutes the proper values into
27635 # config.h.in to produce config.h.
27636
27637 # Create a delimiter string that does not exist in confdefs.h, to ease
27638 # handling of long lines.
27639 ac_delim='%!_!# '
27640 for ac_last_try in false false :; do
27641   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27642   if test -z "$ac_tt"; then
27643     break
27644   elif $ac_last_try; then
27645     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27646   else
27647     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27648   fi
27649 done
27650
27651 # For the awk script, D is an array of macro values keyed by name,
27652 # likewise P contains macro parameters if any.  Preserve backslash
27653 # newline sequences.
27654
27655 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27656 sed -n '
27657 s/.\{148\}/&'"$ac_delim"'/g
27658 t rset
27659 :rset
27660 s/^[     ]*#[    ]*define[       ][      ]*/ /
27661 t def
27662 d
27663 :def
27664 s/\\$//
27665 t bsnl
27666 s/["\\]/\\&/g
27667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27668 D["\1"]=" \3"/p
27669 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27670 d
27671 :bsnl
27672 s/["\\]/\\&/g
27673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27674 D["\1"]=" \3\\\\\\n"\\/p
27675 t cont
27676 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27677 t cont
27678 d
27679 :cont
27680 n
27681 s/.\{148\}/&'"$ac_delim"'/g
27682 t clear
27683 :clear
27684 s/\\$//
27685 t bsnlc
27686 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27687 d
27688 :bsnlc
27689 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27690 b cont
27691 ' <confdefs.h | sed '
27692 s/'"$ac_delim"'/"\\\
27693 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27694
27695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27696   for (key in D) D_is_set[key] = 1
27697   FS = "\a"
27698 }
27699 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27700   line = \$ 0
27701   split(line, arg, " ")
27702   if (arg[1] == "#") {
27703     defundef = arg[2]
27704     mac1 = arg[3]
27705   } else {
27706     defundef = substr(arg[1], 2)
27707     mac1 = arg[2]
27708   }
27709   split(mac1, mac2, "(") #)
27710   macro = mac2[1]
27711   prefix = substr(line, 1, index(line, defundef) - 1)
27712   if (D_is_set[macro]) {
27713     # Preserve the white space surrounding the "#".
27714     print prefix "define", macro P[macro] D[macro]
27715     next
27716   } else {
27717     # Replace #undef with comments.  This is necessary, for example,
27718     # in the case of _POSIX_SOURCE, which is predefined and required
27719     # on some systems where configure will not decide to define it.
27720     if (defundef == "undef") {
27721       print "/*", prefix defundef, macro, "*/"
27722       next
27723     }
27724   }
27725 }
27726 { print }
27727 _ACAWK
27728 _ACEOF
27729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27730   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27731 fi # test -n "$CONFIG_HEADERS"
27732
27733
27734 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27735 shift
27736 for ac_tag
27737 do
27738   case $ac_tag in
27739   :[FHLC]) ac_mode=$ac_tag; continue;;
27740   esac
27741   case $ac_mode$ac_tag in
27742   :[FHL]*:*);;
27743   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27744   :[FH]-) ac_tag=-:-;;
27745   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27746   esac
27747   ac_save_IFS=$IFS
27748   IFS=:
27749   set x $ac_tag
27750   IFS=$ac_save_IFS
27751   shift
27752   ac_file=$1
27753   shift
27754
27755   case $ac_mode in
27756   :L) ac_source=$1;;
27757   :[FH])
27758     ac_file_inputs=
27759     for ac_f
27760     do
27761       case $ac_f in
27762       -) ac_f="$ac_tmp/stdin";;
27763       *) # Look for the file first in the build tree, then in the source tree
27764          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27765          # because $ac_f cannot contain `:'.
27766          test -f "$ac_f" ||
27767            case $ac_f in
27768            [\\/$]*) false;;
27769            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27770            esac ||
27771            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27772       esac
27773       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27774       as_fn_append ac_file_inputs " '$ac_f'"
27775     done
27776
27777     # Let's still pretend it is `configure' which instantiates (i.e., don't
27778     # use $as_me), people would be surprised to read:
27779     #    /* config.h.  Generated by config.status.  */
27780     configure_input='Generated from '`
27781           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27782         `' by configure.'
27783     if test x"$ac_file" != x-; then
27784       configure_input="$ac_file.  $configure_input"
27785       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27786 $as_echo "$as_me: creating $ac_file" >&6;}
27787     fi
27788     # Neutralize special characters interpreted by sed in replacement strings.
27789     case $configure_input in #(
27790     *\&* | *\|* | *\\* )
27791        ac_sed_conf_input=`$as_echo "$configure_input" |
27792        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27793     *) ac_sed_conf_input=$configure_input;;
27794     esac
27795
27796     case $ac_tag in
27797     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27798       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27799     esac
27800     ;;
27801   esac
27802
27803   ac_dir=`$as_dirname -- "$ac_file" ||
27804 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27805          X"$ac_file" : 'X\(//\)[^/]' \| \
27806          X"$ac_file" : 'X\(//\)$' \| \
27807          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27808 $as_echo X"$ac_file" |
27809     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27810             s//\1/
27811             q
27812           }
27813           /^X\(\/\/\)[^/].*/{
27814             s//\1/
27815             q
27816           }
27817           /^X\(\/\/\)$/{
27818             s//\1/
27819             q
27820           }
27821           /^X\(\/\).*/{
27822             s//\1/
27823             q
27824           }
27825           s/.*/./; q'`
27826   as_dir="$ac_dir"; as_fn_mkdir_p
27827   ac_builddir=.
27828
27829 case "$ac_dir" in
27830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27831 *)
27832   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27833   # A ".." for each directory in $ac_dir_suffix.
27834   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27835   case $ac_top_builddir_sub in
27836   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27837   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27838   esac ;;
27839 esac
27840 ac_abs_top_builddir=$ac_pwd
27841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27842 # for backward compatibility:
27843 ac_top_builddir=$ac_top_build_prefix
27844
27845 case $srcdir in
27846   .)  # We are building in place.
27847     ac_srcdir=.
27848     ac_top_srcdir=$ac_top_builddir_sub
27849     ac_abs_top_srcdir=$ac_pwd ;;
27850   [\\/]* | ?:[\\/]* )  # Absolute name.
27851     ac_srcdir=$srcdir$ac_dir_suffix;
27852     ac_top_srcdir=$srcdir
27853     ac_abs_top_srcdir=$srcdir ;;
27854   *) # Relative name.
27855     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27856     ac_top_srcdir=$ac_top_build_prefix$srcdir
27857     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27858 esac
27859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27860
27861
27862   case $ac_mode in
27863   :F)
27864   #
27865   # CONFIG_FILE
27866   #
27867
27868   case $INSTALL in
27869   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27870   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27871   esac
27872   ac_MKDIR_P=$MKDIR_P
27873   case $MKDIR_P in
27874   [\\/$]* | ?:[\\/]* ) ;;
27875   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27876   esac
27877 _ACEOF
27878
27879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27880 # If the template does not know about datarootdir, expand it.
27881 # FIXME: This hack should be removed a few years after 2.60.
27882 ac_datarootdir_hack=; ac_datarootdir_seen=
27883 ac_sed_dataroot='
27884 /datarootdir/ {
27885   p
27886   q
27887 }
27888 /@datadir@/p
27889 /@docdir@/p
27890 /@infodir@/p
27891 /@localedir@/p
27892 /@mandir@/p'
27893 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27894 *datarootdir*) ac_datarootdir_seen=yes;;
27895 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27896   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27897 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27898 _ACEOF
27899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27900   ac_datarootdir_hack='
27901   s&@datadir@&$datadir&g
27902   s&@docdir@&$docdir&g
27903   s&@infodir@&$infodir&g
27904   s&@localedir@&$localedir&g
27905   s&@mandir@&$mandir&g
27906   s&\\\${datarootdir}&$datarootdir&g' ;;
27907 esac
27908 _ACEOF
27909
27910 # Neutralize VPATH when `$srcdir' = `.'.
27911 # Shell code in configure.ac might set extrasub.
27912 # FIXME: do we really want to maintain this feature?
27913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27914 ac_sed_extra="$ac_vpsub
27915 $extrasub
27916 _ACEOF
27917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27918 :t
27919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27920 s|@configure_input@|$ac_sed_conf_input|;t t
27921 s&@top_builddir@&$ac_top_builddir_sub&;t t
27922 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27923 s&@srcdir@&$ac_srcdir&;t t
27924 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27925 s&@top_srcdir@&$ac_top_srcdir&;t t
27926 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27927 s&@builddir@&$ac_builddir&;t t
27928 s&@abs_builddir@&$ac_abs_builddir&;t t
27929 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27930 s&@INSTALL@&$ac_INSTALL&;t t
27931 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27932 $ac_datarootdir_hack
27933 "
27934 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27935   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27936
27937 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27938   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27939   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27940       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27941   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27942 which seems to be undefined.  Please make sure it is defined" >&5
27943 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27944 which seems to be undefined.  Please make sure it is defined" >&2;}
27945
27946   rm -f "$ac_tmp/stdin"
27947   case $ac_file in
27948   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27949   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27950   esac \
27951   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27952  ;;
27953   :H)
27954   #
27955   # CONFIG_HEADER
27956   #
27957   if test x"$ac_file" != x-; then
27958     {
27959       $as_echo "/* $configure_input  */" \
27960       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27961     } >"$ac_tmp/config.h" \
27962       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27963     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27964       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27965 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27966     else
27967       rm -f "$ac_file"
27968       mv "$ac_tmp/config.h" "$ac_file" \
27969         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27970     fi
27971   else
27972     $as_echo "/* $configure_input  */" \
27973       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27974       || as_fn_error $? "could not create -" "$LINENO" 5
27975   fi
27976 # Compute "$ac_file"'s index in $config_headers.
27977 _am_arg="$ac_file"
27978 _am_stamp_count=1
27979 for _am_header in $config_headers :; do
27980   case $_am_header in
27981     $_am_arg | $_am_arg:* )
27982       break ;;
27983     * )
27984       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27985   esac
27986 done
27987 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27988 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27989          X"$_am_arg" : 'X\(//\)[^/]' \| \
27990          X"$_am_arg" : 'X\(//\)$' \| \
27991          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27992 $as_echo X"$_am_arg" |
27993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27994             s//\1/
27995             q
27996           }
27997           /^X\(\/\/\)[^/].*/{
27998             s//\1/
27999             q
28000           }
28001           /^X\(\/\/\)$/{
28002             s//\1/
28003             q
28004           }
28005           /^X\(\/\).*/{
28006             s//\1/
28007             q
28008           }
28009           s/.*/./; q'`/stamp-h$_am_stamp_count
28010  ;;
28011
28012   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28013 $as_echo "$as_me: executing $ac_file commands" >&6;}
28014  ;;
28015   esac
28016
28017
28018   case $ac_file$ac_mode in
28019     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28020   # Older Autoconf quotes --file arguments for eval, but not when files
28021   # are listed without --file.  Let's play safe and only enable the eval
28022   # if we detect the quoting.
28023   case $CONFIG_FILES in
28024   *\'*) eval set x "$CONFIG_FILES" ;;
28025   *)   set x $CONFIG_FILES ;;
28026   esac
28027   shift
28028   for mf
28029   do
28030     # Strip MF so we end up with the name of the file.
28031     mf=`echo "$mf" | sed -e 's/:.*$//'`
28032     # Check whether this is an Automake generated Makefile or not.
28033     # We used to match only the files named 'Makefile.in', but
28034     # some people rename them; so instead we look at the file content.
28035     # Grep'ing the first line is not enough: some people post-process
28036     # each Makefile.in and add a new line on top of each file to say so.
28037     # Grep'ing the whole file is not good either: AIX grep has a line
28038     # limit of 2048, but all sed's we know have understand at least 4000.
28039     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28040       dirpart=`$as_dirname -- "$mf" ||
28041 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28042          X"$mf" : 'X\(//\)[^/]' \| \
28043          X"$mf" : 'X\(//\)$' \| \
28044          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28045 $as_echo X"$mf" |
28046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28047             s//\1/
28048             q
28049           }
28050           /^X\(\/\/\)[^/].*/{
28051             s//\1/
28052             q
28053           }
28054           /^X\(\/\/\)$/{
28055             s//\1/
28056             q
28057           }
28058           /^X\(\/\).*/{
28059             s//\1/
28060             q
28061           }
28062           s/.*/./; q'`
28063     else
28064       continue
28065     fi
28066     # Extract the definition of DEPDIR, am__include, and am__quote
28067     # from the Makefile without running 'make'.
28068     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28069     test -z "$DEPDIR" && continue
28070     am__include=`sed -n 's/^am__include = //p' < "$mf"`
28071     test -z "$am__include" && continue
28072     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28073     # Find all dependency output files, they are included files with
28074     # $(DEPDIR) in their names.  We invoke sed twice because it is the
28075     # simplest approach to changing $(DEPDIR) to its actual value in the
28076     # expansion.
28077     for file in `sed -n "
28078       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28079          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28080       # Make sure the directory exists.
28081       test -f "$dirpart/$file" && continue
28082       fdir=`$as_dirname -- "$file" ||
28083 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28084          X"$file" : 'X\(//\)[^/]' \| \
28085          X"$file" : 'X\(//\)$' \| \
28086          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28087 $as_echo X"$file" |
28088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28089             s//\1/
28090             q
28091           }
28092           /^X\(\/\/\)[^/].*/{
28093             s//\1/
28094             q
28095           }
28096           /^X\(\/\/\)$/{
28097             s//\1/
28098             q
28099           }
28100           /^X\(\/\).*/{
28101             s//\1/
28102             q
28103           }
28104           s/.*/./; q'`
28105       as_dir=$dirpart/$fdir; as_fn_mkdir_p
28106       # echo "creating $dirpart/$file"
28107       echo '# dummy' > "$dirpart/$file"
28108     done
28109   done
28110 }
28111  ;;
28112     "libtool":C)
28113
28114     # See if we are running on zsh, and set the options that allow our
28115     # commands through without removal of \ escapes.
28116     if test -n "${ZSH_VERSION+set}"; then
28117       setopt NO_GLOB_SUBST
28118     fi
28119
28120     cfgfile=${ofile}T
28121     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28122     $RM "$cfgfile"
28123
28124     cat <<_LT_EOF >> "$cfgfile"
28125 #! $SHELL
28126 # Generated automatically by $as_me ($PACKAGE) $VERSION
28127 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28128 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28129
28130 # Provide generalized library-building support services.
28131 # Written by Gordon Matzigkeit, 1996
28132
28133 # Copyright (C) 2014 Free Software Foundation, Inc.
28134 # This is free software; see the source for copying conditions.  There is NO
28135 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28136
28137 # GNU Libtool is free software; you can redistribute it and/or modify
28138 # it under the terms of the GNU General Public License as published by
28139 # the Free Software Foundation; either version 2 of of the License, or
28140 # (at your option) any later version.
28141 #
28142 # As a special exception to the GNU General Public License, if you
28143 # distribute this file as part of a program or library that is built
28144 # using GNU Libtool, you may include this file under the  same
28145 # distribution terms that you use for the rest of that program.
28146 #
28147 # GNU Libtool is distributed in the hope that it will be useful, but
28148 # WITHOUT ANY WARRANTY; without even the implied warranty of
28149 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28150 # GNU General Public License for more details.
28151 #
28152 # You should have received a copy of the GNU General Public License
28153 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
28154
28155
28156 # The names of the tagged configurations supported by this script.
28157 available_tags=''
28158
28159 # Configured defaults for sys_lib_dlsearch_path munging.
28160 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28161
28162 # ### BEGIN LIBTOOL CONFIG
28163
28164 # Which release of libtool.m4 was used?
28165 macro_version=$macro_version
28166 macro_revision=$macro_revision
28167
28168 # Whether or not to build shared libraries.
28169 build_libtool_libs=$enable_shared
28170
28171 # Whether or not to build static libraries.
28172 build_old_libs=$enable_static
28173
28174 # What type of objects to build.
28175 pic_mode=$pic_mode
28176
28177 # Whether or not to optimize for fast installation.
28178 fast_install=$enable_fast_install
28179
28180 # Shared archive member basename,for filename based shared library versioning on AIX.
28181 shared_archive_member_spec=$shared_archive_member_spec
28182
28183 # Shell to use when invoking shell scripts.
28184 SHELL=$lt_SHELL
28185
28186 # An echo program that protects backslashes.
28187 ECHO=$lt_ECHO
28188
28189 # The PATH separator for the build system.
28190 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28191
28192 # The host system.
28193 host_alias=$host_alias
28194 host=$host
28195 host_os=$host_os
28196
28197 # The build system.
28198 build_alias=$build_alias
28199 build=$build
28200 build_os=$build_os
28201
28202 # A sed program that does not truncate output.
28203 SED=$lt_SED
28204
28205 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28206 Xsed="\$SED -e 1s/^X//"
28207
28208 # A grep program that handles long lines.
28209 GREP=$lt_GREP
28210
28211 # An ERE matcher.
28212 EGREP=$lt_EGREP
28213
28214 # A literal string matcher.
28215 FGREP=$lt_FGREP
28216
28217 # A BSD- or MS-compatible name lister.
28218 NM=$lt_NM
28219
28220 # Whether we need soft or hard links.
28221 LN_S=$lt_LN_S
28222
28223 # What is the maximum length of a command?
28224 max_cmd_len=$max_cmd_len
28225
28226 # Object file suffix (normally "o").
28227 objext=$ac_objext
28228
28229 # Executable file suffix (normally "").
28230 exeext=$exeext
28231
28232 # whether the shell understands "unset".
28233 lt_unset=$lt_unset
28234
28235 # turn spaces into newlines.
28236 SP2NL=$lt_lt_SP2NL
28237
28238 # turn newlines into spaces.
28239 NL2SP=$lt_lt_NL2SP
28240
28241 # convert \$build file names to \$host format.
28242 to_host_file_cmd=$lt_cv_to_host_file_cmd
28243
28244 # convert \$build files to toolchain format.
28245 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28246
28247 # An object symbol dumper.
28248 OBJDUMP=$lt_OBJDUMP
28249
28250 # Method to check whether dependent libraries are shared objects.
28251 deplibs_check_method=$lt_deplibs_check_method
28252
28253 # Command to use when deplibs_check_method = "file_magic".
28254 file_magic_cmd=$lt_file_magic_cmd
28255
28256 # How to find potential files when deplibs_check_method = "file_magic".
28257 file_magic_glob=$lt_file_magic_glob
28258
28259 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28260 want_nocaseglob=$lt_want_nocaseglob
28261
28262 # DLL creation program.
28263 DLLTOOL=$lt_DLLTOOL
28264
28265 # Command to associate shared and link libraries.
28266 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28267
28268 # The archiver.
28269 AR=$lt_AR
28270
28271 # Flags to create an archive.
28272 AR_FLAGS=$lt_AR_FLAGS
28273
28274 # How to feed a file listing to the archiver.
28275 archiver_list_spec=$lt_archiver_list_spec
28276
28277 # A symbol stripping program.
28278 STRIP=$lt_STRIP
28279
28280 # Commands used to install an old-style archive.
28281 RANLIB=$lt_RANLIB
28282 old_postinstall_cmds=$lt_old_postinstall_cmds
28283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28284
28285 # Whether to use a lock for old archive extraction.
28286 lock_old_archive_extraction=$lock_old_archive_extraction
28287
28288 # A C compiler.
28289 LTCC=$lt_CC
28290
28291 # LTCC compiler flags.
28292 LTCFLAGS=$lt_CFLAGS
28293
28294 # Take the output of nm and produce a listing of raw symbols and C names.
28295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28296
28297 # Transform the output of nm in a proper C declaration.
28298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28299
28300 # Transform the output of nm into a list of symbols to manually relocate.
28301 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28302
28303 # Transform the output of nm in a C name address pair.
28304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28305
28306 # Transform the output of nm in a C name address pair when lib prefix is needed.
28307 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28308
28309 # The name lister interface.
28310 nm_interface=$lt_lt_cv_nm_interface
28311
28312 # Specify filename containing input files for \$NM.
28313 nm_file_list_spec=$lt_nm_file_list_spec
28314
28315 # The root where to search for dependent libraries,and where our libraries should be installed.
28316 lt_sysroot=$lt_sysroot
28317
28318 # Command to truncate a binary pipe.
28319 lt_truncate_bin=$lt_lt_cv_truncate_bin
28320
28321 # The name of the directory that contains temporary libtool files.
28322 objdir=$objdir
28323
28324 # Used to examine libraries when file_magic_cmd begins with "file".
28325 MAGIC_CMD=$MAGIC_CMD
28326
28327 # Must we lock files when doing compilation?
28328 need_locks=$lt_need_locks
28329
28330 # Manifest tool.
28331 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28332
28333 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28334 DSYMUTIL=$lt_DSYMUTIL
28335
28336 # Tool to change global to local symbols on Mac OS X.
28337 NMEDIT=$lt_NMEDIT
28338
28339 # Tool to manipulate fat objects and archives on Mac OS X.
28340 LIPO=$lt_LIPO
28341
28342 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28343 OTOOL=$lt_OTOOL
28344
28345 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28346 OTOOL64=$lt_OTOOL64
28347
28348 # Old archive suffix (normally "a").
28349 libext=$libext
28350
28351 # Shared library suffix (normally ".so").
28352 shrext_cmds=$lt_shrext_cmds
28353
28354 # The commands to extract the exported symbol list from a shared archive.
28355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28356
28357 # Variables whose values should be saved in libtool wrapper scripts and
28358 # restored at link time.
28359 variables_saved_for_relink=$lt_variables_saved_for_relink
28360
28361 # Do we need the "lib" prefix for modules?
28362 need_lib_prefix=$need_lib_prefix
28363
28364 # Do we need a version for libraries?
28365 need_version=$need_version
28366
28367 # Library versioning type.
28368 version_type=$version_type
28369
28370 # Shared library runtime path variable.
28371 runpath_var=$runpath_var
28372
28373 # Shared library path variable.
28374 shlibpath_var=$shlibpath_var
28375
28376 # Is shlibpath searched before the hard-coded library search path?
28377 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28378
28379 # Format of library name prefix.
28380 libname_spec=$lt_libname_spec
28381
28382 # List of archive names.  First name is the real one, the rest are links.
28383 # The last name is the one that the linker finds with -lNAME
28384 library_names_spec=$lt_library_names_spec
28385
28386 # The coded name of the library, if different from the real name.
28387 soname_spec=$lt_soname_spec
28388
28389 # Permission mode override for installation of shared libraries.
28390 install_override_mode=$lt_install_override_mode
28391
28392 # Command to use after installation of a shared archive.
28393 postinstall_cmds=$lt_postinstall_cmds
28394
28395 # Command to use after uninstallation of a shared archive.
28396 postuninstall_cmds=$lt_postuninstall_cmds
28397
28398 # Commands used to finish a libtool library installation in a directory.
28399 finish_cmds=$lt_finish_cmds
28400
28401 # As "finish_cmds", except a single script fragment to be evaled but
28402 # not shown.
28403 finish_eval=$lt_finish_eval
28404
28405 # Whether we should hardcode library paths into libraries.
28406 hardcode_into_libs=$hardcode_into_libs
28407
28408 # Compile-time system search path for libraries.
28409 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28410
28411 # Detected run-time system search path for libraries.
28412 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28413
28414 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28415 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28416
28417 # Whether dlopen is supported.
28418 dlopen_support=$enable_dlopen
28419
28420 # Whether dlopen of programs is supported.
28421 dlopen_self=$enable_dlopen_self
28422
28423 # Whether dlopen of statically linked programs is supported.
28424 dlopen_self_static=$enable_dlopen_self_static
28425
28426 # Commands to strip libraries.
28427 old_striplib=$lt_old_striplib
28428 striplib=$lt_striplib
28429
28430
28431 # The linker used to build libraries.
28432 LD=$lt_LD
28433
28434 # How to create reloadable object files.
28435 reload_flag=$lt_reload_flag
28436 reload_cmds=$lt_reload_cmds
28437
28438 # Commands used to build an old-style archive.
28439 old_archive_cmds=$lt_old_archive_cmds
28440
28441 # A language specific compiler.
28442 CC=$lt_compiler
28443
28444 # Is the compiler the GNU compiler?
28445 with_gcc=$GCC
28446
28447 # Compiler flag to turn off builtin functions.
28448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28449
28450 # Additional compiler flags for building library objects.
28451 pic_flag=$lt_lt_prog_compiler_pic
28452
28453 # How to pass a linker flag through the compiler.
28454 wl=$lt_lt_prog_compiler_wl
28455
28456 # Compiler flag to prevent dynamic linking.
28457 link_static_flag=$lt_lt_prog_compiler_static
28458
28459 # Does compiler simultaneously support -c and -o options?
28460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28461
28462 # Whether or not to add -lc for building shared libraries.
28463 build_libtool_need_lc=$archive_cmds_need_lc
28464
28465 # Whether or not to disallow shared libs when runtime libs are static.
28466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28467
28468 # Compiler flag to allow reflexive dlopens.
28469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28470
28471 # Compiler flag to generate shared objects directly from archives.
28472 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28473
28474 # Whether the compiler copes with passing no objects directly.
28475 compiler_needs_object=$lt_compiler_needs_object
28476
28477 # Create an old-style archive from a shared archive.
28478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28479
28480 # Create a temporary old-style archive to link instead of a shared archive.
28481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28482
28483 # Commands used to build a shared archive.
28484 archive_cmds=$lt_archive_cmds
28485 archive_expsym_cmds=$lt_archive_expsym_cmds
28486
28487 # Commands used to build a loadable module if different from building
28488 # a shared archive.
28489 module_cmds=$lt_module_cmds
28490 module_expsym_cmds=$lt_module_expsym_cmds
28491
28492 # Whether we are building with GNU ld or not.
28493 with_gnu_ld=$lt_with_gnu_ld
28494
28495 # Flag that allows shared libraries with undefined symbols to be built.
28496 allow_undefined_flag=$lt_allow_undefined_flag
28497
28498 # Flag that enforces no undefined symbols.
28499 no_undefined_flag=$lt_no_undefined_flag
28500
28501 # Flag to hardcode \$libdir into a binary during linking.
28502 # This must work even if \$libdir does not exist
28503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28504
28505 # Whether we need a single "-rpath" flag with a separated argument.
28506 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28507
28508 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28509 # DIR into the resulting binary.
28510 hardcode_direct=$hardcode_direct
28511
28512 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28513 # DIR into the resulting binary and the resulting library dependency is
28514 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28515 # library is relocated.
28516 hardcode_direct_absolute=$hardcode_direct_absolute
28517
28518 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28519 # into the resulting binary.
28520 hardcode_minus_L=$hardcode_minus_L
28521
28522 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28523 # into the resulting binary.
28524 hardcode_shlibpath_var=$hardcode_shlibpath_var
28525
28526 # Set to "yes" if building a shared library automatically hardcodes DIR
28527 # into the library and all subsequent libraries and executables linked
28528 # against it.
28529 hardcode_automatic=$hardcode_automatic
28530
28531 # Set to yes if linker adds runtime paths of dependent libraries
28532 # to runtime path list.
28533 inherit_rpath=$inherit_rpath
28534
28535 # Whether libtool must link a program against all its dependency libraries.
28536 link_all_deplibs=$link_all_deplibs
28537
28538 # Set to "yes" if exported symbols are required.
28539 always_export_symbols=$always_export_symbols
28540
28541 # The commands to list exported symbols.
28542 export_symbols_cmds=$lt_export_symbols_cmds
28543
28544 # Symbols that should not be listed in the preloaded symbols.
28545 exclude_expsyms=$lt_exclude_expsyms
28546
28547 # Symbols that must always be exported.
28548 include_expsyms=$lt_include_expsyms
28549
28550 # Commands necessary for linking programs (against libraries) with templates.
28551 prelink_cmds=$lt_prelink_cmds
28552
28553 # Commands necessary for finishing linking programs.
28554 postlink_cmds=$lt_postlink_cmds
28555
28556 # Specify filename containing input files.
28557 file_list_spec=$lt_file_list_spec
28558
28559 # How to hardcode a shared library path into an executable.
28560 hardcode_action=$hardcode_action
28561
28562 # ### END LIBTOOL CONFIG
28563
28564 _LT_EOF
28565
28566     cat <<'_LT_EOF' >> "$cfgfile"
28567
28568 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28569
28570 # func_munge_path_list VARIABLE PATH
28571 # -----------------------------------
28572 # VARIABLE is name of variable containing _space_ separated list of
28573 # directories to be munged by the contents of PATH, which is string
28574 # having a format:
28575 # "DIR[:DIR]:"
28576 #       string "DIR[ DIR]" will be prepended to VARIABLE
28577 # ":DIR[:DIR]"
28578 #       string "DIR[ DIR]" will be appended to VARIABLE
28579 # "DIRP[:DIRP]::[DIRA:]DIRA"
28580 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28581 #       "DIRA[ DIRA]" will be appended to VARIABLE
28582 # "DIR[:DIR]"
28583 #       VARIABLE will be replaced by "DIR[ DIR]"
28584 func_munge_path_list ()
28585 {
28586     case x$2 in
28587     x)
28588         ;;
28589     *:)
28590         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28591         ;;
28592     x:*)
28593         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28594         ;;
28595     *::*)
28596         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28597         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28598         ;;
28599     *)
28600         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28601         ;;
28602     esac
28603 }
28604
28605
28606 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
28607 func_cc_basename ()
28608 {
28609     for cc_temp in $*""; do
28610       case $cc_temp in
28611         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28612         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28613         \-*) ;;
28614         *) break;;
28615       esac
28616     done
28617     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28618 }
28619
28620
28621 # ### END FUNCTIONS SHARED WITH CONFIGURE
28622
28623 _LT_EOF
28624
28625   case $host_os in
28626   aix3*)
28627     cat <<\_LT_EOF >> "$cfgfile"
28628 # AIX sometimes has problems with the GCC collect2 program.  For some
28629 # reason, if we set the COLLECT_NAMES environment variable, the problems
28630 # vanish in a puff of smoke.
28631 if test set != "${COLLECT_NAMES+set}"; then
28632   COLLECT_NAMES=
28633   export COLLECT_NAMES
28634 fi
28635 _LT_EOF
28636     ;;
28637   esac
28638
28639
28640 ltmain=$ac_aux_dir/ltmain.sh
28641
28642
28643   # We use sed instead of cat because bash on DJGPP gets confused if
28644   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28645   # text mode, it properly converts lines to CR/LF.  This bash problem
28646   # is reportedly fixed, but why not run on old versions too?
28647   sed '$q' "$ltmain" >> "$cfgfile" \
28648      || (rm -f "$cfgfile"; exit 1)
28649
28650    mv -f "$cfgfile" "$ofile" ||
28651     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28652   chmod +x "$ofile"
28653
28654  ;;
28655     "vtysh/extract.pl":F) chmod +x vtysh/extract.pl ;;
28656
28657   esac
28658 done # for ac_tag
28659
28660
28661 as_fn_exit 0
28662 _ACEOF
28663 ac_clean_files=$ac_clean_files_save
28664
28665 test $ac_write_fail = 0 ||
28666   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28667
28668
28669 # configure is writing to config.log, and then calls config.status.
28670 # config.status does its own redirection, appending to config.log.
28671 # Unfortunately, on DOS this fails, as config.log is still kept open
28672 # by configure, so config.status won't be able to write to it; its
28673 # output is simply discarded.  So we exec the FD to /dev/null,
28674 # effectively closing config.log, so it can be properly (re)opened and
28675 # appended to by config.status.  When coming back to configure, we
28676 # need to make the FD available again.
28677 if test "$no_create" != yes; then
28678   ac_cs_success=:
28679   ac_config_status_args=
28680   test "$silent" = yes &&
28681     ac_config_status_args="$ac_config_status_args --quiet"
28682   exec 5>/dev/null
28683   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28684   exec 5>>config.log
28685   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28686   # would make configure fail if this is the last instruction.
28687   $ac_cs_success || as_fn_exit 1
28688 fi
28689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28690   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28691 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28692 fi
28693
28694
28695 echo "
28696 Quagga configuration
28697 --------------------
28698 quagga version          : ${PACKAGE_VERSION}
28699 host operating system   : ${host_os}
28700 source code location    : ${srcdir}
28701 compiler                : ${CC}
28702 compiler flags          : ${CFLAGS}
28703 make                    : ${MAKE-make}
28704 linker flags            : ${LDFLAGS} ${LIBS} ${LIBCAP} ${LIBREADLINE} ${LIBM}
28705 state file directory    : ${quagga_statedir}
28706 config file directory   : `eval echo \`echo ${sysconfdir}\``
28707 example directory       : `eval echo \`echo ${exampledir}\``
28708 user to run as          : ${enable_user}
28709 group to run as         : ${enable_group}
28710 group for vty sockets   : ${enable_vty_group}
28711 config file mask        : ${enable_configfile_mask}
28712 log file mask           : ${enable_logfile_mask}
28713 zebra protobuf enabled  : ${have_protobuf:-no}
28714
28715 The above user and group must have read/write access to the state file
28716 directory and to the config files in the config file directory."
28717
28718 if test x"$quagga_cv_gnu_make" = x"no"; then echo "
28719 Warning: The ${MAKE-make} programme detected, either in your path or
28720 via the MAKE variable, is not GNU Make. GNU make may be installed as
28721 gmake on some systems. and is required to complete a build of Quagga
28722 " > /dev/stderr
28723 fi