iUpdate configure to have AC_OUTPUT
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 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: http://bugs.freeradius.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: 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='freeradius'
592 PACKAGE_TARNAME='freeradius'
593 PACKAGE_VERSION='$Id$'
594 PACKAGE_STRING='freeradius $Id$'
595 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
596 PACKAGE_URL='http://www.freeradius.org'
597
598 ac_unique_file="src/main/radiusd.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 enable_option_checking=no
636 ac_subst_vars='LTLIBOBJS
637 LIBOBJS
638 STATIC_MODULES
639 USE_STATIC_LIBS
640 USE_SHARED_LIBS
641 INSTALLSTRIP
642 MODULES
643 subdirs
644 INCLTDL
645 LIBLTDL
646 HOSTINFO
647 CRYPTLIB
648 LIBPREFIX
649 PCAP_LIBS
650 OPENSSL_LIBS
651 OPENSSL_INCLUDE
652 REGEX_EXTENDED
653 REGEX_PCRE
654 REGEX
655 LIBREADLINE
656 DIRNAME
657 LOCATE
658 AUTOHEADER
659 AUTOCONF
660 ACLOCAL
661 RUSERS
662 SNMPWALK
663 SNMPGET
664 PERL
665 raddbdir
666 radacctdir
667 logdir
668 CXXCPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 AWK
676 STRIP
677 ac_ct_AR
678 AR
679 DLLTOOL
680 OBJDUMP
681 LN_S
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LD
686 FGREP
687 SED
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 LIBTOOL
697 GIT
698 MAKE
699 GMAKE
700 RANLIB
701 EGREP
702 GREP
703 CPP
704 ac_ct_CXX
705 CXXFLAGS
706 CXX
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 MAKEFLAGS
715 RADIUSD_VERSION_STRING
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_developer
758 enable_largefile
759 with_system_libltdl
760 with_system_libtool
761 enable_shared
762 enable_static
763 with_pic
764 enable_fast_install
765 with_gnu_ld
766 with_sysroot
767 enable_libtool_lock
768 enable_strict_dependencies
769 with_docdir
770 with_logdir
771 with_radacctdir
772 with_raddbdir
773 with_ascend_binary
774 with_threads
775 with_tcp
776 with_vmps
777 with_dhcp
778 with_static_modules
779 with_modules
780 with_experimental_modules
781 with_openssl
782 with_openssl_includes
783 with_openssl_libraries
784 with_rlm_FOO_lib_dir
785 with_rlm_FOO_include_dir
786 with_udpfromto
787 with_talloc_include_dir
788 '
789       ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 CXX
798 CXXFLAGS
799 CCC
800 CPP
801 CXXCPP'
802 ac_subdirs_all='$mysubdirs'
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 ac_unrecognized_opts=
808 ac_unrecognized_sep=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
825
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
844 htmldir='${docdir}'
845 dvidir='${docdir}'
846 pdfdir='${docdir}'
847 psdir='${docdir}'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
851
852 ac_prev=
853 ac_dashdash=
854 for ac_option
855 do
856   # If the previous option needs an argument, assign it.
857   if test -n "$ac_prev"; then
858     eval $ac_prev=\$ac_option
859     ac_prev=
860     continue
861   fi
862
863   case $ac_option in
864   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865   *=)   ac_optarg= ;;
866   *)    ac_optarg=yes ;;
867   esac
868
869   # Accept the important Cygnus configure options, so we can diagnose typos.
870
871   case $ac_dashdash$ac_option in
872   --)
873     ac_dashdash=yes ;;
874
875   -bindir | --bindir | --bindi | --bind | --bin | --bi)
876     ac_prev=bindir ;;
877   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878     bindir=$ac_optarg ;;
879
880   -build | --build | --buil | --bui | --bu)
881     ac_prev=build_alias ;;
882   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883     build_alias=$ac_optarg ;;
884
885   -cache-file | --cache-file | --cache-fil | --cache-fi \
886   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887     ac_prev=cache_file ;;
888   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890     cache_file=$ac_optarg ;;
891
892   --config-cache | -C)
893     cache_file=config.cache ;;
894
895   -datadir | --datadir | --datadi | --datad)
896     ac_prev=datadir ;;
897   -datadir=* | --datadir=* | --datadi=* | --datad=*)
898     datadir=$ac_optarg ;;
899
900   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901   | --dataroo | --dataro | --datar)
902     ac_prev=datarootdir ;;
903   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905     datarootdir=$ac_optarg ;;
906
907   -disable-* | --disable-*)
908     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909     # Reject names that are not valid shell variable names.
910     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911       as_fn_error $? "invalid feature name: $ac_useropt"
912     ac_useropt_orig=$ac_useropt
913     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914     case $ac_user_opts in
915       *"
916 "enable_$ac_useropt"
917 "*) ;;
918       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919          ac_unrecognized_sep=', ';;
920     esac
921     eval enable_$ac_useropt=no ;;
922
923   -docdir | --docdir | --docdi | --doc | --do)
924     ac_prev=docdir ;;
925   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926     docdir=$ac_optarg ;;
927
928   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929     ac_prev=dvidir ;;
930   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931     dvidir=$ac_optarg ;;
932
933   -enable-* | --enable-*)
934     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935     # Reject names that are not valid shell variable names.
936     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937       as_fn_error $? "invalid feature name: $ac_useropt"
938     ac_useropt_orig=$ac_useropt
939     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940     case $ac_user_opts in
941       *"
942 "enable_$ac_useropt"
943 "*) ;;
944       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945          ac_unrecognized_sep=', ';;
946     esac
947     eval enable_$ac_useropt=\$ac_optarg ;;
948
949   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951   | --exec | --exe | --ex)
952     ac_prev=exec_prefix ;;
953   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955   | --exec=* | --exe=* | --ex=*)
956     exec_prefix=$ac_optarg ;;
957
958   -gas | --gas | --ga | --g)
959     # Obsolete; use --with-gas.
960     with_gas=yes ;;
961
962   -help | --help | --hel | --he | -h)
963     ac_init_help=long ;;
964   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965     ac_init_help=recursive ;;
966   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967     ac_init_help=short ;;
968
969   -host | --host | --hos | --ho)
970     ac_prev=host_alias ;;
971   -host=* | --host=* | --hos=* | --ho=*)
972     host_alias=$ac_optarg ;;
973
974   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975     ac_prev=htmldir ;;
976   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977   | --ht=*)
978     htmldir=$ac_optarg ;;
979
980   -includedir | --includedir | --includedi | --included | --include \
981   | --includ | --inclu | --incl | --inc)
982     ac_prev=includedir ;;
983   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984   | --includ=* | --inclu=* | --incl=* | --inc=*)
985     includedir=$ac_optarg ;;
986
987   -infodir | --infodir | --infodi | --infod | --info | --inf)
988     ac_prev=infodir ;;
989   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990     infodir=$ac_optarg ;;
991
992   -libdir | --libdir | --libdi | --libd)
993     ac_prev=libdir ;;
994   -libdir=* | --libdir=* | --libdi=* | --libd=*)
995     libdir=$ac_optarg ;;
996
997   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998   | --libexe | --libex | --libe)
999     ac_prev=libexecdir ;;
1000   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001   | --libexe=* | --libex=* | --libe=*)
1002     libexecdir=$ac_optarg ;;
1003
1004   -localedir | --localedir | --localedi | --localed | --locale)
1005     ac_prev=localedir ;;
1006   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007     localedir=$ac_optarg ;;
1008
1009   -localstatedir | --localstatedir | --localstatedi | --localstated \
1010   | --localstate | --localstat | --localsta | --localst | --locals)
1011     ac_prev=localstatedir ;;
1012   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014     localstatedir=$ac_optarg ;;
1015
1016   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017     ac_prev=mandir ;;
1018   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019     mandir=$ac_optarg ;;
1020
1021   -nfp | --nfp | --nf)
1022     # Obsolete; use --without-fp.
1023     with_fp=no ;;
1024
1025   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026   | --no-cr | --no-c | -n)
1027     no_create=yes ;;
1028
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     no_recursion=yes ;;
1032
1033   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035   | --oldin | --oldi | --old | --ol | --o)
1036     ac_prev=oldincludedir ;;
1037   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040     oldincludedir=$ac_optarg ;;
1041
1042   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043     ac_prev=prefix ;;
1044   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045     prefix=$ac_optarg ;;
1046
1047   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048   | --program-pre | --program-pr | --program-p)
1049     ac_prev=program_prefix ;;
1050   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052     program_prefix=$ac_optarg ;;
1053
1054   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055   | --program-suf | --program-su | --program-s)
1056     ac_prev=program_suffix ;;
1057   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059     program_suffix=$ac_optarg ;;
1060
1061   -program-transform-name | --program-transform-name \
1062   | --program-transform-nam | --program-transform-na \
1063   | --program-transform-n | --program-transform- \
1064   | --program-transform | --program-transfor \
1065   | --program-transfo | --program-transf \
1066   | --program-trans | --program-tran \
1067   | --progr-tra | --program-tr | --program-t)
1068     ac_prev=program_transform_name ;;
1069   -program-transform-name=* | --program-transform-name=* \
1070   | --program-transform-nam=* | --program-transform-na=* \
1071   | --program-transform-n=* | --program-transform-=* \
1072   | --program-transform=* | --program-transfor=* \
1073   | --program-transfo=* | --program-transf=* \
1074   | --program-trans=* | --program-tran=* \
1075   | --progr-tra=* | --program-tr=* | --program-t=*)
1076     program_transform_name=$ac_optarg ;;
1077
1078   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079     ac_prev=pdfdir ;;
1080   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081     pdfdir=$ac_optarg ;;
1082
1083   -psdir | --psdir | --psdi | --psd | --ps)
1084     ac_prev=psdir ;;
1085   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086     psdir=$ac_optarg ;;
1087
1088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089   | -silent | --silent | --silen | --sile | --sil)
1090     silent=yes ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       as_fn_error $? "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145       *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149          ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=\$ac_optarg ;;
1152
1153   -without-* | --without-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error $? "invalid package name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval with_$ac_useropt=no ;;
1168
1169   --x)
1170     # Obsolete; use --with-x.
1171     with_x=yes ;;
1172
1173   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174   | --x-incl | --x-inc | --x-in | --x-i)
1175     ac_prev=x_includes ;;
1176   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178     x_includes=$ac_optarg ;;
1179
1180   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182     ac_prev=x_libraries ;;
1183   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185     x_libraries=$ac_optarg ;;
1186
1187   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     case $ac_envvar in #(
1195       '' | [0-9]* | *[!_$as_cr_alnum]* )
1196       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197     esac
1198     eval $ac_envvar=\$ac_optarg
1199     export $ac_envvar ;;
1200
1201   *)
1202     # FIXME: should be removed in autoconf 3.0.
1203     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207     ;;
1208
1209   esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214   as_fn_error $? "missing argument to $ac_option"
1215 fi
1216
1217 if test -n "$ac_unrecognized_opts"; then
1218   case $enable_option_checking in
1219     no) ;;
1220     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222   esac
1223 fi
1224
1225 # Check all directory arguments for consistency.
1226 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227                 datadir sysconfdir sharedstatedir localstatedir includedir \
1228                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229                 libdir localedir mandir
1230 do
1231   eval ac_val=\$$ac_var
1232   # Remove trailing slashes.
1233   case $ac_val in
1234     */ )
1235       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236       eval $ac_var=\$ac_val;;
1237   esac
1238   # Be sure to have absolute directory names.
1239   case $ac_val in
1240     [\\/$]* | ?:[\\/]* )  continue;;
1241     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242   esac
1243   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1245
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1252
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255   if test "x$build_alias" = x; then
1256     cross_compiling=maybe
1257   elif test "x$build_alias" != "x$host_alias"; then
1258     cross_compiling=yes
1259   fi
1260 fi
1261
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265 test "$silent" = yes && exec 6>/dev/null
1266
1267
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271   as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273   as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278   ac_srcdir_defaulted=yes
1279   # Try the directory containing this script, then the parent directory.
1280   ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282          X"$as_myself" : 'X\(//\)[^/]' \| \
1283          X"$as_myself" : 'X\(//\)$' \| \
1284          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\/\)[^/].*/{
1291             s//\1/
1292             q
1293           }
1294           /^X\(\/\/\)$/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\).*/{
1299             s//\1/
1300             q
1301           }
1302           s/.*/./; q'`
1303   srcdir=$ac_confdir
1304   if test ! -r "$srcdir/$ac_unique_file"; then
1305     srcdir=..
1306   fi
1307 else
1308   ac_srcdir_defaulted=no
1309 fi
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 fi
1314 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317         pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320   srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330   eval ac_env_${ac_var}_value=\$${ac_var}
1331   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339   # Omit some internal or obsolete options to make the list less imposing.
1340   # This message is too long to be a string in the A/UX 3.1 sh.
1341   cat <<_ACEOF
1342 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352   -h, --help              display this help and exit
1353       --help=short        display options specific to this package
1354       --help=recursive    display the short help of all the included packages
1355   -V, --version           display version information and exit
1356   -q, --quiet, --silent   do not print \`checking ...' messages
1357       --cache-file=FILE   cache test results in FILE [disabled]
1358   -C, --config-cache      alias for \`--cache-file=config.cache'
1359   -n, --no-create         do not create output files
1360       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1361
1362 Installation directories:
1363   --prefix=PREFIX         install architecture-independent files in PREFIX
1364                           [$ac_default_prefix]
1365   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                           [PREFIX]
1367
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376   --bindir=DIR            user executables [EPREFIX/bin]
1377   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1378   --libexecdir=DIR        program executables [EPREFIX/libexec]
1379   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1380   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1381   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1382   --libdir=DIR            object code libraries [EPREFIX/lib]
1383   --includedir=DIR        C header files [PREFIX/include]
1384   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1385   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1386   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1387   --infodir=DIR           info documentation [DATAROOTDIR/info]
1388   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1389   --mandir=DIR            man documentation [DATAROOTDIR/man]
1390   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1391   --htmldir=DIR           html documentation [DOCDIR]
1392   --dvidir=DIR            dvi documentation [DOCDIR]
1393   --pdfdir=DIR            pdf documentation [DOCDIR]
1394   --psdir=DIR             ps documentation [DOCDIR]
1395 _ACEOF
1396
1397   cat <<\_ACEOF
1398
1399 System types:
1400   --build=BUILD     configure for building on BUILD [guessed]
1401   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406   case $ac_init_help in
1407      short | recursive ) echo "Configuration of freeradius $Id$:";;
1408    esac
1409   cat <<\_ACEOF
1410
1411 Optional Features:
1412   --disable-option-checking  ignore unrecognized --enable/--with options
1413   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415   --enable-developer      enables features of interest to developers.
1416   --disable-largefile     omit support for large files
1417   --enable-shared[=PKGS]  build shared libraries [default=yes]
1418   --enable-static[=PKGS]  build static libraries [default=yes]
1419   --enable-fast-install[=PKGS]
1420                           optimize for fast installation [default=yes]
1421   --disable-libtool-lock  avoid locking (might break parallel builds)
1422   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1423
1424 Optional Packages:
1425   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1426   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1427   --with-system-libltdl   Use the libltdl installed in your system (default=use dlopen)
1428   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1429   --with-pic              try to use only PIC/non-PIC objects [default=use
1430                           both]
1431   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432   --with-sysroot=DIR Search for dependent libraries within DIR
1433                         (or the compiler's sysroot if not specified).
1434   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1435   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1436   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1437   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1438   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1439   --with-threads          Use threads, if available.  (default=yes)
1440   --with-tcp              Compile in TCP support. (default=yes)
1441   --with-vmps             Compile in VMPS support. (default=yes)
1442   --with-dhcp             Compile in DHCP support. (default=yes)
1443   --with-static-modules=QUOTED-MODULE-LIST
1444   --with-modules=QUOTED-MODULE-LIST
1445   --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1446   --with-openssl                   Use OpenSSL. (default=yes)
1447   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1448   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1449   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1450   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1451   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1452   --with-talloc-include-dir=DIR
1453                           Directory where the talloc includes may be found
1454
1455 Some influential environment variables:
1456   CC          C compiler command
1457   CFLAGS      C compiler flags
1458   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459               nonstandard directory <lib dir>
1460   LIBS        libraries to pass to the linker, e.g. -l<library>
1461   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462               you have headers in a nonstandard directory <include dir>
1463   CXX         C++ compiler command
1464   CXXFLAGS    C++ compiler flags
1465   CPP         C preprocessor
1466   CXXCPP      C++ preprocessor
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <http://bugs.freeradius.org>.
1472 freeradius home page: <http://www.freeradius.org>.
1473 _ACEOF
1474 ac_status=$?
1475 fi
1476
1477 if test "$ac_init_help" = "recursive"; then
1478   # If there are subdirs, report their specific --help.
1479   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480     test -d "$ac_dir" ||
1481       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482       continue
1483     ac_builddir=.
1484
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *)
1488   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489   # A ".." for each directory in $ac_dir_suffix.
1490   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491   case $ac_top_builddir_sub in
1492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494   esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1500
1501 case $srcdir in
1502   .)  # We are building in place.
1503     ac_srcdir=.
1504     ac_top_srcdir=$ac_top_builddir_sub
1505     ac_abs_top_srcdir=$ac_pwd ;;
1506   [\\/]* | ?:[\\/]* )  # Absolute name.
1507     ac_srcdir=$srcdir$ac_dir_suffix;
1508     ac_top_srcdir=$srcdir
1509     ac_abs_top_srcdir=$srcdir ;;
1510   *) # Relative name.
1511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512     ac_top_srcdir=$ac_top_build_prefix$srcdir
1513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517     cd "$ac_dir" || { ac_status=$?; continue; }
1518     # Check for guested configure.
1519     if test -f "$ac_srcdir/configure.gnu"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522     elif test -f "$ac_srcdir/configure"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure" --help=recursive
1525     else
1526       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527     fi || ac_status=$?
1528     cd "$ac_pwd" || { ac_status=$?; break; }
1529   done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534   cat <<\_ACEOF
1535 freeradius configure $Id$
1536 generated by GNU Autoconf 2.69
1537
1538 Copyright (C) 2012 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542   exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555   rm -f conftest.$ac_objext
1556   if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559   *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563   (eval "$ac_compile") 2>conftest.err
1564   ac_status=$?
1565   if test -s conftest.err; then
1566     grep -v '^ *+' conftest.err >conftest.er1
1567     cat conftest.er1 >&5
1568     mv -f conftest.er1 conftest.err
1569   fi
1570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571   test $ac_status = 0; } && {
1572          test -z "$ac_c_werror_flag" ||
1573          test ! -s conftest.err
1574        } && test -s conftest.$ac_objext; then :
1575   ac_retval=0
1576 else
1577   $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580         ac_retval=1
1581 fi
1582   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583   as_fn_set_status $ac_retval
1584
1585 } # ac_fn_c_try_compile
1586
1587 # ac_fn_cxx_try_compile LINENO
1588 # ----------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_cxx_try_compile ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   rm -f conftest.$ac_objext
1594   if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597   *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601   (eval "$ac_compile") 2>conftest.err
1602   ac_status=$?
1603   if test -s conftest.err; then
1604     grep -v '^ *+' conftest.err >conftest.er1
1605     cat conftest.er1 >&5
1606     mv -f conftest.er1 conftest.err
1607   fi
1608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609   test $ac_status = 0; } && {
1610          test -z "$ac_cxx_werror_flag" ||
1611          test ! -s conftest.err
1612        } && test -s conftest.$ac_objext; then :
1613   ac_retval=0
1614 else
1615   $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618         ac_retval=1
1619 fi
1620   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621   as_fn_set_status $ac_retval
1622
1623 } # ac_fn_cxx_try_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } > conftest.i && {
1647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655     ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1665 # the include files in INCLUDES and setting the cache variable VAR
1666 # accordingly.
1667 ac_fn_c_check_header_mongrel ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   if eval \${$3+:} false; then :
1671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674   $as_echo_n "(cached) " >&6
1675 fi
1676 eval ac_res=\$$3
1677                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 else
1680   # Is the header compilable?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1682 $as_echo_n "checking $2 usability... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h.  */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689   ac_header_compiler=yes
1690 else
1691   ac_header_compiler=no
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1695 $as_echo "$ac_header_compiler" >&6; }
1696
1697 # Is the header present?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1699 $as_echo_n "checking $2 presence... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_cpp "$LINENO"; then :
1705   ac_header_preproc=yes
1706 else
1707   ac_header_preproc=no
1708 fi
1709 rm -f conftest.err conftest.i conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1711 $as_echo "$ac_header_preproc" >&6; }
1712
1713 # So?  What about this header?
1714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715   yes:no: )
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1717 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720     ;;
1721   no:yes:* )
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1723 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1725 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1727 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1729 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 ( $as_echo "## ----------------------------------------- ##
1733 ## Report this to http://bugs.freeradius.org ##
1734 ## ----------------------------------------- ##"
1735      ) | sed "s/^/$as_me: WARNING:     /" >&2
1736     ;;
1737 esac
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741   $as_echo_n "(cached) " >&6
1742 else
1743   eval "$3=\$ac_header_compiler"
1744 fi
1745 eval ac_res=\$$3
1746                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 fi
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } # ac_fn_c_check_header_mongrel
1752
1753 # ac_fn_c_try_run LINENO
1754 # ----------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756 # that executables *can* be run.
1757 ac_fn_c_try_run ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   if { { ac_try="$ac_link"
1761 case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_link") 2>&5
1768   ac_status=$?
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1771   { { case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_try") 2>&5
1778   ac_status=$?
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; }; }; then :
1781   ac_retval=0
1782 else
1783   $as_echo "$as_me: program exited with status $ac_status" >&5
1784        $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787        ac_retval=$ac_status
1788 fi
1789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_run
1794
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805   $as_echo_n "(cached) " >&6
1806 else
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813   eval "$3=yes"
1814 else
1815   eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_header_compile
1825
1826 # ac_fn_c_try_link LINENO
1827 # -----------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_link ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   rm -f conftest.$ac_objext conftest$ac_exeext
1833   if { { ac_try="$ac_link"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_link") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && {
1849          test -z "$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        } && test -s conftest$ac_exeext && {
1852          test "$cross_compiling" = yes ||
1853          test -x conftest$ac_exeext
1854        }; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860         ac_retval=1
1861 fi
1862   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864   # interfere with the next link command; also delete a directory that is
1865   # left behind by Apple's compiler.  We do this before executing the actions.
1866   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868   as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_link
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890     which can conflict with char $2 (); below.
1891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892     <limits.h> exists even on freestanding compilers.  */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903    Use char because int might match the return type of a GCC
1904    builtin and then its argument prototype would still apply.  */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910     to always fail with ENOSYS.  Some functions are actually named
1911     something starting with __ and the normal name is an alias.  */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925   eval "$3=yes"
1926 else
1927   eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930     conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_cxx_try_cpp LINENO
1940 # ------------------------
1941 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_cpp ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953   ac_status=$?
1954   if test -s conftest.err; then
1955     grep -v '^ *+' conftest.err >conftest.er1
1956     cat conftest.er1 >&5
1957     mv -f conftest.er1 conftest.err
1958   fi
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; } > conftest.i && {
1961          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1962          test ! -s conftest.err
1963        }; then :
1964   ac_retval=0
1965 else
1966   $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969     ac_retval=1
1970 fi
1971   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972   as_fn_set_status $ac_retval
1973
1974 } # ac_fn_cxx_try_cpp
1975
1976 # ac_fn_cxx_try_link LINENO
1977 # -------------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_cxx_try_link ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   rm -f conftest.$ac_objext conftest$ac_exeext
1983   if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_link") 2>conftest.err
1991   ac_status=$?
1992   if test -s conftest.err; then
1993     grep -v '^ *+' conftest.err >conftest.er1
1994     cat conftest.er1 >&5
1995     mv -f conftest.er1 conftest.err
1996   fi
1997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998   test $ac_status = 0; } && {
1999          test -z "$ac_cxx_werror_flag" ||
2000          test ! -s conftest.err
2001        } && test -s conftest$ac_exeext && {
2002          test "$cross_compiling" = yes ||
2003          test -x conftest$ac_exeext
2004        }; then :
2005   ac_retval=0
2006 else
2007   $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010         ac_retval=1
2011 fi
2012   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014   # interfere with the next link command; also delete a directory that is
2015   # left behind by Apple's compiler.  We do this before executing the actions.
2016   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018   as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_link
2021
2022 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2023 # -------------------------------------------
2024 # Tests whether TYPE exists after having included INCLUDES, setting cache
2025 # variable VAR accordingly.
2026 ac_fn_c_check_type ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032   $as_echo_n "(cached) " >&6
2033 else
2034   eval "$3=no"
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 int
2039 main ()
2040 {
2041 if (sizeof ($2))
2042          return 0;
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h.  */
2050 $4
2051 int
2052 main ()
2053 {
2054 if (sizeof (($2)))
2055             return 0;
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061
2062 else
2063   eval "$3=yes"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_type
2075
2076 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2077 # ---------------------------------------------
2078 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2079 # accordingly.
2080 ac_fn_c_check_decl ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   as_decl_name=`echo $2|sed 's/ *(.*//'`
2084   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2086 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2087 if eval \${$3+:} false; then :
2088   $as_echo_n "(cached) " >&6
2089 else
2090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 $4
2093 int
2094 main ()
2095 {
2096 #ifndef $as_decl_name
2097 #ifdef __cplusplus
2098   (void) $as_decl_use;
2099 #else
2100   (void) $as_decl_name;
2101 #endif
2102 #endif
2103
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   eval "$3=yes"
2110 else
2111   eval "$3=no"
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 fi
2115 eval ac_res=\$$3
2116                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119
2120 } # ac_fn_c_check_decl
2121 cat >config.log <<_ACEOF
2122 This file contains any messages produced by compilers while
2123 running configure, to aid debugging if configure makes a mistake.
2124
2125 It was created by freeradius $as_me $Id$, which was
2126 generated by GNU Autoconf 2.69.  Invocation command line was
2127
2128   $ $0 $@
2129
2130 _ACEOF
2131 exec 5>>config.log
2132 {
2133 cat <<_ASUNAME
2134 ## --------- ##
2135 ## Platform. ##
2136 ## --------- ##
2137
2138 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2139 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2140 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2141 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2142 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2143
2144 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2145 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2146
2147 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2148 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2149 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2150 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2151 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2152 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2153 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2154
2155 _ASUNAME
2156
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162     $as_echo "PATH: $as_dir"
2163   done
2164 IFS=$as_save_IFS
2165
2166 } >&5
2167
2168 cat >&5 <<_ACEOF
2169
2170
2171 ## ----------- ##
2172 ## Core tests. ##
2173 ## ----------- ##
2174
2175 _ACEOF
2176
2177
2178 # Keep a trace of the command line.
2179 # Strip out --no-create and --no-recursion so they do not pile up.
2180 # Strip out --silent because we don't want to record it for future runs.
2181 # Also quote any args containing shell meta-characters.
2182 # Make two passes to allow for proper duplicate-argument suppression.
2183 ac_configure_args=
2184 ac_configure_args0=
2185 ac_configure_args1=
2186 ac_must_keep_next=false
2187 for ac_pass in 1 2
2188 do
2189   for ac_arg
2190   do
2191     case $ac_arg in
2192     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2193     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2194     | -silent | --silent | --silen | --sile | --sil)
2195       continue ;;
2196     *\'*)
2197       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2198     esac
2199     case $ac_pass in
2200     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2201     2)
2202       as_fn_append ac_configure_args1 " '$ac_arg'"
2203       if test $ac_must_keep_next = true; then
2204         ac_must_keep_next=false # Got value, back to normal.
2205       else
2206         case $ac_arg in
2207           *=* | --config-cache | -C | -disable-* | --disable-* \
2208           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2209           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2210           | -with-* | --with-* | -without-* | --without-* | --x)
2211             case "$ac_configure_args0 " in
2212               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2213             esac
2214             ;;
2215           -* ) ac_must_keep_next=true ;;
2216         esac
2217       fi
2218       as_fn_append ac_configure_args " '$ac_arg'"
2219       ;;
2220     esac
2221   done
2222 done
2223 { ac_configure_args0=; unset ac_configure_args0;}
2224 { ac_configure_args1=; unset ac_configure_args1;}
2225
2226 # When interrupted or exit'd, cleanup temporary files, and complete
2227 # config.log.  We remove comments because anyway the quotes in there
2228 # would cause problems or look ugly.
2229 # WARNING: Use '\'' to represent an apostrophe within the trap.
2230 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2231 trap 'exit_status=$?
2232   # Save into config.log some information that might help in debugging.
2233   {
2234     echo
2235
2236     $as_echo "## ---------------- ##
2237 ## Cache variables. ##
2238 ## ---------------- ##"
2239     echo
2240     # The following way of writing the cache mishandles newlines in values,
2241 (
2242   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2243     eval ac_val=\$$ac_var
2244     case $ac_val in #(
2245     *${as_nl}*)
2246       case $ac_var in #(
2247       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2248 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2249       esac
2250       case $ac_var in #(
2251       _ | IFS | as_nl) ;; #(
2252       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2253       *) { eval $ac_var=; unset $ac_var;} ;;
2254       esac ;;
2255     esac
2256   done
2257   (set) 2>&1 |
2258     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2259     *${as_nl}ac_space=\ *)
2260       sed -n \
2261         "s/'\''/'\''\\\\'\'''\''/g;
2262           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2263       ;; #(
2264     *)
2265       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2266       ;;
2267     esac |
2268     sort
2269 )
2270     echo
2271
2272     $as_echo "## ----------------- ##
2273 ## Output variables. ##
2274 ## ----------------- ##"
2275     echo
2276     for ac_var in $ac_subst_vars
2277     do
2278       eval ac_val=\$$ac_var
2279       case $ac_val in
2280       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281       esac
2282       $as_echo "$ac_var='\''$ac_val'\''"
2283     done | sort
2284     echo
2285
2286     if test -n "$ac_subst_files"; then
2287       $as_echo "## ------------------- ##
2288 ## File substitutions. ##
2289 ## ------------------- ##"
2290       echo
2291       for ac_var in $ac_subst_files
2292       do
2293         eval ac_val=\$$ac_var
2294         case $ac_val in
2295         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296         esac
2297         $as_echo "$ac_var='\''$ac_val'\''"
2298       done | sort
2299       echo
2300     fi
2301
2302     if test -s confdefs.h; then
2303       $as_echo "## ----------- ##
2304 ## confdefs.h. ##
2305 ## ----------- ##"
2306       echo
2307       cat confdefs.h
2308       echo
2309     fi
2310     test "$ac_signal" != 0 &&
2311       $as_echo "$as_me: caught signal $ac_signal"
2312     $as_echo "$as_me: exit $exit_status"
2313   } >&5
2314   rm -f core *.core core.conftest.* &&
2315     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316     exit $exit_status
2317 ' 0
2318 for ac_signal in 1 2 13 15; do
2319   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2320 done
2321 ac_signal=0
2322
2323 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2324 rm -f -r conftest* confdefs.h
2325
2326 $as_echo "/* confdefs.h */" > confdefs.h
2327
2328 # Predefined preprocessor variables.
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_NAME "$PACKAGE_NAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_STRING "$PACKAGE_STRING"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_URL "$PACKAGE_URL"
2352 _ACEOF
2353
2354
2355 # Let the site file select an alternate cache file if it wants to.
2356 # Prefer an explicitly selected file to automatically selected ones.
2357 ac_site_file1=NONE
2358 ac_site_file2=NONE
2359 if test -n "$CONFIG_SITE"; then
2360   # We do not want a PATH search for config.site.
2361   case $CONFIG_SITE in #((
2362     -*)  ac_site_file1=./$CONFIG_SITE;;
2363     */*) ac_site_file1=$CONFIG_SITE;;
2364     *)   ac_site_file1=./$CONFIG_SITE;;
2365   esac
2366 elif test "x$prefix" != xNONE; then
2367   ac_site_file1=$prefix/share/config.site
2368   ac_site_file2=$prefix/etc/config.site
2369 else
2370   ac_site_file1=$ac_default_prefix/share/config.site
2371   ac_site_file2=$ac_default_prefix/etc/config.site
2372 fi
2373 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2374 do
2375   test "x$ac_site_file" = xNONE && continue
2376   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2378 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2379     sed 's/^/| /' "$ac_site_file" >&5
2380     . "$ac_site_file" \
2381       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 as_fn_error $? "failed to load site script $ac_site_file
2384 See \`config.log' for more details" "$LINENO" 5; }
2385   fi
2386 done
2387
2388 if test -r "$cache_file"; then
2389   # Some versions of bash will fail to source /dev/null (special files
2390   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2391   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2393 $as_echo "$as_me: loading cache $cache_file" >&6;}
2394     case $cache_file in
2395       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2396       *)                      . "./$cache_file";;
2397     esac
2398   fi
2399 else
2400   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2401 $as_echo "$as_me: creating cache $cache_file" >&6;}
2402   >$cache_file
2403 fi
2404
2405 # Check that the precious variables saved in the cache have kept the same
2406 # value.
2407 ac_cache_corrupted=false
2408 for ac_var in $ac_precious_vars; do
2409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2410   eval ac_new_set=\$ac_env_${ac_var}_set
2411   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2412   eval ac_new_val=\$ac_env_${ac_var}_value
2413   case $ac_old_set,$ac_new_set in
2414     set,)
2415       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2416 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2417       ac_cache_corrupted=: ;;
2418     ,set)
2419       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2420 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2421       ac_cache_corrupted=: ;;
2422     ,);;
2423     *)
2424       if test "x$ac_old_val" != "x$ac_new_val"; then
2425         # differences in whitespace do not lead to failure.
2426         ac_old_val_w=`echo x $ac_old_val`
2427         ac_new_val_w=`echo x $ac_new_val`
2428         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2429           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2430 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2431           ac_cache_corrupted=:
2432         else
2433           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2434 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2435           eval $ac_var=\$ac_old_val
2436         fi
2437         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2438 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2439         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2440 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2441       fi;;
2442   esac
2443   # Pass precious variables to config.status.
2444   if test "$ac_new_set" = set; then
2445     case $ac_new_val in
2446     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2447     *) ac_arg=$ac_var=$ac_new_val ;;
2448     esac
2449     case " $ac_configure_args " in
2450       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2451       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2452     esac
2453   fi
2454 done
2455 if $ac_cache_corrupted; then
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2458   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2459 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2460   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2461 fi
2462 ## -------------------- ##
2463 ## Main body of script. ##
2464 ## -------------------- ##
2465
2466 ac_ext=c
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471
2472
2473
2474 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2475
2476
2477
2478 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2479 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2480 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2481
2482 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2483 -v minor="$RADIUSD_MINOR_VERSION" \
2484 -v incrm="$RADIUSD_INCRM_VERSION" \
2485 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2486
2487 RADIUSD_VERSION_STRING=`cat VERSION`
2488
2489
2490
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2494 _ACEOF
2495
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2499 _ACEOF
2500
2501
2502
2503 # Check whether --enable-developer was given.
2504 if test "${enable_developer+set}" = set; then :
2505   enableval=$enable_developer;  case "$enableval" in
2506     no)
2507         developer=no
2508         ;;
2509     *)
2510         developer=yes
2511   esac
2512
2513 fi
2514
2515
2516 if test -d $srcdir/.git; then
2517   if test "x$developer" != "xno"; then
2518         developer="yes"
2519   fi
2520 fi
2521
2522 if test "x$developer" = "xyes"; then
2523   : ${CFLAGS=-g3}
2524   : ${MAKEFLAGS=-j8}
2525 fi
2526
2527
2528
2529
2530 ac_ext=c
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 if test -n "$ac_tool_prefix"; then
2536   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_CC+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   if test -n "$CC"; then
2544   ac_cv_prog_CC="$CC" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551     for ac_exec_ext in '' $ac_executable_extensions; do
2552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558   done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 CC=$ac_cv_prog_CC
2564 if test -n "$CC"; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2566 $as_echo "$CC" >&6; }
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572
2573 fi
2574 if test -z "$ac_cv_prog_CC"; then
2575   ac_ct_CC=$CC
2576   # Extract the first word of "gcc", so it can be a program name with args.
2577 set dummy gcc; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2581   $as_echo_n "(cached) " >&6
2582 else
2583   if test -n "$ac_ct_CC"; then
2584   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591     for ac_exec_ext in '' $ac_executable_extensions; do
2592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593     ac_cv_prog_ac_ct_CC="gcc"
2594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598   done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2604 if test -n "$ac_ct_CC"; then
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2606 $as_echo "$ac_ct_CC" >&6; }
2607 else
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2610 fi
2611
2612   if test "x$ac_ct_CC" = x; then
2613     CC=""
2614   else
2615     case $cross_compiling:$ac_tool_warned in
2616 yes:)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 ac_tool_warned=yes ;;
2620 esac
2621     CC=$ac_ct_CC
2622   fi
2623 else
2624   CC="$ac_cv_prog_CC"
2625 fi
2626
2627 if test -z "$CC"; then
2628           if test -n "$ac_tool_prefix"; then
2629     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}cc; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_CC+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   if test -n "$CC"; then
2637   ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642   IFS=$as_save_IFS
2643   test -z "$as_dir" && as_dir=.
2644     for ac_exec_ext in '' $ac_executable_extensions; do
2645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646     ac_cv_prog_CC="${ac_tool_prefix}cc"
2647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648     break 2
2649   fi
2650 done
2651   done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2660 else
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2663 fi
2664
2665
2666   fi
2667 fi
2668 if test -z "$CC"; then
2669   # Extract the first word of "cc", so it can be a program name with args.
2670 set dummy cc; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_CC+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   if test -n "$CC"; then
2677   ac_cv_prog_CC="$CC" # Let the user override the test.
2678 else
2679   ac_prog_rejected=no
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685     for ac_exec_ext in '' $ac_executable_extensions; do
2686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2688        ac_prog_rejected=yes
2689        continue
2690      fi
2691     ac_cv_prog_CC="cc"
2692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696   done
2697 IFS=$as_save_IFS
2698
2699 if test $ac_prog_rejected = yes; then
2700   # We found a bogon in the path, so make sure we never use it.
2701   set dummy $ac_cv_prog_CC
2702   shift
2703   if test $# != 0; then
2704     # We chose a different compiler from the bogus one.
2705     # However, it has the same basename, so the bogon will be chosen
2706     # first if we set CC to just the basename; use the full file name.
2707     shift
2708     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2709   fi
2710 fi
2711 fi
2712 fi
2713 CC=$ac_cv_prog_CC
2714 if test -n "$CC"; then
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716 $as_echo "$CC" >&6; }
2717 else
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722
2723 fi
2724 if test -z "$CC"; then
2725   if test -n "$ac_tool_prefix"; then
2726   for ac_prog in cl.exe
2727   do
2728     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   if test -n "$CC"; then
2736   ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743     for ac_exec_ext in '' $ac_executable_extensions; do
2744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750   done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2759 else
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764
2765     test -n "$CC" && break
2766   done
2767 fi
2768 if test -z "$CC"; then
2769   ac_ct_CC=$CC
2770   for ac_prog in cl.exe
2771 do
2772   # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   if test -n "$ac_ct_CC"; then
2780   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785   IFS=$as_save_IFS
2786   test -z "$as_dir" && as_dir=.
2787     for ac_exec_ext in '' $ac_executable_extensions; do
2788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789     ac_cv_prog_ac_ct_CC="$ac_prog"
2790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791     break 2
2792   fi
2793 done
2794   done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802 $as_echo "$ac_ct_CC" >&6; }
2803 else
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809   test -n "$ac_ct_CC" && break
2810 done
2811
2812   if test "x$ac_ct_CC" = x; then
2813     CC=""
2814   else
2815     case $cross_compiling:$ac_tool_warned in
2816 yes:)
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819 ac_tool_warned=yes ;;
2820 esac
2821     CC=$ac_ct_CC
2822   fi
2823 fi
2824
2825 fi
2826
2827
2828 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 as_fn_error $? "no acceptable C compiler found in \$PATH
2831 See \`config.log' for more details" "$LINENO" 5; }
2832
2833 # Provide some information about the compiler.
2834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2835 set X $ac_compile
2836 ac_compiler=$2
2837 for ac_option in --version -v -V -qversion; do
2838   { { ac_try="$ac_compiler $ac_option >&5"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2844 $as_echo "$ac_try_echo"; } >&5
2845   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2846   ac_status=$?
2847   if test -s conftest.err; then
2848     sed '10a\
2849 ... rest of stderr output deleted ...
2850          10q' conftest.err >conftest.er1
2851     cat conftest.er1 >&5
2852   fi
2853   rm -f conftest.er1 conftest.err
2854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855   test $ac_status = 0; }
2856 done
2857
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h.  */
2860
2861 int
2862 main ()
2863 {
2864
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 ac_clean_files_save=$ac_clean_files
2870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2871 # Try to create an executable without -o first, disregard a.out.
2872 # It will help us diagnose broken compilers, and finding out an intuition
2873 # of exeext.
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2875 $as_echo_n "checking whether the C compiler works... " >&6; }
2876 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2877
2878 # The possible output files:
2879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2880
2881 ac_rmfiles=
2882 for ac_file in $ac_files
2883 do
2884   case $ac_file in
2885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2886     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2887   esac
2888 done
2889 rm -f $ac_rmfiles
2890
2891 if { { ac_try="$ac_link_default"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 $as_echo "$ac_try_echo"; } >&5
2898   (eval "$ac_link_default") 2>&5
2899   ac_status=$?
2900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901   test $ac_status = 0; }; then :
2902   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2904 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2905 # so that the user can short-circuit this test for compilers unknown to
2906 # Autoconf.
2907 for ac_file in $ac_files ''
2908 do
2909   test -f "$ac_file" || continue
2910   case $ac_file in
2911     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2912         ;;
2913     [ab].out )
2914         # We found the default executable, but exeext='' is most
2915         # certainly right.
2916         break;;
2917     *.* )
2918         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2919         then :; else
2920            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921         fi
2922         # We set ac_cv_exeext here because the later test for it is not
2923         # safe: cross compilers may not add the suffix if given an `-o'
2924         # argument, so we may need to know it at that point already.
2925         # Even if this section looks crufty: it has the advantage of
2926         # actually working.
2927         break;;
2928     * )
2929         break;;
2930   esac
2931 done
2932 test "$ac_cv_exeext" = no && ac_cv_exeext=
2933
2934 else
2935   ac_file=''
2936 fi
2937 if test -z "$ac_file"; then :
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 $as_echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945 as_fn_error 77 "C compiler cannot create executables
2946 See \`config.log' for more details" "$LINENO" 5; }
2947 else
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 $as_echo "yes" >&6; }
2950 fi
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2952 $as_echo_n "checking for C compiler default output file name... " >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2954 $as_echo "$ac_file" >&6; }
2955 ac_exeext=$ac_cv_exeext
2956
2957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2958 ac_clean_files=$ac_clean_files_save
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2960 $as_echo_n "checking for suffix of executables... " >&6; }
2961 if { { ac_try="$ac_link"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968   (eval "$ac_link") 2>&5
2969   ac_status=$?
2970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971   test $ac_status = 0; }; then :
2972   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2974 # work properly (i.e., refer to `conftest.exe'), while it won't with
2975 # `rm'.
2976 for ac_file in conftest.exe conftest conftest.*; do
2977   test -f "$ac_file" || continue
2978   case $ac_file in
2979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2980     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981           break;;
2982     * ) break;;
2983   esac
2984 done
2985 else
2986   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details" "$LINENO" 5; }
2990 fi
2991 rm -f conftest conftest$ac_cv_exeext
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2993 $as_echo "$ac_cv_exeext" >&6; }
2994
2995 rm -f conftest.$ac_ext
2996 EXEEXT=$ac_cv_exeext
2997 ac_exeext=$EXEEXT
2998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999 /* end confdefs.h.  */
3000 #include <stdio.h>
3001 int
3002 main ()
3003 {
3004 FILE *f = fopen ("conftest.out", "w");
3005  return ferror (f) || fclose (f) != 0;
3006
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 ac_clean_files="$ac_clean_files conftest.out"
3012 # Check that the compiler produces executables we can run.  If not, either
3013 # the compiler is broken, or we cross compile.
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3015 $as_echo_n "checking whether we are cross compiling... " >&6; }
3016 if test "$cross_compiling" != yes; then
3017   { { ac_try="$ac_link"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024   (eval "$ac_link") 2>&5
3025   ac_status=$?
3026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027   test $ac_status = 0; }
3028   if { ac_try='./conftest$ac_cv_exeext'
3029   { { case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038   test $ac_status = 0; }; }; then
3039     cross_compiling=no
3040   else
3041     if test "$cross_compiling" = maybe; then
3042         cross_compiling=yes
3043     else
3044         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error $? "cannot run C compiled programs.
3047 If you meant to cross compile, use \`--host'.
3048 See \`config.log' for more details" "$LINENO" 5; }
3049     fi
3050   fi
3051 fi
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3053 $as_echo "$cross_compiling" >&6; }
3054
3055 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3056 ac_clean_files=$ac_clean_files_save
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3058 $as_echo_n "checking for suffix of object files... " >&6; }
3059 if ${ac_cv_objext+:} false; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h.  */
3064
3065 int
3066 main ()
3067 {
3068
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.o conftest.obj
3074 if { { ac_try="$ac_compile"
3075 case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081   (eval "$ac_compile") 2>&5
3082   ac_status=$?
3083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084   test $ac_status = 0; }; then :
3085   for ac_file in conftest.o conftest.obj conftest.*; do
3086   test -f "$ac_file" || continue;
3087   case $ac_file in
3088     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3089     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3090        break;;
3091   esac
3092 done
3093 else
3094   $as_echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099 as_fn_error $? "cannot compute suffix of object files: cannot compile
3100 See \`config.log' for more details" "$LINENO" 5; }
3101 fi
3102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103 fi
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3105 $as_echo "$ac_cv_objext" >&6; }
3106 OBJEXT=$ac_cv_objext
3107 ac_objext=$OBJEXT
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3110 if ${ac_cv_c_compiler_gnu+:} false; then :
3111   $as_echo_n "(cached) " >&6
3112 else
3113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119 #ifndef __GNUC__
3120        choke me
3121 #endif
3122
3123   ;
3124   return 0;
3125 }
3126 _ACEOF
3127 if ac_fn_c_try_compile "$LINENO"; then :
3128   ac_compiler_gnu=yes
3129 else
3130   ac_compiler_gnu=no
3131 fi
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3134
3135 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3138 if test $ac_compiler_gnu = yes; then
3139   GCC=yes
3140 else
3141   GCC=
3142 fi
3143 ac_test_CFLAGS=${CFLAGS+set}
3144 ac_save_CFLAGS=$CFLAGS
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3147 if ${ac_cv_prog_cc_g+:} false; then :
3148   $as_echo_n "(cached) " >&6
3149 else
3150   ac_save_c_werror_flag=$ac_c_werror_flag
3151    ac_c_werror_flag=yes
3152    ac_cv_prog_cc_g=no
3153    CFLAGS="-g"
3154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 if ac_fn_c_try_compile "$LINENO"; then :
3166   ac_cv_prog_cc_g=yes
3167 else
3168   CFLAGS=""
3169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 if ac_fn_c_try_compile "$LINENO"; then :
3181
3182 else
3183   ac_c_werror_flag=$ac_save_c_werror_flag
3184          CFLAGS="-g"
3185          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h.  */
3187
3188 int
3189 main ()
3190 {
3191
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 if ac_fn_c_try_compile "$LINENO"; then :
3197   ac_cv_prog_cc_g=yes
3198 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_c_werror_flag=$ac_save_c_werror_flag
3205 fi
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3207 $as_echo "$ac_cv_prog_cc_g" >&6; }
3208 if test "$ac_test_CFLAGS" = set; then
3209   CFLAGS=$ac_save_CFLAGS
3210 elif test $ac_cv_prog_cc_g = yes; then
3211   if test "$GCC" = yes; then
3212     CFLAGS="-g -O2"
3213   else
3214     CFLAGS="-g"
3215   fi
3216 else
3217   if test "$GCC" = yes; then
3218     CFLAGS="-O2"
3219   else
3220     CFLAGS=
3221   fi
3222 fi
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3225 if ${ac_cv_prog_cc_c89+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   ac_cv_prog_cc_c89=no
3229 ac_save_CC=$CC
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h.  */
3232 #include <stdarg.h>
3233 #include <stdio.h>
3234 struct stat;
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239      char **p;
3240      int i;
3241 {
3242   return p[i];
3243 }
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3245 {
3246   char *s;
3247   va_list v;
3248   va_start (v,p);
3249   s = g (p, va_arg (v,int));
3250   va_end (v);
3251   return s;
3252 }
3253
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3255    function prototypes and stuff, but not '\xHH' hex character constants.
3256    These don't provoke an error unfortunately, instead are silently treated
3257    as 'x'.  The following induces an error, until -std is added to get
3258    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3259    array size at least.  It's necessary to write '\x00'==0 to get something
3260    that's true only with -std.  */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264    inside strings and character constants.  */
3265 #define FOO(x) 'x'
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 int argc;
3273 char **argv;
3274 int
3275 main ()
3276 {
3277 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 do
3285   CC="$ac_save_CC $ac_arg"
3286   if ac_fn_c_try_compile "$LINENO"; then :
3287   ac_cv_prog_cc_c89=$ac_arg
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext
3290   test "x$ac_cv_prog_cc_c89" != "xno" && break
3291 done
3292 rm -f conftest.$ac_ext
3293 CC=$ac_save_CC
3294
3295 fi
3296 # AC_CACHE_VAL
3297 case "x$ac_cv_prog_cc_c89" in
3298   x)
3299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3300 $as_echo "none needed" >&6; } ;;
3301   xno)
3302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3303 $as_echo "unsupported" >&6; } ;;
3304   *)
3305     CC="$CC $ac_cv_prog_cc_c89"
3306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3308 esac
3309 if test "x$ac_cv_prog_cc_c89" != xno; then :
3310
3311 fi
3312
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
3319 ac_ext=cpp
3320 ac_cpp='$CXXCPP $CPPFLAGS'
3321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3324 if test -z "$CXX"; then
3325   if test -n "$CCC"; then
3326     CXX=$CCC
3327   else
3328     if test -n "$ac_tool_prefix"; then
3329   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3330   do
3331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CXX+:} false; then :
3336   $as_echo_n "(cached) " >&6
3337 else
3338   if test -n "$CXX"; then
3339   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346     for ac_exec_ext in '' $ac_executable_extensions; do
3347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353   done
3354 IFS=$as_save_IFS
3355
3356 fi
3357 fi
3358 CXX=$ac_cv_prog_CXX
3359 if test -n "$CXX"; then
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3361 $as_echo "$CXX" >&6; }
3362 else
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367
3368     test -n "$CXX" && break
3369   done
3370 fi
3371 if test -z "$CXX"; then
3372   ac_ct_CXX=$CXX
3373   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3374 do
3375   # Extract the first word of "$ac_prog", so it can be a program name with args.
3376 set dummy $ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if test -n "$ac_ct_CXX"; then
3383   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_exec_ext in '' $ac_executable_extensions; do
3391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_ac_ct_CXX="$ac_prog"
3393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397   done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3403 if test -n "$ac_ct_CXX"; then
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3405 $as_echo "$ac_ct_CXX" >&6; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412   test -n "$ac_ct_CXX" && break
3413 done
3414
3415   if test "x$ac_ct_CXX" = x; then
3416     CXX="g++"
3417   else
3418     case $cross_compiling:$ac_tool_warned in
3419 yes:)
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422 ac_tool_warned=yes ;;
3423 esac
3424     CXX=$ac_ct_CXX
3425   fi
3426 fi
3427
3428   fi
3429 fi
3430 # Provide some information about the compiler.
3431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3432 set X $ac_compile
3433 ac_compiler=$2
3434 for ac_option in --version -v -V -qversion; do
3435   { { ac_try="$ac_compiler $ac_option >&5"
3436 case "(($ac_try" in
3437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438   *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3443   ac_status=$?
3444   if test -s conftest.err; then
3445     sed '10a\
3446 ... rest of stderr output deleted ...
3447          10q' conftest.err >conftest.er1
3448     cat conftest.er1 >&5
3449   fi
3450   rm -f conftest.er1 conftest.err
3451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452   test $ac_status = 0; }
3453 done
3454
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3456 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3457 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3458   $as_echo_n "(cached) " >&6
3459 else
3460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462
3463 int
3464 main ()
3465 {
3466 #ifndef __GNUC__
3467        choke me
3468 #endif
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_cxx_try_compile "$LINENO"; then :
3475   ac_compiler_gnu=yes
3476 else
3477   ac_compiler_gnu=no
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3481
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3484 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3485 if test $ac_compiler_gnu = yes; then
3486   GXX=yes
3487 else
3488   GXX=
3489 fi
3490 ac_test_CXXFLAGS=${CXXFLAGS+set}
3491 ac_save_CXXFLAGS=$CXXFLAGS
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3493 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3494 if ${ac_cv_prog_cxx_g+:} false; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3498    ac_cxx_werror_flag=yes
3499    ac_cv_prog_cxx_g=no
3500    CXXFLAGS="-g"
3501    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_cxx_try_compile "$LINENO"; then :
3513   ac_cv_prog_cxx_g=yes
3514 else
3515   CXXFLAGS=""
3516       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518
3519 int
3520 main ()
3521 {
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_cxx_try_compile "$LINENO"; then :
3528
3529 else
3530   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3531          CXXFLAGS="-g"
3532          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h.  */
3534
3535 int
3536 main ()
3537 {
3538
3539   ;
3540   return 0;
3541 }
3542 _ACEOF
3543 if ac_fn_cxx_try_compile "$LINENO"; then :
3544   ac_cv_prog_cxx_g=yes
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3554 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3555 if test "$ac_test_CXXFLAGS" = set; then
3556   CXXFLAGS=$ac_save_CXXFLAGS
3557 elif test $ac_cv_prog_cxx_g = yes; then
3558   if test "$GXX" = yes; then
3559     CXXFLAGS="-g -O2"
3560   else
3561     CXXFLAGS="-g"
3562   fi
3563 else
3564   if test "$GXX" = yes; then
3565     CXXFLAGS="-O2"
3566   else
3567     CXXFLAGS=
3568   fi
3569 fi
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575
3576
3577
3578 ac_ext=c
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3585 # On Suns, sometimes $CPP names a directory.
3586 if test -n "$CPP" && test -d "$CPP"; then
3587   CPP=
3588 fi
3589 if test -z "$CPP"; then
3590   if ${ac_cv_prog_CPP+:} false; then :
3591   $as_echo_n "(cached) " >&6
3592 else
3593       # Double quotes because CPP needs to be expanded
3594     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3595     do
3596       ac_preproc_ok=false
3597 for ac_c_preproc_warn_flag in '' yes
3598 do
3599   # Use a header file that comes with gcc, so configuring glibc
3600   # with a fresh cross-compiler works.
3601   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3602   # <limits.h> exists even on freestanding compilers.
3603   # On the NeXT, cc -E runs the code through the compiler's parser,
3604   # not just through cpp. "Syntax error" is here to catch this case.
3605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607 #ifdef __STDC__
3608 # include <limits.h>
3609 #else
3610 # include <assert.h>
3611 #endif
3612                      Syntax error
3613 _ACEOF
3614 if ac_fn_c_try_cpp "$LINENO"; then :
3615
3616 else
3617   # Broken: fails on valid input.
3618 continue
3619 fi
3620 rm -f conftest.err conftest.i conftest.$ac_ext
3621
3622   # OK, works on sane cases.  Now check whether nonexistent headers
3623   # can be detected and how.
3624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h.  */
3626 #include <ac_nonexistent.h>
3627 _ACEOF
3628 if ac_fn_c_try_cpp "$LINENO"; then :
3629   # Broken: success on invalid input.
3630 continue
3631 else
3632   # Passes both tests.
3633 ac_preproc_ok=:
3634 break
3635 fi
3636 rm -f conftest.err conftest.i conftest.$ac_ext
3637
3638 done
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.i conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then :
3642   break
3643 fi
3644
3645     done
3646     ac_cv_prog_CPP=$CPP
3647
3648 fi
3649   CPP=$ac_cv_prog_CPP
3650 else
3651   ac_cv_prog_CPP=$CPP
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3654 $as_echo "$CPP" >&6; }
3655 ac_preproc_ok=false
3656 for ac_c_preproc_warn_flag in '' yes
3657 do
3658   # Use a header file that comes with gcc, so configuring glibc
3659   # with a fresh cross-compiler works.
3660   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661   # <limits.h> exists even on freestanding compilers.
3662   # On the NeXT, cc -E runs the code through the compiler's parser,
3663   # not just through cpp. "Syntax error" is here to catch this case.
3664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3666 #ifdef __STDC__
3667 # include <limits.h>
3668 #else
3669 # include <assert.h>
3670 #endif
3671                      Syntax error
3672 _ACEOF
3673 if ac_fn_c_try_cpp "$LINENO"; then :
3674
3675 else
3676   # Broken: fails on valid input.
3677 continue
3678 fi
3679 rm -f conftest.err conftest.i conftest.$ac_ext
3680
3681   # OK, works on sane cases.  Now check whether nonexistent headers
3682   # can be detected and how.
3683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h.  */
3685 #include <ac_nonexistent.h>
3686 _ACEOF
3687 if ac_fn_c_try_cpp "$LINENO"; then :
3688   # Broken: success on invalid input.
3689 continue
3690 else
3691   # Passes both tests.
3692 ac_preproc_ok=:
3693 break
3694 fi
3695 rm -f conftest.err conftest.i conftest.$ac_ext
3696
3697 done
3698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3699 rm -f conftest.i conftest.err conftest.$ac_ext
3700 if $ac_preproc_ok; then :
3701
3702 else
3703   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3706 See \`config.log' for more details" "$LINENO" 5; }
3707 fi
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3717 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3718 if ${ac_cv_path_GREP+:} false; then :
3719   $as_echo_n "(cached) " >&6
3720 else
3721   if test -z "$GREP"; then
3722   ac_path_GREP_found=false
3723   # Loop through the user's path and test for each of PROGNAME-LIST
3724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729     for ac_prog in grep ggrep; do
3730     for ac_exec_ext in '' $ac_executable_extensions; do
3731       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3732       as_fn_executable_p "$ac_path_GREP" || continue
3733 # Check for GNU ac_path_GREP and select it if it is found.
3734   # Check for GNU $ac_path_GREP
3735 case `"$ac_path_GREP" --version 2>&1` in
3736 *GNU*)
3737   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3738 *)
3739   ac_count=0
3740   $as_echo_n 0123456789 >"conftest.in"
3741   while :
3742   do
3743     cat "conftest.in" "conftest.in" >"conftest.tmp"
3744     mv "conftest.tmp" "conftest.in"
3745     cp "conftest.in" "conftest.nl"
3746     $as_echo 'GREP' >> "conftest.nl"
3747     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749     as_fn_arith $ac_count + 1 && ac_count=$as_val
3750     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3751       # Best one so far, save it but keep looking for a better one
3752       ac_cv_path_GREP="$ac_path_GREP"
3753       ac_path_GREP_max=$ac_count
3754     fi
3755     # 10*(2^10) chars as input seems more than enough
3756     test $ac_count -gt 10 && break
3757   done
3758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759 esac
3760
3761       $ac_path_GREP_found && break 3
3762     done
3763   done
3764   done
3765 IFS=$as_save_IFS
3766   if test -z "$ac_cv_path_GREP"; then
3767     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3768   fi
3769 else
3770   ac_cv_path_GREP=$GREP
3771 fi
3772
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3775 $as_echo "$ac_cv_path_GREP" >&6; }
3776  GREP="$ac_cv_path_GREP"
3777
3778
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3780 $as_echo_n "checking for egrep... " >&6; }
3781 if ${ac_cv_path_EGREP+:} false; then :
3782   $as_echo_n "(cached) " >&6
3783 else
3784   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3785    then ac_cv_path_EGREP="$GREP -E"
3786    else
3787      if test -z "$EGREP"; then
3788   ac_path_EGREP_found=false
3789   # Loop through the user's path and test for each of PROGNAME-LIST
3790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795     for ac_prog in egrep; do
3796     for ac_exec_ext in '' $ac_executable_extensions; do
3797       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3798       as_fn_executable_p "$ac_path_EGREP" || continue
3799 # Check for GNU ac_path_EGREP and select it if it is found.
3800   # Check for GNU $ac_path_EGREP
3801 case `"$ac_path_EGREP" --version 2>&1` in
3802 *GNU*)
3803   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3804 *)
3805   ac_count=0
3806   $as_echo_n 0123456789 >"conftest.in"
3807   while :
3808   do
3809     cat "conftest.in" "conftest.in" >"conftest.tmp"
3810     mv "conftest.tmp" "conftest.in"
3811     cp "conftest.in" "conftest.nl"
3812     $as_echo 'EGREP' >> "conftest.nl"
3813     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3814     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3815     as_fn_arith $ac_count + 1 && ac_count=$as_val
3816     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3817       # Best one so far, save it but keep looking for a better one
3818       ac_cv_path_EGREP="$ac_path_EGREP"
3819       ac_path_EGREP_max=$ac_count
3820     fi
3821     # 10*(2^10) chars as input seems more than enough
3822     test $ac_count -gt 10 && break
3823   done
3824   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3825 esac
3826
3827       $ac_path_EGREP_found && break 3
3828     done
3829   done
3830   done
3831 IFS=$as_save_IFS
3832   if test -z "$ac_cv_path_EGREP"; then
3833     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3834   fi
3835 else
3836   ac_cv_path_EGREP=$EGREP
3837 fi
3838
3839    fi
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3842 $as_echo "$ac_cv_path_EGREP" >&6; }
3843  EGREP="$ac_cv_path_EGREP"
3844
3845
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3847 $as_echo_n "checking for ANSI C header files... " >&6; }
3848 if ${ac_cv_header_stdc+:} false; then :
3849   $as_echo_n "(cached) " >&6
3850 else
3851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853 #include <stdlib.h>
3854 #include <stdarg.h>
3855 #include <string.h>
3856 #include <float.h>
3857
3858 int
3859 main ()
3860 {
3861
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 if ac_fn_c_try_compile "$LINENO"; then :
3867   ac_cv_header_stdc=yes
3868 else
3869   ac_cv_header_stdc=no
3870 fi
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872
3873 if test $ac_cv_header_stdc = yes; then
3874   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877 #include <string.h>
3878
3879 _ACEOF
3880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881   $EGREP "memchr" >/dev/null 2>&1; then :
3882
3883 else
3884   ac_cv_header_stdc=no
3885 fi
3886 rm -f conftest*
3887
3888 fi
3889
3890 if test $ac_cv_header_stdc = yes; then
3891   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894 #include <stdlib.h>
3895
3896 _ACEOF
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898   $EGREP "free" >/dev/null 2>&1; then :
3899
3900 else
3901   ac_cv_header_stdc=no
3902 fi
3903 rm -f conftest*
3904
3905 fi
3906
3907 if test $ac_cv_header_stdc = yes; then
3908   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3909   if test "$cross_compiling" = yes; then :
3910   :
3911 else
3912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h.  */
3914 #include <ctype.h>
3915 #include <stdlib.h>
3916 #if ((' ' & 0x0FF) == 0x020)
3917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3919 #else
3920 # define ISLOWER(c) \
3921                    (('a' <= (c) && (c) <= 'i') \
3922                      || ('j' <= (c) && (c) <= 'r') \
3923                      || ('s' <= (c) && (c) <= 'z'))
3924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3925 #endif
3926
3927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3928 int
3929 main ()
3930 {
3931   int i;
3932   for (i = 0; i < 256; i++)
3933     if (XOR (islower (i), ISLOWER (i))
3934         || toupper (i) != TOUPPER (i))
3935       return 2;
3936   return 0;
3937 }
3938 _ACEOF
3939 if ac_fn_c_try_run "$LINENO"; then :
3940
3941 else
3942   ac_cv_header_stdc=no
3943 fi
3944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3945   conftest.$ac_objext conftest.beam conftest.$ac_ext
3946 fi
3947
3948 fi
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3951 $as_echo "$ac_cv_header_stdc" >&6; }
3952 if test $ac_cv_header_stdc = yes; then
3953
3954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3955
3956 fi
3957
3958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3960                   inttypes.h stdint.h unistd.h
3961 do :
3962   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3964 "
3965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3966   cat >>confdefs.h <<_ACEOF
3967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3968 _ACEOF
3969
3970 fi
3971
3972 done
3973
3974
3975
3976   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3977 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3978   MINIX=yes
3979 else
3980   MINIX=
3981 fi
3982
3983
3984   if test "$MINIX" = yes; then
3985
3986 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3987
3988
3989 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3990
3991
3992 $as_echo "#define _MINIX 1" >>confdefs.h
3993
3994   fi
3995
3996
3997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3998 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3999 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004
4005 #         define __EXTENSIONS__ 1
4006           $ac_includes_default
4007 int
4008 main ()
4009 {
4010
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016   ac_cv_safe_to_define___extensions__=yes
4017 else
4018   ac_cv_safe_to_define___extensions__=no
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4023 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4024   test $ac_cv_safe_to_define___extensions__ = yes &&
4025     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4026
4027   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4028
4029   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4030
4031   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4032
4033   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4034
4035
4036
4037
4038 if test $ac_cv_c_compiler_gnu = yes; then
4039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4040 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4041 if ${ac_cv_prog_gcc_traditional+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044     ac_pattern="Autoconf.*'x'"
4045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047 #include <sgtty.h>
4048 Autoconf TIOCGETP
4049 _ACEOF
4050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4051   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4052   ac_cv_prog_gcc_traditional=yes
4053 else
4054   ac_cv_prog_gcc_traditional=no
4055 fi
4056 rm -f conftest*
4057
4058
4059   if test $ac_cv_prog_gcc_traditional = no; then
4060     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062 #include <termio.h>
4063 Autoconf TCGETA
4064 _ACEOF
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4067   ac_cv_prog_gcc_traditional=yes
4068 fi
4069 rm -f conftest*
4070
4071   fi
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4074 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4075   if test $ac_cv_prog_gcc_traditional = yes; then
4076     CC="$CC -traditional"
4077   fi
4078 fi
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4081 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4082 if ${ac_cv_prog_suncc+:} false; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   cat > conftest.c <<EOF
4086 #ifdef __SUNPRO_C
4087   yes;
4088 #endif
4089 EOF
4090 if { ac_try='${CC-cc} -E conftest.c'
4091   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4096   ac_cv_prog_suncc=yes
4097 else
4098   ac_cv_prog_suncc=no
4099 fi
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4102 $as_echo "$ac_cv_prog_suncc" >&6; }
4103 if test -n "$ac_tool_prefix"; then
4104   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_prog_RANLIB+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111   if test -n "$RANLIB"; then
4112   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119     for ac_exec_ext in '' $ac_executable_extensions; do
4120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123     break 2
4124   fi
4125 done
4126   done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 RANLIB=$ac_cv_prog_RANLIB
4132 if test -n "$RANLIB"; then
4133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4134 $as_echo "$RANLIB" >&6; }
4135 else
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138 fi
4139
4140
4141 fi
4142 if test -z "$ac_cv_prog_RANLIB"; then
4143   ac_ct_RANLIB=$RANLIB
4144   # Extract the first word of "ranlib", so it can be a program name with args.
4145 set dummy ranlib; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   if test -n "$ac_ct_RANLIB"; then
4152   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159     for ac_exec_ext in '' $ac_executable_extensions; do
4160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161     ac_cv_prog_ac_ct_RANLIB="ranlib"
4162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166   done
4167 IFS=$as_save_IFS
4168
4169 fi
4170 fi
4171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4172 if test -n "$ac_ct_RANLIB"; then
4173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4174 $as_echo "$ac_ct_RANLIB" >&6; }
4175 else
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4178 fi
4179
4180   if test "x$ac_ct_RANLIB" = x; then
4181     RANLIB=":"
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189     RANLIB=$ac_ct_RANLIB
4190   fi
4191 else
4192   RANLIB="$ac_cv_prog_RANLIB"
4193 fi
4194
4195
4196 if test "x$GCC" = "xyes"; then
4197     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4198 fi
4199
4200 # Check whether --enable-largefile was given.
4201 if test "${enable_largefile+set}" = set; then :
4202   enableval=$enable_largefile;
4203 fi
4204
4205 if test "$enable_largefile" != no; then
4206
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4208 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4209 if ${ac_cv_sys_largefile_CC+:} false; then :
4210   $as_echo_n "(cached) " >&6
4211 else
4212   ac_cv_sys_largefile_CC=no
4213      if test "$GCC" != yes; then
4214        ac_save_CC=$CC
4215        while :; do
4216          # IRIX 6.2 and later do not support large files by default,
4217          # so use the C compiler's -n32 option if that helps.
4218          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h.  */
4220 #include <sys/types.h>
4221  /* Check that off_t can represent 2**63 - 1 correctly.
4222     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4223     since some C++ compilers masquerading as C compilers
4224     incorrectly reject 9223372036854775807.  */
4225 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4226   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4227                        && LARGE_OFF_T % 2147483647 == 1)
4228                       ? 1 : -1];
4229 int
4230 main ()
4231 {
4232
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237          if ac_fn_c_try_compile "$LINENO"; then :
4238   break
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext
4241          CC="$CC -n32"
4242          if ac_fn_c_try_compile "$LINENO"; then :
4243   ac_cv_sys_largefile_CC=' -n32'; break
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext
4246          break
4247        done
4248        CC=$ac_save_CC
4249        rm -f conftest.$ac_ext
4250     fi
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4253 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4254   if test "$ac_cv_sys_largefile_CC" != no; then
4255     CC=$CC$ac_cv_sys_largefile_CC
4256   fi
4257
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4259 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4260 if ${ac_cv_sys_file_offset_bits+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   while :; do
4264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h.  */
4266 #include <sys/types.h>
4267  /* Check that off_t can represent 2**63 - 1 correctly.
4268     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4269     since some C++ compilers masquerading as C compilers
4270     incorrectly reject 9223372036854775807.  */
4271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4272   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4273                        && LARGE_OFF_T % 2147483647 == 1)
4274                       ? 1 : -1];
4275 int
4276 main ()
4277 {
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 if ac_fn_c_try_compile "$LINENO"; then :
4284   ac_cv_sys_file_offset_bits=no; break
4285 fi
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h.  */
4289 #define _FILE_OFFSET_BITS 64
4290 #include <sys/types.h>
4291  /* Check that off_t can represent 2**63 - 1 correctly.
4292     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4293     since some C++ compilers masquerading as C compilers
4294     incorrectly reject 9223372036854775807.  */
4295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4296   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4297                        && LARGE_OFF_T % 2147483647 == 1)
4298                       ? 1 : -1];
4299 int
4300 main ()
4301 {
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308   ac_cv_sys_file_offset_bits=64; break
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311   ac_cv_sys_file_offset_bits=unknown
4312   break
4313 done
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4316 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4317 case $ac_cv_sys_file_offset_bits in #(
4318   no | unknown) ;;
4319   *)
4320 cat >>confdefs.h <<_ACEOF
4321 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4322 _ACEOF
4323 ;;
4324 esac
4325 rm -rf conftest*
4326   if test $ac_cv_sys_file_offset_bits = unknown; then
4327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4328 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4329 if ${ac_cv_sys_large_files+:} false; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   while :; do
4333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h.  */
4335 #include <sys/types.h>
4336  /* Check that off_t can represent 2**63 - 1 correctly.
4337     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4338     since some C++ compilers masquerading as C compilers
4339     incorrectly reject 9223372036854775807.  */
4340 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4341   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4342                        && LARGE_OFF_T % 2147483647 == 1)
4343                       ? 1 : -1];
4344 int
4345 main ()
4346 {
4347
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353   ac_cv_sys_large_files=no; break
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h.  */
4358 #define _LARGE_FILES 1
4359 #include <sys/types.h>
4360  /* Check that off_t can represent 2**63 - 1 correctly.
4361     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4362     since some C++ compilers masquerading as C compilers
4363     incorrectly reject 9223372036854775807.  */
4364 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4365   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4366                        && LARGE_OFF_T % 2147483647 == 1)
4367                       ? 1 : -1];
4368 int
4369 main ()
4370 {
4371
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377   ac_cv_sys_large_files=1; break
4378 fi
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380   ac_cv_sys_large_files=unknown
4381   break
4382 done
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4385 $as_echo "$ac_cv_sys_large_files" >&6; }
4386 case $ac_cv_sys_large_files in #(
4387   no | unknown) ;;
4388   *)
4389 cat >>confdefs.h <<_ACEOF
4390 #define _LARGE_FILES $ac_cv_sys_large_files
4391 _ACEOF
4392 ;;
4393 esac
4394 rm -rf conftest*
4395   fi
4396
4397
4398 fi
4399
4400
4401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4402 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4403 if ${ac_cv_c_bigendian+:} false; then :
4404   $as_echo_n "(cached) " >&6
4405 else
4406   ac_cv_c_bigendian=unknown
4407     # See if we're dealing with a universal compiler.
4408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h.  */
4410 #ifndef __APPLE_CC__
4411                not a universal capable compiler
4412              #endif
4413              typedef int dummy;
4414
4415 _ACEOF
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417
4418         # Check for potential -arch flags.  It is not universal unless
4419         # there are at least two -arch flags with different values.
4420         ac_arch=
4421         ac_prev=
4422         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4423          if test -n "$ac_prev"; then
4424            case $ac_word in
4425              i?86 | x86_64 | ppc | ppc64)
4426                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4427                  ac_arch=$ac_word
4428                else
4429                  ac_cv_c_bigendian=universal
4430                  break
4431                fi
4432                ;;
4433            esac
4434            ac_prev=
4435          elif test "x$ac_word" = "x-arch"; then
4436            ac_prev=arch
4437          fi
4438        done
4439 fi
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441     if test $ac_cv_c_bigendian = unknown; then
4442       # See if sys/param.h defines the BYTE_ORDER macro.
4443       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h.  */
4445 #include <sys/types.h>
4446              #include <sys/param.h>
4447
4448 int
4449 main ()
4450 {
4451 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4452                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4453                      && LITTLE_ENDIAN)
4454               bogus endian macros
4455              #endif
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462   # It does; now see whether it defined to BIG_ENDIAN or not.
4463          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h.  */
4465 #include <sys/types.h>
4466                 #include <sys/param.h>
4467
4468 int
4469 main ()
4470 {
4471 #if BYTE_ORDER != BIG_ENDIAN
4472                  not big endian
4473                 #endif
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 if ac_fn_c_try_compile "$LINENO"; then :
4480   ac_cv_c_bigendian=yes
4481 else
4482   ac_cv_c_bigendian=no
4483 fi
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 fi
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487     fi
4488     if test $ac_cv_c_bigendian = unknown; then
4489       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4490       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h.  */
4492 #include <limits.h>
4493
4494 int
4495 main ()
4496 {
4497 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4498               bogus endian macros
4499              #endif
4500
4501   ;
4502   return 0;
4503 }
4504 _ACEOF
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506   # It does; now see whether it defined to _BIG_ENDIAN or not.
4507          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h.  */
4509 #include <limits.h>
4510
4511 int
4512 main ()
4513 {
4514 #ifndef _BIG_ENDIAN
4515                  not big endian
4516                 #endif
4517
4518   ;
4519   return 0;
4520 }
4521 _ACEOF
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523   ac_cv_c_bigendian=yes
4524 else
4525   ac_cv_c_bigendian=no
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 fi
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530     fi
4531     if test $ac_cv_c_bigendian = unknown; then
4532       # Compile a test program.
4533       if test "$cross_compiling" = yes; then :
4534   # Try to guess by grepping values from an object file.
4535          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h.  */
4537 short int ascii_mm[] =
4538                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4539                 short int ascii_ii[] =
4540                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4541                 int use_ascii (int i) {
4542                   return ascii_mm[i] + ascii_ii[i];
4543                 }
4544                 short int ebcdic_ii[] =
4545                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4546                 short int ebcdic_mm[] =
4547                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4548                 int use_ebcdic (int i) {
4549                   return ebcdic_mm[i] + ebcdic_ii[i];
4550                 }
4551                 extern int foo;
4552
4553 int
4554 main ()
4555 {
4556 return use_ascii (foo) == use_ebcdic (foo);
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 if ac_fn_c_try_compile "$LINENO"; then :
4562   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4563               ac_cv_c_bigendian=yes
4564             fi
4565             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4566               if test "$ac_cv_c_bigendian" = unknown; then
4567                 ac_cv_c_bigendian=no
4568               else
4569                 # finding both strings is unlikely to happen, but who knows?
4570                 ac_cv_c_bigendian=unknown
4571               fi
4572             fi
4573 fi
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 else
4576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h.  */
4578 $ac_includes_default
4579 int
4580 main ()
4581 {
4582
4583              /* Are we little or big endian?  From Harbison&Steele.  */
4584              union
4585              {
4586                long int l;
4587                char c[sizeof (long int)];
4588              } u;
4589              u.l = 1;
4590              return u.c[sizeof (long int) - 1] == 1;
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 if ac_fn_c_try_run "$LINENO"; then :
4597   ac_cv_c_bigendian=no
4598 else
4599   ac_cv_c_bigendian=yes
4600 fi
4601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4602   conftest.$ac_objext conftest.beam conftest.$ac_ext
4603 fi
4604
4605     fi
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4608 $as_echo "$ac_cv_c_bigendian" >&6; }
4609  case $ac_cv_c_bigendian in #(
4610    yes)
4611      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4612 ;; #(
4613    no)
4614       ;; #(
4615    universal)
4616
4617 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4618
4619      ;; #(
4620    *)
4621      as_fn_error $? "unknown endianness
4622  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4623  esac
4624
4625
4626 # Extract the first word of "gmake", so it can be a program name with args.
4627 set dummy gmake; ac_word=$2
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629 $as_echo_n "checking for $ac_word... " >&6; }
4630 if ${ac_cv_prog_GMAKE+:} false; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   if test -n "$GMAKE"; then
4634   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641     for ac_exec_ext in '' $ac_executable_extensions; do
4642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643     ac_cv_prog_GMAKE="yes"
4644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648   done
4649 IFS=$as_save_IFS
4650
4651   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4652 fi
4653 fi
4654 GMAKE=$ac_cv_prog_GMAKE
4655 if test -n "$GMAKE"; then
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4657 $as_echo "$GMAKE" >&6; }
4658 else
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664 if test $GMAKE = no; then
4665   # Extract the first word of "make", so it can be a program name with args.
4666 set dummy make; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_path_MAKE+:} false; then :
4670   $as_echo_n "(cached) " >&6
4671 else
4672   case $MAKE in
4673   [\\/]* | ?:[\\/]*)
4674   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4675   ;;
4676   *)
4677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682     for ac_exec_ext in '' $ac_executable_extensions; do
4683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686     break 2
4687   fi
4688 done
4689   done
4690 IFS=$as_save_IFS
4691
4692   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4693   ;;
4694 esac
4695 fi
4696 MAKE=$ac_cv_path_MAKE
4697 if test -n "$MAKE"; then
4698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4699 $as_echo "$MAKE" >&6; }
4700 else
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4703 fi
4704
4705
4706 else
4707   # Extract the first word of "gmake", so it can be a program name with args.
4708 set dummy gmake; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_path_MAKE+:} false; then :
4712   $as_echo_n "(cached) " >&6
4713 else
4714   case $MAKE in
4715   [\\/]* | ?:[\\/]*)
4716   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4717   ;;
4718   *)
4719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724     for ac_exec_ext in '' $ac_executable_extensions; do
4725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731   done
4732 IFS=$as_save_IFS
4733
4734   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4735   ;;
4736 esac
4737 fi
4738 MAKE=$ac_cv_path_MAKE
4739 if test -n "$MAKE"; then
4740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4741 $as_echo "$MAKE" >&6; }
4742 else
4743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4750 if test -z "$makever"; then
4751   as_fn_error $? "GNU Make is not installed.  Please download and install it
4752                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4753 fi
4754
4755 # Extract the first word of "git", so it can be a program name with args.
4756 set dummy git; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if ${ac_cv_prog_GIT+:} false; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762   if test -n "$GIT"; then
4763   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770     for ac_exec_ext in '' $ac_executable_extensions; do
4771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772     ac_cv_prog_GIT="yes"
4773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774     break 2
4775   fi
4776 done
4777   done
4778 IFS=$as_save_IFS
4779
4780   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4781 fi
4782 fi
4783 GIT=$ac_cv_prog_GIT
4784 if test -n "$GIT"; then
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4786 $as_echo "$GIT" >&6; }
4787 else
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790 fi
4791
4792
4793
4794
4795 # Check whether --with-system-libltdl was given.
4796 if test "${with_system_libltdl+set}" = set; then :
4797   withval=$with_system_libltdl;
4798 else
4799   with_system_libltdl=no
4800 fi
4801
4802
4803 if test "x$with_system_libltdl" = "xyes" ; then :
4804    LIBLTDL="-lltdl"
4805 INCLTDL=-DWITH_SYSTEM_LTDL
4806 fi
4807
4808
4809 # Check whether --with-system-libtool was given.
4810 if test "${with_system_libtool+set}" = set; then :
4811   withval=$with_system_libtool;
4812 else
4813   with_system_libtool=no
4814 fi
4815
4816
4817 ac_aux_dir=
4818 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4819   if test -f "$ac_dir/install-sh"; then
4820     ac_aux_dir=$ac_dir
4821     ac_install_sh="$ac_aux_dir/install-sh -c"
4822     break
4823   elif test -f "$ac_dir/install.sh"; then
4824     ac_aux_dir=$ac_dir
4825     ac_install_sh="$ac_aux_dir/install.sh -c"
4826     break
4827   elif test -f "$ac_dir/shtool"; then
4828     ac_aux_dir=$ac_dir
4829     ac_install_sh="$ac_aux_dir/shtool install -c"
4830     break
4831   fi
4832 done
4833 if test -z "$ac_aux_dir"; then
4834   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4835 fi
4836
4837 # These three variables are undocumented and unsupported,
4838 # and are intended to be withdrawn in a future Autoconf release.
4839 # They can cause serious problems if a builder's source tree is in a directory
4840 # whose full name contains unusual characters.
4841 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4842 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4843 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4844
4845
4846 case `pwd` in
4847   *\ * | *\     *)
4848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4849 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4850 esac
4851
4852
4853
4854 macro_version='2.4'
4855 macro_revision='1.3293'
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868 # Make sure we can run config.sub.
4869 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4870   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4873 $as_echo_n "checking build system type... " >&6; }
4874 if ${ac_cv_build+:} false; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   ac_build_alias=$build_alias
4878 test "x$ac_build_alias" = x &&
4879   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4880 test "x$ac_build_alias" = x &&
4881   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4882 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4883   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4884
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4887 $as_echo "$ac_cv_build" >&6; }
4888 case $ac_cv_build in
4889 *-*-*) ;;
4890 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4891 esac
4892 build=$ac_cv_build
4893 ac_save_IFS=$IFS; IFS='-'
4894 set x $ac_cv_build
4895 shift
4896 build_cpu=$1
4897 build_vendor=$2
4898 shift; shift
4899 # Remember, the first character of IFS is used to create $*,
4900 # except with old shells:
4901 build_os=$*
4902 IFS=$ac_save_IFS
4903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4904
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4907 $as_echo_n "checking host system type... " >&6; }
4908 if ${ac_cv_host+:} false; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   if test "x$host_alias" = x; then
4912   ac_cv_host=$ac_cv_build
4913 else
4914   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4915     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4916 fi
4917
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4920 $as_echo "$ac_cv_host" >&6; }
4921 case $ac_cv_host in
4922 *-*-*) ;;
4923 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4924 esac
4925 host=$ac_cv_host
4926 ac_save_IFS=$IFS; IFS='-'
4927 set x $ac_cv_host
4928 shift
4929 host_cpu=$1
4930 host_vendor=$2
4931 shift; shift
4932 # Remember, the first character of IFS is used to create $*,
4933 # except with old shells:
4934 host_os=$*
4935 IFS=$ac_save_IFS
4936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4937
4938
4939 # Backslashify metacharacters that are still active within
4940 # double-quoted strings.
4941 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4942
4943 # Same as above, but do not quote variable references.
4944 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4945
4946 # Sed substitution to delay expansion of an escaped shell variable in a
4947 # double_quote_subst'ed string.
4948 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4949
4950 # Sed substitution to delay expansion of an escaped single quote.
4951 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4952
4953 # Sed substitution to avoid accidental globbing in evaled expressions
4954 no_glob_subst='s/\*/\\\*/g'
4955
4956 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4961 $as_echo_n "checking how to print strings... " >&6; }
4962 # Test print first, because it will be a builtin if present.
4963 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4964    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4965   ECHO='print -r --'
4966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4967   ECHO='printf %s\n'
4968 else
4969   # Use this function as a fallback that always works.
4970   func_fallback_echo ()
4971   {
4972     eval 'cat <<_LTECHO_EOF
4973 $1
4974 _LTECHO_EOF'
4975   }
4976   ECHO='func_fallback_echo'
4977 fi
4978
4979 # func_echo_all arg...
4980 # Invoke $ECHO with all args, space-separated.
4981 func_echo_all ()
4982 {
4983     $ECHO ""
4984 }
4985
4986 case "$ECHO" in
4987   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4988 $as_echo "printf" >&6; } ;;
4989   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4990 $as_echo "print -r" >&6; } ;;
4991   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4992 $as_echo "cat" >&6; } ;;
4993 esac
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5009 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5010 if ${ac_cv_path_SED+:} false; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5014      for ac_i in 1 2 3 4 5 6 7; do
5015        ac_script="$ac_script$as_nl$ac_script"
5016      done
5017      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5018      { ac_script=; unset ac_script;}
5019      if test -z "$SED"; then
5020   ac_path_SED_found=false
5021   # Loop through the user's path and test for each of PROGNAME-LIST
5022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027     for ac_prog in sed gsed; do
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5030       as_fn_executable_p "$ac_path_SED" || continue
5031 # Check for GNU ac_path_SED and select it if it is found.
5032   # Check for GNU $ac_path_SED
5033 case `"$ac_path_SED" --version 2>&1` in
5034 *GNU*)
5035   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5036 *)
5037   ac_count=0
5038   $as_echo_n 0123456789 >"conftest.in"
5039   while :
5040   do
5041     cat "conftest.in" "conftest.in" >"conftest.tmp"
5042     mv "conftest.tmp" "conftest.in"
5043     cp "conftest.in" "conftest.nl"
5044     $as_echo '' >> "conftest.nl"
5045     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047     as_fn_arith $ac_count + 1 && ac_count=$as_val
5048     if test $ac_count -gt ${ac_path_SED_max-0}; then
5049       # Best one so far, save it but keep looking for a better one
5050       ac_cv_path_SED="$ac_path_SED"
5051       ac_path_SED_max=$ac_count
5052     fi
5053     # 10*(2^10) chars as input seems more than enough
5054     test $ac_count -gt 10 && break
5055   done
5056   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057 esac
5058
5059       $ac_path_SED_found && break 3
5060     done
5061   done
5062   done
5063 IFS=$as_save_IFS
5064   if test -z "$ac_cv_path_SED"; then
5065     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5066   fi
5067 else
5068   ac_cv_path_SED=$SED
5069 fi
5070
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5073 $as_echo "$ac_cv_path_SED" >&6; }
5074  SED="$ac_cv_path_SED"
5075   rm -f conftest.sed
5076
5077 test -z "$SED" && SED=sed
5078 Xsed="$SED -e 1s/^X//"
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5091 $as_echo_n "checking for fgrep... " >&6; }
5092 if ${ac_cv_path_FGREP+:} false; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5096    then ac_cv_path_FGREP="$GREP -F"
5097    else
5098      if test -z "$FGREP"; then
5099   ac_path_FGREP_found=false
5100   # Loop through the user's path and test for each of PROGNAME-LIST
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106     for ac_prog in fgrep; do
5107     for ac_exec_ext in '' $ac_executable_extensions; do
5108       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5109       as_fn_executable_p "$ac_path_FGREP" || continue
5110 # Check for GNU ac_path_FGREP and select it if it is found.
5111   # Check for GNU $ac_path_FGREP
5112 case `"$ac_path_FGREP" --version 2>&1` in
5113 *GNU*)
5114   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5115 *)
5116   ac_count=0
5117   $as_echo_n 0123456789 >"conftest.in"
5118   while :
5119   do
5120     cat "conftest.in" "conftest.in" >"conftest.tmp"
5121     mv "conftest.tmp" "conftest.in"
5122     cp "conftest.in" "conftest.nl"
5123     $as_echo 'FGREP' >> "conftest.nl"
5124     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5125     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5126     as_fn_arith $ac_count + 1 && ac_count=$as_val
5127     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5128       # Best one so far, save it but keep looking for a better one
5129       ac_cv_path_FGREP="$ac_path_FGREP"
5130       ac_path_FGREP_max=$ac_count
5131     fi
5132     # 10*(2^10) chars as input seems more than enough
5133     test $ac_count -gt 10 && break
5134   done
5135   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136 esac
5137
5138       $ac_path_FGREP_found && break 3
5139     done
5140   done
5141   done
5142 IFS=$as_save_IFS
5143   if test -z "$ac_cv_path_FGREP"; then
5144     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5145   fi
5146 else
5147   ac_cv_path_FGREP=$FGREP
5148 fi
5149
5150    fi
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5153 $as_echo "$ac_cv_path_FGREP" >&6; }
5154  FGREP="$ac_cv_path_FGREP"
5155
5156
5157 test -z "$GREP" && GREP=grep
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 # Check whether --with-gnu-ld was given.
5178 if test "${with_gnu_ld+set}" = set; then :
5179   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5180 else
5181   with_gnu_ld=no
5182 fi
5183
5184 ac_prog=ld
5185 if test "$GCC" = yes; then
5186   # Check if gcc -print-prog-name=ld gives a path.
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5188 $as_echo_n "checking for ld used by $CC... " >&6; }
5189   case $host in
5190   *-*-mingw*)
5191     # gcc leaves a trailing carriage return which upsets mingw
5192     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5193   *)
5194     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5195   esac
5196   case $ac_prog in
5197     # Accept absolute paths.
5198     [\\/]* | ?:[\\/]*)
5199       re_direlt='/[^/][^/]*/\.\./'
5200       # Canonicalize the pathname of ld
5201       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5202       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5203         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5204       done
5205       test -z "$LD" && LD="$ac_prog"
5206       ;;
5207   "")
5208     # If it fails, then pretend we aren't using GCC.
5209     ac_prog=ld
5210     ;;
5211   *)
5212     # If it is relative, then search for the first ld in PATH.
5213     with_gnu_ld=unknown
5214     ;;
5215   esac
5216 elif test "$with_gnu_ld" = yes; then
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5218 $as_echo_n "checking for GNU ld... " >&6; }
5219 else
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5221 $as_echo_n "checking for non-GNU ld... " >&6; }
5222 fi
5223 if ${lt_cv_path_LD+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   if test -z "$LD"; then
5227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5228   for ac_dir in $PATH; do
5229     IFS="$lt_save_ifs"
5230     test -z "$ac_dir" && ac_dir=.
5231     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5232       lt_cv_path_LD="$ac_dir/$ac_prog"
5233       # Check to see if the program is GNU ld.  I'd rather use --version,
5234       # but apparently some variants of GNU ld only accept -v.
5235       # Break only if it was the GNU/non-GNU ld that we prefer.
5236       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5237       *GNU* | *'with BFD'*)
5238         test "$with_gnu_ld" != no && break
5239         ;;
5240       *)
5241         test "$with_gnu_ld" != yes && break
5242         ;;
5243       esac
5244     fi
5245   done
5246   IFS="$lt_save_ifs"
5247 else
5248   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5249 fi
5250 fi
5251
5252 LD="$lt_cv_path_LD"
5253 if test -n "$LD"; then
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5255 $as_echo "$LD" >&6; }
5256 else
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5263 if ${lt_cv_prog_gnu_ld+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5267 case `$LD -v 2>&1 </dev/null` in
5268 *GNU* | *'with BFD'*)
5269   lt_cv_prog_gnu_ld=yes
5270   ;;
5271 *)
5272   lt_cv_prog_gnu_ld=no
5273   ;;
5274 esac
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5278 with_gnu_ld=$lt_cv_prog_gnu_ld
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5290 if ${lt_cv_path_NM+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   if test -n "$NM"; then
5294   # Let the user override the test.
5295   lt_cv_path_NM="$NM"
5296 else
5297   lt_nm_to_check="${ac_tool_prefix}nm"
5298   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5299     lt_nm_to_check="$lt_nm_to_check nm"
5300   fi
5301   for lt_tmp_nm in $lt_nm_to_check; do
5302     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5303     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5304       IFS="$lt_save_ifs"
5305       test -z "$ac_dir" && ac_dir=.
5306       tmp_nm="$ac_dir/$lt_tmp_nm"
5307       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5308         # Check to see if the nm accepts a BSD-compat flag.
5309         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5310         #   nm: unknown option "B" ignored
5311         # Tru64's nm complains that /dev/null is an invalid object file
5312         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5313         */dev/null* | *'Invalid file or object type'*)
5314           lt_cv_path_NM="$tmp_nm -B"
5315           break
5316           ;;
5317         *)
5318           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5319           */dev/null*)
5320             lt_cv_path_NM="$tmp_nm -p"
5321             break
5322             ;;
5323           *)
5324             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5325             continue # so that we can try to find one that supports BSD flags
5326             ;;
5327           esac
5328           ;;
5329         esac
5330       fi
5331     done
5332     IFS="$lt_save_ifs"
5333   done
5334   : ${lt_cv_path_NM=no}
5335 fi
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5338 $as_echo "$lt_cv_path_NM" >&6; }
5339 if test "$lt_cv_path_NM" != "no"; then
5340   NM="$lt_cv_path_NM"
5341 else
5342   # Didn't find any BSD compatible name lister, look for dumpbin.
5343   if test -n "$DUMPBIN"; then :
5344     # Let the user override the test.
5345   else
5346     if test -n "$ac_tool_prefix"; then
5347   for ac_prog in dumpbin "link -dump"
5348   do
5349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_DUMPBIN+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   if test -n "$DUMPBIN"; then
5357   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362   IFS=$as_save_IFS
5363   test -z "$as_dir" && as_dir=.
5364     for ac_exec_ext in '' $ac_executable_extensions; do
5365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368     break 2
5369   fi
5370 done
5371   done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 DUMPBIN=$ac_cv_prog_DUMPBIN
5377 if test -n "$DUMPBIN"; then
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5379 $as_echo "$DUMPBIN" >&6; }
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386     test -n "$DUMPBIN" && break
5387   done
5388 fi
5389 if test -z "$DUMPBIN"; then
5390   ac_ct_DUMPBIN=$DUMPBIN
5391   for ac_prog in dumpbin "link -dump"
5392 do
5393   # Extract the first word of "$ac_prog", so it can be a program name with args.
5394 set dummy $ac_prog; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if test -n "$ac_ct_DUMPBIN"; then
5401   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5421 if test -n "$ac_ct_DUMPBIN"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5423 $as_echo "$ac_ct_DUMPBIN" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430   test -n "$ac_ct_DUMPBIN" && break
5431 done
5432
5433   if test "x$ac_ct_DUMPBIN" = x; then
5434     DUMPBIN=":"
5435   else
5436     case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442     DUMPBIN=$ac_ct_DUMPBIN
5443   fi
5444 fi
5445
5446     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5447     *COFF*)
5448       DUMPBIN="$DUMPBIN -symbols"
5449       ;;
5450     *)
5451       DUMPBIN=:
5452       ;;
5453     esac
5454   fi
5455
5456   if test "$DUMPBIN" != ":"; then
5457     NM="$DUMPBIN"
5458   fi
5459 fi
5460 test -z "$NM" && NM=nm
5461
5462
5463
5464
5465
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5469 if ${lt_cv_nm_interface+:} false; then :
5470   $as_echo_n "(cached) " >&6
5471 else
5472   lt_cv_nm_interface="BSD nm"
5473   echo "int some_variable = 0;" > conftest.$ac_ext
5474   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5475   (eval "$ac_compile" 2>conftest.err)
5476   cat conftest.err >&5
5477   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5478   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5479   cat conftest.err >&5
5480   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5481   cat conftest.out >&5
5482   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5483     lt_cv_nm_interface="MS dumpbin"
5484   fi
5485   rm -f conftest*
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5488 $as_echo "$lt_cv_nm_interface" >&6; }
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5491 $as_echo_n "checking whether ln -s works... " >&6; }
5492 LN_S=$as_ln_s
5493 if test "$LN_S" = "ln -s"; then
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5495 $as_echo "yes" >&6; }
5496 else
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5498 $as_echo "no, using $LN_S" >&6; }
5499 fi
5500
5501 # find the maximum length of command line arguments
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5504 if ${lt_cv_sys_max_cmd_len+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507     i=0
5508   teststring="ABCD"
5509
5510   case $build_os in
5511   msdosdjgpp*)
5512     # On DJGPP, this test can blow up pretty badly due to problems in libc
5513     # (any single argument exceeding 2000 bytes causes a buffer overrun
5514     # during glob expansion).  Even if it were fixed, the result of this
5515     # check would be larger than it should be.
5516     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5517     ;;
5518
5519   gnu*)
5520     # Under GNU Hurd, this test is not required because there is
5521     # no limit to the length of command line arguments.
5522     # Libtool will interpret -1 as no limit whatsoever
5523     lt_cv_sys_max_cmd_len=-1;
5524     ;;
5525
5526   cygwin* | mingw* | cegcc*)
5527     # On Win9x/ME, this test blows up -- it succeeds, but takes
5528     # about 5 minutes as the teststring grows exponentially.
5529     # Worse, since 9x/ME are not pre-emptively multitasking,
5530     # you end up with a "frozen" computer, even though with patience
5531     # the test eventually succeeds (with a max line length of 256k).
5532     # Instead, let's just punt: use the minimum linelength reported by
5533     # all of the supported platforms: 8192 (on NT/2K/XP).
5534     lt_cv_sys_max_cmd_len=8192;
5535     ;;
5536
5537   mint*)
5538     # On MiNT this can take a long time and run out of memory.
5539     lt_cv_sys_max_cmd_len=8192;
5540     ;;
5541
5542   amigaos*)
5543     # On AmigaOS with pdksh, this test takes hours, literally.
5544     # So we just punt and use a minimum line length of 8192.
5545     lt_cv_sys_max_cmd_len=8192;
5546     ;;
5547
5548   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5549     # This has been around since 386BSD, at least.  Likely further.
5550     if test -x /sbin/sysctl; then
5551       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5552     elif test -x /usr/sbin/sysctl; then
5553       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5554     else
5555       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5556     fi
5557     # And add a safety zone
5558     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5559     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5560     ;;
5561
5562   interix*)
5563     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5564     lt_cv_sys_max_cmd_len=196608
5565     ;;
5566
5567   osf*)
5568     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5569     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5570     # nice to cause kernel panics so lets avoid the loop below.
5571     # First set a reasonable default.
5572     lt_cv_sys_max_cmd_len=16384
5573     #
5574     if test -x /sbin/sysconfig; then
5575       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5576         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5577       esac
5578     fi
5579     ;;
5580   sco3.2v5*)
5581     lt_cv_sys_max_cmd_len=102400
5582     ;;
5583   sysv5* | sco5v6* | sysv4.2uw2*)
5584     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5585     if test -n "$kargmax"; then
5586       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5587     else
5588       lt_cv_sys_max_cmd_len=32768
5589     fi
5590     ;;
5591   *)
5592     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5593     if test -n "$lt_cv_sys_max_cmd_len"; then
5594       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5595       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5596     else
5597       # Make teststring a little bigger before we do anything with it.
5598       # a 1K string should be a reasonable start.
5599       for i in 1 2 3 4 5 6 7 8 ; do
5600         teststring=$teststring$teststring
5601       done
5602       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5603       # If test is not a shell built-in, we'll probably end up computing a
5604       # maximum length that is only half of the actual maximum length, but
5605       # we can't tell.
5606       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5607                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5608               test $i != 17 # 1/2 MB should be enough
5609       do
5610         i=`expr $i + 1`
5611         teststring=$teststring$teststring
5612       done
5613       # Only check the string length outside the loop.
5614       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5615       teststring=
5616       # Add a significant safety factor because C++ compilers can tack on
5617       # massive amounts of additional arguments before passing them to the
5618       # linker.  It appears as though 1/2 is a usable value.
5619       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5620     fi
5621     ;;
5622   esac
5623
5624 fi
5625
5626 if test -n $lt_cv_sys_max_cmd_len ; then
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5631 $as_echo "none" >&6; }
5632 fi
5633 max_cmd_len=$lt_cv_sys_max_cmd_len
5634
5635
5636
5637
5638
5639
5640 : ${CP="cp -f"}
5641 : ${MV="mv -f"}
5642 : ${RM="rm -f"}
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5645 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5646 # Try some XSI features
5647 xsi_shell=no
5648 ( _lt_dummy="a/b/c"
5649   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5650       = c,a/b,b/c, \
5651     && eval 'test $(( 1 + 1 )) -eq 2 \
5652     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5653   && xsi_shell=yes
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5655 $as_echo "$xsi_shell" >&6; }
5656
5657
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5659 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5660 lt_shell_append=no
5661 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5662     >/dev/null 2>&1 \
5663   && lt_shell_append=yes
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5665 $as_echo "$lt_shell_append" >&6; }
5666
5667
5668 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5669   lt_unset=unset
5670 else
5671   lt_unset=false
5672 fi
5673
5674
5675
5676
5677
5678 # test EBCDIC or ASCII
5679 case `echo X|tr X '\101'` in
5680  A) # ASCII based system
5681     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5682   lt_SP2NL='tr \040 \012'
5683   lt_NL2SP='tr \015\012 \040\040'
5684   ;;
5685  *) # EBCDIC based system
5686   lt_SP2NL='tr \100 \n'
5687   lt_NL2SP='tr \r\n \100\100'
5688   ;;
5689 esac
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5700 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5701 if ${lt_cv_to_host_file_cmd+:} false; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   case $host in
5705   *-*-mingw* )
5706     case $build in
5707       *-*-mingw* ) # actually msys
5708         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5709         ;;
5710       *-*-cygwin* )
5711         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5712         ;;
5713       * ) # otherwise, assume *nix
5714         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5715         ;;
5716     esac
5717     ;;
5718   *-*-cygwin* )
5719     case $build in
5720       *-*-mingw* ) # actually msys
5721         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5722         ;;
5723       *-*-cygwin* )
5724         lt_cv_to_host_file_cmd=func_convert_file_noop
5725         ;;
5726       * ) # otherwise, assume *nix
5727         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5728         ;;
5729     esac
5730     ;;
5731   * ) # unhandled hosts (and "normal" native builds)
5732     lt_cv_to_host_file_cmd=func_convert_file_noop
5733     ;;
5734 esac
5735
5736 fi
5737
5738 to_host_file_cmd=$lt_cv_to_host_file_cmd
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5740 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5741
5742
5743
5744
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5747 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5748 if ${lt_cv_to_tool_file_cmd+:} false; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751   #assume ordinary cross tools, or native build.
5752 lt_cv_to_tool_file_cmd=func_convert_file_noop
5753 case $host in
5754   *-*-mingw* )
5755     case $build in
5756       *-*-mingw* ) # actually msys
5757         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5758         ;;
5759     esac
5760     ;;
5761 esac
5762
5763 fi
5764
5765 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5767 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5768
5769
5770
5771
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5774 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5775 if ${lt_cv_ld_reload_flag+:} false; then :
5776   $as_echo_n "(cached) " >&6
5777 else
5778   lt_cv_ld_reload_flag='-r'
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5781 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5782 reload_flag=$lt_cv_ld_reload_flag
5783 case $reload_flag in
5784 "" | " "*) ;;
5785 *) reload_flag=" $reload_flag" ;;
5786 esac
5787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5788 case $host_os in
5789   cygwin* | mingw* | pw32* | cegcc*)
5790     if test "$GCC" != yes; then
5791       reload_cmds=false
5792     fi
5793     ;;
5794   darwin*)
5795     if test "$GCC" = yes; then
5796       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5797     else
5798       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5799     fi
5800     ;;
5801 esac
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811 if test -n "$ac_tool_prefix"; then
5812   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5813 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_OBJDUMP+:} false; then :
5817   $as_echo_n "(cached) " >&6
5818 else
5819   if test -n "$OBJDUMP"; then
5820   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827     for ac_exec_ext in '' $ac_executable_extensions; do
5828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834   done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 OBJDUMP=$ac_cv_prog_OBJDUMP
5840 if test -n "$OBJDUMP"; then
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5842 $as_echo "$OBJDUMP" >&6; }
5843 else
5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848
5849 fi
5850 if test -z "$ac_cv_prog_OBJDUMP"; then
5851   ac_ct_OBJDUMP=$OBJDUMP
5852   # Extract the first word of "objdump", so it can be a program name with args.
5853 set dummy objdump; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5857   $as_echo_n "(cached) " >&6
5858 else
5859   if test -n "$ac_ct_OBJDUMP"; then
5860   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865   IFS=$as_save_IFS
5866   test -z "$as_dir" && as_dir=.
5867     for ac_exec_ext in '' $ac_executable_extensions; do
5868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871     break 2
5872   fi
5873 done
5874   done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5880 if test -n "$ac_ct_OBJDUMP"; then
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5882 $as_echo "$ac_ct_OBJDUMP" >&6; }
5883 else
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888   if test "x$ac_ct_OBJDUMP" = x; then
5889     OBJDUMP="false"
5890   else
5891     case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897     OBJDUMP=$ac_ct_OBJDUMP
5898   fi
5899 else
5900   OBJDUMP="$ac_cv_prog_OBJDUMP"
5901 fi
5902
5903 test -z "$OBJDUMP" && OBJDUMP=objdump
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5914 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5915 if ${lt_cv_deplibs_check_method+:} false; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   lt_cv_file_magic_cmd='$MAGIC_CMD'
5919 lt_cv_file_magic_test_file=
5920 lt_cv_deplibs_check_method='unknown'
5921 # Need to set the preceding variable on all platforms that support
5922 # interlibrary dependencies.
5923 # 'none' -- dependencies not supported.
5924 # `unknown' -- same as none, but documents that we really don't know.
5925 # 'pass_all' -- all dependencies passed with no checks.
5926 # 'test_compile' -- check by making test program.
5927 # 'file_magic [[regex]]' -- check by looking for files in library path
5928 # which responds to the $file_magic_cmd with a given extended regex.
5929 # If you have `file' or equivalent on your system and you're not sure
5930 # whether `pass_all' will *always* work, you probably want this one.
5931
5932 case $host_os in
5933 aix[4-9]*)
5934   lt_cv_deplibs_check_method=pass_all
5935   ;;
5936
5937 beos*)
5938   lt_cv_deplibs_check_method=pass_all
5939   ;;
5940
5941 bsdi[45]*)
5942   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5943   lt_cv_file_magic_cmd='/usr/bin/file -L'
5944   lt_cv_file_magic_test_file=/shlib/libc.so
5945   ;;
5946
5947 cygwin*)
5948   # func_win32_libid is a shell function defined in ltmain.sh
5949   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5950   lt_cv_file_magic_cmd='func_win32_libid'
5951   ;;
5952
5953 mingw* | pw32*)
5954   # Base MSYS/MinGW do not provide the 'file' command needed by
5955   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5956   # unless we find 'file', for example because we are cross-compiling.
5957   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5958   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5959     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5960     lt_cv_file_magic_cmd='func_win32_libid'
5961   else
5962     # Keep this pattern in sync with the one in func_win32_libid.
5963     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5964     lt_cv_file_magic_cmd='$OBJDUMP -f'
5965   fi
5966   ;;
5967
5968 cegcc*)
5969   # use the weaker test based on 'objdump'. See mingw*.
5970   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5971   lt_cv_file_magic_cmd='$OBJDUMP -f'
5972   ;;
5973
5974 darwin* | rhapsody*)
5975   lt_cv_deplibs_check_method=pass_all
5976   ;;
5977
5978 freebsd* | dragonfly*)
5979   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5980     case $host_cpu in
5981     i*86 )
5982       # Not sure whether the presence of OpenBSD here was a mistake.
5983       # Let's accept both of them until this is cleared up.
5984       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5985       lt_cv_file_magic_cmd=/usr/bin/file
5986       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5987       ;;
5988     esac
5989   else
5990     lt_cv_deplibs_check_method=pass_all
5991   fi
5992   ;;
5993
5994 gnu*)
5995   lt_cv_deplibs_check_method=pass_all
5996   ;;
5997
5998 haiku*)
5999   lt_cv_deplibs_check_method=pass_all
6000   ;;
6001
6002 hpux10.20* | hpux11*)
6003   lt_cv_file_magic_cmd=/usr/bin/file
6004   case $host_cpu in
6005   ia64*)
6006     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6007     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6008     ;;
6009   hppa*64*)
6010     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]'
6011     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6012     ;;
6013   *)
6014     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6015     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6016     ;;
6017   esac
6018   ;;
6019
6020 interix[3-9]*)
6021   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6022   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6023   ;;
6024
6025 irix5* | irix6* | nonstopux*)
6026   case $LD in
6027   *-32|*"-32 ") libmagic=32-bit;;
6028   *-n32|*"-n32 ") libmagic=N32;;
6029   *-64|*"-64 ") libmagic=64-bit;;
6030   *) libmagic=never-match;;
6031   esac
6032   lt_cv_deplibs_check_method=pass_all
6033   ;;
6034
6035 # This must be Linux ELF.
6036 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6037   lt_cv_deplibs_check_method=pass_all
6038   ;;
6039
6040 netbsd*)
6041   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6042     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6043   else
6044     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6045   fi
6046   ;;
6047
6048 newos6*)
6049   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6050   lt_cv_file_magic_cmd=/usr/bin/file
6051   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6052   ;;
6053
6054 *nto* | *qnx*)
6055   lt_cv_deplibs_check_method=pass_all
6056   ;;
6057
6058 openbsd*)
6059   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6060     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6061   else
6062     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6063   fi
6064   ;;
6065
6066 osf3* | osf4* | osf5*)
6067   lt_cv_deplibs_check_method=pass_all
6068   ;;
6069
6070 rdos*)
6071   lt_cv_deplibs_check_method=pass_all
6072   ;;
6073
6074 solaris*)
6075   lt_cv_deplibs_check_method=pass_all
6076   ;;
6077
6078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6079   lt_cv_deplibs_check_method=pass_all
6080   ;;
6081
6082 sysv4 | sysv4.3*)
6083   case $host_vendor in
6084   motorola)
6085     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]'
6086     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6087     ;;
6088   ncr)
6089     lt_cv_deplibs_check_method=pass_all
6090     ;;
6091   sequent)
6092     lt_cv_file_magic_cmd='/bin/file'
6093     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6094     ;;
6095   sni)
6096     lt_cv_file_magic_cmd='/bin/file'
6097     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6098     lt_cv_file_magic_test_file=/lib/libc.so
6099     ;;
6100   siemens)
6101     lt_cv_deplibs_check_method=pass_all
6102     ;;
6103   pc)
6104     lt_cv_deplibs_check_method=pass_all
6105     ;;
6106   esac
6107   ;;
6108
6109 tpf*)
6110   lt_cv_deplibs_check_method=pass_all
6111   ;;
6112 esac
6113
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6116 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6117
6118 file_magic_glob=
6119 want_nocaseglob=no
6120 if test "$build" = "$host"; then
6121   case $host_os in
6122   mingw* | pw32*)
6123     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6124       want_nocaseglob=yes
6125     else
6126       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6127     fi
6128     ;;
6129   esac
6130 fi
6131
6132 file_magic_cmd=$lt_cv_file_magic_cmd
6133 deplibs_check_method=$lt_cv_deplibs_check_method
6134 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 if test -n "$ac_tool_prefix"; then
6158   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_DLLTOOL+:} false; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   if test -n "$DLLTOOL"; then
6166   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173     for ac_exec_ext in '' $ac_executable_extensions; do
6174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177     break 2
6178   fi
6179 done
6180   done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 DLLTOOL=$ac_cv_prog_DLLTOOL
6186 if test -n "$DLLTOOL"; then
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6188 $as_echo "$DLLTOOL" >&6; }
6189 else
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194
6195 fi
6196 if test -z "$ac_cv_prog_DLLTOOL"; then
6197   ac_ct_DLLTOOL=$DLLTOOL
6198   # Extract the first word of "dlltool", so it can be a program name with args.
6199 set dummy dlltool; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$ac_ct_DLLTOOL"; then
6206   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213     for ac_exec_ext in '' $ac_executable_extensions; do
6214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220   done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6226 if test -n "$ac_ct_DLLTOOL"; then
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6228 $as_echo "$ac_ct_DLLTOOL" >&6; }
6229 else
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234   if test "x$ac_ct_DLLTOOL" = x; then
6235     DLLTOOL="false"
6236   else
6237     case $cross_compiling:$ac_tool_warned in
6238 yes:)
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243     DLLTOOL=$ac_ct_DLLTOOL
6244   fi
6245 else
6246   DLLTOOL="$ac_cv_prog_DLLTOOL"
6247 fi
6248
6249 test -z "$DLLTOOL" && DLLTOOL=dlltool
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6261 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6262 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6263   $as_echo_n "(cached) " >&6
6264 else
6265   lt_cv_sharedlib_from_linklib_cmd='unknown'
6266
6267 case $host_os in
6268 cygwin* | mingw* | pw32* | cegcc*)
6269   # two different shell functions defined in ltmain.sh
6270   # decide which to use based on capabilities of $DLLTOOL
6271   case `$DLLTOOL --help 2>&1` in
6272   *--identify-strict*)
6273     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6274     ;;
6275   *)
6276     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6277     ;;
6278   esac
6279   ;;
6280 *)
6281   # fallback: assume linklib IS sharedlib
6282   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6283   ;;
6284 esac
6285
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6288 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6289 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6290 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6291
6292
6293
6294
6295
6296
6297
6298 if test -n "$ac_tool_prefix"; then
6299   for ac_prog in ar
6300   do
6301     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_AR+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   if test -n "$AR"; then
6309   ac_cv_prog_AR="$AR" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316     for ac_exec_ext in '' $ac_executable_extensions; do
6317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323   done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 AR=$ac_cv_prog_AR
6329 if test -n "$AR"; then
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6331 $as_echo "$AR" >&6; }
6332 else
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338     test -n "$AR" && break
6339   done
6340 fi
6341 if test -z "$AR"; then
6342   ac_ct_AR=$AR
6343   for ac_prog in ar
6344 do
6345   # Extract the first word of "$ac_prog", so it can be a program name with args.
6346 set dummy $ac_prog; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   if test -n "$ac_ct_AR"; then
6353   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360     for ac_exec_ext in '' $ac_executable_extensions; do
6361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362     ac_cv_prog_ac_ct_AR="$ac_prog"
6363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367   done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6373 if test -n "$ac_ct_AR"; then
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6375 $as_echo "$ac_ct_AR" >&6; }
6376 else
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381
6382   test -n "$ac_ct_AR" && break
6383 done
6384
6385   if test "x$ac_ct_AR" = x; then
6386     AR="false"
6387   else
6388     case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394     AR=$ac_ct_AR
6395   fi
6396 fi
6397
6398 : ${AR=ar}
6399 : ${AR_FLAGS=cru}
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6412 $as_echo_n "checking for archiver @FILE support... " >&6; }
6413 if ${lt_cv_ar_at_file+:} false; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   lt_cv_ar_at_file=no
6417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h.  */
6419
6420 int
6421 main ()
6422 {
6423
6424   ;
6425   return 0;
6426 }
6427 _ACEOF
6428 if ac_fn_c_try_compile "$LINENO"; then :
6429   echo conftest.$ac_objext > conftest.lst
6430       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6431       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6432   (eval $lt_ar_try) 2>&5
6433   ac_status=$?
6434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435   test $ac_status = 0; }
6436       if test "$ac_status" -eq 0; then
6437         # Ensure the archiver fails upon bogus file names.
6438         rm -f conftest.$ac_objext libconftest.a
6439         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6440   (eval $lt_ar_try) 2>&5
6441   ac_status=$?
6442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443   test $ac_status = 0; }
6444         if test "$ac_status" -ne 0; then
6445           lt_cv_ar_at_file=@
6446         fi
6447       fi
6448       rm -f conftest.* libconftest.a
6449
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452
6453 fi
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6455 $as_echo "$lt_cv_ar_at_file" >&6; }
6456
6457 if test "x$lt_cv_ar_at_file" = xno; then
6458   archiver_list_spec=
6459 else
6460   archiver_list_spec=$lt_cv_ar_at_file
6461 fi
6462
6463
6464
6465
6466
6467
6468
6469 if test -n "$ac_tool_prefix"; then
6470   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}strip; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_STRIP+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$STRIP"; then
6478   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485     for ac_exec_ext in '' $ac_executable_extensions; do
6486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492   done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 STRIP=$ac_cv_prog_STRIP
6498 if test -n "$STRIP"; then
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6500 $as_echo "$STRIP" >&6; }
6501 else
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506
6507 fi
6508 if test -z "$ac_cv_prog_STRIP"; then
6509   ac_ct_STRIP=$STRIP
6510   # Extract the first word of "strip", so it can be a program name with args.
6511 set dummy strip; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   if test -n "$ac_ct_STRIP"; then
6518   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525     for ac_exec_ext in '' $ac_executable_extensions; do
6526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527     ac_cv_prog_ac_ct_STRIP="strip"
6528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532   done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6538 if test -n "$ac_ct_STRIP"; then
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6540 $as_echo "$ac_ct_STRIP" >&6; }
6541 else
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546   if test "x$ac_ct_STRIP" = x; then
6547     STRIP=":"
6548   else
6549     case $cross_compiling:$ac_tool_warned in
6550 yes:)
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555     STRIP=$ac_ct_STRIP
6556   fi
6557 else
6558   STRIP="$ac_cv_prog_STRIP"
6559 fi
6560
6561 test -z "$STRIP" && STRIP=:
6562
6563
6564
6565
6566
6567
6568 if test -n "$ac_tool_prefix"; then
6569   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_RANLIB+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test -n "$RANLIB"; then
6577   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584     for ac_exec_ext in '' $ac_executable_extensions; do
6585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591   done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 RANLIB=$ac_cv_prog_RANLIB
6597 if test -n "$RANLIB"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6599 $as_echo "$RANLIB" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_RANLIB"; then
6608   ac_ct_RANLIB=$RANLIB
6609   # Extract the first word of "ranlib", so it can be a program name with args.
6610 set dummy ranlib; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$ac_ct_RANLIB"; then
6617   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_prog_ac_ct_RANLIB="ranlib"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6637 if test -n "$ac_ct_RANLIB"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6639 $as_echo "$ac_ct_RANLIB" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645   if test "x$ac_ct_RANLIB" = x; then
6646     RANLIB=":"
6647   else
6648     case $cross_compiling:$ac_tool_warned in
6649 yes:)
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654     RANLIB=$ac_ct_RANLIB
6655   fi
6656 else
6657   RANLIB="$ac_cv_prog_RANLIB"
6658 fi
6659
6660 test -z "$RANLIB" && RANLIB=:
6661
6662
6663
6664
6665
6666
6667 # Determine commands to create old-style static archives.
6668 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6669 old_postinstall_cmds='chmod 644 $oldlib'
6670 old_postuninstall_cmds=
6671
6672 if test -n "$RANLIB"; then
6673   case $host_os in
6674   openbsd*)
6675     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6676     ;;
6677   *)
6678     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6679     ;;
6680   esac
6681   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6682 fi
6683
6684 case $host_os in
6685   darwin*)
6686     lock_old_archive_extraction=yes ;;
6687   *)
6688     lock_old_archive_extraction=no ;;
6689 esac
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711 for ac_prog in gawk mawk nawk awk
6712 do
6713   # Extract the first word of "$ac_prog", so it can be a program name with args.
6714 set dummy $ac_prog; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_AWK+:} false; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   if test -n "$AWK"; then
6721   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728     for ac_exec_ext in '' $ac_executable_extensions; do
6729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730     ac_cv_prog_AWK="$ac_prog"
6731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735   done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 AWK=$ac_cv_prog_AWK
6741 if test -n "$AWK"; then
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6743 $as_echo "$AWK" >&6; }
6744 else
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749
6750   test -n "$AWK" && break
6751 done
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771 # If no C compiler was specified, use CC.
6772 LTCC=${LTCC-"$CC"}
6773
6774 # If no C compiler flags were specified, use CFLAGS.
6775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6776
6777 # Allow CC to be a program name with arguments.
6778 compiler=$CC
6779
6780
6781 # Check for command to grab the raw symbol name followed by C symbol from nm.
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6783 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6784 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787
6788 # These are sane defaults that work on at least a few old systems.
6789 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6790
6791 # Character class describing NM global symbol codes.
6792 symcode='[BCDEGRST]'
6793
6794 # Regexp to match symbols that can be accessed directly from C.
6795 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6796
6797 # Define system-specific variables.
6798 case $host_os in
6799 aix*)
6800   symcode='[BCDT]'
6801   ;;
6802 cygwin* | mingw* | pw32* | cegcc*)
6803   symcode='[ABCDGISTW]'
6804   ;;
6805 hpux*)
6806   if test "$host_cpu" = ia64; then
6807     symcode='[ABCDEGRST]'
6808   fi
6809   ;;
6810 irix* | nonstopux*)
6811   symcode='[BCDEGRST]'
6812   ;;
6813 osf*)
6814   symcode='[BCDEGQRST]'
6815   ;;
6816 solaris*)
6817   symcode='[BDRT]'
6818   ;;
6819 sco3.2v5*)
6820   symcode='[DT]'
6821   ;;
6822 sysv4.2uw2*)
6823   symcode='[DT]'
6824   ;;
6825 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6826   symcode='[ABDT]'
6827   ;;
6828 sysv4)
6829   symcode='[DFNSTU]'
6830   ;;
6831 esac
6832
6833 # If we're using GNU nm, then use its standard symbol codes.
6834 case `$NM -V 2>&1` in
6835 *GNU* | *'with BFD'*)
6836   symcode='[ABCDGIRSTW]' ;;
6837 esac
6838
6839 # Transform an extracted symbol line into a proper C declaration.
6840 # Some systems (esp. on ia64) link data and code symbols differently,
6841 # so use this general approach.
6842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6843
6844 # Transform an extracted symbol line into symbol name and symbol address
6845 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6847
6848 # Handle CRLF in mingw tool chain
6849 opt_cr=
6850 case $build_os in
6851 mingw*)
6852   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6853   ;;
6854 esac
6855
6856 # Try without a prefix underscore, then with it.
6857 for ac_symprfx in "" "_"; do
6858
6859   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6860   symxfrm="\\1 $ac_symprfx\\2 \\2"
6861
6862   # Write the raw and C identifiers.
6863   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6864     # Fake it for dumpbin and say T for any non-static function
6865     # and D for any global variable.
6866     # Also find C++ and __fastcall symbols from MSVC++,
6867     # which start with @ or ?.
6868     lt_cv_sys_global_symbol_pipe="$AWK '"\
6869 "     {last_section=section; section=\$ 3};"\
6870 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6871 "     \$ 0!~/External *\|/{next};"\
6872 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6873 "     {if(hide[section]) next};"\
6874 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6875 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6876 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6877 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6878 "     ' prfx=^$ac_symprfx"
6879   else
6880     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6881   fi
6882   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6883
6884   # Check to see that the pipe works correctly.
6885   pipe_works=no
6886
6887   rm -f conftest*
6888   cat > conftest.$ac_ext <<_LT_EOF
6889 #ifdef __cplusplus
6890 extern "C" {
6891 #endif
6892 char nm_test_var;
6893 void nm_test_func(void);
6894 void nm_test_func(void){}
6895 #ifdef __cplusplus
6896 }
6897 #endif
6898 int main(){nm_test_var='a';nm_test_func();return(0);}
6899 _LT_EOF
6900
6901   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902   (eval $ac_compile) 2>&5
6903   ac_status=$?
6904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905   test $ac_status = 0; }; then
6906     # Now try to grab the symbols.
6907     nlist=conftest.nm
6908     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6909   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6910   ac_status=$?
6911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912   test $ac_status = 0; } && test -s "$nlist"; then
6913       # Try sorting and uniquifying the output.
6914       if sort "$nlist" | uniq > "$nlist"T; then
6915         mv -f "$nlist"T "$nlist"
6916       else
6917         rm -f "$nlist"T
6918       fi
6919
6920       # Make sure that we snagged all the symbols we need.
6921       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6922         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6923           cat <<_LT_EOF > conftest.$ac_ext
6924 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6925 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6926 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6927    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6928 # define LT_DLSYM_CONST
6929 #elif defined(__osf__)
6930 /* This system does not cope well with relocations in const data.  */
6931 # define LT_DLSYM_CONST
6932 #else
6933 # define LT_DLSYM_CONST const
6934 #endif
6935
6936 #ifdef __cplusplus
6937 extern "C" {
6938 #endif
6939
6940 _LT_EOF
6941           # Now generate the symbol file.
6942           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6943
6944           cat <<_LT_EOF >> conftest.$ac_ext
6945
6946 /* The mapping between symbol names and symbols.  */
6947 LT_DLSYM_CONST struct {
6948   const char *name;
6949   void       *address;
6950 }
6951 lt__PROGRAM__LTX_preloaded_symbols[] =
6952 {
6953   { "@PROGRAM@", (void *) 0 },
6954 _LT_EOF
6955           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6956           cat <<\_LT_EOF >> conftest.$ac_ext
6957   {0, (void *) 0}
6958 };
6959
6960 /* This works around a problem in FreeBSD linker */
6961 #ifdef FREEBSD_WORKAROUND
6962 static const void *lt_preloaded_setup() {
6963   return lt__PROGRAM__LTX_preloaded_symbols;
6964 }
6965 #endif
6966
6967 #ifdef __cplusplus
6968 }
6969 #endif
6970 _LT_EOF
6971           # Now try linking the two files.
6972           mv conftest.$ac_objext conftstm.$ac_objext
6973           lt_globsym_save_LIBS=$LIBS
6974           lt_globsym_save_CFLAGS=$CFLAGS
6975           LIBS="conftstm.$ac_objext"
6976           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6977           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6978   (eval $ac_link) 2>&5
6979   ac_status=$?
6980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6982             pipe_works=yes
6983           fi
6984           LIBS=$lt_globsym_save_LIBS
6985           CFLAGS=$lt_globsym_save_CFLAGS
6986         else
6987           echo "cannot find nm_test_func in $nlist" >&5
6988         fi
6989       else
6990         echo "cannot find nm_test_var in $nlist" >&5
6991       fi
6992     else
6993       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6994     fi
6995   else
6996     echo "$progname: failed program was:" >&5
6997     cat conftest.$ac_ext >&5
6998   fi
6999   rm -rf conftest* conftst*
7000
7001   # Do not use the global_symbol_pipe unless it works.
7002   if test "$pipe_works" = yes; then
7003     break
7004   else
7005     lt_cv_sys_global_symbol_pipe=
7006   fi
7007 done
7008
7009 fi
7010
7011 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7012   lt_cv_sys_global_symbol_to_cdecl=
7013 fi
7014 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7016 $as_echo "failed" >&6; }
7017 else
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7019 $as_echo "ok" >&6; }
7020 fi
7021
7022 # Response file support.
7023 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7024   nm_file_list_spec='@'
7025 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7026   nm_file_list_spec='@'
7027 fi
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7056 $as_echo_n "checking for sysroot... " >&6; }
7057
7058 # Check whether --with-sysroot was given.
7059 if test "${with_sysroot+set}" = set; then :
7060   withval=$with_sysroot;
7061 else
7062   with_sysroot=no
7063 fi
7064
7065
7066 lt_sysroot=
7067 case ${with_sysroot} in #(
7068  yes)
7069    if test "$GCC" = yes; then
7070      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7071    fi
7072    ;; #(
7073  /*)
7074    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7075    ;; #(
7076  no|'')
7077    ;; #(
7078  *)
7079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7080 $as_echo "${with_sysroot}" >&6; }
7081    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7082    ;;
7083 esac
7084
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7086 $as_echo "${lt_sysroot:-no}" >&6; }
7087
7088
7089
7090
7091
7092 # Check whether --enable-libtool-lock was given.
7093 if test "${enable_libtool_lock+set}" = set; then :
7094   enableval=$enable_libtool_lock;
7095 fi
7096
7097 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7098
7099 # Some flags need to be propagated to the compiler or linker for good
7100 # libtool support.
7101 case $host in
7102 ia64-*-hpux*)
7103   # Find out which ABI we are using.
7104   echo 'int i;' > conftest.$ac_ext
7105   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7106   (eval $ac_compile) 2>&5
7107   ac_status=$?
7108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109   test $ac_status = 0; }; then
7110     case `/usr/bin/file conftest.$ac_objext` in
7111       *ELF-32*)
7112         HPUX_IA64_MODE="32"
7113         ;;
7114       *ELF-64*)
7115         HPUX_IA64_MODE="64"
7116         ;;
7117     esac
7118   fi
7119   rm -rf conftest*
7120   ;;
7121 *-*-irix6*)
7122   # Find out which ABI we are using.
7123   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7124   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7125   (eval $ac_compile) 2>&5
7126   ac_status=$?
7127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128   test $ac_status = 0; }; then
7129     if test "$lt_cv_prog_gnu_ld" = yes; then
7130       case `/usr/bin/file conftest.$ac_objext` in
7131         *32-bit*)
7132           LD="${LD-ld} -melf32bsmip"
7133           ;;
7134         *N32*)
7135           LD="${LD-ld} -melf32bmipn32"
7136           ;;
7137         *64-bit*)
7138           LD="${LD-ld} -melf64bmip"
7139         ;;
7140       esac
7141     else
7142       case `/usr/bin/file conftest.$ac_objext` in
7143         *32-bit*)
7144           LD="${LD-ld} -32"
7145           ;;
7146         *N32*)
7147           LD="${LD-ld} -n32"
7148           ;;
7149         *64-bit*)
7150           LD="${LD-ld} -64"
7151           ;;
7152       esac
7153     fi
7154   fi
7155   rm -rf conftest*
7156   ;;
7157
7158 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7159 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7160   # Find out which ABI we are using.
7161   echo 'int i;' > conftest.$ac_ext
7162   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7163   (eval $ac_compile) 2>&5
7164   ac_status=$?
7165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166   test $ac_status = 0; }; then
7167     case `/usr/bin/file conftest.o` in
7168       *32-bit*)
7169         case $host in
7170           x86_64-*kfreebsd*-gnu)
7171             LD="${LD-ld} -m elf_i386_fbsd"
7172             ;;
7173           x86_64-*linux*)
7174             LD="${LD-ld} -m elf_i386"
7175             ;;
7176           ppc64-*linux*|powerpc64-*linux*)
7177             LD="${LD-ld} -m elf32ppclinux"
7178             ;;
7179           s390x-*linux*)
7180             LD="${LD-ld} -m elf_s390"
7181             ;;
7182           sparc64-*linux*)
7183             LD="${LD-ld} -m elf32_sparc"
7184             ;;
7185         esac
7186         ;;
7187       *64-bit*)
7188         case $host in
7189           x86_64-*kfreebsd*-gnu)
7190             LD="${LD-ld} -m elf_x86_64_fbsd"
7191             ;;
7192           x86_64-*linux*)
7193             LD="${LD-ld} -m elf_x86_64"
7194             ;;
7195           ppc*-*linux*|powerpc*-*linux*)
7196             LD="${LD-ld} -m elf64ppc"
7197             ;;
7198           s390*-*linux*|s390*-*tpf*)
7199             LD="${LD-ld} -m elf64_s390"
7200             ;;
7201           sparc*-*linux*)
7202             LD="${LD-ld} -m elf64_sparc"
7203             ;;
7204         esac
7205         ;;
7206     esac
7207   fi
7208   rm -rf conftest*
7209   ;;
7210
7211 *-*-sco3.2v5*)
7212   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7213   SAVE_CFLAGS="$CFLAGS"
7214   CFLAGS="$CFLAGS -belf"
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7216 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7217 if ${lt_cv_cc_needs_belf+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   ac_ext=c
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225
7226      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h.  */
7228
7229 int
7230 main ()
7231 {
7232
7233   ;
7234   return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238   lt_cv_cc_needs_belf=yes
7239 else
7240   lt_cv_cc_needs_belf=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243     conftest$ac_exeext conftest.$ac_ext
7244      ac_ext=c
7245 ac_cpp='$CPP $CPPFLAGS'
7246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7249
7250 fi
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7252 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7253   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7254     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7255     CFLAGS="$SAVE_CFLAGS"
7256   fi
7257   ;;
7258 sparc*-*solaris*)
7259   # Find out which ABI we are using.
7260   echo 'int i;' > conftest.$ac_ext
7261   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262   (eval $ac_compile) 2>&5
7263   ac_status=$?
7264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265   test $ac_status = 0; }; then
7266     case `/usr/bin/file conftest.o` in
7267     *64-bit*)
7268       case $lt_cv_prog_gnu_ld in
7269       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7270       *)
7271         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7272           LD="${LD-ld} -64"
7273         fi
7274         ;;
7275       esac
7276       ;;
7277     esac
7278   fi
7279   rm -rf conftest*
7280   ;;
7281 esac
7282
7283 need_locks="$enable_libtool_lock"
7284
7285 if test -n "$ac_tool_prefix"; then
7286   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}mt; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   if test -n "$MANIFEST_TOOL"; then
7294   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299   IFS=$as_save_IFS
7300   test -z "$as_dir" && as_dir=.
7301     for ac_exec_ext in '' $ac_executable_extensions; do
7302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305     break 2
7306   fi
7307 done
7308   done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7314 if test -n "$MANIFEST_TOOL"; then
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7316 $as_echo "$MANIFEST_TOOL" >&6; }
7317 else
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321
7322
7323 fi
7324 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7325   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7326   # Extract the first word of "mt", so it can be a program name with args.
7327 set dummy mt; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   if test -n "$ac_ct_MANIFEST_TOOL"; then
7334   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341     for ac_exec_ext in '' $ac_executable_extensions; do
7342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348   done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7354 if test -n "$ac_ct_MANIFEST_TOOL"; then
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7356 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7357 else
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7363     MANIFEST_TOOL=":"
7364   else
7365     case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7372   fi
7373 else
7374   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7375 fi
7376
7377 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7379 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7380 if ${lt_cv_path_mainfest_tool+:} false; then :
7381   $as_echo_n "(cached) " >&6
7382 else
7383   lt_cv_path_mainfest_tool=no
7384   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7385   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7386   cat conftest.err >&5
7387   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7388     lt_cv_path_mainfest_tool=yes
7389   fi
7390   rm -f conftest*
7391 fi
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7393 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7394 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7395   MANIFEST_TOOL=:
7396 fi
7397
7398
7399
7400
7401
7402
7403   case $host_os in
7404     rhapsody* | darwin*)
7405     if test -n "$ac_tool_prefix"; then
7406   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413   if test -n "$DSYMUTIL"; then
7414   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421     for ac_exec_ext in '' $ac_executable_extensions; do
7422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428   done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7434 if test -n "$DSYMUTIL"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7436 $as_echo "$DSYMUTIL" >&6; }
7437 else
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442
7443 fi
7444 if test -z "$ac_cv_prog_DSYMUTIL"; then
7445   ac_ct_DSYMUTIL=$DSYMUTIL
7446   # Extract the first word of "dsymutil", so it can be a program name with args.
7447 set dummy dsymutil; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   if test -n "$ac_ct_DSYMUTIL"; then
7454   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7455 else
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_exec_ext in '' $ac_executable_extensions; do
7462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465     break 2
7466   fi
7467 done
7468   done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7474 if test -n "$ac_ct_DSYMUTIL"; then
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7476 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7477 else
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482   if test "x$ac_ct_DSYMUTIL" = x; then
7483     DSYMUTIL=":"
7484   else
7485     case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491     DSYMUTIL=$ac_ct_DSYMUTIL
7492   fi
7493 else
7494   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7495 fi
7496
7497     if test -n "$ac_tool_prefix"; then
7498   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_NMEDIT+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   if test -n "$NMEDIT"; then
7506   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 NMEDIT=$ac_cv_prog_NMEDIT
7526 if test -n "$NMEDIT"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7528 $as_echo "$NMEDIT" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534
7535 fi
7536 if test -z "$ac_cv_prog_NMEDIT"; then
7537   ac_ct_NMEDIT=$NMEDIT
7538   # Extract the first word of "nmedit", so it can be a program name with args.
7539 set dummy nmedit; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   if test -n "$ac_ct_NMEDIT"; then
7546   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553     for ac_exec_ext in '' $ac_executable_extensions; do
7554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560   done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7566 if test -n "$ac_ct_NMEDIT"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7568 $as_echo "$ac_ct_NMEDIT" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574   if test "x$ac_ct_NMEDIT" = x; then
7575     NMEDIT=":"
7576   else
7577     case $cross_compiling:$ac_tool_warned in
7578 yes:)
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581 ac_tool_warned=yes ;;
7582 esac
7583     NMEDIT=$ac_ct_NMEDIT
7584   fi
7585 else
7586   NMEDIT="$ac_cv_prog_NMEDIT"
7587 fi
7588
7589     if test -n "$ac_tool_prefix"; then
7590   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7591 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if ${ac_cv_prog_LIPO+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   if test -n "$LIPO"; then
7598   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605     for ac_exec_ext in '' $ac_executable_extensions; do
7606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612   done
7613 IFS=$as_save_IFS
7614
7615 fi
7616 fi
7617 LIPO=$ac_cv_prog_LIPO
7618 if test -n "$LIPO"; then
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7620 $as_echo "$LIPO" >&6; }
7621 else
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7624 fi
7625
7626
7627 fi
7628 if test -z "$ac_cv_prog_LIPO"; then
7629   ac_ct_LIPO=$LIPO
7630   # Extract the first word of "lipo", so it can be a program name with args.
7631 set dummy lipo; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   if test -n "$ac_ct_LIPO"; then
7638   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645     for ac_exec_ext in '' $ac_executable_extensions; do
7646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647     ac_cv_prog_ac_ct_LIPO="lipo"
7648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652   done
7653 IFS=$as_save_IFS
7654
7655 fi
7656 fi
7657 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7658 if test -n "$ac_ct_LIPO"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7660 $as_echo "$ac_ct_LIPO" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666   if test "x$ac_ct_LIPO" = x; then
7667     LIPO=":"
7668   else
7669     case $cross_compiling:$ac_tool_warned in
7670 yes:)
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673 ac_tool_warned=yes ;;
7674 esac
7675     LIPO=$ac_ct_LIPO
7676   fi
7677 else
7678   LIPO="$ac_cv_prog_LIPO"
7679 fi
7680
7681     if test -n "$ac_tool_prefix"; then
7682   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7683 set dummy ${ac_tool_prefix}otool; ac_word=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if ${ac_cv_prog_OTOOL+:} false; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   if test -n "$OTOOL"; then
7690   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697     for ac_exec_ext in '' $ac_executable_extensions; do
7698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704   done
7705 IFS=$as_save_IFS
7706
7707 fi
7708 fi
7709 OTOOL=$ac_cv_prog_OTOOL
7710 if test -n "$OTOOL"; then
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7712 $as_echo "$OTOOL" >&6; }
7713 else
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7716 fi
7717
7718
7719 fi
7720 if test -z "$ac_cv_prog_OTOOL"; then
7721   ac_ct_OTOOL=$OTOOL
7722   # Extract the first word of "otool", so it can be a program name with args.
7723 set dummy otool; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729   if test -n "$ac_ct_OTOOL"; then
7730   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737     for ac_exec_ext in '' $ac_executable_extensions; do
7738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739     ac_cv_prog_ac_ct_OTOOL="otool"
7740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744   done
7745 IFS=$as_save_IFS
7746
7747 fi
7748 fi
7749 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7750 if test -n "$ac_ct_OTOOL"; then
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7752 $as_echo "$ac_ct_OTOOL" >&6; }
7753 else
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7756 fi
7757
7758   if test "x$ac_ct_OTOOL" = x; then
7759     OTOOL=":"
7760   else
7761     case $cross_compiling:$ac_tool_warned in
7762 yes:)
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7765 ac_tool_warned=yes ;;
7766 esac
7767     OTOOL=$ac_ct_OTOOL
7768   fi
7769 else
7770   OTOOL="$ac_cv_prog_OTOOL"
7771 fi
7772
7773     if test -n "$ac_tool_prefix"; then
7774   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7775 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if ${ac_cv_prog_OTOOL64+:} false; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   if test -n "$OTOOL64"; then
7782   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789     for ac_exec_ext in '' $ac_executable_extensions; do
7790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796   done
7797 IFS=$as_save_IFS
7798
7799 fi
7800 fi
7801 OTOOL64=$ac_cv_prog_OTOOL64
7802 if test -n "$OTOOL64"; then
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7804 $as_echo "$OTOOL64" >&6; }
7805 else
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811 fi
7812 if test -z "$ac_cv_prog_OTOOL64"; then
7813   ac_ct_OTOOL64=$OTOOL64
7814   # Extract the first word of "otool64", so it can be a program name with args.
7815 set dummy otool64; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   if test -n "$ac_ct_OTOOL64"; then
7822   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829     for ac_exec_ext in '' $ac_executable_extensions; do
7830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831     ac_cv_prog_ac_ct_OTOOL64="otool64"
7832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836   done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7842 if test -n "$ac_ct_OTOOL64"; then
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7844 $as_echo "$ac_ct_OTOOL64" >&6; }
7845 else
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 fi
7849
7850   if test "x$ac_ct_OTOOL64" = x; then
7851     OTOOL64=":"
7852   else
7853     case $cross_compiling:$ac_tool_warned in
7854 yes:)
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857 ac_tool_warned=yes ;;
7858 esac
7859     OTOOL64=$ac_ct_OTOOL64
7860   fi
7861 else
7862   OTOOL64="$ac_cv_prog_OTOOL64"
7863 fi
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7892 $as_echo_n "checking for -single_module linker flag... " >&6; }
7893 if ${lt_cv_apple_cc_single_mod+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   lt_cv_apple_cc_single_mod=no
7897       if test -z "${LT_MULTI_MODULE}"; then
7898         # By default we will add the -single_module flag. You can override
7899         # by either setting the environment variable LT_MULTI_MODULE
7900         # non-empty at configure time, or by adding -multi_module to the
7901         # link flags.
7902         rm -rf libconftest.dylib*
7903         echo "int foo(void){return 1;}" > conftest.c
7904         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7905 -dynamiclib -Wl,-single_module conftest.c" >&5
7906         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7907           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7908         _lt_result=$?
7909         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7910           lt_cv_apple_cc_single_mod=yes
7911         else
7912           cat conftest.err >&5
7913         fi
7914         rm -rf libconftest.dylib*
7915         rm -f conftest.*
7916       fi
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7919 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7921 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7922 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7923   $as_echo_n "(cached) " >&6
7924 else
7925   lt_cv_ld_exported_symbols_list=no
7926       save_LDFLAGS=$LDFLAGS
7927       echo "_main" > conftest.sym
7928       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h.  */
7931
7932 int
7933 main ()
7934 {
7935
7936   ;
7937   return 0;
7938 }
7939 _ACEOF
7940 if ac_fn_c_try_link "$LINENO"; then :
7941   lt_cv_ld_exported_symbols_list=yes
7942 else
7943   lt_cv_ld_exported_symbols_list=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext \
7946     conftest$ac_exeext conftest.$ac_ext
7947         LDFLAGS="$save_LDFLAGS"
7948
7949 fi
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7951 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7953 $as_echo_n "checking for -force_load linker flag... " >&6; }
7954 if ${lt_cv_ld_force_load+:} false; then :
7955   $as_echo_n "(cached) " >&6
7956 else
7957   lt_cv_ld_force_load=no
7958       cat > conftest.c << _LT_EOF
7959 int forced_loaded() { return 2;}
7960 _LT_EOF
7961       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7962       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7963       echo "$AR cru libconftest.a conftest.o" >&5
7964       $AR cru libconftest.a conftest.o 2>&5
7965       echo "$RANLIB libconftest.a" >&5
7966       $RANLIB libconftest.a 2>&5
7967       cat > conftest.c << _LT_EOF
7968 int main() { return 0;}
7969 _LT_EOF
7970       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7971       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7972       _lt_result=$?
7973       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7974         lt_cv_ld_force_load=yes
7975       else
7976         cat conftest.err >&5
7977       fi
7978         rm -f conftest.err libconftest.a conftest conftest.c
7979         rm -rf conftest.dSYM
7980
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7983 $as_echo "$lt_cv_ld_force_load" >&6; }
7984     case $host_os in
7985     rhapsody* | darwin1.[012])
7986       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7987     darwin1.*)
7988       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7989     darwin*) # darwin 5.x on
7990       # if running on 10.5 or later, the deployment target defaults
7991       # to the OS version, if on x86, and 10.4, the deployment
7992       # target defaults to 10.4. Don't you love it?
7993       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7994         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7995           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7996         10.[012]*)
7997           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7998         10.*)
7999           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8000       esac
8001     ;;
8002   esac
8003     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8004       _lt_dar_single_mod='$single_module'
8005     fi
8006     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8007       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8008     else
8009       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8010     fi
8011     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8012       _lt_dsymutil='~$DSYMUTIL $lib || :'
8013     else
8014       _lt_dsymutil=
8015     fi
8016     ;;
8017   esac
8018
8019 for ac_header in dlfcn.h
8020 do :
8021   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8022 "
8023 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8024   cat >>confdefs.h <<_ACEOF
8025 #define HAVE_DLFCN_H 1
8026 _ACEOF
8027
8028 fi
8029
8030 done
8031
8032
8033
8034
8035 func_stripname_cnf ()
8036 {
8037   case ${2} in
8038   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8039   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8040   esac
8041 } # func_stripname_cnf
8042
8043 if test "x$with_system_libtool" = "xyes" ; then :
8044    # Extract the first word of "libtool", so it can be a program name with args.
8045 set dummy libtool; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_path_LIBTOOL+:} false; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051   case $LIBTOOL in
8052   [\\/]* | ?:[\\/]*)
8053   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8054   ;;
8055   *)
8056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 as_dummy="$PATH:/usr/local/bin"
8058 for as_dir in $as_dummy
8059 do
8060   IFS=$as_save_IFS
8061   test -z "$as_dir" && as_dir=.
8062     for ac_exec_ext in '' $ac_executable_extensions; do
8063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066     break 2
8067   fi
8068 done
8069   done
8070 IFS=$as_save_IFS
8071
8072   ;;
8073 esac
8074 fi
8075 LIBTOOL=$ac_cv_path_LIBTOOL
8076 if test -n "$LIBTOOL"; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8078 $as_echo "$LIBTOOL" >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084  enable_dlopen=yes
8085
8086
8087
8088
8089
8090
8091
8092 # Set options
8093
8094
8095
8096
8097   enable_win32_dll=no
8098
8099
8100             # Check whether --enable-shared was given.
8101 if test "${enable_shared+set}" = set; then :
8102   enableval=$enable_shared; p=${PACKAGE-default}
8103     case $enableval in
8104     yes) enable_shared=yes ;;
8105     no) enable_shared=no ;;
8106     *)
8107       enable_shared=no
8108       # Look at the argument we got.  We use all the common list separators.
8109       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8110       for pkg in $enableval; do
8111         IFS="$lt_save_ifs"
8112         if test "X$pkg" = "X$p"; then
8113           enable_shared=yes
8114         fi
8115       done
8116       IFS="$lt_save_ifs"
8117       ;;
8118     esac
8119 else
8120   enable_shared=yes
8121 fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131   # Check whether --enable-static was given.
8132 if test "${enable_static+set}" = set; then :
8133   enableval=$enable_static; p=${PACKAGE-default}
8134     case $enableval in
8135     yes) enable_static=yes ;;
8136     no) enable_static=no ;;
8137     *)
8138      enable_static=no
8139       # Look at the argument we got.  We use all the common list separators.
8140       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8141       for pkg in $enableval; do
8142         IFS="$lt_save_ifs"
8143         if test "X$pkg" = "X$p"; then
8144           enable_static=yes
8145         fi
8146       done
8147       IFS="$lt_save_ifs"
8148       ;;
8149     esac
8150 else
8151   enable_static=yes
8152 fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163 # Check whether --with-pic was given.
8164 if test "${with_pic+set}" = set; then :
8165   withval=$with_pic; pic_mode="$withval"
8166 else
8167   pic_mode=default
8168 fi
8169
8170
8171 test -z "$pic_mode" && pic_mode=default
8172
8173
8174
8175
8176
8177
8178
8179   # Check whether --enable-fast-install was given.
8180 if test "${enable_fast_install+set}" = set; then :
8181   enableval=$enable_fast_install; p=${PACKAGE-default}
8182     case $enableval in
8183     yes) enable_fast_install=yes ;;
8184     no) enable_fast_install=no ;;
8185     *)
8186       enable_fast_install=no
8187       # Look at the argument we got.  We use all the common list separators.
8188       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8189       for pkg in $enableval; do
8190         IFS="$lt_save_ifs"
8191         if test "X$pkg" = "X$p"; then
8192           enable_fast_install=yes
8193         fi
8194       done
8195       IFS="$lt_save_ifs"
8196       ;;
8197     esac
8198 else
8199   enable_fast_install=yes
8200 fi
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237 test -z "$LN_S" && LN_S="ln -s"
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 if test -n "${ZSH_VERSION+set}" ; then
8253    setopt NO_GLOB_SUBST
8254 fi
8255
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8257 $as_echo_n "checking for objdir... " >&6; }
8258 if ${lt_cv_objdir+:} false; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   rm -f .libs 2>/dev/null
8262 mkdir .libs 2>/dev/null
8263 if test -d .libs; then
8264   lt_cv_objdir=.libs
8265 else
8266   # MS-DOS does not allow filenames that begin with a dot.
8267   lt_cv_objdir=_libs
8268 fi
8269 rmdir .libs 2>/dev/null
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8272 $as_echo "$lt_cv_objdir" >&6; }
8273 objdir=$lt_cv_objdir
8274
8275
8276
8277
8278
8279 cat >>confdefs.h <<_ACEOF
8280 #define LT_OBJDIR "$lt_cv_objdir/"
8281 _ACEOF
8282
8283
8284
8285
8286 case $host_os in
8287 aix3*)
8288   # AIX sometimes has problems with the GCC collect2 program.  For some
8289   # reason, if we set the COLLECT_NAMES environment variable, the problems
8290   # vanish in a puff of smoke.
8291   if test "X${COLLECT_NAMES+set}" != Xset; then
8292     COLLECT_NAMES=
8293     export COLLECT_NAMES
8294   fi
8295   ;;
8296 esac
8297
8298 # Global variables:
8299 ofile=libtool
8300 can_build_shared=yes
8301
8302 # All known linkers require a `.a' archive for static linking (except MSVC,
8303 # which needs '.lib').
8304 libext=a
8305
8306 with_gnu_ld="$lt_cv_prog_gnu_ld"
8307
8308 old_CC="$CC"
8309 old_CFLAGS="$CFLAGS"
8310
8311 # Set sane defaults for various variables
8312 test -z "$CC" && CC=cc
8313 test -z "$LTCC" && LTCC=$CC
8314 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8315 test -z "$LD" && LD=ld
8316 test -z "$ac_objext" && ac_objext=o
8317
8318 for cc_temp in $compiler""; do
8319   case $cc_temp in
8320     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8321     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8322     \-*) ;;
8323     *) break;;
8324   esac
8325 done
8326 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8327
8328
8329 # Only perform the check for file, if the check method requires it
8330 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8331 case $deplibs_check_method in
8332 file_magic*)
8333   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8335 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8336 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   case $MAGIC_CMD in
8340 [\\/*] |  ?:[\\/]*)
8341   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8342   ;;
8343 *)
8344   lt_save_MAGIC_CMD="$MAGIC_CMD"
8345   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8346   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8347   for ac_dir in $ac_dummy; do
8348     IFS="$lt_save_ifs"
8349     test -z "$ac_dir" && ac_dir=.
8350     if test -f $ac_dir/${ac_tool_prefix}file; then
8351       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8352       if test -n "$file_magic_test_file"; then
8353         case $deplibs_check_method in
8354         "file_magic "*)
8355           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8356           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8357           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8358             $EGREP "$file_magic_regex" > /dev/null; then
8359             :
8360           else
8361             cat <<_LT_EOF 1>&2
8362
8363 *** Warning: the command libtool uses to detect shared libraries,
8364 *** $file_magic_cmd, produces output that libtool cannot recognize.
8365 *** The result is that libtool may fail to recognize shared libraries
8366 *** as such.  This will affect the creation of libtool libraries that
8367 *** depend on shared libraries, but programs linked with such libtool
8368 *** libraries will work regardless of this problem.  Nevertheless, you
8369 *** may want to report the problem to your system manager and/or to
8370 *** bug-libtool@gnu.org
8371
8372 _LT_EOF
8373           fi ;;
8374         esac
8375       fi
8376       break
8377     fi
8378   done
8379   IFS="$lt_save_ifs"
8380   MAGIC_CMD="$lt_save_MAGIC_CMD"
8381   ;;
8382 esac
8383 fi
8384
8385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8386 if test -n "$MAGIC_CMD"; then
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8388 $as_echo "$MAGIC_CMD" >&6; }
8389 else
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8392 fi
8393
8394
8395
8396
8397
8398 if test -z "$lt_cv_path_MAGIC_CMD"; then
8399   if test -n "$ac_tool_prefix"; then
8400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8401 $as_echo_n "checking for file... " >&6; }
8402 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8403   $as_echo_n "(cached) " >&6
8404 else
8405   case $MAGIC_CMD in
8406 [\\/*] |  ?:[\\/]*)
8407   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8408   ;;
8409 *)
8410   lt_save_MAGIC_CMD="$MAGIC_CMD"
8411   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8412   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8413   for ac_dir in $ac_dummy; do
8414     IFS="$lt_save_ifs"
8415     test -z "$ac_dir" && ac_dir=.
8416     if test -f $ac_dir/file; then
8417       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8418       if test -n "$file_magic_test_file"; then
8419         case $deplibs_check_method in
8420         "file_magic "*)
8421           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8422           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8423           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8424             $EGREP "$file_magic_regex" > /dev/null; then
8425             :
8426           else
8427             cat <<_LT_EOF 1>&2
8428
8429 *** Warning: the command libtool uses to detect shared libraries,
8430 *** $file_magic_cmd, produces output that libtool cannot recognize.
8431 *** The result is that libtool may fail to recognize shared libraries
8432 *** as such.  This will affect the creation of libtool libraries that
8433 *** depend on shared libraries, but programs linked with such libtool
8434 *** libraries will work regardless of this problem.  Nevertheless, you
8435 *** may want to report the problem to your system manager and/or to
8436 *** bug-libtool@gnu.org
8437
8438 _LT_EOF
8439           fi ;;
8440         esac
8441       fi
8442       break
8443     fi
8444   done
8445   IFS="$lt_save_ifs"
8446   MAGIC_CMD="$lt_save_MAGIC_CMD"
8447   ;;
8448 esac
8449 fi
8450
8451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8452 if test -n "$MAGIC_CMD"; then
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8454 $as_echo "$MAGIC_CMD" >&6; }
8455 else
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8458 fi
8459
8460
8461   else
8462     MAGIC_CMD=:
8463   fi
8464 fi
8465
8466   fi
8467   ;;
8468 esac
8469
8470 # Use C for the default configuration in the libtool script
8471
8472 lt_save_CC="$CC"
8473 ac_ext=c
8474 ac_cpp='$CPP $CPPFLAGS'
8475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8478
8479
8480 # Source file extension for C test sources.
8481 ac_ext=c
8482
8483 # Object file extension for compiled C test sources.
8484 objext=o
8485 objext=$objext
8486
8487 # Code to be used in simple compile tests
8488 lt_simple_compile_test_code="int some_variable = 0;"
8489
8490 # Code to be used in simple link tests
8491 lt_simple_link_test_code='int main(){return(0);}'
8492
8493
8494
8495
8496
8497
8498
8499 # If no C compiler was specified, use CC.
8500 LTCC=${LTCC-"$CC"}
8501
8502 # If no C compiler flags were specified, use CFLAGS.
8503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8504
8505 # Allow CC to be a program name with arguments.
8506 compiler=$CC
8507
8508 # Save the default compiler, since it gets overwritten when the other
8509 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8510 compiler_DEFAULT=$CC
8511
8512 # save warnings/boilerplate of simple test code
8513 ac_outfile=conftest.$ac_objext
8514 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8516 _lt_compiler_boilerplate=`cat conftest.err`
8517 $RM conftest*
8518
8519 ac_outfile=conftest.$ac_objext
8520 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8522 _lt_linker_boilerplate=`cat conftest.err`
8523 $RM -r conftest*
8524
8525
8526 if test -n "$compiler"; then
8527
8528 lt_prog_compiler_no_builtin_flag=
8529
8530 if test "$GCC" = yes; then
8531   case $cc_basename in
8532   nvcc*)
8533     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8534   *)
8535     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8536   esac
8537
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8539 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8540 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8541   $as_echo_n "(cached) " >&6
8542 else
8543   lt_cv_prog_compiler_rtti_exceptions=no
8544    ac_outfile=conftest.$ac_objext
8545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8546    lt_compiler_flag="-fno-rtti -fno-exceptions"
8547    # Insert the option either (1) after the last *FLAGS variable, or
8548    # (2) before a word containing "conftest.", or (3) at the end.
8549    # Note that $ac_compile itself does not contain backslashes and begins
8550    # with a dollar sign (not a hyphen), so the echo should work correctly.
8551    # The option is referenced via a variable to avoid confusing sed.
8552    lt_compile=`echo "$ac_compile" | $SED \
8553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8555    -e 's:$: $lt_compiler_flag:'`
8556    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8557    (eval "$lt_compile" 2>conftest.err)
8558    ac_status=$?
8559    cat conftest.err >&5
8560    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561    if (exit $ac_status) && test -s "$ac_outfile"; then
8562      # The compiler can only warn and ignore the option if not recognized
8563      # So say no if there are warnings other than the usual output.
8564      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8565      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8566      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8567        lt_cv_prog_compiler_rtti_exceptions=yes
8568      fi
8569    fi
8570    $RM conftest*
8571
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8574 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8575
8576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8577     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8578 else
8579     :
8580 fi
8581
8582 fi
8583
8584
8585
8586
8587
8588
8589   lt_prog_compiler_wl=
8590 lt_prog_compiler_pic=
8591 lt_prog_compiler_static=
8592
8593
8594   if test "$GCC" = yes; then
8595     lt_prog_compiler_wl='-Wl,'
8596     lt_prog_compiler_static='-static'
8597
8598     case $host_os in
8599       aix*)
8600       # All AIX code is PIC.
8601       if test "$host_cpu" = ia64; then
8602         # AIX 5 now supports IA64 processor
8603         lt_prog_compiler_static='-Bstatic'
8604       fi
8605       ;;
8606
8607     amigaos*)
8608       case $host_cpu in
8609       powerpc)
8610             # see comment about AmigaOS4 .so support
8611             lt_prog_compiler_pic='-fPIC'
8612         ;;
8613       m68k)
8614             # FIXME: we need at least 68020 code to build shared libraries, but
8615             # adding the `-m68020' flag to GCC prevents building anything better,
8616             # like `-m68040'.
8617             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8618         ;;
8619       esac
8620       ;;
8621
8622     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8623       # PIC is the default for these OSes.
8624       ;;
8625
8626     mingw* | cygwin* | pw32* | os2* | cegcc*)
8627       # This hack is so that the source file can tell whether it is being
8628       # built for inclusion in a dll (and should export symbols for example).
8629       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8630       # (--disable-auto-import) libraries
8631       lt_prog_compiler_pic='-DDLL_EXPORT'
8632       ;;
8633
8634     darwin* | rhapsody*)
8635       # PIC is the default on this platform
8636       # Common symbols not allowed in MH_DYLIB files
8637       lt_prog_compiler_pic='-fno-common'
8638       ;;
8639
8640     haiku*)
8641       # PIC is the default for Haiku.
8642       # The "-static" flag exists, but is broken.
8643       lt_prog_compiler_static=
8644       ;;
8645
8646     hpux*)
8647       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8648       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8649       # sets the default TLS model and affects inlining.
8650       case $host_cpu in
8651       hppa*64*)
8652         # +Z the default
8653         ;;
8654       *)
8655         lt_prog_compiler_pic='-fPIC'
8656         ;;
8657       esac
8658       ;;
8659
8660     interix[3-9]*)
8661       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8662       # Instead, we relocate shared libraries at runtime.
8663       ;;
8664
8665     msdosdjgpp*)
8666       # Just because we use GCC doesn't mean we suddenly get shared libraries
8667       # on systems that don't support them.
8668       lt_prog_compiler_can_build_shared=no
8669       enable_shared=no
8670       ;;
8671
8672     *nto* | *qnx*)
8673       # QNX uses GNU C++, but need to define -shared option too, otherwise
8674       # it will coredump.
8675       lt_prog_compiler_pic='-fPIC -shared'
8676       ;;
8677
8678     sysv4*MP*)
8679       if test -d /usr/nec; then
8680         lt_prog_compiler_pic=-Kconform_pic
8681       fi
8682       ;;
8683
8684     *)
8685       lt_prog_compiler_pic='-fPIC'
8686       ;;
8687     esac
8688
8689     case $cc_basename in
8690     nvcc*) # Cuda Compiler Driver 2.2
8691       lt_prog_compiler_wl='-Xlinker '
8692       lt_prog_compiler_pic='-Xcompiler -fPIC'
8693       ;;
8694     esac
8695   else
8696     # PORTME Check for flag to pass linker flags through the system compiler.
8697     case $host_os in
8698     aix*)
8699       lt_prog_compiler_wl='-Wl,'
8700       if test "$host_cpu" = ia64; then
8701         # AIX 5 now supports IA64 processor
8702         lt_prog_compiler_static='-Bstatic'
8703       else
8704         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8705       fi
8706       ;;
8707
8708     mingw* | cygwin* | pw32* | os2* | cegcc*)
8709       # This hack is so that the source file can tell whether it is being
8710       # built for inclusion in a dll (and should export symbols for example).
8711       lt_prog_compiler_pic='-DDLL_EXPORT'
8712       ;;
8713
8714     hpux9* | hpux10* | hpux11*)
8715       lt_prog_compiler_wl='-Wl,'
8716       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8717       # not for PA HP-UX.
8718       case $host_cpu in
8719       hppa*64*|ia64*)
8720         # +Z the default
8721         ;;
8722       *)
8723         lt_prog_compiler_pic='+Z'
8724         ;;
8725       esac
8726       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8727       lt_prog_compiler_static='${wl}-a ${wl}archive'
8728       ;;
8729
8730     irix5* | irix6* | nonstopux*)
8731       lt_prog_compiler_wl='-Wl,'
8732       # PIC (with -KPIC) is the default.
8733       lt_prog_compiler_static='-non_shared'
8734       ;;
8735
8736     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8737       case $cc_basename in
8738       # old Intel for x86_64 which still supported -KPIC.
8739       ecc*)
8740         lt_prog_compiler_wl='-Wl,'
8741         lt_prog_compiler_pic='-KPIC'
8742         lt_prog_compiler_static='-static'
8743         ;;
8744       # icc used to be incompatible with GCC.
8745       # ICC 10 doesn't accept -KPIC any more.
8746       icc* | ifort*)
8747         lt_prog_compiler_wl='-Wl,'
8748         lt_prog_compiler_pic='-fPIC'
8749         lt_prog_compiler_static='-static'
8750         ;;
8751       # Lahey Fortran 8.1.
8752       lf95*)
8753         lt_prog_compiler_wl='-Wl,'
8754         lt_prog_compiler_pic='--shared'
8755         lt_prog_compiler_static='--static'
8756         ;;
8757       nagfor*)
8758         # NAG Fortran compiler
8759         lt_prog_compiler_wl='-Wl,-Wl,,'
8760         lt_prog_compiler_pic='-PIC'
8761         lt_prog_compiler_static='-Bstatic'
8762         ;;
8763       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8764         # Portland Group compilers (*not* the Pentium gcc compiler,
8765         # which looks to be a dead project)
8766         lt_prog_compiler_wl='-Wl,'
8767         lt_prog_compiler_pic='-fpic'
8768         lt_prog_compiler_static='-Bstatic'
8769         ;;
8770       ccc*)
8771         lt_prog_compiler_wl='-Wl,'
8772         # All Alpha code is PIC.
8773         lt_prog_compiler_static='-non_shared'
8774         ;;
8775       xl* | bgxl* | bgf* | mpixl*)
8776         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8777         lt_prog_compiler_wl='-Wl,'
8778         lt_prog_compiler_pic='-qpic'
8779         lt_prog_compiler_static='-qstaticlink'
8780         ;;
8781       *)
8782         case `$CC -V 2>&1 | sed 5q` in
8783         *Sun\ F* | *Sun*Fortran*)
8784           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8785           lt_prog_compiler_pic='-KPIC'
8786           lt_prog_compiler_static='-Bstatic'
8787           lt_prog_compiler_wl=''
8788           ;;
8789         *Sun\ C*)
8790           # Sun C 5.9
8791           lt_prog_compiler_pic='-KPIC'
8792           lt_prog_compiler_static='-Bstatic'
8793           lt_prog_compiler_wl='-Wl,'
8794           ;;
8795         esac
8796         ;;
8797       esac
8798       ;;
8799
8800     newsos6)
8801       lt_prog_compiler_pic='-KPIC'
8802       lt_prog_compiler_static='-Bstatic'
8803       ;;
8804
8805     *nto* | *qnx*)
8806       # QNX uses GNU C++, but need to define -shared option too, otherwise
8807       # it will coredump.
8808       lt_prog_compiler_pic='-fPIC -shared'
8809       ;;
8810
8811     osf3* | osf4* | osf5*)
8812       lt_prog_compiler_wl='-Wl,'
8813       # All OSF/1 code is PIC.
8814       lt_prog_compiler_static='-non_shared'
8815       ;;
8816
8817     rdos*)
8818       lt_prog_compiler_static='-non_shared'
8819       ;;
8820
8821     solaris*)
8822       lt_prog_compiler_pic='-KPIC'
8823       lt_prog_compiler_static='-Bstatic'
8824       case $cc_basename in
8825       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8826         lt_prog_compiler_wl='-Qoption ld ';;
8827       *)
8828         lt_prog_compiler_wl='-Wl,';;
8829       esac
8830       ;;
8831
8832     sunos4*)
8833       lt_prog_compiler_wl='-Qoption ld '
8834       lt_prog_compiler_pic='-PIC'
8835       lt_prog_compiler_static='-Bstatic'
8836       ;;
8837
8838     sysv4 | sysv4.2uw2* | sysv4.3*)
8839       lt_prog_compiler_wl='-Wl,'
8840       lt_prog_compiler_pic='-KPIC'
8841       lt_prog_compiler_static='-Bstatic'
8842       ;;
8843
8844     sysv4*MP*)
8845       if test -d /usr/nec ;then
8846         lt_prog_compiler_pic='-Kconform_pic'
8847         lt_prog_compiler_static='-Bstatic'
8848       fi
8849       ;;
8850
8851     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8852       lt_prog_compiler_wl='-Wl,'
8853       lt_prog_compiler_pic='-KPIC'
8854       lt_prog_compiler_static='-Bstatic'
8855       ;;
8856
8857     unicos*)
8858       lt_prog_compiler_wl='-Wl,'
8859       lt_prog_compiler_can_build_shared=no
8860       ;;
8861
8862     uts4*)
8863       lt_prog_compiler_pic='-pic'
8864       lt_prog_compiler_static='-Bstatic'
8865       ;;
8866
8867     *)
8868       lt_prog_compiler_can_build_shared=no
8869       ;;
8870     esac
8871   fi
8872
8873 case $host_os in
8874   # For platforms which do not support PIC, -DPIC is meaningless:
8875   *djgpp*)
8876     lt_prog_compiler_pic=
8877     ;;
8878   *)
8879     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8880     ;;
8881 esac
8882
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8884 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8885 if ${lt_cv_prog_compiler_pic+:} false; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8891 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8892 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8893
8894 #
8895 # Check to make sure the PIC flag actually works.
8896 #
8897 if test -n "$lt_prog_compiler_pic"; then
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8899 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8900 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   lt_cv_prog_compiler_pic_works=no
8904    ac_outfile=conftest.$ac_objext
8905    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8907    # Insert the option either (1) after the last *FLAGS variable, or
8908    # (2) before a word containing "conftest.", or (3) at the end.
8909    # Note that $ac_compile itself does not contain backslashes and begins
8910    # with a dollar sign (not a hyphen), so the echo should work correctly.
8911    # The option is referenced via a variable to avoid confusing sed.
8912    lt_compile=`echo "$ac_compile" | $SED \
8913    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915    -e 's:$: $lt_compiler_flag:'`
8916    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917    (eval "$lt_compile" 2>conftest.err)
8918    ac_status=$?
8919    cat conftest.err >&5
8920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921    if (exit $ac_status) && test -s "$ac_outfile"; then
8922      # The compiler can only warn and ignore the option if not recognized
8923      # So say no if there are warnings other than the usual output.
8924      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8925      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8926      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8927        lt_cv_prog_compiler_pic_works=yes
8928      fi
8929    fi
8930    $RM conftest*
8931
8932 fi
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8934 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8935
8936 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8937     case $lt_prog_compiler_pic in
8938      "" | " "*) ;;
8939      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8940      esac
8941 else
8942     lt_prog_compiler_pic=
8943      lt_prog_compiler_can_build_shared=no
8944 fi
8945
8946 fi
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 #
8959 # Check to make sure the static flag actually works.
8960 #
8961 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8963 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8964 if ${lt_cv_prog_compiler_static_works+:} false; then :
8965   $as_echo_n "(cached) " >&6
8966 else
8967   lt_cv_prog_compiler_static_works=no
8968    save_LDFLAGS="$LDFLAGS"
8969    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8970    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8971    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8972      # The linker can only warn and ignore the option if not recognized
8973      # So say no if there are warnings
8974      if test -s conftest.err; then
8975        # Append any errors to the config.log.
8976        cat conftest.err 1>&5
8977        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8978        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8979        if diff conftest.exp conftest.er2 >/dev/null; then
8980          lt_cv_prog_compiler_static_works=yes
8981        fi
8982      else
8983        lt_cv_prog_compiler_static_works=yes
8984      fi
8985    fi
8986    $RM -r conftest*
8987    LDFLAGS="$save_LDFLAGS"
8988
8989 fi
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8991 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8992
8993 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8994     :
8995 else
8996     lt_prog_compiler_static=
8997 fi
8998
8999
9000
9001
9002
9003
9004
9005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9006 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9007 if ${lt_cv_prog_compiler_c_o+:} false; then :
9008   $as_echo_n "(cached) " >&6
9009 else
9010   lt_cv_prog_compiler_c_o=no
9011    $RM -r conftest 2>/dev/null
9012    mkdir conftest
9013    cd conftest
9014    mkdir out
9015    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9016
9017    lt_compiler_flag="-o out/conftest2.$ac_objext"
9018    # Insert the option either (1) after the last *FLAGS variable, or
9019    # (2) before a word containing "conftest.", or (3) at the end.
9020    # Note that $ac_compile itself does not contain backslashes and begins
9021    # with a dollar sign (not a hyphen), so the echo should work correctly.
9022    lt_compile=`echo "$ac_compile" | $SED \
9023    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9025    -e 's:$: $lt_compiler_flag:'`
9026    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9027    (eval "$lt_compile" 2>out/conftest.err)
9028    ac_status=$?
9029    cat out/conftest.err >&5
9030    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9032    then
9033      # The compiler can only warn and ignore the option if not recognized
9034      # So say no if there are warnings
9035      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9036      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9037      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9038        lt_cv_prog_compiler_c_o=yes
9039      fi
9040    fi
9041    chmod u+w . 2>&5
9042    $RM conftest*
9043    # SGI C++ compiler will create directory out/ii_files/ for
9044    # template instantiation
9045    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9046    $RM out/* && rmdir out
9047    cd ..
9048    $RM -r conftest
9049    $RM conftest*
9050
9051 fi
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9053 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9054
9055
9056
9057
9058
9059
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9062 if ${lt_cv_prog_compiler_c_o+:} false; then :
9063   $as_echo_n "(cached) " >&6
9064 else
9065   lt_cv_prog_compiler_c_o=no
9066    $RM -r conftest 2>/dev/null
9067    mkdir conftest
9068    cd conftest
9069    mkdir out
9070    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9071
9072    lt_compiler_flag="-o out/conftest2.$ac_objext"
9073    # Insert the option either (1) after the last *FLAGS variable, or
9074    # (2) before a word containing "conftest.", or (3) at the end.
9075    # Note that $ac_compile itself does not contain backslashes and begins
9076    # with a dollar sign (not a hyphen), so the echo should work correctly.
9077    lt_compile=`echo "$ac_compile" | $SED \
9078    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080    -e 's:$: $lt_compiler_flag:'`
9081    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9082    (eval "$lt_compile" 2>out/conftest.err)
9083    ac_status=$?
9084    cat out/conftest.err >&5
9085    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9087    then
9088      # The compiler can only warn and ignore the option if not recognized
9089      # So say no if there are warnings
9090      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9091      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9092      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9093        lt_cv_prog_compiler_c_o=yes
9094      fi
9095    fi
9096    chmod u+w . 2>&5
9097    $RM conftest*
9098    # SGI C++ compiler will create directory out/ii_files/ for
9099    # template instantiation
9100    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9101    $RM out/* && rmdir out
9102    cd ..
9103    $RM -r conftest
9104    $RM conftest*
9105
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9108 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9109
9110
9111
9112
9113 hard_links="nottested"
9114 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9115   # do not overwrite the value of need_locks provided by the user
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9117 $as_echo_n "checking if we can lock with hard links... " >&6; }
9118   hard_links=yes
9119   $RM conftest*
9120   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9121   touch conftest.a
9122   ln conftest.a conftest.b 2>&5 || hard_links=no
9123   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9125 $as_echo "$hard_links" >&6; }
9126   if test "$hard_links" = no; then
9127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9128 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9129     need_locks=warn
9130   fi
9131 else
9132   need_locks=no
9133 fi
9134
9135
9136
9137
9138
9139
9140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9141 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9142
9143   runpath_var=
9144   allow_undefined_flag=
9145   always_export_symbols=no
9146   archive_cmds=
9147   archive_expsym_cmds=
9148   compiler_needs_object=no
9149   enable_shared_with_static_runtimes=no
9150   export_dynamic_flag_spec=
9151   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9152   hardcode_automatic=no
9153   hardcode_direct=no
9154   hardcode_direct_absolute=no
9155   hardcode_libdir_flag_spec=
9156   hardcode_libdir_flag_spec_ld=
9157   hardcode_libdir_separator=
9158   hardcode_minus_L=no
9159   hardcode_shlibpath_var=unsupported
9160   inherit_rpath=no
9161   link_all_deplibs=unknown
9162   module_cmds=
9163   module_expsym_cmds=
9164   old_archive_from_new_cmds=
9165   old_archive_from_expsyms_cmds=
9166   thread_safe_flag_spec=
9167   whole_archive_flag_spec=
9168   # include_expsyms should be a list of space-separated symbols to be *always*
9169   # included in the symbol list
9170   include_expsyms=
9171   # exclude_expsyms can be an extended regexp of symbols to exclude
9172   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9173   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9174   # as well as any symbol that contains `d'.
9175   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9176   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9177   # platforms (ab)use it in PIC code, but their linkers get confused if
9178   # the symbol is explicitly referenced.  Since portable code cannot
9179   # rely on this symbol name, it's probably fine to never include it in
9180   # preloaded symbol tables.
9181   # Exclude shared library initialization/finalization symbols.
9182   extract_expsyms_cmds=
9183
9184   case $host_os in
9185   cygwin* | mingw* | pw32* | cegcc*)
9186     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9187     # When not using gcc, we currently assume that we are using
9188     # Microsoft Visual C++.
9189     if test "$GCC" != yes; then
9190       with_gnu_ld=no
9191     fi
9192     ;;
9193   interix*)
9194     # we just hope/assume this is gcc and not c89 (= MSVC++)
9195     with_gnu_ld=yes
9196     ;;
9197   openbsd*)
9198     with_gnu_ld=no
9199     ;;
9200   esac
9201
9202   ld_shlibs=yes
9203
9204   # On some targets, GNU ld is compatible enough with the native linker
9205   # that we're better off using the native interface for both.
9206   lt_use_gnu_ld_interface=no
9207   if test "$with_gnu_ld" = yes; then
9208     case $host_os in
9209       aix*)
9210         # The AIX port of GNU ld has always aspired to compatibility
9211         # with the native linker.  However, as the warning in the GNU ld
9212         # block says, versions before 2.19.5* couldn't really create working
9213         # shared libraries, regardless of the interface used.
9214         case `$LD -v 2>&1` in
9215           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9216           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9217           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9218           *)
9219             lt_use_gnu_ld_interface=yes
9220             ;;
9221         esac
9222         ;;
9223       *)
9224         lt_use_gnu_ld_interface=yes
9225         ;;
9226     esac
9227   fi
9228
9229   if test "$lt_use_gnu_ld_interface" = yes; then
9230     # If archive_cmds runs LD, not CC, wlarc should be empty
9231     wlarc='${wl}'
9232
9233     # Set some defaults for GNU ld with shared library support. These
9234     # are reset later if shared libraries are not supported. Putting them
9235     # here allows them to be overridden if necessary.
9236     runpath_var=LD_RUN_PATH
9237     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238     export_dynamic_flag_spec='${wl}--export-dynamic'
9239     # ancient GNU ld didn't support --whole-archive et. al.
9240     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9241       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9242     else
9243       whole_archive_flag_spec=
9244     fi
9245     supports_anon_versioning=no
9246     case `$LD -v 2>&1` in
9247       *GNU\ gold*) supports_anon_versioning=yes ;;
9248       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9249       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9250       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9251       *\ 2.11.*) ;; # other 2.11 versions
9252       *) supports_anon_versioning=yes ;;
9253     esac
9254
9255     # See if GNU ld supports shared libraries.
9256     case $host_os in
9257     aix[3-9]*)
9258       # On AIX/PPC, the GNU linker is very broken
9259       if test "$host_cpu" != ia64; then
9260         ld_shlibs=no
9261         cat <<_LT_EOF 1>&2
9262
9263 *** Warning: the GNU linker, at least up to release 2.19, is reported
9264 *** to be unable to reliably create shared libraries on AIX.
9265 *** Therefore, libtool is disabling shared libraries support.  If you
9266 *** really care for shared libraries, you may want to install binutils
9267 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9268 *** You will then need to restart the configuration process.
9269
9270 _LT_EOF
9271       fi
9272       ;;
9273
9274     amigaos*)
9275       case $host_cpu in
9276       powerpc)
9277             # see comment about AmigaOS4 .so support
9278             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279             archive_expsym_cmds=''
9280         ;;
9281       m68k)
9282             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)'
9283             hardcode_libdir_flag_spec='-L$libdir'
9284             hardcode_minus_L=yes
9285         ;;
9286       esac
9287       ;;
9288
9289     beos*)
9290       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9291         allow_undefined_flag=unsupported
9292         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9293         # support --undefined.  This deserves some investigation.  FIXME
9294         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295       else
9296         ld_shlibs=no
9297       fi
9298       ;;
9299
9300     cygwin* | mingw* | pw32* | cegcc*)
9301       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9302       # as there is no search path for DLLs.
9303       hardcode_libdir_flag_spec='-L$libdir'
9304       export_dynamic_flag_spec='${wl}--export-all-symbols'
9305       allow_undefined_flag=unsupported
9306       always_export_symbols=no
9307       enable_shared_with_static_runtimes=yes
9308       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'
9309       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9310
9311       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9312         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9313         # If the export-symbols file already is a .def file (1st line
9314         # is EXPORTS), use it as is; otherwise, prepend...
9315         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9316           cp $export_symbols $output_objdir/$soname.def;
9317         else
9318           echo EXPORTS > $output_objdir/$soname.def;
9319           cat $export_symbols >> $output_objdir/$soname.def;
9320         fi~
9321         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9322       else
9323         ld_shlibs=no
9324       fi
9325       ;;
9326
9327     haiku*)
9328       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329       link_all_deplibs=yes
9330       ;;
9331
9332     interix[3-9]*)
9333       hardcode_direct=no
9334       hardcode_shlibpath_var=no
9335       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9336       export_dynamic_flag_spec='${wl}-E'
9337       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9338       # Instead, shared libraries are loaded at an image base (0x10000000 by
9339       # default) and relocated if they conflict, which is a slow very memory
9340       # consuming and fragmenting process.  To avoid this, we pick a random,
9341       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9342       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9343       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9344       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'
9345       ;;
9346
9347     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9348       tmp_diet=no
9349       if test "$host_os" = linux-dietlibc; then
9350         case $cc_basename in
9351           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9352         esac
9353       fi
9354       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9355          && test "$tmp_diet" = no
9356       then
9357         tmp_addflag=' $pic_flag'
9358         tmp_sharedflag='-shared'
9359         case $cc_basename,$host_cpu in
9360         pgcc*)                          # Portland Group C compiler
9361           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'
9362           tmp_addflag=' $pic_flag'
9363           ;;
9364         pgf77* | pgf90* | pgf95* | pgfortran*)
9365                                         # Portland Group f77 and f90 compilers
9366           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'
9367           tmp_addflag=' $pic_flag -Mnomain' ;;
9368         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9369           tmp_addflag=' -i_dynamic' ;;
9370         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9371           tmp_addflag=' -i_dynamic -nofor_main' ;;
9372         ifc* | ifort*)                  # Intel Fortran compiler
9373           tmp_addflag=' -nofor_main' ;;
9374         lf95*)                          # Lahey Fortran 8.1
9375           whole_archive_flag_spec=
9376           tmp_sharedflag='--shared' ;;
9377         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9378           tmp_sharedflag='-qmkshrobj'
9379           tmp_addflag= ;;
9380         nvcc*)  # Cuda Compiler Driver 2.2
9381           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'
9382           compiler_needs_object=yes
9383           ;;
9384         esac
9385         case `$CC -V 2>&1 | sed 5q` in
9386         *Sun\ C*)                       # Sun C 5.9
9387           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'
9388           compiler_needs_object=yes
9389           tmp_sharedflag='-G' ;;
9390         *Sun\ F*)                       # Sun Fortran 8.3
9391           tmp_sharedflag='-G' ;;
9392         esac
9393         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9394
9395         if test "x$supports_anon_versioning" = xyes; then
9396           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9397             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9398             echo "local: *; };" >> $output_objdir/$libname.ver~
9399             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9400         fi
9401
9402         case $cc_basename in
9403         xlf* | bgf* | bgxlf* | mpixlf*)
9404           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9405           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9406           hardcode_libdir_flag_spec=
9407           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9408           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9409           if test "x$supports_anon_versioning" = xyes; then
9410             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9411               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9412               echo "local: *; };" >> $output_objdir/$libname.ver~
9413               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9414           fi
9415           ;;
9416         esac
9417       else
9418         ld_shlibs=no
9419       fi
9420       ;;
9421
9422     netbsd*)
9423       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9424         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9425         wlarc=
9426       else
9427         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429       fi
9430       ;;
9431
9432     solaris*)
9433       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9434         ld_shlibs=no
9435         cat <<_LT_EOF 1>&2
9436
9437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9438 *** create shared libraries on Solaris systems.  Therefore, libtool
9439 *** is disabling shared libraries support.  We urge you to upgrade GNU
9440 *** binutils to release 2.9.1 or newer.  Another option is to modify
9441 *** your PATH or compiler configuration so that the native linker is
9442 *** used, and then restart.
9443
9444 _LT_EOF
9445       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9446         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9448       else
9449         ld_shlibs=no
9450       fi
9451       ;;
9452
9453     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9454       case `$LD -v 2>&1` in
9455         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9456         ld_shlibs=no
9457         cat <<_LT_EOF 1>&2
9458
9459 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9460 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9461 *** is disabling shared libraries support.  We urge you to upgrade GNU
9462 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9463 *** your PATH or compiler configuration so that the native linker is
9464 *** used, and then restart.
9465
9466 _LT_EOF
9467         ;;
9468         *)
9469           # For security reasons, it is highly recommended that you always
9470           # use absolute paths for naming shared libraries, and exclude the
9471           # DT_RUNPATH tag from executables and libraries.  But doing so
9472           # requires that you compile everything twice, which is a pain.
9473           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9474             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9475             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9476             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9477           else
9478             ld_shlibs=no
9479           fi
9480         ;;
9481       esac
9482       ;;
9483
9484     sunos4*)
9485       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9486       wlarc=
9487       hardcode_direct=yes
9488       hardcode_shlibpath_var=no
9489       ;;
9490
9491     *)
9492       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9493         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9495       else
9496         ld_shlibs=no
9497       fi
9498       ;;
9499     esac
9500
9501     if test "$ld_shlibs" = no; then
9502       runpath_var=
9503       hardcode_libdir_flag_spec=
9504       export_dynamic_flag_spec=
9505       whole_archive_flag_spec=
9506     fi
9507   else
9508     # PORTME fill in a description of your system's linker (not GNU ld)
9509     case $host_os in
9510     aix3*)
9511       allow_undefined_flag=unsupported
9512       always_export_symbols=yes
9513       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'
9514       # Note: this linker hardcodes the directories in LIBPATH if there
9515       # are no directories specified by -L.
9516       hardcode_minus_L=yes
9517       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9518         # Neither direct hardcoding nor static linking is supported with a
9519         # broken collect2.
9520         hardcode_direct=unsupported
9521       fi
9522       ;;
9523
9524     aix[4-9]*)
9525       if test "$host_cpu" = ia64; then
9526         # On IA64, the linker does run time linking by default, so we don't
9527         # have to do anything special.
9528         aix_use_runtimelinking=no
9529         exp_sym_flag='-Bexport'
9530         no_entry_flag=""
9531       else
9532         # If we're using GNU nm, then we don't want the "-C" option.
9533         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9534         # Also, AIX nm treats weak defined symbols like other global
9535         # defined symbols, whereas GNU nm marks them as "W".
9536         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9537           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9538         else
9539           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9540         fi
9541         aix_use_runtimelinking=no
9542
9543         # Test if we are trying to use run time linking or normal
9544         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9545         # need to do runtime linking.
9546         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9547           for ld_flag in $LDFLAGS; do
9548           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9549             aix_use_runtimelinking=yes
9550             break
9551           fi
9552           done
9553           ;;
9554         esac
9555
9556         exp_sym_flag='-bexport'
9557         no_entry_flag='-bnoentry'
9558       fi
9559
9560       # When large executables or shared objects are built, AIX ld can
9561       # have problems creating the table of contents.  If linking a library
9562       # or program results in "error TOC overflow" add -mminimal-toc to
9563       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9564       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9565
9566       archive_cmds=''
9567       hardcode_direct=yes
9568       hardcode_direct_absolute=yes
9569       hardcode_libdir_separator=':'
9570       link_all_deplibs=yes
9571       file_list_spec='${wl}-f,'
9572
9573       if test "$GCC" = yes; then
9574         case $host_os in aix4.[012]|aix4.[012].*)
9575         # We only want to do this on AIX 4.2 and lower, the check
9576         # below for broken collect2 doesn't work under 4.3+
9577           collect2name=`${CC} -print-prog-name=collect2`
9578           if test -f "$collect2name" &&
9579            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9580           then
9581           # We have reworked collect2
9582           :
9583           else
9584           # We have old collect2
9585           hardcode_direct=unsupported
9586           # It fails to find uninstalled libraries when the uninstalled
9587           # path is not listed in the libpath.  Setting hardcode_minus_L
9588           # to unsupported forces relinking
9589           hardcode_minus_L=yes
9590           hardcode_libdir_flag_spec='-L$libdir'
9591           hardcode_libdir_separator=
9592           fi
9593           ;;
9594         esac
9595         shared_flag='-shared'
9596         if test "$aix_use_runtimelinking" = yes; then
9597           shared_flag="$shared_flag "'${wl}-G'
9598         fi
9599       else
9600         # not using gcc
9601         if test "$host_cpu" = ia64; then
9602         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9603         # chokes on -Wl,-G. The following line is correct:
9604           shared_flag='-G'
9605         else
9606           if test "$aix_use_runtimelinking" = yes; then
9607             shared_flag='${wl}-G'
9608           else
9609             shared_flag='${wl}-bM:SRE'
9610           fi
9611         fi
9612       fi
9613
9614       export_dynamic_flag_spec='${wl}-bexpall'
9615       # It seems that -bexpall does not export symbols beginning with
9616       # underscore (_), so it is better to generate a list of symbols to export.
9617       always_export_symbols=yes
9618       if test "$aix_use_runtimelinking" = yes; then
9619         # Warning - without using the other runtime loading flags (-brtl),
9620         # -berok will link without error, but may produce a broken library.
9621         allow_undefined_flag='-berok'
9622         # Determine the default libpath from the value encoded in an
9623         # empty executable.
9624         if test "${lt_cv_aix_libpath+set}" = set; then
9625   aix_libpath=$lt_cv_aix_libpath
9626 else
9627   if ${lt_cv_aix_libpath_+:} false; then :
9628   $as_echo_n "(cached) " >&6
9629 else
9630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h.  */
9632
9633 int
9634 main ()
9635 {
9636
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 if ac_fn_c_try_link "$LINENO"; then :
9642
9643   lt_aix_libpath_sed='
9644       /Import File Strings/,/^$/ {
9645           /^0/ {
9646               s/^0  *\([^ ]*\) *$/\1/
9647               p
9648           }
9649       }'
9650   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651   # Check for a 64-bit object if we didn't find anything.
9652   if test -z "$lt_cv_aix_libpath_"; then
9653     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654   fi
9655 fi
9656 rm -f core conftest.err conftest.$ac_objext \
9657     conftest$ac_exeext conftest.$ac_ext
9658   if test -z "$lt_cv_aix_libpath_"; then
9659     lt_cv_aix_libpath_="/usr/lib:/lib"
9660   fi
9661
9662 fi
9663
9664   aix_libpath=$lt_cv_aix_libpath_
9665 fi
9666
9667         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9668         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9669       else
9670         if test "$host_cpu" = ia64; then
9671           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9672           allow_undefined_flag="-z nodefs"
9673           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"
9674         else
9675          # Determine the default libpath from the value encoded in an
9676          # empty executable.
9677          if test "${lt_cv_aix_libpath+set}" = set; then
9678   aix_libpath=$lt_cv_aix_libpath
9679 else
9680   if ${lt_cv_aix_libpath_+:} false; then :
9681   $as_echo_n "(cached) " >&6
9682 else
9683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h.  */
9685
9686 int
9687 main ()
9688 {
9689
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 if ac_fn_c_try_link "$LINENO"; then :
9695
9696   lt_aix_libpath_sed='
9697       /Import File Strings/,/^$/ {
9698           /^0/ {
9699               s/^0  *\([^ ]*\) *$/\1/
9700               p
9701           }
9702       }'
9703   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704   # Check for a 64-bit object if we didn't find anything.
9705   if test -z "$lt_cv_aix_libpath_"; then
9706     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9707   fi
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext \
9710     conftest$ac_exeext conftest.$ac_ext
9711   if test -z "$lt_cv_aix_libpath_"; then
9712     lt_cv_aix_libpath_="/usr/lib:/lib"
9713   fi
9714
9715 fi
9716
9717   aix_libpath=$lt_cv_aix_libpath_
9718 fi
9719
9720          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9721           # Warning - without using the other run time loading flags,
9722           # -berok will link without error, but may produce a broken library.
9723           no_undefined_flag=' ${wl}-bernotok'
9724           allow_undefined_flag=' ${wl}-berok'
9725           if test "$with_gnu_ld" = yes; then
9726             # We only use this code for GNU lds that support --whole-archive.
9727             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9728           else
9729             # Exported symbols can be pulled into shared objects from archives
9730             whole_archive_flag_spec='$convenience'
9731           fi
9732           archive_cmds_need_lc=yes
9733           # This is similar to how AIX traditionally builds its shared libraries.
9734           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9735         fi
9736       fi
9737       ;;
9738
9739     amigaos*)
9740       case $host_cpu in
9741       powerpc)
9742             # see comment about AmigaOS4 .so support
9743             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744             archive_expsym_cmds=''
9745         ;;
9746       m68k)
9747             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)'
9748             hardcode_libdir_flag_spec='-L$libdir'
9749             hardcode_minus_L=yes
9750         ;;
9751       esac
9752       ;;
9753
9754     bsdi[45]*)
9755       export_dynamic_flag_spec=-rdynamic
9756       ;;
9757
9758     cygwin* | mingw* | pw32* | cegcc*)
9759       # When not using gcc, we currently assume that we are using
9760       # Microsoft Visual C++.
9761       # hardcode_libdir_flag_spec is actually meaningless, as there is
9762       # no search path for DLLs.
9763       case $cc_basename in
9764       cl*)
9765         # Native MSVC
9766         hardcode_libdir_flag_spec=' '
9767         allow_undefined_flag=unsupported
9768         always_export_symbols=yes
9769         file_list_spec='@'
9770         # Tell ltmain to make .lib files, not .a files.
9771         libext=lib
9772         # Tell ltmain to make .dll files, not .so files.
9773         shrext_cmds=".dll"
9774         # FIXME: Setting linknames here is a bad hack.
9775         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9776         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9777             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9778           else
9779             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9780           fi~
9781           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9782           linknames='
9783         # The linker will not automatically build a static lib if we build a DLL.
9784         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9785         enable_shared_with_static_runtimes=yes
9786         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9787         # Don't use ranlib
9788         old_postinstall_cmds='chmod 644 $oldlib'
9789         postlink_cmds='lt_outputfile="@OUTPUT@"~
9790           lt_tool_outputfile="@TOOL_OUTPUT@"~
9791           case $lt_outputfile in
9792             *.exe|*.EXE) ;;
9793             *)
9794               lt_outputfile="$lt_outputfile.exe"
9795               lt_tool_outputfile="$lt_tool_outputfile.exe"
9796               ;;
9797           esac~
9798           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9799             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9800             $RM "$lt_outputfile.manifest";
9801           fi'
9802         ;;
9803       *)
9804         # Assume MSVC wrapper
9805         hardcode_libdir_flag_spec=' '
9806         allow_undefined_flag=unsupported
9807         # Tell ltmain to make .lib files, not .a files.
9808         libext=lib
9809         # Tell ltmain to make .dll files, not .so files.
9810         shrext_cmds=".dll"
9811         # FIXME: Setting linknames here is a bad hack.
9812         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9813         # The linker will automatically build a .lib file if we build a DLL.
9814         old_archive_from_new_cmds='true'
9815         # FIXME: Should let the user specify the lib program.
9816         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9817         enable_shared_with_static_runtimes=yes
9818         ;;
9819       esac
9820       ;;
9821
9822     darwin* | rhapsody*)
9823
9824
9825   archive_cmds_need_lc=no
9826   hardcode_direct=no
9827   hardcode_automatic=yes
9828   hardcode_shlibpath_var=unsupported
9829   if test "$lt_cv_ld_force_load" = "yes"; then
9830     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\"`'
9831   else
9832     whole_archive_flag_spec=''
9833   fi
9834   link_all_deplibs=yes
9835   allow_undefined_flag="$_lt_dar_allow_undefined"
9836   case $cc_basename in
9837      ifort*) _lt_dar_can_shared=yes ;;
9838      *) _lt_dar_can_shared=$GCC ;;
9839   esac
9840   if test "$_lt_dar_can_shared" = "yes"; then
9841     output_verbose_link_cmd=func_echo_all
9842     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9843     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9844     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}"
9845     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}"
9846
9847   else
9848   ld_shlibs=no
9849   fi
9850
9851       ;;
9852
9853     dgux*)
9854       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855       hardcode_libdir_flag_spec='-L$libdir'
9856       hardcode_shlibpath_var=no
9857       ;;
9858
9859     freebsd1*)
9860       ld_shlibs=no
9861       ;;
9862
9863     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9864     # support.  Future versions do this automatically, but an explicit c++rt0.o
9865     # does not break anything, and helps significantly (at the cost of a little
9866     # extra space).
9867     freebsd2.2*)
9868       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9869       hardcode_libdir_flag_spec='-R$libdir'
9870       hardcode_direct=yes
9871       hardcode_shlibpath_var=no
9872       ;;
9873
9874     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9875     freebsd2*)
9876       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9877       hardcode_direct=yes
9878       hardcode_minus_L=yes
9879       hardcode_shlibpath_var=no
9880       ;;
9881
9882     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9883     freebsd* | dragonfly*)
9884       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9885       hardcode_libdir_flag_spec='-R$libdir'
9886       hardcode_direct=yes
9887       hardcode_shlibpath_var=no
9888       ;;
9889
9890     hpux9*)
9891       if test "$GCC" = yes; then
9892         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9893       else
9894         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9895       fi
9896       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9897       hardcode_libdir_separator=:
9898       hardcode_direct=yes
9899
9900       # hardcode_minus_L: Not really in the search PATH,
9901       # but as the default location of the library.
9902       hardcode_minus_L=yes
9903       export_dynamic_flag_spec='${wl}-E'
9904       ;;
9905
9906     hpux10*)
9907       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9908         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9909       else
9910         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9911       fi
9912       if test "$with_gnu_ld" = no; then
9913         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9914         hardcode_libdir_flag_spec_ld='+b $libdir'
9915         hardcode_libdir_separator=:
9916         hardcode_direct=yes
9917         hardcode_direct_absolute=yes
9918         export_dynamic_flag_spec='${wl}-E'
9919         # hardcode_minus_L: Not really in the search PATH,
9920         # but as the default location of the library.
9921         hardcode_minus_L=yes
9922       fi
9923       ;;
9924
9925     hpux11*)
9926       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9927         case $host_cpu in
9928         hppa*64*)
9929           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930           ;;
9931         ia64*)
9932           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9933           ;;
9934         *)
9935           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9936           ;;
9937         esac
9938       else
9939         case $host_cpu in
9940         hppa*64*)
9941           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942           ;;
9943         ia64*)
9944           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9945           ;;
9946         *)
9947
9948           # Older versions of the 11.00 compiler do not understand -b yet
9949           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9950           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9951 $as_echo_n "checking if $CC understands -b... " >&6; }
9952 if ${lt_cv_prog_compiler__b+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   lt_cv_prog_compiler__b=no
9956    save_LDFLAGS="$LDFLAGS"
9957    LDFLAGS="$LDFLAGS -b"
9958    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9959    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9960      # The linker can only warn and ignore the option if not recognized
9961      # So say no if there are warnings
9962      if test -s conftest.err; then
9963        # Append any errors to the config.log.
9964        cat conftest.err 1>&5
9965        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9966        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9967        if diff conftest.exp conftest.er2 >/dev/null; then
9968          lt_cv_prog_compiler__b=yes
9969        fi
9970      else
9971        lt_cv_prog_compiler__b=yes
9972      fi
9973    fi
9974    $RM -r conftest*
9975    LDFLAGS="$save_LDFLAGS"
9976
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9979 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9980
9981 if test x"$lt_cv_prog_compiler__b" = xyes; then
9982     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9983 else
9984     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9985 fi
9986
9987           ;;
9988         esac
9989       fi
9990       if test "$with_gnu_ld" = no; then
9991         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992         hardcode_libdir_separator=:
9993
9994         case $host_cpu in
9995         hppa*64*|ia64*)
9996           hardcode_direct=no
9997           hardcode_shlibpath_var=no
9998           ;;
9999         *)
10000           hardcode_direct=yes
10001           hardcode_direct_absolute=yes
10002           export_dynamic_flag_spec='${wl}-E'
10003
10004           # hardcode_minus_L: Not really in the search PATH,
10005           # but as the default location of the library.
10006           hardcode_minus_L=yes
10007           ;;
10008         esac
10009       fi
10010       ;;
10011
10012     irix5* | irix6* | nonstopux*)
10013       if test "$GCC" = yes; then
10014         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'
10015         # Try to use the -exported_symbol ld option, if it does not
10016         # work, assume that -exports_file does not work either and
10017         # implicitly export all symbols.
10018         # This should be the same for all languages, so no per-tag cache variable.
10019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10020 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10021 if ${lt_cv_irix_exported_symbol+:} false; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   save_LDFLAGS="$LDFLAGS"
10025            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10026            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h.  */
10028 int foo (void) { return 0; }
10029 _ACEOF
10030 if ac_fn_c_try_link "$LINENO"; then :
10031   lt_cv_irix_exported_symbol=yes
10032 else
10033   lt_cv_irix_exported_symbol=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext \
10036     conftest$ac_exeext conftest.$ac_ext
10037            LDFLAGS="$save_LDFLAGS"
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10040 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10041         if test "$lt_cv_irix_exported_symbol" = yes; then
10042           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'
10043         fi
10044       else
10045         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'
10046         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'
10047       fi
10048       archive_cmds_need_lc='no'
10049       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050       hardcode_libdir_separator=:
10051       inherit_rpath=yes
10052       link_all_deplibs=yes
10053       ;;
10054
10055     netbsd*)
10056       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10057         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10058       else
10059         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10060       fi
10061       hardcode_libdir_flag_spec='-R$libdir'
10062       hardcode_direct=yes
10063       hardcode_shlibpath_var=no
10064       ;;
10065
10066     newsos6)
10067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068       hardcode_direct=yes
10069       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070       hardcode_libdir_separator=:
10071       hardcode_shlibpath_var=no
10072       ;;
10073
10074     *nto* | *qnx*)
10075       ;;
10076
10077     openbsd*)
10078       if test -f /usr/libexec/ld.so; then
10079         hardcode_direct=yes
10080         hardcode_shlibpath_var=no
10081         hardcode_direct_absolute=yes
10082         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10083           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10085           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086           export_dynamic_flag_spec='${wl}-E'
10087         else
10088           case $host_os in
10089            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10090              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10091              hardcode_libdir_flag_spec='-R$libdir'
10092              ;;
10093            *)
10094              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10095              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10096              ;;
10097           esac
10098         fi
10099       else
10100         ld_shlibs=no
10101       fi
10102       ;;
10103
10104     os2*)
10105       hardcode_libdir_flag_spec='-L$libdir'
10106       hardcode_minus_L=yes
10107       allow_undefined_flag=unsupported
10108       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10109       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10110       ;;
10111
10112     osf3*)
10113       if test "$GCC" = yes; then
10114         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10115         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'
10116       else
10117         allow_undefined_flag=' -expect_unresolved \*'
10118         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'
10119       fi
10120       archive_cmds_need_lc='no'
10121       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10122       hardcode_libdir_separator=:
10123       ;;
10124
10125     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10126       if test "$GCC" = yes; then
10127         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10128         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'
10129         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10130       else
10131         allow_undefined_flag=' -expect_unresolved \*'
10132         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'
10133         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~
10134         $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'
10135
10136         # Both c and cxx compiler support -rpath directly
10137         hardcode_libdir_flag_spec='-rpath $libdir'
10138       fi
10139       archive_cmds_need_lc='no'
10140       hardcode_libdir_separator=:
10141       ;;
10142
10143     solaris*)
10144       no_undefined_flag=' -z defs'
10145       if test "$GCC" = yes; then
10146         wlarc='${wl}'
10147         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10148         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149           $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'
10150       else
10151         case `$CC -V 2>&1` in
10152         *"Compilers 5.0"*)
10153           wlarc=''
10154           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10155           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10157           ;;
10158         *)
10159           wlarc='${wl}'
10160           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10161           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10162           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10163           ;;
10164         esac
10165       fi
10166       hardcode_libdir_flag_spec='-R$libdir'
10167       hardcode_shlibpath_var=no
10168       case $host_os in
10169       solaris2.[0-5] | solaris2.[0-5].*) ;;
10170       *)
10171         # The compiler driver will combine and reorder linker options,
10172         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10173         # but is careful enough not to reorder.
10174         # Supported since Solaris 2.6 (maybe 2.5.1?)
10175         if test "$GCC" = yes; then
10176           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10177         else
10178           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10179         fi
10180         ;;
10181       esac
10182       link_all_deplibs=yes
10183       ;;
10184
10185     sunos4*)
10186       if test "x$host_vendor" = xsequent; then
10187         # Use $CC to link under sequent, because it throws in some extra .o
10188         # files that make .init and .fini sections work.
10189         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10190       else
10191         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10192       fi
10193       hardcode_libdir_flag_spec='-L$libdir'
10194       hardcode_direct=yes
10195       hardcode_minus_L=yes
10196       hardcode_shlibpath_var=no
10197       ;;
10198
10199     sysv4)
10200       case $host_vendor in
10201         sni)
10202           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203           hardcode_direct=yes # is this really true???
10204         ;;
10205         siemens)
10206           ## LD is ld it makes a PLAMLIB
10207           ## CC just makes a GrossModule.
10208           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10209           reload_cmds='$CC -r -o $output$reload_objs'
10210           hardcode_direct=no
10211         ;;
10212         motorola)
10213           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10215         ;;
10216       esac
10217       runpath_var='LD_RUN_PATH'
10218       hardcode_shlibpath_var=no
10219       ;;
10220
10221     sysv4.3*)
10222       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223       hardcode_shlibpath_var=no
10224       export_dynamic_flag_spec='-Bexport'
10225       ;;
10226
10227     sysv4*MP*)
10228       if test -d /usr/nec; then
10229         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10230         hardcode_shlibpath_var=no
10231         runpath_var=LD_RUN_PATH
10232         hardcode_runpath_var=yes
10233         ld_shlibs=yes
10234       fi
10235       ;;
10236
10237     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10238       no_undefined_flag='${wl}-z,text'
10239       archive_cmds_need_lc=no
10240       hardcode_shlibpath_var=no
10241       runpath_var='LD_RUN_PATH'
10242
10243       if test "$GCC" = yes; then
10244         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10245         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246       else
10247         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249       fi
10250       ;;
10251
10252     sysv5* | sco3.2v5* | sco5v6*)
10253       # Note: We can NOT use -z defs as we might desire, because we do not
10254       # link with -lc, and that would cause any symbols used from libc to
10255       # always be unresolved, which means just about no library would
10256       # ever link correctly.  If we're not using GNU ld we use -z text
10257       # though, which does catch some bad symbols but isn't as heavy-handed
10258       # as -z defs.
10259       no_undefined_flag='${wl}-z,text'
10260       allow_undefined_flag='${wl}-z,nodefs'
10261       archive_cmds_need_lc=no
10262       hardcode_shlibpath_var=no
10263       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10264       hardcode_libdir_separator=':'
10265       link_all_deplibs=yes
10266       export_dynamic_flag_spec='${wl}-Bexport'
10267       runpath_var='LD_RUN_PATH'
10268
10269       if test "$GCC" = yes; then
10270         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272       else
10273         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275       fi
10276       ;;
10277
10278     uts4*)
10279       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280       hardcode_libdir_flag_spec='-L$libdir'
10281       hardcode_shlibpath_var=no
10282       ;;
10283
10284     *)
10285       ld_shlibs=no
10286       ;;
10287     esac
10288
10289     if test x$host_vendor = xsni; then
10290       case $host in
10291       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10292         export_dynamic_flag_spec='${wl}-Blargedynsym'
10293         ;;
10294       esac
10295     fi
10296   fi
10297
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10299 $as_echo "$ld_shlibs" >&6; }
10300 test "$ld_shlibs" = no && can_build_shared=no
10301
10302 with_gnu_ld=$with_gnu_ld
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318 #
10319 # Do we need to explicitly link libc?
10320 #
10321 case "x$archive_cmds_need_lc" in
10322 x|xyes)
10323   # Assume -lc should be added
10324   archive_cmds_need_lc=yes
10325
10326   if test "$enable_shared" = yes && test "$GCC" = yes; then
10327     case $archive_cmds in
10328     *'~'*)
10329       # FIXME: we may have to deal with multi-command sequences.
10330       ;;
10331     '$CC '*)
10332       # Test whether the compiler implicitly links with -lc since on some
10333       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10334       # to ld, don't add -lc before -lgcc.
10335       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10336 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10337 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10338   $as_echo_n "(cached) " >&6
10339 else
10340   $RM conftest*
10341         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10342
10343         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10344   (eval $ac_compile) 2>&5
10345   ac_status=$?
10346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10347   test $ac_status = 0; } 2>conftest.err; then
10348           soname=conftest
10349           lib=conftest
10350           libobjs=conftest.$ac_objext
10351           deplibs=
10352           wl=$lt_prog_compiler_wl
10353           pic_flag=$lt_prog_compiler_pic
10354           compiler_flags=-v
10355           linker_flags=-v
10356           verstring=
10357           output_objdir=.
10358           libname=conftest
10359           lt_save_allow_undefined_flag=$allow_undefined_flag
10360           allow_undefined_flag=
10361           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10362   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10363   ac_status=$?
10364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365   test $ac_status = 0; }
10366           then
10367             lt_cv_archive_cmds_need_lc=no
10368           else
10369             lt_cv_archive_cmds_need_lc=yes
10370           fi
10371           allow_undefined_flag=$lt_save_allow_undefined_flag
10372         else
10373           cat conftest.err 1>&5
10374         fi
10375         $RM conftest*
10376
10377 fi
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10379 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10380       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10381       ;;
10382     esac
10383   fi
10384   ;;
10385 esac
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10544 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10545
10546 if test "$GCC" = yes; then
10547   case $host_os in
10548     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10549     *) lt_awk_arg="/^libraries:/" ;;
10550   esac
10551   case $host_os in
10552     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10553     *) lt_sed_strip_eq="s,=/,/,g" ;;
10554   esac
10555   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10556   case $lt_search_path_spec in
10557   *\;*)
10558     # if the path contains ";" then we assume it to be the separator
10559     # otherwise default to the standard path separator (i.e. ":") - it is
10560     # assumed that no part of a normal pathname contains ";" but that should
10561     # okay in the real world where ";" in dirpaths is itself problematic.
10562     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10563     ;;
10564   *)
10565     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10566     ;;
10567   esac
10568   # Ok, now we have the path, separated by spaces, we can step through it
10569   # and add multilib dir if necessary.
10570   lt_tmp_lt_search_path_spec=
10571   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10572   for lt_sys_path in $lt_search_path_spec; do
10573     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10574       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10575     else
10576       test -d "$lt_sys_path" && \
10577         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10578     fi
10579   done
10580   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10581 BEGIN {RS=" "; FS="/|\n";} {
10582   lt_foo="";
10583   lt_count=0;
10584   for (lt_i = NF; lt_i > 0; lt_i--) {
10585     if ($lt_i != "" && $lt_i != ".") {
10586       if ($lt_i == "..") {
10587         lt_count++;
10588       } else {
10589         if (lt_count == 0) {
10590           lt_foo="/" $lt_i lt_foo;
10591         } else {
10592           lt_count--;
10593         }
10594       }
10595     }
10596   }
10597   if (lt_foo != "") { lt_freq[lt_foo]++; }
10598   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10599 }'`
10600   # AWK program above erroneously prepends '/' to C:/dos/paths
10601   # for these hosts.
10602   case $host_os in
10603     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10604       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10605   esac
10606   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10607 else
10608   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10609 fi
10610 library_names_spec=
10611 libname_spec='lib$name'
10612 soname_spec=
10613 shrext_cmds=".so"
10614 postinstall_cmds=
10615 postuninstall_cmds=
10616 finish_cmds=
10617 finish_eval=
10618 shlibpath_var=
10619 shlibpath_overrides_runpath=unknown
10620 version_type=none
10621 dynamic_linker="$host_os ld.so"
10622 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10623 need_lib_prefix=unknown
10624 hardcode_into_libs=no
10625
10626 # when you set need_version to no, make sure it does not cause -set_version
10627 # flags to be left without arguments
10628 need_version=unknown
10629
10630 case $host_os in
10631 aix3*)
10632   version_type=linux
10633   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10634   shlibpath_var=LIBPATH
10635
10636   # AIX 3 has no versioning support, so we append a major version to the name.
10637   soname_spec='${libname}${release}${shared_ext}$major'
10638   ;;
10639
10640 aix[4-9]*)
10641   version_type=linux
10642   need_lib_prefix=no
10643   need_version=no
10644   hardcode_into_libs=yes
10645   if test "$host_cpu" = ia64; then
10646     # AIX 5 supports IA64
10647     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10648     shlibpath_var=LD_LIBRARY_PATH
10649   else
10650     # With GCC up to 2.95.x, collect2 would create an import file
10651     # for dependence libraries.  The import file would start with
10652     # the line `#! .'.  This would cause the generated library to
10653     # depend on `.', always an invalid library.  This was fixed in
10654     # development snapshots of GCC prior to 3.0.
10655     case $host_os in
10656       aix4 | aix4.[01] | aix4.[01].*)
10657       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10658            echo ' yes '
10659            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10660         :
10661       else
10662         can_build_shared=no
10663       fi
10664       ;;
10665     esac
10666     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10667     # soname into executable. Probably we can add versioning support to
10668     # collect2, so additional links can be useful in future.
10669     if test "$aix_use_runtimelinking" = yes; then
10670       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10671       # instead of lib<name>.a to let people know that these are not
10672       # typical AIX shared libraries.
10673       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674     else
10675       # We preserve .a as extension for shared libraries through AIX4.2
10676       # and later when we are not doing run time linking.
10677       library_names_spec='${libname}${release}.a $libname.a'
10678       soname_spec='${libname}${release}${shared_ext}$major'
10679     fi
10680     shlibpath_var=LIBPATH
10681   fi
10682   ;;
10683
10684 amigaos*)
10685   case $host_cpu in
10686   powerpc)
10687     # Since July 2007 AmigaOS4 officially supports .so libraries.
10688     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690     ;;
10691   m68k)
10692     library_names_spec='$libname.ixlibrary $libname.a'
10693     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10694     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10695     ;;
10696   esac
10697   ;;
10698
10699 beos*)
10700   library_names_spec='${libname}${shared_ext}'
10701   dynamic_linker="$host_os ld.so"
10702   shlibpath_var=LIBRARY_PATH
10703   ;;
10704
10705 bsdi[45]*)
10706   version_type=linux
10707   need_version=no
10708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709   soname_spec='${libname}${release}${shared_ext}$major'
10710   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10711   shlibpath_var=LD_LIBRARY_PATH
10712   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10713   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10714   # the default ld.so.conf also contains /usr/contrib/lib and
10715   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10716   # libtool to hard-code these into programs
10717   ;;
10718
10719 cygwin* | mingw* | pw32* | cegcc*)
10720   version_type=windows
10721   shrext_cmds=".dll"
10722   need_version=no
10723   need_lib_prefix=no
10724
10725   case $GCC,$cc_basename in
10726   yes,*)
10727     # gcc
10728     library_names_spec='$libname.dll.a'
10729     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10730     postinstall_cmds='base_file=`basename \${file}`~
10731       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10732       dldir=$destdir/`dirname \$dlpath`~
10733       test -d \$dldir || mkdir -p \$dldir~
10734       $install_prog $dir/$dlname \$dldir/$dlname~
10735       chmod a+x \$dldir/$dlname~
10736       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10737         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10738       fi'
10739     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10740       dlpath=$dir/\$dldll~
10741        $RM \$dlpath'
10742     shlibpath_overrides_runpath=yes
10743
10744     case $host_os in
10745     cygwin*)
10746       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10747       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10748
10749       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10750       ;;
10751     mingw* | cegcc*)
10752       # MinGW DLLs use traditional 'lib' prefix
10753       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10754       ;;
10755     pw32*)
10756       # pw32 DLLs use 'pw' prefix rather than 'lib'
10757       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10758       ;;
10759     esac
10760     dynamic_linker='Win32 ld.exe'
10761     ;;
10762
10763   *,cl*)
10764     # Native MSVC
10765     libname_spec='$name'
10766     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10767     library_names_spec='${libname}.dll.lib'
10768
10769     case $build_os in
10770     mingw*)
10771       sys_lib_search_path_spec=
10772       lt_save_ifs=$IFS
10773       IFS=';'
10774       for lt_path in $LIB
10775       do
10776         IFS=$lt_save_ifs
10777         # Let DOS variable expansion print the short 8.3 style file name.
10778         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10779         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10780       done
10781       IFS=$lt_save_ifs
10782       # Convert to MSYS style.
10783       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10784       ;;
10785     cygwin*)
10786       # Convert to unix form, then to dos form, then back to unix form
10787       # but this time dos style (no spaces!) so that the unix form looks
10788       # like /cygdrive/c/PROGRA~1:/cygdr...
10789       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10790       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10791       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10792       ;;
10793     *)
10794       sys_lib_search_path_spec="$LIB"
10795       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10796         # It is most probably a Windows format PATH.
10797         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10798       else
10799         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10800       fi
10801       # FIXME: find the short name or the path components, as spaces are
10802       # common. (e.g. "Program Files" -> "PROGRA~1")
10803       ;;
10804     esac
10805
10806     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10807     postinstall_cmds='base_file=`basename \${file}`~
10808       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10809       dldir=$destdir/`dirname \$dlpath`~
10810       test -d \$dldir || mkdir -p \$dldir~
10811       $install_prog $dir/$dlname \$dldir/$dlname'
10812     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10813       dlpath=$dir/\$dldll~
10814        $RM \$dlpath'
10815     shlibpath_overrides_runpath=yes
10816     dynamic_linker='Win32 link.exe'
10817     ;;
10818
10819   *)
10820     # Assume MSVC wrapper
10821     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10822     dynamic_linker='Win32 ld.exe'
10823     ;;
10824   esac
10825   # FIXME: first we should search . and the directory the executable is in
10826   shlibpath_var=PATH
10827   ;;
10828
10829 darwin* | rhapsody*)
10830   dynamic_linker="$host_os dyld"
10831   version_type=darwin
10832   need_lib_prefix=no
10833   need_version=no
10834   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10835   soname_spec='${libname}${release}${major}$shared_ext'
10836   shlibpath_overrides_runpath=yes
10837   shlibpath_var=DYLD_LIBRARY_PATH
10838   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10839
10840   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10841   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10842   ;;
10843
10844 dgux*)
10845   version_type=linux
10846   need_lib_prefix=no
10847   need_version=no
10848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10849   soname_spec='${libname}${release}${shared_ext}$major'
10850   shlibpath_var=LD_LIBRARY_PATH
10851   ;;
10852
10853 freebsd1*)
10854   dynamic_linker=no
10855   ;;
10856
10857 freebsd* | dragonfly*)
10858   # DragonFly does not have aout.  When/if they implement a new
10859   # versioning mechanism, adjust this.
10860   if test -x /usr/bin/objformat; then
10861     objformat=`/usr/bin/objformat`
10862   else
10863     case $host_os in
10864     freebsd[123]*) objformat=aout ;;
10865     *) objformat=elf ;;
10866     esac
10867   fi
10868   version_type=freebsd-$objformat
10869   case $version_type in
10870     freebsd-elf*)
10871       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10872       need_version=no
10873       need_lib_prefix=no
10874       ;;
10875     freebsd-*)
10876       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10877       need_version=yes
10878       ;;
10879   esac
10880   shlibpath_var=LD_LIBRARY_PATH
10881   case $host_os in
10882   freebsd2*)
10883     shlibpath_overrides_runpath=yes
10884     ;;
10885   freebsd3.[01]* | freebsdelf3.[01]*)
10886     shlibpath_overrides_runpath=yes
10887     hardcode_into_libs=yes
10888     ;;
10889   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10890   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10891     shlibpath_overrides_runpath=no
10892     hardcode_into_libs=yes
10893     ;;
10894   *) # from 4.6 on, and DragonFly
10895     shlibpath_overrides_runpath=yes
10896     hardcode_into_libs=yes
10897     ;;
10898   esac
10899   ;;
10900
10901 gnu*)
10902   version_type=linux
10903   need_lib_prefix=no
10904   need_version=no
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10906   soname_spec='${libname}${release}${shared_ext}$major'
10907   shlibpath_var=LD_LIBRARY_PATH
10908   hardcode_into_libs=yes
10909   ;;
10910
10911 haiku*)
10912   version_type=linux
10913   need_lib_prefix=no
10914   need_version=no
10915   dynamic_linker="$host_os runtime_loader"
10916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10917   soname_spec='${libname}${release}${shared_ext}$major'
10918   shlibpath_var=LIBRARY_PATH
10919   shlibpath_overrides_runpath=yes
10920   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10921   hardcode_into_libs=yes
10922   ;;
10923
10924 hpux9* | hpux10* | hpux11*)
10925   # Give a soname corresponding to the major version so that dld.sl refuses to
10926   # link against other versions.
10927   version_type=sunos
10928   need_lib_prefix=no
10929   need_version=no
10930   case $host_cpu in
10931   ia64*)
10932     shrext_cmds='.so'
10933     hardcode_into_libs=yes
10934     dynamic_linker="$host_os dld.so"
10935     shlibpath_var=LD_LIBRARY_PATH
10936     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938     soname_spec='${libname}${release}${shared_ext}$major'
10939     if test "X$HPUX_IA64_MODE" = X32; then
10940       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10941     else
10942       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10943     fi
10944     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10945     ;;
10946   hppa*64*)
10947     shrext_cmds='.sl'
10948     hardcode_into_libs=yes
10949     dynamic_linker="$host_os dld.sl"
10950     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10951     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953     soname_spec='${libname}${release}${shared_ext}$major'
10954     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10955     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10956     ;;
10957   *)
10958     shrext_cmds='.sl'
10959     dynamic_linker="$host_os dld.sl"
10960     shlibpath_var=SHLIB_PATH
10961     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963     soname_spec='${libname}${release}${shared_ext}$major'
10964     ;;
10965   esac
10966   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10967   postinstall_cmds='chmod 555 $lib'
10968   # or fails outright, so override atomically:
10969   install_override_mode=555
10970   ;;
10971
10972 interix[3-9]*)
10973   version_type=linux
10974   need_lib_prefix=no
10975   need_version=no
10976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10977   soname_spec='${libname}${release}${shared_ext}$major'
10978   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10979   shlibpath_var=LD_LIBRARY_PATH
10980   shlibpath_overrides_runpath=no
10981   hardcode_into_libs=yes
10982   ;;
10983
10984 irix5* | irix6* | nonstopux*)
10985   case $host_os in
10986     nonstopux*) version_type=nonstopux ;;
10987     *)
10988         if test "$lt_cv_prog_gnu_ld" = yes; then
10989                 version_type=linux
10990         else
10991                 version_type=irix
10992         fi ;;
10993   esac
10994   need_lib_prefix=no
10995   need_version=no
10996   soname_spec='${libname}${release}${shared_ext}$major'
10997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10998   case $host_os in
10999   irix5* | nonstopux*)
11000     libsuff= shlibsuff=
11001     ;;
11002   *)
11003     case $LD in # libtool.m4 will add one of these switches to LD
11004     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11005       libsuff= shlibsuff= libmagic=32-bit;;
11006     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11007       libsuff=32 shlibsuff=N32 libmagic=N32;;
11008     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11009       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11010     *) libsuff= shlibsuff= libmagic=never-match;;
11011     esac
11012     ;;
11013   esac
11014   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11015   shlibpath_overrides_runpath=no
11016   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11017   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11018   hardcode_into_libs=yes
11019   ;;
11020
11021 # No shared lib support for Linux oldld, aout, or coff.
11022 linux*oldld* | linux*aout* | linux*coff*)
11023   dynamic_linker=no
11024   ;;
11025
11026 # This must be Linux ELF.
11027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11028   version_type=linux
11029   need_lib_prefix=no
11030   need_version=no
11031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032   soname_spec='${libname}${release}${shared_ext}$major'
11033   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11034   shlibpath_var=LD_LIBRARY_PATH
11035   shlibpath_overrides_runpath=no
11036
11037   # Some binutils ld are patched to set DT_RUNPATH
11038   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11039   $as_echo_n "(cached) " >&6
11040 else
11041   lt_cv_shlibpath_overrides_runpath=no
11042     save_LDFLAGS=$LDFLAGS
11043     save_libdir=$libdir
11044     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11045          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h.  */
11048
11049 int
11050 main ()
11051 {
11052
11053   ;
11054   return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11059   lt_cv_shlibpath_overrides_runpath=yes
11060 fi
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063     conftest$ac_exeext conftest.$ac_ext
11064     LDFLAGS=$save_LDFLAGS
11065     libdir=$save_libdir
11066
11067 fi
11068
11069   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11070
11071   # This implies no fast_install, which is unacceptable.
11072   # Some rework will be needed to allow for fast_install
11073   # before this can be enabled.
11074   hardcode_into_libs=yes
11075
11076   # Append ld.so.conf contents to the search path
11077   if test -f /etc/ld.so.conf; then
11078     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' ' '`
11079     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11080   fi
11081
11082   # We used to test for /lib/ld.so.1 and disable shared libraries on
11083   # powerpc, because MkLinux only supported shared libraries with the
11084   # GNU dynamic linker.  Since this was broken with cross compilers,
11085   # most powerpc-linux boxes support dynamic linking these days and
11086   # people can always --disable-shared, the test was removed, and we
11087   # assume the GNU/Linux dynamic linker is in use.
11088   dynamic_linker='GNU/Linux ld.so'
11089   ;;
11090
11091 netbsd*)
11092   version_type=sunos
11093   need_lib_prefix=no
11094   need_version=no
11095   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11097     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11098     dynamic_linker='NetBSD (a.out) ld.so'
11099   else
11100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11101     soname_spec='${libname}${release}${shared_ext}$major'
11102     dynamic_linker='NetBSD ld.elf_so'
11103   fi
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=yes
11106   hardcode_into_libs=yes
11107   ;;
11108
11109 newsos6)
11110   version_type=linux
11111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112   shlibpath_var=LD_LIBRARY_PATH
11113   shlibpath_overrides_runpath=yes
11114   ;;
11115
11116 *nto* | *qnx*)
11117   version_type=qnx
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121   soname_spec='${libname}${release}${shared_ext}$major'
11122   shlibpath_var=LD_LIBRARY_PATH
11123   shlibpath_overrides_runpath=no
11124   hardcode_into_libs=yes
11125   dynamic_linker='ldqnx.so'
11126   ;;
11127
11128 openbsd*)
11129   version_type=sunos
11130   sys_lib_dlsearch_path_spec="/usr/lib"
11131   need_lib_prefix=no
11132   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11133   case $host_os in
11134     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11135     *)                          need_version=no  ;;
11136   esac
11137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11138   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11139   shlibpath_var=LD_LIBRARY_PATH
11140   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11141     case $host_os in
11142       openbsd2.[89] | openbsd2.[89].*)
11143         shlibpath_overrides_runpath=no
11144         ;;
11145       *)
11146         shlibpath_overrides_runpath=yes
11147         ;;
11148       esac
11149   else
11150     shlibpath_overrides_runpath=yes
11151   fi
11152   ;;
11153
11154 os2*)
11155   libname_spec='$name'
11156   shrext_cmds=".dll"
11157   need_lib_prefix=no
11158   library_names_spec='$libname${shared_ext} $libname.a'
11159   dynamic_linker='OS/2 ld.exe'
11160   shlibpath_var=LIBPATH
11161   ;;
11162
11163 osf3* | osf4* | osf5*)
11164   version_type=osf
11165   need_lib_prefix=no
11166   need_version=no
11167   soname_spec='${libname}${release}${shared_ext}$major'
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169   shlibpath_var=LD_LIBRARY_PATH
11170   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11171   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11172   ;;
11173
11174 rdos*)
11175   dynamic_linker=no
11176   ;;
11177
11178 solaris*)
11179   version_type=linux
11180   need_lib_prefix=no
11181   need_version=no
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183   soname_spec='${libname}${release}${shared_ext}$major'
11184   shlibpath_var=LD_LIBRARY_PATH
11185   shlibpath_overrides_runpath=yes
11186   hardcode_into_libs=yes
11187   # ldd complains unless libraries are executable
11188   postinstall_cmds='chmod +x $lib'
11189   ;;
11190
11191 sunos4*)
11192   version_type=sunos
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11194   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   shlibpath_overrides_runpath=yes
11197   if test "$with_gnu_ld" = yes; then
11198     need_lib_prefix=no
11199   fi
11200   need_version=yes
11201   ;;
11202
11203 sysv4 | sysv4.3*)
11204   version_type=linux
11205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206   soname_spec='${libname}${release}${shared_ext}$major'
11207   shlibpath_var=LD_LIBRARY_PATH
11208   case $host_vendor in
11209     sni)
11210       shlibpath_overrides_runpath=no
11211       need_lib_prefix=no
11212       runpath_var=LD_RUN_PATH
11213       ;;
11214     siemens)
11215       need_lib_prefix=no
11216       ;;
11217     motorola)
11218       need_lib_prefix=no
11219       need_version=no
11220       shlibpath_overrides_runpath=no
11221       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11222       ;;
11223   esac
11224   ;;
11225
11226 sysv4*MP*)
11227   if test -d /usr/nec ;then
11228     version_type=linux
11229     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11230     soname_spec='$libname${shared_ext}.$major'
11231     shlibpath_var=LD_LIBRARY_PATH
11232   fi
11233   ;;
11234
11235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11236   version_type=freebsd-elf
11237   need_lib_prefix=no
11238   need_version=no
11239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11240   soname_spec='${libname}${release}${shared_ext}$major'
11241   shlibpath_var=LD_LIBRARY_PATH
11242   shlibpath_overrides_runpath=yes
11243   hardcode_into_libs=yes
11244   if test "$with_gnu_ld" = yes; then
11245     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11246   else
11247     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11248     case $host_os in
11249       sco3.2v5*)
11250         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11251         ;;
11252     esac
11253   fi
11254   sys_lib_dlsearch_path_spec='/usr/lib'
11255   ;;
11256
11257 tpf*)
11258   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11259   version_type=linux
11260   need_lib_prefix=no
11261   need_version=no
11262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263   shlibpath_var=LD_LIBRARY_PATH
11264   shlibpath_overrides_runpath=no
11265   hardcode_into_libs=yes
11266   ;;
11267
11268 uts4*)
11269   version_type=linux
11270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271   soname_spec='${libname}${release}${shared_ext}$major'
11272   shlibpath_var=LD_LIBRARY_PATH
11273   ;;
11274
11275 *)
11276   dynamic_linker=no
11277   ;;
11278 esac
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11280 $as_echo "$dynamic_linker" >&6; }
11281 test "$dynamic_linker" = no && can_build_shared=no
11282
11283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11284 if test "$GCC" = yes; then
11285   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11286 fi
11287
11288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11289   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11290 fi
11291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11292   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11293 fi
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11387 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11388 hardcode_action=
11389 if test -n "$hardcode_libdir_flag_spec" ||
11390    test -n "$runpath_var" ||
11391    test "X$hardcode_automatic" = "Xyes" ; then
11392
11393   # We can hardcode non-existent directories.
11394   if test "$hardcode_direct" != no &&
11395      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11396      # have to relink, otherwise we might link with an installed library
11397      # when we should be linking with a yet-to-be-installed one
11398      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11399      test "$hardcode_minus_L" != no; then
11400     # Linking always hardcodes the temporary library directory.
11401     hardcode_action=relink
11402   else
11403     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11404     hardcode_action=immediate
11405   fi
11406 else
11407   # We cannot hardcode anything, or else we can only hardcode existing
11408   # directories.
11409   hardcode_action=unsupported
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11412 $as_echo "$hardcode_action" >&6; }
11413
11414 if test "$hardcode_action" = relink ||
11415    test "$inherit_rpath" = yes; then
11416   # Fast installation is not supported
11417   enable_fast_install=no
11418 elif test "$shlibpath_overrides_runpath" = yes ||
11419      test "$enable_shared" = no; then
11420   # Fast installation is not necessary
11421   enable_fast_install=needless
11422 fi
11423
11424
11425
11426
11427
11428
11429   if test "x$enable_dlopen" != xyes; then
11430   enable_dlopen=unknown
11431   enable_dlopen_self=unknown
11432   enable_dlopen_self_static=unknown
11433 else
11434   lt_cv_dlopen=no
11435   lt_cv_dlopen_libs=
11436
11437   case $host_os in
11438   beos*)
11439     lt_cv_dlopen="load_add_on"
11440     lt_cv_dlopen_libs=
11441     lt_cv_dlopen_self=yes
11442     ;;
11443
11444   mingw* | pw32* | cegcc*)
11445     lt_cv_dlopen="LoadLibrary"
11446     lt_cv_dlopen_libs=
11447     ;;
11448
11449   cygwin*)
11450     lt_cv_dlopen="dlopen"
11451     lt_cv_dlopen_libs=
11452     ;;
11453
11454   darwin*)
11455   # if libdl is installed we need to link against it
11456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11458 if ${ac_cv_lib_dl_dlopen+:} false; then :
11459   $as_echo_n "(cached) " >&6
11460 else
11461   ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-ldl  $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h.  */
11465
11466 /* Override any GCC internal prototype to avoid an error.
11467    Use char because int might match the return type of a GCC
11468    builtin and then its argument prototype would still apply.  */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char dlopen ();
11473 int
11474 main ()
11475 {
11476 return dlopen ();
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_link "$LINENO"; then :
11482   ac_cv_lib_dl_dlopen=yes
11483 else
11484   ac_cv_lib_dl_dlopen=no
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext \
11487     conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11492 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11493   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11494 else
11495
11496     lt_cv_dlopen="dyld"
11497     lt_cv_dlopen_libs=
11498     lt_cv_dlopen_self=yes
11499
11500 fi
11501
11502     ;;
11503
11504   *)
11505     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11506 if test "x$ac_cv_func_shl_load" = xyes; then :
11507   lt_cv_dlopen="shl_load"
11508 else
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11510 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11511 if ${ac_cv_lib_dld_shl_load+:} false; then :
11512   $as_echo_n "(cached) " >&6
11513 else
11514   ac_check_lib_save_LIBS=$LIBS
11515 LIBS="-ldld  $LIBS"
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h.  */
11518
11519 /* Override any GCC internal prototype to avoid an error.
11520    Use char because int might match the return type of a GCC
11521    builtin and then its argument prototype would still apply.  */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char shl_load ();
11526 int
11527 main ()
11528 {
11529 return shl_load ();
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 if ac_fn_c_try_link "$LINENO"; then :
11535   ac_cv_lib_dld_shl_load=yes
11536 else
11537   ac_cv_lib_dld_shl_load=no
11538 fi
11539 rm -f core conftest.err conftest.$ac_objext \
11540     conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11542 fi
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11544 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11545 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11546   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11547 else
11548   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11549 if test "x$ac_cv_func_dlopen" = xyes; then :
11550   lt_cv_dlopen="dlopen"
11551 else
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11554 if ${ac_cv_lib_dl_dlopen+:} false; then :
11555   $as_echo_n "(cached) " >&6
11556 else
11557   ac_check_lib_save_LIBS=$LIBS
11558 LIBS="-ldl  $LIBS"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h.  */
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563    Use char because int might match the return type of a GCC
11564    builtin and then its argument prototype would still apply.  */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char dlopen ();
11569 int
11570 main ()
11571 {
11572 return dlopen ();
11573   ;
11574   return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578   ac_cv_lib_dl_dlopen=yes
11579 else
11580   ac_cv_lib_dl_dlopen=no
11581 fi
11582 rm -f core conftest.err conftest.$ac_objext \
11583     conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11588 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11589   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11590 else
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11592 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11593 if ${ac_cv_lib_svld_dlopen+:} false; then :
11594   $as_echo_n "(cached) " >&6
11595 else
11596   ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-lsvld  $LIBS"
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h.  */
11600
11601 /* Override any GCC internal prototype to avoid an error.
11602    Use char because int might match the return type of a GCC
11603    builtin and then its argument prototype would still apply.  */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 char dlopen ();
11608 int
11609 main ()
11610 {
11611 return dlopen ();
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_link "$LINENO"; then :
11617   ac_cv_lib_svld_dlopen=yes
11618 else
11619   ac_cv_lib_svld_dlopen=no
11620 fi
11621 rm -f core conftest.err conftest.$ac_objext \
11622     conftest$ac_exeext conftest.$ac_ext
11623 LIBS=$ac_check_lib_save_LIBS
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11626 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11627 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11628   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11629 else
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11631 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11632 if ${ac_cv_lib_dld_dld_link+:} false; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635   ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-ldld  $LIBS"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h.  */
11639
11640 /* Override any GCC internal prototype to avoid an error.
11641    Use char because int might match the return type of a GCC
11642    builtin and then its argument prototype would still apply.  */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char dld_link ();
11647 int
11648 main ()
11649 {
11650 return dld_link ();
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656   ac_cv_lib_dld_dld_link=yes
11657 else
11658   ac_cv_lib_dld_dld_link=no
11659 fi
11660 rm -f core conftest.err conftest.$ac_objext \
11661     conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_check_lib_save_LIBS
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11665 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11666 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11667   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11668 fi
11669
11670
11671 fi
11672
11673
11674 fi
11675
11676
11677 fi
11678
11679
11680 fi
11681
11682
11683 fi
11684
11685     ;;
11686   esac
11687
11688   if test "x$lt_cv_dlopen" != xno; then
11689     enable_dlopen=yes
11690   else
11691     enable_dlopen=no
11692   fi
11693
11694   case $lt_cv_dlopen in
11695   dlopen)
11696     save_CPPFLAGS="$CPPFLAGS"
11697     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11698
11699     save_LDFLAGS="$LDFLAGS"
11700     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11701
11702     save_LIBS="$LIBS"
11703     LIBS="$lt_cv_dlopen_libs $LIBS"
11704
11705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11706 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11707 if ${lt_cv_dlopen_self+:} false; then :
11708   $as_echo_n "(cached) " >&6
11709 else
11710           if test "$cross_compiling" = yes; then :
11711   lt_cv_dlopen_self=cross
11712 else
11713   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11714   lt_status=$lt_dlunknown
11715   cat > conftest.$ac_ext <<_LT_EOF
11716 #line $LINENO "configure"
11717 #include "confdefs.h"
11718
11719 #if HAVE_DLFCN_H
11720 #include <dlfcn.h>
11721 #endif
11722
11723 #include <stdio.h>
11724
11725 #ifdef RTLD_GLOBAL
11726 #  define LT_DLGLOBAL           RTLD_GLOBAL
11727 #else
11728 #  ifdef DL_GLOBAL
11729 #    define LT_DLGLOBAL         DL_GLOBAL
11730 #  else
11731 #    define LT_DLGLOBAL         0
11732 #  endif
11733 #endif
11734
11735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11736    find out it does not work in some platform. */
11737 #ifndef LT_DLLAZY_OR_NOW
11738 #  ifdef RTLD_LAZY
11739 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11740 #  else
11741 #    ifdef DL_LAZY
11742 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11743 #    else
11744 #      ifdef RTLD_NOW
11745 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11746 #      else
11747 #        ifdef DL_NOW
11748 #          define LT_DLLAZY_OR_NOW      DL_NOW
11749 #        else
11750 #          define LT_DLLAZY_OR_NOW      0
11751 #        endif
11752 #      endif
11753 #    endif
11754 #  endif
11755 #endif
11756
11757 /* When -fvisbility=hidden is used, assume the code has been annotated
11758    correspondingly for the symbols needed.  */
11759 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11760 int fnord () __attribute__((visibility("default")));
11761 #endif
11762
11763 int fnord () { return 42; }
11764 int main ()
11765 {
11766   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11767   int status = $lt_dlunknown;
11768
11769   if (self)
11770     {
11771       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11772       else
11773         {
11774           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11775           else puts (dlerror ());
11776         }
11777       /* dlclose (self); */
11778     }
11779   else
11780     puts (dlerror ());
11781
11782   return status;
11783 }
11784 _LT_EOF
11785   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11786   (eval $ac_link) 2>&5
11787   ac_status=$?
11788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11789   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11790     (./conftest; exit; ) >&5 2>/dev/null
11791     lt_status=$?
11792     case x$lt_status in
11793       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11794       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11795       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11796     esac
11797   else :
11798     # compilation failed
11799     lt_cv_dlopen_self=no
11800   fi
11801 fi
11802 rm -fr conftest*
11803
11804
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11807 $as_echo "$lt_cv_dlopen_self" >&6; }
11808
11809     if test "x$lt_cv_dlopen_self" = xyes; then
11810       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11812 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11813 if ${lt_cv_dlopen_self_static+:} false; then :
11814   $as_echo_n "(cached) " >&6
11815 else
11816           if test "$cross_compiling" = yes; then :
11817   lt_cv_dlopen_self_static=cross
11818 else
11819   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11820   lt_status=$lt_dlunknown
11821   cat > conftest.$ac_ext <<_LT_EOF
11822 #line $LINENO "configure"
11823 #include "confdefs.h"
11824
11825 #if HAVE_DLFCN_H
11826 #include <dlfcn.h>
11827 #endif
11828
11829 #include <stdio.h>
11830
11831 #ifdef RTLD_GLOBAL
11832 #  define LT_DLGLOBAL           RTLD_GLOBAL
11833 #else
11834 #  ifdef DL_GLOBAL
11835 #    define LT_DLGLOBAL         DL_GLOBAL
11836 #  else
11837 #    define LT_DLGLOBAL         0
11838 #  endif
11839 #endif
11840
11841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11842    find out it does not work in some platform. */
11843 #ifndef LT_DLLAZY_OR_NOW
11844 #  ifdef RTLD_LAZY
11845 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11846 #  else
11847 #    ifdef DL_LAZY
11848 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11849 #    else
11850 #      ifdef RTLD_NOW
11851 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11852 #      else
11853 #        ifdef DL_NOW
11854 #          define LT_DLLAZY_OR_NOW      DL_NOW
11855 #        else
11856 #          define LT_DLLAZY_OR_NOW      0
11857 #        endif
11858 #      endif
11859 #    endif
11860 #  endif
11861 #endif
11862
11863 /* When -fvisbility=hidden is used, assume the code has been annotated
11864    correspondingly for the symbols needed.  */
11865 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11866 int fnord () __attribute__((visibility("default")));
11867 #endif
11868
11869 int fnord () { return 42; }
11870 int main ()
11871 {
11872   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11873   int status = $lt_dlunknown;
11874
11875   if (self)
11876     {
11877       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11878       else
11879         {
11880           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11881           else puts (dlerror ());
11882         }
11883       /* dlclose (self); */
11884     }
11885   else
11886     puts (dlerror ());
11887
11888   return status;
11889 }
11890 _LT_EOF
11891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11892   (eval $ac_link) 2>&5
11893   ac_status=$?
11894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11895   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11896     (./conftest; exit; ) >&5 2>/dev/null
11897     lt_status=$?
11898     case x$lt_status in
11899       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11900       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11901       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11902     esac
11903   else :
11904     # compilation failed
11905     lt_cv_dlopen_self_static=no
11906   fi
11907 fi
11908 rm -fr conftest*
11909
11910
11911 fi
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11913 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11914     fi
11915
11916     CPPFLAGS="$save_CPPFLAGS"
11917     LDFLAGS="$save_LDFLAGS"
11918     LIBS="$save_LIBS"
11919     ;;
11920   esac
11921
11922   case $lt_cv_dlopen_self in
11923   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11924   *) enable_dlopen_self=unknown ;;
11925   esac
11926
11927   case $lt_cv_dlopen_self_static in
11928   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11929   *) enable_dlopen_self_static=unknown ;;
11930   esac
11931 fi
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949 striplib=
11950 old_striplib=
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11952 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11953 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11954   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11955   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11957 $as_echo "yes" >&6; }
11958 else
11959 # FIXME - insert some real tests, host_os isn't really good enough
11960   case $host_os in
11961   darwin*)
11962     if test -n "$STRIP" ; then
11963       striplib="$STRIP -x"
11964       old_striplib="$STRIP -S"
11965       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; }
11967     else
11968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11970     fi
11971     ;;
11972   *)
11973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11975     ;;
11976   esac
11977 fi
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990   # Report which library types will actually be built
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11992 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11994 $as_echo "$can_build_shared" >&6; }
11995
11996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11997 $as_echo_n "checking whether to build shared libraries... " >&6; }
11998   test "$can_build_shared" = "no" && enable_shared=no
11999
12000   # On AIX, shared libraries and static libraries use the same namespace, and
12001   # are all built from PIC.
12002   case $host_os in
12003   aix3*)
12004     test "$enable_shared" = yes && enable_static=no
12005     if test -n "$RANLIB"; then
12006       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12007       postinstall_cmds='$RANLIB $lib'
12008     fi
12009     ;;
12010
12011   aix[4-9]*)
12012     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12013       test "$enable_shared" = yes && enable_static=no
12014     fi
12015     ;;
12016   esac
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12018 $as_echo "$enable_shared" >&6; }
12019
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12021 $as_echo_n "checking whether to build static libraries... " >&6; }
12022   # Make sure either enable_shared or enable_static is yes.
12023   test "$enable_shared" = yes || enable_static=yes
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12025 $as_echo "$enable_static" >&6; }
12026
12027
12028
12029
12030 fi
12031 ac_ext=c
12032 ac_cpp='$CPP $CPPFLAGS'
12033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12036
12037 CC="$lt_save_CC"
12038
12039       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12040     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12041     (test "X$CXX" != "Xg++"))) ; then
12042   ac_ext=cpp
12043 ac_cpp='$CXXCPP $CPPFLAGS'
12044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12048 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12049 if test -z "$CXXCPP"; then
12050   if ${ac_cv_prog_CXXCPP+:} false; then :
12051   $as_echo_n "(cached) " >&6
12052 else
12053       # Double quotes because CXXCPP needs to be expanded
12054     for CXXCPP in "$CXX -E" "/lib/cpp"
12055     do
12056       ac_preproc_ok=false
12057 for ac_cxx_preproc_warn_flag in '' yes
12058 do
12059   # Use a header file that comes with gcc, so configuring glibc
12060   # with a fresh cross-compiler works.
12061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062   # <limits.h> exists even on freestanding compilers.
12063   # On the NeXT, cc -E runs the code through the compiler's parser,
12064   # not just through cpp. "Syntax error" is here to catch this case.
12065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h.  */
12067 #ifdef __STDC__
12068 # include <limits.h>
12069 #else
12070 # include <assert.h>
12071 #endif
12072                      Syntax error
12073 _ACEOF
12074 if ac_fn_cxx_try_cpp "$LINENO"; then :
12075
12076 else
12077   # Broken: fails on valid input.
12078 continue
12079 fi
12080 rm -f conftest.err conftest.i conftest.$ac_ext
12081
12082   # OK, works on sane cases.  Now check whether nonexistent headers
12083   # can be detected and how.
12084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h.  */
12086 #include <ac_nonexistent.h>
12087 _ACEOF
12088 if ac_fn_cxx_try_cpp "$LINENO"; then :
12089   # Broken: success on invalid input.
12090 continue
12091 else
12092   # Passes both tests.
12093 ac_preproc_ok=:
12094 break
12095 fi
12096 rm -f conftest.err conftest.i conftest.$ac_ext
12097
12098 done
12099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12100 rm -f conftest.i conftest.err conftest.$ac_ext
12101 if $ac_preproc_ok; then :
12102   break
12103 fi
12104
12105     done
12106     ac_cv_prog_CXXCPP=$CXXCPP
12107
12108 fi
12109   CXXCPP=$ac_cv_prog_CXXCPP
12110 else
12111   ac_cv_prog_CXXCPP=$CXXCPP
12112 fi
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12114 $as_echo "$CXXCPP" >&6; }
12115 ac_preproc_ok=false
12116 for ac_cxx_preproc_warn_flag in '' yes
12117 do
12118   # Use a header file that comes with gcc, so configuring glibc
12119   # with a fresh cross-compiler works.
12120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12121   # <limits.h> exists even on freestanding compilers.
12122   # On the NeXT, cc -E runs the code through the compiler's parser,
12123   # not just through cpp. "Syntax error" is here to catch this case.
12124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h.  */
12126 #ifdef __STDC__
12127 # include <limits.h>
12128 #else
12129 # include <assert.h>
12130 #endif
12131                      Syntax error
12132 _ACEOF
12133 if ac_fn_cxx_try_cpp "$LINENO"; then :
12134
12135 else
12136   # Broken: fails on valid input.
12137 continue
12138 fi
12139 rm -f conftest.err conftest.i conftest.$ac_ext
12140
12141   # OK, works on sane cases.  Now check whether nonexistent headers
12142   # can be detected and how.
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145 #include <ac_nonexistent.h>
12146 _ACEOF
12147 if ac_fn_cxx_try_cpp "$LINENO"; then :
12148   # Broken: success on invalid input.
12149 continue
12150 else
12151   # Passes both tests.
12152 ac_preproc_ok=:
12153 break
12154 fi
12155 rm -f conftest.err conftest.i conftest.$ac_ext
12156
12157 done
12158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12159 rm -f conftest.i conftest.err conftest.$ac_ext
12160 if $ac_preproc_ok; then :
12161
12162 else
12163   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12165 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12166 See \`config.log' for more details" "$LINENO" 5; }
12167 fi
12168
12169 ac_ext=c
12170 ac_cpp='$CPP $CPPFLAGS'
12171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12174
12175 else
12176   _lt_caught_CXX_error=yes
12177 fi
12178
12179 ac_ext=cpp
12180 ac_cpp='$CXXCPP $CPPFLAGS'
12181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12184
12185 archive_cmds_need_lc_CXX=no
12186 allow_undefined_flag_CXX=
12187 always_export_symbols_CXX=no
12188 archive_expsym_cmds_CXX=
12189 compiler_needs_object_CXX=no
12190 export_dynamic_flag_spec_CXX=
12191 hardcode_direct_CXX=no
12192 hardcode_direct_absolute_CXX=no
12193 hardcode_libdir_flag_spec_CXX=
12194 hardcode_libdir_flag_spec_ld_CXX=
12195 hardcode_libdir_separator_CXX=
12196 hardcode_minus_L_CXX=no
12197 hardcode_shlibpath_var_CXX=unsupported
12198 hardcode_automatic_CXX=no
12199 inherit_rpath_CXX=no
12200 module_cmds_CXX=
12201 module_expsym_cmds_CXX=
12202 link_all_deplibs_CXX=unknown
12203 old_archive_cmds_CXX=$old_archive_cmds
12204 reload_flag_CXX=$reload_flag
12205 reload_cmds_CXX=$reload_cmds
12206 no_undefined_flag_CXX=
12207 whole_archive_flag_spec_CXX=
12208 enable_shared_with_static_runtimes_CXX=no
12209
12210 # Source file extension for C++ test sources.
12211 ac_ext=cpp
12212
12213 # Object file extension for compiled C++ test sources.
12214 objext=o
12215 objext_CXX=$objext
12216
12217 # No sense in running all these tests if we already determined that
12218 # the CXX compiler isn't working.  Some variables (like enable_shared)
12219 # are currently assumed to apply to all compilers on this platform,
12220 # and will be corrupted by setting them based on a non-working compiler.
12221 if test "$_lt_caught_CXX_error" != yes; then
12222   # Code to be used in simple compile tests
12223   lt_simple_compile_test_code="int some_variable = 0;"
12224
12225   # Code to be used in simple link tests
12226   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12227
12228   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12229
12230
12231
12232
12233
12234
12235 # If no C compiler was specified, use CC.
12236 LTCC=${LTCC-"$CC"}
12237
12238 # If no C compiler flags were specified, use CFLAGS.
12239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12240
12241 # Allow CC to be a program name with arguments.
12242 compiler=$CC
12243
12244
12245   # save warnings/boilerplate of simple test code
12246   ac_outfile=conftest.$ac_objext
12247 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12248 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12249 _lt_compiler_boilerplate=`cat conftest.err`
12250 $RM conftest*
12251
12252   ac_outfile=conftest.$ac_objext
12253 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12254 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12255 _lt_linker_boilerplate=`cat conftest.err`
12256 $RM -r conftest*
12257
12258
12259   # Allow CC to be a program name with arguments.
12260   lt_save_CC=$CC
12261   lt_save_CFLAGS=$CFLAGS
12262   lt_save_LD=$LD
12263   lt_save_GCC=$GCC
12264   GCC=$GXX
12265   lt_save_with_gnu_ld=$with_gnu_ld
12266   lt_save_path_LD=$lt_cv_path_LD
12267   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12268     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12269   else
12270     $as_unset lt_cv_prog_gnu_ld
12271   fi
12272   if test -n "${lt_cv_path_LDCXX+set}"; then
12273     lt_cv_path_LD=$lt_cv_path_LDCXX
12274   else
12275     $as_unset lt_cv_path_LD
12276   fi
12277   test -z "${LDCXX+set}" || LD=$LDCXX
12278   CC=${CXX-"c++"}
12279   CFLAGS=$CXXFLAGS
12280   compiler=$CC
12281   compiler_CXX=$CC
12282   for cc_temp in $compiler""; do
12283   case $cc_temp in
12284     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12285     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12286     \-*) ;;
12287     *) break;;
12288   esac
12289 done
12290 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12291
12292
12293   if test -n "$compiler"; then
12294     # We don't want -fno-exception when compiling C++ code, so set the
12295     # no_builtin_flag separately
12296     if test "$GXX" = yes; then
12297       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12298     else
12299       lt_prog_compiler_no_builtin_flag_CXX=
12300     fi
12301
12302     if test "$GXX" = yes; then
12303       # Set up default GNU C++ configuration
12304
12305
12306
12307 # Check whether --with-gnu-ld was given.
12308 if test "${with_gnu_ld+set}" = set; then :
12309   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12310 else
12311   with_gnu_ld=no
12312 fi
12313
12314 ac_prog=ld
12315 if test "$GCC" = yes; then
12316   # Check if gcc -print-prog-name=ld gives a path.
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12318 $as_echo_n "checking for ld used by $CC... " >&6; }
12319   case $host in
12320   *-*-mingw*)
12321     # gcc leaves a trailing carriage return which upsets mingw
12322     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12323   *)
12324     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12325   esac
12326   case $ac_prog in
12327     # Accept absolute paths.
12328     [\\/]* | ?:[\\/]*)
12329       re_direlt='/[^/][^/]*/\.\./'
12330       # Canonicalize the pathname of ld
12331       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12332       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12333         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12334       done
12335       test -z "$LD" && LD="$ac_prog"
12336       ;;
12337   "")
12338     # If it fails, then pretend we aren't using GCC.
12339     ac_prog=ld
12340     ;;
12341   *)
12342     # If it is relative, then search for the first ld in PATH.
12343     with_gnu_ld=unknown
12344     ;;
12345   esac
12346 elif test "$with_gnu_ld" = yes; then
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12348 $as_echo_n "checking for GNU ld... " >&6; }
12349 else
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12351 $as_echo_n "checking for non-GNU ld... " >&6; }
12352 fi
12353 if ${lt_cv_path_LD+:} false; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356   if test -z "$LD"; then
12357   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12358   for ac_dir in $PATH; do
12359     IFS="$lt_save_ifs"
12360     test -z "$ac_dir" && ac_dir=.
12361     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12362       lt_cv_path_LD="$ac_dir/$ac_prog"
12363       # Check to see if the program is GNU ld.  I'd rather use --version,
12364       # but apparently some variants of GNU ld only accept -v.
12365       # Break only if it was the GNU/non-GNU ld that we prefer.
12366       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12367       *GNU* | *'with BFD'*)
12368         test "$with_gnu_ld" != no && break
12369         ;;
12370       *)
12371         test "$with_gnu_ld" != yes && break
12372         ;;
12373       esac
12374     fi
12375   done
12376   IFS="$lt_save_ifs"
12377 else
12378   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12379 fi
12380 fi
12381
12382 LD="$lt_cv_path_LD"
12383 if test -n "$LD"; then
12384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12385 $as_echo "$LD" >&6; }
12386 else
12387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12389 fi
12390 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12393 if ${lt_cv_prog_gnu_ld+:} false; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12397 case `$LD -v 2>&1 </dev/null` in
12398 *GNU* | *'with BFD'*)
12399   lt_cv_prog_gnu_ld=yes
12400   ;;
12401 *)
12402   lt_cv_prog_gnu_ld=no
12403   ;;
12404 esac
12405 fi
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12407 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12408 with_gnu_ld=$lt_cv_prog_gnu_ld
12409
12410
12411
12412
12413
12414
12415
12416       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12417       # archiving commands below assume that GNU ld is being used.
12418       if test "$with_gnu_ld" = yes; then
12419         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12420         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12421
12422         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12423         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12424
12425         # If archive_cmds runs LD, not CC, wlarc should be empty
12426         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12427         #     investigate it a little bit more. (MM)
12428         wlarc='${wl}'
12429
12430         # ancient GNU ld didn't support --whole-archive et. al.
12431         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12432           $GREP 'no-whole-archive' > /dev/null; then
12433           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12434         else
12435           whole_archive_flag_spec_CXX=
12436         fi
12437       else
12438         with_gnu_ld=no
12439         wlarc=
12440
12441         # A generic and very simple default shared library creation
12442         # command for GNU C++ for the case where it uses the native
12443         # linker, instead of GNU ld.  If possible, this setting should
12444         # overridden to take advantage of the native linker features on
12445         # the platform it is being used on.
12446         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12447       fi
12448
12449       # Commands to make compiler produce verbose output that lists
12450       # what "hidden" libraries, object files and flags are used when
12451       # linking a shared library.
12452       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12453
12454     else
12455       GXX=no
12456       with_gnu_ld=no
12457       wlarc=
12458     fi
12459
12460     # PORTME: fill in a description of your system's C++ link characteristics
12461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12462 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12463     ld_shlibs_CXX=yes
12464     case $host_os in
12465       aix3*)
12466         # FIXME: insert proper C++ library support
12467         ld_shlibs_CXX=no
12468         ;;
12469       aix[4-9]*)
12470         if test "$host_cpu" = ia64; then
12471           # On IA64, the linker does run time linking by default, so we don't
12472           # have to do anything special.
12473           aix_use_runtimelinking=no
12474           exp_sym_flag='-Bexport'
12475           no_entry_flag=""
12476         else
12477           aix_use_runtimelinking=no
12478
12479           # Test if we are trying to use run time linking or normal
12480           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12481           # need to do runtime linking.
12482           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12483             for ld_flag in $LDFLAGS; do
12484               case $ld_flag in
12485               *-brtl*)
12486                 aix_use_runtimelinking=yes
12487                 break
12488                 ;;
12489               esac
12490             done
12491             ;;
12492           esac
12493
12494           exp_sym_flag='-bexport'
12495           no_entry_flag='-bnoentry'
12496         fi
12497
12498         # When large executables or shared objects are built, AIX ld can
12499         # have problems creating the table of contents.  If linking a library
12500         # or program results in "error TOC overflow" add -mminimal-toc to
12501         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12502         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12503
12504         archive_cmds_CXX=''
12505         hardcode_direct_CXX=yes
12506         hardcode_direct_absolute_CXX=yes
12507         hardcode_libdir_separator_CXX=':'
12508         link_all_deplibs_CXX=yes
12509         file_list_spec_CXX='${wl}-f,'
12510
12511         if test "$GXX" = yes; then
12512           case $host_os in aix4.[012]|aix4.[012].*)
12513           # We only want to do this on AIX 4.2 and lower, the check
12514           # below for broken collect2 doesn't work under 4.3+
12515           collect2name=`${CC} -print-prog-name=collect2`
12516           if test -f "$collect2name" &&
12517              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12518           then
12519             # We have reworked collect2
12520             :
12521           else
12522             # We have old collect2
12523             hardcode_direct_CXX=unsupported
12524             # It fails to find uninstalled libraries when the uninstalled
12525             # path is not listed in the libpath.  Setting hardcode_minus_L
12526             # to unsupported forces relinking
12527             hardcode_minus_L_CXX=yes
12528             hardcode_libdir_flag_spec_CXX='-L$libdir'
12529             hardcode_libdir_separator_CXX=
12530           fi
12531           esac
12532           shared_flag='-shared'
12533           if test "$aix_use_runtimelinking" = yes; then
12534             shared_flag="$shared_flag "'${wl}-G'
12535           fi
12536         else
12537           # not using gcc
12538           if test "$host_cpu" = ia64; then
12539           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12540           # chokes on -Wl,-G. The following line is correct:
12541           shared_flag='-G'
12542           else
12543             if test "$aix_use_runtimelinking" = yes; then
12544               shared_flag='${wl}-G'
12545             else
12546               shared_flag='${wl}-bM:SRE'
12547             fi
12548           fi
12549         fi
12550
12551         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12552         # It seems that -bexpall does not export symbols beginning with
12553         # underscore (_), so it is better to generate a list of symbols to
12554         # export.
12555         always_export_symbols_CXX=yes
12556         if test "$aix_use_runtimelinking" = yes; then
12557           # Warning - without using the other runtime loading flags (-brtl),
12558           # -berok will link without error, but may produce a broken library.
12559           allow_undefined_flag_CXX='-berok'
12560           # Determine the default libpath from the value encoded in an empty
12561           # executable.
12562           if test "${lt_cv_aix_libpath+set}" = set; then
12563   aix_libpath=$lt_cv_aix_libpath
12564 else
12565   if ${lt_cv_aix_libpath__CXX+:} false; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h.  */
12570
12571 int
12572 main ()
12573 {
12574
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_cxx_try_link "$LINENO"; then :
12580
12581   lt_aix_libpath_sed='
12582       /Import File Strings/,/^$/ {
12583           /^0/ {
12584               s/^0  *\([^ ]*\) *$/\1/
12585               p
12586           }
12587       }'
12588   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12589   # Check for a 64-bit object if we didn't find anything.
12590   if test -z "$lt_cv_aix_libpath__CXX"; then
12591     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592   fi
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext \
12595     conftest$ac_exeext conftest.$ac_ext
12596   if test -z "$lt_cv_aix_libpath__CXX"; then
12597     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12598   fi
12599
12600 fi
12601
12602   aix_libpath=$lt_cv_aix_libpath__CXX
12603 fi
12604
12605           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12606
12607           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12608         else
12609           if test "$host_cpu" = ia64; then
12610             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12611             allow_undefined_flag_CXX="-z nodefs"
12612             archive_expsym_cmds_CXX="\$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"
12613           else
12614             # Determine the default libpath from the value encoded in an
12615             # empty executable.
12616             if test "${lt_cv_aix_libpath+set}" = set; then
12617   aix_libpath=$lt_cv_aix_libpath
12618 else
12619   if ${lt_cv_aix_libpath__CXX+:} false; then :
12620   $as_echo_n "(cached) " >&6
12621 else
12622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h.  */
12624
12625 int
12626 main ()
12627 {
12628
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_cxx_try_link "$LINENO"; then :
12634
12635   lt_aix_libpath_sed='
12636       /Import File Strings/,/^$/ {
12637           /^0/ {
12638               s/^0  *\([^ ]*\) *$/\1/
12639               p
12640           }
12641       }'
12642   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12643   # Check for a 64-bit object if we didn't find anything.
12644   if test -z "$lt_cv_aix_libpath__CXX"; then
12645     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646   fi
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext \
12649     conftest$ac_exeext conftest.$ac_ext
12650   if test -z "$lt_cv_aix_libpath__CXX"; then
12651     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12652   fi
12653
12654 fi
12655
12656   aix_libpath=$lt_cv_aix_libpath__CXX
12657 fi
12658
12659             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12660             # Warning - without using the other run time loading flags,
12661             # -berok will link without error, but may produce a broken library.
12662             no_undefined_flag_CXX=' ${wl}-bernotok'
12663             allow_undefined_flag_CXX=' ${wl}-berok'
12664             if test "$with_gnu_ld" = yes; then
12665               # We only use this code for GNU lds that support --whole-archive.
12666               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12667             else
12668               # Exported symbols can be pulled into shared objects from archives
12669               whole_archive_flag_spec_CXX='$convenience'
12670             fi
12671             archive_cmds_need_lc_CXX=yes
12672             # This is similar to how AIX traditionally builds its shared
12673             # libraries.
12674             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12675           fi
12676         fi
12677         ;;
12678
12679       beos*)
12680         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12681           allow_undefined_flag_CXX=unsupported
12682           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12683           # support --undefined.  This deserves some investigation.  FIXME
12684           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12685         else
12686           ld_shlibs_CXX=no
12687         fi
12688         ;;
12689
12690       chorus*)
12691         case $cc_basename in
12692           *)
12693           # FIXME: insert proper C++ library support
12694           ld_shlibs_CXX=no
12695           ;;
12696         esac
12697         ;;
12698
12699       cygwin* | mingw* | pw32* | cegcc*)
12700         case $GXX,$cc_basename in
12701         ,cl* | no,cl*)
12702           # Native MSVC
12703           # hardcode_libdir_flag_spec is actually meaningless, as there is
12704           # no search path for DLLs.
12705           hardcode_libdir_flag_spec_CXX=' '
12706           allow_undefined_flag_CXX=unsupported
12707           always_export_symbols_CXX=yes
12708           file_list_spec_CXX='@'
12709           # Tell ltmain to make .lib files, not .a files.
12710           libext=lib
12711           # Tell ltmain to make .dll files, not .so files.
12712           shrext_cmds=".dll"
12713           # FIXME: Setting linknames here is a bad hack.
12714           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12715           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12716               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12717             else
12718               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12719             fi~
12720             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12721             linknames='
12722           # The linker will not automatically build a static lib if we build a DLL.
12723           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12724           enable_shared_with_static_runtimes_CXX=yes
12725           # Don't use ranlib
12726           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12727           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12728             lt_tool_outputfile="@TOOL_OUTPUT@"~
12729             case $lt_outputfile in
12730               *.exe|*.EXE) ;;
12731               *)
12732                 lt_outputfile="$lt_outputfile.exe"
12733                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12734                 ;;
12735             esac~
12736             func_to_tool_file "$lt_outputfile"~
12737             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12738               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12739               $RM "$lt_outputfile.manifest";
12740             fi'
12741           ;;
12742         *)
12743           # g++
12744           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12745           # as there is no search path for DLLs.
12746           hardcode_libdir_flag_spec_CXX='-L$libdir'
12747           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12748           allow_undefined_flag_CXX=unsupported
12749           always_export_symbols_CXX=no
12750           enable_shared_with_static_runtimes_CXX=yes
12751
12752           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12753             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12754             # If the export-symbols file already is a .def file (1st line
12755             # is EXPORTS), use it as is; otherwise, prepend...
12756             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12757               cp $export_symbols $output_objdir/$soname.def;
12758             else
12759               echo EXPORTS > $output_objdir/$soname.def;
12760               cat $export_symbols >> $output_objdir/$soname.def;
12761             fi~
12762             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12763           else
12764             ld_shlibs_CXX=no
12765           fi
12766           ;;
12767         esac
12768         ;;
12769       darwin* | rhapsody*)
12770
12771
12772   archive_cmds_need_lc_CXX=no
12773   hardcode_direct_CXX=no
12774   hardcode_automatic_CXX=yes
12775   hardcode_shlibpath_var_CXX=unsupported
12776   if test "$lt_cv_ld_force_load" = "yes"; then
12777     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12778   else
12779     whole_archive_flag_spec_CXX=''
12780   fi
12781   link_all_deplibs_CXX=yes
12782   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12783   case $cc_basename in
12784      ifort*) _lt_dar_can_shared=yes ;;
12785      *) _lt_dar_can_shared=$GCC ;;
12786   esac
12787   if test "$_lt_dar_can_shared" = "yes"; then
12788     output_verbose_link_cmd=func_echo_all
12789     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12790     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12791     archive_expsym_cmds_CXX="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}"
12792     module_expsym_cmds_CXX="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}"
12793        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12794       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12795       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12796     fi
12797
12798   else
12799   ld_shlibs_CXX=no
12800   fi
12801
12802         ;;
12803
12804       dgux*)
12805         case $cc_basename in
12806           ec++*)
12807             # FIXME: insert proper C++ library support
12808             ld_shlibs_CXX=no
12809             ;;
12810           ghcx*)
12811             # Green Hills C++ Compiler
12812             # FIXME: insert proper C++ library support
12813             ld_shlibs_CXX=no
12814             ;;
12815           *)
12816             # FIXME: insert proper C++ library support
12817             ld_shlibs_CXX=no
12818             ;;
12819         esac
12820         ;;
12821
12822       freebsd[12]*)
12823         # C++ shared libraries reported to be fairly broken before
12824         # switch to ELF
12825         ld_shlibs_CXX=no
12826         ;;
12827
12828       freebsd-elf*)
12829         archive_cmds_need_lc_CXX=no
12830         ;;
12831
12832       freebsd* | dragonfly*)
12833         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12834         # conventions
12835         ld_shlibs_CXX=yes
12836         ;;
12837
12838       gnu*)
12839         ;;
12840
12841       haiku*)
12842         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12843         link_all_deplibs_CXX=yes
12844         ;;
12845
12846       hpux9*)
12847         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12848         hardcode_libdir_separator_CXX=:
12849         export_dynamic_flag_spec_CXX='${wl}-E'
12850         hardcode_direct_CXX=yes
12851         hardcode_minus_L_CXX=yes # Not in the search PATH,
12852                                              # but as the default
12853                                              # location of the library.
12854
12855         case $cc_basename in
12856           CC*)
12857             # FIXME: insert proper C++ library support
12858             ld_shlibs_CXX=no
12859             ;;
12860           aCC*)
12861             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12862             # Commands to make compiler produce verbose output that lists
12863             # what "hidden" libraries, object files and flags are used when
12864             # linking a shared library.
12865             #
12866             # There doesn't appear to be a way to prevent this compiler from
12867             # explicitly linking system object files so we need to strip them
12868             # from the output so that they don't get included in the library
12869             # dependencies.
12870             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12871             ;;
12872           *)
12873             if test "$GXX" = yes; then
12874               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12875             else
12876               # FIXME: insert proper C++ library support
12877               ld_shlibs_CXX=no
12878             fi
12879             ;;
12880         esac
12881         ;;
12882
12883       hpux10*|hpux11*)
12884         if test $with_gnu_ld = no; then
12885           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12886           hardcode_libdir_separator_CXX=:
12887
12888           case $host_cpu in
12889             hppa*64*|ia64*)
12890               ;;
12891             *)
12892               export_dynamic_flag_spec_CXX='${wl}-E'
12893               ;;
12894           esac
12895         fi
12896         case $host_cpu in
12897           hppa*64*|ia64*)
12898             hardcode_direct_CXX=no
12899             hardcode_shlibpath_var_CXX=no
12900             ;;
12901           *)
12902             hardcode_direct_CXX=yes
12903             hardcode_direct_absolute_CXX=yes
12904             hardcode_minus_L_CXX=yes # Not in the search PATH,
12905                                                  # but as the default
12906                                                  # location of the library.
12907             ;;
12908         esac
12909
12910         case $cc_basename in
12911           CC*)
12912             # FIXME: insert proper C++ library support
12913             ld_shlibs_CXX=no
12914             ;;
12915           aCC*)
12916             case $host_cpu in
12917               hppa*64*)
12918                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12919                 ;;
12920               ia64*)
12921                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12922                 ;;
12923               *)
12924                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12925                 ;;
12926             esac
12927             # Commands to make compiler produce verbose output that lists
12928             # what "hidden" libraries, object files and flags are used when
12929             # linking a shared library.
12930             #
12931             # There doesn't appear to be a way to prevent this compiler from
12932             # explicitly linking system object files so we need to strip them
12933             # from the output so that they don't get included in the library
12934             # dependencies.
12935             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12936             ;;
12937           *)
12938             if test "$GXX" = yes; then
12939               if test $with_gnu_ld = no; then
12940                 case $host_cpu in
12941                   hppa*64*)
12942                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12943                     ;;
12944                   ia64*)
12945                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12946                     ;;
12947                   *)
12948                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12949                     ;;
12950                 esac
12951               fi
12952             else
12953               # FIXME: insert proper C++ library support
12954               ld_shlibs_CXX=no
12955             fi
12956             ;;
12957         esac
12958         ;;
12959
12960       interix[3-9]*)
12961         hardcode_direct_CXX=no
12962         hardcode_shlibpath_var_CXX=no
12963         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12964         export_dynamic_flag_spec_CXX='${wl}-E'
12965         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12966         # Instead, shared libraries are loaded at an image base (0x10000000 by
12967         # default) and relocated if they conflict, which is a slow very memory
12968         # consuming and fragmenting process.  To avoid this, we pick a random,
12969         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12970         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12971         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12972         archive_expsym_cmds_CXX='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'
12973         ;;
12974       irix5* | irix6*)
12975         case $cc_basename in
12976           CC*)
12977             # SGI C++
12978             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12979
12980             # Archives containing C++ object files must be created using
12981             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12982             # necessary to make sure instantiated templates are included
12983             # in the archive.
12984             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12985             ;;
12986           *)
12987             if test "$GXX" = yes; then
12988               if test "$with_gnu_ld" = no; then
12989                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12990               else
12991                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12992               fi
12993             fi
12994             link_all_deplibs_CXX=yes
12995             ;;
12996         esac
12997         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12998         hardcode_libdir_separator_CXX=:
12999         inherit_rpath_CXX=yes
13000         ;;
13001
13002       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13003         case $cc_basename in
13004           KCC*)
13005             # Kuck and Associates, Inc. (KAI) C++ Compiler
13006
13007             # KCC will only create a shared library if the output file
13008             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13009             # to its proper name (with version) after linking.
13010             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13011             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13012             # Commands to make compiler produce verbose output that lists
13013             # what "hidden" libraries, object files and flags are used when
13014             # linking a shared library.
13015             #
13016             # There doesn't appear to be a way to prevent this compiler from
13017             # explicitly linking system object files so we need to strip them
13018             # from the output so that they don't get included in the library
13019             # dependencies.
13020             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13021
13022             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13023             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13024
13025             # Archives containing C++ object files must be created using
13026             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13027             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13028             ;;
13029           icpc* | ecpc* )
13030             # Intel C++
13031             with_gnu_ld=yes
13032             # version 8.0 and above of icpc choke on multiply defined symbols
13033             # if we add $predep_objects and $postdep_objects, however 7.1 and
13034             # earlier do not add the objects themselves.
13035             case `$CC -V 2>&1` in
13036               *"Version 7."*)
13037                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13038                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13039                 ;;
13040               *)  # Version 8.0 or newer
13041                 tmp_idyn=
13042                 case $host_cpu in
13043                   ia64*) tmp_idyn=' -i_dynamic';;
13044                 esac
13045                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13046                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13047                 ;;
13048             esac
13049             archive_cmds_need_lc_CXX=no
13050             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13051             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13052             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13053             ;;
13054           pgCC* | pgcpp*)
13055             # Portland Group C++ compiler
13056             case `$CC -V` in
13057             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13058               prelink_cmds_CXX='tpldir=Template.dir~
13059                 rm -rf $tpldir~
13060                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13061                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13062               old_archive_cmds_CXX='tpldir=Template.dir~
13063                 rm -rf $tpldir~
13064                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13065                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13066                 $RANLIB $oldlib'
13067               archive_cmds_CXX='tpldir=Template.dir~
13068                 rm -rf $tpldir~
13069                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13070                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13071               archive_expsym_cmds_CXX='tpldir=Template.dir~
13072                 rm -rf $tpldir~
13073                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13074                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13075               ;;
13076             *) # Version 6 and above use weak symbols
13077               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13078               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13079               ;;
13080             esac
13081
13082             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13083             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13084             whole_archive_flag_spec_CXX='${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'
13085             ;;
13086           cxx*)
13087             # Compaq C++
13088             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13089             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13090
13091             runpath_var=LD_RUN_PATH
13092             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13093             hardcode_libdir_separator_CXX=:
13094
13095             # Commands to make compiler produce verbose output that lists
13096             # what "hidden" libraries, object files and flags are used when
13097             # linking a shared library.
13098             #
13099             # There doesn't appear to be a way to prevent this compiler from
13100             # explicitly linking system object files so we need to strip them
13101             # from the output so that they don't get included in the library
13102             # dependencies.
13103             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13104             ;;
13105           xl* | mpixl* | bgxl*)
13106             # IBM XL 8.0 on PPC, with GNU ld
13107             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13108             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13109             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110             if test "x$supports_anon_versioning" = xyes; then
13111               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13112                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13113                 echo "local: *; };" >> $output_objdir/$libname.ver~
13114                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13115             fi
13116             ;;
13117           *)
13118             case `$CC -V 2>&1 | sed 5q` in
13119             *Sun\ C*)
13120               # Sun C++ 5.9
13121               no_undefined_flag_CXX=' -zdefs'
13122               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13123               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13124               hardcode_libdir_flag_spec_CXX='-R$libdir'
13125               whole_archive_flag_spec_CXX='${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'
13126               compiler_needs_object_CXX=yes
13127
13128               # Not sure whether something based on
13129               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13130               # would be better.
13131               output_verbose_link_cmd='func_echo_all'
13132
13133               # Archives containing C++ object files must be created using
13134               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13135               # necessary to make sure instantiated templates are included
13136               # in the archive.
13137               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13138               ;;
13139             esac
13140             ;;
13141         esac
13142         ;;
13143
13144       lynxos*)
13145         # FIXME: insert proper C++ library support
13146         ld_shlibs_CXX=no
13147         ;;
13148
13149       m88k*)
13150         # FIXME: insert proper C++ library support
13151         ld_shlibs_CXX=no
13152         ;;
13153
13154       mvs*)
13155         case $cc_basename in
13156           cxx*)
13157             # FIXME: insert proper C++ library support
13158             ld_shlibs_CXX=no
13159             ;;
13160           *)
13161             # FIXME: insert proper C++ library support
13162             ld_shlibs_CXX=no
13163             ;;
13164         esac
13165         ;;
13166
13167       netbsd*)
13168         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13169           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13170           wlarc=
13171           hardcode_libdir_flag_spec_CXX='-R$libdir'
13172           hardcode_direct_CXX=yes
13173           hardcode_shlibpath_var_CXX=no
13174         fi
13175         # Workaround some broken pre-1.5 toolchains
13176         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13177         ;;
13178
13179       *nto* | *qnx*)
13180         ld_shlibs_CXX=yes
13181         ;;
13182
13183       openbsd2*)
13184         # C++ shared libraries are fairly broken
13185         ld_shlibs_CXX=no
13186         ;;
13187
13188       openbsd*)
13189         if test -f /usr/libexec/ld.so; then
13190           hardcode_direct_CXX=yes
13191           hardcode_shlibpath_var_CXX=no
13192           hardcode_direct_absolute_CXX=yes
13193           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13194           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13195           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13196             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13197             export_dynamic_flag_spec_CXX='${wl}-E'
13198             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13199           fi
13200           output_verbose_link_cmd=func_echo_all
13201         else
13202           ld_shlibs_CXX=no
13203         fi
13204         ;;
13205
13206       osf3* | osf4* | osf5*)
13207         case $cc_basename in
13208           KCC*)
13209             # Kuck and Associates, Inc. (KAI) C++ Compiler
13210
13211             # KCC will only create a shared library if the output file
13212             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13213             # to its proper name (with version) after linking.
13214             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13215
13216             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13217             hardcode_libdir_separator_CXX=:
13218
13219             # Archives containing C++ object files must be created using
13220             # the KAI C++ compiler.
13221             case $host in
13222               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13223               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13224             esac
13225             ;;
13226           RCC*)
13227             # Rational C++ 2.4.1
13228             # FIXME: insert proper C++ library support
13229             ld_shlibs_CXX=no
13230             ;;
13231           cxx*)
13232             case $host in
13233               osf3*)
13234                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13235                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13236                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13237                 ;;
13238               *)
13239                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13240                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13241                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13242                   echo "-hidden">> $lib.exp~
13243                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13244                   $RM $lib.exp'
13245                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13246                 ;;
13247             esac
13248
13249             hardcode_libdir_separator_CXX=:
13250
13251             # Commands to make compiler produce verbose output that lists
13252             # what "hidden" libraries, object files and flags are used when
13253             # linking a shared library.
13254             #
13255             # There doesn't appear to be a way to prevent this compiler from
13256             # explicitly linking system object files so we need to strip them
13257             # from the output so that they don't get included in the library
13258             # dependencies.
13259             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13260             ;;
13261           *)
13262             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13263               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13264               case $host in
13265                 osf3*)
13266                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13267                   ;;
13268                 *)
13269                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13270                   ;;
13271               esac
13272
13273               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13274               hardcode_libdir_separator_CXX=:
13275
13276               # Commands to make compiler produce verbose output that lists
13277               # what "hidden" libraries, object files and flags are used when
13278               # linking a shared library.
13279               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13280
13281             else
13282               # FIXME: insert proper C++ library support
13283               ld_shlibs_CXX=no
13284             fi
13285             ;;
13286         esac
13287         ;;
13288
13289       psos*)
13290         # FIXME: insert proper C++ library support
13291         ld_shlibs_CXX=no
13292         ;;
13293
13294       sunos4*)
13295         case $cc_basename in
13296           CC*)
13297             # Sun C++ 4.x
13298             # FIXME: insert proper C++ library support
13299             ld_shlibs_CXX=no
13300             ;;
13301           lcc*)
13302             # Lucid
13303             # FIXME: insert proper C++ library support
13304             ld_shlibs_CXX=no
13305             ;;
13306           *)
13307             # FIXME: insert proper C++ library support
13308             ld_shlibs_CXX=no
13309             ;;
13310         esac
13311         ;;
13312
13313       solaris*)
13314         case $cc_basename in
13315           CC* | sunCC*)
13316             # Sun C++ 4.2, 5.x and Centerline C++
13317             archive_cmds_need_lc_CXX=yes
13318             no_undefined_flag_CXX=' -zdefs'
13319             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13320             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13321               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13322
13323             hardcode_libdir_flag_spec_CXX='-R$libdir'
13324             hardcode_shlibpath_var_CXX=no
13325             case $host_os in
13326               solaris2.[0-5] | solaris2.[0-5].*) ;;
13327               *)
13328                 # The compiler driver will combine and reorder linker options,
13329                 # but understands `-z linker_flag'.
13330                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13331                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13332                 ;;
13333             esac
13334             link_all_deplibs_CXX=yes
13335
13336             output_verbose_link_cmd='func_echo_all'
13337
13338             # Archives containing C++ object files must be created using
13339             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13340             # necessary to make sure instantiated templates are included
13341             # in the archive.
13342             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13343             ;;
13344           gcx*)
13345             # Green Hills C++ Compiler
13346             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13347
13348             # The C++ compiler must be used to create the archive.
13349             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13350             ;;
13351           *)
13352             # GNU C++ compiler with Solaris linker
13353             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13354               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13355               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13356                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13357                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13358                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13359
13360                 # Commands to make compiler produce verbose output that lists
13361                 # what "hidden" libraries, object files and flags are used when
13362                 # linking a shared library.
13363                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13364               else
13365                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13366                 # platform.
13367                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13368                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13369                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13370
13371                 # Commands to make compiler produce verbose output that lists
13372                 # what "hidden" libraries, object files and flags are used when
13373                 # linking a shared library.
13374                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13375               fi
13376
13377               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13378               case $host_os in
13379                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13380                 *)
13381                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13382                   ;;
13383               esac
13384             fi
13385             ;;
13386         esac
13387         ;;
13388
13389     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13390       no_undefined_flag_CXX='${wl}-z,text'
13391       archive_cmds_need_lc_CXX=no
13392       hardcode_shlibpath_var_CXX=no
13393       runpath_var='LD_RUN_PATH'
13394
13395       case $cc_basename in
13396         CC*)
13397           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13398           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13399           ;;
13400         *)
13401           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13402           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13403           ;;
13404       esac
13405       ;;
13406
13407       sysv5* | sco3.2v5* | sco5v6*)
13408         # Note: We can NOT use -z defs as we might desire, because we do not
13409         # link with -lc, and that would cause any symbols used from libc to
13410         # always be unresolved, which means just about no library would
13411         # ever link correctly.  If we're not using GNU ld we use -z text
13412         # though, which does catch some bad symbols but isn't as heavy-handed
13413         # as -z defs.
13414         no_undefined_flag_CXX='${wl}-z,text'
13415         allow_undefined_flag_CXX='${wl}-z,nodefs'
13416         archive_cmds_need_lc_CXX=no
13417         hardcode_shlibpath_var_CXX=no
13418         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13419         hardcode_libdir_separator_CXX=':'
13420         link_all_deplibs_CXX=yes
13421         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13422         runpath_var='LD_RUN_PATH'
13423
13424         case $cc_basename in
13425           CC*)
13426             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13427             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13428             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13429               '"$old_archive_cmds_CXX"
13430             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13431               '"$reload_cmds_CXX"
13432             ;;
13433           *)
13434             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13435             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13436             ;;
13437         esac
13438       ;;
13439
13440       tandem*)
13441         case $cc_basename in
13442           NCC*)
13443             # NonStop-UX NCC 3.20
13444             # FIXME: insert proper C++ library support
13445             ld_shlibs_CXX=no
13446             ;;
13447           *)
13448             # FIXME: insert proper C++ library support
13449             ld_shlibs_CXX=no
13450             ;;
13451         esac
13452         ;;
13453
13454       vxworks*)
13455         # FIXME: insert proper C++ library support
13456         ld_shlibs_CXX=no
13457         ;;
13458
13459       *)
13460         # FIXME: insert proper C++ library support
13461         ld_shlibs_CXX=no
13462         ;;
13463     esac
13464
13465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13466 $as_echo "$ld_shlibs_CXX" >&6; }
13467     test "$ld_shlibs_CXX" = no && can_build_shared=no
13468
13469     GCC_CXX="$GXX"
13470     LD_CXX="$LD"
13471
13472     ## CAVEAT EMPTOR:
13473     ## There is no encapsulation within the following macros, do not change
13474     ## the running order or otherwise move them around unless you know exactly
13475     ## what you are doing...
13476     # Dependencies to place before and after the object being linked:
13477 predep_objects_CXX=
13478 postdep_objects_CXX=
13479 predeps_CXX=
13480 postdeps_CXX=
13481 compiler_lib_search_path_CXX=
13482
13483 cat > conftest.$ac_ext <<_LT_EOF
13484 class Foo
13485 {
13486 public:
13487   Foo (void) { a = 0; }
13488 private:
13489   int a;
13490 };
13491 _LT_EOF
13492
13493
13494 _lt_libdeps_save_CFLAGS=$CFLAGS
13495 case "$CC $CFLAGS " in #(
13496 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13497 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13498 esac
13499
13500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13501   (eval $ac_compile) 2>&5
13502   ac_status=$?
13503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13504   test $ac_status = 0; }; then
13505   # Parse the compiler output and extract the necessary
13506   # objects, libraries and library flags.
13507
13508   # Sentinel used to keep track of whether or not we are before
13509   # the conftest object file.
13510   pre_test_object_deps_done=no
13511
13512   for p in `eval "$output_verbose_link_cmd"`; do
13513     case ${prev}${p} in
13514
13515     -L* | -R* | -l*)
13516        # Some compilers place space between "-{L,R}" and the path.
13517        # Remove the space.
13518        if test $p = "-L" ||
13519           test $p = "-R"; then
13520          prev=$p
13521          continue
13522        fi
13523
13524        # Expand the sysroot to ease extracting the directories later.
13525        if test -z "$prev"; then
13526          case $p in
13527          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13528          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13529          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13530          esac
13531        fi
13532        case $p in
13533        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13534        esac
13535        if test "$pre_test_object_deps_done" = no; then
13536          case ${prev} in
13537          -L | -R)
13538            # Internal compiler library paths should come after those
13539            # provided the user.  The postdeps already come after the
13540            # user supplied libs so there is no need to process them.
13541            if test -z "$compiler_lib_search_path_CXX"; then
13542              compiler_lib_search_path_CXX="${prev}${p}"
13543            else
13544              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13545            fi
13546            ;;
13547          # The "-l" case would never come before the object being
13548          # linked, so don't bother handling this case.
13549          esac
13550        else
13551          if test -z "$postdeps_CXX"; then
13552            postdeps_CXX="${prev}${p}"
13553          else
13554            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13555          fi
13556        fi
13557        prev=
13558        ;;
13559
13560     *.lto.$objext) ;; # Ignore GCC LTO objects
13561     *.$objext)
13562        # This assumes that the test object file only shows up
13563        # once in the compiler output.
13564        if test "$p" = "conftest.$objext"; then
13565          pre_test_object_deps_done=yes
13566          continue
13567        fi
13568
13569        if test "$pre_test_object_deps_done" = no; then
13570          if test -z "$predep_objects_CXX"; then
13571            predep_objects_CXX="$p"
13572          else
13573            predep_objects_CXX="$predep_objects_CXX $p"
13574          fi
13575        else
13576          if test -z "$postdep_objects_CXX"; then
13577            postdep_objects_CXX="$p"
13578          else
13579            postdep_objects_CXX="$postdep_objects_CXX $p"
13580          fi
13581        fi
13582        ;;
13583
13584     *) ;; # Ignore the rest.
13585
13586     esac
13587   done
13588
13589   # Clean up.
13590   rm -f a.out a.exe
13591 else
13592   echo "libtool.m4: error: problem compiling CXX test program"
13593 fi
13594
13595 $RM -f confest.$objext
13596 CFLAGS=$_lt_libdeps_save_CFLAGS
13597
13598 # PORTME: override above test on systems where it is broken
13599 case $host_os in
13600 interix[3-9]*)
13601   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13602   # hack all around it, let's just trust "g++" to DTRT.
13603   predep_objects_CXX=
13604   postdep_objects_CXX=
13605   postdeps_CXX=
13606   ;;
13607
13608 linux*)
13609   case `$CC -V 2>&1 | sed 5q` in
13610   *Sun\ C*)
13611     # Sun C++ 5.9
13612
13613     # The more standards-conforming stlport4 library is
13614     # incompatible with the Cstd library. Avoid specifying
13615     # it if it's in CXXFLAGS. Ignore libCrun as
13616     # -library=stlport4 depends on it.
13617     case " $CXX $CXXFLAGS " in
13618     *" -library=stlport4 "*)
13619       solaris_use_stlport4=yes
13620       ;;
13621     esac
13622
13623     if test "$solaris_use_stlport4" != yes; then
13624       postdeps_CXX='-library=Cstd -library=Crun'
13625     fi
13626     ;;
13627   esac
13628   ;;
13629
13630 solaris*)
13631   case $cc_basename in
13632   CC* | sunCC*)
13633     # The more standards-conforming stlport4 library is
13634     # incompatible with the Cstd library. Avoid specifying
13635     # it if it's in CXXFLAGS. Ignore libCrun as
13636     # -library=stlport4 depends on it.
13637     case " $CXX $CXXFLAGS " in
13638     *" -library=stlport4 "*)
13639       solaris_use_stlport4=yes
13640       ;;
13641     esac
13642
13643     # Adding this requires a known-good setup of shared libraries for
13644     # Sun compiler versions before 5.6, else PIC objects from an old
13645     # archive will be linked into the output, leading to subtle bugs.
13646     if test "$solaris_use_stlport4" != yes; then
13647       postdeps_CXX='-library=Cstd -library=Crun'
13648     fi
13649     ;;
13650   esac
13651   ;;
13652 esac
13653
13654
13655 case " $postdeps_CXX " in
13656 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13657 esac
13658  compiler_lib_search_dirs_CXX=
13659 if test -n "${compiler_lib_search_path_CXX}"; then
13660  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13661 fi
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693     lt_prog_compiler_wl_CXX=
13694 lt_prog_compiler_pic_CXX=
13695 lt_prog_compiler_static_CXX=
13696
13697
13698   # C++ specific cases for pic, static, wl, etc.
13699   if test "$GXX" = yes; then
13700     lt_prog_compiler_wl_CXX='-Wl,'
13701     lt_prog_compiler_static_CXX='-static'
13702
13703     case $host_os in
13704     aix*)
13705       # All AIX code is PIC.
13706       if test "$host_cpu" = ia64; then
13707         # AIX 5 now supports IA64 processor
13708         lt_prog_compiler_static_CXX='-Bstatic'
13709       fi
13710       ;;
13711
13712     amigaos*)
13713       case $host_cpu in
13714       powerpc)
13715             # see comment about AmigaOS4 .so support
13716             lt_prog_compiler_pic_CXX='-fPIC'
13717         ;;
13718       m68k)
13719             # FIXME: we need at least 68020 code to build shared libraries, but
13720             # adding the `-m68020' flag to GCC prevents building anything better,
13721             # like `-m68040'.
13722             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13723         ;;
13724       esac
13725       ;;
13726
13727     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13728       # PIC is the default for these OSes.
13729       ;;
13730     mingw* | cygwin* | os2* | pw32* | cegcc*)
13731       # This hack is so that the source file can tell whether it is being
13732       # built for inclusion in a dll (and should export symbols for example).
13733       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13734       # (--disable-auto-import) libraries
13735       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13736       ;;
13737     darwin* | rhapsody*)
13738       # PIC is the default on this platform
13739       # Common symbols not allowed in MH_DYLIB files
13740       lt_prog_compiler_pic_CXX='-fno-common'
13741       ;;
13742     *djgpp*)
13743       # DJGPP does not support shared libraries at all
13744       lt_prog_compiler_pic_CXX=
13745       ;;
13746     haiku*)
13747       # PIC is the default for Haiku.
13748       # The "-static" flag exists, but is broken.
13749       lt_prog_compiler_static_CXX=
13750       ;;
13751     interix[3-9]*)
13752       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13753       # Instead, we relocate shared libraries at runtime.
13754       ;;
13755     sysv4*MP*)
13756       if test -d /usr/nec; then
13757         lt_prog_compiler_pic_CXX=-Kconform_pic
13758       fi
13759       ;;
13760     hpux*)
13761       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13762       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13763       # sets the default TLS model and affects inlining.
13764       case $host_cpu in
13765       hppa*64*)
13766         ;;
13767       *)
13768         lt_prog_compiler_pic_CXX='-fPIC'
13769         ;;
13770       esac
13771       ;;
13772     *qnx* | *nto*)
13773       # QNX uses GNU C++, but need to define -shared option too, otherwise
13774       # it will coredump.
13775       lt_prog_compiler_pic_CXX='-fPIC -shared'
13776       ;;
13777     *)
13778       lt_prog_compiler_pic_CXX='-fPIC'
13779       ;;
13780     esac
13781   else
13782     case $host_os in
13783       aix[4-9]*)
13784         # All AIX code is PIC.
13785         if test "$host_cpu" = ia64; then
13786           # AIX 5 now supports IA64 processor
13787           lt_prog_compiler_static_CXX='-Bstatic'
13788         else
13789           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13790         fi
13791         ;;
13792       chorus*)
13793         case $cc_basename in
13794         cxch68*)
13795           # Green Hills C++ Compiler
13796           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13797           ;;
13798         esac
13799         ;;
13800       mingw* | cygwin* | os2* | pw32* | cegcc*)
13801         # This hack is so that the source file can tell whether it is being
13802         # built for inclusion in a dll (and should export symbols for example).
13803         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13804         ;;
13805       dgux*)
13806         case $cc_basename in
13807           ec++*)
13808             lt_prog_compiler_pic_CXX='-KPIC'
13809             ;;
13810           ghcx*)
13811             # Green Hills C++ Compiler
13812             lt_prog_compiler_pic_CXX='-pic'
13813             ;;
13814           *)
13815             ;;
13816         esac
13817         ;;
13818       freebsd* | dragonfly*)
13819         # FreeBSD uses GNU C++
13820         ;;
13821       hpux9* | hpux10* | hpux11*)
13822         case $cc_basename in
13823           CC*)
13824             lt_prog_compiler_wl_CXX='-Wl,'
13825             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13826             if test "$host_cpu" != ia64; then
13827               lt_prog_compiler_pic_CXX='+Z'
13828             fi
13829             ;;
13830           aCC*)
13831             lt_prog_compiler_wl_CXX='-Wl,'
13832             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13833             case $host_cpu in
13834             hppa*64*|ia64*)
13835               # +Z the default
13836               ;;
13837             *)
13838               lt_prog_compiler_pic_CXX='+Z'
13839               ;;
13840             esac
13841             ;;
13842           *)
13843             ;;
13844         esac
13845         ;;
13846       interix*)
13847         # This is c89, which is MS Visual C++ (no shared libs)
13848         # Anyone wants to do a port?
13849         ;;
13850       irix5* | irix6* | nonstopux*)
13851         case $cc_basename in
13852           CC*)
13853             lt_prog_compiler_wl_CXX='-Wl,'
13854             lt_prog_compiler_static_CXX='-non_shared'
13855             # CC pic flag -KPIC is the default.
13856             ;;
13857           *)
13858             ;;
13859         esac
13860         ;;
13861       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13862         case $cc_basename in
13863           KCC*)
13864             # KAI C++ Compiler
13865             lt_prog_compiler_wl_CXX='--backend -Wl,'
13866             lt_prog_compiler_pic_CXX='-fPIC'
13867             ;;
13868           ecpc* )
13869             # old Intel C++ for x86_64 which still supported -KPIC.
13870             lt_prog_compiler_wl_CXX='-Wl,'
13871             lt_prog_compiler_pic_CXX='-KPIC'
13872             lt_prog_compiler_static_CXX='-static'
13873             ;;
13874           icpc* )
13875             # Intel C++, used to be incompatible with GCC.
13876             # ICC 10 doesn't accept -KPIC any more.
13877             lt_prog_compiler_wl_CXX='-Wl,'
13878             lt_prog_compiler_pic_CXX='-fPIC'
13879             lt_prog_compiler_static_CXX='-static'
13880             ;;
13881           pgCC* | pgcpp*)
13882             # Portland Group C++ compiler
13883             lt_prog_compiler_wl_CXX='-Wl,'
13884             lt_prog_compiler_pic_CXX='-fpic'
13885             lt_prog_compiler_static_CXX='-Bstatic'
13886             ;;
13887           cxx*)
13888             # Compaq C++
13889             # Make sure the PIC flag is empty.  It appears that all Alpha
13890             # Linux and Compaq Tru64 Unix objects are PIC.
13891             lt_prog_compiler_pic_CXX=
13892             lt_prog_compiler_static_CXX='-non_shared'
13893             ;;
13894           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13895             # IBM XL 8.0, 9.0 on PPC and BlueGene
13896             lt_prog_compiler_wl_CXX='-Wl,'
13897             lt_prog_compiler_pic_CXX='-qpic'
13898             lt_prog_compiler_static_CXX='-qstaticlink'
13899             ;;
13900           *)
13901             case `$CC -V 2>&1 | sed 5q` in
13902             *Sun\ C*)
13903               # Sun C++ 5.9
13904               lt_prog_compiler_pic_CXX='-KPIC'
13905               lt_prog_compiler_static_CXX='-Bstatic'
13906               lt_prog_compiler_wl_CXX='-Qoption ld '
13907               ;;
13908             esac
13909             ;;
13910         esac
13911         ;;
13912       lynxos*)
13913         ;;
13914       m88k*)
13915         ;;
13916       mvs*)
13917         case $cc_basename in
13918           cxx*)
13919             lt_prog_compiler_pic_CXX='-W c,exportall'
13920             ;;
13921           *)
13922             ;;
13923         esac
13924         ;;
13925       netbsd*)
13926         ;;
13927       *qnx* | *nto*)
13928         # QNX uses GNU C++, but need to define -shared option too, otherwise
13929         # it will coredump.
13930         lt_prog_compiler_pic_CXX='-fPIC -shared'
13931         ;;
13932       osf3* | osf4* | osf5*)
13933         case $cc_basename in
13934           KCC*)
13935             lt_prog_compiler_wl_CXX='--backend -Wl,'
13936             ;;
13937           RCC*)
13938             # Rational C++ 2.4.1
13939             lt_prog_compiler_pic_CXX='-pic'
13940             ;;
13941           cxx*)
13942             # Digital/Compaq C++
13943             lt_prog_compiler_wl_CXX='-Wl,'
13944             # Make sure the PIC flag is empty.  It appears that all Alpha
13945             # Linux and Compaq Tru64 Unix objects are PIC.
13946             lt_prog_compiler_pic_CXX=
13947             lt_prog_compiler_static_CXX='-non_shared'
13948             ;;
13949           *)
13950             ;;
13951         esac
13952         ;;
13953       psos*)
13954         ;;
13955       solaris*)
13956         case $cc_basename in
13957           CC* | sunCC*)
13958             # Sun C++ 4.2, 5.x and Centerline C++
13959             lt_prog_compiler_pic_CXX='-KPIC'
13960             lt_prog_compiler_static_CXX='-Bstatic'
13961             lt_prog_compiler_wl_CXX='-Qoption ld '
13962             ;;
13963           gcx*)
13964             # Green Hills C++ Compiler
13965             lt_prog_compiler_pic_CXX='-PIC'
13966             ;;
13967           *)
13968             ;;
13969         esac
13970         ;;
13971       sunos4*)
13972         case $cc_basename in
13973           CC*)
13974             # Sun C++ 4.x
13975             lt_prog_compiler_pic_CXX='-pic'
13976             lt_prog_compiler_static_CXX='-Bstatic'
13977             ;;
13978           lcc*)
13979             # Lucid
13980             lt_prog_compiler_pic_CXX='-pic'
13981             ;;
13982           *)
13983             ;;
13984         esac
13985         ;;
13986       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13987         case $cc_basename in
13988           CC*)
13989             lt_prog_compiler_wl_CXX='-Wl,'
13990             lt_prog_compiler_pic_CXX='-KPIC'
13991             lt_prog_compiler_static_CXX='-Bstatic'
13992             ;;
13993         esac
13994         ;;
13995       tandem*)
13996         case $cc_basename in
13997           NCC*)
13998             # NonStop-UX NCC 3.20
13999             lt_prog_compiler_pic_CXX='-KPIC'
14000             ;;
14001           *)
14002             ;;
14003         esac
14004         ;;
14005       vxworks*)
14006         ;;
14007       *)
14008         lt_prog_compiler_can_build_shared_CXX=no
14009         ;;
14010     esac
14011   fi
14012
14013 case $host_os in
14014   # For platforms which do not support PIC, -DPIC is meaningless:
14015   *djgpp*)
14016     lt_prog_compiler_pic_CXX=
14017     ;;
14018   *)
14019     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14020     ;;
14021 esac
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14024 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14025 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14026   $as_echo_n "(cached) " >&6
14027 else
14028   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14031 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14032 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14033
14034 #
14035 # Check to make sure the PIC flag actually works.
14036 #
14037 if test -n "$lt_prog_compiler_pic_CXX"; then
14038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14039 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14040 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   lt_cv_prog_compiler_pic_works_CXX=no
14044    ac_outfile=conftest.$ac_objext
14045    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14046    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14047    # Insert the option either (1) after the last *FLAGS variable, or
14048    # (2) before a word containing "conftest.", or (3) at the end.
14049    # Note that $ac_compile itself does not contain backslashes and begins
14050    # with a dollar sign (not a hyphen), so the echo should work correctly.
14051    # The option is referenced via a variable to avoid confusing sed.
14052    lt_compile=`echo "$ac_compile" | $SED \
14053    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14055    -e 's:$: $lt_compiler_flag:'`
14056    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14057    (eval "$lt_compile" 2>conftest.err)
14058    ac_status=$?
14059    cat conftest.err >&5
14060    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061    if (exit $ac_status) && test -s "$ac_outfile"; then
14062      # The compiler can only warn and ignore the option if not recognized
14063      # So say no if there are warnings other than the usual output.
14064      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14065      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14066      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14067        lt_cv_prog_compiler_pic_works_CXX=yes
14068      fi
14069    fi
14070    $RM conftest*
14071
14072 fi
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14074 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14075
14076 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14077     case $lt_prog_compiler_pic_CXX in
14078      "" | " "*) ;;
14079      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14080      esac
14081 else
14082     lt_prog_compiler_pic_CXX=
14083      lt_prog_compiler_can_build_shared_CXX=no
14084 fi
14085
14086 fi
14087
14088
14089
14090
14091
14092 #
14093 # Check to make sure the static flag actually works.
14094 #
14095 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14097 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14098 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14099   $as_echo_n "(cached) " >&6
14100 else
14101   lt_cv_prog_compiler_static_works_CXX=no
14102    save_LDFLAGS="$LDFLAGS"
14103    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14104    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14105    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14106      # The linker can only warn and ignore the option if not recognized
14107      # So say no if there are warnings
14108      if test -s conftest.err; then
14109        # Append any errors to the config.log.
14110        cat conftest.err 1>&5
14111        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14112        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14113        if diff conftest.exp conftest.er2 >/dev/null; then
14114          lt_cv_prog_compiler_static_works_CXX=yes
14115        fi
14116      else
14117        lt_cv_prog_compiler_static_works_CXX=yes
14118      fi
14119    fi
14120    $RM -r conftest*
14121    LDFLAGS="$save_LDFLAGS"
14122
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14125 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14126
14127 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14128     :
14129 else
14130     lt_prog_compiler_static_CXX=
14131 fi
14132
14133
14134
14135
14136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14138 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14139   $as_echo_n "(cached) " >&6
14140 else
14141   lt_cv_prog_compiler_c_o_CXX=no
14142    $RM -r conftest 2>/dev/null
14143    mkdir conftest
14144    cd conftest
14145    mkdir out
14146    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14147
14148    lt_compiler_flag="-o out/conftest2.$ac_objext"
14149    # Insert the option either (1) after the last *FLAGS variable, or
14150    # (2) before a word containing "conftest.", or (3) at the end.
14151    # Note that $ac_compile itself does not contain backslashes and begins
14152    # with a dollar sign (not a hyphen), so the echo should work correctly.
14153    lt_compile=`echo "$ac_compile" | $SED \
14154    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14155    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14156    -e 's:$: $lt_compiler_flag:'`
14157    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14158    (eval "$lt_compile" 2>out/conftest.err)
14159    ac_status=$?
14160    cat out/conftest.err >&5
14161    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14163    then
14164      # The compiler can only warn and ignore the option if not recognized
14165      # So say no if there are warnings
14166      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14167      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14168      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14169        lt_cv_prog_compiler_c_o_CXX=yes
14170      fi
14171    fi
14172    chmod u+w . 2>&5
14173    $RM conftest*
14174    # SGI C++ compiler will create directory out/ii_files/ for
14175    # template instantiation
14176    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14177    $RM out/* && rmdir out
14178    cd ..
14179    $RM -r conftest
14180    $RM conftest*
14181
14182 fi
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14184 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14185
14186
14187
14188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14190 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14191   $as_echo_n "(cached) " >&6
14192 else
14193   lt_cv_prog_compiler_c_o_CXX=no
14194    $RM -r conftest 2>/dev/null
14195    mkdir conftest
14196    cd conftest
14197    mkdir out
14198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14199
14200    lt_compiler_flag="-o out/conftest2.$ac_objext"
14201    # Insert the option either (1) after the last *FLAGS variable, or
14202    # (2) before a word containing "conftest.", or (3) at the end.
14203    # Note that $ac_compile itself does not contain backslashes and begins
14204    # with a dollar sign (not a hyphen), so the echo should work correctly.
14205    lt_compile=`echo "$ac_compile" | $SED \
14206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14208    -e 's:$: $lt_compiler_flag:'`
14209    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14210    (eval "$lt_compile" 2>out/conftest.err)
14211    ac_status=$?
14212    cat out/conftest.err >&5
14213    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14215    then
14216      # The compiler can only warn and ignore the option if not recognized
14217      # So say no if there are warnings
14218      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14221        lt_cv_prog_compiler_c_o_CXX=yes
14222      fi
14223    fi
14224    chmod u+w . 2>&5
14225    $RM conftest*
14226    # SGI C++ compiler will create directory out/ii_files/ for
14227    # template instantiation
14228    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14229    $RM out/* && rmdir out
14230    cd ..
14231    $RM -r conftest
14232    $RM conftest*
14233
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14236 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14237
14238
14239
14240
14241 hard_links="nottested"
14242 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14243   # do not overwrite the value of need_locks provided by the user
14244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14245 $as_echo_n "checking if we can lock with hard links... " >&6; }
14246   hard_links=yes
14247   $RM conftest*
14248   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14249   touch conftest.a
14250   ln conftest.a conftest.b 2>&5 || hard_links=no
14251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14253 $as_echo "$hard_links" >&6; }
14254   if test "$hard_links" = no; then
14255     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14256 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14257     need_locks=warn
14258   fi
14259 else
14260   need_locks=no
14261 fi
14262
14263
14264
14265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14266 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14267
14268   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14269   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14270   case $host_os in
14271   aix[4-9]*)
14272     # If we're using GNU nm, then we don't want the "-C" option.
14273     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14274     # Also, AIX nm treats weak defined symbols like other global defined
14275     # symbols, whereas GNU nm marks them as "W".
14276     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14277       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14278     else
14279       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14280     fi
14281     ;;
14282   pw32*)
14283     export_symbols_cmds_CXX="$ltdll_cmds"
14284     ;;
14285   cygwin* | mingw* | cegcc*)
14286     case $cc_basename in
14287     cl*) ;;
14288     *)
14289       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14290       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14291       ;;
14292     esac
14293     ;;
14294   *)
14295     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14296     ;;
14297   esac
14298
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14300 $as_echo "$ld_shlibs_CXX" >&6; }
14301 test "$ld_shlibs_CXX" = no && can_build_shared=no
14302
14303 with_gnu_ld_CXX=$with_gnu_ld
14304
14305
14306
14307
14308
14309
14310 #
14311 # Do we need to explicitly link libc?
14312 #
14313 case "x$archive_cmds_need_lc_CXX" in
14314 x|xyes)
14315   # Assume -lc should be added
14316   archive_cmds_need_lc_CXX=yes
14317
14318   if test "$enable_shared" = yes && test "$GCC" = yes; then
14319     case $archive_cmds_CXX in
14320     *'~'*)
14321       # FIXME: we may have to deal with multi-command sequences.
14322       ;;
14323     '$CC '*)
14324       # Test whether the compiler implicitly links with -lc since on some
14325       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14326       # to ld, don't add -lc before -lgcc.
14327       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14328 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14329 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14330   $as_echo_n "(cached) " >&6
14331 else
14332   $RM conftest*
14333         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14334
14335         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14336   (eval $ac_compile) 2>&5
14337   ac_status=$?
14338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14339   test $ac_status = 0; } 2>conftest.err; then
14340           soname=conftest
14341           lib=conftest
14342           libobjs=conftest.$ac_objext
14343           deplibs=
14344           wl=$lt_prog_compiler_wl_CXX
14345           pic_flag=$lt_prog_compiler_pic_CXX
14346           compiler_flags=-v
14347           linker_flags=-v
14348           verstring=
14349           output_objdir=.
14350           libname=conftest
14351           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14352           allow_undefined_flag_CXX=
14353           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14354   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14355   ac_status=$?
14356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14357   test $ac_status = 0; }
14358           then
14359             lt_cv_archive_cmds_need_lc_CXX=no
14360           else
14361             lt_cv_archive_cmds_need_lc_CXX=yes
14362           fi
14363           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14364         else
14365           cat conftest.err 1>&5
14366         fi
14367         $RM conftest*
14368
14369 fi
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14371 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14372       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14373       ;;
14374     esac
14375   fi
14376   ;;
14377 esac
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14443 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14444
14445 library_names_spec=
14446 libname_spec='lib$name'
14447 soname_spec=
14448 shrext_cmds=".so"
14449 postinstall_cmds=
14450 postuninstall_cmds=
14451 finish_cmds=
14452 finish_eval=
14453 shlibpath_var=
14454 shlibpath_overrides_runpath=unknown
14455 version_type=none
14456 dynamic_linker="$host_os ld.so"
14457 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14458 need_lib_prefix=unknown
14459 hardcode_into_libs=no
14460
14461 # when you set need_version to no, make sure it does not cause -set_version
14462 # flags to be left without arguments
14463 need_version=unknown
14464
14465 case $host_os in
14466 aix3*)
14467   version_type=linux
14468   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14469   shlibpath_var=LIBPATH
14470
14471   # AIX 3 has no versioning support, so we append a major version to the name.
14472   soname_spec='${libname}${release}${shared_ext}$major'
14473   ;;
14474
14475 aix[4-9]*)
14476   version_type=linux
14477   need_lib_prefix=no
14478   need_version=no
14479   hardcode_into_libs=yes
14480   if test "$host_cpu" = ia64; then
14481     # AIX 5 supports IA64
14482     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14483     shlibpath_var=LD_LIBRARY_PATH
14484   else
14485     # With GCC up to 2.95.x, collect2 would create an import file
14486     # for dependence libraries.  The import file would start with
14487     # the line `#! .'.  This would cause the generated library to
14488     # depend on `.', always an invalid library.  This was fixed in
14489     # development snapshots of GCC prior to 3.0.
14490     case $host_os in
14491       aix4 | aix4.[01] | aix4.[01].*)
14492       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14493            echo ' yes '
14494            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14495         :
14496       else
14497         can_build_shared=no
14498       fi
14499       ;;
14500     esac
14501     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14502     # soname into executable. Probably we can add versioning support to
14503     # collect2, so additional links can be useful in future.
14504     if test "$aix_use_runtimelinking" = yes; then
14505       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14506       # instead of lib<name>.a to let people know that these are not
14507       # typical AIX shared libraries.
14508       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509     else
14510       # We preserve .a as extension for shared libraries through AIX4.2
14511       # and later when we are not doing run time linking.
14512       library_names_spec='${libname}${release}.a $libname.a'
14513       soname_spec='${libname}${release}${shared_ext}$major'
14514     fi
14515     shlibpath_var=LIBPATH
14516   fi
14517   ;;
14518
14519 amigaos*)
14520   case $host_cpu in
14521   powerpc)
14522     # Since July 2007 AmigaOS4 officially supports .so libraries.
14523     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525     ;;
14526   m68k)
14527     library_names_spec='$libname.ixlibrary $libname.a'
14528     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14529     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14530     ;;
14531   esac
14532   ;;
14533
14534 beos*)
14535   library_names_spec='${libname}${shared_ext}'
14536   dynamic_linker="$host_os ld.so"
14537   shlibpath_var=LIBRARY_PATH
14538   ;;
14539
14540 bsdi[45]*)
14541   version_type=linux
14542   need_version=no
14543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544   soname_spec='${libname}${release}${shared_ext}$major'
14545   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14546   shlibpath_var=LD_LIBRARY_PATH
14547   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14548   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14549   # the default ld.so.conf also contains /usr/contrib/lib and
14550   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14551   # libtool to hard-code these into programs
14552   ;;
14553
14554 cygwin* | mingw* | pw32* | cegcc*)
14555   version_type=windows
14556   shrext_cmds=".dll"
14557   need_version=no
14558   need_lib_prefix=no
14559
14560   case $GCC,$cc_basename in
14561   yes,*)
14562     # gcc
14563     library_names_spec='$libname.dll.a'
14564     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14565     postinstall_cmds='base_file=`basename \${file}`~
14566       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14567       dldir=$destdir/`dirname \$dlpath`~
14568       test -d \$dldir || mkdir -p \$dldir~
14569       $install_prog $dir/$dlname \$dldir/$dlname~
14570       chmod a+x \$dldir/$dlname~
14571       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14572         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14573       fi'
14574     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14575       dlpath=$dir/\$dldll~
14576        $RM \$dlpath'
14577     shlibpath_overrides_runpath=yes
14578
14579     case $host_os in
14580     cygwin*)
14581       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14582       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14583
14584       ;;
14585     mingw* | cegcc*)
14586       # MinGW DLLs use traditional 'lib' prefix
14587       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14588       ;;
14589     pw32*)
14590       # pw32 DLLs use 'pw' prefix rather than 'lib'
14591       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14592       ;;
14593     esac
14594     dynamic_linker='Win32 ld.exe'
14595     ;;
14596
14597   *,cl*)
14598     # Native MSVC
14599     libname_spec='$name'
14600     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14601     library_names_spec='${libname}.dll.lib'
14602
14603     case $build_os in
14604     mingw*)
14605       sys_lib_search_path_spec=
14606       lt_save_ifs=$IFS
14607       IFS=';'
14608       for lt_path in $LIB
14609       do
14610         IFS=$lt_save_ifs
14611         # Let DOS variable expansion print the short 8.3 style file name.
14612         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14613         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14614       done
14615       IFS=$lt_save_ifs
14616       # Convert to MSYS style.
14617       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14618       ;;
14619     cygwin*)
14620       # Convert to unix form, then to dos form, then back to unix form
14621       # but this time dos style (no spaces!) so that the unix form looks
14622       # like /cygdrive/c/PROGRA~1:/cygdr...
14623       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14624       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14625       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14626       ;;
14627     *)
14628       sys_lib_search_path_spec="$LIB"
14629       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14630         # It is most probably a Windows format PATH.
14631         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14632       else
14633         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14634       fi
14635       # FIXME: find the short name or the path components, as spaces are
14636       # common. (e.g. "Program Files" -> "PROGRA~1")
14637       ;;
14638     esac
14639
14640     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14641     postinstall_cmds='base_file=`basename \${file}`~
14642       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14643       dldir=$destdir/`dirname \$dlpath`~
14644       test -d \$dldir || mkdir -p \$dldir~
14645       $install_prog $dir/$dlname \$dldir/$dlname'
14646     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14647       dlpath=$dir/\$dldll~
14648        $RM \$dlpath'
14649     shlibpath_overrides_runpath=yes
14650     dynamic_linker='Win32 link.exe'
14651     ;;
14652
14653   *)
14654     # Assume MSVC wrapper
14655     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14656     dynamic_linker='Win32 ld.exe'
14657     ;;
14658   esac
14659   # FIXME: first we should search . and the directory the executable is in
14660   shlibpath_var=PATH
14661   ;;
14662
14663 darwin* | rhapsody*)
14664   dynamic_linker="$host_os dyld"
14665   version_type=darwin
14666   need_lib_prefix=no
14667   need_version=no
14668   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14669   soname_spec='${libname}${release}${major}$shared_ext'
14670   shlibpath_overrides_runpath=yes
14671   shlibpath_var=DYLD_LIBRARY_PATH
14672   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14673
14674   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14675   ;;
14676
14677 dgux*)
14678   version_type=linux
14679   need_lib_prefix=no
14680   need_version=no
14681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14682   soname_spec='${libname}${release}${shared_ext}$major'
14683   shlibpath_var=LD_LIBRARY_PATH
14684   ;;
14685
14686 freebsd1*)
14687   dynamic_linker=no
14688   ;;
14689
14690 freebsd* | dragonfly*)
14691   # DragonFly does not have aout.  When/if they implement a new
14692   # versioning mechanism, adjust this.
14693   if test -x /usr/bin/objformat; then
14694     objformat=`/usr/bin/objformat`
14695   else
14696     case $host_os in
14697     freebsd[123]*) objformat=aout ;;
14698     *) objformat=elf ;;
14699     esac
14700   fi
14701   version_type=freebsd-$objformat
14702   case $version_type in
14703     freebsd-elf*)
14704       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14705       need_version=no
14706       need_lib_prefix=no
14707       ;;
14708     freebsd-*)
14709       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14710       need_version=yes
14711       ;;
14712   esac
14713   shlibpath_var=LD_LIBRARY_PATH
14714   case $host_os in
14715   freebsd2*)
14716     shlibpath_overrides_runpath=yes
14717     ;;
14718   freebsd3.[01]* | freebsdelf3.[01]*)
14719     shlibpath_overrides_runpath=yes
14720     hardcode_into_libs=yes
14721     ;;
14722   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14723   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14724     shlibpath_overrides_runpath=no
14725     hardcode_into_libs=yes
14726     ;;
14727   *) # from 4.6 on, and DragonFly
14728     shlibpath_overrides_runpath=yes
14729     hardcode_into_libs=yes
14730     ;;
14731   esac
14732   ;;
14733
14734 gnu*)
14735   version_type=linux
14736   need_lib_prefix=no
14737   need_version=no
14738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14739   soname_spec='${libname}${release}${shared_ext}$major'
14740   shlibpath_var=LD_LIBRARY_PATH
14741   hardcode_into_libs=yes
14742   ;;
14743
14744 haiku*)
14745   version_type=linux
14746   need_lib_prefix=no
14747   need_version=no
14748   dynamic_linker="$host_os runtime_loader"
14749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14750   soname_spec='${libname}${release}${shared_ext}$major'
14751   shlibpath_var=LIBRARY_PATH
14752   shlibpath_overrides_runpath=yes
14753   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14754   hardcode_into_libs=yes
14755   ;;
14756
14757 hpux9* | hpux10* | hpux11*)
14758   # Give a soname corresponding to the major version so that dld.sl refuses to
14759   # link against other versions.
14760   version_type=sunos
14761   need_lib_prefix=no
14762   need_version=no
14763   case $host_cpu in
14764   ia64*)
14765     shrext_cmds='.so'
14766     hardcode_into_libs=yes
14767     dynamic_linker="$host_os dld.so"
14768     shlibpath_var=LD_LIBRARY_PATH
14769     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771     soname_spec='${libname}${release}${shared_ext}$major'
14772     if test "X$HPUX_IA64_MODE" = X32; then
14773       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14774     else
14775       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14776     fi
14777     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14778     ;;
14779   hppa*64*)
14780     shrext_cmds='.sl'
14781     hardcode_into_libs=yes
14782     dynamic_linker="$host_os dld.sl"
14783     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14784     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786     soname_spec='${libname}${release}${shared_ext}$major'
14787     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14788     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14789     ;;
14790   *)
14791     shrext_cmds='.sl'
14792     dynamic_linker="$host_os dld.sl"
14793     shlibpath_var=SHLIB_PATH
14794     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796     soname_spec='${libname}${release}${shared_ext}$major'
14797     ;;
14798   esac
14799   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14800   postinstall_cmds='chmod 555 $lib'
14801   # or fails outright, so override atomically:
14802   install_override_mode=555
14803   ;;
14804
14805 interix[3-9]*)
14806   version_type=linux
14807   need_lib_prefix=no
14808   need_version=no
14809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14810   soname_spec='${libname}${release}${shared_ext}$major'
14811   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14812   shlibpath_var=LD_LIBRARY_PATH
14813   shlibpath_overrides_runpath=no
14814   hardcode_into_libs=yes
14815   ;;
14816
14817 irix5* | irix6* | nonstopux*)
14818   case $host_os in
14819     nonstopux*) version_type=nonstopux ;;
14820     *)
14821         if test "$lt_cv_prog_gnu_ld" = yes; then
14822                 version_type=linux
14823         else
14824                 version_type=irix
14825         fi ;;
14826   esac
14827   need_lib_prefix=no
14828   need_version=no
14829   soname_spec='${libname}${release}${shared_ext}$major'
14830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14831   case $host_os in
14832   irix5* | nonstopux*)
14833     libsuff= shlibsuff=
14834     ;;
14835   *)
14836     case $LD in # libtool.m4 will add one of these switches to LD
14837     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14838       libsuff= shlibsuff= libmagic=32-bit;;
14839     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14840       libsuff=32 shlibsuff=N32 libmagic=N32;;
14841     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14842       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14843     *) libsuff= shlibsuff= libmagic=never-match;;
14844     esac
14845     ;;
14846   esac
14847   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14848   shlibpath_overrides_runpath=no
14849   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14850   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14851   hardcode_into_libs=yes
14852   ;;
14853
14854 # No shared lib support for Linux oldld, aout, or coff.
14855 linux*oldld* | linux*aout* | linux*coff*)
14856   dynamic_linker=no
14857   ;;
14858
14859 # This must be Linux ELF.
14860 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14861   version_type=linux
14862   need_lib_prefix=no
14863   need_version=no
14864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865   soname_spec='${libname}${release}${shared_ext}$major'
14866   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14867   shlibpath_var=LD_LIBRARY_PATH
14868   shlibpath_overrides_runpath=no
14869
14870   # Some binutils ld are patched to set DT_RUNPATH
14871   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14872   $as_echo_n "(cached) " >&6
14873 else
14874   lt_cv_shlibpath_overrides_runpath=no
14875     save_LDFLAGS=$LDFLAGS
14876     save_libdir=$libdir
14877     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14878          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14879     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h.  */
14881
14882 int
14883 main ()
14884 {
14885
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 if ac_fn_cxx_try_link "$LINENO"; then :
14891   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14892   lt_cv_shlibpath_overrides_runpath=yes
14893 fi
14894 fi
14895 rm -f core conftest.err conftest.$ac_objext \
14896     conftest$ac_exeext conftest.$ac_ext
14897     LDFLAGS=$save_LDFLAGS
14898     libdir=$save_libdir
14899
14900 fi
14901
14902   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14903
14904   # This implies no fast_install, which is unacceptable.
14905   # Some rework will be needed to allow for fast_install
14906   # before this can be enabled.
14907   hardcode_into_libs=yes
14908
14909   # Append ld.so.conf contents to the search path
14910   if test -f /etc/ld.so.conf; then
14911     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' ' '`
14912     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14913   fi
14914
14915   # We used to test for /lib/ld.so.1 and disable shared libraries on
14916   # powerpc, because MkLinux only supported shared libraries with the
14917   # GNU dynamic linker.  Since this was broken with cross compilers,
14918   # most powerpc-linux boxes support dynamic linking these days and
14919   # people can always --disable-shared, the test was removed, and we
14920   # assume the GNU/Linux dynamic linker is in use.
14921   dynamic_linker='GNU/Linux ld.so'
14922   ;;
14923
14924 netbsd*)
14925   version_type=sunos
14926   need_lib_prefix=no
14927   need_version=no
14928   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14930     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14931     dynamic_linker='NetBSD (a.out) ld.so'
14932   else
14933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14934     soname_spec='${libname}${release}${shared_ext}$major'
14935     dynamic_linker='NetBSD ld.elf_so'
14936   fi
14937   shlibpath_var=LD_LIBRARY_PATH
14938   shlibpath_overrides_runpath=yes
14939   hardcode_into_libs=yes
14940   ;;
14941
14942 newsos6)
14943   version_type=linux
14944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945   shlibpath_var=LD_LIBRARY_PATH
14946   shlibpath_overrides_runpath=yes
14947   ;;
14948
14949 *nto* | *qnx*)
14950   version_type=qnx
14951   need_lib_prefix=no
14952   need_version=no
14953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954   soname_spec='${libname}${release}${shared_ext}$major'
14955   shlibpath_var=LD_LIBRARY_PATH
14956   shlibpath_overrides_runpath=no
14957   hardcode_into_libs=yes
14958   dynamic_linker='ldqnx.so'
14959   ;;
14960
14961 openbsd*)
14962   version_type=sunos
14963   sys_lib_dlsearch_path_spec="/usr/lib"
14964   need_lib_prefix=no
14965   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14966   case $host_os in
14967     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14968     *)                          need_version=no  ;;
14969   esac
14970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14971   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14972   shlibpath_var=LD_LIBRARY_PATH
14973   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14974     case $host_os in
14975       openbsd2.[89] | openbsd2.[89].*)
14976         shlibpath_overrides_runpath=no
14977         ;;
14978       *)
14979         shlibpath_overrides_runpath=yes
14980         ;;
14981       esac
14982   else
14983     shlibpath_overrides_runpath=yes
14984   fi
14985   ;;
14986
14987 os2*)
14988   libname_spec='$name'
14989   shrext_cmds=".dll"
14990   need_lib_prefix=no
14991   library_names_spec='$libname${shared_ext} $libname.a'
14992   dynamic_linker='OS/2 ld.exe'
14993   shlibpath_var=LIBPATH
14994   ;;
14995
14996 osf3* | osf4* | osf5*)
14997   version_type=osf
14998   need_lib_prefix=no
14999   need_version=no
15000   soname_spec='${libname}${release}${shared_ext}$major'
15001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002   shlibpath_var=LD_LIBRARY_PATH
15003   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15004   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15005   ;;
15006
15007 rdos*)
15008   dynamic_linker=no
15009   ;;
15010
15011 solaris*)
15012   version_type=linux
15013   need_lib_prefix=no
15014   need_version=no
15015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016   soname_spec='${libname}${release}${shared_ext}$major'
15017   shlibpath_var=LD_LIBRARY_PATH
15018   shlibpath_overrides_runpath=yes
15019   hardcode_into_libs=yes
15020   # ldd complains unless libraries are executable
15021   postinstall_cmds='chmod +x $lib'
15022   ;;
15023
15024 sunos4*)
15025   version_type=sunos
15026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15027   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15028   shlibpath_var=LD_LIBRARY_PATH
15029   shlibpath_overrides_runpath=yes
15030   if test "$with_gnu_ld" = yes; then
15031     need_lib_prefix=no
15032   fi
15033   need_version=yes
15034   ;;
15035
15036 sysv4 | sysv4.3*)
15037   version_type=linux
15038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039   soname_spec='${libname}${release}${shared_ext}$major'
15040   shlibpath_var=LD_LIBRARY_PATH
15041   case $host_vendor in
15042     sni)
15043       shlibpath_overrides_runpath=no
15044       need_lib_prefix=no
15045       runpath_var=LD_RUN_PATH
15046       ;;
15047     siemens)
15048       need_lib_prefix=no
15049       ;;
15050     motorola)
15051       need_lib_prefix=no
15052       need_version=no
15053       shlibpath_overrides_runpath=no
15054       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15055       ;;
15056   esac
15057   ;;
15058
15059 sysv4*MP*)
15060   if test -d /usr/nec ;then
15061     version_type=linux
15062     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15063     soname_spec='$libname${shared_ext}.$major'
15064     shlibpath_var=LD_LIBRARY_PATH
15065   fi
15066   ;;
15067
15068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15069   version_type=freebsd-elf
15070   need_lib_prefix=no
15071   need_version=no
15072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15073   soname_spec='${libname}${release}${shared_ext}$major'
15074   shlibpath_var=LD_LIBRARY_PATH
15075   shlibpath_overrides_runpath=yes
15076   hardcode_into_libs=yes
15077   if test "$with_gnu_ld" = yes; then
15078     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15079   else
15080     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15081     case $host_os in
15082       sco3.2v5*)
15083         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15084         ;;
15085     esac
15086   fi
15087   sys_lib_dlsearch_path_spec='/usr/lib'
15088   ;;
15089
15090 tpf*)
15091   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15092   version_type=linux
15093   need_lib_prefix=no
15094   need_version=no
15095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096   shlibpath_var=LD_LIBRARY_PATH
15097   shlibpath_overrides_runpath=no
15098   hardcode_into_libs=yes
15099   ;;
15100
15101 uts4*)
15102   version_type=linux
15103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104   soname_spec='${libname}${release}${shared_ext}$major'
15105   shlibpath_var=LD_LIBRARY_PATH
15106   ;;
15107
15108 *)
15109   dynamic_linker=no
15110   ;;
15111 esac
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15113 $as_echo "$dynamic_linker" >&6; }
15114 test "$dynamic_linker" = no && can_build_shared=no
15115
15116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15117 if test "$GCC" = yes; then
15118   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15119 fi
15120
15121 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15122   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15123 fi
15124 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15125   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15126 fi
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15166 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15167 hardcode_action_CXX=
15168 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15169    test -n "$runpath_var_CXX" ||
15170    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15171
15172   # We can hardcode non-existent directories.
15173   if test "$hardcode_direct_CXX" != no &&
15174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15175      # have to relink, otherwise we might link with an installed library
15176      # when we should be linking with a yet-to-be-installed one
15177      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15178      test "$hardcode_minus_L_CXX" != no; then
15179     # Linking always hardcodes the temporary library directory.
15180     hardcode_action_CXX=relink
15181   else
15182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15183     hardcode_action_CXX=immediate
15184   fi
15185 else
15186   # We cannot hardcode anything, or else we can only hardcode existing
15187   # directories.
15188   hardcode_action_CXX=unsupported
15189 fi
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15191 $as_echo "$hardcode_action_CXX" >&6; }
15192
15193 if test "$hardcode_action_CXX" = relink ||
15194    test "$inherit_rpath_CXX" = yes; then
15195   # Fast installation is not supported
15196   enable_fast_install=no
15197 elif test "$shlibpath_overrides_runpath" = yes ||
15198      test "$enable_shared" = no; then
15199   # Fast installation is not necessary
15200   enable_fast_install=needless
15201 fi
15202
15203
15204
15205
15206
15207
15208
15209   fi # test -n "$compiler"
15210
15211   CC=$lt_save_CC
15212   CFLAGS=$lt_save_CFLAGS
15213   LDCXX=$LD
15214   LD=$lt_save_LD
15215   GCC=$lt_save_GCC
15216   with_gnu_ld=$lt_save_with_gnu_ld
15217   lt_cv_path_LDCXX=$lt_cv_path_LD
15218   lt_cv_path_LD=$lt_save_path_LD
15219   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15220   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15221 fi # test "$_lt_caught_CXX_error" != yes
15222
15223 ac_ext=c
15224 ac_cpp='$CPP $CPPFLAGS'
15225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241         ac_config_commands="$ac_config_commands libtool"
15242
15243
15244
15245
15246 # Only expand once:
15247
15248
15249 else
15250
15251   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15252
15253     enable_dlopen=yes
15254
15255
15256
15257
15258 fi
15259
15260
15261
15262 # Check whether --enable-strict-dependencies was given.
15263 if test "${enable_strict_dependencies+set}" = set; then :
15264   enableval=$enable_strict_dependencies;
15265 fi
15266
15267
15268 docdir='${datadir}/doc/freeradius'
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15270 $as_echo_n "checking docdir... " >&6; }
15271
15272 # Check whether --with-docdir was given.
15273 if test "${with_docdir+set}" = set; then :
15274   withval=$with_docdir;  case "$withval" in
15275     no)
15276         docdir=no
15277         ;;
15278     yes)
15279         ;;
15280     [\\/$]* | ?:[\\/]* )
15281         docdir="$withval"
15282         ;;
15283     *)
15284         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15285         ;;
15286   esac
15287
15288 fi
15289
15290
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15292 $as_echo "$docdir" >&6; }
15293 if test "x$docdir" = xno; then
15294         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15295 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15296 fi
15297
15298 logdir='${localstatedir}/log/radius'
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15300 $as_echo_n "checking logdir... " >&6; }
15301
15302 # Check whether --with-logdir was given.
15303 if test "${with_logdir+set}" = set; then :
15304   withval=$with_logdir;  case "$withval" in
15305     no)
15306         as_fn_error $? "Need logdir" "$LINENO" 5
15307         ;;
15308     yes)
15309         ;;
15310     [\\/$]* | ?:[\\/]* )
15311         logdir="$withval"
15312         ;;
15313     *)
15314         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15315         ;;
15316   esac
15317
15318 fi
15319
15320
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15322 $as_echo "$logdir" >&6; }
15323
15324 radacctdir='${logdir}/radacct'
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15326 $as_echo_n "checking radacctdir... " >&6; }
15327
15328 # Check whether --with-radacctdir was given.
15329 if test "${with_radacctdir+set}" = set; then :
15330   withval=$with_radacctdir;  case "$withval" in
15331     no)
15332         as_fn_error $? "Need radacctdir" "$LINENO" 5
15333         ;;
15334     yes)
15335         ;;
15336     [\\/$]* | ?:[\\/]* )
15337         radacctdir="$withval"
15338         ;;
15339     *)
15340         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15341         ;;
15342   esac
15343
15344 fi
15345
15346
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15348 $as_echo "$radacctdir" >&6; }
15349
15350 raddbdir='${sysconfdir}/raddb'
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15352 $as_echo_n "checking raddbdir... " >&6; }
15353
15354 # Check whether --with-raddbdir was given.
15355 if test "${with_raddbdir+set}" = set; then :
15356   withval=$with_raddbdir;  case "$withval" in
15357     no)
15358         as_fn_error $? "Need raddbdir" "$LINENO" 5
15359         ;;
15360     yes)
15361         ;;
15362     [\\/$]* | ?:[\\/]* )
15363         raddbdir="$withval"
15364         ;;
15365     *)
15366         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15367         ;;
15368   esac
15369
15370 fi
15371
15372
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15374 $as_echo "$raddbdir" >&6; }
15375
15376 WITH_ASCEND_BINARY=yes
15377
15378 # Check whether --with-ascend-binary was given.
15379 if test "${with_ascend_binary+set}" = set; then :
15380   withval=$with_ascend_binary;  case "$withval" in
15381     yes)
15382         ;;
15383     *)
15384         WITH_ASCEND_BINARY=no
15385   esac
15386
15387 fi
15388
15389 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
15390
15391 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
15392
15393 fi
15394
15395 WITH_THREADS=yes
15396
15397 # Check whether --with-threads was given.
15398 if test "${with_threads+set}" = set; then :
15399   withval=$with_threads;  case "$withval" in
15400     yes)
15401         ;;
15402     *)
15403         WITH_THREADS=no
15404   esac
15405
15406 fi
15407
15408
15409 WITH_TCP=yes
15410
15411 # Check whether --with-tcp was given.
15412 if test "${with_tcp+set}" = set; then :
15413   withval=$with_tcp;  case "$withval" in
15414     yes)
15415         ;;
15416     *)
15417         WITH_TCP=no
15418   esac
15419
15420 fi
15421
15422 if test "x$WITH_TCP" = "xyes"; then
15423
15424 $as_echo "#define WITH_TCP 1" >>confdefs.h
15425
15426 fi
15427
15428 WITH_VMPS=yes
15429
15430 # Check whether --with-vmps was given.
15431 if test "${with_vmps+set}" = set; then :
15432   withval=$with_vmps;  case "$withval" in
15433     yes)
15434         ;;
15435     *)
15436         WITH_VMPS=no
15437   esac
15438
15439 fi
15440
15441 if test "x$WITH_VMPS" = "xyes"; then
15442
15443 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15444
15445 fi
15446
15447 WITH_DHCP=yes
15448
15449 # Check whether --with-dhcp was given.
15450 if test "${with_dhcp+set}" = set; then :
15451   withval=$with_dhcp;  case "$withval" in
15452     yes)
15453         ;;
15454     *)
15455         WITH_DHCP=no
15456   esac
15457
15458 fi
15459
15460 if test "x$WITH_DHCP" = "xyes"; then
15461
15462 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15463
15464 fi
15465
15466 STATIC_MODULES=
15467
15468 # Check whether --with-static_modules was given.
15469 if test "${with_static_modules+set}" = set; then :
15470   withval=$with_static_modules;
15471   for i in $withval; do
15472     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15473   done
15474
15475 fi
15476
15477
15478 MODULES=
15479
15480 # Check whether --with-modules was given.
15481 if test "${with_modules+set}" = set; then :
15482   withval=$with_modules;
15483  for i in $withval; do
15484    MODULES="$MODULES $i"
15485  done
15486
15487 fi
15488
15489
15490 EXPERIMENTAL=
15491
15492 # Check whether --with-experimental-modules was given.
15493 if test "${with_experimental_modules+set}" = set; then :
15494   withval=$with_experimental_modules;  case "$withval" in
15495     yes)
15496         EXPERIMENTAL=yes
15497         ;;
15498     no)
15499         EXPERIMENTAL=no
15500         ;;
15501     *)
15502   esac
15503
15504 fi
15505
15506
15507 WITH_OPENSSL=yes
15508
15509 # Check whether --with-openssl was given.
15510 if test "${with_openssl+set}" = set; then :
15511   withval=$with_openssl;  case "$withval" in
15512     no)
15513         WITH_OPENSSL=no
15514         ;;
15515     *)
15516         WITH_OPENSSL=yes
15517         ;;
15518   esac
15519
15520 fi
15521
15522
15523 OPENSSL_INCLUDE_DIR=
15524
15525 # Check whether --with-openssl-includes was given.
15526 if test "${with_openssl_includes+set}" = set; then :
15527   withval=$with_openssl_includes;  case "$withval" in
15528     *) OPENSSL_INCLUDE_DIR="$withval"
15529         ;;
15530   esac
15531
15532 fi
15533
15534
15535 OPENSSL_LIB_DIR=
15536
15537 # Check whether --with-openssl-libraries was given.
15538 if test "${with_openssl_libraries+set}" = set; then :
15539   withval=$with_openssl_libraries;  case "$withval" in
15540     *) OPENSSL_LIB_DIR="$withval"
15541         ;;
15542   esac
15543
15544 fi
15545
15546
15547
15548
15549 # Check whether --with-rlm-FOO-lib-dir was given.
15550 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15551   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15552     *)
15553         ;;
15554   esac
15555
15556 fi
15557
15558
15559
15560 # Check whether --with-rlm-FOO-include-dir was given.
15561 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15562   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15563     *)
15564         ;;
15565   esac
15566
15567 fi
15568
15569
15570
15571 WITH_UDPFROMTO=no
15572
15573 # Check whether --with-udpfromto was given.
15574 if test "${with_udpfromto+set}" = set; then :
15575   withval=$with_udpfromto;  case "$withval" in
15576     yes)
15577         WITH_UDPFROMTO=yes
15578         ;;
15579     *)
15580         WITH_UDPFROMTO=no
15581   esac
15582
15583 fi
15584
15585
15586 if test "x$WITH_UDPFROMTO" = "xyes"; then
15587
15588 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15589
15590 fi
15591
15592
15593 CHECKRAD=checkrad
15594 # Extract the first word of "perl", so it can be a program name with args.
15595 set dummy perl; ac_word=$2
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15597 $as_echo_n "checking for $ac_word... " >&6; }
15598 if ${ac_cv_path_PERL+:} false; then :
15599   $as_echo_n "(cached) " >&6
15600 else
15601   case $PERL in
15602   [\\/]* | ?:[\\/]*)
15603   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15604   ;;
15605   *)
15606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15607 for as_dir in $PATH
15608 do
15609   IFS=$as_save_IFS
15610   test -z "$as_dir" && as_dir=.
15611     for ac_exec_ext in '' $ac_executable_extensions; do
15612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15613     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15615     break 2
15616   fi
15617 done
15618   done
15619 IFS=$as_save_IFS
15620
15621   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15622   ;;
15623 esac
15624 fi
15625 PERL=$ac_cv_path_PERL
15626 if test -n "$PERL"; then
15627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15628 $as_echo "$PERL" >&6; }
15629 else
15630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15631 $as_echo "no" >&6; }
15632 fi
15633
15634
15635 if test "x$ac_cv_path_PERL" = "x"; then
15636   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
15637 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
15638 fi
15639 # Extract the first word of "snmpget", so it can be a program name with args.
15640 set dummy snmpget; ac_word=$2
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15642 $as_echo_n "checking for $ac_word... " >&6; }
15643 if ${ac_cv_path_SNMPGET+:} false; then :
15644   $as_echo_n "(cached) " >&6
15645 else
15646   case $SNMPGET in
15647   [\\/]* | ?:[\\/]*)
15648   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15649   ;;
15650   *)
15651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15652 for as_dir in $PATH
15653 do
15654   IFS=$as_save_IFS
15655   test -z "$as_dir" && as_dir=.
15656     for ac_exec_ext in '' $ac_executable_extensions; do
15657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15658     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15660     break 2
15661   fi
15662 done
15663   done
15664 IFS=$as_save_IFS
15665
15666   ;;
15667 esac
15668 fi
15669 SNMPGET=$ac_cv_path_SNMPGET
15670 if test -n "$SNMPGET"; then
15671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15672 $as_echo "$SNMPGET" >&6; }
15673 else
15674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15676 fi
15677
15678
15679 if test "x$ac_cv_path_SNMPGET" = "x"; then
15680   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
15681 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
15682 fi
15683
15684 # Extract the first word of "snmpwalk", so it can be a program name with args.
15685 set dummy snmpwalk; ac_word=$2
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15687 $as_echo_n "checking for $ac_word... " >&6; }
15688 if ${ac_cv_path_SNMPWALK+:} false; then :
15689   $as_echo_n "(cached) " >&6
15690 else
15691   case $SNMPWALK in
15692   [\\/]* | ?:[\\/]*)
15693   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15694   ;;
15695   *)
15696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15697 for as_dir in $PATH
15698 do
15699   IFS=$as_save_IFS
15700   test -z "$as_dir" && as_dir=.
15701     for ac_exec_ext in '' $ac_executable_extensions; do
15702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15703     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15705     break 2
15706   fi
15707 done
15708   done
15709 IFS=$as_save_IFS
15710
15711   ;;
15712 esac
15713 fi
15714 SNMPWALK=$ac_cv_path_SNMPWALK
15715 if test -n "$SNMPWALK"; then
15716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15717 $as_echo "$SNMPWALK" >&6; }
15718 else
15719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15720 $as_echo "no" >&6; }
15721 fi
15722
15723
15724 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15725   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
15726 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
15727 fi
15728
15729 # Extract the first word of "rusers", so it can be a program name with args.
15730 set dummy rusers; ac_word=$2
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15732 $as_echo_n "checking for $ac_word... " >&6; }
15733 if ${ac_cv_path_RUSERS+:} false; then :
15734   $as_echo_n "(cached) " >&6
15735 else
15736   case $RUSERS in
15737   [\\/]* | ?:[\\/]*)
15738   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15739   ;;
15740   *)
15741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742 for as_dir in $PATH
15743 do
15744   IFS=$as_save_IFS
15745   test -z "$as_dir" && as_dir=.
15746     for ac_exec_ext in '' $ac_executable_extensions; do
15747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15748     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15750     break 2
15751   fi
15752 done
15753   done
15754 IFS=$as_save_IFS
15755
15756   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15757   ;;
15758 esac
15759 fi
15760 RUSERS=$ac_cv_path_RUSERS
15761 if test -n "$RUSERS"; then
15762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15763 $as_echo "$RUSERS" >&6; }
15764 else
15765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15766 $as_echo "no" >&6; }
15767 fi
15768
15769
15770
15771 missing_dir=`cd $ac_aux_dir && pwd`
15772 # expand $ac_aux_dir to an absolute path
15773 am_aux_dir=`cd $ac_aux_dir && pwd`
15774
15775 if test x"${MISSING+set}" != xset; then
15776   case $am_aux_dir in
15777   *\ * | *\     *)
15778     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15779   *)
15780     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15781   esac
15782 fi
15783 # Use eval to expand $SHELL
15784 if eval "$MISSING --run true"; then
15785   am_missing_run="$MISSING --run "
15786 else
15787   am_missing_run=
15788   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15789 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15790 fi
15791
15792
15793 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15794
15795
15796 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15797
15798
15799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15800
15801
15802 # Extract the first word of "locate", so it can be a program name with args.
15803 set dummy locate; ac_word=$2
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15805 $as_echo_n "checking for $ac_word... " >&6; }
15806 if ${ac_cv_path_LOCATE+:} false; then :
15807   $as_echo_n "(cached) " >&6
15808 else
15809   case $LOCATE in
15810   [\\/]* | ?:[\\/]*)
15811   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15812   ;;
15813   *)
15814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15815 for as_dir in $PATH
15816 do
15817   IFS=$as_save_IFS
15818   test -z "$as_dir" && as_dir=.
15819     for ac_exec_ext in '' $ac_executable_extensions; do
15820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15821     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15823     break 2
15824   fi
15825 done
15826   done
15827 IFS=$as_save_IFS
15828
15829   ;;
15830 esac
15831 fi
15832 LOCATE=$ac_cv_path_LOCATE
15833 if test -n "$LOCATE"; then
15834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15835 $as_echo "$LOCATE" >&6; }
15836 else
15837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15838 $as_echo "no" >&6; }
15839 fi
15840
15841
15842 # Extract the first word of "dirname", so it can be a program name with args.
15843 set dummy dirname; ac_word=$2
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15845 $as_echo_n "checking for $ac_word... " >&6; }
15846 if ${ac_cv_path_DIRNAME+:} false; then :
15847   $as_echo_n "(cached) " >&6
15848 else
15849   case $DIRNAME in
15850   [\\/]* | ?:[\\/]*)
15851   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15852   ;;
15853   *)
15854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15855 for as_dir in $PATH
15856 do
15857   IFS=$as_save_IFS
15858   test -z "$as_dir" && as_dir=.
15859     for ac_exec_ext in '' $ac_executable_extensions; do
15860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15861     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15863     break 2
15864   fi
15865 done
15866   done
15867 IFS=$as_save_IFS
15868
15869   ;;
15870 esac
15871 fi
15872 DIRNAME=$ac_cv_path_DIRNAME
15873 if test -n "$DIRNAME"; then
15874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15875 $as_echo "$DIRNAME" >&6; }
15876 else
15877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15878 $as_echo "no" >&6; }
15879 fi
15880
15881
15882 # Extract the first word of "grep", so it can be a program name with args.
15883 set dummy grep; ac_word=$2
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15885 $as_echo_n "checking for $ac_word... " >&6; }
15886 if ${ac_cv_path_GREP+:} false; then :
15887   $as_echo_n "(cached) " >&6
15888 else
15889   case $GREP in
15890   [\\/]* | ?:[\\/]*)
15891   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15892   ;;
15893   *)
15894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15895 for as_dir in $PATH
15896 do
15897   IFS=$as_save_IFS
15898   test -z "$as_dir" && as_dir=.
15899     for ac_exec_ext in '' $ac_executable_extensions; do
15900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15901     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15903     break 2
15904   fi
15905 done
15906   done
15907 IFS=$as_save_IFS
15908
15909   ;;
15910 esac
15911 fi
15912 GREP=$ac_cv_path_GREP
15913 if test -n "$GREP"; then
15914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15915 $as_echo "$GREP" >&6; }
15916 else
15917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15919 fi
15920
15921
15922
15923
15924 old_CFLAGS=$CFLAGS
15925 if test "x$WITH_THREADS" = "xyes"; then
15926   if test $ac_cv_prog_suncc = "yes"; then
15927     CFLAGS="$CFLAGS -mt"
15928   fi
15929
15930   for ac_header in pthread.h
15931 do :
15932   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15933 if test "x$ac_cv_header_pthread_h" = xyes; then :
15934   cat >>confdefs.h <<_ACEOF
15935 #define HAVE_PTHREAD_H 1
15936 _ACEOF
15937
15938 else
15939    WITH_THREADS="no"
15940 fi
15941
15942 done
15943
15944
15945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15946 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15947 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15948   $as_echo_n "(cached) " >&6
15949 else
15950   ac_check_lib_save_LIBS=$LIBS
15951 LIBS="-lpthread  $LIBS"
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h.  */
15954
15955 /* Override any GCC internal prototype to avoid an error.
15956    Use char because int might match the return type of a GCC
15957    builtin and then its argument prototype would still apply.  */
15958 #ifdef __cplusplus
15959 extern "C"
15960 #endif
15961 char pthread_create ();
15962 int
15963 main ()
15964 {
15965 return pthread_create ();
15966   ;
15967   return 0;
15968 }
15969 _ACEOF
15970 if ac_fn_c_try_link "$LINENO"; then :
15971   ac_cv_lib_pthread_pthread_create=yes
15972 else
15973   ac_cv_lib_pthread_pthread_create=no
15974 fi
15975 rm -f core conftest.err conftest.$ac_objext \
15976     conftest$ac_exeext conftest.$ac_ext
15977 LIBS=$ac_check_lib_save_LIBS
15978 fi
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15980 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15981 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15982    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15983                   LIBS="-lpthread $LIBS"
15984 else
15985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15986 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15987 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15988   $as_echo_n "(cached) " >&6
15989 else
15990   ac_check_lib_save_LIBS=$LIBS
15991 LIBS="-lc_r  $LIBS"
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h.  */
15994
15995 /* Override any GCC internal prototype to avoid an error.
15996    Use char because int might match the return type of a GCC
15997    builtin and then its argument prototype would still apply.  */
15998 #ifdef __cplusplus
15999 extern "C"
16000 #endif
16001 char pthread_create ();
16002 int
16003 main ()
16004 {
16005 return pthread_create ();
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_link "$LINENO"; then :
16011   ac_cv_lib_c_r_pthread_create=yes
16012 else
16013   ac_cv_lib_c_r_pthread_create=no
16014 fi
16015 rm -f core conftest.err conftest.$ac_objext \
16016     conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16020 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16021 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
16022    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
16023 else
16024    WITH_THREADS="no"
16025
16026 fi
16027
16028
16029 fi
16030
16031 fi
16032
16033 if test "x$WITH_THREADS" != "xyes"; then
16034   CFLAGS=$old_CFLAGS
16035   ac_cv_header_pthread_h="no"
16036   WITH_THREADS=no
16037 else
16038
16039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16040 $as_echo_n "checking for library containing sem_init... " >&6; }
16041 if ${ac_cv_search_sem_init+:} false; then :
16042   $as_echo_n "(cached) " >&6
16043 else
16044   ac_func_search_save_LIBS=$LIBS
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h.  */
16047
16048 /* Override any GCC internal prototype to avoid an error.
16049    Use char because int might match the return type of a GCC
16050    builtin and then its argument prototype would still apply.  */
16051 #ifdef __cplusplus
16052 extern "C"
16053 #endif
16054 char sem_init ();
16055 int
16056 main ()
16057 {
16058 return sem_init ();
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 for ac_lib in '' pthread sem posix4 rt semaphore; do
16064   if test -z "$ac_lib"; then
16065     ac_res="none required"
16066   else
16067     ac_res=-l$ac_lib
16068     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16069   fi
16070   if ac_fn_c_try_link "$LINENO"; then :
16071   ac_cv_search_sem_init=$ac_res
16072 fi
16073 rm -f core conftest.err conftest.$ac_objext \
16074     conftest$ac_exeext
16075   if ${ac_cv_search_sem_init+:} false; then :
16076   break
16077 fi
16078 done
16079 if ${ac_cv_search_sem_init+:} false; then :
16080
16081 else
16082   ac_cv_search_sem_init=no
16083 fi
16084 rm conftest.$ac_ext
16085 LIBS=$ac_func_search_save_LIBS
16086 fi
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16088 $as_echo "$ac_cv_search_sem_init" >&6; }
16089 ac_res=$ac_cv_search_sem_init
16090 if test "$ac_res" != no; then :
16091   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16092
16093 else
16094   as_fn_error $? "-lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5
16095
16096 fi
16097
16098 fi
16099
16100 if test "x$WITH_THREADS" = "xyes"; then
16101
16102 $as_echo "#define WITH_THREADS 1" >>confdefs.h
16103
16104 fi
16105
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16107 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16108 if ${ac_cv_lib_dl_dlopen+:} false; then :
16109   $as_echo_n "(cached) " >&6
16110 else
16111   ac_check_lib_save_LIBS=$LIBS
16112 LIBS="-ldl  $LIBS"
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h.  */
16115
16116 /* Override any GCC internal prototype to avoid an error.
16117    Use char because int might match the return type of a GCC
16118    builtin and then its argument prototype would still apply.  */
16119 #ifdef __cplusplus
16120 extern "C"
16121 #endif
16122 char dlopen ();
16123 int
16124 main ()
16125 {
16126 return dlopen ();
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 if ac_fn_c_try_link "$LINENO"; then :
16132   ac_cv_lib_dl_dlopen=yes
16133 else
16134   ac_cv_lib_dl_dlopen=no
16135 fi
16136 rm -f core conftest.err conftest.$ac_objext \
16137     conftest$ac_exeext conftest.$ac_ext
16138 LIBS=$ac_check_lib_save_LIBS
16139 fi
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16141 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16142 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16143   cat >>confdefs.h <<_ACEOF
16144 #define HAVE_LIBDL 1
16145 _ACEOF
16146
16147   LIBS="-ldl $LIBS"
16148
16149 fi
16150
16151
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16153 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16154 if ${ac_cv_lib_socket_getsockname+:} false; then :
16155   $as_echo_n "(cached) " >&6
16156 else
16157   ac_check_lib_save_LIBS=$LIBS
16158 LIBS="-lsocket  $LIBS"
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h.  */
16161
16162 /* Override any GCC internal prototype to avoid an error.
16163    Use char because int might match the return type of a GCC
16164    builtin and then its argument prototype would still apply.  */
16165 #ifdef __cplusplus
16166 extern "C"
16167 #endif
16168 char getsockname ();
16169 int
16170 main ()
16171 {
16172 return getsockname ();
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 if ac_fn_c_try_link "$LINENO"; then :
16178   ac_cv_lib_socket_getsockname=yes
16179 else
16180   ac_cv_lib_socket_getsockname=no
16181 fi
16182 rm -f core conftest.err conftest.$ac_objext \
16183     conftest$ac_exeext conftest.$ac_ext
16184 LIBS=$ac_check_lib_save_LIBS
16185 fi
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16187 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16188 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16189   cat >>confdefs.h <<_ACEOF
16190 #define HAVE_LIBSOCKET 1
16191 _ACEOF
16192
16193   LIBS="-lsocket $LIBS"
16194
16195 fi
16196
16197
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16199 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16200 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16201   $as_echo_n "(cached) " >&6
16202 else
16203   ac_check_lib_save_LIBS=$LIBS
16204 LIBS="-lresolv  $LIBS"
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h.  */
16207
16208 /* Override any GCC internal prototype to avoid an error.
16209    Use char because int might match the return type of a GCC
16210    builtin and then its argument prototype would still apply.  */
16211 #ifdef __cplusplus
16212 extern "C"
16213 #endif
16214 char inet_aton ();
16215 int
16216 main ()
16217 {
16218 return inet_aton ();
16219   ;
16220   return 0;
16221 }
16222 _ACEOF
16223 if ac_fn_c_try_link "$LINENO"; then :
16224   ac_cv_lib_resolv_inet_aton=yes
16225 else
16226   ac_cv_lib_resolv_inet_aton=no
16227 fi
16228 rm -f core conftest.err conftest.$ac_objext \
16229     conftest$ac_exeext conftest.$ac_ext
16230 LIBS=$ac_check_lib_save_LIBS
16231 fi
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16233 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16234 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16235   cat >>confdefs.h <<_ACEOF
16236 #define HAVE_LIBRESOLV 1
16237 _ACEOF
16238
16239   LIBS="-lresolv $LIBS"
16240
16241 fi
16242
16243
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16245 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16246 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16247   $as_echo_n "(cached) " >&6
16248 else
16249   ac_check_lib_save_LIBS=$LIBS
16250 LIBS="-lnsl  $LIBS"
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h.  */
16253
16254 /* Override any GCC internal prototype to avoid an error.
16255    Use char because int might match the return type of a GCC
16256    builtin and then its argument prototype would still apply.  */
16257 #ifdef __cplusplus
16258 extern "C"
16259 #endif
16260 char inet_ntoa ();
16261 int
16262 main ()
16263 {
16264 return inet_ntoa ();
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 if ac_fn_c_try_link "$LINENO"; then :
16270   ac_cv_lib_nsl_inet_ntoa=yes
16271 else
16272   ac_cv_lib_nsl_inet_ntoa=no
16273 fi
16274 rm -f core conftest.err conftest.$ac_objext \
16275     conftest$ac_exeext conftest.$ac_ext
16276 LIBS=$ac_check_lib_save_LIBS
16277 fi
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16279 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16280 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16281   cat >>confdefs.h <<_ACEOF
16282 #define HAVE_LIBNSL 1
16283 _ACEOF
16284
16285   LIBS="-lnsl $LIBS"
16286
16287 fi
16288
16289
16290 OPENSSL_LIBS=
16291 if test "x$WITH_OPENSSL" = xyes; then
16292   old_LIBS=$LIBS
16293   old_LDFLAGS="$LDFLAGS"
16294   if test "x$OPENSSL_LIB_DIR" != "x"; then
16295     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16296   fi
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16298 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16299 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16300   $as_echo_n "(cached) " >&6
16301 else
16302   ac_check_lib_save_LIBS=$LIBS
16303 LIBS="-lcrypto  $LIBS"
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h.  */
16306
16307 /* Override any GCC internal prototype to avoid an error.
16308    Use char because int might match the return type of a GCC
16309    builtin and then its argument prototype would still apply.  */
16310 #ifdef __cplusplus
16311 extern "C"
16312 #endif
16313 char DH_new ();
16314 int
16315 main ()
16316 {
16317 return DH_new ();
16318   ;
16319   return 0;
16320 }
16321 _ACEOF
16322 if ac_fn_c_try_link "$LINENO"; then :
16323   ac_cv_lib_crypto_DH_new=yes
16324 else
16325   ac_cv_lib_crypto_DH_new=no
16326 fi
16327 rm -f core conftest.err conftest.$ac_objext \
16328     conftest$ac_exeext conftest.$ac_ext
16329 LIBS=$ac_check_lib_save_LIBS
16330 fi
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16332 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16333 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16334
16335         LIBS="-lcrypto $LIBS"
16336
16337 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16338
16339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16340 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16341 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16342   $as_echo_n "(cached) " >&6
16343 else
16344   ac_check_lib_save_LIBS=$LIBS
16345 LIBS="-lssl  $LIBS"
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h.  */
16348
16349 /* Override any GCC internal prototype to avoid an error.
16350    Use char because int might match the return type of a GCC
16351    builtin and then its argument prototype would still apply.  */
16352 #ifdef __cplusplus
16353 extern "C"
16354 #endif
16355 char SSL_new ();
16356 int
16357 main ()
16358 {
16359 return SSL_new ();
16360   ;
16361   return 0;
16362 }
16363 _ACEOF
16364 if ac_fn_c_try_link "$LINENO"; then :
16365   ac_cv_lib_ssl_SSL_new=yes
16366 else
16367   ac_cv_lib_ssl_SSL_new=no
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext \
16370     conftest$ac_exeext conftest.$ac_ext
16371 LIBS=$ac_check_lib_save_LIBS
16372 fi
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16374 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16375 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16376
16377
16378 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16379
16380                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16381                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16382                 fi
16383                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16384
16385 fi
16386
16387
16388 fi
16389
16390   LIBS=$old_LIBS
16391   LDFLAGS="$old_LDFLAGS"
16392 fi
16393
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16395 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16396 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16397   $as_echo_n "(cached) " >&6
16398 else
16399   ac_check_lib_save_LIBS=$LIBS
16400 LIBS="-lws2_32  $LIBS"
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h.  */
16403
16404 /* Override any GCC internal prototype to avoid an error.
16405    Use char because int might match the return type of a GCC
16406    builtin and then its argument prototype would still apply.  */
16407 #ifdef __cplusplus
16408 extern "C"
16409 #endif
16410 char htonl ();
16411 int
16412 main ()
16413 {
16414 return htonl ();
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 if ac_fn_c_try_link "$LINENO"; then :
16420   ac_cv_lib_ws2_32_htonl=yes
16421 else
16422   ac_cv_lib_ws2_32_htonl=no
16423 fi
16424 rm -f core conftest.err conftest.$ac_objext \
16425     conftest$ac_exeext conftest.$ac_ext
16426 LIBS=$ac_check_lib_save_LIBS
16427 fi
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16429 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16430 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16431   cat >>confdefs.h <<_ACEOF
16432 #define HAVE_LIBWS2_32 1
16433 _ACEOF
16434
16435   LIBS="-lws2_32 $LIBS"
16436
16437 fi
16438
16439
16440 PCAP_LIBS=
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16442 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16443 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16444   $as_echo_n "(cached) " >&6
16445 else
16446   ac_check_lib_save_LIBS=$LIBS
16447 LIBS="-lpcap  $LIBS"
16448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16449 /* end confdefs.h.  */
16450
16451 /* Override any GCC internal prototype to avoid an error.
16452    Use char because int might match the return type of a GCC
16453    builtin and then its argument prototype would still apply.  */
16454 #ifdef __cplusplus
16455 extern "C"
16456 #endif
16457 char pcap_open_live ();
16458 int
16459 main ()
16460 {
16461 return pcap_open_live ();
16462   ;
16463   return 0;
16464 }
16465 _ACEOF
16466 if ac_fn_c_try_link "$LINENO"; then :
16467   ac_cv_lib_pcap_pcap_open_live=yes
16468 else
16469   ac_cv_lib_pcap_pcap_open_live=no
16470 fi
16471 rm -f core conftest.err conftest.$ac_objext \
16472     conftest$ac_exeext conftest.$ac_ext
16473 LIBS=$ac_check_lib_save_LIBS
16474 fi
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16476 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16477 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16478    PCAP_LIBS="-lpcap"
16479
16480 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16481
16482
16483 else
16484    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16485 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16486 fi
16487
16488
16489
16490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16491 $as_echo_n "checking for a readline compatible library... " >&6; }
16492 if ${vl_cv_lib_readline+:} false; then :
16493   $as_echo_n "(cached) " >&6
16494 else
16495
16496     ORIG_LIBS="$LIBS"
16497     for readline_lib in readline edit editline; do
16498       for termcap_lib in "" termcap curses ncurses; do
16499         if test -z "$termcap_lib"; then
16500           TRY_LIB="-l$readline_lib"
16501         else
16502           TRY_LIB="-l$readline_lib -l$termcap_lib"
16503         fi
16504         LIBS="$ORIG_LIBS $TRY_LIB"
16505         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h.  */
16507
16508 /* Override any GCC internal prototype to avoid an error.
16509    Use char because int might match the return type of a GCC
16510    builtin and then its argument prototype would still apply.  */
16511 #ifdef __cplusplus
16512 extern "C"
16513 #endif
16514 char readline ();
16515 int
16516 main ()
16517 {
16518 return readline ();
16519   ;
16520   return 0;
16521 }
16522 _ACEOF
16523 if ac_fn_c_try_link "$LINENO"; then :
16524   vl_cv_lib_readline="$TRY_LIB"
16525 fi
16526 rm -f core conftest.err conftest.$ac_objext \
16527     conftest$ac_exeext conftest.$ac_ext
16528         if test -n "$vl_cv_lib_readline"; then
16529           LIBREADLINE="$TRY_LIB"
16530           break
16531         fi
16532       done
16533       if test -n "$vl_cv_lib_readline"; then
16534         break
16535       fi
16536     done
16537     if test -z "$vl_cv_lib_readline"; then
16538       vl_cv_lib_readline="no"
16539       LIBS="$ORIG_LIBS"
16540     fi
16541
16542 fi
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16544 $as_echo "$vl_cv_lib_readline" >&6; }
16545
16546   if test "$vl_cv_lib_readline" != "no"; then
16547
16548 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16549
16550     for ac_header in readline.h readline/readline.h
16551 do :
16552   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16553 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16554 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16555   cat >>confdefs.h <<_ACEOF
16556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16557 _ACEOF
16558
16559 fi
16560
16561 done
16562
16563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16564 $as_echo_n "checking whether readline supports history... " >&6; }
16565 if ${vl_cv_lib_readline_history+:} false; then :
16566   $as_echo_n "(cached) " >&6
16567 else
16568
16569       vl_cv_lib_readline_history="no"
16570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h.  */
16572
16573 /* Override any GCC internal prototype to avoid an error.
16574    Use char because int might match the return type of a GCC
16575    builtin and then its argument prototype would still apply.  */
16576 #ifdef __cplusplus
16577 extern "C"
16578 #endif
16579 char add_history ();
16580 int
16581 main ()
16582 {
16583 return add_history ();
16584   ;
16585   return 0;
16586 }
16587 _ACEOF
16588 if ac_fn_c_try_link "$LINENO"; then :
16589   vl_cv_lib_readline_history="yes"
16590 fi
16591 rm -f core conftest.err conftest.$ac_objext \
16592     conftest$ac_exeext conftest.$ac_ext
16593
16594 fi
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16596 $as_echo "$vl_cv_lib_readline_history" >&6; }
16597     if test "$vl_cv_lib_readline_history" = "yes"; then
16598
16599 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16600
16601       for ac_header in history.h readline/history.h
16602 do :
16603   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16604 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16606   cat >>confdefs.h <<_ACEOF
16607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16608 _ACEOF
16609
16610 fi
16611
16612 done
16613
16614     fi
16615   fi
16616
16617
16618
16619
16620 case "$host" in
16621 *-interix*)
16622         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16623         ;;
16624 *-darwin*)
16625         CFLAGS="$CFLAGS -DDARWIN"
16626         LIBS="-framework DirectoryService $LIBS"
16627         ;;
16628 esac
16629
16630 ac_header_dirent=no
16631 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16632   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16634 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16635 if eval \${$as_ac_Header+:} false; then :
16636   $as_echo_n "(cached) " >&6
16637 else
16638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h.  */
16640 #include <sys/types.h>
16641 #include <$ac_hdr>
16642
16643 int
16644 main ()
16645 {
16646 if ((DIR *) 0)
16647 return 0;
16648   ;
16649   return 0;
16650 }
16651 _ACEOF
16652 if ac_fn_c_try_compile "$LINENO"; then :
16653   eval "$as_ac_Header=yes"
16654 else
16655   eval "$as_ac_Header=no"
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 fi
16659 eval ac_res=\$$as_ac_Header
16660                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16661 $as_echo "$ac_res" >&6; }
16662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16663   cat >>confdefs.h <<_ACEOF
16664 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16665 _ACEOF
16666
16667 ac_header_dirent=$ac_hdr; break
16668 fi
16669
16670 done
16671 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16672 if test $ac_header_dirent = dirent.h; then
16673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16674 $as_echo_n "checking for library containing opendir... " >&6; }
16675 if ${ac_cv_search_opendir+:} false; then :
16676   $as_echo_n "(cached) " >&6
16677 else
16678   ac_func_search_save_LIBS=$LIBS
16679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h.  */
16681
16682 /* Override any GCC internal prototype to avoid an error.
16683    Use char because int might match the return type of a GCC
16684    builtin and then its argument prototype would still apply.  */
16685 #ifdef __cplusplus
16686 extern "C"
16687 #endif
16688 char opendir ();
16689 int
16690 main ()
16691 {
16692 return opendir ();
16693   ;
16694   return 0;
16695 }
16696 _ACEOF
16697 for ac_lib in '' dir; do
16698   if test -z "$ac_lib"; then
16699     ac_res="none required"
16700   else
16701     ac_res=-l$ac_lib
16702     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16703   fi
16704   if ac_fn_c_try_link "$LINENO"; then :
16705   ac_cv_search_opendir=$ac_res
16706 fi
16707 rm -f core conftest.err conftest.$ac_objext \
16708     conftest$ac_exeext
16709   if ${ac_cv_search_opendir+:} false; then :
16710   break
16711 fi
16712 done
16713 if ${ac_cv_search_opendir+:} false; then :
16714
16715 else
16716   ac_cv_search_opendir=no
16717 fi
16718 rm conftest.$ac_ext
16719 LIBS=$ac_func_search_save_LIBS
16720 fi
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16722 $as_echo "$ac_cv_search_opendir" >&6; }
16723 ac_res=$ac_cv_search_opendir
16724 if test "$ac_res" != no; then :
16725   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16726
16727 fi
16728
16729 else
16730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16731 $as_echo_n "checking for library containing opendir... " >&6; }
16732 if ${ac_cv_search_opendir+:} false; then :
16733   $as_echo_n "(cached) " >&6
16734 else
16735   ac_func_search_save_LIBS=$LIBS
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h.  */
16738
16739 /* Override any GCC internal prototype to avoid an error.
16740    Use char because int might match the return type of a GCC
16741    builtin and then its argument prototype would still apply.  */
16742 #ifdef __cplusplus
16743 extern "C"
16744 #endif
16745 char opendir ();
16746 int
16747 main ()
16748 {
16749 return opendir ();
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 for ac_lib in '' x; do
16755   if test -z "$ac_lib"; then
16756     ac_res="none required"
16757   else
16758     ac_res=-l$ac_lib
16759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16760   fi
16761   if ac_fn_c_try_link "$LINENO"; then :
16762   ac_cv_search_opendir=$ac_res
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext \
16765     conftest$ac_exeext
16766   if ${ac_cv_search_opendir+:} false; then :
16767   break
16768 fi
16769 done
16770 if ${ac_cv_search_opendir+:} false; then :
16771
16772 else
16773   ac_cv_search_opendir=no
16774 fi
16775 rm conftest.$ac_ext
16776 LIBS=$ac_func_search_save_LIBS
16777 fi
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16779 $as_echo "$ac_cv_search_opendir" >&6; }
16780 ac_res=$ac_cv_search_opendir
16781 if test "$ac_res" != no; then :
16782   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16783
16784 fi
16785
16786 fi
16787
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16789 $as_echo_n "checking for ANSI C header files... " >&6; }
16790 if ${ac_cv_header_stdc+:} false; then :
16791   $as_echo_n "(cached) " >&6
16792 else
16793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794 /* end confdefs.h.  */
16795 #include <stdlib.h>
16796 #include <stdarg.h>
16797 #include <string.h>
16798 #include <float.h>
16799
16800 int
16801 main ()
16802 {
16803
16804   ;
16805   return 0;
16806 }
16807 _ACEOF
16808 if ac_fn_c_try_compile "$LINENO"; then :
16809   ac_cv_header_stdc=yes
16810 else
16811   ac_cv_header_stdc=no
16812 fi
16813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814
16815 if test $ac_cv_header_stdc = yes; then
16816   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h.  */
16819 #include <string.h>
16820
16821 _ACEOF
16822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16823   $EGREP "memchr" >/dev/null 2>&1; then :
16824
16825 else
16826   ac_cv_header_stdc=no
16827 fi
16828 rm -f conftest*
16829
16830 fi
16831
16832 if test $ac_cv_header_stdc = yes; then
16833   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h.  */
16836 #include <stdlib.h>
16837
16838 _ACEOF
16839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16840   $EGREP "free" >/dev/null 2>&1; then :
16841
16842 else
16843   ac_cv_header_stdc=no
16844 fi
16845 rm -f conftest*
16846
16847 fi
16848
16849 if test $ac_cv_header_stdc = yes; then
16850   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16851   if test "$cross_compiling" = yes; then :
16852   :
16853 else
16854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h.  */
16856 #include <ctype.h>
16857 #include <stdlib.h>
16858 #if ((' ' & 0x0FF) == 0x020)
16859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16861 #else
16862 # define ISLOWER(c) \
16863                    (('a' <= (c) && (c) <= 'i') \
16864                      || ('j' <= (c) && (c) <= 'r') \
16865                      || ('s' <= (c) && (c) <= 'z'))
16866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16867 #endif
16868
16869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16870 int
16871 main ()
16872 {
16873   int i;
16874   for (i = 0; i < 256; i++)
16875     if (XOR (islower (i), ISLOWER (i))
16876         || toupper (i) != TOUPPER (i))
16877       return 2;
16878   return 0;
16879 }
16880 _ACEOF
16881 if ac_fn_c_try_run "$LINENO"; then :
16882
16883 else
16884   ac_cv_header_stdc=no
16885 fi
16886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16887   conftest.$ac_objext conftest.beam conftest.$ac_ext
16888 fi
16889
16890 fi
16891 fi
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16893 $as_echo "$ac_cv_header_stdc" >&6; }
16894 if test $ac_cv_header_stdc = yes; then
16895
16896 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16897
16898 fi
16899
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16901 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16902 if ${ac_cv_header_time+:} false; then :
16903   $as_echo_n "(cached) " >&6
16904 else
16905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h.  */
16907 #include <sys/types.h>
16908 #include <sys/time.h>
16909 #include <time.h>
16910
16911 int
16912 main ()
16913 {
16914 if ((struct tm *) 0)
16915 return 0;
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_compile "$LINENO"; then :
16921   ac_cv_header_time=yes
16922 else
16923   ac_cv_header_time=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_header_time" >&5
16928 $as_echo "$ac_cv_header_time" >&6; }
16929 if test $ac_cv_header_time = yes; then
16930
16931 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16932
16933 fi
16934
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16936 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16937 if ${ac_cv_header_sys_wait_h+:} false; then :
16938   $as_echo_n "(cached) " >&6
16939 else
16940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h.  */
16942 #include <sys/types.h>
16943 #include <sys/wait.h>
16944 #ifndef WEXITSTATUS
16945 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16946 #endif
16947 #ifndef WIFEXITED
16948 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16949 #endif
16950
16951 int
16952 main ()
16953 {
16954   int s;
16955   wait (&s);
16956   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 if ac_fn_c_try_compile "$LINENO"; then :
16962   ac_cv_header_sys_wait_h=yes
16963 else
16964   ac_cv_header_sys_wait_h=no
16965 fi
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 fi
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16969 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16970 if test $ac_cv_header_sys_wait_h = yes; then
16971
16972 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16973
16974 fi
16975
16976
16977 for ac_header in \
16978         unistd.h \
16979         crypt.h \
16980         errno.h \
16981         resource.h \
16982         sys/resource.h \
16983         getopt.h \
16984         malloc.h \
16985         utmp.h \
16986         utmpx.h \
16987         signal.h \
16988         sys/select.h \
16989         syslog.h \
16990         inttypes.h \
16991         stdint.h \
16992         stdio.h \
16993         netdb.h \
16994         semaphore.h \
16995         arpa/inet.h \
16996         netinet/in.h \
16997         sys/types.h \
16998         sys/socket.h \
16999         winsock.h \
17000         utime.h \
17001         sys/time.h \
17002         sys/wait.h \
17003         sys/security.h \
17004         fcntl.h \
17005         sys/fcntl.h \
17006         sys/prctl.h \
17007         sys/un.h \
17008         glob.h \
17009         prot.h \
17010         pwd.h \
17011         grp.h \
17012         stddef.h \
17013         fnmatch.h \
17014         sia.h \
17015         siad.h
17016
17017 do :
17018   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17019 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17020 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17021   cat >>confdefs.h <<_ACEOF
17022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17023 _ACEOF
17024
17025 fi
17026
17027 done
17028
17029
17030 for ac_header in net/if.h
17031 do :
17032   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
17033 # include <sys/socket.h>
17034 # endif
17035
17036 "
17037 if test "x$ac_cv_header_net_if_h" = xyes; then :
17038   cat >>confdefs.h <<_ACEOF
17039 #define HAVE_NET_IF_H 1
17040 _ACEOF
17041
17042 fi
17043
17044 done
17045
17046
17047 REGEX=no
17048 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17049 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17050
17051 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17052
17053 fi
17054
17055
17056 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17057
17058 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17059
17060   REGEX_EXTENDED=yes
17061   REGEX_PCRE=yes
17062   REGEX=yes
17063   LIBS="$LIBS -lpcreposix"
17064 else
17065
17066 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17067 if test "x$ac_cv_header_regex_h" = xyes; then :
17068
17069 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17070
17071 fi
17072
17073
17074 if test "x$ac_cv_header_regex_h" = "xyes"; then
17075   REGEX_EXTENDED=no
17076   REGEX_PCRE=no
17077   REGEX=yes
17078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h.  */
17080 #include <regex.h>
17081      #ifdef REG_EXTENDED
17082        yes
17083      #endif
17084
17085 _ACEOF
17086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17087   $EGREP "yes" >/dev/null 2>&1; then :
17088
17089 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17090  REGEX_EXTENDED=yes
17091 fi
17092 rm -f conftest*
17093
17094 fi
17095 fi
17096
17097
17098
17099
17100
17101 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17102 then
17103
17104 $as_echo "#define OSFC2 /**/" >>confdefs.h
17105
17106 fi
17107
17108 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17109 then
17110
17111 $as_echo "#define OSFSIA /**/" >>confdefs.h
17112
17113 fi
17114
17115 OPENSSL_INCLUDE="-DNO_OPENSSL"
17116 if test "x$WITH_OPENSSL" = xyes; then
17117   if test "x$OPENSSL_LIBS" = "x"; then
17118     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17119 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17120   else
17121     old_CPPFLAGS=$CPPFLAGS
17122     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17123         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17124     fi
17125         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17126     for ac_header in \
17127         openssl/ssl.h \
17128         openssl/crypto.h \
17129         openssl/err.h \
17130         openssl/evp.h \
17131         openssl/md5.h \
17132         openssl/md4.h \
17133         openssl/sha.h \
17134         openssl/ocsp.h \
17135         openssl/engine.h
17136 do :
17137   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17138 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17140   cat >>confdefs.h <<_ACEOF
17141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17142 _ACEOF
17143
17144 else
17145   OPENSSL_LIBS=
17146
17147 fi
17148
17149 done
17150
17151     if test "x$OPENSSL_LIBS" != "x"; then
17152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17153 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17154         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h.  */
17156 #include <openssl/crypto.h>
17157              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17158              yes
17159              #endif
17160
17161 _ACEOF
17162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17163   $EGREP "yes" >/dev/null 2>&1; then :
17164   goodssl="yes"
17165 fi
17166 rm -f conftest*
17167
17168         if test "x$goodssl" != "xyes"; then
17169             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17170 $as_echo "no" >&6; }
17171             OPENSSL_LIBS=
17172         else
17173             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17174 $as_echo "yes" >&6; }
17175             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17176                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17177             else
17178                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17179             fi
17180         fi
17181     fi
17182     CPPFLAGS=$old_CPPFLAGS
17183   fi
17184 fi
17185
17186
17187 export OPENSSL_LIBS
17188
17189 if test "x$PCAP_LIBS" = x; then
17190     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17191 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17192 else
17193     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17194 if test "x$ac_cv_header_pcap_h" = xyes; then :
17195
17196 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17197
17198 else
17199    PCAP_LIBS=
17200         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17201 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17202
17203 fi
17204
17205
17206
17207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17208 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17209 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17210   $as_echo_n "(cached) " >&6
17211 else
17212   ac_check_lib_save_LIBS=$LIBS
17213 LIBS="-lpcap  $LIBS"
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h.  */
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218    Use char because int might match the return type of a GCC
17219    builtin and then its argument prototype would still apply.  */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char pcap_fopen_offline ();
17224 int
17225 main ()
17226 {
17227 return pcap_fopen_offline ();
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 if ac_fn_c_try_link "$LINENO"; then :
17233   ac_cv_lib_pcap_pcap_fopen_offline=yes
17234 else
17235   ac_cv_lib_pcap_pcap_fopen_offline=no
17236 fi
17237 rm -f core conftest.err conftest.$ac_objext \
17238     conftest$ac_exeext conftest.$ac_ext
17239 LIBS=$ac_check_lib_save_LIBS
17240 fi
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17242 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17243 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17244
17245 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17246
17247
17248 fi
17249
17250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17251 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17252 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17253   $as_echo_n "(cached) " >&6
17254 else
17255   ac_check_lib_save_LIBS=$LIBS
17256 LIBS="-lpcap  $LIBS"
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h.  */
17259
17260 /* Override any GCC internal prototype to avoid an error.
17261    Use char because int might match the return type of a GCC
17262    builtin and then its argument prototype would still apply.  */
17263 #ifdef __cplusplus
17264 extern "C"
17265 #endif
17266 char pcap_dump_fopen ();
17267 int
17268 main ()
17269 {
17270 return pcap_dump_fopen ();
17271   ;
17272   return 0;
17273 }
17274 _ACEOF
17275 if ac_fn_c_try_link "$LINENO"; then :
17276   ac_cv_lib_pcap_pcap_dump_fopen=yes
17277 else
17278   ac_cv_lib_pcap_pcap_dump_fopen=no
17279 fi
17280 rm -f core conftest.err conftest.$ac_objext \
17281     conftest$ac_exeext conftest.$ac_ext
17282 LIBS=$ac_check_lib_save_LIBS
17283 fi
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17285 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17286 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17287
17288 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17289
17290
17291 fi
17292
17293 fi
17294
17295
17296
17297 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17298 if test "x$ac_cv_type_off_t" = xyes; then :
17299
17300 else
17301
17302 cat >>confdefs.h <<_ACEOF
17303 #define off_t long int
17304 _ACEOF
17305
17306 fi
17307
17308 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17309 if test "x$ac_cv_type_pid_t" = xyes; then :
17310
17311 else
17312
17313 cat >>confdefs.h <<_ACEOF
17314 #define pid_t int
17315 _ACEOF
17316
17317 fi
17318
17319 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17320 if test "x$ac_cv_type_size_t" = xyes; then :
17321
17322 else
17323
17324 cat >>confdefs.h <<_ACEOF
17325 #define size_t unsigned int
17326 _ACEOF
17327
17328 fi
17329
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17331 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17332 if ${ac_cv_type_uid_t+:} false; then :
17333   $as_echo_n "(cached) " >&6
17334 else
17335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h.  */
17337 #include <sys/types.h>
17338
17339 _ACEOF
17340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17341   $EGREP "uid_t" >/dev/null 2>&1; then :
17342   ac_cv_type_uid_t=yes
17343 else
17344   ac_cv_type_uid_t=no
17345 fi
17346 rm -f conftest*
17347
17348 fi
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17350 $as_echo "$ac_cv_type_uid_t" >&6; }
17351 if test $ac_cv_type_uid_t = no; then
17352
17353 $as_echo "#define uid_t int" >>confdefs.h
17354
17355
17356 $as_echo "#define gid_t int" >>confdefs.h
17357
17358 fi
17359
17360
17361
17362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17363 $as_echo_n "checking for socklen_t... " >&6; }
17364 if ${ac_cv_type_socklen_t+:} false; then :
17365   $as_echo_n "(cached) " >&6
17366 else
17367    ac_cv_type_socklen_t=no
17368       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369 /* end confdefs.h.  */
17370 #ifdef HAVE_SYS_TYPES_H
17371 #include <sys/types.h>
17372 #endif
17373 #ifdef HAVE_SYS_SOCKET_H
17374 #include <sys/socket.h>
17375 #endif
17376
17377 int
17378 main ()
17379 {
17380 socklen_t foo
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 if ac_fn_c_try_compile "$LINENO"; then :
17386   ac_cv_type_socklen_t=yes
17387 fi
17388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17389
17390
17391 fi
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17393 $as_echo "$ac_cv_type_socklen_t" >&6; }
17394
17395   if test "$ac_cv_type_socklen_t" != "yes"; then
17396
17397 $as_echo "#define socklen_t int" >>confdefs.h
17398
17399   fi
17400
17401
17402
17403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17404 $as_echo_n "checking for uint8_t... " >&6; }
17405 if ${ac_cv_type_uint8_t+:} false; then :
17406   $as_echo_n "(cached) " >&6
17407 else
17408    ac_cv_type_uint8_t=no
17409       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h.  */
17411 #ifdef HAVE_INTTYPES_H
17412 #include <inttypes.h>
17413 #endif
17414 #ifdef HAVE_STDINT_H
17415 #include <stdint.h>
17416 #endif
17417
17418 int
17419 main ()
17420 {
17421 uint8_t foo
17422   ;
17423   return 0;
17424 }
17425 _ACEOF
17426 if ac_fn_c_try_compile "$LINENO"; then :
17427   ac_cv_type_uint8_t=yes
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430
17431
17432 fi
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17434 $as_echo "$ac_cv_type_uint8_t" >&6; }
17435
17436   if test "$ac_cv_type_uint8_t" != "yes"; then
17437
17438 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17439
17440   fi
17441
17442
17443
17444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17445 $as_echo_n "checking for uint16_t... " >&6; }
17446 if ${ac_cv_type_uint16_t+:} false; then :
17447   $as_echo_n "(cached) " >&6
17448 else
17449    ac_cv_type_uint16_t=no
17450       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h.  */
17452 #ifdef HAVE_INTTYPES_H
17453 #include <inttypes.h>
17454 #endif
17455 #ifdef HAVE_STDINT_H
17456 #include <stdint.h>
17457 #endif
17458
17459 int
17460 main ()
17461 {
17462 uint16_t foo
17463   ;
17464   return 0;
17465 }
17466 _ACEOF
17467 if ac_fn_c_try_compile "$LINENO"; then :
17468   ac_cv_type_uint16_t=yes
17469 fi
17470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471
17472
17473 fi
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17475 $as_echo "$ac_cv_type_uint16_t" >&6; }
17476
17477   if test "$ac_cv_type_uint16_t" != "yes"; then
17478
17479 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17480
17481   fi
17482
17483
17484
17485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17486 $as_echo_n "checking for uint32_t... " >&6; }
17487 if ${ac_cv_type_uint32_t+:} false; then :
17488   $as_echo_n "(cached) " >&6
17489 else
17490    ac_cv_type_uint32_t=no
17491       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h.  */
17493 #ifdef HAVE_INTTYPES_H
17494 #include <inttypes.h>
17495 #endif
17496 #ifdef HAVE_STDINT_H
17497 #include <stdint.h>
17498 #endif
17499
17500 int
17501 main ()
17502 {
17503 uint32_t foo
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 if ac_fn_c_try_compile "$LINENO"; then :
17509   ac_cv_type_uint32_t=yes
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512
17513
17514 fi
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17516 $as_echo "$ac_cv_type_uint32_t" >&6; }
17517
17518   if test "$ac_cv_type_uint32_t" != "yes"; then
17519
17520 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17521
17522   fi
17523
17524
17525 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17526 #ifdef HAVE_NETINET_IN_H
17527 #include <netinet/in.h>
17528 #endif
17529
17530 "
17531 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17532
17533 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17534
17535 fi
17536
17537
17538 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17539 #ifdef HAVE_NETINET_IN_H
17540 #include <netinet/in.h>
17541 #endif
17542 #ifdef HAVE_SYS_SOCKET_H
17543 #include <sys/socket.h>
17544 #endif
17545
17546 "
17547 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17548
17549 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17550
17551 fi
17552
17553
17554 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17555 #ifdef HAVE_NETINET_IN_H
17556 #include <netinet/in.h>
17557 #endif
17558
17559 "
17560 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17561
17562 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17563
17564 fi
17565
17566
17567 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17568 #ifdef HAVE_SYS_TYPES_H
17569 #include <sys/types.h>
17570 #endif
17571 #ifdef HAVE_SYS_SOCKET_H
17572 #include <sys/socket.h>
17573 #endif
17574 #ifdef HAVE_NETDB_H
17575 #include <netdb.h>
17576 #endif
17577
17578 "
17579 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17580
17581 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17582
17583 fi
17584
17585
17586 for ac_func in \
17587         getopt_long \
17588         fcntl \
17589         strsignal \
17590         sigaction \
17591         sigprocmask \
17592         pthread_sigmask \
17593         snprintf \
17594         vsnprintf \
17595         setsid \
17596         strncasecmp \
17597         strcasecmp \
17598         localtime_r \
17599         ctime_r \
17600         gmtime_r \
17601         strsep \
17602         inet_aton \
17603         inet_pton \
17604         inet_ntop \
17605         setlinebuf \
17606         setvbuf \
17607         getusershell \
17608         initgroups \
17609         getaddrinfo \
17610         getnameinfo \
17611         closefrom \
17612         gettimeofday \
17613         getpeereid \
17614         setuid \
17615         setresuid \
17616         getresuid \
17617         strlcat \
17618         strlcpy
17619
17620 do :
17621   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17624   cat >>confdefs.h <<_ACEOF
17625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17626 _ACEOF
17627
17628 fi
17629 done
17630
17631 for ac_func in \
17632         crypt \
17633         strncasecmp \
17634         strcasecmp \
17635         inet_aton \
17636         setlinebuf \
17637         getusershell \
17638         endusershell
17639
17640 do
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17642 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17643 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17644   $as_echo_n "(cached) " >&6
17645 else
17646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h.  */
17648
17649 #include <stdio.h>
17650 #include <string.h>
17651 #ifdef HAVE_UNISTD_H
17652 #include <unistd.h>
17653 #endif
17654 #ifdef HAVE_CRYPT_H
17655 #include <crypt.h>
17656 #endif
17657 #ifdef HAVE_ERRNO_H
17658 #include <errno.h>
17659 #endif
17660 #ifdef HAVE_RESOURCE_H
17661 #include <resource.h>
17662 #endif
17663 #ifdef HAVE_GETOPT_H
17664 #include <getopt.h>
17665 #endif
17666 #ifdef HAVE_MALLOC_H
17667 #include <malloc.h>
17668 #endif
17669 #ifdef HAVE_UTMP_H
17670 #include <utmp.h>
17671 #endif
17672 #ifdef HAVE_UTMPX_H
17673 #include <utmpx.h>
17674 #endif
17675 #ifdef HAVE_SYS_SELECT_H
17676 #include <sys/select.h>
17677 #endif
17678 #ifdef HAVE_DLFCN_H
17679 #include <dlfcn.h>
17680 #endif
17681 #ifdef HAVE_REGEX_H
17682 #include <regex.h>
17683 #endif
17684 #ifdef HAVE_SYSLOG_H
17685 #include <syslog.h>
17686 #endif
17687 #ifdef HAVE_INTTYPES_H
17688 #include <inttypes.h>
17689 #endif
17690 #ifdef HAVE_STDINT_H
17691 #include <stdint.h>
17692 #endif
17693 #ifdef HAVE_ARPA_INET_H
17694 #include <arpa/inet.h>
17695 #endif
17696
17697 int
17698 main ()
17699 {
17700 char *(*pfn) = (char *(*)) $ac_func
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705 if ac_fn_c_try_compile "$LINENO"; then :
17706   eval "radius_cv_decl_needed_$ac_func=no"
17707 else
17708   eval "radius_cv_decl_needed_$ac_func=yes"
17709 fi
17710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711 fi
17712
17713 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17715 $as_echo "yes" >&6; }
17716   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17717   cat >>confdefs.h <<_ACEOF
17718 #define $radius_tr_decl 1
17719 _ACEOF
17720
17721 else
17722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723 $as_echo "no" >&6; }
17724 fi
17725
17726 done
17727
17728
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17730 $as_echo_n "checking return type of signal handlers... " >&6; }
17731 if ${ac_cv_type_signal+:} false; then :
17732   $as_echo_n "(cached) " >&6
17733 else
17734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h.  */
17736 #include <sys/types.h>
17737 #include <signal.h>
17738
17739 int
17740 main ()
17741 {
17742 return *(signal (0, 0)) (0) == 1;
17743   ;
17744   return 0;
17745 }
17746 _ACEOF
17747 if ac_fn_c_try_compile "$LINENO"; then :
17748   ac_cv_type_signal=int
17749 else
17750   ac_cv_type_signal=void
17751 fi
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 fi
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17755 $as_echo "$ac_cv_type_signal" >&6; }
17756
17757 cat >>confdefs.h <<_ACEOF
17758 #define RETSIGTYPE $ac_cv_type_signal
17759 _ACEOF
17760
17761
17762
17763 if test "x$ac_cv_header_utmpx_h" = "xyes"
17764 then
17765
17766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17767 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17768
17769
17770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h.  */
17772
17773 #include <utmpx.h>
17774 #ifdef HAVE_STDDEF_H
17775 #include <stddef.h>
17776 #endif
17777 #ifndef offsetof
17778 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17779 #endif
17780
17781 int
17782 main ()
17783 {
17784  int foo = offsetof(struct utmpx, ut_xtime)
17785   ;
17786   return 0;
17787 }
17788 _ACEOF
17789 if ac_fn_c_try_compile "$LINENO"; then :
17790   has_element=" "
17791 else
17792   has_element=
17793 fi
17794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795
17796   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17797   if test "x$has_element" != "x"; then
17798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17799 $as_echo "yes" >&6; }
17800     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17801   else
17802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17804     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17805  fi
17806
17807  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17808  then
17809
17810 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17811
17812  fi
17813 fi
17814
17815
17816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17817 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17818
17819
17820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h.  */
17822
17823 #include <netinet/in.h>
17824 #ifdef HAVE_STDDEF_H
17825 #include <stddef.h>
17826 #endif
17827 #ifndef offsetof
17828 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17829 #endif
17830
17831 int
17832 main ()
17833 {
17834  int foo = offsetof(struct in_pktinfo, ipi_addr)
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 if ac_fn_c_try_compile "$LINENO"; then :
17840   has_element=" "
17841 else
17842   has_element=
17843 fi
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845
17846   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17847   if test "x$has_element" != "x"; then
17848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17849 $as_echo "yes" >&6; }
17850     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17851   else
17852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17853 $as_echo "no" >&6; }
17854     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17855  fi
17856
17857 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17858 then
17859
17860 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17861
17862 fi
17863
17864
17865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17866 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17867
17868
17869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h.  */
17871
17872 #include <netinet/in.h>
17873 #ifdef HAVE_STDDEF_H
17874 #include <stddef.h>
17875 #endif
17876 #ifndef offsetof
17877 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17878 #endif
17879
17880 int
17881 main ()
17882 {
17883  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17884   ;
17885   return 0;
17886 }
17887 _ACEOF
17888 if ac_fn_c_try_compile "$LINENO"; then :
17889   has_element=" "
17890 else
17891   has_element=
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894
17895   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17896   if test "x$has_element" != "x"; then
17897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17898 $as_echo "yes" >&6; }
17899     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17900   else
17901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17902 $as_echo "no" >&6; }
17903     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17904  fi
17905
17906 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17907 then
17908
17909 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17910
17911 fi
17912
17913
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17915 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17916 if ${ac_cv_c_const+:} false; then :
17917   $as_echo_n "(cached) " >&6
17918 else
17919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h.  */
17921
17922 int
17923 main ()
17924 {
17925
17926 #ifndef __cplusplus
17927   /* Ultrix mips cc rejects this sort of thing.  */
17928   typedef int charset[2];
17929   const charset cs = { 0, 0 };
17930   /* SunOS 4.1.1 cc rejects this.  */
17931   char const *const *pcpcc;
17932   char **ppc;
17933   /* NEC SVR4.0.2 mips cc rejects this.  */
17934   struct point {int x, y;};
17935   static struct point const zero = {0,0};
17936   /* AIX XL C 1.02.0.0 rejects this.
17937      It does not let you subtract one const X* pointer from another in
17938      an arm of an if-expression whose if-part is not a constant
17939      expression */
17940   const char *g = "string";
17941   pcpcc = &g + (g ? g-g : 0);
17942   /* HPUX 7.0 cc rejects these. */
17943   ++pcpcc;
17944   ppc = (char**) pcpcc;
17945   pcpcc = (char const *const *) ppc;
17946   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17947     char tx;
17948     char *t = &tx;
17949     char const *s = 0 ? (char *) 0 : (char const *) 0;
17950
17951     *t++ = 0;
17952     if (s) return 0;
17953   }
17954   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17955     int x[] = {25, 17};
17956     const int *foo = &x[0];
17957     ++foo;
17958   }
17959   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17960     typedef const int *iptr;
17961     iptr p = 0;
17962     ++p;
17963   }
17964   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17965        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17966     struct s { int j; const int *ap[3]; } bx;
17967     struct s *b = &bx; b->j = 5;
17968   }
17969   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17970     const int foo = 10;
17971     if (!foo) return 0;
17972   }
17973   return !cs[0] && !zero.x;
17974 #endif
17975
17976   ;
17977   return 0;
17978 }
17979 _ACEOF
17980 if ac_fn_c_try_compile "$LINENO"; then :
17981   ac_cv_c_const=yes
17982 else
17983   ac_cv_c_const=no
17984 fi
17985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17986 fi
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17988 $as_echo "$ac_cv_c_const" >&6; }
17989 if test $ac_cv_c_const = no; then
17990
17991 $as_echo "#define const /**/" >>confdefs.h
17992
17993 fi
17994
17995
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
17997 $as_echo_n "checking type of OS... " >&6; }
17998 OS=`uname -s`
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
18000 $as_echo "$OS" >&6; }
18001 if test "$OS" = "OS/2"; then
18002         LIBPREFIX=
18003 else
18004         LIBPREFIX=lib
18005 fi
18006
18007
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
18009 $as_echo_n "checking for developer gcc flags... " >&6; }
18010
18011
18012 if test "x$developer" = "xyes"; then
18013   if test "x$GCC" = "xyes"; then
18014     devflags="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length  -Wformat-nonliteral -Wformat-security -Wformat=2"
18015     CFLAGS="$CFLAGS $devflags"
18016     INSTALLSTRIP=""
18017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
18018 $as_echo "yes.  Using $devflags" >&6; }
18019   fi
18020
18021   if test "x$EXPERIMENTAL" != "xno"; then
18022     EXPERIMENTAL=yes
18023   fi
18024 else
18025   devflags=""
18026   CFLAGS="$CFLAGS -DNDEBUG"
18027   INSTALLSTRIP=""
18028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
18029 $as_echo "no." >&6; }
18030 fi
18031
18032 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
18033   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
18034
18035 cat >>confdefs.h <<_ACEOF
18036 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
18037 _ACEOF
18038
18039 fi
18040
18041
18042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18043 $as_echo_n "checking for TLS... " >&6; }
18044     if test "$cross_compiling" = yes; then :
18045   have_tls=no
18046 else
18047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h.  */
18049  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
18050 _ACEOF
18051 if ac_fn_c_try_run "$LINENO"; then :
18052   have_tls=yes
18053 else
18054   have_tls=no
18055 fi
18056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18057   conftest.$ac_objext conftest.beam conftest.$ac_ext
18058 fi
18059
18060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18061 $as_echo "$have_tls" >&6; }
18062     if test "$have_tls" = "yes"; then
18063
18064 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18065
18066     fi
18067
18068
18069
18070 old_LIBS="$LIBS"
18071 LIBS="$LIBS $LIBLTDL"
18072 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18073 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18074
18075 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18076
18077 fi
18078
18079 LIBS="$old_LIBS"
18080
18081 talloc_include_dir=
18082
18083 # Check whether --with-talloc-include-dir was given.
18084 if test "${with_talloc_include_dir+set}" = set; then :
18085   withval=$with_talloc_include_dir; case "$withval" in
18086             no)
18087                 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
18088             ;;
18089                 yes)
18090             ;;
18091             *)
18092                 talloc_include_dir="$withval"
18093             ;;
18094         esac
18095 fi
18096
18097
18098
18099 smart_try_dir="$talloc_include_dir"
18100
18101
18102 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
18104 $as_echo_n "checking for talloc.h... " >&6; }
18105
18106 old_CFLAGS="$CFLAGS"
18107 smart_include=
18108 smart_include_dir=
18109
18110 if test "x$smart_try_dir" != "x"; then
18111   for try in $smart_try_dir; do
18112     CFLAGS="$old_CFLAGS -I$try"
18113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h.  */
18115
18116                     #include <talloc.h>
18117 int
18118 main ()
18119 {
18120  int a = 1;
18121   ;
18122   return 0;
18123 }
18124 _ACEOF
18125 if ac_fn_c_try_compile "$LINENO"; then :
18126   smart_include="-I$try"
18127 else
18128   smart_include=
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131     if test "x$smart_include" != "x"; then
18132       break;
18133     fi
18134   done
18135   CFLAGS="$old_CFLAGS"
18136 fi
18137
18138 if test "x$smart_include" = "x"; then
18139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h.  */
18141
18142                   #include <talloc.h>
18143 int
18144 main ()
18145 {
18146  int a = 1;
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 if ac_fn_c_try_compile "$LINENO"; then :
18152   smart_include=" "
18153 else
18154   smart_include=
18155 fi
18156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18157 fi
18158
18159 if test "x$smart_include" = "x"; then
18160
18161
18162 if test "x$LOCATE" != "x"; then
18163         DIRS=
18164   file=talloc.h
18165
18166   for x in `${LOCATE} $file 2>/dev/null`; do
18167                                         base=`echo $x | sed "s%/${file}%%"`
18168     if test "x$x" = "x$base"; then
18169       continue;
18170     fi
18171
18172     dir=`${DIRNAME} $x 2>/dev/null`
18173                 exclude=`echo ${dir} | ${GREP} /home`
18174     if test "x$exclude" != "x"; then
18175       continue
18176     fi
18177
18178                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
18179     if test "x$already" = "x"; then
18180       DIRS="$DIRS $dir"
18181     fi
18182   done
18183 fi
18184
18185 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
18186
18187
18188   for try in $smart_include_dir /usr/local/include /opt/include; do
18189     CFLAGS="$old_CFLAGS -I$try"
18190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h.  */
18192
18193                     #include <talloc.h>
18194 int
18195 main ()
18196 {
18197  int a = 1;
18198   ;
18199   return 0;
18200 }
18201 _ACEOF
18202 if ac_fn_c_try_compile "$LINENO"; then :
18203   smart_include="-I$try"
18204 else
18205   smart_include=
18206 fi
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18208     if test "x$smart_include" != "x"; then
18209       break;
18210     fi
18211   done
18212   CFLAGS="$old_CFLAGS"
18213 fi
18214
18215 if test "x$smart_include" != "x"; then
18216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18217 $as_echo "yes" >&6; }
18218   eval "ac_cv_header_$ac_safe=yes"
18219   CFLAGS="$old_CFLAGS $smart_include"
18220   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
18221 else
18222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18223 $as_echo "no" >&6; }
18224 fi
18225
18226 if test "x$ac_cv_header_talloc_h" != "xyes"; then
18227         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
18228 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
18229         as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
18230 else
18231         INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
18232         LIBS="-ltalloc ${LIBS}"
18233 fi
18234
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18236 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18237 if ${ac_cv_lib_crypt_crypt+:} false; then :
18238   $as_echo_n "(cached) " >&6
18239 else
18240   ac_check_lib_save_LIBS=$LIBS
18241 LIBS="-lcrypt  $LIBS"
18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243 /* end confdefs.h.  */
18244
18245 /* Override any GCC internal prototype to avoid an error.
18246    Use char because int might match the return type of a GCC
18247    builtin and then its argument prototype would still apply.  */
18248 #ifdef __cplusplus
18249 extern "C"
18250 #endif
18251 char crypt ();
18252 int
18253 main ()
18254 {
18255 return crypt ();
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 if ac_fn_c_try_link "$LINENO"; then :
18261   ac_cv_lib_crypt_crypt=yes
18262 else
18263   ac_cv_lib_crypt_crypt=no
18264 fi
18265 rm -f core conftest.err conftest.$ac_objext \
18266     conftest$ac_exeext conftest.$ac_ext
18267 LIBS=$ac_check_lib_save_LIBS
18268 fi
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18270 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18271 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18272   CRYPTLIB="-lcrypt"
18273
18274 fi
18275
18276 if test "$CRYPTLIB" != ""; then
18277
18278 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18279
18280 else
18281   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18282 if test "x$ac_cv_func_crypt" = xyes; then :
18283
18284 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18285
18286 fi
18287
18288 fi
18289
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18291 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18292 if ${ac_cv_lib_cipher_setkey+:} false; then :
18293   $as_echo_n "(cached) " >&6
18294 else
18295   ac_check_lib_save_LIBS=$LIBS
18296 LIBS="-lcipher  $LIBS"
18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h.  */
18299
18300 /* Override any GCC internal prototype to avoid an error.
18301    Use char because int might match the return type of a GCC
18302    builtin and then its argument prototype would still apply.  */
18303 #ifdef __cplusplus
18304 extern "C"
18305 #endif
18306 char setkey ();
18307 int
18308 main ()
18309 {
18310 return setkey ();
18311   ;
18312   return 0;
18313 }
18314 _ACEOF
18315 if ac_fn_c_try_link "$LINENO"; then :
18316   ac_cv_lib_cipher_setkey=yes
18317 else
18318   ac_cv_lib_cipher_setkey=no
18319 fi
18320 rm -f core conftest.err conftest.$ac_objext \
18321     conftest$ac_exeext conftest.$ac_ext
18322 LIBS=$ac_check_lib_save_LIBS
18323 fi
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18325 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18326 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18327   CRYPTLIB="${CRYPTLIB} -lcipher"
18328
18329 fi
18330
18331
18332
18333
18334 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18335
18336
18337 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18338
18339
18340 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18341
18342 gethostbyaddrrstyle=""
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18344 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18345 case "$host" in
18346 *-freebsd*)
18347         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18348 #ifdef HAVE_NETDB_H
18349 #include <netdb.h>
18350 #endif
18351
18352 "
18353 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18354   ac_have_decl=1
18355 else
18356   ac_have_decl=0
18357 fi
18358
18359 cat >>confdefs.h <<_ACEOF
18360 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18361 _ACEOF
18362 if test $ac_have_decl = 1; then :
18363
18364 else
18365
18366
18367 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18368
18369                 gethostbyaddrrstyle=BSD
18370                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18371 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18372
18373 fi
18374
18375         ;;
18376 esac
18377 if test "x$gethostbyaddrrstyle" = "x"; then
18378         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h.  */
18380
18381 #include <stdio.h>
18382 #include <netdb.h>
18383
18384 int
18385 main ()
18386 {
18387  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18388   ;
18389   return 0;
18390 }
18391 _ACEOF
18392 if ac_fn_c_try_link "$LINENO"; then :
18393
18394
18395 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18396
18397         gethostbyaddrrstyle=GNU
18398
18399 fi
18400 rm -f core conftest.err conftest.$ac_objext \
18401     conftest$ac_exeext conftest.$ac_ext
18402 fi
18403 if test "x$gethostbyaddrrstyle" = "x"; then
18404         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h.  */
18406
18407 #include <stdio.h>
18408 #include <netdb.h>
18409
18410 int
18411 main ()
18412 {
18413  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18414   ;
18415   return 0;
18416 }
18417 _ACEOF
18418 if ac_fn_c_try_link "$LINENO"; then :
18419
18420
18421 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18422
18423                 gethostbyaddrrstyle=SYSV
18424
18425 fi
18426 rm -f core conftest.err conftest.$ac_objext \
18427     conftest$ac_exeext conftest.$ac_ext
18428 fi
18429 if test "x$gethostbyaddrrstyle" = "x"; then
18430         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h.  */
18432
18433 #include <stdio.h>
18434 #include <netdb.h>
18435
18436 int
18437 main ()
18438 {
18439  gethostbyaddr(NULL, 0, 0)
18440   ;
18441   return 0;
18442 }
18443 _ACEOF
18444 if ac_fn_c_try_link "$LINENO"; then :
18445
18446
18447 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18448
18449                 gethostbyaddrrstyle=BSD
18450
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext \
18453     conftest$ac_exeext conftest.$ac_ext
18454 fi
18455
18456 if test "x$gethostbyaddrrstyle" = "x"; then
18457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18458 $as_echo "none!  It must not exist, here." >&6; }
18459 else
18460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18461 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18462 fi
18463
18464 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18465         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18466 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18467 fi
18468
18469 gethostbynamerstyle=""
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18471 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h.  */
18474
18475 #include <stdio.h>
18476 #include <netdb.h>
18477
18478 int
18479 main ()
18480 {
18481  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 if ac_fn_c_try_link "$LINENO"; then :
18487
18488
18489 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18490
18491         gethostbynamerstyle=GNU
18492
18493 fi
18494 rm -f core conftest.err conftest.$ac_objext \
18495     conftest$ac_exeext conftest.$ac_ext
18496 if test "x$gethostbynamerstyle" = "x"; then
18497         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h.  */
18499
18500 #include <stdio.h>
18501 #include <netdb.h>
18502
18503 int
18504 main ()
18505 {
18506  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18507   ;
18508   return 0;
18509 }
18510 _ACEOF
18511 if ac_fn_c_try_link "$LINENO"; then :
18512
18513
18514 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18515
18516                 gethostbynamerstyle=SYSV
18517
18518 fi
18519 rm -f core conftest.err conftest.$ac_objext \
18520     conftest$ac_exeext conftest.$ac_ext
18521 fi
18522 if test "x$gethostbynamerstyle" = "x"; then
18523         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524 /* end confdefs.h.  */
18525
18526 #include <stdio.h>
18527 #include <netdb.h>
18528
18529 int
18530 main ()
18531 {
18532  gethostbyname(NULL)
18533   ;
18534   return 0;
18535 }
18536 _ACEOF
18537 if ac_fn_c_try_link "$LINENO"; then :
18538
18539
18540 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18541
18542                 gethostbynamerstyle=BSD
18543
18544 fi
18545 rm -f core conftest.err conftest.$ac_objext \
18546     conftest$ac_exeext conftest.$ac_ext
18547 fi
18548
18549 if test "x$gethostbynamerstyle" = "x"; then
18550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18551 $as_echo "none!  It must not exist, here." >&6; }
18552 else
18553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18554 $as_echo "${gethostbynamerstyle}-style" >&6; }
18555 fi
18556
18557 if test "x$gethostbynamerstyle" = "xBSD"; then
18558         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18559 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18560 fi
18561
18562
18563 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18564
18565
18566 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18567
18568 ctimerstyle=""
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18570 $as_echo_n "checking ctime_r() syntax... " >&6; }
18571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572 /* end confdefs.h.  */
18573
18574 #include <time.h>
18575
18576 int
18577 main ()
18578 {
18579  ctime_r(NULL, NULL, 0)
18580   ;
18581   return 0;
18582 }
18583 _ACEOF
18584 if ac_fn_c_try_link "$LINENO"; then :
18585
18586
18587 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18588
18589         ctimerstyle="SOLARIS"
18590
18591 fi
18592 rm -f core conftest.err conftest.$ac_objext \
18593     conftest$ac_exeext conftest.$ac_ext
18594 if test "x$ctimerstyle" = "x"; then
18595         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h.  */
18597
18598 #include <time.h>
18599
18600 int
18601 main ()
18602 {
18603  ctime_r(NULL, NULL)
18604   ;
18605   return 0;
18606 }
18607 _ACEOF
18608 if ac_fn_c_try_link "$LINENO"; then :
18609
18610
18611 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18612
18613                 ctimerstyle="POSIX"
18614
18615 fi
18616 rm -f core conftest.err conftest.$ac_objext \
18617     conftest$ac_exeext conftest.$ac_ext
18618 fi
18619
18620 if test "x$ctimerstyle" = "x"; then
18621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18622 $as_echo "none!  It must not exist, here." >&6; }
18623 else
18624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18625 $as_echo "${ctimerstyle}-style" >&6; }
18626 fi
18627
18628 HOSTINFO=$host
18629
18630
18631
18632 top_builddir=`pwd`
18633 export top_builddir
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18635 $as_echo "top_builddir=$top_builddir" >&6; }
18636
18637
18638
18639
18640
18641
18642
18643 if test "x$EXPERIMENTAL" = "xyes"; then
18644   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18645     MODULES="$MODULES $foo"
18646   done
18647 else
18648             for foo in `cat "${srcdir}"/src/modules/stable`; do
18649     MODULES="$MODULES $foo"
18650    done
18651 fi
18652
18653 mysubdirs=""
18654 for bar in $MODULES; do
18655   if test -f "${srcdir}"/src/modules/$bar/configure; then
18656     mysubdirs="$mysubdirs src/modules/$bar"
18657   fi
18658 done
18659
18660
18661
18662 subdirs="$subdirs $mysubdirs"
18663
18664
18665
18666
18667 ac_config_commands="$ac_config_commands stamp-h"
18668
18669 ac_config_commands="$ac_config_commands build-radpaths-h"
18670
18671 ac_config_commands="$ac_config_commands main-chmod"
18672
18673 ac_config_commands="$ac_config_commands scripts-chmod"
18674
18675
18676
18677
18678
18679 USE_SHARED_LIBS=$enable_shared
18680
18681 USE_STATIC_LIBS=$enable_static
18682
18683
18684
18685
18686   unset ac_cv_env_LIBS_set
18687   unset ac_cv_env_LIBS_value
18688
18689   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
18690
18691 cat >confcache <<\_ACEOF
18692 # This file is a shell script that caches the results of configure
18693 # tests run on this system so they can be shared between configure
18694 # scripts and configure runs, see configure's option --config-cache.
18695 # It is not useful on other systems.  If it contains results you don't
18696 # want to keep, you may remove or edit it.
18697 #
18698 # config.status only pays attention to the cache file if you give it
18699 # the --recheck option to rerun configure.
18700 #
18701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18703 # following values.
18704
18705 _ACEOF
18706
18707 # The following way of writing the cache mishandles newlines in values,
18708 # but we know of no workaround that is simple, portable, and efficient.
18709 # So, we kill variables containing newlines.
18710 # Ultrix sh set writes to stderr and can't be redirected directly,
18711 # and sets the high bit in the cache file unless we assign to the vars.
18712 (
18713   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18714     eval ac_val=\$$ac_var
18715     case $ac_val in #(
18716     *${as_nl}*)
18717       case $ac_var in #(
18718       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18720       esac
18721       case $ac_var in #(
18722       _ | IFS | as_nl) ;; #(
18723       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18724       *) { eval $ac_var=; unset $ac_var;} ;;
18725       esac ;;
18726     esac
18727   done
18728
18729   (set) 2>&1 |
18730     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18731     *${as_nl}ac_space=\ *)
18732       # `set' does not quote correctly, so add quotes: double-quote
18733       # substitution turns \\\\ into \\, and sed turns \\ into \.
18734       sed -n \
18735         "s/'/'\\\\''/g;
18736           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18737       ;; #(
18738     *)
18739       # `set' quotes correctly as required by POSIX, so do not add quotes.
18740       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18741       ;;
18742     esac |
18743     sort
18744 ) |
18745   sed '
18746      /^ac_cv_env_/b end
18747      t clear
18748      :clear
18749      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18750      t end
18751      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18752      :end' >>confcache
18753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18754   if test -w "$cache_file"; then
18755     if test "x$cache_file" != "x/dev/null"; then
18756       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18757 $as_echo "$as_me: updating cache $cache_file" >&6;}
18758       if test ! -f "$cache_file" || test -h "$cache_file"; then
18759         cat confcache >"$cache_file"
18760       else
18761         case $cache_file in #(
18762         */* | ?:*)
18763           mv -f confcache "$cache_file"$$ &&
18764           mv -f "$cache_file"$$ "$cache_file" ;; #(
18765         *)
18766           mv -f confcache "$cache_file" ;;
18767         esac
18768       fi
18769     fi
18770   else
18771     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18772 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18773   fi
18774 fi
18775 rm -f confcache
18776
18777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18778 # Let make expand exec_prefix.
18779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18780
18781 DEFS=-DHAVE_CONFIG_H
18782
18783 ac_libobjs=
18784 ac_ltlibobjs=
18785 U=
18786 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18787   # 1. Remove the extension, and $U if already installed.
18788   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18789   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18790   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18791   #    will be set to the directory where LIBOBJS objects are built.
18792   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18793   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18794 done
18795 LIBOBJS=$ac_libobjs
18796
18797 LTLIBOBJS=$ac_ltlibobjs
18798
18799
18800
18801
18802 : "${CONFIG_STATUS=./config.status}"
18803 ac_write_fail=0
18804 ac_clean_files_save=$ac_clean_files
18805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18807 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18808 as_write_fail=0
18809 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18810 #! $SHELL
18811 # Generated by $as_me.
18812 # Run this file to recreate the current configuration.
18813 # Compiler output produced by configure, useful for debugging
18814 # configure, is in config.log if it exists.
18815
18816 debug=false
18817 ac_cs_recheck=false
18818 ac_cs_silent=false
18819
18820 SHELL=\${CONFIG_SHELL-$SHELL}
18821 export SHELL
18822 _ASEOF
18823 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18824 ## -------------------- ##
18825 ## M4sh Initialization. ##
18826 ## -------------------- ##
18827
18828 # Be more Bourne compatible
18829 DUALCASE=1; export DUALCASE # for MKS sh
18830 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18831   emulate sh
18832   NULLCMD=:
18833   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18834   # is contrary to our usage.  Disable this feature.
18835   alias -g '${1+"$@"}'='"$@"'
18836   setopt NO_GLOB_SUBST
18837 else
18838   case `(set -o) 2>/dev/null` in #(
18839   *posix*) :
18840     set -o posix ;; #(
18841   *) :
18842      ;;
18843 esac
18844 fi
18845
18846
18847 as_nl='
18848 '
18849 export as_nl
18850 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18851 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18854 # Prefer a ksh shell builtin over an external printf program on Solaris,
18855 # but without wasting forks for bash or zsh.
18856 if test -z "$BASH_VERSION$ZSH_VERSION" \
18857     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18858   as_echo='print -r --'
18859   as_echo_n='print -rn --'
18860 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18861   as_echo='printf %s\n'
18862   as_echo_n='printf %s'
18863 else
18864   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18865     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18866     as_echo_n='/usr/ucb/echo -n'
18867   else
18868     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18869     as_echo_n_body='eval
18870       arg=$1;
18871       case $arg in #(
18872       *"$as_nl"*)
18873         expr "X$arg" : "X\\(.*\\)$as_nl";
18874         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18875       esac;
18876       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18877     '
18878     export as_echo_n_body
18879     as_echo_n='sh -c $as_echo_n_body as_echo'
18880   fi
18881   export as_echo_body
18882   as_echo='sh -c $as_echo_body as_echo'
18883 fi
18884
18885 # The user is always right.
18886 if test "${PATH_SEPARATOR+set}" != set; then
18887   PATH_SEPARATOR=:
18888   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18889     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18890       PATH_SEPARATOR=';'
18891   }
18892 fi
18893
18894
18895 # IFS
18896 # We need space, tab and new line, in precisely that order.  Quoting is
18897 # there to prevent editors from complaining about space-tab.
18898 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18899 # splitting by setting IFS to empty value.)
18900 IFS=" ""        $as_nl"
18901
18902 # Find who we are.  Look in the path if we contain no directory separator.
18903 as_myself=
18904 case $0 in #((
18905   *[\\/]* ) as_myself=$0 ;;
18906   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18907 for as_dir in $PATH
18908 do
18909   IFS=$as_save_IFS
18910   test -z "$as_dir" && as_dir=.
18911     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18912   done
18913 IFS=$as_save_IFS
18914
18915      ;;
18916 esac
18917 # We did not find ourselves, most probably we were run as `sh COMMAND'
18918 # in which case we are not to be found in the path.
18919 if test "x$as_myself" = x; then
18920   as_myself=$0
18921 fi
18922 if test ! -f "$as_myself"; then
18923   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18924   exit 1
18925 fi
18926
18927 # Unset variables that we do not need and which cause bugs (e.g. in
18928 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18929 # suppresses any "Segmentation fault" message there.  '((' could
18930 # trigger a bug in pdksh 5.2.14.
18931 for as_var in BASH_ENV ENV MAIL MAILPATH
18932 do eval test x\${$as_var+set} = xset \
18933   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18934 done
18935 PS1='$ '
18936 PS2='> '
18937 PS4='+ '
18938
18939 # NLS nuisances.
18940 LC_ALL=C
18941 export LC_ALL
18942 LANGUAGE=C
18943 export LANGUAGE
18944
18945 # CDPATH.
18946 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18947
18948
18949 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18950 # ----------------------------------------
18951 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18952 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18953 # script with STATUS, using 1 if that was 0.
18954 as_fn_error ()
18955 {
18956   as_status=$1; test $as_status -eq 0 && as_status=1
18957   if test "$4"; then
18958     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18959     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18960   fi
18961   $as_echo "$as_me: error: $2" >&2
18962   as_fn_exit $as_status
18963 } # as_fn_error
18964
18965
18966 # as_fn_set_status STATUS
18967 # -----------------------
18968 # Set $? to STATUS, without forking.
18969 as_fn_set_status ()
18970 {
18971   return $1
18972 } # as_fn_set_status
18973
18974 # as_fn_exit STATUS
18975 # -----------------
18976 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18977 as_fn_exit ()
18978 {
18979   set +e
18980   as_fn_set_status $1
18981   exit $1
18982 } # as_fn_exit
18983
18984 # as_fn_unset VAR
18985 # ---------------
18986 # Portably unset VAR.
18987 as_fn_unset ()
18988 {
18989   { eval $1=; unset $1;}
18990 }
18991 as_unset=as_fn_unset
18992 # as_fn_append VAR VALUE
18993 # ----------------------
18994 # Append the text in VALUE to the end of the definition contained in VAR. Take
18995 # advantage of any shell optimizations that allow amortized linear growth over
18996 # repeated appends, instead of the typical quadratic growth present in naive
18997 # implementations.
18998 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18999   eval 'as_fn_append ()
19000   {
19001     eval $1+=\$2
19002   }'
19003 else
19004   as_fn_append ()
19005   {
19006     eval $1=\$$1\$2
19007   }
19008 fi # as_fn_append
19009
19010 # as_fn_arith ARG...
19011 # ------------------
19012 # Perform arithmetic evaluation on the ARGs, and store the result in the
19013 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19014 # must be portable across $(()) and expr.
19015 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19016   eval 'as_fn_arith ()
19017   {
19018     as_val=$(( $* ))
19019   }'
19020 else
19021   as_fn_arith ()
19022   {
19023     as_val=`expr "$@" || test $? -eq 1`
19024   }
19025 fi # as_fn_arith
19026
19027
19028 if expr a : '\(a\)' >/dev/null 2>&1 &&
19029    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19030   as_expr=expr
19031 else
19032   as_expr=false
19033 fi
19034
19035 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19036   as_basename=basename
19037 else
19038   as_basename=false
19039 fi
19040
19041 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19042   as_dirname=dirname
19043 else
19044   as_dirname=false
19045 fi
19046
19047 as_me=`$as_basename -- "$0" ||
19048 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19049          X"$0" : 'X\(//\)$' \| \
19050          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19051 $as_echo X/"$0" |
19052     sed '/^.*\/\([^/][^/]*\)\/*$/{
19053             s//\1/
19054             q
19055           }
19056           /^X\/\(\/\/\)$/{
19057             s//\1/
19058             q
19059           }
19060           /^X\/\(\/\).*/{
19061             s//\1/
19062             q
19063           }
19064           s/.*/./; q'`
19065
19066 # Avoid depending upon Character Ranges.
19067 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19068 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19069 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19070 as_cr_digits='0123456789'
19071 as_cr_alnum=$as_cr_Letters$as_cr_digits
19072
19073 ECHO_C= ECHO_N= ECHO_T=
19074 case `echo -n x` in #(((((
19075 -n*)
19076   case `echo 'xy\c'` in
19077   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19078   xy)  ECHO_C='\c';;
19079   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19080        ECHO_T=' ';;
19081   esac;;
19082 *)
19083   ECHO_N='-n';;
19084 esac
19085
19086 rm -f conf$$ conf$$.exe conf$$.file
19087 if test -d conf$$.dir; then
19088   rm -f conf$$.dir/conf$$.file
19089 else
19090   rm -f conf$$.dir
19091   mkdir conf$$.dir 2>/dev/null
19092 fi
19093 if (echo >conf$$.file) 2>/dev/null; then
19094   if ln -s conf$$.file conf$$ 2>/dev/null; then
19095     as_ln_s='ln -s'
19096     # ... but there are two gotchas:
19097     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19098     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19099     # In both cases, we have to default to `cp -pR'.
19100     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19101       as_ln_s='cp -pR'
19102   elif ln conf$$.file conf$$ 2>/dev/null; then
19103     as_ln_s=ln
19104   else
19105     as_ln_s='cp -pR'
19106   fi
19107 else
19108   as_ln_s='cp -pR'
19109 fi
19110 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19111 rmdir conf$$.dir 2>/dev/null
19112
19113
19114 # as_fn_mkdir_p
19115 # -------------
19116 # Create "$as_dir" as a directory, including parents if necessary.
19117 as_fn_mkdir_p ()
19118 {
19119
19120   case $as_dir in #(
19121   -*) as_dir=./$as_dir;;
19122   esac
19123   test -d "$as_dir" || eval $as_mkdir_p || {
19124     as_dirs=
19125     while :; do
19126       case $as_dir in #(
19127       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19128       *) as_qdir=$as_dir;;
19129       esac
19130       as_dirs="'$as_qdir' $as_dirs"
19131       as_dir=`$as_dirname -- "$as_dir" ||
19132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19133          X"$as_dir" : 'X\(//\)[^/]' \| \
19134          X"$as_dir" : 'X\(//\)$' \| \
19135          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19136 $as_echo X"$as_dir" |
19137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19138             s//\1/
19139             q
19140           }
19141           /^X\(\/\/\)[^/].*/{
19142             s//\1/
19143             q
19144           }
19145           /^X\(\/\/\)$/{
19146             s//\1/
19147             q
19148           }
19149           /^X\(\/\).*/{
19150             s//\1/
19151             q
19152           }
19153           s/.*/./; q'`
19154       test -d "$as_dir" && break
19155     done
19156     test -z "$as_dirs" || eval "mkdir $as_dirs"
19157   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19158
19159
19160 } # as_fn_mkdir_p
19161 if mkdir -p . 2>/dev/null; then
19162   as_mkdir_p='mkdir -p "$as_dir"'
19163 else
19164   test -d ./-p && rmdir ./-p
19165   as_mkdir_p=false
19166 fi
19167
19168
19169 # as_fn_executable_p FILE
19170 # -----------------------
19171 # Test if FILE is an executable regular file.
19172 as_fn_executable_p ()
19173 {
19174   test -f "$1" && test -x "$1"
19175 } # as_fn_executable_p
19176 as_test_x='test -x'
19177 as_executable_p=as_fn_executable_p
19178
19179 # Sed expression to map a string onto a valid CPP name.
19180 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19181
19182 # Sed expression to map a string onto a valid variable name.
19183 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19184
19185
19186 exec 6>&1
19187 ## ----------------------------------- ##
19188 ## Main body of $CONFIG_STATUS script. ##
19189 ## ----------------------------------- ##
19190 _ASEOF
19191 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19192
19193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19194 # Save the log message, to keep $0 and so on meaningful, and to
19195 # report actual input values of CONFIG_FILES etc. instead of their
19196 # values after options handling.
19197 ac_log="
19198 This file was extended by freeradius $as_me $Id$, which was
19199 generated by GNU Autoconf 2.69.  Invocation command line was
19200
19201   CONFIG_FILES    = $CONFIG_FILES
19202   CONFIG_HEADERS  = $CONFIG_HEADERS
19203   CONFIG_LINKS    = $CONFIG_LINKS
19204   CONFIG_COMMANDS = $CONFIG_COMMANDS
19205   $ $0 $@
19206
19207 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19208 "
19209
19210 _ACEOF
19211
19212 case $ac_config_files in *"
19213 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19214 esac
19215
19216 case $ac_config_headers in *"
19217 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19218 esac
19219
19220
19221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19222 # Files that config.status was made for.
19223 config_files="$ac_config_files"
19224 config_headers="$ac_config_headers"
19225 config_commands="$ac_config_commands"
19226
19227 _ACEOF
19228
19229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19230 ac_cs_usage="\
19231 \`$as_me' instantiates files and other configuration actions
19232 from templates according to the current configuration.  Unless the files
19233 and actions are specified as TAGs, all are instantiated by default.
19234
19235 Usage: $0 [OPTION]... [TAG]...
19236
19237   -h, --help       print this help, then exit
19238   -V, --version    print version number and configuration settings, then exit
19239       --config     print configuration, then exit
19240   -q, --quiet, --silent
19241                    do not print progress messages
19242   -d, --debug      don't remove temporary files
19243       --recheck    update $as_me by reconfiguring in the same conditions
19244       --file=FILE[:TEMPLATE]
19245                    instantiate the configuration file FILE
19246       --header=FILE[:TEMPLATE]
19247                    instantiate the configuration header FILE
19248
19249 Configuration files:
19250 $config_files
19251
19252 Configuration headers:
19253 $config_headers
19254
19255 Configuration commands:
19256 $config_commands
19257
19258 Report bugs to <http://bugs.freeradius.org>.
19259 freeradius home page: <http://www.freeradius.org>."
19260
19261 _ACEOF
19262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19263 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19264 ac_cs_version="\\
19265 freeradius config.status $Id$
19266 configured by $0, generated by GNU Autoconf 2.69,
19267   with options \\"\$ac_cs_config\\"
19268
19269 Copyright (C) 2012 Free Software Foundation, Inc.
19270 This config.status script is free software; the Free Software Foundation
19271 gives unlimited permission to copy, distribute and modify it."
19272
19273 ac_pwd='$ac_pwd'
19274 srcdir='$srcdir'
19275 AWK='$AWK'
19276 test -n "\$AWK" || AWK=awk
19277 _ACEOF
19278
19279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19280 # The default lists apply if the user does not specify any file.
19281 ac_need_defaults=:
19282 while test $# != 0
19283 do
19284   case $1 in
19285   --*=?*)
19286     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19287     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19288     ac_shift=:
19289     ;;
19290   --*=)
19291     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19292     ac_optarg=
19293     ac_shift=:
19294     ;;
19295   *)
19296     ac_option=$1
19297     ac_optarg=$2
19298     ac_shift=shift
19299     ;;
19300   esac
19301
19302   case $ac_option in
19303   # Handling of the options.
19304   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19305     ac_cs_recheck=: ;;
19306   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19307     $as_echo "$ac_cs_version"; exit ;;
19308   --config | --confi | --conf | --con | --co | --c )
19309     $as_echo "$ac_cs_config"; exit ;;
19310   --debug | --debu | --deb | --de | --d | -d )
19311     debug=: ;;
19312   --file | --fil | --fi | --f )
19313     $ac_shift
19314     case $ac_optarg in
19315     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19316     '') as_fn_error $? "missing file argument" ;;
19317     esac
19318     as_fn_append CONFIG_FILES " '$ac_optarg'"
19319     ac_need_defaults=false;;
19320   --header | --heade | --head | --hea )
19321     $ac_shift
19322     case $ac_optarg in
19323     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19324     esac
19325     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19326     ac_need_defaults=false;;
19327   --he | --h)
19328     # Conflict between --help and --header
19329     as_fn_error $? "ambiguous option: \`$1'
19330 Try \`$0 --help' for more information.";;
19331   --help | --hel | -h )
19332     $as_echo "$ac_cs_usage"; exit ;;
19333   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19334   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19335     ac_cs_silent=: ;;
19336
19337   # This is an error.
19338   -*) as_fn_error $? "unrecognized option: \`$1'
19339 Try \`$0 --help' for more information." ;;
19340
19341   *) as_fn_append ac_config_targets " $1"
19342      ac_need_defaults=false ;;
19343
19344   esac
19345   shift
19346 done
19347
19348 ac_configure_extra_args=
19349
19350 if $ac_cs_silent; then
19351   exec 6>/dev/null
19352   ac_configure_extra_args="$ac_configure_extra_args --silent"
19353 fi
19354
19355 _ACEOF
19356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19357 if \$ac_cs_recheck; then
19358   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19359   shift
19360   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19361   CONFIG_SHELL='$SHELL'
19362   export CONFIG_SHELL
19363   exec "\$@"
19364 fi
19365
19366 _ACEOF
19367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19368 exec 5>>config.log
19369 {
19370   echo
19371   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19372 ## Running $as_me. ##
19373 _ASBOX
19374   $as_echo "$ac_log"
19375 } >&5
19376
19377 _ACEOF
19378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19379 #
19380 # INIT-COMMANDS
19381 #
19382
19383
19384 # The HP-UX ksh and POSIX shell print the target directory to stdout
19385 # if CDPATH is set.
19386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19387
19388 sed_quote_subst='$sed_quote_subst'
19389 double_quote_subst='$double_quote_subst'
19390 delay_variable_subst='$delay_variable_subst'
19391 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19392 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19393 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19394 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19395 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19396 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19397 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19398 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19399 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19400 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19401 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19402 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19403 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19404 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19405 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19406 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19407 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19408 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19409 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19410 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19411 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19412 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19413 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19414 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19415 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19416 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19417 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19418 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19419 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19420 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19421 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19422 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19423 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19424 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19425 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19426 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19427 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19428 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19429 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19430 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19431 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19432 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19433 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19434 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19435 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19436 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19437 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19438 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19439 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19440 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19441 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19442 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19443 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19444 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19445 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19446 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"`'
19447 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19448 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19449 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19450 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19451 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19452 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19453 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19454 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19455 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19456 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19457 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19458 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19459 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19460 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19461 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19462 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19463 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19464 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19465 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19466 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19467 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19468 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19469 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19470 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19471 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19472 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19473 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19474 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19475 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19476 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19477 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19478 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19479 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19480 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19481 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19482 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19483 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19484 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19485 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19486 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19487 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19488 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19489 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19490 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19491 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19492 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19493 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19494 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19495 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19496 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19497 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19498 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19499 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19500 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19501 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19502 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19503 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19504 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19505 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19506 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19507 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19508 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19509 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19510 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19511 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19512 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19513 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19514 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19515 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19516 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19517 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19518 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19519 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19520 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19521 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19522 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19523 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19524 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19525 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19526 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19527 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19528 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19529 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19530 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19531 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19532 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19533 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19534 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19535 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19536 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19537 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19538 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19539 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19540 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19541 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19542 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19543 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19544 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19545 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19546 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19547 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19548 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19549 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19550 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19551 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19552 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19553 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19554 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19555 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19556 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19557 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19558 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19559 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19560 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19561 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19562 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19563 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19564 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19565 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19566 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19567 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19568 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19569 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19570 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19571 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19572 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19573 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19574 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19575 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19576
19577 LTCC='$LTCC'
19578 LTCFLAGS='$LTCFLAGS'
19579 compiler='$compiler_DEFAULT'
19580
19581 # A function that is used when there is no print builtin or printf.
19582 func_fallback_echo ()
19583 {
19584   eval 'cat <<_LTECHO_EOF
19585 \$1
19586 _LTECHO_EOF'
19587 }
19588
19589 # Quote evaled strings.
19590 for var in SHELL \
19591 ECHO \
19592 SED \
19593 GREP \
19594 EGREP \
19595 FGREP \
19596 LD \
19597 NM \
19598 LN_S \
19599 lt_SP2NL \
19600 lt_NL2SP \
19601 reload_flag \
19602 OBJDUMP \
19603 deplibs_check_method \
19604 file_magic_cmd \
19605 file_magic_glob \
19606 want_nocaseglob \
19607 DLLTOOL \
19608 sharedlib_from_linklib_cmd \
19609 AR \
19610 AR_FLAGS \
19611 archiver_list_spec \
19612 STRIP \
19613 RANLIB \
19614 CC \
19615 CFLAGS \
19616 compiler \
19617 lt_cv_sys_global_symbol_pipe \
19618 lt_cv_sys_global_symbol_to_cdecl \
19619 lt_cv_sys_global_symbol_to_c_name_address \
19620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19621 nm_file_list_spec \
19622 lt_prog_compiler_no_builtin_flag \
19623 lt_prog_compiler_pic \
19624 lt_prog_compiler_wl \
19625 lt_prog_compiler_static \
19626 lt_cv_prog_compiler_c_o \
19627 need_locks \
19628 MANIFEST_TOOL \
19629 DSYMUTIL \
19630 NMEDIT \
19631 LIPO \
19632 OTOOL \
19633 OTOOL64 \
19634 shrext_cmds \
19635 export_dynamic_flag_spec \
19636 whole_archive_flag_spec \
19637 compiler_needs_object \
19638 with_gnu_ld \
19639 allow_undefined_flag \
19640 no_undefined_flag \
19641 hardcode_libdir_flag_spec \
19642 hardcode_libdir_flag_spec_ld \
19643 hardcode_libdir_separator \
19644 exclude_expsyms \
19645 include_expsyms \
19646 file_list_spec \
19647 variables_saved_for_relink \
19648 libname_spec \
19649 library_names_spec \
19650 soname_spec \
19651 install_override_mode \
19652 finish_eval \
19653 old_striplib \
19654 striplib \
19655 compiler_lib_search_dirs \
19656 predep_objects \
19657 postdep_objects \
19658 predeps \
19659 postdeps \
19660 compiler_lib_search_path \
19661 LD_CXX \
19662 reload_flag_CXX \
19663 compiler_CXX \
19664 lt_prog_compiler_no_builtin_flag_CXX \
19665 lt_prog_compiler_pic_CXX \
19666 lt_prog_compiler_wl_CXX \
19667 lt_prog_compiler_static_CXX \
19668 lt_cv_prog_compiler_c_o_CXX \
19669 export_dynamic_flag_spec_CXX \
19670 whole_archive_flag_spec_CXX \
19671 compiler_needs_object_CXX \
19672 with_gnu_ld_CXX \
19673 allow_undefined_flag_CXX \
19674 no_undefined_flag_CXX \
19675 hardcode_libdir_flag_spec_CXX \
19676 hardcode_libdir_flag_spec_ld_CXX \
19677 hardcode_libdir_separator_CXX \
19678 exclude_expsyms_CXX \
19679 include_expsyms_CXX \
19680 file_list_spec_CXX \
19681 compiler_lib_search_dirs_CXX \
19682 predep_objects_CXX \
19683 postdep_objects_CXX \
19684 predeps_CXX \
19685 postdeps_CXX \
19686 compiler_lib_search_path_CXX; do
19687     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19688     *[\\\\\\\`\\"\\\$]*)
19689       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19690       ;;
19691     *)
19692       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19693       ;;
19694     esac
19695 done
19696
19697 # Double-quote double-evaled strings.
19698 for var in reload_cmds \
19699 old_postinstall_cmds \
19700 old_postuninstall_cmds \
19701 old_archive_cmds \
19702 extract_expsyms_cmds \
19703 old_archive_from_new_cmds \
19704 old_archive_from_expsyms_cmds \
19705 archive_cmds \
19706 archive_expsym_cmds \
19707 module_cmds \
19708 module_expsym_cmds \
19709 export_symbols_cmds \
19710 prelink_cmds \
19711 postlink_cmds \
19712 postinstall_cmds \
19713 postuninstall_cmds \
19714 finish_cmds \
19715 sys_lib_search_path_spec \
19716 sys_lib_dlsearch_path_spec \
19717 reload_cmds_CXX \
19718 old_archive_cmds_CXX \
19719 old_archive_from_new_cmds_CXX \
19720 old_archive_from_expsyms_cmds_CXX \
19721 archive_cmds_CXX \
19722 archive_expsym_cmds_CXX \
19723 module_cmds_CXX \
19724 module_expsym_cmds_CXX \
19725 export_symbols_cmds_CXX \
19726 prelink_cmds_CXX \
19727 postlink_cmds_CXX; do
19728     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19729     *[\\\\\\\`\\"\\\$]*)
19730       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19731       ;;
19732     *)
19733       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19734       ;;
19735     esac
19736 done
19737
19738 xsi_shell='$xsi_shell'
19739 lt_shell_append='$lt_shell_append'
19740
19741 # See if we are running on zsh, and set the options which allow our
19742 # commands through without removal of \ escapes INIT.
19743 if test -n "\${ZSH_VERSION+set}" ; then
19744    setopt NO_GLOB_SUBST
19745 fi
19746
19747
19748     PACKAGE='$PACKAGE'
19749     VERSION='$VERSION'
19750     TIMESTAMP='$TIMESTAMP'
19751     RM='$RM'
19752     ofile='$ofile'
19753
19754
19755
19756
19757
19758
19759 _ACEOF
19760
19761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19762
19763 # Handling of arguments.
19764 for ac_config_target in $ac_config_targets
19765 do
19766   case $ac_config_target in
19767     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19768     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19769     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19770     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19771     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19772     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19773     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19774     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19775     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19776     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
19777     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19778     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19779     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19780     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19781     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19782     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19783     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19784     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19785     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19786
19787   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19788   esac
19789 done
19790
19791
19792 # If the user did not use the arguments to specify the items to instantiate,
19793 # then the envvar interface is used.  Set only those that are not.
19794 # We use the long form for the default assignment because of an extremely
19795 # bizarre bug on SunOS 4.1.3.
19796 if $ac_need_defaults; then
19797   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19798   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19799   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19800 fi
19801
19802 # Have a temporary directory for convenience.  Make it in the build tree
19803 # simply because there is no reason against having it here, and in addition,
19804 # creating and moving files from /tmp can sometimes cause problems.
19805 # Hook for its removal unless debugging.
19806 # Note that there is a small window in which the directory will not be cleaned:
19807 # after its creation but before its name has been assigned to `$tmp'.
19808 $debug ||
19809 {
19810   tmp= ac_tmp=
19811   trap 'exit_status=$?
19812   : "${ac_tmp:=$tmp}"
19813   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19814 ' 0
19815   trap 'as_fn_exit 1' 1 2 13 15
19816 }
19817 # Create a (secure) tmp directory for tmp files.
19818
19819 {
19820   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19821   test -d "$tmp"
19822 }  ||
19823 {
19824   tmp=./conf$$-$RANDOM
19825   (umask 077 && mkdir "$tmp")
19826 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19827 ac_tmp=$tmp
19828
19829 # Set up the scripts for CONFIG_FILES section.
19830 # No need to generate them if there are no CONFIG_FILES.
19831 # This happens for instance with `./config.status config.h'.
19832 if test -n "$CONFIG_FILES"; then
19833
19834
19835 ac_cr=`echo X | tr X '\015'`
19836 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19837 # But we know of no other shell where ac_cr would be empty at this
19838 # point, so we can use a bashism as a fallback.
19839 if test "x$ac_cr" = x; then
19840   eval ac_cr=\$\'\\r\'
19841 fi
19842 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19843 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19844   ac_cs_awk_cr='\\r'
19845 else
19846   ac_cs_awk_cr=$ac_cr
19847 fi
19848
19849 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19850 _ACEOF
19851
19852
19853 {
19854   echo "cat >conf$$subs.awk <<_ACEOF" &&
19855   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19856   echo "_ACEOF"
19857 } >conf$$subs.sh ||
19858   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19859 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19860 ac_delim='%!_!# '
19861 for ac_last_try in false false false false false :; do
19862   . ./conf$$subs.sh ||
19863     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19864
19865   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19866   if test $ac_delim_n = $ac_delim_num; then
19867     break
19868   elif $ac_last_try; then
19869     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19870   else
19871     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19872   fi
19873 done
19874 rm -f conf$$subs.sh
19875
19876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19877 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19878 _ACEOF
19879 sed -n '
19880 h
19881 s/^/S["/; s/!.*/"]=/
19882 p
19883 g
19884 s/^[^!]*!//
19885 :repl
19886 t repl
19887 s/'"$ac_delim"'$//
19888 t delim
19889 :nl
19890 h
19891 s/\(.\{148\}\)..*/\1/
19892 t more1
19893 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19894 p
19895 n
19896 b repl
19897 :more1
19898 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19899 p
19900 g
19901 s/.\{148\}//
19902 t nl
19903 :delim
19904 h
19905 s/\(.\{148\}\)..*/\1/
19906 t more2
19907 s/["\\]/\\&/g; s/^/"/; s/$/"/
19908 p
19909 b
19910 :more2
19911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19912 p
19913 g
19914 s/.\{148\}//
19915 t delim
19916 ' <conf$$subs.awk | sed '
19917 /^[^""]/{
19918   N
19919   s/\n//
19920 }
19921 ' >>$CONFIG_STATUS || ac_write_fail=1
19922 rm -f conf$$subs.awk
19923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19924 _ACAWK
19925 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19926   for (key in S) S_is_set[key] = 1
19927   FS = "\a"
19928
19929 }
19930 {
19931   line = $ 0
19932   nfields = split(line, field, "@")
19933   substed = 0
19934   len = length(field[1])
19935   for (i = 2; i < nfields; i++) {
19936     key = field[i]
19937     keylen = length(key)
19938     if (S_is_set[key]) {
19939       value = S[key]
19940       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19941       len += length(value) + length(field[++i])
19942       substed = 1
19943     } else
19944       len += 1 + keylen
19945   }
19946
19947   print line
19948 }
19949
19950 _ACAWK
19951 _ACEOF
19952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19953 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19954   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19955 else
19956   cat
19957 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19958   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19959 _ACEOF
19960
19961 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19962 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19963 # trailing colons and then remove the whole line if VPATH becomes empty
19964 # (actually we leave an empty line to preserve line numbers).
19965 if test "x$srcdir" = x.; then
19966   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19967 h
19968 s///
19969 s/^/:/
19970 s/[      ]*$/:/
19971 s/:\$(srcdir):/:/g
19972 s/:\${srcdir}:/:/g
19973 s/:@srcdir@:/:/g
19974 s/^:*//
19975 s/:*$//
19976 x
19977 s/\(=[   ]*\).*/\1/
19978 G
19979 s/\n//
19980 s/^[^=]*=[       ]*$//
19981 }'
19982 fi
19983
19984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19985 fi # test -n "$CONFIG_FILES"
19986
19987 # Set up the scripts for CONFIG_HEADERS section.
19988 # No need to generate them if there are no CONFIG_HEADERS.
19989 # This happens for instance with `./config.status Makefile'.
19990 if test -n "$CONFIG_HEADERS"; then
19991 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19992 BEGIN {
19993 _ACEOF
19994
19995 # Transform confdefs.h into an awk script `defines.awk', embedded as
19996 # here-document in config.status, that substitutes the proper values into
19997 # config.h.in to produce config.h.
19998
19999 # Create a delimiter string that does not exist in confdefs.h, to ease
20000 # handling of long lines.
20001 ac_delim='%!_!# '
20002 for ac_last_try in false false :; do
20003   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20004   if test -z "$ac_tt"; then
20005     break
20006   elif $ac_last_try; then
20007     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20008   else
20009     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20010   fi
20011 done
20012
20013 # For the awk script, D is an array of macro values keyed by name,
20014 # likewise P contains macro parameters if any.  Preserve backslash
20015 # newline sequences.
20016
20017 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20018 sed -n '
20019 s/.\{148\}/&'"$ac_delim"'/g
20020 t rset
20021 :rset
20022 s/^[     ]*#[    ]*define[       ][      ]*/ /
20023 t def
20024 d
20025 :def
20026 s/\\$//
20027 t bsnl
20028 s/["\\]/\\&/g
20029 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20030 D["\1"]=" \3"/p
20031 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20032 d
20033 :bsnl
20034 s/["\\]/\\&/g
20035 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20036 D["\1"]=" \3\\\\\\n"\\/p
20037 t cont
20038 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20039 t cont
20040 d
20041 :cont
20042 n
20043 s/.\{148\}/&'"$ac_delim"'/g
20044 t clear
20045 :clear
20046 s/\\$//
20047 t bsnlc
20048 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20049 d
20050 :bsnlc
20051 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20052 b cont
20053 ' <confdefs.h | sed '
20054 s/'"$ac_delim"'/"\\\
20055 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20056
20057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20058   for (key in D) D_is_set[key] = 1
20059   FS = "\a"
20060 }
20061 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20062   line = \$ 0
20063   split(line, arg, " ")
20064   if (arg[1] == "#") {
20065     defundef = arg[2]
20066     mac1 = arg[3]
20067   } else {
20068     defundef = substr(arg[1], 2)
20069     mac1 = arg[2]
20070   }
20071   split(mac1, mac2, "(") #)
20072   macro = mac2[1]
20073   prefix = substr(line, 1, index(line, defundef) - 1)
20074   if (D_is_set[macro]) {
20075     # Preserve the white space surrounding the "#".
20076     print prefix "define", macro P[macro] D[macro]
20077     next
20078   } else {
20079     # Replace #undef with comments.  This is necessary, for example,
20080     # in the case of _POSIX_SOURCE, which is predefined and required
20081     # on some systems where configure will not decide to define it.
20082     if (defundef == "undef") {
20083       print "/*", prefix defundef, macro, "*/"
20084       next
20085     }
20086   }
20087 }
20088 { print }
20089 _ACAWK
20090 _ACEOF
20091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20092   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20093 fi # test -n "$CONFIG_HEADERS"
20094
20095
20096 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20097 shift
20098 for ac_tag
20099 do
20100   case $ac_tag in
20101   :[FHLC]) ac_mode=$ac_tag; continue;;
20102   esac
20103   case $ac_mode$ac_tag in
20104   :[FHL]*:*);;
20105   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20106   :[FH]-) ac_tag=-:-;;
20107   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20108   esac
20109   ac_save_IFS=$IFS
20110   IFS=:
20111   set x $ac_tag
20112   IFS=$ac_save_IFS
20113   shift
20114   ac_file=$1
20115   shift
20116
20117   case $ac_mode in
20118   :L) ac_source=$1;;
20119   :[FH])
20120     ac_file_inputs=
20121     for ac_f
20122     do
20123       case $ac_f in
20124       -) ac_f="$ac_tmp/stdin";;
20125       *) # Look for the file first in the build tree, then in the source tree
20126          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20127          # because $ac_f cannot contain `:'.
20128          test -f "$ac_f" ||
20129            case $ac_f in
20130            [\\/$]*) false;;
20131            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20132            esac ||
20133            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20134       esac
20135       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20136       as_fn_append ac_file_inputs " '$ac_f'"
20137     done
20138
20139     # Let's still pretend it is `configure' which instantiates (i.e., don't
20140     # use $as_me), people would be surprised to read:
20141     #    /* config.h.  Generated by config.status.  */
20142     configure_input='Generated from '`
20143           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20144         `' by configure.'
20145     if test x"$ac_file" != x-; then
20146       configure_input="$ac_file.  $configure_input"
20147       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20148 $as_echo "$as_me: creating $ac_file" >&6;}
20149     fi
20150     # Neutralize special characters interpreted by sed in replacement strings.
20151     case $configure_input in #(
20152     *\&* | *\|* | *\\* )
20153        ac_sed_conf_input=`$as_echo "$configure_input" |
20154        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20155     *) ac_sed_conf_input=$configure_input;;
20156     esac
20157
20158     case $ac_tag in
20159     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20160       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20161     esac
20162     ;;
20163   esac
20164
20165   ac_dir=`$as_dirname -- "$ac_file" ||
20166 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20167          X"$ac_file" : 'X\(//\)[^/]' \| \
20168          X"$ac_file" : 'X\(//\)$' \| \
20169          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20170 $as_echo X"$ac_file" |
20171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20172             s//\1/
20173             q
20174           }
20175           /^X\(\/\/\)[^/].*/{
20176             s//\1/
20177             q
20178           }
20179           /^X\(\/\/\)$/{
20180             s//\1/
20181             q
20182           }
20183           /^X\(\/\).*/{
20184             s//\1/
20185             q
20186           }
20187           s/.*/./; q'`
20188   as_dir="$ac_dir"; as_fn_mkdir_p
20189   ac_builddir=.
20190
20191 case "$ac_dir" in
20192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20193 *)
20194   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20195   # A ".." for each directory in $ac_dir_suffix.
20196   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20197   case $ac_top_builddir_sub in
20198   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20199   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20200   esac ;;
20201 esac
20202 ac_abs_top_builddir=$ac_pwd
20203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20204 # for backward compatibility:
20205 ac_top_builddir=$ac_top_build_prefix
20206
20207 case $srcdir in
20208   .)  # We are building in place.
20209     ac_srcdir=.
20210     ac_top_srcdir=$ac_top_builddir_sub
20211     ac_abs_top_srcdir=$ac_pwd ;;
20212   [\\/]* | ?:[\\/]* )  # Absolute name.
20213     ac_srcdir=$srcdir$ac_dir_suffix;
20214     ac_top_srcdir=$srcdir
20215     ac_abs_top_srcdir=$srcdir ;;
20216   *) # Relative name.
20217     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20218     ac_top_srcdir=$ac_top_build_prefix$srcdir
20219     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20220 esac
20221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20222
20223
20224   case $ac_mode in
20225   :F)
20226   #
20227   # CONFIG_FILE
20228   #
20229
20230 _ACEOF
20231
20232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20233 # If the template does not know about datarootdir, expand it.
20234 # FIXME: This hack should be removed a few years after 2.60.
20235 ac_datarootdir_hack=; ac_datarootdir_seen=
20236 ac_sed_dataroot='
20237 /datarootdir/ {
20238   p
20239   q
20240 }
20241 /@datadir@/p
20242 /@docdir@/p
20243 /@infodir@/p
20244 /@localedir@/p
20245 /@mandir@/p'
20246 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20247 *datarootdir*) ac_datarootdir_seen=yes;;
20248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20249   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20250 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20251 _ACEOF
20252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20253   ac_datarootdir_hack='
20254   s&@datadir@&$datadir&g
20255   s&@docdir@&$docdir&g
20256   s&@infodir@&$infodir&g
20257   s&@localedir@&$localedir&g
20258   s&@mandir@&$mandir&g
20259   s&\\\${datarootdir}&$datarootdir&g' ;;
20260 esac
20261 _ACEOF
20262
20263 # Neutralize VPATH when `$srcdir' = `.'.
20264 # Shell code in configure.ac might set extrasub.
20265 # FIXME: do we really want to maintain this feature?
20266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20267 ac_sed_extra="$ac_vpsub
20268 $extrasub
20269 _ACEOF
20270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20271 :t
20272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20273 s|@configure_input@|$ac_sed_conf_input|;t t
20274 s&@top_builddir@&$ac_top_builddir_sub&;t t
20275 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20276 s&@srcdir@&$ac_srcdir&;t t
20277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20278 s&@top_srcdir@&$ac_top_srcdir&;t t
20279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20280 s&@builddir@&$ac_builddir&;t t
20281 s&@abs_builddir@&$ac_abs_builddir&;t t
20282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20283 $ac_datarootdir_hack
20284 "
20285 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20286   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20287
20288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20289   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20290   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20291       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20292   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20293 which seems to be undefined.  Please make sure it is defined" >&5
20294 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20295 which seems to be undefined.  Please make sure it is defined" >&2;}
20296
20297   rm -f "$ac_tmp/stdin"
20298   case $ac_file in
20299   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20300   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20301   esac \
20302   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20303  ;;
20304   :H)
20305   #
20306   # CONFIG_HEADER
20307   #
20308   if test x"$ac_file" != x-; then
20309     {
20310       $as_echo "/* $configure_input  */" \
20311       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20312     } >"$ac_tmp/config.h" \
20313       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20314     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20315       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20316 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20317     else
20318       rm -f "$ac_file"
20319       mv "$ac_tmp/config.h" "$ac_file" \
20320         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20321     fi
20322   else
20323     $as_echo "/* $configure_input  */" \
20324       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20325       || as_fn_error $? "could not create -" "$LINENO" 5
20326   fi
20327  ;;
20328
20329   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20330 $as_echo "$as_me: executing $ac_file commands" >&6;}
20331  ;;
20332   esac
20333
20334
20335   case $ac_file$ac_mode in
20336     "libtool":C)
20337
20338     # See if we are running on zsh, and set the options which allow our
20339     # commands through without removal of \ escapes.
20340     if test -n "${ZSH_VERSION+set}" ; then
20341       setopt NO_GLOB_SUBST
20342     fi
20343
20344     cfgfile="${ofile}T"
20345     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20346     $RM "$cfgfile"
20347
20348     cat <<_LT_EOF >> "$cfgfile"
20349 #! $SHELL
20350
20351 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20352 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20353 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20354 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20355 #
20356 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20357 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20358 #                 Inc.
20359 #   Written by Gordon Matzigkeit, 1996
20360 #
20361 #   This file is part of GNU Libtool.
20362 #
20363 # GNU Libtool is free software; you can redistribute it and/or
20364 # modify it under the terms of the GNU General Public License as
20365 # published by the Free Software Foundation; either version 2 of
20366 # the License, or (at your option) any later version.
20367 #
20368 # As a special exception to the GNU General Public License,
20369 # if you distribute this file as part of a program or library that
20370 # is built using GNU Libtool, you may include this file under the
20371 # same distribution terms that you use for the rest of that program.
20372 #
20373 # GNU Libtool is distributed in the hope that it will be useful,
20374 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20375 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20376 # GNU General Public License for more details.
20377 #
20378 # You should have received a copy of the GNU General Public License
20379 # along with GNU Libtool; see the file COPYING.  If not, a copy
20380 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20381 # obtained by writing to the Free Software Foundation, Inc.,
20382 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20383
20384
20385 # The names of the tagged configurations supported by this script.
20386 available_tags="CXX "
20387
20388 # ### BEGIN LIBTOOL CONFIG
20389
20390 # Which release of libtool.m4 was used?
20391 macro_version=$macro_version
20392 macro_revision=$macro_revision
20393
20394 # Whether or not to build shared libraries.
20395 build_libtool_libs=$enable_shared
20396
20397 # Whether or not to build static libraries.
20398 build_old_libs=$enable_static
20399
20400 # What type of objects to build.
20401 pic_mode=$pic_mode
20402
20403 # Whether or not to optimize for fast installation.
20404 fast_install=$enable_fast_install
20405
20406 # Shell to use when invoking shell scripts.
20407 SHELL=$lt_SHELL
20408
20409 # An echo program that protects backslashes.
20410 ECHO=$lt_ECHO
20411
20412 # The host system.
20413 host_alias=$host_alias
20414 host=$host
20415 host_os=$host_os
20416
20417 # The build system.
20418 build_alias=$build_alias
20419 build=$build
20420 build_os=$build_os
20421
20422 # A sed program that does not truncate output.
20423 SED=$lt_SED
20424
20425 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20426 Xsed="\$SED -e 1s/^X//"
20427
20428 # A grep program that handles long lines.
20429 GREP=$lt_GREP
20430
20431 # An ERE matcher.
20432 EGREP=$lt_EGREP
20433
20434 # A literal string matcher.
20435 FGREP=$lt_FGREP
20436
20437 # A BSD- or MS-compatible name lister.
20438 NM=$lt_NM
20439
20440 # Whether we need soft or hard links.
20441 LN_S=$lt_LN_S
20442
20443 # What is the maximum length of a command?
20444 max_cmd_len=$max_cmd_len
20445
20446 # Object file suffix (normally "o").
20447 objext=$ac_objext
20448
20449 # Executable file suffix (normally "").
20450 exeext=$exeext
20451
20452 # whether the shell understands "unset".
20453 lt_unset=$lt_unset
20454
20455 # turn spaces into newlines.
20456 SP2NL=$lt_lt_SP2NL
20457
20458 # turn newlines into spaces.
20459 NL2SP=$lt_lt_NL2SP
20460
20461 # convert \$build file names to \$host format.
20462 to_host_file_cmd=$lt_cv_to_host_file_cmd
20463
20464 # convert \$build files to toolchain format.
20465 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20466
20467 # An object symbol dumper.
20468 OBJDUMP=$lt_OBJDUMP
20469
20470 # Method to check whether dependent libraries are shared objects.
20471 deplibs_check_method=$lt_deplibs_check_method
20472
20473 # Command to use when deplibs_check_method = "file_magic".
20474 file_magic_cmd=$lt_file_magic_cmd
20475
20476 # How to find potential files when deplibs_check_method = "file_magic".
20477 file_magic_glob=$lt_file_magic_glob
20478
20479 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20480 want_nocaseglob=$lt_want_nocaseglob
20481
20482 # DLL creation program.
20483 DLLTOOL=$lt_DLLTOOL
20484
20485 # Command to associate shared and link libraries.
20486 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20487
20488 # The archiver.
20489 AR=$lt_AR
20490
20491 # Flags to create an archive.
20492 AR_FLAGS=$lt_AR_FLAGS
20493
20494 # How to feed a file listing to the archiver.
20495 archiver_list_spec=$lt_archiver_list_spec
20496
20497 # A symbol stripping program.
20498 STRIP=$lt_STRIP
20499
20500 # Commands used to install an old-style archive.
20501 RANLIB=$lt_RANLIB
20502 old_postinstall_cmds=$lt_old_postinstall_cmds
20503 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20504
20505 # Whether to use a lock for old archive extraction.
20506 lock_old_archive_extraction=$lock_old_archive_extraction
20507
20508 # A C compiler.
20509 LTCC=$lt_CC
20510
20511 # LTCC compiler flags.
20512 LTCFLAGS=$lt_CFLAGS
20513
20514 # Take the output of nm and produce a listing of raw symbols and C names.
20515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20516
20517 # Transform the output of nm in a proper C declaration.
20518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20519
20520 # Transform the output of nm in a C name address pair.
20521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20522
20523 # Transform the output of nm in a C name address pair when lib prefix is needed.
20524 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20525
20526 # Specify filename containing input files for \$NM.
20527 nm_file_list_spec=$lt_nm_file_list_spec
20528
20529 # The root where to search for dependent libraries,and in which our libraries should be installed.
20530 lt_sysroot=$lt_sysroot
20531
20532 # The name of the directory that contains temporary libtool files.
20533 objdir=$objdir
20534
20535 # Used to examine libraries when file_magic_cmd begins with "file".
20536 MAGIC_CMD=$MAGIC_CMD
20537
20538 # Must we lock files when doing compilation?
20539 need_locks=$lt_need_locks
20540
20541 # Manifest tool.
20542 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20543
20544 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20545 DSYMUTIL=$lt_DSYMUTIL
20546
20547 # Tool to change global to local symbols on Mac OS X.
20548 NMEDIT=$lt_NMEDIT
20549
20550 # Tool to manipulate fat objects and archives on Mac OS X.
20551 LIPO=$lt_LIPO
20552
20553 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20554 OTOOL=$lt_OTOOL
20555
20556 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20557 OTOOL64=$lt_OTOOL64
20558
20559 # Old archive suffix (normally "a").
20560 libext=$libext
20561
20562 # Shared library suffix (normally ".so").
20563 shrext_cmds=$lt_shrext_cmds
20564
20565 # The commands to extract the exported symbol list from a shared archive.
20566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20567
20568 # Variables whose values should be saved in libtool wrapper scripts and
20569 # restored at link time.
20570 variables_saved_for_relink=$lt_variables_saved_for_relink
20571
20572 # Do we need the "lib" prefix for modules?
20573 need_lib_prefix=$need_lib_prefix
20574
20575 # Do we need a version for libraries?
20576 need_version=$need_version
20577
20578 # Library versioning type.
20579 version_type=$version_type
20580
20581 # Shared library runtime path variable.
20582 runpath_var=$runpath_var
20583
20584 # Shared library path variable.
20585 shlibpath_var=$shlibpath_var
20586
20587 # Is shlibpath searched before the hard-coded library search path?
20588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20589
20590 # Format of library name prefix.
20591 libname_spec=$lt_libname_spec
20592
20593 # List of archive names.  First name is the real one, the rest are links.
20594 # The last name is the one that the linker finds with -lNAME
20595 library_names_spec=$lt_library_names_spec
20596
20597 # The coded name of the library, if different from the real name.
20598 soname_spec=$lt_soname_spec
20599
20600 # Permission mode override for installation of shared libraries.
20601 install_override_mode=$lt_install_override_mode
20602
20603 # Command to use after installation of a shared archive.
20604 postinstall_cmds=$lt_postinstall_cmds
20605
20606 # Command to use after uninstallation of a shared archive.
20607 postuninstall_cmds=$lt_postuninstall_cmds
20608
20609 # Commands used to finish a libtool library installation in a directory.
20610 finish_cmds=$lt_finish_cmds
20611
20612 # As "finish_cmds", except a single script fragment to be evaled but
20613 # not shown.
20614 finish_eval=$lt_finish_eval
20615
20616 # Whether we should hardcode library paths into libraries.
20617 hardcode_into_libs=$hardcode_into_libs
20618
20619 # Compile-time system search path for libraries.
20620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20621
20622 # Run-time system search path for libraries.
20623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20624
20625 # Whether dlopen is supported.
20626 dlopen_support=$enable_dlopen
20627
20628 # Whether dlopen of programs is supported.
20629 dlopen_self=$enable_dlopen_self
20630
20631 # Whether dlopen of statically linked programs is supported.
20632 dlopen_self_static=$enable_dlopen_self_static
20633
20634 # Commands to strip libraries.
20635 old_striplib=$lt_old_striplib
20636 striplib=$lt_striplib
20637
20638
20639 # The linker used to build libraries.
20640 LD=$lt_LD
20641
20642 # How to create reloadable object files.
20643 reload_flag=$lt_reload_flag
20644 reload_cmds=$lt_reload_cmds
20645
20646 # Commands used to build an old-style archive.
20647 old_archive_cmds=$lt_old_archive_cmds
20648
20649 # A language specific compiler.
20650 CC=$lt_compiler
20651
20652 # Is the compiler the GNU compiler?
20653 with_gcc=$GCC
20654
20655 # Compiler flag to turn off builtin functions.
20656 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20657
20658 # Additional compiler flags for building library objects.
20659 pic_flag=$lt_lt_prog_compiler_pic
20660
20661 # How to pass a linker flag through the compiler.
20662 wl=$lt_lt_prog_compiler_wl
20663
20664 # Compiler flag to prevent dynamic linking.
20665 link_static_flag=$lt_lt_prog_compiler_static
20666
20667 # Does compiler simultaneously support -c and -o options?
20668 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20669
20670 # Whether or not to add -lc for building shared libraries.
20671 build_libtool_need_lc=$archive_cmds_need_lc
20672
20673 # Whether or not to disallow shared libs when runtime libs are static.
20674 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20675
20676 # Compiler flag to allow reflexive dlopens.
20677 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20678
20679 # Compiler flag to generate shared objects directly from archives.
20680 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20681
20682 # Whether the compiler copes with passing no objects directly.
20683 compiler_needs_object=$lt_compiler_needs_object
20684
20685 # Create an old-style archive from a shared archive.
20686 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20687
20688 # Create a temporary old-style archive to link instead of a shared archive.
20689 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20690
20691 # Commands used to build a shared archive.
20692 archive_cmds=$lt_archive_cmds
20693 archive_expsym_cmds=$lt_archive_expsym_cmds
20694
20695 # Commands used to build a loadable module if different from building
20696 # a shared archive.
20697 module_cmds=$lt_module_cmds
20698 module_expsym_cmds=$lt_module_expsym_cmds
20699
20700 # Whether we are building with GNU ld or not.
20701 with_gnu_ld=$lt_with_gnu_ld
20702
20703 # Flag that allows shared libraries with undefined symbols to be built.
20704 allow_undefined_flag=$lt_allow_undefined_flag
20705
20706 # Flag that enforces no undefined symbols.
20707 no_undefined_flag=$lt_no_undefined_flag
20708
20709 # Flag to hardcode \$libdir into a binary during linking.
20710 # This must work even if \$libdir does not exist
20711 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20712
20713 # If ld is used when linking, flag to hardcode \$libdir into a binary
20714 # during linking.  This must work even if \$libdir does not exist.
20715 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20716
20717 # Whether we need a single "-rpath" flag with a separated argument.
20718 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20719
20720 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20721 # DIR into the resulting binary.
20722 hardcode_direct=$hardcode_direct
20723
20724 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20725 # DIR into the resulting binary and the resulting library dependency is
20726 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20727 # library is relocated.
20728 hardcode_direct_absolute=$hardcode_direct_absolute
20729
20730 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20731 # into the resulting binary.
20732 hardcode_minus_L=$hardcode_minus_L
20733
20734 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20735 # into the resulting binary.
20736 hardcode_shlibpath_var=$hardcode_shlibpath_var
20737
20738 # Set to "yes" if building a shared library automatically hardcodes DIR
20739 # into the library and all subsequent libraries and executables linked
20740 # against it.
20741 hardcode_automatic=$hardcode_automatic
20742
20743 # Set to yes if linker adds runtime paths of dependent libraries
20744 # to runtime path list.
20745 inherit_rpath=$inherit_rpath
20746
20747 # Whether libtool must link a program against all its dependency libraries.
20748 link_all_deplibs=$link_all_deplibs
20749
20750 # Set to "yes" if exported symbols are required.
20751 always_export_symbols=$always_export_symbols
20752
20753 # The commands to list exported symbols.
20754 export_symbols_cmds=$lt_export_symbols_cmds
20755
20756 # Symbols that should not be listed in the preloaded symbols.
20757 exclude_expsyms=$lt_exclude_expsyms
20758
20759 # Symbols that must always be exported.
20760 include_expsyms=$lt_include_expsyms
20761
20762 # Commands necessary for linking programs (against libraries) with templates.
20763 prelink_cmds=$lt_prelink_cmds
20764
20765 # Commands necessary for finishing linking programs.
20766 postlink_cmds=$lt_postlink_cmds
20767
20768 # Specify filename containing input files.
20769 file_list_spec=$lt_file_list_spec
20770
20771 # How to hardcode a shared library path into an executable.
20772 hardcode_action=$hardcode_action
20773
20774 # The directories searched by this compiler when creating a shared library.
20775 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20776
20777 # Dependencies to place before and after the objects being linked to
20778 # create a shared library.
20779 predep_objects=$lt_predep_objects
20780 postdep_objects=$lt_postdep_objects
20781 predeps=$lt_predeps
20782 postdeps=$lt_postdeps
20783
20784 # The library search path used internally by the compiler when linking
20785 # a shared library.
20786 compiler_lib_search_path=$lt_compiler_lib_search_path
20787
20788 # ### END LIBTOOL CONFIG
20789
20790 _LT_EOF
20791
20792   case $host_os in
20793   aix3*)
20794     cat <<\_LT_EOF >> "$cfgfile"
20795 # AIX sometimes has problems with the GCC collect2 program.  For some
20796 # reason, if we set the COLLECT_NAMES environment variable, the problems
20797 # vanish in a puff of smoke.
20798 if test "X${COLLECT_NAMES+set}" != Xset; then
20799   COLLECT_NAMES=
20800   export COLLECT_NAMES
20801 fi
20802 _LT_EOF
20803     ;;
20804   esac
20805
20806
20807
20808   # We use sed instead of cat because bash on DJGPP gets confused if
20809   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20810   # text mode, it properly converts lines to CR/LF.  This bash problem
20811   # is reportedly fixed, but why not run on old versions too?
20812   sed '$q' "$ltmain" >> "$cfgfile" \
20813      || (rm -f "$cfgfile"; exit 1)
20814
20815   if test x"$xsi_shell" = xyes; then
20816   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20817 func_dirname ()\
20818 {\
20819 \    case ${1} in\
20820 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20821 \      *  ) func_dirname_result="${3}" ;;\
20822 \    esac\
20823 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20824   && mv -f "$cfgfile.tmp" "$cfgfile" \
20825     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20826 test 0 -eq $? || _lt_function_replace_fail=:
20827
20828
20829   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20830 func_basename ()\
20831 {\
20832 \    func_basename_result="${1##*/}"\
20833 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20834   && mv -f "$cfgfile.tmp" "$cfgfile" \
20835     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20836 test 0 -eq $? || _lt_function_replace_fail=:
20837
20838
20839   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20840 func_dirname_and_basename ()\
20841 {\
20842 \    case ${1} in\
20843 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20844 \      *  ) func_dirname_result="${3}" ;;\
20845 \    esac\
20846 \    func_basename_result="${1##*/}"\
20847 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20848   && mv -f "$cfgfile.tmp" "$cfgfile" \
20849     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20850 test 0 -eq $? || _lt_function_replace_fail=:
20851
20852
20853   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20854 func_stripname ()\
20855 {\
20856 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20857 \    # positional parameters, so assign one to ordinary parameter first.\
20858 \    func_stripname_result=${3}\
20859 \    func_stripname_result=${func_stripname_result#"${1}"}\
20860 \    func_stripname_result=${func_stripname_result%"${2}"}\
20861 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20862   && mv -f "$cfgfile.tmp" "$cfgfile" \
20863     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20864 test 0 -eq $? || _lt_function_replace_fail=:
20865
20866
20867   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20868 func_split_long_opt ()\
20869 {\
20870 \    func_split_long_opt_name=${1%%=*}\
20871 \    func_split_long_opt_arg=${1#*=}\
20872 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20873   && mv -f "$cfgfile.tmp" "$cfgfile" \
20874     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20875 test 0 -eq $? || _lt_function_replace_fail=:
20876
20877
20878   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20879 func_split_short_opt ()\
20880 {\
20881 \    func_split_short_opt_arg=${1#??}\
20882 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20883 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20884   && mv -f "$cfgfile.tmp" "$cfgfile" \
20885     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20886 test 0 -eq $? || _lt_function_replace_fail=:
20887
20888
20889   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20890 func_lo2o ()\
20891 {\
20892 \    case ${1} in\
20893 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20894 \      *)    func_lo2o_result=${1} ;;\
20895 \    esac\
20896 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20897   && mv -f "$cfgfile.tmp" "$cfgfile" \
20898     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20899 test 0 -eq $? || _lt_function_replace_fail=:
20900
20901
20902   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20903 func_xform ()\
20904 {\
20905     func_xform_result=${1%.*}.lo\
20906 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20907   && mv -f "$cfgfile.tmp" "$cfgfile" \
20908     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20909 test 0 -eq $? || _lt_function_replace_fail=:
20910
20911
20912   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20913 func_arith ()\
20914 {\
20915     func_arith_result=$(( $* ))\
20916 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20917   && mv -f "$cfgfile.tmp" "$cfgfile" \
20918     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20919 test 0 -eq $? || _lt_function_replace_fail=:
20920
20921
20922   sed -e '/^func_len ()$/,/^} # func_len /c\
20923 func_len ()\
20924 {\
20925     func_len_result=${#1}\
20926 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20927   && mv -f "$cfgfile.tmp" "$cfgfile" \
20928     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20929 test 0 -eq $? || _lt_function_replace_fail=:
20930
20931 fi
20932
20933 if test x"$lt_shell_append" = xyes; then
20934   sed -e '/^func_append ()$/,/^} # func_append /c\
20935 func_append ()\
20936 {\
20937     eval "${1}+=\\${2}"\
20938 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20939   && mv -f "$cfgfile.tmp" "$cfgfile" \
20940     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20941 test 0 -eq $? || _lt_function_replace_fail=:
20942
20943
20944   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20945 func_append_quoted ()\
20946 {\
20947 \    func_quote_for_eval "${2}"\
20948 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20949 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20950   && mv -f "$cfgfile.tmp" "$cfgfile" \
20951     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20952 test 0 -eq $? || _lt_function_replace_fail=:
20953
20954
20955   # Save a `func_append' function call where possible by direct use of '+='
20956   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20957     && mv -f "$cfgfile.tmp" "$cfgfile" \
20958       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20959   test 0 -eq $? || _lt_function_replace_fail=:
20960 else
20961   # Save a `func_append' function call even when '+=' is not available
20962   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20963     && mv -f "$cfgfile.tmp" "$cfgfile" \
20964       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20965   test 0 -eq $? || _lt_function_replace_fail=:
20966 fi
20967
20968 if test x"$_lt_function_replace_fail" = x":"; then
20969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20970 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20971 fi
20972
20973
20974    mv -f "$cfgfile" "$ofile" ||
20975     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20976   chmod +x "$ofile"
20977
20978
20979     cat <<_LT_EOF >> "$ofile"
20980
20981 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20982
20983 # The linker used to build libraries.
20984 LD=$lt_LD_CXX
20985
20986 # How to create reloadable object files.
20987 reload_flag=$lt_reload_flag_CXX
20988 reload_cmds=$lt_reload_cmds_CXX
20989
20990 # Commands used to build an old-style archive.
20991 old_archive_cmds=$lt_old_archive_cmds_CXX
20992
20993 # A language specific compiler.
20994 CC=$lt_compiler_CXX
20995
20996 # Is the compiler the GNU compiler?
20997 with_gcc=$GCC_CXX
20998
20999 # Compiler flag to turn off builtin functions.
21000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21001
21002 # Additional compiler flags for building library objects.
21003 pic_flag=$lt_lt_prog_compiler_pic_CXX
21004
21005 # How to pass a linker flag through the compiler.
21006 wl=$lt_lt_prog_compiler_wl_CXX
21007
21008 # Compiler flag to prevent dynamic linking.
21009 link_static_flag=$lt_lt_prog_compiler_static_CXX
21010
21011 # Does compiler simultaneously support -c and -o options?
21012 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21013
21014 # Whether or not to add -lc for building shared libraries.
21015 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21016
21017 # Whether or not to disallow shared libs when runtime libs are static.
21018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21019
21020 # Compiler flag to allow reflexive dlopens.
21021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21022
21023 # Compiler flag to generate shared objects directly from archives.
21024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21025
21026 # Whether the compiler copes with passing no objects directly.
21027 compiler_needs_object=$lt_compiler_needs_object_CXX
21028
21029 # Create an old-style archive from a shared archive.
21030 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21031
21032 # Create a temporary old-style archive to link instead of a shared archive.
21033 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21034
21035 # Commands used to build a shared archive.
21036 archive_cmds=$lt_archive_cmds_CXX
21037 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21038
21039 # Commands used to build a loadable module if different from building
21040 # a shared archive.
21041 module_cmds=$lt_module_cmds_CXX
21042 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21043
21044 # Whether we are building with GNU ld or not.
21045 with_gnu_ld=$lt_with_gnu_ld_CXX
21046
21047 # Flag that allows shared libraries with undefined symbols to be built.
21048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21049
21050 # Flag that enforces no undefined symbols.
21051 no_undefined_flag=$lt_no_undefined_flag_CXX
21052
21053 # Flag to hardcode \$libdir into a binary during linking.
21054 # This must work even if \$libdir does not exist
21055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21056
21057 # If ld is used when linking, flag to hardcode \$libdir into a binary
21058 # during linking.  This must work even if \$libdir does not exist.
21059 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21060
21061 # Whether we need a single "-rpath" flag with a separated argument.
21062 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21063
21064 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21065 # DIR into the resulting binary.
21066 hardcode_direct=$hardcode_direct_CXX
21067
21068 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21069 # DIR into the resulting binary and the resulting library dependency is
21070 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21071 # library is relocated.
21072 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21073
21074 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21075 # into the resulting binary.
21076 hardcode_minus_L=$hardcode_minus_L_CXX
21077
21078 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21079 # into the resulting binary.
21080 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21081
21082 # Set to "yes" if building a shared library automatically hardcodes DIR
21083 # into the library and all subsequent libraries and executables linked
21084 # against it.
21085 hardcode_automatic=$hardcode_automatic_CXX
21086
21087 # Set to yes if linker adds runtime paths of dependent libraries
21088 # to runtime path list.
21089 inherit_rpath=$inherit_rpath_CXX
21090
21091 # Whether libtool must link a program against all its dependency libraries.
21092 link_all_deplibs=$link_all_deplibs_CXX
21093
21094 # Set to "yes" if exported symbols are required.
21095 always_export_symbols=$always_export_symbols_CXX
21096
21097 # The commands to list exported symbols.
21098 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21099
21100 # Symbols that should not be listed in the preloaded symbols.
21101 exclude_expsyms=$lt_exclude_expsyms_CXX
21102
21103 # Symbols that must always be exported.
21104 include_expsyms=$lt_include_expsyms_CXX
21105
21106 # Commands necessary for linking programs (against libraries) with templates.
21107 prelink_cmds=$lt_prelink_cmds_CXX
21108
21109 # Commands necessary for finishing linking programs.
21110 postlink_cmds=$lt_postlink_cmds_CXX
21111
21112 # Specify filename containing input files.
21113 file_list_spec=$lt_file_list_spec_CXX
21114
21115 # How to hardcode a shared library path into an executable.
21116 hardcode_action=$hardcode_action_CXX
21117
21118 # The directories searched by this compiler when creating a shared library.
21119 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21120
21121 # Dependencies to place before and after the objects being linked to
21122 # create a shared library.
21123 predep_objects=$lt_predep_objects_CXX
21124 postdep_objects=$lt_postdep_objects_CXX
21125 predeps=$lt_predeps_CXX
21126 postdeps=$lt_postdeps_CXX
21127
21128 # The library search path used internally by the compiler when linking
21129 # a shared library.
21130 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21131
21132 # ### END LIBTOOL TAG CONFIG: CXX
21133 _LT_EOF
21134
21135  ;;
21136     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
21137     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
21138     "main-chmod":C) (cd ./src/main   && chmod +x checkrad radlast radtest) ;;
21139     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
21140
21141   esac
21142 done # for ac_tag
21143
21144
21145 as_fn_exit 0
21146 _ACEOF
21147 ac_clean_files=$ac_clean_files_save
21148
21149 test $ac_write_fail = 0 ||
21150   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21151
21152
21153 # configure is writing to config.log, and then calls config.status.
21154 # config.status does its own redirection, appending to config.log.
21155 # Unfortunately, on DOS this fails, as config.log is still kept open
21156 # by configure, so config.status won't be able to write to it; its
21157 # output is simply discarded.  So we exec the FD to /dev/null,
21158 # effectively closing config.log, so it can be properly (re)opened and
21159 # appended to by config.status.  When coming back to configure, we
21160 # need to make the FD available again.
21161 if test "$no_create" != yes; then
21162   ac_cs_success=:
21163   ac_config_status_args=
21164   test "$silent" = yes &&
21165     ac_config_status_args="$ac_config_status_args --quiet"
21166   exec 5>/dev/null
21167   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21168   exec 5>>config.log
21169   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21170   # would make configure fail if this is the last instruction.
21171   $ac_cs_success || as_fn_exit 1
21172 fi
21173
21174 #
21175 # CONFIG_SUBDIRS section.
21176 #
21177 if test "$no_recursion" != yes; then
21178
21179   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21180   # so they do not pile up.
21181   ac_sub_configure_args=
21182   ac_prev=
21183   eval "set x $ac_configure_args"
21184   shift
21185   for ac_arg
21186   do
21187     if test -n "$ac_prev"; then
21188       ac_prev=
21189       continue
21190     fi
21191     case $ac_arg in
21192     -cache-file | --cache-file | --cache-fil | --cache-fi \
21193     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21194       ac_prev=cache_file ;;
21195     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21196     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21197     | --c=*)
21198       ;;
21199     --config-cache | -C)
21200       ;;
21201     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21202       ac_prev=srcdir ;;
21203     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21204       ;;
21205     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21206       ac_prev=prefix ;;
21207     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21208       ;;
21209     --disable-option-checking)
21210       ;;
21211     *)
21212       case $ac_arg in
21213       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21214       esac
21215       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21216     esac
21217   done
21218
21219   # Always prepend --prefix to ensure using the same prefix
21220   # in subdir configurations.
21221   ac_arg="--prefix=$prefix"
21222   case $ac_arg in
21223   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21224   esac
21225   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21226
21227   # Pass --silent
21228   if test "$silent" = yes; then
21229     ac_sub_configure_args="--silent $ac_sub_configure_args"
21230   fi
21231
21232   # Always prepend --disable-option-checking to silence warnings, since
21233   # different subdirs can have different --enable and --with options.
21234   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21235
21236   ac_popdir=`pwd`
21237   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21238
21239     # Do not complain, so a configure script can configure whichever
21240     # parts of a large source tree are present.
21241     test -d "$srcdir/$ac_dir" || continue
21242
21243     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21244     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21245     $as_echo "$ac_msg" >&6
21246     as_dir="$ac_dir"; as_fn_mkdir_p
21247     ac_builddir=.
21248
21249 case "$ac_dir" in
21250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21251 *)
21252   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21253   # A ".." for each directory in $ac_dir_suffix.
21254   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21255   case $ac_top_builddir_sub in
21256   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21257   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21258   esac ;;
21259 esac
21260 ac_abs_top_builddir=$ac_pwd
21261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21262 # for backward compatibility:
21263 ac_top_builddir=$ac_top_build_prefix
21264
21265 case $srcdir in
21266   .)  # We are building in place.
21267     ac_srcdir=.
21268     ac_top_srcdir=$ac_top_builddir_sub
21269     ac_abs_top_srcdir=$ac_pwd ;;
21270   [\\/]* | ?:[\\/]* )  # Absolute name.
21271     ac_srcdir=$srcdir$ac_dir_suffix;
21272     ac_top_srcdir=$srcdir
21273     ac_abs_top_srcdir=$srcdir ;;
21274   *) # Relative name.
21275     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21276     ac_top_srcdir=$ac_top_build_prefix$srcdir
21277     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21278 esac
21279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21280
21281
21282     cd "$ac_dir"
21283
21284     # Check for guested configure; otherwise get Cygnus style configure.
21285     if test -f "$ac_srcdir/configure.gnu"; then
21286       ac_sub_configure=$ac_srcdir/configure.gnu
21287     elif test -f "$ac_srcdir/configure"; then
21288       ac_sub_configure=$ac_srcdir/configure
21289     elif test -f "$ac_srcdir/configure.in"; then
21290       # This should be Cygnus configure.
21291       ac_sub_configure=$ac_aux_dir/configure
21292     else
21293       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21294 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21295       ac_sub_configure=
21296     fi
21297
21298     # The recursion is here.
21299     if test -n "$ac_sub_configure"; then
21300       # Make the cache file name correct relative to the subdirectory.
21301       case $cache_file in
21302       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21303       *) # Relative name.
21304         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21305       esac
21306
21307       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21308 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21309       # The eval makes quoting arguments work.
21310       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21311            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21312         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21313     fi
21314
21315     cd "$ac_popdir"
21316   done
21317 fi
21318 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21319   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21320 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21321 fi
21322
21323