Remove last shred of libtool
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68.
5 #
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         # Preserve -v and -x to the replacement shell.
228         BASH_ENV=/dev/null
229         ENV=/dev/null
230         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231         export CONFIG_SHELL
232         case $- in # ((((
233           *v*x* | *x*v* ) as_opts=-vx ;;
234           *v* ) as_opts=-v ;;
235           *x* ) as_opts=-x ;;
236           * ) as_opts= ;;
237         esac
238         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
239 fi
240
241     if test x$as_have_required = xno; then :
242   $as_echo "$0: This script requires a shell more modern than all"
243   $as_echo "$0: the shells that I found on your system."
244   if test x${ZSH_VERSION+set} = xset ; then
245     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
246     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247   else
248     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
249 $0: including any error possibly output before this
250 $0: message. Then install a modern shell, or manually run
251 $0: the script under such a shell if you do have one."
252   fi
253   exit 1
254 fi
255 fi
256 fi
257 SHELL=${CONFIG_SHELL-/bin/sh}
258 export SHELL
259 # Unset more variables known to interfere with behavior of common tools.
260 CLICOLOR_FORCE= GREP_OPTIONS=
261 unset CLICOLOR_FORCE GREP_OPTIONS
262
263 ## --------------------- ##
264 ## M4sh Shell Functions. ##
265 ## --------------------- ##
266 # as_fn_unset VAR
267 # ---------------
268 # Portably unset VAR.
269 as_fn_unset ()
270 {
271   { eval $1=; unset $1;}
272 }
273 as_unset=as_fn_unset
274
275 # as_fn_set_status STATUS
276 # -----------------------
277 # Set $? to STATUS, without forking.
278 as_fn_set_status ()
279 {
280   return $1
281 } # as_fn_set_status
282
283 # as_fn_exit STATUS
284 # -----------------
285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 as_fn_exit ()
287 {
288   set +e
289   as_fn_set_status $1
290   exit $1
291 } # as_fn_exit
292
293 # as_fn_mkdir_p
294 # -------------
295 # Create "$as_dir" as a directory, including parents if necessary.
296 as_fn_mkdir_p ()
297 {
298
299   case $as_dir in #(
300   -*) as_dir=./$as_dir;;
301   esac
302   test -d "$as_dir" || eval $as_mkdir_p || {
303     as_dirs=
304     while :; do
305       case $as_dir in #(
306       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
307       *) as_qdir=$as_dir;;
308       esac
309       as_dirs="'$as_qdir' $as_dirs"
310       as_dir=`$as_dirname -- "$as_dir" ||
311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
312          X"$as_dir" : 'X\(//\)[^/]' \| \
313          X"$as_dir" : 'X\(//\)$' \| \
314          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
315 $as_echo X"$as_dir" |
316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317             s//\1/
318             q
319           }
320           /^X\(\/\/\)[^/].*/{
321             s//\1/
322             q
323           }
324           /^X\(\/\/\)$/{
325             s//\1/
326             q
327           }
328           /^X\(\/\).*/{
329             s//\1/
330             q
331           }
332           s/.*/./; q'`
333       test -d "$as_dir" && break
334     done
335     test -z "$as_dirs" || eval "mkdir $as_dirs"
336   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
337
338
339 } # as_fn_mkdir_p
340 # as_fn_append VAR VALUE
341 # ----------------------
342 # Append the text in VALUE to the end of the definition contained in VAR. Take
343 # advantage of any shell optimizations that allow amortized linear growth over
344 # repeated appends, instead of the typical quadratic growth present in naive
345 # implementations.
346 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
347   eval 'as_fn_append ()
348   {
349     eval $1+=\$2
350   }'
351 else
352   as_fn_append ()
353   {
354     eval $1=\$$1\$2
355   }
356 fi # as_fn_append
357
358 # as_fn_arith ARG...
359 # ------------------
360 # Perform arithmetic evaluation on the ARGs, and store the result in the
361 # global $as_val. Take advantage of shells that can avoid forks. The arguments
362 # must be portable across $(()) and expr.
363 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
364   eval 'as_fn_arith ()
365   {
366     as_val=$(( $* ))
367   }'
368 else
369   as_fn_arith ()
370   {
371     as_val=`expr "$@" || test $? -eq 1`
372   }
373 fi # as_fn_arith
374
375
376 # as_fn_error STATUS ERROR [LINENO LOG_FD]
377 # ----------------------------------------
378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
380 # script with STATUS, using 1 if that was 0.
381 as_fn_error ()
382 {
383   as_status=$1; test $as_status -eq 0 && as_status=1
384   if test "$4"; then
385     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
386     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387   fi
388   $as_echo "$as_me: error: $2" >&2
389   as_fn_exit $as_status
390 } # as_fn_error
391
392 if expr a : '\(a\)' >/dev/null 2>&1 &&
393    test "X`expr 00001 : '.*\(...\)'`" = X001; then
394   as_expr=expr
395 else
396   as_expr=false
397 fi
398
399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400   as_basename=basename
401 else
402   as_basename=false
403 fi
404
405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406   as_dirname=dirname
407 else
408   as_dirname=false
409 fi
410
411 as_me=`$as_basename -- "$0" ||
412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
413          X"$0" : 'X\(//\)$' \| \
414          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 $as_echo X/"$0" |
416     sed '/^.*\/\([^/][^/]*\)\/*$/{
417             s//\1/
418             q
419           }
420           /^X\/\(\/\/\)$/{
421             s//\1/
422             q
423           }
424           /^X\/\(\/\).*/{
425             s//\1/
426             q
427           }
428           s/.*/./; q'`
429
430 # Avoid depending upon Character Ranges.
431 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
434 as_cr_digits='0123456789'
435 as_cr_alnum=$as_cr_Letters$as_cr_digits
436
437
438   as_lineno_1=$LINENO as_lineno_1a=$LINENO
439   as_lineno_2=$LINENO as_lineno_2a=$LINENO
440   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
441   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
442   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
443   sed -n '
444     p
445     /[$]LINENO/=
446   ' <$as_myself |
447     sed '
448       s/[$]LINENO.*/&-/
449       t lineno
450       b
451       :lineno
452       N
453       :loop
454       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455       t loop
456       s/-\n.*//
457     ' >$as_me.lineno &&
458   chmod +x "$as_me.lineno" ||
459     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in #(((((
471 -n*)
472   case `echo 'xy\c'` in
473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
474   xy)  ECHO_C='\c';;
475   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
476        ECHO_T=' ';;
477   esac;;
478 *)
479   ECHO_N='-n';;
480 esac
481
482 rm -f conf$$ conf$$.exe conf$$.file
483 if test -d conf$$.dir; then
484   rm -f conf$$.dir/conf$$.file
485 else
486   rm -f conf$$.dir
487   mkdir conf$$.dir 2>/dev/null
488 fi
489 if (echo >conf$$.file) 2>/dev/null; then
490   if ln -s conf$$.file conf$$ 2>/dev/null; then
491     as_ln_s='ln -s'
492     # ... but there are two gotchas:
493     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
494     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
495     # In both cases, we have to default to `cp -p'.
496     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497       as_ln_s='cp -p'
498   elif ln conf$$.file conf$$ 2>/dev/null; then
499     as_ln_s=ln
500   else
501     as_ln_s='cp -p'
502   fi
503 else
504   as_ln_s='cp -p'
505 fi
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
508
509 if mkdir -p . 2>/dev/null; then
510   as_mkdir_p='mkdir -p "$as_dir"'
511 else
512   test -d ./-p && rmdir ./-p
513   as_mkdir_p=false
514 fi
515
516 if test -x / >/dev/null 2>&1; then
517   as_test_x='test -x'
518 else
519   if ls -dL / >/dev/null 2>&1; then
520     as_ls_L_option=L
521   else
522     as_ls_L_option=
523   fi
524   as_test_x='
525     eval sh -c '\''
526       if test -d "$1"; then
527         test -d "$1/.";
528       else
529         case $1 in #(
530         -*)set "./$1";;
531         esac;
532         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
533         ???[sx]*):;;*)false;;esac;fi
534     '\'' sh
535   '
536 fi
537 as_executable_p=$as_test_x
538
539 # Sed expression to map a string onto a valid CPP name.
540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541
542 # Sed expression to map a string onto a valid variable name.
543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544
545 SHELL=${CONFIG_SHELL-/bin/sh}
546
547
548 test -n "$DJDIR" || exec 7<&0 </dev/null
549 exec 6>&1
550
551 # Name of the host.
552 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
553 # so uname gets run too.
554 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
555
556 #
557 # Initializations.
558 #
559 ac_default_prefix=/usr/local
560 ac_clean_files=
561 ac_config_libobj_dir=.
562 LIBOBJS=
563 cross_compiling=no
564 subdirs=
565 MFLAGS=
566 MAKEFLAGS=
567
568 # Identity of this package.
569 PACKAGE_NAME=
570 PACKAGE_TARNAME=
571 PACKAGE_VERSION=
572 PACKAGE_STRING=
573 PACKAGE_BUGREPORT=
574 PACKAGE_URL=
575
576 ac_unique_file="src/main/radiusd.c"
577 # Factoring default headers for most tests.
578 ac_includes_default="\
579 #include <stdio.h>
580 #ifdef HAVE_SYS_TYPES_H
581 # include <sys/types.h>
582 #endif
583 #ifdef HAVE_SYS_STAT_H
584 # include <sys/stat.h>
585 #endif
586 #ifdef STDC_HEADERS
587 # include <stdlib.h>
588 # include <stddef.h>
589 #else
590 # ifdef HAVE_STDLIB_H
591 #  include <stdlib.h>
592 # endif
593 #endif
594 #ifdef HAVE_STRING_H
595 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
596 #  include <memory.h>
597 # endif
598 # include <string.h>
599 #endif
600 #ifdef HAVE_STRINGS_H
601 # include <strings.h>
602 #endif
603 #ifdef HAVE_INTTYPES_H
604 # include <inttypes.h>
605 #endif
606 #ifdef HAVE_STDINT_H
607 # include <stdint.h>
608 #endif
609 #ifdef HAVE_UNISTD_H
610 # include <unistd.h>
611 #endif"
612
613 enable_option_checking=no
614 ac_subst_vars='LTLIBOBJS
615 LIBOBJS
616 RADIUSD_VERSION
617 RADIUSD_MINOR_VERSION
618 RADIUSD_MAJOR_VERSION
619 STATIC_MODULES
620 USE_STATIC_LIBS
621 USE_SHARED_LIBS
622 INSTALLSTRIP
623 MODULES
624 subdirs
625 INCLTDL
626 LIBLTDL
627 HOSTINFO
628 CRYPTLIB
629 LIBPREFIX
630 PCAP_LIBS
631 OPENSSL_LIBS
632 OPENSSL_INCLUDE
633 REGEX_EXTENDED
634 REGEX_PCRE
635 REGEX
636 LIBREADLINE
637 DIRNAME
638 LOCATE
639 AUTOHEADER
640 AUTOCONF
641 ACLOCAL
642 RUSERS
643 SNMPWALK
644 SNMPGET
645 PERL
646 raddbdir
647 radacctdir
648 logdir
649 CXXCPP
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 AWK
657 STRIP
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 LIBTOOL
678 MAKE
679 GMAKE
680 RANLIB
681 EGREP
682 GREP
683 CPP
684 ac_ct_CXX
685 CXXFLAGS
686 CXX
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_largefile
736 with_system_libltdl
737 with_system_libtool
738 enable_shared
739 enable_static
740 with_pic
741 enable_fast_install
742 with_gnu_ld
743 with_sysroot
744 enable_libtool_lock
745 enable_strict_dependencies
746 with_docdir
747 with_logdir
748 with_radacctdir
749 with_raddbdir
750 with_ascend_binary
751 with_threads
752 with_vmps
753 with_dhcp
754 with_static_modules
755 with_modules
756 enable_developer
757 with_experimental_modules
758 with_openssl
759 with_openssl_includes
760 with_openssl_libraries
761 with_rlm_FOO_lib_dir
762 with_rlm_FOO_include_dir
763 with_udpfromto
764 '
765       ac_precious_vars='build_alias
766 host_alias
767 target_alias
768 CC
769 CFLAGS
770 LDFLAGS
771 LIBS
772 CPPFLAGS
773 CXX
774 CXXFLAGS
775 CCC
776 CPP
777 CXXCPP'
778 ac_subdirs_all='$mysubdirs'
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832   # If the previous option needs an argument, assign it.
833   if test -n "$ac_prev"; then
834     eval $ac_prev=\$ac_option
835     ac_prev=
836     continue
837   fi
838
839   case $ac_option in
840   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841   *=)   ac_optarg= ;;
842   *)    ac_optarg=yes ;;
843   esac
844
845   # Accept the important Cygnus configure options, so we can diagnose typos.
846
847   case $ac_dashdash$ac_option in
848   --)
849     ac_dashdash=yes ;;
850
851   -bindir | --bindir | --bindi | --bind | --bin | --bi)
852     ac_prev=bindir ;;
853   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854     bindir=$ac_optarg ;;
855
856   -build | --build | --buil | --bui | --bu)
857     ac_prev=build_alias ;;
858   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859     build_alias=$ac_optarg ;;
860
861   -cache-file | --cache-file | --cache-fil | --cache-fi \
862   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863     ac_prev=cache_file ;;
864   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866     cache_file=$ac_optarg ;;
867
868   --config-cache | -C)
869     cache_file=config.cache ;;
870
871   -datadir | --datadir | --datadi | --datad)
872     ac_prev=datadir ;;
873   -datadir=* | --datadir=* | --datadi=* | --datad=*)
874     datadir=$ac_optarg ;;
875
876   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877   | --dataroo | --dataro | --datar)
878     ac_prev=datarootdir ;;
879   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881     datarootdir=$ac_optarg ;;
882
883   -disable-* | --disable-*)
884     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887       as_fn_error $? "invalid feature name: $ac_useropt"
888     ac_useropt_orig=$ac_useropt
889     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890     case $ac_user_opts in
891       *"
892 "enable_$ac_useropt"
893 "*) ;;
894       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895          ac_unrecognized_sep=', ';;
896     esac
897     eval enable_$ac_useropt=no ;;
898
899   -docdir | --docdir | --docdi | --doc | --do)
900     ac_prev=docdir ;;
901   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902     docdir=$ac_optarg ;;
903
904   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905     ac_prev=dvidir ;;
906   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907     dvidir=$ac_optarg ;;
908
909   -enable-* | --enable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=\$ac_optarg ;;
924
925   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927   | --exec | --exe | --ex)
928     ac_prev=exec_prefix ;;
929   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931   | --exec=* | --exe=* | --ex=*)
932     exec_prefix=$ac_optarg ;;
933
934   -gas | --gas | --ga | --g)
935     # Obsolete; use --with-gas.
936     with_gas=yes ;;
937
938   -help | --help | --hel | --he | -h)
939     ac_init_help=long ;;
940   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941     ac_init_help=recursive ;;
942   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943     ac_init_help=short ;;
944
945   -host | --host | --hos | --ho)
946     ac_prev=host_alias ;;
947   -host=* | --host=* | --hos=* | --ho=*)
948     host_alias=$ac_optarg ;;
949
950   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951     ac_prev=htmldir ;;
952   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953   | --ht=*)
954     htmldir=$ac_optarg ;;
955
956   -includedir | --includedir | --includedi | --included | --include \
957   | --includ | --inclu | --incl | --inc)
958     ac_prev=includedir ;;
959   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960   | --includ=* | --inclu=* | --incl=* | --inc=*)
961     includedir=$ac_optarg ;;
962
963   -infodir | --infodir | --infodi | --infod | --info | --inf)
964     ac_prev=infodir ;;
965   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966     infodir=$ac_optarg ;;
967
968   -libdir | --libdir | --libdi | --libd)
969     ac_prev=libdir ;;
970   -libdir=* | --libdir=* | --libdi=* | --libd=*)
971     libdir=$ac_optarg ;;
972
973   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974   | --libexe | --libex | --libe)
975     ac_prev=libexecdir ;;
976   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977   | --libexe=* | --libex=* | --libe=*)
978     libexecdir=$ac_optarg ;;
979
980   -localedir | --localedir | --localedi | --localed | --locale)
981     ac_prev=localedir ;;
982   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983     localedir=$ac_optarg ;;
984
985   -localstatedir | --localstatedir | --localstatedi | --localstated \
986   | --localstate | --localstat | --localsta | --localst | --locals)
987     ac_prev=localstatedir ;;
988   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990     localstatedir=$ac_optarg ;;
991
992   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993     ac_prev=mandir ;;
994   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995     mandir=$ac_optarg ;;
996
997   -nfp | --nfp | --nf)
998     # Obsolete; use --without-fp.
999     with_fp=no ;;
1000
1001   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002   | --no-cr | --no-c | -n)
1003     no_create=yes ;;
1004
1005   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007     no_recursion=yes ;;
1008
1009   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011   | --oldin | --oldi | --old | --ol | --o)
1012     ac_prev=oldincludedir ;;
1013   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016     oldincludedir=$ac_optarg ;;
1017
1018   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019     ac_prev=prefix ;;
1020   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021     prefix=$ac_optarg ;;
1022
1023   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024   | --program-pre | --program-pr | --program-p)
1025     ac_prev=program_prefix ;;
1026   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028     program_prefix=$ac_optarg ;;
1029
1030   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031   | --program-suf | --program-su | --program-s)
1032     ac_prev=program_suffix ;;
1033   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035     program_suffix=$ac_optarg ;;
1036
1037   -program-transform-name | --program-transform-name \
1038   | --program-transform-nam | --program-transform-na \
1039   | --program-transform-n | --program-transform- \
1040   | --program-transform | --program-transfor \
1041   | --program-transfo | --program-transf \
1042   | --program-trans | --program-tran \
1043   | --progr-tra | --program-tr | --program-t)
1044     ac_prev=program_transform_name ;;
1045   -program-transform-name=* | --program-transform-name=* \
1046   | --program-transform-nam=* | --program-transform-na=* \
1047   | --program-transform-n=* | --program-transform-=* \
1048   | --program-transform=* | --program-transfor=* \
1049   | --program-transfo=* | --program-transf=* \
1050   | --program-trans=* | --program-tran=* \
1051   | --progr-tra=* | --program-tr=* | --program-t=*)
1052     program_transform_name=$ac_optarg ;;
1053
1054   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055     ac_prev=pdfdir ;;
1056   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057     pdfdir=$ac_optarg ;;
1058
1059   -psdir | --psdir | --psdi | --psd | --ps)
1060     ac_prev=psdir ;;
1061   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062     psdir=$ac_optarg ;;
1063
1064   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065   | -silent | --silent | --silen | --sile | --sil)
1066     silent=yes ;;
1067
1068   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069     ac_prev=sbindir ;;
1070   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071   | --sbi=* | --sb=*)
1072     sbindir=$ac_optarg ;;
1073
1074   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076   | --sharedst | --shareds | --shared | --share | --shar \
1077   | --sha | --sh)
1078     ac_prev=sharedstatedir ;;
1079   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082   | --sha=* | --sh=*)
1083     sharedstatedir=$ac_optarg ;;
1084
1085   -site | --site | --sit)
1086     ac_prev=site ;;
1087   -site=* | --site=* | --sit=*)
1088     site=$ac_optarg ;;
1089
1090   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091     ac_prev=srcdir ;;
1092   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093     srcdir=$ac_optarg ;;
1094
1095   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096   | --syscon | --sysco | --sysc | --sys | --sy)
1097     ac_prev=sysconfdir ;;
1098   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100     sysconfdir=$ac_optarg ;;
1101
1102   -target | --target | --targe | --targ | --tar | --ta | --t)
1103     ac_prev=target_alias ;;
1104   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105     target_alias=$ac_optarg ;;
1106
1107   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108     verbose=yes ;;
1109
1110   -version | --version | --versio | --versi | --vers | -V)
1111     ac_init_version=: ;;
1112
1113   -with-* | --with-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       as_fn_error $? "invalid package name: $ac_useropt"
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval with_$ac_useropt=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error $? "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=no ;;
1144
1145   --x)
1146     # Obsolete; use --with-x.
1147     with_x=yes ;;
1148
1149   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150   | --x-incl | --x-inc | --x-in | --x-i)
1151     ac_prev=x_includes ;;
1152   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154     x_includes=$ac_optarg ;;
1155
1156   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158     ac_prev=x_libraries ;;
1159   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161     x_libraries=$ac_optarg ;;
1162
1163   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165     ;;
1166
1167   *=*)
1168     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169     # Reject names that are not valid shell variable names.
1170     case $ac_envvar in #(
1171       '' | [0-9]* | *[!_$as_cr_alnum]* )
1172       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173     esac
1174     eval $ac_envvar=\$ac_optarg
1175     export $ac_envvar ;;
1176
1177   *)
1178     # FIXME: should be removed in autoconf 3.0.
1179     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183     ;;
1184
1185   esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190   as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194   case $enable_option_checking in
1195     no) ;;
1196     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198   esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   # Remove trailing slashes.
1209   case $ac_val in
1210     */ )
1211       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212       eval $ac_var=\$ac_val;;
1213   esac
1214   # Be sure to have absolute directory names.
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231   if test "x$build_alias" = x; then
1232     cross_compiling=maybe
1233     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234     If a cross compiler is detected then cross compile mode will be used" >&2
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$as_myself" : 'X\(//\)[^/]' \| \
1261          X"$as_myself" : 'X\(//\)$' \| \
1262          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures this package to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking ...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR            user executables [EPREFIX/bin]
1355   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR        program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR            object code libraries [EPREFIX/lib]
1361   --includedir=DIR        C header files [PREFIX/include]
1362   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR           info documentation [DATAROOTDIR/info]
1366   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR            man documentation [DATAROOTDIR/man]
1368   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1369   --htmldir=DIR           html documentation [DOCDIR]
1370   --dvidir=DIR            dvi documentation [DOCDIR]
1371   --pdfdir=DIR            pdf documentation [DOCDIR]
1372   --psdir=DIR             ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384
1385   cat <<\_ACEOF
1386
1387 Optional Features:
1388   --disable-option-checking  ignore unrecognized --enable/--with options
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --disable-largefile     omit support for large files
1392   --enable-shared[=PKGS]  build shared libraries [default=yes]
1393   --enable-static[=PKGS]  build static libraries [default=yes]
1394   --enable-fast-install[=PKGS]
1395                           optimize for fast installation [default=yes]
1396   --disable-libtool-lock  avoid locking (might break parallel builds)
1397   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1398   --enable-developer               Enables features of interest to developers.
1399
1400 Optional Packages:
1401   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1402   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1403   --with-system-libltdl   Use the libltdl installed in your system (default=use dlopen)
1404   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1405   --with-pic              try to use only PIC/non-PIC objects [default=use
1406                           both]
1407   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1408   --with-sysroot=DIR Search for dependent libraries within DIR
1409                         (or the compiler's sysroot if not specified).
1410   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1411   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1412   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1413   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1414   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1415   --with-threads          Use threads, if available.  (default=yes)
1416   --with-vmps             Compile in VMPS support. (default=yes)
1417   --with-dhcp             Compile in DHCP support. (default=yes)
1418   --with-static-modules=QUOTED-MODULE-LIST
1419  --with-modules=QUOTED-MODULE-LIST
1420   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1421   --with-openssl                   Use OpenSSL. (default=yes)
1422   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1423   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1424   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1425   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1426   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1427
1428 Some influential environment variables:
1429   CC          C compiler command
1430   CFLAGS      C compiler flags
1431   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1432               nonstandard directory <lib dir>
1433   LIBS        libraries to pass to the linker, e.g. -l<library>
1434   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435               you have headers in a nonstandard directory <include dir>
1436   CXX         C++ compiler command
1437   CXXFLAGS    C++ compiler flags
1438   CPP         C preprocessor
1439   CXXCPP      C++ preprocessor
1440
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1443
1444 Report bugs to the package provider.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450   # If there are subdirs, report their specific --help.
1451   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452     test -d "$ac_dir" ||
1453       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454       continue
1455     ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461   # A ".." for each directory in $ac_dir_suffix.
1462   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463   case $ac_top_builddir_sub in
1464   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466   esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474   .)  # We are building in place.
1475     ac_srcdir=.
1476     ac_top_srcdir=$ac_top_builddir_sub
1477     ac_abs_top_srcdir=$ac_pwd ;;
1478   [\\/]* | ?:[\\/]* )  # Absolute name.
1479     ac_srcdir=$srcdir$ac_dir_suffix;
1480     ac_top_srcdir=$srcdir
1481     ac_abs_top_srcdir=$srcdir ;;
1482   *) # Relative name.
1483     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484     ac_top_srcdir=$ac_top_build_prefix$srcdir
1485     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489     cd "$ac_dir" || { ac_status=$?; continue; }
1490     # Check for guested configure.
1491     if test -f "$ac_srcdir/configure.gnu"; then
1492       echo &&
1493       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494     elif test -f "$ac_srcdir/configure"; then
1495       echo &&
1496       $SHELL "$ac_srcdir/configure" --help=recursive
1497     else
1498       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499     fi || ac_status=$?
1500     cd "$ac_pwd" || { ac_status=$?; break; }
1501   done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506   cat <<\_ACEOF
1507 configure
1508 generated by GNU Autoconf 2.68
1509
1510 Copyright (C) 2010 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514   exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527   rm -f conftest.$ac_objext
1528   if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531   *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535   (eval "$ac_compile") 2>conftest.err
1536   ac_status=$?
1537   if test -s conftest.err; then
1538     grep -v '^ *+' conftest.err >conftest.er1
1539     cat conftest.er1 >&5
1540     mv -f conftest.er1 conftest.err
1541   fi
1542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543   test $ac_status = 0; } && {
1544          test -z "$ac_c_werror_flag" ||
1545          test ! -s conftest.err
1546        } && test -s conftest.$ac_objext; then :
1547   ac_retval=0
1548 else
1549   $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552         ac_retval=1
1553 fi
1554   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555   as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_compile
1558
1559 # ac_fn_cxx_try_compile LINENO
1560 # ----------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_cxx_try_compile ()
1563 {
1564   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565   rm -f conftest.$ac_objext
1566   if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569   *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573   (eval "$ac_compile") 2>conftest.err
1574   ac_status=$?
1575   if test -s conftest.err; then
1576     grep -v '^ *+' conftest.err >conftest.er1
1577     cat conftest.er1 >&5
1578     mv -f conftest.er1 conftest.err
1579   fi
1580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581   test $ac_status = 0; } && {
1582          test -z "$ac_cxx_werror_flag" ||
1583          test ! -s conftest.err
1584        } && test -s conftest.$ac_objext; then :
1585   ac_retval=0
1586 else
1587   $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590         ac_retval=1
1591 fi
1592   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593   as_fn_set_status $ac_retval
1594
1595 } # ac_fn_cxx_try_compile
1596
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_cpp ()
1601 {
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } > conftest.i && {
1619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        }; then :
1622   ac_retval=0
1623 else
1624   $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627     ac_retval=1
1628 fi
1629   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630   as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_cpp
1633
1634 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1637 # the include files in INCLUDES and setting the cache variable VAR
1638 # accordingly.
1639 ac_fn_c_check_header_mongrel ()
1640 {
1641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642   if eval \${$3+:} false; then :
1643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646   $as_echo_n "(cached) " >&6
1647 fi
1648 eval ac_res=\$$3
1649                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651 else
1652   # Is the header compilable?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1654 $as_echo_n "checking $2 usability... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h.  */
1657 $4
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661   ac_header_compiler=yes
1662 else
1663   ac_header_compiler=no
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1667 $as_echo "$ac_header_compiler" >&6; }
1668
1669 # Is the header present?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1671 $as_echo_n "checking $2 presence... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h.  */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_cpp "$LINENO"; then :
1677   ac_header_preproc=yes
1678 else
1679   ac_header_preproc=no
1680 fi
1681 rm -f conftest.err conftest.i conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1683 $as_echo "$ac_header_preproc" >&6; }
1684
1685 # So?  What about this header?
1686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1687   yes:no: )
1688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1689 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1690     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692     ;;
1693   no:yes:* )
1694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1695 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1696     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1697 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1699 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1701 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1702     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704     ;;
1705 esac
1706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709   $as_echo_n "(cached) " >&6
1710 else
1711   eval "$3=\$ac_header_compiler"
1712 fi
1713 eval ac_res=\$$3
1714                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 fi
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_mongrel
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_link") 2>&5
1736   ac_status=$?
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739   { { case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_try") 2>&5
1746   ac_status=$?
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; }; }; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: program exited with status $ac_status" >&5
1752        $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755        ac_retval=$ac_status
1756 fi
1757   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773   $as_echo_n "(cached) " >&6
1774 else
1775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h.  */
1777 $4
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781   eval "$3=yes"
1782 else
1783   eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   rm -f conftest.$ac_objext conftest$ac_exeext
1801   if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804   *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808   (eval "$ac_link") 2>conftest.err
1809   ac_status=$?
1810   if test -s conftest.err; then
1811     grep -v '^ *+' conftest.err >conftest.er1
1812     cat conftest.er1 >&5
1813     mv -f conftest.er1 conftest.err
1814   fi
1815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816   test $ac_status = 0; } && {
1817          test -z "$ac_c_werror_flag" ||
1818          test ! -s conftest.err
1819        } && test -s conftest$ac_exeext && {
1820          test "$cross_compiling" = yes ||
1821          $as_test_x conftest$ac_exeext
1822        }; then :
1823   ac_retval=0
1824 else
1825   $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828         ac_retval=1
1829 fi
1830   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832   # interfere with the next link command; also delete a directory that is
1833   # left behind by Apple's compiler.  We do this before executing the actions.
1834   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836   as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_link
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858     which can conflict with char $2 (); below.
1859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860     <limits.h> exists even on freestanding compilers.  */
1861
1862 #ifdef __STDC__
1863 # include <limits.h>
1864 #else
1865 # include <assert.h>
1866 #endif
1867
1868 #undef $2
1869
1870 /* Override any GCC internal prototype to avoid an error.
1871    Use char because int might match the return type of a GCC
1872    builtin and then its argument prototype would still apply.  */
1873 #ifdef __cplusplus
1874 extern "C"
1875 #endif
1876 char $2 ();
1877 /* The GNU C library defines this for functions which it implements
1878     to always fail with ENOSYS.  Some functions are actually named
1879     something starting with __ and the normal name is an alias.  */
1880 #if defined __stub_$2 || defined __stub___$2
1881 choke me
1882 #endif
1883
1884 int
1885 main ()
1886 {
1887 return $2 ();
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_link "$LINENO"; then :
1893   eval "$3=yes"
1894 else
1895   eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext \
1898     conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_cxx_try_cpp LINENO
1908 # ------------------------
1909 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_cpp ()
1911 {
1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913   if { { ac_try="$ac_cpp conftest.$ac_ext"
1914 case "(($ac_try" in
1915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916   *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1921   ac_status=$?
1922   if test -s conftest.err; then
1923     grep -v '^ *+' conftest.err >conftest.er1
1924     cat conftest.er1 >&5
1925     mv -f conftest.er1 conftest.err
1926   fi
1927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928   test $ac_status = 0; } > conftest.i && {
1929          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1930          test ! -s conftest.err
1931        }; then :
1932   ac_retval=0
1933 else
1934   $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937     ac_retval=1
1938 fi
1939   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940   as_fn_set_status $ac_retval
1941
1942 } # ac_fn_cxx_try_cpp
1943
1944 # ac_fn_cxx_try_link LINENO
1945 # -------------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_cxx_try_link ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   rm -f conftest.$ac_objext conftest$ac_exeext
1951   if { { ac_try="$ac_link"
1952 case "(($ac_try" in
1953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954   *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958   (eval "$ac_link") 2>conftest.err
1959   ac_status=$?
1960   if test -s conftest.err; then
1961     grep -v '^ *+' conftest.err >conftest.er1
1962     cat conftest.er1 >&5
1963     mv -f conftest.er1 conftest.err
1964   fi
1965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966   test $ac_status = 0; } && {
1967          test -z "$ac_cxx_werror_flag" ||
1968          test ! -s conftest.err
1969        } && test -s conftest$ac_exeext && {
1970          test "$cross_compiling" = yes ||
1971          $as_test_x conftest$ac_exeext
1972        }; then :
1973   ac_retval=0
1974 else
1975   $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978         ac_retval=1
1979 fi
1980   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1981   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1982   # interfere with the next link command; also delete a directory that is
1983   # left behind by Apple's compiler.  We do this before executing the actions.
1984   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1985   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986   as_fn_set_status $ac_retval
1987
1988 } # ac_fn_cxx_try_link
1989
1990 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1991 # -------------------------------------------
1992 # Tests whether TYPE exists after having included INCLUDES, setting cache
1993 # variable VAR accordingly.
1994 ac_fn_c_check_type ()
1995 {
1996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000   $as_echo_n "(cached) " >&6
2001 else
2002   eval "$3=no"
2003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 $4
2006 int
2007 main ()
2008 {
2009 if (sizeof ($2))
2010          return 0;
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 int
2020 main ()
2021 {
2022 if (sizeof (($2)))
2023             return 0;
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029
2030 else
2031   eval "$3=yes"
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 eval ac_res=\$$3
2038                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_c_check_type
2043
2044 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2045 # ---------------------------------------------
2046 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2047 # accordingly.
2048 ac_fn_c_check_decl ()
2049 {
2050   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051   as_decl_name=`echo $2|sed 's/ *(.*//'`
2052   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2054 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2055 if eval \${$3+:} false; then :
2056   $as_echo_n "(cached) " >&6
2057 else
2058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h.  */
2060 $4
2061 int
2062 main ()
2063 {
2064 #ifndef $as_decl_name
2065 #ifdef __cplusplus
2066   (void) $as_decl_use;
2067 #else
2068   (void) $as_decl_name;
2069 #endif
2070 #endif
2071
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077   eval "$3=yes"
2078 else
2079   eval "$3=no"
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 fi
2083 eval ac_res=\$$3
2084                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087
2088 } # ac_fn_c_check_decl
2089 cat >config.log <<_ACEOF
2090 This file contains any messages produced by compilers while
2091 running configure, to aid debugging if configure makes a mistake.
2092
2093 It was created by $as_me, which was
2094 generated by GNU Autoconf 2.68.  Invocation command line was
2095
2096   $ $0 $@
2097
2098 _ACEOF
2099 exec 5>>config.log
2100 {
2101 cat <<_ASUNAME
2102 ## --------- ##
2103 ## Platform. ##
2104 ## --------- ##
2105
2106 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2107 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2108 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2109 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2110 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2111
2112 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2113 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2114
2115 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2116 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2117 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2118 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2119 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2120 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2121 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2122
2123 _ASUNAME
2124
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128   IFS=$as_save_IFS
2129   test -z "$as_dir" && as_dir=.
2130     $as_echo "PATH: $as_dir"
2131   done
2132 IFS=$as_save_IFS
2133
2134 } >&5
2135
2136 cat >&5 <<_ACEOF
2137
2138
2139 ## ----------- ##
2140 ## Core tests. ##
2141 ## ----------- ##
2142
2143 _ACEOF
2144
2145
2146 # Keep a trace of the command line.
2147 # Strip out --no-create and --no-recursion so they do not pile up.
2148 # Strip out --silent because we don't want to record it for future runs.
2149 # Also quote any args containing shell meta-characters.
2150 # Make two passes to allow for proper duplicate-argument suppression.
2151 ac_configure_args=
2152 ac_configure_args0=
2153 ac_configure_args1=
2154 ac_must_keep_next=false
2155 for ac_pass in 1 2
2156 do
2157   for ac_arg
2158   do
2159     case $ac_arg in
2160     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2161     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2162     | -silent | --silent | --silen | --sile | --sil)
2163       continue ;;
2164     *\'*)
2165       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2166     esac
2167     case $ac_pass in
2168     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2169     2)
2170       as_fn_append ac_configure_args1 " '$ac_arg'"
2171       if test $ac_must_keep_next = true; then
2172         ac_must_keep_next=false # Got value, back to normal.
2173       else
2174         case $ac_arg in
2175           *=* | --config-cache | -C | -disable-* | --disable-* \
2176           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2177           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2178           | -with-* | --with-* | -without-* | --without-* | --x)
2179             case "$ac_configure_args0 " in
2180               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2181             esac
2182             ;;
2183           -* ) ac_must_keep_next=true ;;
2184         esac
2185       fi
2186       as_fn_append ac_configure_args " '$ac_arg'"
2187       ;;
2188     esac
2189   done
2190 done
2191 { ac_configure_args0=; unset ac_configure_args0;}
2192 { ac_configure_args1=; unset ac_configure_args1;}
2193
2194 # When interrupted or exit'd, cleanup temporary files, and complete
2195 # config.log.  We remove comments because anyway the quotes in there
2196 # would cause problems or look ugly.
2197 # WARNING: Use '\'' to represent an apostrophe within the trap.
2198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2199 trap 'exit_status=$?
2200   # Save into config.log some information that might help in debugging.
2201   {
2202     echo
2203
2204     $as_echo "## ---------------- ##
2205 ## Cache variables. ##
2206 ## ---------------- ##"
2207     echo
2208     # The following way of writing the cache mishandles newlines in values,
2209 (
2210   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2211     eval ac_val=\$$ac_var
2212     case $ac_val in #(
2213     *${as_nl}*)
2214       case $ac_var in #(
2215       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2217       esac
2218       case $ac_var in #(
2219       _ | IFS | as_nl) ;; #(
2220       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2221       *) { eval $ac_var=; unset $ac_var;} ;;
2222       esac ;;
2223     esac
2224   done
2225   (set) 2>&1 |
2226     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2227     *${as_nl}ac_space=\ *)
2228       sed -n \
2229         "s/'\''/'\''\\\\'\'''\''/g;
2230           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2231       ;; #(
2232     *)
2233       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2234       ;;
2235     esac |
2236     sort
2237 )
2238     echo
2239
2240     $as_echo "## ----------------- ##
2241 ## Output variables. ##
2242 ## ----------------- ##"
2243     echo
2244     for ac_var in $ac_subst_vars
2245     do
2246       eval ac_val=\$$ac_var
2247       case $ac_val in
2248       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249       esac
2250       $as_echo "$ac_var='\''$ac_val'\''"
2251     done | sort
2252     echo
2253
2254     if test -n "$ac_subst_files"; then
2255       $as_echo "## ------------------- ##
2256 ## File substitutions. ##
2257 ## ------------------- ##"
2258       echo
2259       for ac_var in $ac_subst_files
2260       do
2261         eval ac_val=\$$ac_var
2262         case $ac_val in
2263         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264         esac
2265         $as_echo "$ac_var='\''$ac_val'\''"
2266       done | sort
2267       echo
2268     fi
2269
2270     if test -s confdefs.h; then
2271       $as_echo "## ----------- ##
2272 ## confdefs.h. ##
2273 ## ----------- ##"
2274       echo
2275       cat confdefs.h
2276       echo
2277     fi
2278     test "$ac_signal" != 0 &&
2279       $as_echo "$as_me: caught signal $ac_signal"
2280     $as_echo "$as_me: exit $exit_status"
2281   } >&5
2282   rm -f core *.core core.conftest.* &&
2283     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2284     exit $exit_status
2285 ' 0
2286 for ac_signal in 1 2 13 15; do
2287   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2288 done
2289 ac_signal=0
2290
2291 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2292 rm -f -r conftest* confdefs.h
2293
2294 $as_echo "/* confdefs.h */" > confdefs.h
2295
2296 # Predefined preprocessor variables.
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_NAME "$PACKAGE_NAME"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_STRING "$PACKAGE_STRING"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_URL "$PACKAGE_URL"
2320 _ACEOF
2321
2322
2323 # Let the site file select an alternate cache file if it wants to.
2324 # Prefer an explicitly selected file to automatically selected ones.
2325 ac_site_file1=NONE
2326 ac_site_file2=NONE
2327 if test -n "$CONFIG_SITE"; then
2328   # We do not want a PATH search for config.site.
2329   case $CONFIG_SITE in #((
2330     -*)  ac_site_file1=./$CONFIG_SITE;;
2331     */*) ac_site_file1=$CONFIG_SITE;;
2332     *)   ac_site_file1=./$CONFIG_SITE;;
2333   esac
2334 elif test "x$prefix" != xNONE; then
2335   ac_site_file1=$prefix/share/config.site
2336   ac_site_file2=$prefix/etc/config.site
2337 else
2338   ac_site_file1=$ac_default_prefix/share/config.site
2339   ac_site_file2=$ac_default_prefix/etc/config.site
2340 fi
2341 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2342 do
2343   test "x$ac_site_file" = xNONE && continue
2344   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2345     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2346 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2347     sed 's/^/| /' "$ac_site_file" >&5
2348     . "$ac_site_file" \
2349       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 as_fn_error $? "failed to load site script $ac_site_file
2352 See \`config.log' for more details" "$LINENO" 5; }
2353   fi
2354 done
2355
2356 if test -r "$cache_file"; then
2357   # Some versions of bash will fail to source /dev/null (special files
2358   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2359   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2360     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361 $as_echo "$as_me: loading cache $cache_file" >&6;}
2362     case $cache_file in
2363       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364       *)                      . "./$cache_file";;
2365     esac
2366   fi
2367 else
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369 $as_echo "$as_me: creating cache $cache_file" >&6;}
2370   >$cache_file
2371 fi
2372
2373 # Check that the precious variables saved in the cache have kept the same
2374 # value.
2375 ac_cache_corrupted=false
2376 for ac_var in $ac_precious_vars; do
2377   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378   eval ac_new_set=\$ac_env_${ac_var}_set
2379   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380   eval ac_new_val=\$ac_env_${ac_var}_value
2381   case $ac_old_set,$ac_new_set in
2382     set,)
2383       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385       ac_cache_corrupted=: ;;
2386     ,set)
2387       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389       ac_cache_corrupted=: ;;
2390     ,);;
2391     *)
2392       if test "x$ac_old_val" != "x$ac_new_val"; then
2393         # differences in whitespace do not lead to failure.
2394         ac_old_val_w=`echo x $ac_old_val`
2395         ac_new_val_w=`echo x $ac_new_val`
2396         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2399           ac_cache_corrupted=:
2400         else
2401           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403           eval $ac_var=\$ac_old_val
2404         fi
2405         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2406 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2407         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2408 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2409       fi;;
2410   esac
2411   # Pass precious variables to config.status.
2412   if test "$ac_new_set" = set; then
2413     case $ac_new_val in
2414     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415     *) ac_arg=$ac_var=$ac_new_val ;;
2416     esac
2417     case " $ac_configure_args " in
2418       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2419       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2420     esac
2421   fi
2422 done
2423 if $ac_cache_corrupted; then
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2429 fi
2430 ## -------------------- ##
2431 ## Main body of script. ##
2432 ## -------------------- ##
2433
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439
2440
2441 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2442
2443
2444 RADIUSD_VERSION=`cat VERSION`
2445 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2446 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^3\.//'`
2447 PACKAGE=freeradius
2448
2449
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455 if test -n "$ac_tool_prefix"; then
2456   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_CC+:} false; then :
2461   $as_echo_n "(cached) " >&6
2462 else
2463   if test -n "$CC"; then
2464   ac_cv_prog_CC="$CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471     for ac_exec_ext in '' $ac_executable_extensions; do
2472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475     break 2
2476   fi
2477 done
2478   done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 CC=$ac_cv_prog_CC
2484 if test -n "$CC"; then
2485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2486 $as_echo "$CC" >&6; }
2487 else
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2490 fi
2491
2492
2493 fi
2494 if test -z "$ac_cv_prog_CC"; then
2495   ac_ct_CC=$CC
2496   # Extract the first word of "gcc", so it can be a program name with args.
2497 set dummy gcc; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2501   $as_echo_n "(cached) " >&6
2502 else
2503   if test -n "$ac_ct_CC"; then
2504   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511     for ac_exec_ext in '' $ac_executable_extensions; do
2512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513     ac_cv_prog_ac_ct_CC="gcc"
2514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518   done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2524 if test -n "$ac_ct_CC"; then
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2526 $as_echo "$ac_ct_CC" >&6; }
2527 else
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532   if test "x$ac_ct_CC" = x; then
2533     CC=""
2534   else
2535     case $cross_compiling:$ac_tool_warned in
2536 yes:)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541     CC=$ac_ct_CC
2542   fi
2543 else
2544   CC="$ac_cv_prog_CC"
2545 fi
2546
2547 if test -z "$CC"; then
2548           if test -n "$ac_tool_prefix"; then
2549     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2550 set dummy ${ac_tool_prefix}cc; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_CC+:} false; then :
2554   $as_echo_n "(cached) " >&6
2555 else
2556   if test -n "$CC"; then
2557   ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564     for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_CC="${ac_tool_prefix}cc"
2567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571   done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579 $as_echo "$CC" >&6; }
2580 else
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586   fi
2587 fi
2588 if test -z "$CC"; then
2589   # Extract the first word of "cc", so it can be a program name with args.
2590 set dummy cc; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_CC+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test -n "$CC"; then
2597   ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599   ac_prog_rejected=no
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603   IFS=$as_save_IFS
2604   test -z "$as_dir" && as_dir=.
2605     for ac_exec_ext in '' $ac_executable_extensions; do
2606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2608        ac_prog_rejected=yes
2609        continue
2610      fi
2611     ac_cv_prog_CC="cc"
2612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616   done
2617 IFS=$as_save_IFS
2618
2619 if test $ac_prog_rejected = yes; then
2620   # We found a bogon in the path, so make sure we never use it.
2621   set dummy $ac_cv_prog_CC
2622   shift
2623   if test $# != 0; then
2624     # We chose a different compiler from the bogus one.
2625     # However, it has the same basename, so the bogon will be chosen
2626     # first if we set CC to just the basename; use the full file name.
2627     shift
2628     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2629   fi
2630 fi
2631 fi
2632 fi
2633 CC=$ac_cv_prog_CC
2634 if test -n "$CC"; then
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636 $as_echo "$CC" >&6; }
2637 else
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 fi
2644 if test -z "$CC"; then
2645   if test -n "$ac_tool_prefix"; then
2646   for ac_prog in cl.exe
2647   do
2648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_CC+:} false; then :
2653   $as_echo_n "(cached) " >&6
2654 else
2655   if test -n "$CC"; then
2656   ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663     for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670   done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 CC=$ac_cv_prog_CC
2676 if test -n "$CC"; then
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2679 else
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685     test -n "$CC" && break
2686   done
2687 fi
2688 if test -z "$CC"; then
2689   ac_ct_CC=$CC
2690   for ac_prog in cl.exe
2691 do
2692   # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2697   $as_echo_n "(cached) " >&6
2698 else
2699   if test -n "$ac_ct_CC"; then
2700   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705   IFS=$as_save_IFS
2706   test -z "$as_dir" && as_dir=.
2707     for ac_exec_ext in '' $ac_executable_extensions; do
2708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709     ac_cv_prog_ac_ct_CC="$ac_prog"
2710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711     break 2
2712   fi
2713 done
2714   done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2720 if test -n "$ac_ct_CC"; then
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2722 $as_echo "$ac_ct_CC" >&6; }
2723 else
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729   test -n "$ac_ct_CC" && break
2730 done
2731
2732   if test "x$ac_ct_CC" = x; then
2733     CC=""
2734   else
2735     case $cross_compiling:$ac_tool_warned in
2736 yes:)
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739 ac_tool_warned=yes ;;
2740 esac
2741     CC=$ac_ct_CC
2742   fi
2743 fi
2744
2745 fi
2746
2747
2748 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 as_fn_error $? "no acceptable C compiler found in \$PATH
2751 See \`config.log' for more details" "$LINENO" 5; }
2752
2753 # Provide some information about the compiler.
2754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2755 set X $ac_compile
2756 ac_compiler=$2
2757 for ac_option in --version -v -V -qversion; do
2758   { { ac_try="$ac_compiler $ac_option >&5"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764 $as_echo "$ac_try_echo"; } >&5
2765   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2766   ac_status=$?
2767   if test -s conftest.err; then
2768     sed '10a\
2769 ... rest of stderr output deleted ...
2770          10q' conftest.err >conftest.er1
2771     cat conftest.er1 >&5
2772   fi
2773   rm -f conftest.er1 conftest.err
2774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775   test $ac_status = 0; }
2776 done
2777
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h.  */
2780
2781 int
2782 main ()
2783 {
2784
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 ac_clean_files_save=$ac_clean_files
2790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2791 # Try to create an executable without -o first, disregard a.out.
2792 # It will help us diagnose broken compilers, and finding out an intuition
2793 # of exeext.
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2795 $as_echo_n "checking whether the C compiler works... " >&6; }
2796 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2797
2798 # The possible output files:
2799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2800
2801 ac_rmfiles=
2802 for ac_file in $ac_files
2803 do
2804   case $ac_file in
2805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2806     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807   esac
2808 done
2809 rm -f $ac_rmfiles
2810
2811 if { { ac_try="$ac_link_default"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817 $as_echo "$ac_try_echo"; } >&5
2818   (eval "$ac_link_default") 2>&5
2819   ac_status=$?
2820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821   test $ac_status = 0; }; then :
2822   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2825 # so that the user can short-circuit this test for compilers unknown to
2826 # Autoconf.
2827 for ac_file in $ac_files ''
2828 do
2829   test -f "$ac_file" || continue
2830   case $ac_file in
2831     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2832         ;;
2833     [ab].out )
2834         # We found the default executable, but exeext='' is most
2835         # certainly right.
2836         break;;
2837     *.* )
2838         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839         then :; else
2840            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841         fi
2842         # We set ac_cv_exeext here because the later test for it is not
2843         # safe: cross compilers may not add the suffix if given an `-o'
2844         # argument, so we may need to know it at that point already.
2845         # Even if this section looks crufty: it has the advantage of
2846         # actually working.
2847         break;;
2848     * )
2849         break;;
2850   esac
2851 done
2852 test "$ac_cv_exeext" = no && ac_cv_exeext=
2853
2854 else
2855   ac_file=''
2856 fi
2857 if test -z "$ac_file"; then :
2858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2860 $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 as_fn_error 77 "C compiler cannot create executables
2866 See \`config.log' for more details" "$LINENO" 5; }
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2872 $as_echo_n "checking for C compiler default output file name... " >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2874 $as_echo "$ac_file" >&6; }
2875 ac_exeext=$ac_cv_exeext
2876
2877 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2880 $as_echo_n "checking for suffix of executables... " >&6; }
2881 if { { ac_try="$ac_link"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887 $as_echo "$ac_try_echo"; } >&5
2888   (eval "$ac_link") 2>&5
2889   ac_status=$?
2890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891   test $ac_status = 0; }; then :
2892   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2895 # `rm'.
2896 for ac_file in conftest.exe conftest conftest.*; do
2897   test -f "$ac_file" || continue
2898   case $ac_file in
2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2900     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901           break;;
2902     * ) break;;
2903   esac
2904 done
2905 else
2906   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details" "$LINENO" 5; }
2910 fi
2911 rm -f conftest conftest$ac_cv_exeext
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2913 $as_echo "$ac_cv_exeext" >&6; }
2914
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2917 ac_exeext=$EXEEXT
2918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h.  */
2920 #include <stdio.h>
2921 int
2922 main ()
2923 {
2924 FILE *f = fopen ("conftest.out", "w");
2925  return ferror (f) || fclose (f) != 0;
2926
2927   ;
2928   return 0;
2929 }
2930 _ACEOF
2931 ac_clean_files="$ac_clean_files conftest.out"
2932 # Check that the compiler produces executables we can run.  If not, either
2933 # the compiler is broken, or we cross compile.
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2935 $as_echo_n "checking whether we are cross compiling... " >&6; }
2936 if test "$cross_compiling" != yes; then
2937   { { ac_try="$ac_link"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944   (eval "$ac_link") 2>&5
2945   ac_status=$?
2946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947   test $ac_status = 0; }
2948   if { ac_try='./conftest$ac_cv_exeext'
2949   { { case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954 $as_echo "$ac_try_echo"; } >&5
2955   (eval "$ac_try") 2>&5
2956   ac_status=$?
2957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958   test $ac_status = 0; }; }; then
2959     cross_compiling=no
2960   else
2961     if test "$cross_compiling" = maybe; then
2962         cross_compiling=yes
2963     else
2964         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error $? "cannot run C compiled programs.
2967 If you meant to cross compile, use \`--host'.
2968 See \`config.log' for more details" "$LINENO" 5; }
2969     fi
2970   fi
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2973 $as_echo "$cross_compiling" >&6; }
2974
2975 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2976 ac_clean_files=$ac_clean_files_save
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2978 $as_echo_n "checking for suffix of object files... " >&6; }
2979 if ${ac_cv_objext+:} false; then :
2980   $as_echo_n "(cached) " >&6
2981 else
2982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h.  */
2984
2985 int
2986 main ()
2987 {
2988
2989   ;
2990   return 0;
2991 }
2992 _ACEOF
2993 rm -f conftest.o conftest.obj
2994 if { { ac_try="$ac_compile"
2995 case "(($ac_try" in
2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997   *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001   (eval "$ac_compile") 2>&5
3002   ac_status=$?
3003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004   test $ac_status = 0; }; then :
3005   for ac_file in conftest.o conftest.obj conftest.*; do
3006   test -f "$ac_file" || continue;
3007   case $ac_file in
3008     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3009     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3010        break;;
3011   esac
3012 done
3013 else
3014   $as_echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $? "cannot compute suffix of object files: cannot compile
3020 See \`config.log' for more details" "$LINENO" 5; }
3021 fi
3022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3023 fi
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3025 $as_echo "$ac_cv_objext" >&6; }
3026 OBJEXT=$ac_cv_objext
3027 ac_objext=$OBJEXT
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3030 if ${ac_cv_c_compiler_gnu+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039 #ifndef __GNUC__
3040        choke me
3041 #endif
3042
3043   ;
3044   return 0;
3045 }
3046 _ACEOF
3047 if ac_fn_c_try_compile "$LINENO"; then :
3048   ac_compiler_gnu=yes
3049 else
3050   ac_compiler_gnu=no
3051 fi
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3058 if test $ac_compiler_gnu = yes; then
3059   GCC=yes
3060 else
3061   GCC=
3062 fi
3063 ac_test_CFLAGS=${CFLAGS+set}
3064 ac_save_CFLAGS=$CFLAGS
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3067 if ${ac_cv_prog_cc_g+:} false; then :
3068   $as_echo_n "(cached) " >&6
3069 else
3070   ac_save_c_werror_flag=$ac_c_werror_flag
3071    ac_c_werror_flag=yes
3072    ac_cv_prog_cc_g=no
3073    CFLAGS="-g"
3074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h.  */
3076
3077 int
3078 main ()
3079 {
3080
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 if ac_fn_c_try_compile "$LINENO"; then :
3086   ac_cv_prog_cc_g=yes
3087 else
3088   CFLAGS=""
3089       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 if ac_fn_c_try_compile "$LINENO"; then :
3101
3102 else
3103   ac_c_werror_flag=$ac_save_c_werror_flag
3104          CFLAGS="-g"
3105          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117   ac_cv_prog_cc_g=yes
3118 fi
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 fi
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 fi
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124    ac_c_werror_flag=$ac_save_c_werror_flag
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3127 $as_echo "$ac_cv_prog_cc_g" >&6; }
3128 if test "$ac_test_CFLAGS" = set; then
3129   CFLAGS=$ac_save_CFLAGS
3130 elif test $ac_cv_prog_cc_g = yes; then
3131   if test "$GCC" = yes; then
3132     CFLAGS="-g -O2"
3133   else
3134     CFLAGS="-g"
3135   fi
3136 else
3137   if test "$GCC" = yes; then
3138     CFLAGS="-O2"
3139   else
3140     CFLAGS=
3141   fi
3142 fi
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3145 if ${ac_cv_prog_cc_c89+:} false; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   ac_cv_prog_cc_c89=no
3149 ac_save_CC=$CC
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h.  */
3152 #include <stdarg.h>
3153 #include <stdio.h>
3154 #include <sys/types.h>
3155 #include <sys/stat.h>
3156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3157 struct buf { int x; };
3158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3159 static char *e (p, i)
3160      char **p;
3161      int i;
3162 {
3163   return p[i];
3164 }
3165 static char *f (char * (*g) (char **, int), char **p, ...)
3166 {
3167   char *s;
3168   va_list v;
3169   va_start (v,p);
3170   s = g (p, va_arg (v,int));
3171   va_end (v);
3172   return s;
3173 }
3174
3175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3176    function prototypes and stuff, but not '\xHH' hex character constants.
3177    These don't provoke an error unfortunately, instead are silently treated
3178    as 'x'.  The following induces an error, until -std is added to get
3179    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3180    array size at least.  It's necessary to write '\x00'==0 to get something
3181    that's true only with -std.  */
3182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3183
3184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3185    inside strings and character constants.  */
3186 #define FOO(x) 'x'
3187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3188
3189 int test (int i, double x);
3190 struct s1 {int (*f) (int a);};
3191 struct s2 {int (*f) (double a);};
3192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3193 int argc;
3194 char **argv;
3195 int
3196 main ()
3197 {
3198 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3204         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205 do
3206   CC="$ac_save_CC $ac_arg"
3207   if ac_fn_c_try_compile "$LINENO"; then :
3208   ac_cv_prog_cc_c89=$ac_arg
3209 fi
3210 rm -f core conftest.err conftest.$ac_objext
3211   test "x$ac_cv_prog_cc_c89" != "xno" && break
3212 done
3213 rm -f conftest.$ac_ext
3214 CC=$ac_save_CC
3215
3216 fi
3217 # AC_CACHE_VAL
3218 case "x$ac_cv_prog_cc_c89" in
3219   x)
3220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3221 $as_echo "none needed" >&6; } ;;
3222   xno)
3223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3224 $as_echo "unsupported" >&6; } ;;
3225   *)
3226     CC="$CC $ac_cv_prog_cc_c89"
3227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3229 esac
3230 if test "x$ac_cv_prog_cc_c89" != xno; then :
3231
3232 fi
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240 ac_ext=cpp
3241 ac_cpp='$CXXCPP $CPPFLAGS'
3242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3245 if test -z "$CXX"; then
3246   if test -n "$CCC"; then
3247     CXX=$CCC
3248   else
3249     if test -n "$ac_tool_prefix"; then
3250   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3251   do
3252     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CXX+:} false; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   if test -n "$CXX"; then
3260   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267     for ac_exec_ext in '' $ac_executable_extensions; do
3268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274   done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 CXX=$ac_cv_prog_CXX
3280 if test -n "$CXX"; then
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3282 $as_echo "$CXX" >&6; }
3283 else
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 fi
3287
3288
3289     test -n "$CXX" && break
3290   done
3291 fi
3292 if test -z "$CXX"; then
3293   ac_ct_CXX=$CXX
3294   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3295 do
3296   # Extract the first word of "$ac_prog", so it can be a program name with args.
3297 set dummy $ac_prog; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   if test -n "$ac_ct_CXX"; then
3304   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311     for ac_exec_ext in '' $ac_executable_extensions; do
3312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313     ac_cv_prog_ac_ct_CXX="$ac_prog"
3314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318   done
3319 IFS=$as_save_IFS
3320
3321 fi
3322 fi
3323 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3324 if test -n "$ac_ct_CXX"; then
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3326 $as_echo "$ac_ct_CXX" >&6; }
3327 else
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332
3333   test -n "$ac_ct_CXX" && break
3334 done
3335
3336   if test "x$ac_ct_CXX" = x; then
3337     CXX="g++"
3338   else
3339     case $cross_compiling:$ac_tool_warned in
3340 yes:)
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3343 ac_tool_warned=yes ;;
3344 esac
3345     CXX=$ac_ct_CXX
3346   fi
3347 fi
3348
3349   fi
3350 fi
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3353 set X $ac_compile
3354 ac_compiler=$2
3355 for ac_option in --version -v -V -qversion; do
3356   { { ac_try="$ac_compiler $ac_option >&5"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3364   ac_status=$?
3365   if test -s conftest.err; then
3366     sed '10a\
3367 ... rest of stderr output deleted ...
3368          10q' conftest.err >conftest.er1
3369     cat conftest.er1 >&5
3370   fi
3371   rm -f conftest.er1 conftest.err
3372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373   test $ac_status = 0; }
3374 done
3375
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3377 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3378 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387 #ifndef __GNUC__
3388        choke me
3389 #endif
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_cxx_try_compile "$LINENO"; then :
3396   ac_compiler_gnu=yes
3397 else
3398   ac_compiler_gnu=no
3399 fi
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3402
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3405 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3406 if test $ac_compiler_gnu = yes; then
3407   GXX=yes
3408 else
3409   GXX=
3410 fi
3411 ac_test_CXXFLAGS=${CXXFLAGS+set}
3412 ac_save_CXXFLAGS=$CXXFLAGS
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3414 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3415 if ${ac_cv_prog_cxx_g+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3419    ac_cxx_werror_flag=yes
3420    ac_cv_prog_cxx_g=no
3421    CXXFLAGS="-g"
3422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_cxx_try_compile "$LINENO"; then :
3434   ac_cv_prog_cxx_g=yes
3435 else
3436   CXXFLAGS=""
3437       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h.  */
3439
3440 int
3441 main ()
3442 {
3443
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 if ac_fn_cxx_try_compile "$LINENO"; then :
3449
3450 else
3451   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3452          CXXFLAGS="-g"
3453          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 if ac_fn_cxx_try_compile "$LINENO"; then :
3465   ac_cv_prog_cxx_g=yes
3466 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3475 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3476 if test "$ac_test_CXXFLAGS" = set; then
3477   CXXFLAGS=$ac_save_CXXFLAGS
3478 elif test $ac_cv_prog_cxx_g = yes; then
3479   if test "$GXX" = yes; then
3480     CXXFLAGS="-g -O2"
3481   else
3482     CXXFLAGS="-g"
3483   fi
3484 else
3485   if test "$GXX" = yes; then
3486     CXXFLAGS="-O2"
3487   else
3488     CXXFLAGS=
3489   fi
3490 fi
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
3497
3498
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3505 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3506 # On Suns, sometimes $CPP names a directory.
3507 if test -n "$CPP" && test -d "$CPP"; then
3508   CPP=
3509 fi
3510 if test -z "$CPP"; then
3511   if ${ac_cv_prog_CPP+:} false; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514       # Double quotes because CPP needs to be expanded
3515     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3516     do
3517       ac_preproc_ok=false
3518 for ac_c_preproc_warn_flag in '' yes
3519 do
3520   # Use a header file that comes with gcc, so configuring glibc
3521   # with a fresh cross-compiler works.
3522   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3523   # <limits.h> exists even on freestanding compilers.
3524   # On the NeXT, cc -E runs the code through the compiler's parser,
3525   # not just through cpp. "Syntax error" is here to catch this case.
3526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h.  */
3528 #ifdef __STDC__
3529 # include <limits.h>
3530 #else
3531 # include <assert.h>
3532 #endif
3533                      Syntax error
3534 _ACEOF
3535 if ac_fn_c_try_cpp "$LINENO"; then :
3536
3537 else
3538   # Broken: fails on valid input.
3539 continue
3540 fi
3541 rm -f conftest.err conftest.i conftest.$ac_ext
3542
3543   # OK, works on sane cases.  Now check whether nonexistent headers
3544   # can be detected and how.
3545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h.  */
3547 #include <ac_nonexistent.h>
3548 _ACEOF
3549 if ac_fn_c_try_cpp "$LINENO"; then :
3550   # Broken: success on invalid input.
3551 continue
3552 else
3553   # Passes both tests.
3554 ac_preproc_ok=:
3555 break
3556 fi
3557 rm -f conftest.err conftest.i conftest.$ac_ext
3558
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.i conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then :
3563   break
3564 fi
3565
3566     done
3567     ac_cv_prog_CPP=$CPP
3568
3569 fi
3570   CPP=$ac_cv_prog_CPP
3571 else
3572   ac_cv_prog_CPP=$CPP
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3575 $as_echo "$CPP" >&6; }
3576 ac_preproc_ok=false
3577 for ac_c_preproc_warn_flag in '' yes
3578 do
3579   # Use a header file that comes with gcc, so configuring glibc
3580   # with a fresh cross-compiler works.
3581   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582   # <limits.h> exists even on freestanding compilers.
3583   # On the NeXT, cc -E runs the code through the compiler's parser,
3584   # not just through cpp. "Syntax error" is here to catch this case.
3585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h.  */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592                      Syntax error
3593 _ACEOF
3594 if ac_fn_c_try_cpp "$LINENO"; then :
3595
3596 else
3597   # Broken: fails on valid input.
3598 continue
3599 fi
3600 rm -f conftest.err conftest.i conftest.$ac_ext
3601
3602   # OK, works on sane cases.  Now check whether nonexistent headers
3603   # can be detected and how.
3604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h.  */
3606 #include <ac_nonexistent.h>
3607 _ACEOF
3608 if ac_fn_c_try_cpp "$LINENO"; then :
3609   # Broken: success on invalid input.
3610 continue
3611 else
3612   # Passes both tests.
3613 ac_preproc_ok=:
3614 break
3615 fi
3616 rm -f conftest.err conftest.i conftest.$ac_ext
3617
3618 done
3619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620 rm -f conftest.i conftest.err conftest.$ac_ext
3621 if $ac_preproc_ok; then :
3622
3623 else
3624   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details" "$LINENO" 5; }
3628 fi
3629
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3638 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3639 if ${ac_cv_path_GREP+:} false; then :
3640   $as_echo_n "(cached) " >&6
3641 else
3642   if test -z "$GREP"; then
3643   ac_path_GREP_found=false
3644   # Loop through the user's path and test for each of PROGNAME-LIST
3645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3647 do
3648   IFS=$as_save_IFS
3649   test -z "$as_dir" && as_dir=.
3650     for ac_prog in grep ggrep; do
3651     for ac_exec_ext in '' $ac_executable_extensions; do
3652       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3653       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3654 # Check for GNU ac_path_GREP and select it if it is found.
3655   # Check for GNU $ac_path_GREP
3656 case `"$ac_path_GREP" --version 2>&1` in
3657 *GNU*)
3658   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3659 *)
3660   ac_count=0
3661   $as_echo_n 0123456789 >"conftest.in"
3662   while :
3663   do
3664     cat "conftest.in" "conftest.in" >"conftest.tmp"
3665     mv "conftest.tmp" "conftest.in"
3666     cp "conftest.in" "conftest.nl"
3667     $as_echo 'GREP' >> "conftest.nl"
3668     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3669     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3670     as_fn_arith $ac_count + 1 && ac_count=$as_val
3671     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3672       # Best one so far, save it but keep looking for a better one
3673       ac_cv_path_GREP="$ac_path_GREP"
3674       ac_path_GREP_max=$ac_count
3675     fi
3676     # 10*(2^10) chars as input seems more than enough
3677     test $ac_count -gt 10 && break
3678   done
3679   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3680 esac
3681
3682       $ac_path_GREP_found && break 3
3683     done
3684   done
3685   done
3686 IFS=$as_save_IFS
3687   if test -z "$ac_cv_path_GREP"; then
3688     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3689   fi
3690 else
3691   ac_cv_path_GREP=$GREP
3692 fi
3693
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3696 $as_echo "$ac_cv_path_GREP" >&6; }
3697  GREP="$ac_cv_path_GREP"
3698
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3701 $as_echo_n "checking for egrep... " >&6; }
3702 if ${ac_cv_path_EGREP+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706    then ac_cv_path_EGREP="$GREP -E"
3707    else
3708      if test -z "$EGREP"; then
3709   ac_path_EGREP_found=false
3710   # Loop through the user's path and test for each of PROGNAME-LIST
3711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716     for ac_prog in egrep; do
3717     for ac_exec_ext in '' $ac_executable_extensions; do
3718       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
3721   # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3723 *GNU*)
3724   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725 *)
3726   ac_count=0
3727   $as_echo_n 0123456789 >"conftest.in"
3728   while :
3729   do
3730     cat "conftest.in" "conftest.in" >"conftest.tmp"
3731     mv "conftest.tmp" "conftest.in"
3732     cp "conftest.in" "conftest.nl"
3733     $as_echo 'EGREP' >> "conftest.nl"
3734     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736     as_fn_arith $ac_count + 1 && ac_count=$as_val
3737     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738       # Best one so far, save it but keep looking for a better one
3739       ac_cv_path_EGREP="$ac_path_EGREP"
3740       ac_path_EGREP_max=$ac_count
3741     fi
3742     # 10*(2^10) chars as input seems more than enough
3743     test $ac_count -gt 10 && break
3744   done
3745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 esac
3747
3748       $ac_path_EGREP_found && break 3
3749     done
3750   done
3751   done
3752 IFS=$as_save_IFS
3753   if test -z "$ac_cv_path_EGREP"; then
3754     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3755   fi
3756 else
3757   ac_cv_path_EGREP=$EGREP
3758 fi
3759
3760    fi
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3763 $as_echo "$ac_cv_path_EGREP" >&6; }
3764  EGREP="$ac_cv_path_EGREP"
3765
3766
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3768 $as_echo_n "checking for ANSI C header files... " >&6; }
3769 if ${ac_cv_header_stdc+:} false; then :
3770   $as_echo_n "(cached) " >&6
3771 else
3772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h.  */
3774 #include <stdlib.h>
3775 #include <stdarg.h>
3776 #include <string.h>
3777 #include <float.h>
3778
3779 int
3780 main ()
3781 {
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788   ac_cv_header_stdc=yes
3789 else
3790   ac_cv_header_stdc=no
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793
3794 if test $ac_cv_header_stdc = yes; then
3795   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h.  */
3798 #include <string.h>
3799
3800 _ACEOF
3801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802   $EGREP "memchr" >/dev/null 2>&1; then :
3803
3804 else
3805   ac_cv_header_stdc=no
3806 fi
3807 rm -f conftest*
3808
3809 fi
3810
3811 if test $ac_cv_header_stdc = yes; then
3812   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h.  */
3815 #include <stdlib.h>
3816
3817 _ACEOF
3818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3819   $EGREP "free" >/dev/null 2>&1; then :
3820
3821 else
3822   ac_cv_header_stdc=no
3823 fi
3824 rm -f conftest*
3825
3826 fi
3827
3828 if test $ac_cv_header_stdc = yes; then
3829   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3830   if test "$cross_compiling" = yes; then :
3831   :
3832 else
3833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h.  */
3835 #include <ctype.h>
3836 #include <stdlib.h>
3837 #if ((' ' & 0x0FF) == 0x020)
3838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3840 #else
3841 # define ISLOWER(c) \
3842                    (('a' <= (c) && (c) <= 'i') \
3843                      || ('j' <= (c) && (c) <= 'r') \
3844                      || ('s' <= (c) && (c) <= 'z'))
3845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3846 #endif
3847
3848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3849 int
3850 main ()
3851 {
3852   int i;
3853   for (i = 0; i < 256; i++)
3854     if (XOR (islower (i), ISLOWER (i))
3855         || toupper (i) != TOUPPER (i))
3856       return 2;
3857   return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_run "$LINENO"; then :
3861
3862 else
3863   ac_cv_header_stdc=no
3864 fi
3865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3866   conftest.$ac_objext conftest.beam conftest.$ac_ext
3867 fi
3868
3869 fi
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3872 $as_echo "$ac_cv_header_stdc" >&6; }
3873 if test $ac_cv_header_stdc = yes; then
3874
3875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3876
3877 fi
3878
3879 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3880 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3881                   inttypes.h stdint.h unistd.h
3882 do :
3883   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3885 "
3886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3887   cat >>confdefs.h <<_ACEOF
3888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3889 _ACEOF
3890
3891 fi
3892
3893 done
3894
3895
3896
3897   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3898 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3899   MINIX=yes
3900 else
3901   MINIX=
3902 fi
3903
3904
3905   if test "$MINIX" = yes; then
3906
3907 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3908
3909
3910 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3911
3912
3913 $as_echo "#define _MINIX 1" >>confdefs.h
3914
3915   fi
3916
3917
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3919 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3920 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h.  */
3925
3926 #         define __EXTENSIONS__ 1
3927           $ac_includes_default
3928 int
3929 main ()
3930 {
3931
3932   ;
3933   return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_c_try_compile "$LINENO"; then :
3937   ac_cv_safe_to_define___extensions__=yes
3938 else
3939   ac_cv_safe_to_define___extensions__=no
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3944 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3945   test $ac_cv_safe_to_define___extensions__ = yes &&
3946     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3947
3948   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3949
3950   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3951
3952   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3953
3954   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3955
3956
3957
3958
3959 if test $ac_cv_c_compiler_gnu = yes; then
3960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3961 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3962 if ${ac_cv_prog_gcc_traditional+:} false; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965     ac_pattern="Autoconf.*'x'"
3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968 #include <sgtty.h>
3969 Autoconf TIOCGETP
3970 _ACEOF
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3973   ac_cv_prog_gcc_traditional=yes
3974 else
3975   ac_cv_prog_gcc_traditional=no
3976 fi
3977 rm -f conftest*
3978
3979
3980   if test $ac_cv_prog_gcc_traditional = no; then
3981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h.  */
3983 #include <termio.h>
3984 Autoconf TCGETA
3985 _ACEOF
3986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3987   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3988   ac_cv_prog_gcc_traditional=yes
3989 fi
3990 rm -f conftest*
3991
3992   fi
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3995 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3996   if test $ac_cv_prog_gcc_traditional = yes; then
3997     CC="$CC -traditional"
3998   fi
3999 fi
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4002 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4003 if ${ac_cv_prog_suncc+:} false; then :
4004   $as_echo_n "(cached) " >&6
4005 else
4006   cat > conftest.c <<EOF
4007 #ifdef __SUNPRO_C
4008   yes;
4009 #endif
4010 EOF
4011 if { ac_try='${CC-cc} -E conftest.c'
4012   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4013   (eval $ac_try) 2>&5
4014   ac_status=$?
4015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4017   ac_cv_prog_suncc=yes
4018 else
4019   ac_cv_prog_suncc=no
4020 fi
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4023 $as_echo "$ac_cv_prog_suncc" >&6; }
4024 if test -n "$ac_tool_prefix"; then
4025   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_RANLIB+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   if test -n "$RANLIB"; then
4033   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038   IFS=$as_save_IFS
4039   test -z "$as_dir" && as_dir=.
4040     for ac_exec_ext in '' $ac_executable_extensions; do
4041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044     break 2
4045   fi
4046 done
4047   done
4048 IFS=$as_save_IFS
4049
4050 fi
4051 fi
4052 RANLIB=$ac_cv_prog_RANLIB
4053 if test -n "$RANLIB"; then
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4055 $as_echo "$RANLIB" >&6; }
4056 else
4057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4059 fi
4060
4061
4062 fi
4063 if test -z "$ac_cv_prog_RANLIB"; then
4064   ac_ct_RANLIB=$RANLIB
4065   # Extract the first word of "ranlib", so it can be a program name with args.
4066 set dummy ranlib; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   if test -n "$ac_ct_RANLIB"; then
4073   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080     for ac_exec_ext in '' $ac_executable_extensions; do
4081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082     ac_cv_prog_ac_ct_RANLIB="ranlib"
4083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087   done
4088 IFS=$as_save_IFS
4089
4090 fi
4091 fi
4092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4093 if test -n "$ac_ct_RANLIB"; then
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4095 $as_echo "$ac_ct_RANLIB" >&6; }
4096 else
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101   if test "x$ac_ct_RANLIB" = x; then
4102     RANLIB=":"
4103   else
4104     case $cross_compiling:$ac_tool_warned in
4105 yes:)
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4108 ac_tool_warned=yes ;;
4109 esac
4110     RANLIB=$ac_ct_RANLIB
4111   fi
4112 else
4113   RANLIB="$ac_cv_prog_RANLIB"
4114 fi
4115
4116
4117 if test "x$GCC" = "xyes"; then
4118     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4119 fi
4120
4121 # Check whether --enable-largefile was given.
4122 if test "${enable_largefile+set}" = set; then :
4123   enableval=$enable_largefile;
4124 fi
4125
4126 if test "$enable_largefile" != no; then
4127
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4129 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4130 if ${ac_cv_sys_largefile_CC+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   ac_cv_sys_largefile_CC=no
4134      if test "$GCC" != yes; then
4135        ac_save_CC=$CC
4136        while :; do
4137          # IRIX 6.2 and later do not support large files by default,
4138          # so use the C compiler's -n32 option if that helps.
4139          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h.  */
4141 #include <sys/types.h>
4142  /* Check that off_t can represent 2**63 - 1 correctly.
4143     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144     since some C++ compilers masquerading as C compilers
4145     incorrectly reject 9223372036854775807.  */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148                        && LARGE_OFF_T % 2147483647 == 1)
4149                       ? 1 : -1];
4150 int
4151 main ()
4152 {
4153
4154   ;
4155   return 0;
4156 }
4157 _ACEOF
4158          if ac_fn_c_try_compile "$LINENO"; then :
4159   break
4160 fi
4161 rm -f core conftest.err conftest.$ac_objext
4162          CC="$CC -n32"
4163          if ac_fn_c_try_compile "$LINENO"; then :
4164   ac_cv_sys_largefile_CC=' -n32'; break
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext
4167          break
4168        done
4169        CC=$ac_save_CC
4170        rm -f conftest.$ac_ext
4171     fi
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4174 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4175   if test "$ac_cv_sys_largefile_CC" != no; then
4176     CC=$CC$ac_cv_sys_largefile_CC
4177   fi
4178
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4180 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4181 if ${ac_cv_sys_file_offset_bits+:} false; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   while :; do
4185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h.  */
4187 #include <sys/types.h>
4188  /* Check that off_t can represent 2**63 - 1 correctly.
4189     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4190     since some C++ compilers masquerading as C compilers
4191     incorrectly reject 9223372036854775807.  */
4192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4193   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4194                        && LARGE_OFF_T % 2147483647 == 1)
4195                       ? 1 : -1];
4196 int
4197 main ()
4198 {
4199
4200   ;
4201   return 0;
4202 }
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205   ac_cv_sys_file_offset_bits=no; break
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210 #define _FILE_OFFSET_BITS 64
4211 #include <sys/types.h>
4212  /* Check that off_t can represent 2**63 - 1 correctly.
4213     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4214     since some C++ compilers masquerading as C compilers
4215     incorrectly reject 9223372036854775807.  */
4216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4217   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4218                        && LARGE_OFF_T % 2147483647 == 1)
4219                       ? 1 : -1];
4220 int
4221 main ()
4222 {
4223
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229   ac_cv_sys_file_offset_bits=64; break
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232   ac_cv_sys_file_offset_bits=unknown
4233   break
4234 done
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4237 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4238 case $ac_cv_sys_file_offset_bits in #(
4239   no | unknown) ;;
4240   *)
4241 cat >>confdefs.h <<_ACEOF
4242 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4243 _ACEOF
4244 ;;
4245 esac
4246 rm -rf conftest*
4247   if test $ac_cv_sys_file_offset_bits = unknown; then
4248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4249 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4250 if ${ac_cv_sys_large_files+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   while :; do
4254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256 #include <sys/types.h>
4257  /* Check that off_t can represent 2**63 - 1 correctly.
4258     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4259     since some C++ compilers masquerading as C compilers
4260     incorrectly reject 9223372036854775807.  */
4261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4262   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4263                        && LARGE_OFF_T % 2147483647 == 1)
4264                       ? 1 : -1];
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"; then :
4274   ac_cv_sys_large_files=no; break
4275 fi
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279 #define _LARGE_FILES 1
4280 #include <sys/types.h>
4281  /* Check that off_t can represent 2**63 - 1 correctly.
4282     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4283     since some C++ compilers masquerading as C compilers
4284     incorrectly reject 9223372036854775807.  */
4285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4286   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4287                        && LARGE_OFF_T % 2147483647 == 1)
4288                       ? 1 : -1];
4289 int
4290 main ()
4291 {
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298   ac_cv_sys_large_files=1; break
4299 fi
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301   ac_cv_sys_large_files=unknown
4302   break
4303 done
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4306 $as_echo "$ac_cv_sys_large_files" >&6; }
4307 case $ac_cv_sys_large_files in #(
4308   no | unknown) ;;
4309   *)
4310 cat >>confdefs.h <<_ACEOF
4311 #define _LARGE_FILES $ac_cv_sys_large_files
4312 _ACEOF
4313 ;;
4314 esac
4315 rm -rf conftest*
4316   fi
4317 fi
4318
4319
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4321 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4322 if ${ac_cv_c_bigendian+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   ac_cv_c_bigendian=unknown
4326     # See if we're dealing with a universal compiler.
4327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329 #ifndef __APPLE_CC__
4330                not a universal capable compiler
4331              #endif
4332              typedef int dummy;
4333
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336
4337         # Check for potential -arch flags.  It is not universal unless
4338         # there are at least two -arch flags with different values.
4339         ac_arch=
4340         ac_prev=
4341         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4342          if test -n "$ac_prev"; then
4343            case $ac_word in
4344              i?86 | x86_64 | ppc | ppc64)
4345                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4346                  ac_arch=$ac_word
4347                else
4348                  ac_cv_c_bigendian=universal
4349                  break
4350                fi
4351                ;;
4352            esac
4353            ac_prev=
4354          elif test "x$ac_word" = "x-arch"; then
4355            ac_prev=arch
4356          fi
4357        done
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360     if test $ac_cv_c_bigendian = unknown; then
4361       # See if sys/param.h defines the BYTE_ORDER macro.
4362       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h.  */
4364 #include <sys/types.h>
4365              #include <sys/param.h>
4366
4367 int
4368 main ()
4369 {
4370 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4371                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4372                      && LITTLE_ENDIAN)
4373               bogus endian macros
4374              #endif
4375
4376   ;
4377   return 0;
4378 }
4379 _ACEOF
4380 if ac_fn_c_try_compile "$LINENO"; then :
4381   # It does; now see whether it defined to BIG_ENDIAN or not.
4382          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h.  */
4384 #include <sys/types.h>
4385                 #include <sys/param.h>
4386
4387 int
4388 main ()
4389 {
4390 #if BYTE_ORDER != BIG_ENDIAN
4391                  not big endian
4392                 #endif
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"; then :
4399   ac_cv_c_bigendian=yes
4400 else
4401   ac_cv_c_bigendian=no
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406     fi
4407     if test $ac_cv_c_bigendian = unknown; then
4408       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4409       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h.  */
4411 #include <limits.h>
4412
4413 int
4414 main ()
4415 {
4416 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4417               bogus endian macros
4418              #endif
4419
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_c_try_compile "$LINENO"; then :
4425   # It does; now see whether it defined to _BIG_ENDIAN or not.
4426          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h.  */
4428 #include <limits.h>
4429
4430 int
4431 main ()
4432 {
4433 #ifndef _BIG_ENDIAN
4434                  not big endian
4435                 #endif
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442   ac_cv_c_bigendian=yes
4443 else
4444   ac_cv_c_bigendian=no
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449     fi
4450     if test $ac_cv_c_bigendian = unknown; then
4451       # Compile a test program.
4452       if test "$cross_compiling" = yes; then :
4453   # Try to guess by grepping values from an object file.
4454          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456 short int ascii_mm[] =
4457                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4458                 short int ascii_ii[] =
4459                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4460                 int use_ascii (int i) {
4461                   return ascii_mm[i] + ascii_ii[i];
4462                 }
4463                 short int ebcdic_ii[] =
4464                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4465                 short int ebcdic_mm[] =
4466                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4467                 int use_ebcdic (int i) {
4468                   return ebcdic_mm[i] + ebcdic_ii[i];
4469                 }
4470                 extern int foo;
4471
4472 int
4473 main ()
4474 {
4475 return use_ascii (foo) == use_ebcdic (foo);
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4482               ac_cv_c_bigendian=yes
4483             fi
4484             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4485               if test "$ac_cv_c_bigendian" = unknown; then
4486                 ac_cv_c_bigendian=no
4487               else
4488                 # finding both strings is unlikely to happen, but who knows?
4489                 ac_cv_c_bigendian=unknown
4490               fi
4491             fi
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 else
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 $ac_includes_default
4498 int
4499 main ()
4500 {
4501
4502              /* Are we little or big endian?  From Harbison&Steele.  */
4503              union
4504              {
4505                long int l;
4506                char c[sizeof (long int)];
4507              } u;
4508              u.l = 1;
4509              return u.c[sizeof (long int) - 1] == 1;
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 if ac_fn_c_try_run "$LINENO"; then :
4516   ac_cv_c_bigendian=no
4517 else
4518   ac_cv_c_bigendian=yes
4519 fi
4520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4521   conftest.$ac_objext conftest.beam conftest.$ac_ext
4522 fi
4523
4524     fi
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4527 $as_echo "$ac_cv_c_bigendian" >&6; }
4528  case $ac_cv_c_bigendian in #(
4529    yes)
4530      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4531 ;; #(
4532    no)
4533       ;; #(
4534    universal)
4535
4536 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4537
4538      ;; #(
4539    *)
4540      as_fn_error $? "unknown endianness
4541  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4542  esac
4543
4544
4545 # Extract the first word of "gmake", so it can be a program name with args.
4546 set dummy gmake; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_GMAKE+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -n "$GMAKE"; then
4553   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_exec_ext in '' $ac_executable_extensions; do
4561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562     ac_cv_prog_GMAKE="yes"
4563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567   done
4568 IFS=$as_save_IFS
4569
4570   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4571 fi
4572 fi
4573 GMAKE=$ac_cv_prog_GMAKE
4574 if test -n "$GMAKE"; then
4575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4576 $as_echo "$GMAKE" >&6; }
4577 else
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581
4582
4583 if test $GMAKE = no; then
4584   # Extract the first word of "make", so it can be a program name with args.
4585 set dummy make; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_path_MAKE+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   case $MAKE in
4592   [\\/]* | ?:[\\/]*)
4593   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4594   ;;
4595   *)
4596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599   IFS=$as_save_IFS
4600   test -z "$as_dir" && as_dir=.
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605     break 2
4606   fi
4607 done
4608   done
4609 IFS=$as_save_IFS
4610
4611   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4612   ;;
4613 esac
4614 fi
4615 MAKE=$ac_cv_path_MAKE
4616 if test -n "$MAKE"; then
4617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4618 $as_echo "$MAKE" >&6; }
4619 else
4620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4622 fi
4623
4624
4625 else
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_path_MAKE+:} false; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   case $MAKE in
4634   [\\/]* | ?:[\\/]*)
4635   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4636   ;;
4637   *)
4638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643     for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647     break 2
4648   fi
4649 done
4650   done
4651 IFS=$as_save_IFS
4652
4653   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4654   ;;
4655 esac
4656 fi
4657 MAKE=$ac_cv_path_MAKE
4658 if test -n "$MAKE"; then
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4660 $as_echo "$MAKE" >&6; }
4661 else
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666
4667 fi
4668 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4669 if test -z "$makever"; then
4670   as_fn_error $? "GNU Make is not installed.  Please download and install it
4671                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4672 fi
4673
4674
4675 # Check whether --with-system-libltdl was given.
4676 if test "${with_system_libltdl+set}" = set; then :
4677   withval=$with_system_libltdl;
4678 else
4679   with_system_libltdl=no
4680 fi
4681
4682
4683 if test "x$with_system_libltdl" = "xyes" ; then :
4684    LIBLTDL="-lltdl"
4685 INCLTDL=-DWITH_SYSTEM_LTDL
4686 fi
4687
4688
4689 # Check whether --with-system-libtool was given.
4690 if test "${with_system_libtool+set}" = set; then :
4691   withval=$with_system_libtool;
4692 else
4693   with_system_libtool=no
4694 fi
4695
4696
4697 ac_aux_dir=
4698 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4699   if test -f "$ac_dir/install-sh"; then
4700     ac_aux_dir=$ac_dir
4701     ac_install_sh="$ac_aux_dir/install-sh -c"
4702     break
4703   elif test -f "$ac_dir/install.sh"; then
4704     ac_aux_dir=$ac_dir
4705     ac_install_sh="$ac_aux_dir/install.sh -c"
4706     break
4707   elif test -f "$ac_dir/shtool"; then
4708     ac_aux_dir=$ac_dir
4709     ac_install_sh="$ac_aux_dir/shtool install -c"
4710     break
4711   fi
4712 done
4713 if test -z "$ac_aux_dir"; then
4714   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4715 fi
4716
4717 # These three variables are undocumented and unsupported,
4718 # and are intended to be withdrawn in a future Autoconf release.
4719 # They can cause serious problems if a builder's source tree is in a directory
4720 # whose full name contains unusual characters.
4721 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4722 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4723 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4724
4725
4726 case `pwd` in
4727   *\ * | *\     *)
4728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4729 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4730 esac
4731
4732
4733
4734 macro_version='2.4'
4735 macro_revision='1.3293'
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748 # Make sure we can run config.sub.
4749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4750   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4753 $as_echo_n "checking build system type... " >&6; }
4754 if ${ac_cv_build+:} false; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   ac_build_alias=$build_alias
4758 test "x$ac_build_alias" = x &&
4759   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4760 test "x$ac_build_alias" = x &&
4761   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4763   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4764
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4767 $as_echo "$ac_cv_build" >&6; }
4768 case $ac_cv_build in
4769 *-*-*) ;;
4770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4771 esac
4772 build=$ac_cv_build
4773 ac_save_IFS=$IFS; IFS='-'
4774 set x $ac_cv_build
4775 shift
4776 build_cpu=$1
4777 build_vendor=$2
4778 shift; shift
4779 # Remember, the first character of IFS is used to create $*,
4780 # except with old shells:
4781 build_os=$*
4782 IFS=$ac_save_IFS
4783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4784
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4787 $as_echo_n "checking host system type... " >&6; }
4788 if ${ac_cv_host+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   if test "x$host_alias" = x; then
4792   ac_cv_host=$ac_cv_build
4793 else
4794   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4795     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4796 fi
4797
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4800 $as_echo "$ac_cv_host" >&6; }
4801 case $ac_cv_host in
4802 *-*-*) ;;
4803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4804 esac
4805 host=$ac_cv_host
4806 ac_save_IFS=$IFS; IFS='-'
4807 set x $ac_cv_host
4808 shift
4809 host_cpu=$1
4810 host_vendor=$2
4811 shift; shift
4812 # Remember, the first character of IFS is used to create $*,
4813 # except with old shells:
4814 host_os=$*
4815 IFS=$ac_save_IFS
4816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4817
4818
4819 # Backslashify metacharacters that are still active within
4820 # double-quoted strings.
4821 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4822
4823 # Same as above, but do not quote variable references.
4824 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4825
4826 # Sed substitution to delay expansion of an escaped shell variable in a
4827 # double_quote_subst'ed string.
4828 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4829
4830 # Sed substitution to delay expansion of an escaped single quote.
4831 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4832
4833 # Sed substitution to avoid accidental globbing in evaled expressions
4834 no_glob_subst='s/\*/\\\*/g'
4835
4836 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4838 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4841 $as_echo_n "checking how to print strings... " >&6; }
4842 # Test print first, because it will be a builtin if present.
4843 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4844    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4845   ECHO='print -r --'
4846 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4847   ECHO='printf %s\n'
4848 else
4849   # Use this function as a fallback that always works.
4850   func_fallback_echo ()
4851   {
4852     eval 'cat <<_LTECHO_EOF
4853 $1
4854 _LTECHO_EOF'
4855   }
4856   ECHO='func_fallback_echo'
4857 fi
4858
4859 # func_echo_all arg...
4860 # Invoke $ECHO with all args, space-separated.
4861 func_echo_all ()
4862 {
4863     $ECHO ""
4864 }
4865
4866 case "$ECHO" in
4867   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4868 $as_echo "printf" >&6; } ;;
4869   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4870 $as_echo "print -r" >&6; } ;;
4871   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4872 $as_echo "cat" >&6; } ;;
4873 esac
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4889 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4890 if ${ac_cv_path_SED+:} false; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4894      for ac_i in 1 2 3 4 5 6 7; do
4895        ac_script="$ac_script$as_nl$ac_script"
4896      done
4897      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4898      { ac_script=; unset ac_script;}
4899      if test -z "$SED"; then
4900   ac_path_SED_found=false
4901   # Loop through the user's path and test for each of PROGNAME-LIST
4902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907     for ac_prog in sed gsed; do
4908     for ac_exec_ext in '' $ac_executable_extensions; do
4909       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4910       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4911 # Check for GNU ac_path_SED and select it if it is found.
4912   # Check for GNU $ac_path_SED
4913 case `"$ac_path_SED" --version 2>&1` in
4914 *GNU*)
4915   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4916 *)
4917   ac_count=0
4918   $as_echo_n 0123456789 >"conftest.in"
4919   while :
4920   do
4921     cat "conftest.in" "conftest.in" >"conftest.tmp"
4922     mv "conftest.tmp" "conftest.in"
4923     cp "conftest.in" "conftest.nl"
4924     $as_echo '' >> "conftest.nl"
4925     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4926     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4927     as_fn_arith $ac_count + 1 && ac_count=$as_val
4928     if test $ac_count -gt ${ac_path_SED_max-0}; then
4929       # Best one so far, save it but keep looking for a better one
4930       ac_cv_path_SED="$ac_path_SED"
4931       ac_path_SED_max=$ac_count
4932     fi
4933     # 10*(2^10) chars as input seems more than enough
4934     test $ac_count -gt 10 && break
4935   done
4936   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937 esac
4938
4939       $ac_path_SED_found && break 3
4940     done
4941   done
4942   done
4943 IFS=$as_save_IFS
4944   if test -z "$ac_cv_path_SED"; then
4945     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4946   fi
4947 else
4948   ac_cv_path_SED=$SED
4949 fi
4950
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4953 $as_echo "$ac_cv_path_SED" >&6; }
4954  SED="$ac_cv_path_SED"
4955   rm -f conftest.sed
4956
4957 test -z "$SED" && SED=sed
4958 Xsed="$SED -e 1s/^X//"
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4971 $as_echo_n "checking for fgrep... " >&6; }
4972 if ${ac_cv_path_FGREP+:} false; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4976    then ac_cv_path_FGREP="$GREP -F"
4977    else
4978      if test -z "$FGREP"; then
4979   ac_path_FGREP_found=false
4980   # Loop through the user's path and test for each of PROGNAME-LIST
4981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4983 do
4984   IFS=$as_save_IFS
4985   test -z "$as_dir" && as_dir=.
4986     for ac_prog in fgrep; do
4987     for ac_exec_ext in '' $ac_executable_extensions; do
4988       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4989       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4990 # Check for GNU ac_path_FGREP and select it if it is found.
4991   # Check for GNU $ac_path_FGREP
4992 case `"$ac_path_FGREP" --version 2>&1` in
4993 *GNU*)
4994   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4995 *)
4996   ac_count=0
4997   $as_echo_n 0123456789 >"conftest.in"
4998   while :
4999   do
5000     cat "conftest.in" "conftest.in" >"conftest.tmp"
5001     mv "conftest.tmp" "conftest.in"
5002     cp "conftest.in" "conftest.nl"
5003     $as_echo 'FGREP' >> "conftest.nl"
5004     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5005     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5006     as_fn_arith $ac_count + 1 && ac_count=$as_val
5007     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5008       # Best one so far, save it but keep looking for a better one
5009       ac_cv_path_FGREP="$ac_path_FGREP"
5010       ac_path_FGREP_max=$ac_count
5011     fi
5012     # 10*(2^10) chars as input seems more than enough
5013     test $ac_count -gt 10 && break
5014   done
5015   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5016 esac
5017
5018       $ac_path_FGREP_found && break 3
5019     done
5020   done
5021   done
5022 IFS=$as_save_IFS
5023   if test -z "$ac_cv_path_FGREP"; then
5024     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5025   fi
5026 else
5027   ac_cv_path_FGREP=$FGREP
5028 fi
5029
5030    fi
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5033 $as_echo "$ac_cv_path_FGREP" >&6; }
5034  FGREP="$ac_cv_path_FGREP"
5035
5036
5037 test -z "$GREP" && GREP=grep
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 # Check whether --with-gnu-ld was given.
5058 if test "${with_gnu_ld+set}" = set; then :
5059   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5060 else
5061   with_gnu_ld=no
5062 fi
5063
5064 ac_prog=ld
5065 if test "$GCC" = yes; then
5066   # Check if gcc -print-prog-name=ld gives a path.
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5068 $as_echo_n "checking for ld used by $CC... " >&6; }
5069   case $host in
5070   *-*-mingw*)
5071     # gcc leaves a trailing carriage return which upsets mingw
5072     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5073   *)
5074     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5075   esac
5076   case $ac_prog in
5077     # Accept absolute paths.
5078     [\\/]* | ?:[\\/]*)
5079       re_direlt='/[^/][^/]*/\.\./'
5080       # Canonicalize the pathname of ld
5081       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5082       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5083         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5084       done
5085       test -z "$LD" && LD="$ac_prog"
5086       ;;
5087   "")
5088     # If it fails, then pretend we aren't using GCC.
5089     ac_prog=ld
5090     ;;
5091   *)
5092     # If it is relative, then search for the first ld in PATH.
5093     with_gnu_ld=unknown
5094     ;;
5095   esac
5096 elif test "$with_gnu_ld" = yes; then
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5098 $as_echo_n "checking for GNU ld... " >&6; }
5099 else
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5101 $as_echo_n "checking for non-GNU ld... " >&6; }
5102 fi
5103 if ${lt_cv_path_LD+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   if test -z "$LD"; then
5107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108   for ac_dir in $PATH; do
5109     IFS="$lt_save_ifs"
5110     test -z "$ac_dir" && ac_dir=.
5111     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5112       lt_cv_path_LD="$ac_dir/$ac_prog"
5113       # Check to see if the program is GNU ld.  I'd rather use --version,
5114       # but apparently some variants of GNU ld only accept -v.
5115       # Break only if it was the GNU/non-GNU ld that we prefer.
5116       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5117       *GNU* | *'with BFD'*)
5118         test "$with_gnu_ld" != no && break
5119         ;;
5120       *)
5121         test "$with_gnu_ld" != yes && break
5122         ;;
5123       esac
5124     fi
5125   done
5126   IFS="$lt_save_ifs"
5127 else
5128   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5129 fi
5130 fi
5131
5132 LD="$lt_cv_path_LD"
5133 if test -n "$LD"; then
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5135 $as_echo "$LD" >&6; }
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5143 if ${lt_cv_prog_gnu_ld+:} false; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5147 case `$LD -v 2>&1 </dev/null` in
5148 *GNU* | *'with BFD'*)
5149   lt_cv_prog_gnu_ld=yes
5150   ;;
5151 *)
5152   lt_cv_prog_gnu_ld=no
5153   ;;
5154 esac
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5157 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5158 with_gnu_ld=$lt_cv_prog_gnu_ld
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5169 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5170 if ${lt_cv_path_NM+:} false; then :
5171   $as_echo_n "(cached) " >&6
5172 else
5173   if test -n "$NM"; then
5174   # Let the user override the test.
5175   lt_cv_path_NM="$NM"
5176 else
5177   lt_nm_to_check="${ac_tool_prefix}nm"
5178   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5179     lt_nm_to_check="$lt_nm_to_check nm"
5180   fi
5181   for lt_tmp_nm in $lt_nm_to_check; do
5182     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5183     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5184       IFS="$lt_save_ifs"
5185       test -z "$ac_dir" && ac_dir=.
5186       tmp_nm="$ac_dir/$lt_tmp_nm"
5187       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5188         # Check to see if the nm accepts a BSD-compat flag.
5189         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5190         #   nm: unknown option "B" ignored
5191         # Tru64's nm complains that /dev/null is an invalid object file
5192         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5193         */dev/null* | *'Invalid file or object type'*)
5194           lt_cv_path_NM="$tmp_nm -B"
5195           break
5196           ;;
5197         *)
5198           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5199           */dev/null*)
5200             lt_cv_path_NM="$tmp_nm -p"
5201             break
5202             ;;
5203           *)
5204             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5205             continue # so that we can try to find one that supports BSD flags
5206             ;;
5207           esac
5208           ;;
5209         esac
5210       fi
5211     done
5212     IFS="$lt_save_ifs"
5213   done
5214   : ${lt_cv_path_NM=no}
5215 fi
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5218 $as_echo "$lt_cv_path_NM" >&6; }
5219 if test "$lt_cv_path_NM" != "no"; then
5220   NM="$lt_cv_path_NM"
5221 else
5222   # Didn't find any BSD compatible name lister, look for dumpbin.
5223   if test -n "$DUMPBIN"; then :
5224     # Let the user override the test.
5225   else
5226     if test -n "$ac_tool_prefix"; then
5227   for ac_prog in dumpbin "link -dump"
5228   do
5229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_DUMPBIN+:} false; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   if test -n "$DUMPBIN"; then
5237   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251   done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 DUMPBIN=$ac_cv_prog_DUMPBIN
5257 if test -n "$DUMPBIN"; then
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5259 $as_echo "$DUMPBIN" >&6; }
5260 else
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264
5265
5266     test -n "$DUMPBIN" && break
5267   done
5268 fi
5269 if test -z "$DUMPBIN"; then
5270   ac_ct_DUMPBIN=$DUMPBIN
5271   for ac_prog in dumpbin "link -dump"
5272 do
5273   # Extract the first word of "$ac_prog", so it can be a program name with args.
5274 set dummy $ac_prog; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   if test -n "$ac_ct_DUMPBIN"; then
5281   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288     for ac_exec_ext in '' $ac_executable_extensions; do
5289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295   done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5301 if test -n "$ac_ct_DUMPBIN"; then
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5303 $as_echo "$ac_ct_DUMPBIN" >&6; }
5304 else
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309
5310   test -n "$ac_ct_DUMPBIN" && break
5311 done
5312
5313   if test "x$ac_ct_DUMPBIN" = x; then
5314     DUMPBIN=":"
5315   else
5316     case $cross_compiling:$ac_tool_warned in
5317 yes:)
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5320 ac_tool_warned=yes ;;
5321 esac
5322     DUMPBIN=$ac_ct_DUMPBIN
5323   fi
5324 fi
5325
5326     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5327     *COFF*)
5328       DUMPBIN="$DUMPBIN -symbols"
5329       ;;
5330     *)
5331       DUMPBIN=:
5332       ;;
5333     esac
5334   fi
5335
5336   if test "$DUMPBIN" != ":"; then
5337     NM="$DUMPBIN"
5338   fi
5339 fi
5340 test -z "$NM" && NM=nm
5341
5342
5343
5344
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5348 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5349 if ${lt_cv_nm_interface+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   lt_cv_nm_interface="BSD nm"
5353   echo "int some_variable = 0;" > conftest.$ac_ext
5354   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5355   (eval "$ac_compile" 2>conftest.err)
5356   cat conftest.err >&5
5357   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5358   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5359   cat conftest.err >&5
5360   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5361   cat conftest.out >&5
5362   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5363     lt_cv_nm_interface="MS dumpbin"
5364   fi
5365   rm -f conftest*
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5368 $as_echo "$lt_cv_nm_interface" >&6; }
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5371 $as_echo_n "checking whether ln -s works... " >&6; }
5372 LN_S=$as_ln_s
5373 if test "$LN_S" = "ln -s"; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5375 $as_echo "yes" >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5378 $as_echo "no, using $LN_S" >&6; }
5379 fi
5380
5381 # find the maximum length of command line arguments
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5383 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5384 if ${lt_cv_sys_max_cmd_len+:} false; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387     i=0
5388   teststring="ABCD"
5389
5390   case $build_os in
5391   msdosdjgpp*)
5392     # On DJGPP, this test can blow up pretty badly due to problems in libc
5393     # (any single argument exceeding 2000 bytes causes a buffer overrun
5394     # during glob expansion).  Even if it were fixed, the result of this
5395     # check would be larger than it should be.
5396     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5397     ;;
5398
5399   gnu*)
5400     # Under GNU Hurd, this test is not required because there is
5401     # no limit to the length of command line arguments.
5402     # Libtool will interpret -1 as no limit whatsoever
5403     lt_cv_sys_max_cmd_len=-1;
5404     ;;
5405
5406   cygwin* | mingw* | cegcc*)
5407     # On Win9x/ME, this test blows up -- it succeeds, but takes
5408     # about 5 minutes as the teststring grows exponentially.
5409     # Worse, since 9x/ME are not pre-emptively multitasking,
5410     # you end up with a "frozen" computer, even though with patience
5411     # the test eventually succeeds (with a max line length of 256k).
5412     # Instead, let's just punt: use the minimum linelength reported by
5413     # all of the supported platforms: 8192 (on NT/2K/XP).
5414     lt_cv_sys_max_cmd_len=8192;
5415     ;;
5416
5417   mint*)
5418     # On MiNT this can take a long time and run out of memory.
5419     lt_cv_sys_max_cmd_len=8192;
5420     ;;
5421
5422   amigaos*)
5423     # On AmigaOS with pdksh, this test takes hours, literally.
5424     # So we just punt and use a minimum line length of 8192.
5425     lt_cv_sys_max_cmd_len=8192;
5426     ;;
5427
5428   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5429     # This has been around since 386BSD, at least.  Likely further.
5430     if test -x /sbin/sysctl; then
5431       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5432     elif test -x /usr/sbin/sysctl; then
5433       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5434     else
5435       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5436     fi
5437     # And add a safety zone
5438     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5439     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5440     ;;
5441
5442   interix*)
5443     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5444     lt_cv_sys_max_cmd_len=196608
5445     ;;
5446
5447   osf*)
5448     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5449     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5450     # nice to cause kernel panics so lets avoid the loop below.
5451     # First set a reasonable default.
5452     lt_cv_sys_max_cmd_len=16384
5453     #
5454     if test -x /sbin/sysconfig; then
5455       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5456         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5457       esac
5458     fi
5459     ;;
5460   sco3.2v5*)
5461     lt_cv_sys_max_cmd_len=102400
5462     ;;
5463   sysv5* | sco5v6* | sysv4.2uw2*)
5464     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5465     if test -n "$kargmax"; then
5466       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5467     else
5468       lt_cv_sys_max_cmd_len=32768
5469     fi
5470     ;;
5471   *)
5472     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5473     if test -n "$lt_cv_sys_max_cmd_len"; then
5474       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5475       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5476     else
5477       # Make teststring a little bigger before we do anything with it.
5478       # a 1K string should be a reasonable start.
5479       for i in 1 2 3 4 5 6 7 8 ; do
5480         teststring=$teststring$teststring
5481       done
5482       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5483       # If test is not a shell built-in, we'll probably end up computing a
5484       # maximum length that is only half of the actual maximum length, but
5485       # we can't tell.
5486       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5487                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5488               test $i != 17 # 1/2 MB should be enough
5489       do
5490         i=`expr $i + 1`
5491         teststring=$teststring$teststring
5492       done
5493       # Only check the string length outside the loop.
5494       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5495       teststring=
5496       # Add a significant safety factor because C++ compilers can tack on
5497       # massive amounts of additional arguments before passing them to the
5498       # linker.  It appears as though 1/2 is a usable value.
5499       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5500     fi
5501     ;;
5502   esac
5503
5504 fi
5505
5506 if test -n $lt_cv_sys_max_cmd_len ; then
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5508 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5509 else
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5511 $as_echo "none" >&6; }
5512 fi
5513 max_cmd_len=$lt_cv_sys_max_cmd_len
5514
5515
5516
5517
5518
5519
5520 : ${CP="cp -f"}
5521 : ${MV="mv -f"}
5522 : ${RM="rm -f"}
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5525 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5526 # Try some XSI features
5527 xsi_shell=no
5528 ( _lt_dummy="a/b/c"
5529   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5530       = c,a/b,b/c, \
5531     && eval 'test $(( 1 + 1 )) -eq 2 \
5532     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5533   && xsi_shell=yes
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5535 $as_echo "$xsi_shell" >&6; }
5536
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5539 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5540 lt_shell_append=no
5541 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5542     >/dev/null 2>&1 \
5543   && lt_shell_append=yes
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5545 $as_echo "$lt_shell_append" >&6; }
5546
5547
5548 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5549   lt_unset=unset
5550 else
5551   lt_unset=false
5552 fi
5553
5554
5555
5556
5557
5558 # test EBCDIC or ASCII
5559 case `echo X|tr X '\101'` in
5560  A) # ASCII based system
5561     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5562   lt_SP2NL='tr \040 \012'
5563   lt_NL2SP='tr \015\012 \040\040'
5564   ;;
5565  *) # EBCDIC based system
5566   lt_SP2NL='tr \100 \n'
5567   lt_NL2SP='tr \r\n \100\100'
5568   ;;
5569 esac
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5580 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5581 if ${lt_cv_to_host_file_cmd+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   case $host in
5585   *-*-mingw* )
5586     case $build in
5587       *-*-mingw* ) # actually msys
5588         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5589         ;;
5590       *-*-cygwin* )
5591         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5592         ;;
5593       * ) # otherwise, assume *nix
5594         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5595         ;;
5596     esac
5597     ;;
5598   *-*-cygwin* )
5599     case $build in
5600       *-*-mingw* ) # actually msys
5601         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5602         ;;
5603       *-*-cygwin* )
5604         lt_cv_to_host_file_cmd=func_convert_file_noop
5605         ;;
5606       * ) # otherwise, assume *nix
5607         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5608         ;;
5609     esac
5610     ;;
5611   * ) # unhandled hosts (and "normal" native builds)
5612     lt_cv_to_host_file_cmd=func_convert_file_noop
5613     ;;
5614 esac
5615
5616 fi
5617
5618 to_host_file_cmd=$lt_cv_to_host_file_cmd
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5620 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5621
5622
5623
5624
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5627 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5628 if ${lt_cv_to_tool_file_cmd+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   #assume ordinary cross tools, or native build.
5632 lt_cv_to_tool_file_cmd=func_convert_file_noop
5633 case $host in
5634   *-*-mingw* )
5635     case $build in
5636       *-*-mingw* ) # actually msys
5637         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5638         ;;
5639     esac
5640     ;;
5641 esac
5642
5643 fi
5644
5645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5647 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5648
5649
5650
5651
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5654 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5655 if ${lt_cv_ld_reload_flag+:} false; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   lt_cv_ld_reload_flag='-r'
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5661 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5662 reload_flag=$lt_cv_ld_reload_flag
5663 case $reload_flag in
5664 "" | " "*) ;;
5665 *) reload_flag=" $reload_flag" ;;
5666 esac
5667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5668 case $host_os in
5669   cygwin* | mingw* | pw32* | cegcc*)
5670     if test "$GCC" != yes; then
5671       reload_cmds=false
5672     fi
5673     ;;
5674   darwin*)
5675     if test "$GCC" = yes; then
5676       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5677     else
5678       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5679     fi
5680     ;;
5681 esac
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 if test -n "$ac_tool_prefix"; then
5692   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_OBJDUMP+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   if test -n "$OBJDUMP"; then
5700   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707     for ac_exec_ext in '' $ac_executable_extensions; do
5708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5709     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711     break 2
5712   fi
5713 done
5714   done
5715 IFS=$as_save_IFS
5716
5717 fi
5718 fi
5719 OBJDUMP=$ac_cv_prog_OBJDUMP
5720 if test -n "$OBJDUMP"; then
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5722 $as_echo "$OBJDUMP" >&6; }
5723 else
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728
5729 fi
5730 if test -z "$ac_cv_prog_OBJDUMP"; then
5731   ac_ct_OBJDUMP=$OBJDUMP
5732   # Extract the first word of "objdump", so it can be a program name with args.
5733 set dummy objdump; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   if test -n "$ac_ct_OBJDUMP"; then
5740   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5760 if test -n "$ac_ct_OBJDUMP"; then
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5762 $as_echo "$ac_ct_OBJDUMP" >&6; }
5763 else
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768   if test "x$ac_ct_OBJDUMP" = x; then
5769     OBJDUMP="false"
5770   else
5771     case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777     OBJDUMP=$ac_ct_OBJDUMP
5778   fi
5779 else
5780   OBJDUMP="$ac_cv_prog_OBJDUMP"
5781 fi
5782
5783 test -z "$OBJDUMP" && OBJDUMP=objdump
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5794 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5795 if ${lt_cv_deplibs_check_method+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   lt_cv_file_magic_cmd='$MAGIC_CMD'
5799 lt_cv_file_magic_test_file=
5800 lt_cv_deplibs_check_method='unknown'
5801 # Need to set the preceding variable on all platforms that support
5802 # interlibrary dependencies.
5803 # 'none' -- dependencies not supported.
5804 # `unknown' -- same as none, but documents that we really don't know.
5805 # 'pass_all' -- all dependencies passed with no checks.
5806 # 'test_compile' -- check by making test program.
5807 # 'file_magic [[regex]]' -- check by looking for files in library path
5808 # which responds to the $file_magic_cmd with a given extended regex.
5809 # If you have `file' or equivalent on your system and you're not sure
5810 # whether `pass_all' will *always* work, you probably want this one.
5811
5812 case $host_os in
5813 aix[4-9]*)
5814   lt_cv_deplibs_check_method=pass_all
5815   ;;
5816
5817 beos*)
5818   lt_cv_deplibs_check_method=pass_all
5819   ;;
5820
5821 bsdi[45]*)
5822   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5823   lt_cv_file_magic_cmd='/usr/bin/file -L'
5824   lt_cv_file_magic_test_file=/shlib/libc.so
5825   ;;
5826
5827 cygwin*)
5828   # func_win32_libid is a shell function defined in ltmain.sh
5829   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5830   lt_cv_file_magic_cmd='func_win32_libid'
5831   ;;
5832
5833 mingw* | pw32*)
5834   # Base MSYS/MinGW do not provide the 'file' command needed by
5835   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5836   # unless we find 'file', for example because we are cross-compiling.
5837   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5838   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5839     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5840     lt_cv_file_magic_cmd='func_win32_libid'
5841   else
5842     # Keep this pattern in sync with the one in func_win32_libid.
5843     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5844     lt_cv_file_magic_cmd='$OBJDUMP -f'
5845   fi
5846   ;;
5847
5848 cegcc*)
5849   # use the weaker test based on 'objdump'. See mingw*.
5850   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5851   lt_cv_file_magic_cmd='$OBJDUMP -f'
5852   ;;
5853
5854 darwin* | rhapsody*)
5855   lt_cv_deplibs_check_method=pass_all
5856   ;;
5857
5858 freebsd* | dragonfly*)
5859   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5860     case $host_cpu in
5861     i*86 )
5862       # Not sure whether the presence of OpenBSD here was a mistake.
5863       # Let's accept both of them until this is cleared up.
5864       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5865       lt_cv_file_magic_cmd=/usr/bin/file
5866       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5867       ;;
5868     esac
5869   else
5870     lt_cv_deplibs_check_method=pass_all
5871   fi
5872   ;;
5873
5874 gnu*)
5875   lt_cv_deplibs_check_method=pass_all
5876   ;;
5877
5878 haiku*)
5879   lt_cv_deplibs_check_method=pass_all
5880   ;;
5881
5882 hpux10.20* | hpux11*)
5883   lt_cv_file_magic_cmd=/usr/bin/file
5884   case $host_cpu in
5885   ia64*)
5886     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5887     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5888     ;;
5889   hppa*64*)
5890     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]'
5891     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5892     ;;
5893   *)
5894     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5895     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5896     ;;
5897   esac
5898   ;;
5899
5900 interix[3-9]*)
5901   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5902   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5903   ;;
5904
5905 irix5* | irix6* | nonstopux*)
5906   case $LD in
5907   *-32|*"-32 ") libmagic=32-bit;;
5908   *-n32|*"-n32 ") libmagic=N32;;
5909   *-64|*"-64 ") libmagic=64-bit;;
5910   *) libmagic=never-match;;
5911   esac
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 # This must be Linux ELF.
5916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5917   lt_cv_deplibs_check_method=pass_all
5918   ;;
5919
5920 netbsd*)
5921   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5923   else
5924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5925   fi
5926   ;;
5927
5928 newos6*)
5929   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5930   lt_cv_file_magic_cmd=/usr/bin/file
5931   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5932   ;;
5933
5934 *nto* | *qnx*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 openbsd*)
5939   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5940     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5941   else
5942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5943   fi
5944   ;;
5945
5946 osf3* | osf4* | osf5*)
5947   lt_cv_deplibs_check_method=pass_all
5948   ;;
5949
5950 rdos*)
5951   lt_cv_deplibs_check_method=pass_all
5952   ;;
5953
5954 solaris*)
5955   lt_cv_deplibs_check_method=pass_all
5956   ;;
5957
5958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5959   lt_cv_deplibs_check_method=pass_all
5960   ;;
5961
5962 sysv4 | sysv4.3*)
5963   case $host_vendor in
5964   motorola)
5965     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]'
5966     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5967     ;;
5968   ncr)
5969     lt_cv_deplibs_check_method=pass_all
5970     ;;
5971   sequent)
5972     lt_cv_file_magic_cmd='/bin/file'
5973     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5974     ;;
5975   sni)
5976     lt_cv_file_magic_cmd='/bin/file'
5977     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5978     lt_cv_file_magic_test_file=/lib/libc.so
5979     ;;
5980   siemens)
5981     lt_cv_deplibs_check_method=pass_all
5982     ;;
5983   pc)
5984     lt_cv_deplibs_check_method=pass_all
5985     ;;
5986   esac
5987   ;;
5988
5989 tpf*)
5990   lt_cv_deplibs_check_method=pass_all
5991   ;;
5992 esac
5993
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5996 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5997
5998 file_magic_glob=
5999 want_nocaseglob=no
6000 if test "$build" = "$host"; then
6001   case $host_os in
6002   mingw* | pw32*)
6003     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6004       want_nocaseglob=yes
6005     else
6006       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6007     fi
6008     ;;
6009   esac
6010 fi
6011
6012 file_magic_cmd=$lt_cv_file_magic_cmd
6013 deplibs_check_method=$lt_cv_deplibs_check_method
6014 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 if test -n "$ac_tool_prefix"; then
6038   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_DLLTOOL+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   if test -n "$DLLTOOL"; then
6046   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053     for ac_exec_ext in '' $ac_executable_extensions; do
6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060   done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 DLLTOOL=$ac_cv_prog_DLLTOOL
6066 if test -n "$DLLTOOL"; then
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6068 $as_echo "$DLLTOOL" >&6; }
6069 else
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075 fi
6076 if test -z "$ac_cv_prog_DLLTOOL"; then
6077   ac_ct_DLLTOOL=$DLLTOOL
6078   # Extract the first word of "dlltool", so it can be a program name with args.
6079 set dummy dlltool; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   if test -n "$ac_ct_DLLTOOL"; then
6086   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6106 if test -n "$ac_ct_DLLTOOL"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6108 $as_echo "$ac_ct_DLLTOOL" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114   if test "x$ac_ct_DLLTOOL" = x; then
6115     DLLTOOL="false"
6116   else
6117     case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121 ac_tool_warned=yes ;;
6122 esac
6123     DLLTOOL=$ac_ct_DLLTOOL
6124   fi
6125 else
6126   DLLTOOL="$ac_cv_prog_DLLTOOL"
6127 fi
6128
6129 test -z "$DLLTOOL" && DLLTOOL=dlltool
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6141 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6142 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   lt_cv_sharedlib_from_linklib_cmd='unknown'
6146
6147 case $host_os in
6148 cygwin* | mingw* | pw32* | cegcc*)
6149   # two different shell functions defined in ltmain.sh
6150   # decide which to use based on capabilities of $DLLTOOL
6151   case `$DLLTOOL --help 2>&1` in
6152   *--identify-strict*)
6153     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6154     ;;
6155   *)
6156     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6157     ;;
6158   esac
6159   ;;
6160 *)
6161   # fallback: assume linklib IS sharedlib
6162   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6163   ;;
6164 esac
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6168 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6169 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6170 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6171
6172
6173
6174
6175
6176
6177
6178 if test -n "$ac_tool_prefix"; then
6179   for ac_prog in ar
6180   do
6181     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_AR+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if test -n "$AR"; then
6189   ac_cv_prog_AR="$AR" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203   done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 AR=$ac_cv_prog_AR
6209 if test -n "$AR"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6211 $as_echo "$AR" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218     test -n "$AR" && break
6219   done
6220 fi
6221 if test -z "$AR"; then
6222   ac_ct_AR=$AR
6223   for ac_prog in ar
6224 do
6225   # Extract the first word of "$ac_prog", so it can be a program name with args.
6226 set dummy $ac_prog; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   if test -n "$ac_ct_AR"; then
6233   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238   IFS=$as_save_IFS
6239   test -z "$as_dir" && as_dir=.
6240     for ac_exec_ext in '' $ac_executable_extensions; do
6241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242     ac_cv_prog_ac_ct_AR="$ac_prog"
6243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244     break 2
6245   fi
6246 done
6247   done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6253 if test -n "$ac_ct_AR"; then
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6255 $as_echo "$ac_ct_AR" >&6; }
6256 else
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261
6262   test -n "$ac_ct_AR" && break
6263 done
6264
6265   if test "x$ac_ct_AR" = x; then
6266     AR="false"
6267   else
6268     case $cross_compiling:$ac_tool_warned in
6269 yes:)
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6273 esac
6274     AR=$ac_ct_AR
6275   fi
6276 fi
6277
6278 : ${AR=ar}
6279 : ${AR_FLAGS=cru}
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6292 $as_echo_n "checking for archiver @FILE support... " >&6; }
6293 if ${lt_cv_ar_at_file+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   lt_cv_ar_at_file=no
6297    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h.  */
6299
6300 int
6301 main ()
6302 {
6303
6304   ;
6305   return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_c_try_compile "$LINENO"; then :
6309   echo conftest.$ac_objext > conftest.lst
6310       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6311       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6312   (eval $lt_ar_try) 2>&5
6313   ac_status=$?
6314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315   test $ac_status = 0; }
6316       if test "$ac_status" -eq 0; then
6317         # Ensure the archiver fails upon bogus file names.
6318         rm -f conftest.$ac_objext libconftest.a
6319         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6320   (eval $lt_ar_try) 2>&5
6321   ac_status=$?
6322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323   test $ac_status = 0; }
6324         if test "$ac_status" -ne 0; then
6325           lt_cv_ar_at_file=@
6326         fi
6327       fi
6328       rm -f conftest.* libconftest.a
6329
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6335 $as_echo "$lt_cv_ar_at_file" >&6; }
6336
6337 if test "x$lt_cv_ar_at_file" = xno; then
6338   archiver_list_spec=
6339 else
6340   archiver_list_spec=$lt_cv_ar_at_file
6341 fi
6342
6343
6344
6345
6346
6347
6348
6349 if test -n "$ac_tool_prefix"; then
6350   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}strip; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_STRIP+:} false; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$STRIP"; then
6358   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365     for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372   done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 STRIP=$ac_cv_prog_STRIP
6378 if test -n "$STRIP"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6380 $as_echo "$STRIP" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_STRIP"; then
6389   ac_ct_STRIP=$STRIP
6390   # Extract the first word of "strip", so it can be a program name with args.
6391 set dummy strip; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$ac_ct_STRIP"; then
6398   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405     for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_prog_ac_ct_STRIP="strip"
6408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412   done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418 if test -n "$ac_ct_STRIP"; then
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6420 $as_echo "$ac_ct_STRIP" >&6; }
6421 else
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426   if test "x$ac_ct_STRIP" = x; then
6427     STRIP=":"
6428   else
6429     case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435     STRIP=$ac_ct_STRIP
6436   fi
6437 else
6438   STRIP="$ac_cv_prog_STRIP"
6439 fi
6440
6441 test -z "$STRIP" && STRIP=:
6442
6443
6444
6445
6446
6447
6448 if test -n "$ac_tool_prefix"; then
6449   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_RANLIB+:} false; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   if test -n "$RANLIB"; then
6457   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464     for ac_exec_ext in '' $ac_executable_extensions; do
6465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471   done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 RANLIB=$ac_cv_prog_RANLIB
6477 if test -n "$RANLIB"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6479 $as_echo "$RANLIB" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_RANLIB"; then
6488   ac_ct_RANLIB=$RANLIB
6489   # Extract the first word of "ranlib", so it can be a program name with args.
6490 set dummy ranlib; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   if test -n "$ac_ct_RANLIB"; then
6497   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502   IFS=$as_save_IFS
6503   test -z "$as_dir" && as_dir=.
6504     for ac_exec_ext in '' $ac_executable_extensions; do
6505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506     ac_cv_prog_ac_ct_RANLIB="ranlib"
6507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508     break 2
6509   fi
6510 done
6511   done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6517 if test -n "$ac_ct_RANLIB"; then
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6519 $as_echo "$ac_ct_RANLIB" >&6; }
6520 else
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524
6525   if test "x$ac_ct_RANLIB" = x; then
6526     RANLIB=":"
6527   else
6528     case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534     RANLIB=$ac_ct_RANLIB
6535   fi
6536 else
6537   RANLIB="$ac_cv_prog_RANLIB"
6538 fi
6539
6540 test -z "$RANLIB" && RANLIB=:
6541
6542
6543
6544
6545
6546
6547 # Determine commands to create old-style static archives.
6548 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6549 old_postinstall_cmds='chmod 644 $oldlib'
6550 old_postuninstall_cmds=
6551
6552 if test -n "$RANLIB"; then
6553   case $host_os in
6554   openbsd*)
6555     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6556     ;;
6557   *)
6558     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6559     ;;
6560   esac
6561   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6562 fi
6563
6564 case $host_os in
6565   darwin*)
6566     lock_old_archive_extraction=yes ;;
6567   *)
6568     lock_old_archive_extraction=no ;;
6569 esac
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591 for ac_prog in gawk mawk nawk awk
6592 do
6593   # Extract the first word of "$ac_prog", so it can be a program name with args.
6594 set dummy $ac_prog; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_AWK+:} false; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   if test -n "$AWK"; then
6601   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608     for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_prog_AWK="$ac_prog"
6611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615   done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 AWK=$ac_cv_prog_AWK
6621 if test -n "$AWK"; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6623 $as_echo "$AWK" >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629
6630   test -n "$AWK" && break
6631 done
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651 # If no C compiler was specified, use CC.
6652 LTCC=${LTCC-"$CC"}
6653
6654 # If no C compiler flags were specified, use CFLAGS.
6655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6656
6657 # Allow CC to be a program name with arguments.
6658 compiler=$CC
6659
6660
6661 # Check for command to grab the raw symbol name followed by C symbol from nm.
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6663 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6664 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667
6668 # These are sane defaults that work on at least a few old systems.
6669 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6670
6671 # Character class describing NM global symbol codes.
6672 symcode='[BCDEGRST]'
6673
6674 # Regexp to match symbols that can be accessed directly from C.
6675 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6676
6677 # Define system-specific variables.
6678 case $host_os in
6679 aix*)
6680   symcode='[BCDT]'
6681   ;;
6682 cygwin* | mingw* | pw32* | cegcc*)
6683   symcode='[ABCDGISTW]'
6684   ;;
6685 hpux*)
6686   if test "$host_cpu" = ia64; then
6687     symcode='[ABCDEGRST]'
6688   fi
6689   ;;
6690 irix* | nonstopux*)
6691   symcode='[BCDEGRST]'
6692   ;;
6693 osf*)
6694   symcode='[BCDEGQRST]'
6695   ;;
6696 solaris*)
6697   symcode='[BDRT]'
6698   ;;
6699 sco3.2v5*)
6700   symcode='[DT]'
6701   ;;
6702 sysv4.2uw2*)
6703   symcode='[DT]'
6704   ;;
6705 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6706   symcode='[ABDT]'
6707   ;;
6708 sysv4)
6709   symcode='[DFNSTU]'
6710   ;;
6711 esac
6712
6713 # If we're using GNU nm, then use its standard symbol codes.
6714 case `$NM -V 2>&1` in
6715 *GNU* | *'with BFD'*)
6716   symcode='[ABCDGIRSTW]' ;;
6717 esac
6718
6719 # Transform an extracted symbol line into a proper C declaration.
6720 # Some systems (esp. on ia64) link data and code symbols differently,
6721 # so use this general approach.
6722 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6723
6724 # Transform an extracted symbol line into symbol name and symbol address
6725 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6726 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'"
6727
6728 # Handle CRLF in mingw tool chain
6729 opt_cr=
6730 case $build_os in
6731 mingw*)
6732   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6733   ;;
6734 esac
6735
6736 # Try without a prefix underscore, then with it.
6737 for ac_symprfx in "" "_"; do
6738
6739   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6740   symxfrm="\\1 $ac_symprfx\\2 \\2"
6741
6742   # Write the raw and C identifiers.
6743   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6744     # Fake it for dumpbin and say T for any non-static function
6745     # and D for any global variable.
6746     # Also find C++ and __fastcall symbols from MSVC++,
6747     # which start with @ or ?.
6748     lt_cv_sys_global_symbol_pipe="$AWK '"\
6749 "     {last_section=section; section=\$ 3};"\
6750 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6751 "     \$ 0!~/External *\|/{next};"\
6752 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6753 "     {if(hide[section]) next};"\
6754 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6755 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6756 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6757 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6758 "     ' prfx=^$ac_symprfx"
6759   else
6760     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6761   fi
6762   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6763
6764   # Check to see that the pipe works correctly.
6765   pipe_works=no
6766
6767   rm -f conftest*
6768   cat > conftest.$ac_ext <<_LT_EOF
6769 #ifdef __cplusplus
6770 extern "C" {
6771 #endif
6772 char nm_test_var;
6773 void nm_test_func(void);
6774 void nm_test_func(void){}
6775 #ifdef __cplusplus
6776 }
6777 #endif
6778 int main(){nm_test_var='a';nm_test_func();return(0);}
6779 _LT_EOF
6780
6781   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6782   (eval $ac_compile) 2>&5
6783   ac_status=$?
6784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785   test $ac_status = 0; }; then
6786     # Now try to grab the symbols.
6787     nlist=conftest.nm
6788     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6789   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6790   ac_status=$?
6791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792   test $ac_status = 0; } && test -s "$nlist"; then
6793       # Try sorting and uniquifying the output.
6794       if sort "$nlist" | uniq > "$nlist"T; then
6795         mv -f "$nlist"T "$nlist"
6796       else
6797         rm -f "$nlist"T
6798       fi
6799
6800       # Make sure that we snagged all the symbols we need.
6801       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6802         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6803           cat <<_LT_EOF > conftest.$ac_ext
6804 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6805 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6806 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6807    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6808 # define LT_DLSYM_CONST
6809 #elif defined(__osf__)
6810 /* This system does not cope well with relocations in const data.  */
6811 # define LT_DLSYM_CONST
6812 #else
6813 # define LT_DLSYM_CONST const
6814 #endif
6815
6816 #ifdef __cplusplus
6817 extern "C" {
6818 #endif
6819
6820 _LT_EOF
6821           # Now generate the symbol file.
6822           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6823
6824           cat <<_LT_EOF >> conftest.$ac_ext
6825
6826 /* The mapping between symbol names and symbols.  */
6827 LT_DLSYM_CONST struct {
6828   const char *name;
6829   void       *address;
6830 }
6831 lt__PROGRAM__LTX_preloaded_symbols[] =
6832 {
6833   { "@PROGRAM@", (void *) 0 },
6834 _LT_EOF
6835           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6836           cat <<\_LT_EOF >> conftest.$ac_ext
6837   {0, (void *) 0}
6838 };
6839
6840 /* This works around a problem in FreeBSD linker */
6841 #ifdef FREEBSD_WORKAROUND
6842 static const void *lt_preloaded_setup() {
6843   return lt__PROGRAM__LTX_preloaded_symbols;
6844 }
6845 #endif
6846
6847 #ifdef __cplusplus
6848 }
6849 #endif
6850 _LT_EOF
6851           # Now try linking the two files.
6852           mv conftest.$ac_objext conftstm.$ac_objext
6853           lt_globsym_save_LIBS=$LIBS
6854           lt_globsym_save_CFLAGS=$CFLAGS
6855           LIBS="conftstm.$ac_objext"
6856           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6857           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6858   (eval $ac_link) 2>&5
6859   ac_status=$?
6860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6862             pipe_works=yes
6863           fi
6864           LIBS=$lt_globsym_save_LIBS
6865           CFLAGS=$lt_globsym_save_CFLAGS
6866         else
6867           echo "cannot find nm_test_func in $nlist" >&5
6868         fi
6869       else
6870         echo "cannot find nm_test_var in $nlist" >&5
6871       fi
6872     else
6873       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6874     fi
6875   else
6876     echo "$progname: failed program was:" >&5
6877     cat conftest.$ac_ext >&5
6878   fi
6879   rm -rf conftest* conftst*
6880
6881   # Do not use the global_symbol_pipe unless it works.
6882   if test "$pipe_works" = yes; then
6883     break
6884   else
6885     lt_cv_sys_global_symbol_pipe=
6886   fi
6887 done
6888
6889 fi
6890
6891 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6892   lt_cv_sys_global_symbol_to_cdecl=
6893 fi
6894 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6896 $as_echo "failed" >&6; }
6897 else
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6899 $as_echo "ok" >&6; }
6900 fi
6901
6902 # Response file support.
6903 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6904   nm_file_list_spec='@'
6905 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6906   nm_file_list_spec='@'
6907 fi
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6936 $as_echo_n "checking for sysroot... " >&6; }
6937
6938 # Check whether --with-sysroot was given.
6939 if test "${with_sysroot+set}" = set; then :
6940   withval=$with_sysroot;
6941 else
6942   with_sysroot=no
6943 fi
6944
6945
6946 lt_sysroot=
6947 case ${with_sysroot} in #(
6948  yes)
6949    if test "$GCC" = yes; then
6950      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6951    fi
6952    ;; #(
6953  /*)
6954    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6955    ;; #(
6956  no|'')
6957    ;; #(
6958  *)
6959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6960 $as_echo "${with_sysroot}" >&6; }
6961    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6962    ;;
6963 esac
6964
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6966 $as_echo "${lt_sysroot:-no}" >&6; }
6967
6968
6969
6970
6971
6972 # Check whether --enable-libtool-lock was given.
6973 if test "${enable_libtool_lock+set}" = set; then :
6974   enableval=$enable_libtool_lock;
6975 fi
6976
6977 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6978
6979 # Some flags need to be propagated to the compiler or linker for good
6980 # libtool support.
6981 case $host in
6982 ia64-*-hpux*)
6983   # Find out which ABI we are using.
6984   echo 'int i;' > conftest.$ac_ext
6985   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986   (eval $ac_compile) 2>&5
6987   ac_status=$?
6988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989   test $ac_status = 0; }; then
6990     case `/usr/bin/file conftest.$ac_objext` in
6991       *ELF-32*)
6992         HPUX_IA64_MODE="32"
6993         ;;
6994       *ELF-64*)
6995         HPUX_IA64_MODE="64"
6996         ;;
6997     esac
6998   fi
6999   rm -rf conftest*
7000   ;;
7001 *-*-irix6*)
7002   # Find out which ABI we are using.
7003   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7005   (eval $ac_compile) 2>&5
7006   ac_status=$?
7007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008   test $ac_status = 0; }; then
7009     if test "$lt_cv_prog_gnu_ld" = yes; then
7010       case `/usr/bin/file conftest.$ac_objext` in
7011         *32-bit*)
7012           LD="${LD-ld} -melf32bsmip"
7013           ;;
7014         *N32*)
7015           LD="${LD-ld} -melf32bmipn32"
7016           ;;
7017         *64-bit*)
7018           LD="${LD-ld} -melf64bmip"
7019         ;;
7020       esac
7021     else
7022       case `/usr/bin/file conftest.$ac_objext` in
7023         *32-bit*)
7024           LD="${LD-ld} -32"
7025           ;;
7026         *N32*)
7027           LD="${LD-ld} -n32"
7028           ;;
7029         *64-bit*)
7030           LD="${LD-ld} -64"
7031           ;;
7032       esac
7033     fi
7034   fi
7035   rm -rf conftest*
7036   ;;
7037
7038 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7039 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7040   # Find out which ABI we are using.
7041   echo 'int i;' > conftest.$ac_ext
7042   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7043   (eval $ac_compile) 2>&5
7044   ac_status=$?
7045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046   test $ac_status = 0; }; then
7047     case `/usr/bin/file conftest.o` in
7048       *32-bit*)
7049         case $host in
7050           x86_64-*kfreebsd*-gnu)
7051             LD="${LD-ld} -m elf_i386_fbsd"
7052             ;;
7053           x86_64-*linux*)
7054             LD="${LD-ld} -m elf_i386"
7055             ;;
7056           ppc64-*linux*|powerpc64-*linux*)
7057             LD="${LD-ld} -m elf32ppclinux"
7058             ;;
7059           s390x-*linux*)
7060             LD="${LD-ld} -m elf_s390"
7061             ;;
7062           sparc64-*linux*)
7063             LD="${LD-ld} -m elf32_sparc"
7064             ;;
7065         esac
7066         ;;
7067       *64-bit*)
7068         case $host in
7069           x86_64-*kfreebsd*-gnu)
7070             LD="${LD-ld} -m elf_x86_64_fbsd"
7071             ;;
7072           x86_64-*linux*)
7073             LD="${LD-ld} -m elf_x86_64"
7074             ;;
7075           ppc*-*linux*|powerpc*-*linux*)
7076             LD="${LD-ld} -m elf64ppc"
7077             ;;
7078           s390*-*linux*|s390*-*tpf*)
7079             LD="${LD-ld} -m elf64_s390"
7080             ;;
7081           sparc*-*linux*)
7082             LD="${LD-ld} -m elf64_sparc"
7083             ;;
7084         esac
7085         ;;
7086     esac
7087   fi
7088   rm -rf conftest*
7089   ;;
7090
7091 *-*-sco3.2v5*)
7092   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7093   SAVE_CFLAGS="$CFLAGS"
7094   CFLAGS="$CFLAGS -belf"
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7096 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7097 if ${lt_cv_cc_needs_belf+:} false; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   ac_ext=c
7101 ac_cpp='$CPP $CPPFLAGS'
7102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105
7106      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h.  */
7108
7109 int
7110 main ()
7111 {
7112
7113   ;
7114   return 0;
7115 }
7116 _ACEOF
7117 if ac_fn_c_try_link "$LINENO"; then :
7118   lt_cv_cc_needs_belf=yes
7119 else
7120   lt_cv_cc_needs_belf=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext \
7123     conftest$ac_exeext conftest.$ac_ext
7124      ac_ext=c
7125 ac_cpp='$CPP $CPPFLAGS'
7126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7129
7130 fi
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7132 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7133   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7134     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7135     CFLAGS="$SAVE_CFLAGS"
7136   fi
7137   ;;
7138 sparc*-*solaris*)
7139   # Find out which ABI we are using.
7140   echo 'int i;' > conftest.$ac_ext
7141   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7142   (eval $ac_compile) 2>&5
7143   ac_status=$?
7144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145   test $ac_status = 0; }; then
7146     case `/usr/bin/file conftest.o` in
7147     *64-bit*)
7148       case $lt_cv_prog_gnu_ld in
7149       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7150       *)
7151         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7152           LD="${LD-ld} -64"
7153         fi
7154         ;;
7155       esac
7156       ;;
7157     esac
7158   fi
7159   rm -rf conftest*
7160   ;;
7161 esac
7162
7163 need_locks="$enable_libtool_lock"
7164
7165 if test -n "$ac_tool_prefix"; then
7166   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}mt; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$MANIFEST_TOOL"; then
7174   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7194 if test -n "$MANIFEST_TOOL"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7196 $as_echo "$MANIFEST_TOOL" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203 fi
7204 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7205   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7206   # Extract the first word of "mt", so it can be a program name with args.
7207 set dummy mt; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$ac_ct_MANIFEST_TOOL"; then
7214   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7234 if test -n "$ac_ct_MANIFEST_TOOL"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7236 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7243     MANIFEST_TOOL=":"
7244   else
7245     case $cross_compiling:$ac_tool_warned in
7246 yes:)
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7250 esac
7251     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7252   fi
7253 else
7254   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7255 fi
7256
7257 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7259 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7260 if ${lt_cv_path_mainfest_tool+:} false; then :
7261   $as_echo_n "(cached) " >&6
7262 else
7263   lt_cv_path_mainfest_tool=no
7264   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7265   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7266   cat conftest.err >&5
7267   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7268     lt_cv_path_mainfest_tool=yes
7269   fi
7270   rm -f conftest*
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7273 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7274 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7275   MANIFEST_TOOL=:
7276 fi
7277
7278
7279
7280
7281
7282
7283   case $host_os in
7284     rhapsody* | darwin*)
7285     if test -n "$ac_tool_prefix"; then
7286   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   if test -n "$DSYMUTIL"; then
7294   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7314 if test -n "$DSYMUTIL"; then
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7316 $as_echo "$DSYMUTIL" >&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_DSYMUTIL"; then
7325   ac_ct_DSYMUTIL=$DSYMUTIL
7326   # Extract the first word of "dsymutil", so it can be a program name with args.
7327 set dummy dsymutil; 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_DSYMUTIL+:} false; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   if test -n "$ac_ct_DSYMUTIL"; then
7334   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7354 if test -n "$ac_ct_DSYMUTIL"; then
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7356 $as_echo "$ac_ct_DSYMUTIL" >&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_DSYMUTIL" = x; then
7363     DSYMUTIL=":"
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     DSYMUTIL=$ac_ct_DSYMUTIL
7372   fi
7373 else
7374   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7375 fi
7376
7377     if test -n "$ac_tool_prefix"; then
7378   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if ${ac_cv_prog_NMEDIT+:} false; then :
7383   $as_echo_n "(cached) " >&6
7384 else
7385   if test -n "$NMEDIT"; then
7386   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391   IFS=$as_save_IFS
7392   test -z "$as_dir" && as_dir=.
7393     for ac_exec_ext in '' $ac_executable_extensions; do
7394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397     break 2
7398   fi
7399 done
7400   done
7401 IFS=$as_save_IFS
7402
7403 fi
7404 fi
7405 NMEDIT=$ac_cv_prog_NMEDIT
7406 if test -n "$NMEDIT"; then
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7408 $as_echo "$NMEDIT" >&6; }
7409 else
7410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412 fi
7413
7414
7415 fi
7416 if test -z "$ac_cv_prog_NMEDIT"; then
7417   ac_ct_NMEDIT=$NMEDIT
7418   # Extract the first word of "nmedit", so it can be a program name with args.
7419 set dummy nmedit; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425   if test -n "$ac_ct_NMEDIT"; then
7426   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433     for ac_exec_ext in '' $ac_executable_extensions; do
7434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440   done
7441 IFS=$as_save_IFS
7442
7443 fi
7444 fi
7445 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7446 if test -n "$ac_ct_NMEDIT"; then
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7448 $as_echo "$ac_ct_NMEDIT" >&6; }
7449 else
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454   if test "x$ac_ct_NMEDIT" = x; then
7455     NMEDIT=":"
7456   else
7457     case $cross_compiling:$ac_tool_warned in
7458 yes:)
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461 ac_tool_warned=yes ;;
7462 esac
7463     NMEDIT=$ac_ct_NMEDIT
7464   fi
7465 else
7466   NMEDIT="$ac_cv_prog_NMEDIT"
7467 fi
7468
7469     if test -n "$ac_tool_prefix"; then
7470   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_LIPO+:} false; then :
7475   $as_echo_n "(cached) " >&6
7476 else
7477   if test -n "$LIPO"; then
7478   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485     for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492   done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 LIPO=$ac_cv_prog_LIPO
7498 if test -n "$LIPO"; then
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7500 $as_echo "$LIPO" >&6; }
7501 else
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506
7507 fi
7508 if test -z "$ac_cv_prog_LIPO"; then
7509   ac_ct_LIPO=$LIPO
7510   # Extract the first word of "lipo", so it can be a program name with args.
7511 set dummy lipo; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7515   $as_echo_n "(cached) " >&6
7516 else
7517   if test -n "$ac_ct_LIPO"; then
7518   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525     for ac_exec_ext in '' $ac_executable_extensions; do
7526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527     ac_cv_prog_ac_ct_LIPO="lipo"
7528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529     break 2
7530   fi
7531 done
7532   done
7533 IFS=$as_save_IFS
7534
7535 fi
7536 fi
7537 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7538 if test -n "$ac_ct_LIPO"; then
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7540 $as_echo "$ac_ct_LIPO" >&6; }
7541 else
7542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546   if test "x$ac_ct_LIPO" = x; then
7547     LIPO=":"
7548   else
7549     case $cross_compiling:$ac_tool_warned in
7550 yes:)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7554 esac
7555     LIPO=$ac_ct_LIPO
7556   fi
7557 else
7558   LIPO="$ac_cv_prog_LIPO"
7559 fi
7560
7561     if test -n "$ac_tool_prefix"; then
7562   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7563 set dummy ${ac_tool_prefix}otool; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_OTOOL+:} false; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   if test -n "$OTOOL"; then
7570   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575   IFS=$as_save_IFS
7576   test -z "$as_dir" && as_dir=.
7577     for ac_exec_ext in '' $ac_executable_extensions; do
7578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581     break 2
7582   fi
7583 done
7584   done
7585 IFS=$as_save_IFS
7586
7587 fi
7588 fi
7589 OTOOL=$ac_cv_prog_OTOOL
7590 if test -n "$OTOOL"; then
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7592 $as_echo "$OTOOL" >&6; }
7593 else
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 fi
7597
7598
7599 fi
7600 if test -z "$ac_cv_prog_OTOOL"; then
7601   ac_ct_OTOOL=$OTOOL
7602   # Extract the first word of "otool", so it can be a program name with args.
7603 set dummy otool; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   if test -n "$ac_ct_OTOOL"; then
7610   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617     for ac_exec_ext in '' $ac_executable_extensions; do
7618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619     ac_cv_prog_ac_ct_OTOOL="otool"
7620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624   done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7630 if test -n "$ac_ct_OTOOL"; then
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7632 $as_echo "$ac_ct_OTOOL" >&6; }
7633 else
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638   if test "x$ac_ct_OTOOL" = x; then
7639     OTOOL=":"
7640   else
7641     case $cross_compiling:$ac_tool_warned in
7642 yes:)
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645 ac_tool_warned=yes ;;
7646 esac
7647     OTOOL=$ac_ct_OTOOL
7648   fi
7649 else
7650   OTOOL="$ac_cv_prog_OTOOL"
7651 fi
7652
7653     if test -n "$ac_tool_prefix"; then
7654   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7655 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_OTOOL64+:} false; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   if test -n "$OTOOL64"; then
7662   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669     for ac_exec_ext in '' $ac_executable_extensions; do
7670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676   done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 OTOOL64=$ac_cv_prog_OTOOL64
7682 if test -n "$OTOOL64"; then
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7684 $as_echo "$OTOOL64" >&6; }
7685 else
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690
7691 fi
7692 if test -z "$ac_cv_prog_OTOOL64"; then
7693   ac_ct_OTOOL64=$OTOOL64
7694   # Extract the first word of "otool64", so it can be a program name with args.
7695 set dummy otool64; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   if test -n "$ac_ct_OTOOL64"; then
7702   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709     for ac_exec_ext in '' $ac_executable_extensions; do
7710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711     ac_cv_prog_ac_ct_OTOOL64="otool64"
7712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716   done
7717 IFS=$as_save_IFS
7718
7719 fi
7720 fi
7721 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7722 if test -n "$ac_ct_OTOOL64"; then
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7724 $as_echo "$ac_ct_OTOOL64" >&6; }
7725 else
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729
7730   if test "x$ac_ct_OTOOL64" = x; then
7731     OTOOL64=":"
7732   else
7733     case $cross_compiling:$ac_tool_warned in
7734 yes:)
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737 ac_tool_warned=yes ;;
7738 esac
7739     OTOOL64=$ac_ct_OTOOL64
7740   fi
7741 else
7742   OTOOL64="$ac_cv_prog_OTOOL64"
7743 fi
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7772 $as_echo_n "checking for -single_module linker flag... " >&6; }
7773 if ${lt_cv_apple_cc_single_mod+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   lt_cv_apple_cc_single_mod=no
7777       if test -z "${LT_MULTI_MODULE}"; then
7778         # By default we will add the -single_module flag. You can override
7779         # by either setting the environment variable LT_MULTI_MODULE
7780         # non-empty at configure time, or by adding -multi_module to the
7781         # link flags.
7782         rm -rf libconftest.dylib*
7783         echo "int foo(void){return 1;}" > conftest.c
7784         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7785 -dynamiclib -Wl,-single_module conftest.c" >&5
7786         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7787           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7788         _lt_result=$?
7789         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7790           lt_cv_apple_cc_single_mod=yes
7791         else
7792           cat conftest.err >&5
7793         fi
7794         rm -rf libconftest.dylib*
7795         rm -f conftest.*
7796       fi
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7799 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7801 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7802 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   lt_cv_ld_exported_symbols_list=no
7806       save_LDFLAGS=$LDFLAGS
7807       echo "_main" > conftest.sym
7808       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7809       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h.  */
7811
7812 int
7813 main ()
7814 {
7815
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_link "$LINENO"; then :
7821   lt_cv_ld_exported_symbols_list=yes
7822 else
7823   lt_cv_ld_exported_symbols_list=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext \
7826     conftest$ac_exeext conftest.$ac_ext
7827         LDFLAGS="$save_LDFLAGS"
7828
7829 fi
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7831 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7833 $as_echo_n "checking for -force_load linker flag... " >&6; }
7834 if ${lt_cv_ld_force_load+:} false; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   lt_cv_ld_force_load=no
7838       cat > conftest.c << _LT_EOF
7839 int forced_loaded() { return 2;}
7840 _LT_EOF
7841       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7842       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7843       echo "$AR cru libconftest.a conftest.o" >&5
7844       $AR cru libconftest.a conftest.o 2>&5
7845       echo "$RANLIB libconftest.a" >&5
7846       $RANLIB libconftest.a 2>&5
7847       cat > conftest.c << _LT_EOF
7848 int main() { return 0;}
7849 _LT_EOF
7850       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7851       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7852       _lt_result=$?
7853       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7854         lt_cv_ld_force_load=yes
7855       else
7856         cat conftest.err >&5
7857       fi
7858         rm -f conftest.err libconftest.a conftest conftest.c
7859         rm -rf conftest.dSYM
7860
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7863 $as_echo "$lt_cv_ld_force_load" >&6; }
7864     case $host_os in
7865     rhapsody* | darwin1.[012])
7866       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7867     darwin1.*)
7868       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7869     darwin*) # darwin 5.x on
7870       # if running on 10.5 or later, the deployment target defaults
7871       # to the OS version, if on x86, and 10.4, the deployment
7872       # target defaults to 10.4. Don't you love it?
7873       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7874         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7875           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7876         10.[012]*)
7877           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7878         10.*)
7879           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7880       esac
7881     ;;
7882   esac
7883     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7884       _lt_dar_single_mod='$single_module'
7885     fi
7886     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7887       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7888     else
7889       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7890     fi
7891     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7892       _lt_dsymutil='~$DSYMUTIL $lib || :'
7893     else
7894       _lt_dsymutil=
7895     fi
7896     ;;
7897   esac
7898
7899 for ac_header in dlfcn.h
7900 do :
7901   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7902 "
7903 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7904   cat >>confdefs.h <<_ACEOF
7905 #define HAVE_DLFCN_H 1
7906 _ACEOF
7907
7908 fi
7909
7910 done
7911
7912
7913
7914
7915 func_stripname_cnf ()
7916 {
7917   case ${2} in
7918   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7919   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7920   esac
7921 } # func_stripname_cnf
7922
7923 if test "x$with_system_libtool" = "xyes" ; then :
7924    # Extract the first word of "libtool", so it can be a program name with args.
7925 set dummy libtool; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if ${ac_cv_path_LIBTOOL+:} false; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   case $LIBTOOL in
7932   [\\/]* | ?:[\\/]*)
7933   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
7934   ;;
7935   *)
7936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 as_dummy="$PATH:/usr/local/bin"
7938 for as_dir in $as_dummy
7939 do
7940   IFS=$as_save_IFS
7941   test -z "$as_dir" && as_dir=.
7942     for ac_exec_ext in '' $ac_executable_extensions; do
7943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7944     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
7945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946     break 2
7947   fi
7948 done
7949   done
7950 IFS=$as_save_IFS
7951
7952   ;;
7953 esac
7954 fi
7955 LIBTOOL=$ac_cv_path_LIBTOOL
7956 if test -n "$LIBTOOL"; then
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
7958 $as_echo "$LIBTOOL" >&6; }
7959 else
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 fi
7963
7964  enable_dlopen=yes
7965
7966
7967
7968
7969
7970
7971
7972 # Set options
7973
7974
7975
7976
7977   enable_win32_dll=no
7978
7979
7980             # Check whether --enable-shared was given.
7981 if test "${enable_shared+set}" = set; then :
7982   enableval=$enable_shared; p=${PACKAGE-default}
7983     case $enableval in
7984     yes) enable_shared=yes ;;
7985     no) enable_shared=no ;;
7986     *)
7987       enable_shared=no
7988       # Look at the argument we got.  We use all the common list separators.
7989       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7990       for pkg in $enableval; do
7991         IFS="$lt_save_ifs"
7992         if test "X$pkg" = "X$p"; then
7993           enable_shared=yes
7994         fi
7995       done
7996       IFS="$lt_save_ifs"
7997       ;;
7998     esac
7999 else
8000   enable_shared=yes
8001 fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011   # Check whether --enable-static was given.
8012 if test "${enable_static+set}" = set; then :
8013   enableval=$enable_static; p=${PACKAGE-default}
8014     case $enableval in
8015     yes) enable_static=yes ;;
8016     no) enable_static=no ;;
8017     *)
8018      enable_static=no
8019       # Look at the argument we got.  We use all the common list separators.
8020       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8021       for pkg in $enableval; do
8022         IFS="$lt_save_ifs"
8023         if test "X$pkg" = "X$p"; then
8024           enable_static=yes
8025         fi
8026       done
8027       IFS="$lt_save_ifs"
8028       ;;
8029     esac
8030 else
8031   enable_static=yes
8032 fi
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043 # Check whether --with-pic was given.
8044 if test "${with_pic+set}" = set; then :
8045   withval=$with_pic; pic_mode="$withval"
8046 else
8047   pic_mode=default
8048 fi
8049
8050
8051 test -z "$pic_mode" && pic_mode=default
8052
8053
8054
8055
8056
8057
8058
8059   # Check whether --enable-fast-install was given.
8060 if test "${enable_fast_install+set}" = set; then :
8061   enableval=$enable_fast_install; p=${PACKAGE-default}
8062     case $enableval in
8063     yes) enable_fast_install=yes ;;
8064     no) enable_fast_install=no ;;
8065     *)
8066       enable_fast_install=no
8067       # Look at the argument we got.  We use all the common list separators.
8068       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8069       for pkg in $enableval; do
8070         IFS="$lt_save_ifs"
8071         if test "X$pkg" = "X$p"; then
8072           enable_fast_install=yes
8073         fi
8074       done
8075       IFS="$lt_save_ifs"
8076       ;;
8077     esac
8078 else
8079   enable_fast_install=yes
8080 fi
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117 test -z "$LN_S" && LN_S="ln -s"
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132 if test -n "${ZSH_VERSION+set}" ; then
8133    setopt NO_GLOB_SUBST
8134 fi
8135
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8137 $as_echo_n "checking for objdir... " >&6; }
8138 if ${lt_cv_objdir+:} false; then :
8139   $as_echo_n "(cached) " >&6
8140 else
8141   rm -f .libs 2>/dev/null
8142 mkdir .libs 2>/dev/null
8143 if test -d .libs; then
8144   lt_cv_objdir=.libs
8145 else
8146   # MS-DOS does not allow filenames that begin with a dot.
8147   lt_cv_objdir=_libs
8148 fi
8149 rmdir .libs 2>/dev/null
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8152 $as_echo "$lt_cv_objdir" >&6; }
8153 objdir=$lt_cv_objdir
8154
8155
8156
8157
8158
8159 cat >>confdefs.h <<_ACEOF
8160 #define LT_OBJDIR "$lt_cv_objdir/"
8161 _ACEOF
8162
8163
8164
8165
8166 case $host_os in
8167 aix3*)
8168   # AIX sometimes has problems with the GCC collect2 program.  For some
8169   # reason, if we set the COLLECT_NAMES environment variable, the problems
8170   # vanish in a puff of smoke.
8171   if test "X${COLLECT_NAMES+set}" != Xset; then
8172     COLLECT_NAMES=
8173     export COLLECT_NAMES
8174   fi
8175   ;;
8176 esac
8177
8178 # Global variables:
8179 ofile=libtool
8180 can_build_shared=yes
8181
8182 # All known linkers require a `.a' archive for static linking (except MSVC,
8183 # which needs '.lib').
8184 libext=a
8185
8186 with_gnu_ld="$lt_cv_prog_gnu_ld"
8187
8188 old_CC="$CC"
8189 old_CFLAGS="$CFLAGS"
8190
8191 # Set sane defaults for various variables
8192 test -z "$CC" && CC=cc
8193 test -z "$LTCC" && LTCC=$CC
8194 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8195 test -z "$LD" && LD=ld
8196 test -z "$ac_objext" && ac_objext=o
8197
8198 for cc_temp in $compiler""; do
8199   case $cc_temp in
8200     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8201     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8202     \-*) ;;
8203     *) break;;
8204   esac
8205 done
8206 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8207
8208
8209 # Only perform the check for file, if the check method requires it
8210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211 case $deplibs_check_method in
8212 file_magic*)
8213   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8215 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8216 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8217   $as_echo_n "(cached) " >&6
8218 else
8219   case $MAGIC_CMD in
8220 [\\/*] |  ?:[\\/]*)
8221   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8222   ;;
8223 *)
8224   lt_save_MAGIC_CMD="$MAGIC_CMD"
8225   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8226   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8227   for ac_dir in $ac_dummy; do
8228     IFS="$lt_save_ifs"
8229     test -z "$ac_dir" && ac_dir=.
8230     if test -f $ac_dir/${ac_tool_prefix}file; then
8231       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8232       if test -n "$file_magic_test_file"; then
8233         case $deplibs_check_method in
8234         "file_magic "*)
8235           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8236           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8238             $EGREP "$file_magic_regex" > /dev/null; then
8239             :
8240           else
8241             cat <<_LT_EOF 1>&2
8242
8243 *** Warning: the command libtool uses to detect shared libraries,
8244 *** $file_magic_cmd, produces output that libtool cannot recognize.
8245 *** The result is that libtool may fail to recognize shared libraries
8246 *** as such.  This will affect the creation of libtool libraries that
8247 *** depend on shared libraries, but programs linked with such libtool
8248 *** libraries will work regardless of this problem.  Nevertheless, you
8249 *** may want to report the problem to your system manager and/or to
8250 *** bug-libtool@gnu.org
8251
8252 _LT_EOF
8253           fi ;;
8254         esac
8255       fi
8256       break
8257     fi
8258   done
8259   IFS="$lt_save_ifs"
8260   MAGIC_CMD="$lt_save_MAGIC_CMD"
8261   ;;
8262 esac
8263 fi
8264
8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266 if test -n "$MAGIC_CMD"; then
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8268 $as_echo "$MAGIC_CMD" >&6; }
8269 else
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8272 fi
8273
8274
8275
8276
8277
8278 if test -z "$lt_cv_path_MAGIC_CMD"; then
8279   if test -n "$ac_tool_prefix"; then
8280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8281 $as_echo_n "checking for file... " >&6; }
8282 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283   $as_echo_n "(cached) " >&6
8284 else
8285   case $MAGIC_CMD in
8286 [\\/*] |  ?:[\\/]*)
8287   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8288   ;;
8289 *)
8290   lt_save_MAGIC_CMD="$MAGIC_CMD"
8291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293   for ac_dir in $ac_dummy; do
8294     IFS="$lt_save_ifs"
8295     test -z "$ac_dir" && ac_dir=.
8296     if test -f $ac_dir/file; then
8297       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8298       if test -n "$file_magic_test_file"; then
8299         case $deplibs_check_method in
8300         "file_magic "*)
8301           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304             $EGREP "$file_magic_regex" > /dev/null; then
8305             :
8306           else
8307             cat <<_LT_EOF 1>&2
8308
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such.  This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem.  Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8317
8318 _LT_EOF
8319           fi ;;
8320         esac
8321       fi
8322       break
8323     fi
8324   done
8325   IFS="$lt_save_ifs"
8326   MAGIC_CMD="$lt_save_MAGIC_CMD"
8327   ;;
8328 esac
8329 fi
8330
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334 $as_echo "$MAGIC_CMD" >&6; }
8335 else
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339
8340
8341   else
8342     MAGIC_CMD=:
8343   fi
8344 fi
8345
8346   fi
8347   ;;
8348 esac
8349
8350 # Use C for the default configuration in the libtool script
8351
8352 lt_save_CC="$CC"
8353 ac_ext=c
8354 ac_cpp='$CPP $CPPFLAGS'
8355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359
8360 # Source file extension for C test sources.
8361 ac_ext=c
8362
8363 # Object file extension for compiled C test sources.
8364 objext=o
8365 objext=$objext
8366
8367 # Code to be used in simple compile tests
8368 lt_simple_compile_test_code="int some_variable = 0;"
8369
8370 # Code to be used in simple link tests
8371 lt_simple_link_test_code='int main(){return(0);}'
8372
8373
8374
8375
8376
8377
8378
8379 # If no C compiler was specified, use CC.
8380 LTCC=${LTCC-"$CC"}
8381
8382 # If no C compiler flags were specified, use CFLAGS.
8383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8384
8385 # Allow CC to be a program name with arguments.
8386 compiler=$CC
8387
8388 # Save the default compiler, since it gets overwritten when the other
8389 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8390 compiler_DEFAULT=$CC
8391
8392 # save warnings/boilerplate of simple test code
8393 ac_outfile=conftest.$ac_objext
8394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396 _lt_compiler_boilerplate=`cat conftest.err`
8397 $RM conftest*
8398
8399 ac_outfile=conftest.$ac_objext
8400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8402 _lt_linker_boilerplate=`cat conftest.err`
8403 $RM -r conftest*
8404
8405
8406 if test -n "$compiler"; then
8407
8408 lt_prog_compiler_no_builtin_flag=
8409
8410 if test "$GCC" = yes; then
8411   case $cc_basename in
8412   nvcc*)
8413     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8414   *)
8415     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8416   esac
8417
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8419 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8420 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8421   $as_echo_n "(cached) " >&6
8422 else
8423   lt_cv_prog_compiler_rtti_exceptions=no
8424    ac_outfile=conftest.$ac_objext
8425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8426    lt_compiler_flag="-fno-rtti -fno-exceptions"
8427    # Insert the option either (1) after the last *FLAGS variable, or
8428    # (2) before a word containing "conftest.", or (3) at the end.
8429    # Note that $ac_compile itself does not contain backslashes and begins
8430    # with a dollar sign (not a hyphen), so the echo should work correctly.
8431    # The option is referenced via a variable to avoid confusing sed.
8432    lt_compile=`echo "$ac_compile" | $SED \
8433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8435    -e 's:$: $lt_compiler_flag:'`
8436    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8437    (eval "$lt_compile" 2>conftest.err)
8438    ac_status=$?
8439    cat conftest.err >&5
8440    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441    if (exit $ac_status) && test -s "$ac_outfile"; then
8442      # The compiler can only warn and ignore the option if not recognized
8443      # So say no if there are warnings other than the usual output.
8444      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8445      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8446      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8447        lt_cv_prog_compiler_rtti_exceptions=yes
8448      fi
8449    fi
8450    $RM conftest*
8451
8452 fi
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8454 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8455
8456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8457     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8458 else
8459     :
8460 fi
8461
8462 fi
8463
8464
8465
8466
8467
8468
8469   lt_prog_compiler_wl=
8470 lt_prog_compiler_pic=
8471 lt_prog_compiler_static=
8472
8473
8474   if test "$GCC" = yes; then
8475     lt_prog_compiler_wl='-Wl,'
8476     lt_prog_compiler_static='-static'
8477
8478     case $host_os in
8479       aix*)
8480       # All AIX code is PIC.
8481       if test "$host_cpu" = ia64; then
8482         # AIX 5 now supports IA64 processor
8483         lt_prog_compiler_static='-Bstatic'
8484       fi
8485       ;;
8486
8487     amigaos*)
8488       case $host_cpu in
8489       powerpc)
8490             # see comment about AmigaOS4 .so support
8491             lt_prog_compiler_pic='-fPIC'
8492         ;;
8493       m68k)
8494             # FIXME: we need at least 68020 code to build shared libraries, but
8495             # adding the `-m68020' flag to GCC prevents building anything better,
8496             # like `-m68040'.
8497             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8498         ;;
8499       esac
8500       ;;
8501
8502     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8503       # PIC is the default for these OSes.
8504       ;;
8505
8506     mingw* | cygwin* | pw32* | os2* | cegcc*)
8507       # This hack is so that the source file can tell whether it is being
8508       # built for inclusion in a dll (and should export symbols for example).
8509       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8510       # (--disable-auto-import) libraries
8511       lt_prog_compiler_pic='-DDLL_EXPORT'
8512       ;;
8513
8514     darwin* | rhapsody*)
8515       # PIC is the default on this platform
8516       # Common symbols not allowed in MH_DYLIB files
8517       lt_prog_compiler_pic='-fno-common'
8518       ;;
8519
8520     haiku*)
8521       # PIC is the default for Haiku.
8522       # The "-static" flag exists, but is broken.
8523       lt_prog_compiler_static=
8524       ;;
8525
8526     hpux*)
8527       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8528       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8529       # sets the default TLS model and affects inlining.
8530       case $host_cpu in
8531       hppa*64*)
8532         # +Z the default
8533         ;;
8534       *)
8535         lt_prog_compiler_pic='-fPIC'
8536         ;;
8537       esac
8538       ;;
8539
8540     interix[3-9]*)
8541       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8542       # Instead, we relocate shared libraries at runtime.
8543       ;;
8544
8545     msdosdjgpp*)
8546       # Just because we use GCC doesn't mean we suddenly get shared libraries
8547       # on systems that don't support them.
8548       lt_prog_compiler_can_build_shared=no
8549       enable_shared=no
8550       ;;
8551
8552     *nto* | *qnx*)
8553       # QNX uses GNU C++, but need to define -shared option too, otherwise
8554       # it will coredump.
8555       lt_prog_compiler_pic='-fPIC -shared'
8556       ;;
8557
8558     sysv4*MP*)
8559       if test -d /usr/nec; then
8560         lt_prog_compiler_pic=-Kconform_pic
8561       fi
8562       ;;
8563
8564     *)
8565       lt_prog_compiler_pic='-fPIC'
8566       ;;
8567     esac
8568
8569     case $cc_basename in
8570     nvcc*) # Cuda Compiler Driver 2.2
8571       lt_prog_compiler_wl='-Xlinker '
8572       lt_prog_compiler_pic='-Xcompiler -fPIC'
8573       ;;
8574     esac
8575   else
8576     # PORTME Check for flag to pass linker flags through the system compiler.
8577     case $host_os in
8578     aix*)
8579       lt_prog_compiler_wl='-Wl,'
8580       if test "$host_cpu" = ia64; then
8581         # AIX 5 now supports IA64 processor
8582         lt_prog_compiler_static='-Bstatic'
8583       else
8584         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8585       fi
8586       ;;
8587
8588     mingw* | cygwin* | pw32* | os2* | cegcc*)
8589       # This hack is so that the source file can tell whether it is being
8590       # built for inclusion in a dll (and should export symbols for example).
8591       lt_prog_compiler_pic='-DDLL_EXPORT'
8592       ;;
8593
8594     hpux9* | hpux10* | hpux11*)
8595       lt_prog_compiler_wl='-Wl,'
8596       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8597       # not for PA HP-UX.
8598       case $host_cpu in
8599       hppa*64*|ia64*)
8600         # +Z the default
8601         ;;
8602       *)
8603         lt_prog_compiler_pic='+Z'
8604         ;;
8605       esac
8606       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8607       lt_prog_compiler_static='${wl}-a ${wl}archive'
8608       ;;
8609
8610     irix5* | irix6* | nonstopux*)
8611       lt_prog_compiler_wl='-Wl,'
8612       # PIC (with -KPIC) is the default.
8613       lt_prog_compiler_static='-non_shared'
8614       ;;
8615
8616     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8617       case $cc_basename in
8618       # old Intel for x86_64 which still supported -KPIC.
8619       ecc*)
8620         lt_prog_compiler_wl='-Wl,'
8621         lt_prog_compiler_pic='-KPIC'
8622         lt_prog_compiler_static='-static'
8623         ;;
8624       # icc used to be incompatible with GCC.
8625       # ICC 10 doesn't accept -KPIC any more.
8626       icc* | ifort*)
8627         lt_prog_compiler_wl='-Wl,'
8628         lt_prog_compiler_pic='-fPIC'
8629         lt_prog_compiler_static='-static'
8630         ;;
8631       # Lahey Fortran 8.1.
8632       lf95*)
8633         lt_prog_compiler_wl='-Wl,'
8634         lt_prog_compiler_pic='--shared'
8635         lt_prog_compiler_static='--static'
8636         ;;
8637       nagfor*)
8638         # NAG Fortran compiler
8639         lt_prog_compiler_wl='-Wl,-Wl,,'
8640         lt_prog_compiler_pic='-PIC'
8641         lt_prog_compiler_static='-Bstatic'
8642         ;;
8643       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8644         # Portland Group compilers (*not* the Pentium gcc compiler,
8645         # which looks to be a dead project)
8646         lt_prog_compiler_wl='-Wl,'
8647         lt_prog_compiler_pic='-fpic'
8648         lt_prog_compiler_static='-Bstatic'
8649         ;;
8650       ccc*)
8651         lt_prog_compiler_wl='-Wl,'
8652         # All Alpha code is PIC.
8653         lt_prog_compiler_static='-non_shared'
8654         ;;
8655       xl* | bgxl* | bgf* | mpixl*)
8656         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8657         lt_prog_compiler_wl='-Wl,'
8658         lt_prog_compiler_pic='-qpic'
8659         lt_prog_compiler_static='-qstaticlink'
8660         ;;
8661       *)
8662         case `$CC -V 2>&1 | sed 5q` in
8663         *Sun\ F* | *Sun*Fortran*)
8664           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8665           lt_prog_compiler_pic='-KPIC'
8666           lt_prog_compiler_static='-Bstatic'
8667           lt_prog_compiler_wl=''
8668           ;;
8669         *Sun\ C*)
8670           # Sun C 5.9
8671           lt_prog_compiler_pic='-KPIC'
8672           lt_prog_compiler_static='-Bstatic'
8673           lt_prog_compiler_wl='-Wl,'
8674           ;;
8675         esac
8676         ;;
8677       esac
8678       ;;
8679
8680     newsos6)
8681       lt_prog_compiler_pic='-KPIC'
8682       lt_prog_compiler_static='-Bstatic'
8683       ;;
8684
8685     *nto* | *qnx*)
8686       # QNX uses GNU C++, but need to define -shared option too, otherwise
8687       # it will coredump.
8688       lt_prog_compiler_pic='-fPIC -shared'
8689       ;;
8690
8691     osf3* | osf4* | osf5*)
8692       lt_prog_compiler_wl='-Wl,'
8693       # All OSF/1 code is PIC.
8694       lt_prog_compiler_static='-non_shared'
8695       ;;
8696
8697     rdos*)
8698       lt_prog_compiler_static='-non_shared'
8699       ;;
8700
8701     solaris*)
8702       lt_prog_compiler_pic='-KPIC'
8703       lt_prog_compiler_static='-Bstatic'
8704       case $cc_basename in
8705       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8706         lt_prog_compiler_wl='-Qoption ld ';;
8707       *)
8708         lt_prog_compiler_wl='-Wl,';;
8709       esac
8710       ;;
8711
8712     sunos4*)
8713       lt_prog_compiler_wl='-Qoption ld '
8714       lt_prog_compiler_pic='-PIC'
8715       lt_prog_compiler_static='-Bstatic'
8716       ;;
8717
8718     sysv4 | sysv4.2uw2* | sysv4.3*)
8719       lt_prog_compiler_wl='-Wl,'
8720       lt_prog_compiler_pic='-KPIC'
8721       lt_prog_compiler_static='-Bstatic'
8722       ;;
8723
8724     sysv4*MP*)
8725       if test -d /usr/nec ;then
8726         lt_prog_compiler_pic='-Kconform_pic'
8727         lt_prog_compiler_static='-Bstatic'
8728       fi
8729       ;;
8730
8731     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8732       lt_prog_compiler_wl='-Wl,'
8733       lt_prog_compiler_pic='-KPIC'
8734       lt_prog_compiler_static='-Bstatic'
8735       ;;
8736
8737     unicos*)
8738       lt_prog_compiler_wl='-Wl,'
8739       lt_prog_compiler_can_build_shared=no
8740       ;;
8741
8742     uts4*)
8743       lt_prog_compiler_pic='-pic'
8744       lt_prog_compiler_static='-Bstatic'
8745       ;;
8746
8747     *)
8748       lt_prog_compiler_can_build_shared=no
8749       ;;
8750     esac
8751   fi
8752
8753 case $host_os in
8754   # For platforms which do not support PIC, -DPIC is meaningless:
8755   *djgpp*)
8756     lt_prog_compiler_pic=
8757     ;;
8758   *)
8759     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8760     ;;
8761 esac
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8764 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8765 if ${lt_cv_prog_compiler_pic+:} false; then :
8766   $as_echo_n "(cached) " >&6
8767 else
8768   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8771 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8772 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8773
8774 #
8775 # Check to make sure the PIC flag actually works.
8776 #
8777 if test -n "$lt_prog_compiler_pic"; then
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8779 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8780 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8781   $as_echo_n "(cached) " >&6
8782 else
8783   lt_cv_prog_compiler_pic_works=no
8784    ac_outfile=conftest.$ac_objext
8785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8786    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8787    # Insert the option either (1) after the last *FLAGS variable, or
8788    # (2) before a word containing "conftest.", or (3) at the end.
8789    # Note that $ac_compile itself does not contain backslashes and begins
8790    # with a dollar sign (not a hyphen), so the echo should work correctly.
8791    # The option is referenced via a variable to avoid confusing sed.
8792    lt_compile=`echo "$ac_compile" | $SED \
8793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795    -e 's:$: $lt_compiler_flag:'`
8796    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8797    (eval "$lt_compile" 2>conftest.err)
8798    ac_status=$?
8799    cat conftest.err >&5
8800    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801    if (exit $ac_status) && test -s "$ac_outfile"; then
8802      # The compiler can only warn and ignore the option if not recognized
8803      # So say no if there are warnings other than the usual output.
8804      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8805      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8806      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8807        lt_cv_prog_compiler_pic_works=yes
8808      fi
8809    fi
8810    $RM conftest*
8811
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8814 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8815
8816 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8817     case $lt_prog_compiler_pic in
8818      "" | " "*) ;;
8819      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8820      esac
8821 else
8822     lt_prog_compiler_pic=
8823      lt_prog_compiler_can_build_shared=no
8824 fi
8825
8826 fi
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838 #
8839 # Check to make sure the static flag actually works.
8840 #
8841 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8843 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8844 if ${lt_cv_prog_compiler_static_works+:} false; then :
8845   $as_echo_n "(cached) " >&6
8846 else
8847   lt_cv_prog_compiler_static_works=no
8848    save_LDFLAGS="$LDFLAGS"
8849    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8850    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8851    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8852      # The linker can only warn and ignore the option if not recognized
8853      # So say no if there are warnings
8854      if test -s conftest.err; then
8855        # Append any errors to the config.log.
8856        cat conftest.err 1>&5
8857        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8858        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8859        if diff conftest.exp conftest.er2 >/dev/null; then
8860          lt_cv_prog_compiler_static_works=yes
8861        fi
8862      else
8863        lt_cv_prog_compiler_static_works=yes
8864      fi
8865    fi
8866    $RM -r conftest*
8867    LDFLAGS="$save_LDFLAGS"
8868
8869 fi
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8871 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8872
8873 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8874     :
8875 else
8876     lt_prog_compiler_static=
8877 fi
8878
8879
8880
8881
8882
8883
8884
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8886 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8887 if ${lt_cv_prog_compiler_c_o+:} false; then :
8888   $as_echo_n "(cached) " >&6
8889 else
8890   lt_cv_prog_compiler_c_o=no
8891    $RM -r conftest 2>/dev/null
8892    mkdir conftest
8893    cd conftest
8894    mkdir out
8895    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8896
8897    lt_compiler_flag="-o out/conftest2.$ac_objext"
8898    # Insert the option either (1) after the last *FLAGS variable, or
8899    # (2) before a word containing "conftest.", or (3) at the end.
8900    # Note that $ac_compile itself does not contain backslashes and begins
8901    # with a dollar sign (not a hyphen), so the echo should work correctly.
8902    lt_compile=`echo "$ac_compile" | $SED \
8903    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8904    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8905    -e 's:$: $lt_compiler_flag:'`
8906    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8907    (eval "$lt_compile" 2>out/conftest.err)
8908    ac_status=$?
8909    cat out/conftest.err >&5
8910    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8912    then
8913      # The compiler can only warn and ignore the option if not recognized
8914      # So say no if there are warnings
8915      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8916      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8917      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8918        lt_cv_prog_compiler_c_o=yes
8919      fi
8920    fi
8921    chmod u+w . 2>&5
8922    $RM conftest*
8923    # SGI C++ compiler will create directory out/ii_files/ for
8924    # template instantiation
8925    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8926    $RM out/* && rmdir out
8927    cd ..
8928    $RM -r conftest
8929    $RM conftest*
8930
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8933 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8934
8935
8936
8937
8938
8939
8940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8942 if ${lt_cv_prog_compiler_c_o+:} false; then :
8943   $as_echo_n "(cached) " >&6
8944 else
8945   lt_cv_prog_compiler_c_o=no
8946    $RM -r conftest 2>/dev/null
8947    mkdir conftest
8948    cd conftest
8949    mkdir out
8950    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951
8952    lt_compiler_flag="-o out/conftest2.$ac_objext"
8953    # Insert the option either (1) after the last *FLAGS variable, or
8954    # (2) before a word containing "conftest.", or (3) at the end.
8955    # Note that $ac_compile itself does not contain backslashes and begins
8956    # with a dollar sign (not a hyphen), so the echo should work correctly.
8957    lt_compile=`echo "$ac_compile" | $SED \
8958    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960    -e 's:$: $lt_compiler_flag:'`
8961    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962    (eval "$lt_compile" 2>out/conftest.err)
8963    ac_status=$?
8964    cat out/conftest.err >&5
8965    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8967    then
8968      # The compiler can only warn and ignore the option if not recognized
8969      # So say no if there are warnings
8970      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8971      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8972      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8973        lt_cv_prog_compiler_c_o=yes
8974      fi
8975    fi
8976    chmod u+w . 2>&5
8977    $RM conftest*
8978    # SGI C++ compiler will create directory out/ii_files/ for
8979    # template instantiation
8980    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8981    $RM out/* && rmdir out
8982    cd ..
8983    $RM -r conftest
8984    $RM conftest*
8985
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8988 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8989
8990
8991
8992
8993 hard_links="nottested"
8994 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8995   # do not overwrite the value of need_locks provided by the user
8996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8997 $as_echo_n "checking if we can lock with hard links... " >&6; }
8998   hard_links=yes
8999   $RM conftest*
9000   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9001   touch conftest.a
9002   ln conftest.a conftest.b 2>&5 || hard_links=no
9003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9005 $as_echo "$hard_links" >&6; }
9006   if test "$hard_links" = no; then
9007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9008 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9009     need_locks=warn
9010   fi
9011 else
9012   need_locks=no
9013 fi
9014
9015
9016
9017
9018
9019
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9022
9023   runpath_var=
9024   allow_undefined_flag=
9025   always_export_symbols=no
9026   archive_cmds=
9027   archive_expsym_cmds=
9028   compiler_needs_object=no
9029   enable_shared_with_static_runtimes=no
9030   export_dynamic_flag_spec=
9031   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9032   hardcode_automatic=no
9033   hardcode_direct=no
9034   hardcode_direct_absolute=no
9035   hardcode_libdir_flag_spec=
9036   hardcode_libdir_flag_spec_ld=
9037   hardcode_libdir_separator=
9038   hardcode_minus_L=no
9039   hardcode_shlibpath_var=unsupported
9040   inherit_rpath=no
9041   link_all_deplibs=unknown
9042   module_cmds=
9043   module_expsym_cmds=
9044   old_archive_from_new_cmds=
9045   old_archive_from_expsyms_cmds=
9046   thread_safe_flag_spec=
9047   whole_archive_flag_spec=
9048   # include_expsyms should be a list of space-separated symbols to be *always*
9049   # included in the symbol list
9050   include_expsyms=
9051   # exclude_expsyms can be an extended regexp of symbols to exclude
9052   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9053   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9054   # as well as any symbol that contains `d'.
9055   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9056   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9057   # platforms (ab)use it in PIC code, but their linkers get confused if
9058   # the symbol is explicitly referenced.  Since portable code cannot
9059   # rely on this symbol name, it's probably fine to never include it in
9060   # preloaded symbol tables.
9061   # Exclude shared library initialization/finalization symbols.
9062   extract_expsyms_cmds=
9063
9064   case $host_os in
9065   cygwin* | mingw* | pw32* | cegcc*)
9066     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9067     # When not using gcc, we currently assume that we are using
9068     # Microsoft Visual C++.
9069     if test "$GCC" != yes; then
9070       with_gnu_ld=no
9071     fi
9072     ;;
9073   interix*)
9074     # we just hope/assume this is gcc and not c89 (= MSVC++)
9075     with_gnu_ld=yes
9076     ;;
9077   openbsd*)
9078     with_gnu_ld=no
9079     ;;
9080   esac
9081
9082   ld_shlibs=yes
9083
9084   # On some targets, GNU ld is compatible enough with the native linker
9085   # that we're better off using the native interface for both.
9086   lt_use_gnu_ld_interface=no
9087   if test "$with_gnu_ld" = yes; then
9088     case $host_os in
9089       aix*)
9090         # The AIX port of GNU ld has always aspired to compatibility
9091         # with the native linker.  However, as the warning in the GNU ld
9092         # block says, versions before 2.19.5* couldn't really create working
9093         # shared libraries, regardless of the interface used.
9094         case `$LD -v 2>&1` in
9095           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9096           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9097           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9098           *)
9099             lt_use_gnu_ld_interface=yes
9100             ;;
9101         esac
9102         ;;
9103       *)
9104         lt_use_gnu_ld_interface=yes
9105         ;;
9106     esac
9107   fi
9108
9109   if test "$lt_use_gnu_ld_interface" = yes; then
9110     # If archive_cmds runs LD, not CC, wlarc should be empty
9111     wlarc='${wl}'
9112
9113     # Set some defaults for GNU ld with shared library support. These
9114     # are reset later if shared libraries are not supported. Putting them
9115     # here allows them to be overridden if necessary.
9116     runpath_var=LD_RUN_PATH
9117     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9118     export_dynamic_flag_spec='${wl}--export-dynamic'
9119     # ancient GNU ld didn't support --whole-archive et. al.
9120     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9121       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9122     else
9123       whole_archive_flag_spec=
9124     fi
9125     supports_anon_versioning=no
9126     case `$LD -v 2>&1` in
9127       *GNU\ gold*) supports_anon_versioning=yes ;;
9128       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9129       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9130       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9131       *\ 2.11.*) ;; # other 2.11 versions
9132       *) supports_anon_versioning=yes ;;
9133     esac
9134
9135     # See if GNU ld supports shared libraries.
9136     case $host_os in
9137     aix[3-9]*)
9138       # On AIX/PPC, the GNU linker is very broken
9139       if test "$host_cpu" != ia64; then
9140         ld_shlibs=no
9141         cat <<_LT_EOF 1>&2
9142
9143 *** Warning: the GNU linker, at least up to release 2.19, is reported
9144 *** to be unable to reliably create shared libraries on AIX.
9145 *** Therefore, libtool is disabling shared libraries support.  If you
9146 *** really care for shared libraries, you may want to install binutils
9147 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9148 *** You will then need to restart the configuration process.
9149
9150 _LT_EOF
9151       fi
9152       ;;
9153
9154     amigaos*)
9155       case $host_cpu in
9156       powerpc)
9157             # see comment about AmigaOS4 .so support
9158             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159             archive_expsym_cmds=''
9160         ;;
9161       m68k)
9162             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)'
9163             hardcode_libdir_flag_spec='-L$libdir'
9164             hardcode_minus_L=yes
9165         ;;
9166       esac
9167       ;;
9168
9169     beos*)
9170       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9171         allow_undefined_flag=unsupported
9172         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9173         # support --undefined.  This deserves some investigation.  FIXME
9174         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175       else
9176         ld_shlibs=no
9177       fi
9178       ;;
9179
9180     cygwin* | mingw* | pw32* | cegcc*)
9181       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9182       # as there is no search path for DLLs.
9183       hardcode_libdir_flag_spec='-L$libdir'
9184       export_dynamic_flag_spec='${wl}--export-all-symbols'
9185       allow_undefined_flag=unsupported
9186       always_export_symbols=no
9187       enable_shared_with_static_runtimes=yes
9188       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'
9189       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9190
9191       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9192         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9193         # If the export-symbols file already is a .def file (1st line
9194         # is EXPORTS), use it as is; otherwise, prepend...
9195         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9196           cp $export_symbols $output_objdir/$soname.def;
9197         else
9198           echo EXPORTS > $output_objdir/$soname.def;
9199           cat $export_symbols >> $output_objdir/$soname.def;
9200         fi~
9201         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9202       else
9203         ld_shlibs=no
9204       fi
9205       ;;
9206
9207     haiku*)
9208       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209       link_all_deplibs=yes
9210       ;;
9211
9212     interix[3-9]*)
9213       hardcode_direct=no
9214       hardcode_shlibpath_var=no
9215       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9216       export_dynamic_flag_spec='${wl}-E'
9217       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9218       # Instead, shared libraries are loaded at an image base (0x10000000 by
9219       # default) and relocated if they conflict, which is a slow very memory
9220       # consuming and fragmenting process.  To avoid this, we pick a random,
9221       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9222       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9223       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9224       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'
9225       ;;
9226
9227     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9228       tmp_diet=no
9229       if test "$host_os" = linux-dietlibc; then
9230         case $cc_basename in
9231           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9232         esac
9233       fi
9234       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9235          && test "$tmp_diet" = no
9236       then
9237         tmp_addflag=' $pic_flag'
9238         tmp_sharedflag='-shared'
9239         case $cc_basename,$host_cpu in
9240         pgcc*)                          # Portland Group C compiler
9241           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'
9242           tmp_addflag=' $pic_flag'
9243           ;;
9244         pgf77* | pgf90* | pgf95* | pgfortran*)
9245                                         # Portland Group f77 and f90 compilers
9246           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'
9247           tmp_addflag=' $pic_flag -Mnomain' ;;
9248         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9249           tmp_addflag=' -i_dynamic' ;;
9250         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9251           tmp_addflag=' -i_dynamic -nofor_main' ;;
9252         ifc* | ifort*)                  # Intel Fortran compiler
9253           tmp_addflag=' -nofor_main' ;;
9254         lf95*)                          # Lahey Fortran 8.1
9255           whole_archive_flag_spec=
9256           tmp_sharedflag='--shared' ;;
9257         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9258           tmp_sharedflag='-qmkshrobj'
9259           tmp_addflag= ;;
9260         nvcc*)  # Cuda Compiler Driver 2.2
9261           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'
9262           compiler_needs_object=yes
9263           ;;
9264         esac
9265         case `$CC -V 2>&1 | sed 5q` in
9266         *Sun\ C*)                       # Sun C 5.9
9267           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'
9268           compiler_needs_object=yes
9269           tmp_sharedflag='-G' ;;
9270         *Sun\ F*)                       # Sun Fortran 8.3
9271           tmp_sharedflag='-G' ;;
9272         esac
9273         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274
9275         if test "x$supports_anon_versioning" = xyes; then
9276           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9277             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9278             echo "local: *; };" >> $output_objdir/$libname.ver~
9279             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9280         fi
9281
9282         case $cc_basename in
9283         xlf* | bgf* | bgxlf* | mpixlf*)
9284           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9285           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9286           hardcode_libdir_flag_spec=
9287           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9288           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9289           if test "x$supports_anon_versioning" = xyes; then
9290             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9291               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9292               echo "local: *; };" >> $output_objdir/$libname.ver~
9293               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9294           fi
9295           ;;
9296         esac
9297       else
9298         ld_shlibs=no
9299       fi
9300       ;;
9301
9302     netbsd*)
9303       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9304         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9305         wlarc=
9306       else
9307         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9309       fi
9310       ;;
9311
9312     solaris*)
9313       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9314         ld_shlibs=no
9315         cat <<_LT_EOF 1>&2
9316
9317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9318 *** create shared libraries on Solaris systems.  Therefore, libtool
9319 *** is disabling shared libraries support.  We urge you to upgrade GNU
9320 *** binutils to release 2.9.1 or newer.  Another option is to modify
9321 *** your PATH or compiler configuration so that the native linker is
9322 *** used, and then restart.
9323
9324 _LT_EOF
9325       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9326         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9328       else
9329         ld_shlibs=no
9330       fi
9331       ;;
9332
9333     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9334       case `$LD -v 2>&1` in
9335         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9336         ld_shlibs=no
9337         cat <<_LT_EOF 1>&2
9338
9339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9340 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9341 *** is disabling shared libraries support.  We urge you to upgrade GNU
9342 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9343 *** your PATH or compiler configuration so that the native linker is
9344 *** used, and then restart.
9345
9346 _LT_EOF
9347         ;;
9348         *)
9349           # For security reasons, it is highly recommended that you always
9350           # use absolute paths for naming shared libraries, and exclude the
9351           # DT_RUNPATH tag from executables and libraries.  But doing so
9352           # requires that you compile everything twice, which is a pain.
9353           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9357           else
9358             ld_shlibs=no
9359           fi
9360         ;;
9361       esac
9362       ;;
9363
9364     sunos4*)
9365       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9366       wlarc=
9367       hardcode_direct=yes
9368       hardcode_shlibpath_var=no
9369       ;;
9370
9371     *)
9372       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9375       else
9376         ld_shlibs=no
9377       fi
9378       ;;
9379     esac
9380
9381     if test "$ld_shlibs" = no; then
9382       runpath_var=
9383       hardcode_libdir_flag_spec=
9384       export_dynamic_flag_spec=
9385       whole_archive_flag_spec=
9386     fi
9387   else
9388     # PORTME fill in a description of your system's linker (not GNU ld)
9389     case $host_os in
9390     aix3*)
9391       allow_undefined_flag=unsupported
9392       always_export_symbols=yes
9393       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'
9394       # Note: this linker hardcodes the directories in LIBPATH if there
9395       # are no directories specified by -L.
9396       hardcode_minus_L=yes
9397       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9398         # Neither direct hardcoding nor static linking is supported with a
9399         # broken collect2.
9400         hardcode_direct=unsupported
9401       fi
9402       ;;
9403
9404     aix[4-9]*)
9405       if test "$host_cpu" = ia64; then
9406         # On IA64, the linker does run time linking by default, so we don't
9407         # have to do anything special.
9408         aix_use_runtimelinking=no
9409         exp_sym_flag='-Bexport'
9410         no_entry_flag=""
9411       else
9412         # If we're using GNU nm, then we don't want the "-C" option.
9413         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9414         # Also, AIX nm treats weak defined symbols like other global
9415         # defined symbols, whereas GNU nm marks them as "W".
9416         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9417           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'
9418         else
9419           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'
9420         fi
9421         aix_use_runtimelinking=no
9422
9423         # Test if we are trying to use run time linking or normal
9424         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9425         # need to do runtime linking.
9426         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9427           for ld_flag in $LDFLAGS; do
9428           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9429             aix_use_runtimelinking=yes
9430             break
9431           fi
9432           done
9433           ;;
9434         esac
9435
9436         exp_sym_flag='-bexport'
9437         no_entry_flag='-bnoentry'
9438       fi
9439
9440       # When large executables or shared objects are built, AIX ld can
9441       # have problems creating the table of contents.  If linking a library
9442       # or program results in "error TOC overflow" add -mminimal-toc to
9443       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9444       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9445
9446       archive_cmds=''
9447       hardcode_direct=yes
9448       hardcode_direct_absolute=yes
9449       hardcode_libdir_separator=':'
9450       link_all_deplibs=yes
9451       file_list_spec='${wl}-f,'
9452
9453       if test "$GCC" = yes; then
9454         case $host_os in aix4.[012]|aix4.[012].*)
9455         # We only want to do this on AIX 4.2 and lower, the check
9456         # below for broken collect2 doesn't work under 4.3+
9457           collect2name=`${CC} -print-prog-name=collect2`
9458           if test -f "$collect2name" &&
9459            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9460           then
9461           # We have reworked collect2
9462           :
9463           else
9464           # We have old collect2
9465           hardcode_direct=unsupported
9466           # It fails to find uninstalled libraries when the uninstalled
9467           # path is not listed in the libpath.  Setting hardcode_minus_L
9468           # to unsupported forces relinking
9469           hardcode_minus_L=yes
9470           hardcode_libdir_flag_spec='-L$libdir'
9471           hardcode_libdir_separator=
9472           fi
9473           ;;
9474         esac
9475         shared_flag='-shared'
9476         if test "$aix_use_runtimelinking" = yes; then
9477           shared_flag="$shared_flag "'${wl}-G'
9478         fi
9479       else
9480         # not using gcc
9481         if test "$host_cpu" = ia64; then
9482         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9483         # chokes on -Wl,-G. The following line is correct:
9484           shared_flag='-G'
9485         else
9486           if test "$aix_use_runtimelinking" = yes; then
9487             shared_flag='${wl}-G'
9488           else
9489             shared_flag='${wl}-bM:SRE'
9490           fi
9491         fi
9492       fi
9493
9494       export_dynamic_flag_spec='${wl}-bexpall'
9495       # It seems that -bexpall does not export symbols beginning with
9496       # underscore (_), so it is better to generate a list of symbols to export.
9497       always_export_symbols=yes
9498       if test "$aix_use_runtimelinking" = yes; then
9499         # Warning - without using the other runtime loading flags (-brtl),
9500         # -berok will link without error, but may produce a broken library.
9501         allow_undefined_flag='-berok'
9502         # Determine the default libpath from the value encoded in an
9503         # empty executable.
9504         if test "${lt_cv_aix_libpath+set}" = set; then
9505   aix_libpath=$lt_cv_aix_libpath
9506 else
9507   if ${lt_cv_aix_libpath_+:} false; then :
9508   $as_echo_n "(cached) " >&6
9509 else
9510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h.  */
9512
9513 int
9514 main ()
9515 {
9516
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 if ac_fn_c_try_link "$LINENO"; then :
9522
9523   lt_aix_libpath_sed='
9524       /Import File Strings/,/^$/ {
9525           /^0/ {
9526               s/^0  *\([^ ]*\) *$/\1/
9527               p
9528           }
9529       }'
9530   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9531   # Check for a 64-bit object if we didn't find anything.
9532   if test -z "$lt_cv_aix_libpath_"; then
9533     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9534   fi
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537     conftest$ac_exeext conftest.$ac_ext
9538   if test -z "$lt_cv_aix_libpath_"; then
9539     lt_cv_aix_libpath_="/usr/lib:/lib"
9540   fi
9541
9542 fi
9543
9544   aix_libpath=$lt_cv_aix_libpath_
9545 fi
9546
9547         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9548         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"
9549       else
9550         if test "$host_cpu" = ia64; then
9551           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9552           allow_undefined_flag="-z nodefs"
9553           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"
9554         else
9555          # Determine the default libpath from the value encoded in an
9556          # empty executable.
9557          if test "${lt_cv_aix_libpath+set}" = set; then
9558   aix_libpath=$lt_cv_aix_libpath
9559 else
9560   if ${lt_cv_aix_libpath_+:} false; then :
9561   $as_echo_n "(cached) " >&6
9562 else
9563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h.  */
9565
9566 int
9567 main ()
9568 {
9569
9570   ;
9571   return 0;
9572 }
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"; then :
9575
9576   lt_aix_libpath_sed='
9577       /Import File Strings/,/^$/ {
9578           /^0/ {
9579               s/^0  *\([^ ]*\) *$/\1/
9580               p
9581           }
9582       }'
9583   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584   # Check for a 64-bit object if we didn't find anything.
9585   if test -z "$lt_cv_aix_libpath_"; then
9586     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9587   fi
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext \
9590     conftest$ac_exeext conftest.$ac_ext
9591   if test -z "$lt_cv_aix_libpath_"; then
9592     lt_cv_aix_libpath_="/usr/lib:/lib"
9593   fi
9594
9595 fi
9596
9597   aix_libpath=$lt_cv_aix_libpath_
9598 fi
9599
9600          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9601           # Warning - without using the other run time loading flags,
9602           # -berok will link without error, but may produce a broken library.
9603           no_undefined_flag=' ${wl}-bernotok'
9604           allow_undefined_flag=' ${wl}-berok'
9605           if test "$with_gnu_ld" = yes; then
9606             # We only use this code for GNU lds that support --whole-archive.
9607             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9608           else
9609             # Exported symbols can be pulled into shared objects from archives
9610             whole_archive_flag_spec='$convenience'
9611           fi
9612           archive_cmds_need_lc=yes
9613           # This is similar to how AIX traditionally builds its shared libraries.
9614           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'
9615         fi
9616       fi
9617       ;;
9618
9619     amigaos*)
9620       case $host_cpu in
9621       powerpc)
9622             # see comment about AmigaOS4 .so support
9623             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624             archive_expsym_cmds=''
9625         ;;
9626       m68k)
9627             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)'
9628             hardcode_libdir_flag_spec='-L$libdir'
9629             hardcode_minus_L=yes
9630         ;;
9631       esac
9632       ;;
9633
9634     bsdi[45]*)
9635       export_dynamic_flag_spec=-rdynamic
9636       ;;
9637
9638     cygwin* | mingw* | pw32* | cegcc*)
9639       # When not using gcc, we currently assume that we are using
9640       # Microsoft Visual C++.
9641       # hardcode_libdir_flag_spec is actually meaningless, as there is
9642       # no search path for DLLs.
9643       case $cc_basename in
9644       cl*)
9645         # Native MSVC
9646         hardcode_libdir_flag_spec=' '
9647         allow_undefined_flag=unsupported
9648         always_export_symbols=yes
9649         file_list_spec='@'
9650         # Tell ltmain to make .lib files, not .a files.
9651         libext=lib
9652         # Tell ltmain to make .dll files, not .so files.
9653         shrext_cmds=".dll"
9654         # FIXME: Setting linknames here is a bad hack.
9655         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9656         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9657             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9658           else
9659             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9660           fi~
9661           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9662           linknames='
9663         # The linker will not automatically build a static lib if we build a DLL.
9664         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9665         enable_shared_with_static_runtimes=yes
9666         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9667         # Don't use ranlib
9668         old_postinstall_cmds='chmod 644 $oldlib'
9669         postlink_cmds='lt_outputfile="@OUTPUT@"~
9670           lt_tool_outputfile="@TOOL_OUTPUT@"~
9671           case $lt_outputfile in
9672             *.exe|*.EXE) ;;
9673             *)
9674               lt_outputfile="$lt_outputfile.exe"
9675               lt_tool_outputfile="$lt_tool_outputfile.exe"
9676               ;;
9677           esac~
9678           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9679             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9680             $RM "$lt_outputfile.manifest";
9681           fi'
9682         ;;
9683       *)
9684         # Assume MSVC wrapper
9685         hardcode_libdir_flag_spec=' '
9686         allow_undefined_flag=unsupported
9687         # Tell ltmain to make .lib files, not .a files.
9688         libext=lib
9689         # Tell ltmain to make .dll files, not .so files.
9690         shrext_cmds=".dll"
9691         # FIXME: Setting linknames here is a bad hack.
9692         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9693         # The linker will automatically build a .lib file if we build a DLL.
9694         old_archive_from_new_cmds='true'
9695         # FIXME: Should let the user specify the lib program.
9696         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9697         enable_shared_with_static_runtimes=yes
9698         ;;
9699       esac
9700       ;;
9701
9702     darwin* | rhapsody*)
9703
9704
9705   archive_cmds_need_lc=no
9706   hardcode_direct=no
9707   hardcode_automatic=yes
9708   hardcode_shlibpath_var=unsupported
9709   if test "$lt_cv_ld_force_load" = "yes"; then
9710     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\"`'
9711   else
9712     whole_archive_flag_spec=''
9713   fi
9714   link_all_deplibs=yes
9715   allow_undefined_flag="$_lt_dar_allow_undefined"
9716   case $cc_basename in
9717      ifort*) _lt_dar_can_shared=yes ;;
9718      *) _lt_dar_can_shared=$GCC ;;
9719   esac
9720   if test "$_lt_dar_can_shared" = "yes"; then
9721     output_verbose_link_cmd=func_echo_all
9722     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9723     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9724     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}"
9725     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}"
9726
9727   else
9728   ld_shlibs=no
9729   fi
9730
9731       ;;
9732
9733     dgux*)
9734       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735       hardcode_libdir_flag_spec='-L$libdir'
9736       hardcode_shlibpath_var=no
9737       ;;
9738
9739     freebsd1*)
9740       ld_shlibs=no
9741       ;;
9742
9743     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9744     # support.  Future versions do this automatically, but an explicit c++rt0.o
9745     # does not break anything, and helps significantly (at the cost of a little
9746     # extra space).
9747     freebsd2.2*)
9748       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9749       hardcode_libdir_flag_spec='-R$libdir'
9750       hardcode_direct=yes
9751       hardcode_shlibpath_var=no
9752       ;;
9753
9754     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9755     freebsd2*)
9756       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9757       hardcode_direct=yes
9758       hardcode_minus_L=yes
9759       hardcode_shlibpath_var=no
9760       ;;
9761
9762     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9763     freebsd* | dragonfly*)
9764       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9765       hardcode_libdir_flag_spec='-R$libdir'
9766       hardcode_direct=yes
9767       hardcode_shlibpath_var=no
9768       ;;
9769
9770     hpux9*)
9771       if test "$GCC" = yes; then
9772         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'
9773       else
9774         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'
9775       fi
9776       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9777       hardcode_libdir_separator=:
9778       hardcode_direct=yes
9779
9780       # hardcode_minus_L: Not really in the search PATH,
9781       # but as the default location of the library.
9782       hardcode_minus_L=yes
9783       export_dynamic_flag_spec='${wl}-E'
9784       ;;
9785
9786     hpux10*)
9787       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9788         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9789       else
9790         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9791       fi
9792       if test "$with_gnu_ld" = no; then
9793         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9794         hardcode_libdir_flag_spec_ld='+b $libdir'
9795         hardcode_libdir_separator=:
9796         hardcode_direct=yes
9797         hardcode_direct_absolute=yes
9798         export_dynamic_flag_spec='${wl}-E'
9799         # hardcode_minus_L: Not really in the search PATH,
9800         # but as the default location of the library.
9801         hardcode_minus_L=yes
9802       fi
9803       ;;
9804
9805     hpux11*)
9806       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9807         case $host_cpu in
9808         hppa*64*)
9809           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9810           ;;
9811         ia64*)
9812           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9813           ;;
9814         *)
9815           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816           ;;
9817         esac
9818       else
9819         case $host_cpu in
9820         hppa*64*)
9821           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9822           ;;
9823         ia64*)
9824           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9825           ;;
9826         *)
9827
9828           # Older versions of the 11.00 compiler do not understand -b yet
9829           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9830           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9831 $as_echo_n "checking if $CC understands -b... " >&6; }
9832 if ${lt_cv_prog_compiler__b+:} false; then :
9833   $as_echo_n "(cached) " >&6
9834 else
9835   lt_cv_prog_compiler__b=no
9836    save_LDFLAGS="$LDFLAGS"
9837    LDFLAGS="$LDFLAGS -b"
9838    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9839    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9840      # The linker can only warn and ignore the option if not recognized
9841      # So say no if there are warnings
9842      if test -s conftest.err; then
9843        # Append any errors to the config.log.
9844        cat conftest.err 1>&5
9845        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9846        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9847        if diff conftest.exp conftest.er2 >/dev/null; then
9848          lt_cv_prog_compiler__b=yes
9849        fi
9850      else
9851        lt_cv_prog_compiler__b=yes
9852      fi
9853    fi
9854    $RM -r conftest*
9855    LDFLAGS="$save_LDFLAGS"
9856
9857 fi
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9859 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9860
9861 if test x"$lt_cv_prog_compiler__b" = xyes; then
9862     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9863 else
9864     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9865 fi
9866
9867           ;;
9868         esac
9869       fi
9870       if test "$with_gnu_ld" = no; then
9871         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9872         hardcode_libdir_separator=:
9873
9874         case $host_cpu in
9875         hppa*64*|ia64*)
9876           hardcode_direct=no
9877           hardcode_shlibpath_var=no
9878           ;;
9879         *)
9880           hardcode_direct=yes
9881           hardcode_direct_absolute=yes
9882           export_dynamic_flag_spec='${wl}-E'
9883
9884           # hardcode_minus_L: Not really in the search PATH,
9885           # but as the default location of the library.
9886           hardcode_minus_L=yes
9887           ;;
9888         esac
9889       fi
9890       ;;
9891
9892     irix5* | irix6* | nonstopux*)
9893       if test "$GCC" = yes; then
9894         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'
9895         # Try to use the -exported_symbol ld option, if it does not
9896         # work, assume that -exports_file does not work either and
9897         # implicitly export all symbols.
9898         # This should be the same for all languages, so no per-tag cache variable.
9899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9900 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9901 if ${lt_cv_irix_exported_symbol+:} false; then :
9902   $as_echo_n "(cached) " >&6
9903 else
9904   save_LDFLAGS="$LDFLAGS"
9905            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9906            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h.  */
9908 int foo (void) { return 0; }
9909 _ACEOF
9910 if ac_fn_c_try_link "$LINENO"; then :
9911   lt_cv_irix_exported_symbol=yes
9912 else
9913   lt_cv_irix_exported_symbol=no
9914 fi
9915 rm -f core conftest.err conftest.$ac_objext \
9916     conftest$ac_exeext conftest.$ac_ext
9917            LDFLAGS="$save_LDFLAGS"
9918 fi
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9920 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9921         if test "$lt_cv_irix_exported_symbol" = yes; then
9922           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'
9923         fi
9924       else
9925         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'
9926         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'
9927       fi
9928       archive_cmds_need_lc='no'
9929       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930       hardcode_libdir_separator=:
9931       inherit_rpath=yes
9932       link_all_deplibs=yes
9933       ;;
9934
9935     netbsd*)
9936       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9937         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9938       else
9939         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9940       fi
9941       hardcode_libdir_flag_spec='-R$libdir'
9942       hardcode_direct=yes
9943       hardcode_shlibpath_var=no
9944       ;;
9945
9946     newsos6)
9947       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948       hardcode_direct=yes
9949       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950       hardcode_libdir_separator=:
9951       hardcode_shlibpath_var=no
9952       ;;
9953
9954     *nto* | *qnx*)
9955       ;;
9956
9957     openbsd*)
9958       if test -f /usr/libexec/ld.so; then
9959         hardcode_direct=yes
9960         hardcode_shlibpath_var=no
9961         hardcode_direct_absolute=yes
9962         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9963           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9964           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9965           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9966           export_dynamic_flag_spec='${wl}-E'
9967         else
9968           case $host_os in
9969            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9970              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9971              hardcode_libdir_flag_spec='-R$libdir'
9972              ;;
9973            *)
9974              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9975              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9976              ;;
9977           esac
9978         fi
9979       else
9980         ld_shlibs=no
9981       fi
9982       ;;
9983
9984     os2*)
9985       hardcode_libdir_flag_spec='-L$libdir'
9986       hardcode_minus_L=yes
9987       allow_undefined_flag=unsupported
9988       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'
9989       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9990       ;;
9991
9992     osf3*)
9993       if test "$GCC" = yes; then
9994         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9995         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'
9996       else
9997         allow_undefined_flag=' -expect_unresolved \*'
9998         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'
9999       fi
10000       archive_cmds_need_lc='no'
10001       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10002       hardcode_libdir_separator=:
10003       ;;
10004
10005     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10006       if test "$GCC" = yes; then
10007         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10008         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'
10009         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010       else
10011         allow_undefined_flag=' -expect_unresolved \*'
10012         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'
10013         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~
10014         $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'
10015
10016         # Both c and cxx compiler support -rpath directly
10017         hardcode_libdir_flag_spec='-rpath $libdir'
10018       fi
10019       archive_cmds_need_lc='no'
10020       hardcode_libdir_separator=:
10021       ;;
10022
10023     solaris*)
10024       no_undefined_flag=' -z defs'
10025       if test "$GCC" = yes; then
10026         wlarc='${wl}'
10027         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10029           $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'
10030       else
10031         case `$CC -V 2>&1` in
10032         *"Compilers 5.0"*)
10033           wlarc=''
10034           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10036           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10037           ;;
10038         *)
10039           wlarc='${wl}'
10040           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10041           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10042           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10043           ;;
10044         esac
10045       fi
10046       hardcode_libdir_flag_spec='-R$libdir'
10047       hardcode_shlibpath_var=no
10048       case $host_os in
10049       solaris2.[0-5] | solaris2.[0-5].*) ;;
10050       *)
10051         # The compiler driver will combine and reorder linker options,
10052         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10053         # but is careful enough not to reorder.
10054         # Supported since Solaris 2.6 (maybe 2.5.1?)
10055         if test "$GCC" = yes; then
10056           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10057         else
10058           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10059         fi
10060         ;;
10061       esac
10062       link_all_deplibs=yes
10063       ;;
10064
10065     sunos4*)
10066       if test "x$host_vendor" = xsequent; then
10067         # Use $CC to link under sequent, because it throws in some extra .o
10068         # files that make .init and .fini sections work.
10069         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10070       else
10071         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10072       fi
10073       hardcode_libdir_flag_spec='-L$libdir'
10074       hardcode_direct=yes
10075       hardcode_minus_L=yes
10076       hardcode_shlibpath_var=no
10077       ;;
10078
10079     sysv4)
10080       case $host_vendor in
10081         sni)
10082           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083           hardcode_direct=yes # is this really true???
10084         ;;
10085         siemens)
10086           ## LD is ld it makes a PLAMLIB
10087           ## CC just makes a GrossModule.
10088           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10089           reload_cmds='$CC -r -o $output$reload_objs'
10090           hardcode_direct=no
10091         ;;
10092         motorola)
10093           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10095         ;;
10096       esac
10097       runpath_var='LD_RUN_PATH'
10098       hardcode_shlibpath_var=no
10099       ;;
10100
10101     sysv4.3*)
10102       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103       hardcode_shlibpath_var=no
10104       export_dynamic_flag_spec='-Bexport'
10105       ;;
10106
10107     sysv4*MP*)
10108       if test -d /usr/nec; then
10109         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10110         hardcode_shlibpath_var=no
10111         runpath_var=LD_RUN_PATH
10112         hardcode_runpath_var=yes
10113         ld_shlibs=yes
10114       fi
10115       ;;
10116
10117     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10118       no_undefined_flag='${wl}-z,text'
10119       archive_cmds_need_lc=no
10120       hardcode_shlibpath_var=no
10121       runpath_var='LD_RUN_PATH'
10122
10123       if test "$GCC" = yes; then
10124         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126       else
10127         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129       fi
10130       ;;
10131
10132     sysv5* | sco3.2v5* | sco5v6*)
10133       # Note: We can NOT use -z defs as we might desire, because we do not
10134       # link with -lc, and that would cause any symbols used from libc to
10135       # always be unresolved, which means just about no library would
10136       # ever link correctly.  If we're not using GNU ld we use -z text
10137       # though, which does catch some bad symbols but isn't as heavy-handed
10138       # as -z defs.
10139       no_undefined_flag='${wl}-z,text'
10140       allow_undefined_flag='${wl}-z,nodefs'
10141       archive_cmds_need_lc=no
10142       hardcode_shlibpath_var=no
10143       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10144       hardcode_libdir_separator=':'
10145       link_all_deplibs=yes
10146       export_dynamic_flag_spec='${wl}-Bexport'
10147       runpath_var='LD_RUN_PATH'
10148
10149       if test "$GCC" = yes; then
10150         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152       else
10153         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155       fi
10156       ;;
10157
10158     uts4*)
10159       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160       hardcode_libdir_flag_spec='-L$libdir'
10161       hardcode_shlibpath_var=no
10162       ;;
10163
10164     *)
10165       ld_shlibs=no
10166       ;;
10167     esac
10168
10169     if test x$host_vendor = xsni; then
10170       case $host in
10171       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10172         export_dynamic_flag_spec='${wl}-Blargedynsym'
10173         ;;
10174       esac
10175     fi
10176   fi
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10179 $as_echo "$ld_shlibs" >&6; }
10180 test "$ld_shlibs" = no && can_build_shared=no
10181
10182 with_gnu_ld=$with_gnu_ld
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198 #
10199 # Do we need to explicitly link libc?
10200 #
10201 case "x$archive_cmds_need_lc" in
10202 x|xyes)
10203   # Assume -lc should be added
10204   archive_cmds_need_lc=yes
10205
10206   if test "$enable_shared" = yes && test "$GCC" = yes; then
10207     case $archive_cmds in
10208     *'~'*)
10209       # FIXME: we may have to deal with multi-command sequences.
10210       ;;
10211     '$CC '*)
10212       # Test whether the compiler implicitly links with -lc since on some
10213       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10214       # to ld, don't add -lc before -lgcc.
10215       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10216 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10217 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10218   $as_echo_n "(cached) " >&6
10219 else
10220   $RM conftest*
10221         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10222
10223         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10224   (eval $ac_compile) 2>&5
10225   ac_status=$?
10226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10227   test $ac_status = 0; } 2>conftest.err; then
10228           soname=conftest
10229           lib=conftest
10230           libobjs=conftest.$ac_objext
10231           deplibs=
10232           wl=$lt_prog_compiler_wl
10233           pic_flag=$lt_prog_compiler_pic
10234           compiler_flags=-v
10235           linker_flags=-v
10236           verstring=
10237           output_objdir=.
10238           libname=conftest
10239           lt_save_allow_undefined_flag=$allow_undefined_flag
10240           allow_undefined_flag=
10241           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10242   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10243   ac_status=$?
10244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10245   test $ac_status = 0; }
10246           then
10247             lt_cv_archive_cmds_need_lc=no
10248           else
10249             lt_cv_archive_cmds_need_lc=yes
10250           fi
10251           allow_undefined_flag=$lt_save_allow_undefined_flag
10252         else
10253           cat conftest.err 1>&5
10254         fi
10255         $RM conftest*
10256
10257 fi
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10259 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10260       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10261       ;;
10262     esac
10263   fi
10264   ;;
10265 esac
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10424 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10425
10426 if test "$GCC" = yes; then
10427   case $host_os in
10428     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10429     *) lt_awk_arg="/^libraries:/" ;;
10430   esac
10431   case $host_os in
10432     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10433     *) lt_sed_strip_eq="s,=/,/,g" ;;
10434   esac
10435   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10436   case $lt_search_path_spec in
10437   *\;*)
10438     # if the path contains ";" then we assume it to be the separator
10439     # otherwise default to the standard path separator (i.e. ":") - it is
10440     # assumed that no part of a normal pathname contains ";" but that should
10441     # okay in the real world where ";" in dirpaths is itself problematic.
10442     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10443     ;;
10444   *)
10445     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10446     ;;
10447   esac
10448   # Ok, now we have the path, separated by spaces, we can step through it
10449   # and add multilib dir if necessary.
10450   lt_tmp_lt_search_path_spec=
10451   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10452   for lt_sys_path in $lt_search_path_spec; do
10453     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10454       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10455     else
10456       test -d "$lt_sys_path" && \
10457         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10458     fi
10459   done
10460   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10461 BEGIN {RS=" "; FS="/|\n";} {
10462   lt_foo="";
10463   lt_count=0;
10464   for (lt_i = NF; lt_i > 0; lt_i--) {
10465     if ($lt_i != "" && $lt_i != ".") {
10466       if ($lt_i == "..") {
10467         lt_count++;
10468       } else {
10469         if (lt_count == 0) {
10470           lt_foo="/" $lt_i lt_foo;
10471         } else {
10472           lt_count--;
10473         }
10474       }
10475     }
10476   }
10477   if (lt_foo != "") { lt_freq[lt_foo]++; }
10478   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10479 }'`
10480   # AWK program above erroneously prepends '/' to C:/dos/paths
10481   # for these hosts.
10482   case $host_os in
10483     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10484       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10485   esac
10486   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10487 else
10488   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10489 fi
10490 library_names_spec=
10491 libname_spec='lib$name'
10492 soname_spec=
10493 shrext_cmds=".so"
10494 postinstall_cmds=
10495 postuninstall_cmds=
10496 finish_cmds=
10497 finish_eval=
10498 shlibpath_var=
10499 shlibpath_overrides_runpath=unknown
10500 version_type=none
10501 dynamic_linker="$host_os ld.so"
10502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10503 need_lib_prefix=unknown
10504 hardcode_into_libs=no
10505
10506 # when you set need_version to no, make sure it does not cause -set_version
10507 # flags to be left without arguments
10508 need_version=unknown
10509
10510 case $host_os in
10511 aix3*)
10512   version_type=linux
10513   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10514   shlibpath_var=LIBPATH
10515
10516   # AIX 3 has no versioning support, so we append a major version to the name.
10517   soname_spec='${libname}${release}${shared_ext}$major'
10518   ;;
10519
10520 aix[4-9]*)
10521   version_type=linux
10522   need_lib_prefix=no
10523   need_version=no
10524   hardcode_into_libs=yes
10525   if test "$host_cpu" = ia64; then
10526     # AIX 5 supports IA64
10527     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10528     shlibpath_var=LD_LIBRARY_PATH
10529   else
10530     # With GCC up to 2.95.x, collect2 would create an import file
10531     # for dependence libraries.  The import file would start with
10532     # the line `#! .'.  This would cause the generated library to
10533     # depend on `.', always an invalid library.  This was fixed in
10534     # development snapshots of GCC prior to 3.0.
10535     case $host_os in
10536       aix4 | aix4.[01] | aix4.[01].*)
10537       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10538            echo ' yes '
10539            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10540         :
10541       else
10542         can_build_shared=no
10543       fi
10544       ;;
10545     esac
10546     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10547     # soname into executable. Probably we can add versioning support to
10548     # collect2, so additional links can be useful in future.
10549     if test "$aix_use_runtimelinking" = yes; then
10550       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10551       # instead of lib<name>.a to let people know that these are not
10552       # typical AIX shared libraries.
10553       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554     else
10555       # We preserve .a as extension for shared libraries through AIX4.2
10556       # and later when we are not doing run time linking.
10557       library_names_spec='${libname}${release}.a $libname.a'
10558       soname_spec='${libname}${release}${shared_ext}$major'
10559     fi
10560     shlibpath_var=LIBPATH
10561   fi
10562   ;;
10563
10564 amigaos*)
10565   case $host_cpu in
10566   powerpc)
10567     # Since July 2007 AmigaOS4 officially supports .so libraries.
10568     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570     ;;
10571   m68k)
10572     library_names_spec='$libname.ixlibrary $libname.a'
10573     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10574     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'
10575     ;;
10576   esac
10577   ;;
10578
10579 beos*)
10580   library_names_spec='${libname}${shared_ext}'
10581   dynamic_linker="$host_os ld.so"
10582   shlibpath_var=LIBRARY_PATH
10583   ;;
10584
10585 bsdi[45]*)
10586   version_type=linux
10587   need_version=no
10588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589   soname_spec='${libname}${release}${shared_ext}$major'
10590   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10591   shlibpath_var=LD_LIBRARY_PATH
10592   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10593   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10594   # the default ld.so.conf also contains /usr/contrib/lib and
10595   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10596   # libtool to hard-code these into programs
10597   ;;
10598
10599 cygwin* | mingw* | pw32* | cegcc*)
10600   version_type=windows
10601   shrext_cmds=".dll"
10602   need_version=no
10603   need_lib_prefix=no
10604
10605   case $GCC,$cc_basename in
10606   yes,*)
10607     # gcc
10608     library_names_spec='$libname.dll.a'
10609     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10610     postinstall_cmds='base_file=`basename \${file}`~
10611       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10612       dldir=$destdir/`dirname \$dlpath`~
10613       test -d \$dldir || mkdir -p \$dldir~
10614       $install_prog $dir/$dlname \$dldir/$dlname~
10615       chmod a+x \$dldir/$dlname~
10616       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10617         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10618       fi'
10619     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10620       dlpath=$dir/\$dldll~
10621        $RM \$dlpath'
10622     shlibpath_overrides_runpath=yes
10623
10624     case $host_os in
10625     cygwin*)
10626       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10627       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10628
10629       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10630       ;;
10631     mingw* | cegcc*)
10632       # MinGW DLLs use traditional 'lib' prefix
10633       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10634       ;;
10635     pw32*)
10636       # pw32 DLLs use 'pw' prefix rather than 'lib'
10637       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10638       ;;
10639     esac
10640     dynamic_linker='Win32 ld.exe'
10641     ;;
10642
10643   *,cl*)
10644     # Native MSVC
10645     libname_spec='$name'
10646     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10647     library_names_spec='${libname}.dll.lib'
10648
10649     case $build_os in
10650     mingw*)
10651       sys_lib_search_path_spec=
10652       lt_save_ifs=$IFS
10653       IFS=';'
10654       for lt_path in $LIB
10655       do
10656         IFS=$lt_save_ifs
10657         # Let DOS variable expansion print the short 8.3 style file name.
10658         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10659         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10660       done
10661       IFS=$lt_save_ifs
10662       # Convert to MSYS style.
10663       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10664       ;;
10665     cygwin*)
10666       # Convert to unix form, then to dos form, then back to unix form
10667       # but this time dos style (no spaces!) so that the unix form looks
10668       # like /cygdrive/c/PROGRA~1:/cygdr...
10669       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10670       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10671       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10672       ;;
10673     *)
10674       sys_lib_search_path_spec="$LIB"
10675       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10676         # It is most probably a Windows format PATH.
10677         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10678       else
10679         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10680       fi
10681       # FIXME: find the short name or the path components, as spaces are
10682       # common. (e.g. "Program Files" -> "PROGRA~1")
10683       ;;
10684     esac
10685
10686     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10687     postinstall_cmds='base_file=`basename \${file}`~
10688       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10689       dldir=$destdir/`dirname \$dlpath`~
10690       test -d \$dldir || mkdir -p \$dldir~
10691       $install_prog $dir/$dlname \$dldir/$dlname'
10692     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10693       dlpath=$dir/\$dldll~
10694        $RM \$dlpath'
10695     shlibpath_overrides_runpath=yes
10696     dynamic_linker='Win32 link.exe'
10697     ;;
10698
10699   *)
10700     # Assume MSVC wrapper
10701     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10702     dynamic_linker='Win32 ld.exe'
10703     ;;
10704   esac
10705   # FIXME: first we should search . and the directory the executable is in
10706   shlibpath_var=PATH
10707   ;;
10708
10709 darwin* | rhapsody*)
10710   dynamic_linker="$host_os dyld"
10711   version_type=darwin
10712   need_lib_prefix=no
10713   need_version=no
10714   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10715   soname_spec='${libname}${release}${major}$shared_ext'
10716   shlibpath_overrides_runpath=yes
10717   shlibpath_var=DYLD_LIBRARY_PATH
10718   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10719
10720   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10721   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10722   ;;
10723
10724 dgux*)
10725   version_type=linux
10726   need_lib_prefix=no
10727   need_version=no
10728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10729   soname_spec='${libname}${release}${shared_ext}$major'
10730   shlibpath_var=LD_LIBRARY_PATH
10731   ;;
10732
10733 freebsd1*)
10734   dynamic_linker=no
10735   ;;
10736
10737 freebsd* | dragonfly*)
10738   # DragonFly does not have aout.  When/if they implement a new
10739   # versioning mechanism, adjust this.
10740   if test -x /usr/bin/objformat; then
10741     objformat=`/usr/bin/objformat`
10742   else
10743     case $host_os in
10744     freebsd[123]*) objformat=aout ;;
10745     *) objformat=elf ;;
10746     esac
10747   fi
10748   version_type=freebsd-$objformat
10749   case $version_type in
10750     freebsd-elf*)
10751       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10752       need_version=no
10753       need_lib_prefix=no
10754       ;;
10755     freebsd-*)
10756       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10757       need_version=yes
10758       ;;
10759   esac
10760   shlibpath_var=LD_LIBRARY_PATH
10761   case $host_os in
10762   freebsd2*)
10763     shlibpath_overrides_runpath=yes
10764     ;;
10765   freebsd3.[01]* | freebsdelf3.[01]*)
10766     shlibpath_overrides_runpath=yes
10767     hardcode_into_libs=yes
10768     ;;
10769   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10770   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10771     shlibpath_overrides_runpath=no
10772     hardcode_into_libs=yes
10773     ;;
10774   *) # from 4.6 on, and DragonFly
10775     shlibpath_overrides_runpath=yes
10776     hardcode_into_libs=yes
10777     ;;
10778   esac
10779   ;;
10780
10781 gnu*)
10782   version_type=linux
10783   need_lib_prefix=no
10784   need_version=no
10785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10786   soname_spec='${libname}${release}${shared_ext}$major'
10787   shlibpath_var=LD_LIBRARY_PATH
10788   hardcode_into_libs=yes
10789   ;;
10790
10791 haiku*)
10792   version_type=linux
10793   need_lib_prefix=no
10794   need_version=no
10795   dynamic_linker="$host_os runtime_loader"
10796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10797   soname_spec='${libname}${release}${shared_ext}$major'
10798   shlibpath_var=LIBRARY_PATH
10799   shlibpath_overrides_runpath=yes
10800   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10801   hardcode_into_libs=yes
10802   ;;
10803
10804 hpux9* | hpux10* | hpux11*)
10805   # Give a soname corresponding to the major version so that dld.sl refuses to
10806   # link against other versions.
10807   version_type=sunos
10808   need_lib_prefix=no
10809   need_version=no
10810   case $host_cpu in
10811   ia64*)
10812     shrext_cmds='.so'
10813     hardcode_into_libs=yes
10814     dynamic_linker="$host_os dld.so"
10815     shlibpath_var=LD_LIBRARY_PATH
10816     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818     soname_spec='${libname}${release}${shared_ext}$major'
10819     if test "X$HPUX_IA64_MODE" = X32; then
10820       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10821     else
10822       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10823     fi
10824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10825     ;;
10826   hppa*64*)
10827     shrext_cmds='.sl'
10828     hardcode_into_libs=yes
10829     dynamic_linker="$host_os dld.sl"
10830     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10831     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833     soname_spec='${libname}${release}${shared_ext}$major'
10834     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10835     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10836     ;;
10837   *)
10838     shrext_cmds='.sl'
10839     dynamic_linker="$host_os dld.sl"
10840     shlibpath_var=SHLIB_PATH
10841     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843     soname_spec='${libname}${release}${shared_ext}$major'
10844     ;;
10845   esac
10846   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10847   postinstall_cmds='chmod 555 $lib'
10848   # or fails outright, so override atomically:
10849   install_override_mode=555
10850   ;;
10851
10852 interix[3-9]*)
10853   version_type=linux
10854   need_lib_prefix=no
10855   need_version=no
10856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10857   soname_spec='${libname}${release}${shared_ext}$major'
10858   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10859   shlibpath_var=LD_LIBRARY_PATH
10860   shlibpath_overrides_runpath=no
10861   hardcode_into_libs=yes
10862   ;;
10863
10864 irix5* | irix6* | nonstopux*)
10865   case $host_os in
10866     nonstopux*) version_type=nonstopux ;;
10867     *)
10868         if test "$lt_cv_prog_gnu_ld" = yes; then
10869                 version_type=linux
10870         else
10871                 version_type=irix
10872         fi ;;
10873   esac
10874   need_lib_prefix=no
10875   need_version=no
10876   soname_spec='${libname}${release}${shared_ext}$major'
10877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10878   case $host_os in
10879   irix5* | nonstopux*)
10880     libsuff= shlibsuff=
10881     ;;
10882   *)
10883     case $LD in # libtool.m4 will add one of these switches to LD
10884     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10885       libsuff= shlibsuff= libmagic=32-bit;;
10886     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10887       libsuff=32 shlibsuff=N32 libmagic=N32;;
10888     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10889       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10890     *) libsuff= shlibsuff= libmagic=never-match;;
10891     esac
10892     ;;
10893   esac
10894   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10895   shlibpath_overrides_runpath=no
10896   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10897   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10898   hardcode_into_libs=yes
10899   ;;
10900
10901 # No shared lib support for Linux oldld, aout, or coff.
10902 linux*oldld* | linux*aout* | linux*coff*)
10903   dynamic_linker=no
10904   ;;
10905
10906 # This must be Linux ELF.
10907 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10908   version_type=linux
10909   need_lib_prefix=no
10910   need_version=no
10911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912   soname_spec='${libname}${release}${shared_ext}$major'
10913   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   shlibpath_overrides_runpath=no
10916
10917   # Some binutils ld are patched to set DT_RUNPATH
10918   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   lt_cv_shlibpath_overrides_runpath=no
10922     save_LDFLAGS=$LDFLAGS
10923     save_libdir=$libdir
10924     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10925          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10926     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h.  */
10928
10929 int
10930 main ()
10931 {
10932
10933   ;
10934   return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_c_try_link "$LINENO"; then :
10938   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10939   lt_cv_shlibpath_overrides_runpath=yes
10940 fi
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext \
10943     conftest$ac_exeext conftest.$ac_ext
10944     LDFLAGS=$save_LDFLAGS
10945     libdir=$save_libdir
10946
10947 fi
10948
10949   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10950
10951   # This implies no fast_install, which is unacceptable.
10952   # Some rework will be needed to allow for fast_install
10953   # before this can be enabled.
10954   hardcode_into_libs=yes
10955
10956   # Append ld.so.conf contents to the search path
10957   if test -f /etc/ld.so.conf; then
10958     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' ' '`
10959     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10960   fi
10961
10962   # We used to test for /lib/ld.so.1 and disable shared libraries on
10963   # powerpc, because MkLinux only supported shared libraries with the
10964   # GNU dynamic linker.  Since this was broken with cross compilers,
10965   # most powerpc-linux boxes support dynamic linking these days and
10966   # people can always --disable-shared, the test was removed, and we
10967   # assume the GNU/Linux dynamic linker is in use.
10968   dynamic_linker='GNU/Linux ld.so'
10969   ;;
10970
10971 netbsd*)
10972   version_type=sunos
10973   need_lib_prefix=no
10974   need_version=no
10975   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10978     dynamic_linker='NetBSD (a.out) ld.so'
10979   else
10980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10981     soname_spec='${libname}${release}${shared_ext}$major'
10982     dynamic_linker='NetBSD ld.elf_so'
10983   fi
10984   shlibpath_var=LD_LIBRARY_PATH
10985   shlibpath_overrides_runpath=yes
10986   hardcode_into_libs=yes
10987   ;;
10988
10989 newsos6)
10990   version_type=linux
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992   shlibpath_var=LD_LIBRARY_PATH
10993   shlibpath_overrides_runpath=yes
10994   ;;
10995
10996 *nto* | *qnx*)
10997   version_type=qnx
10998   need_lib_prefix=no
10999   need_version=no
11000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001   soname_spec='${libname}${release}${shared_ext}$major'
11002   shlibpath_var=LD_LIBRARY_PATH
11003   shlibpath_overrides_runpath=no
11004   hardcode_into_libs=yes
11005   dynamic_linker='ldqnx.so'
11006   ;;
11007
11008 openbsd*)
11009   version_type=sunos
11010   sys_lib_dlsearch_path_spec="/usr/lib"
11011   need_lib_prefix=no
11012   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11013   case $host_os in
11014     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11015     *)                          need_version=no  ;;
11016   esac
11017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11019   shlibpath_var=LD_LIBRARY_PATH
11020   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11021     case $host_os in
11022       openbsd2.[89] | openbsd2.[89].*)
11023         shlibpath_overrides_runpath=no
11024         ;;
11025       *)
11026         shlibpath_overrides_runpath=yes
11027         ;;
11028       esac
11029   else
11030     shlibpath_overrides_runpath=yes
11031   fi
11032   ;;
11033
11034 os2*)
11035   libname_spec='$name'
11036   shrext_cmds=".dll"
11037   need_lib_prefix=no
11038   library_names_spec='$libname${shared_ext} $libname.a'
11039   dynamic_linker='OS/2 ld.exe'
11040   shlibpath_var=LIBPATH
11041   ;;
11042
11043 osf3* | osf4* | osf5*)
11044   version_type=osf
11045   need_lib_prefix=no
11046   need_version=no
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049   shlibpath_var=LD_LIBRARY_PATH
11050   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11051   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11052   ;;
11053
11054 rdos*)
11055   dynamic_linker=no
11056   ;;
11057
11058 solaris*)
11059   version_type=linux
11060   need_lib_prefix=no
11061   need_version=no
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063   soname_spec='${libname}${release}${shared_ext}$major'
11064   shlibpath_var=LD_LIBRARY_PATH
11065   shlibpath_overrides_runpath=yes
11066   hardcode_into_libs=yes
11067   # ldd complains unless libraries are executable
11068   postinstall_cmds='chmod +x $lib'
11069   ;;
11070
11071 sunos4*)
11072   version_type=sunos
11073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11075   shlibpath_var=LD_LIBRARY_PATH
11076   shlibpath_overrides_runpath=yes
11077   if test "$with_gnu_ld" = yes; then
11078     need_lib_prefix=no
11079   fi
11080   need_version=yes
11081   ;;
11082
11083 sysv4 | sysv4.3*)
11084   version_type=linux
11085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086   soname_spec='${libname}${release}${shared_ext}$major'
11087   shlibpath_var=LD_LIBRARY_PATH
11088   case $host_vendor in
11089     sni)
11090       shlibpath_overrides_runpath=no
11091       need_lib_prefix=no
11092       runpath_var=LD_RUN_PATH
11093       ;;
11094     siemens)
11095       need_lib_prefix=no
11096       ;;
11097     motorola)
11098       need_lib_prefix=no
11099       need_version=no
11100       shlibpath_overrides_runpath=no
11101       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11102       ;;
11103   esac
11104   ;;
11105
11106 sysv4*MP*)
11107   if test -d /usr/nec ;then
11108     version_type=linux
11109     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11110     soname_spec='$libname${shared_ext}.$major'
11111     shlibpath_var=LD_LIBRARY_PATH
11112   fi
11113   ;;
11114
11115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11116   version_type=freebsd-elf
11117   need_lib_prefix=no
11118   need_version=no
11119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11120   soname_spec='${libname}${release}${shared_ext}$major'
11121   shlibpath_var=LD_LIBRARY_PATH
11122   shlibpath_overrides_runpath=yes
11123   hardcode_into_libs=yes
11124   if test "$with_gnu_ld" = yes; then
11125     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11126   else
11127     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11128     case $host_os in
11129       sco3.2v5*)
11130         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11131         ;;
11132     esac
11133   fi
11134   sys_lib_dlsearch_path_spec='/usr/lib'
11135   ;;
11136
11137 tpf*)
11138   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11139   version_type=linux
11140   need_lib_prefix=no
11141   need_version=no
11142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143   shlibpath_var=LD_LIBRARY_PATH
11144   shlibpath_overrides_runpath=no
11145   hardcode_into_libs=yes
11146   ;;
11147
11148 uts4*)
11149   version_type=linux
11150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151   soname_spec='${libname}${release}${shared_ext}$major'
11152   shlibpath_var=LD_LIBRARY_PATH
11153   ;;
11154
11155 *)
11156   dynamic_linker=no
11157   ;;
11158 esac
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11160 $as_echo "$dynamic_linker" >&6; }
11161 test "$dynamic_linker" = no && can_build_shared=no
11162
11163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11164 if test "$GCC" = yes; then
11165   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11166 fi
11167
11168 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11169   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11170 fi
11171 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11172   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11173 fi
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11267 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11268 hardcode_action=
11269 if test -n "$hardcode_libdir_flag_spec" ||
11270    test -n "$runpath_var" ||
11271    test "X$hardcode_automatic" = "Xyes" ; then
11272
11273   # We can hardcode non-existent directories.
11274   if test "$hardcode_direct" != no &&
11275      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11276      # have to relink, otherwise we might link with an installed library
11277      # when we should be linking with a yet-to-be-installed one
11278      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11279      test "$hardcode_minus_L" != no; then
11280     # Linking always hardcodes the temporary library directory.
11281     hardcode_action=relink
11282   else
11283     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11284     hardcode_action=immediate
11285   fi
11286 else
11287   # We cannot hardcode anything, or else we can only hardcode existing
11288   # directories.
11289   hardcode_action=unsupported
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11292 $as_echo "$hardcode_action" >&6; }
11293
11294 if test "$hardcode_action" = relink ||
11295    test "$inherit_rpath" = yes; then
11296   # Fast installation is not supported
11297   enable_fast_install=no
11298 elif test "$shlibpath_overrides_runpath" = yes ||
11299      test "$enable_shared" = no; then
11300   # Fast installation is not necessary
11301   enable_fast_install=needless
11302 fi
11303
11304
11305
11306
11307
11308
11309   if test "x$enable_dlopen" != xyes; then
11310   enable_dlopen=unknown
11311   enable_dlopen_self=unknown
11312   enable_dlopen_self_static=unknown
11313 else
11314   lt_cv_dlopen=no
11315   lt_cv_dlopen_libs=
11316
11317   case $host_os in
11318   beos*)
11319     lt_cv_dlopen="load_add_on"
11320     lt_cv_dlopen_libs=
11321     lt_cv_dlopen_self=yes
11322     ;;
11323
11324   mingw* | pw32* | cegcc*)
11325     lt_cv_dlopen="LoadLibrary"
11326     lt_cv_dlopen_libs=
11327     ;;
11328
11329   cygwin*)
11330     lt_cv_dlopen="dlopen"
11331     lt_cv_dlopen_libs=
11332     ;;
11333
11334   darwin*)
11335   # if libdl is installed we need to link against it
11336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11338 if ${ac_cv_lib_dl_dlopen+:} false; then :
11339   $as_echo_n "(cached) " >&6
11340 else
11341   ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-ldl  $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h.  */
11345
11346 /* Override any GCC internal prototype to avoid an error.
11347    Use char because int might match the return type of a GCC
11348    builtin and then its argument prototype would still apply.  */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char dlopen ();
11353 int
11354 main ()
11355 {
11356 return dlopen ();
11357   ;
11358   return 0;
11359 }
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362   ac_cv_lib_dl_dlopen=yes
11363 else
11364   ac_cv_lib_dl_dlopen=no
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext \
11367     conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11372 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11373   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11374 else
11375
11376     lt_cv_dlopen="dyld"
11377     lt_cv_dlopen_libs=
11378     lt_cv_dlopen_self=yes
11379
11380 fi
11381
11382     ;;
11383
11384   *)
11385     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11386 if test "x$ac_cv_func_shl_load" = xyes; then :
11387   lt_cv_dlopen="shl_load"
11388 else
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11390 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11391 if ${ac_cv_lib_dld_shl_load+:} false; then :
11392   $as_echo_n "(cached) " >&6
11393 else
11394   ac_check_lib_save_LIBS=$LIBS
11395 LIBS="-ldld  $LIBS"
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h.  */
11398
11399 /* Override any GCC internal prototype to avoid an error.
11400    Use char because int might match the return type of a GCC
11401    builtin and then its argument prototype would still apply.  */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char shl_load ();
11406 int
11407 main ()
11408 {
11409 return shl_load ();
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 if ac_fn_c_try_link "$LINENO"; then :
11415   ac_cv_lib_dld_shl_load=yes
11416 else
11417   ac_cv_lib_dld_shl_load=no
11418 fi
11419 rm -f core conftest.err conftest.$ac_objext \
11420     conftest$ac_exeext conftest.$ac_ext
11421 LIBS=$ac_check_lib_save_LIBS
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11424 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11425 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11426   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11427 else
11428   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11429 if test "x$ac_cv_func_dlopen" = xyes; then :
11430   lt_cv_dlopen="dlopen"
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11433 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11434 if ${ac_cv_lib_dl_dlopen+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-ldl  $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h.  */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443    Use char because int might match the return type of a GCC
11444    builtin and then its argument prototype would still apply.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char dlopen ();
11449 int
11450 main ()
11451 {
11452 return dlopen ();
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458   ac_cv_lib_dl_dlopen=yes
11459 else
11460   ac_cv_lib_dl_dlopen=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463     conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11467 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11468 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11472 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11473 if ${ac_cv_lib_svld_dlopen+:} false; then :
11474   $as_echo_n "(cached) " >&6
11475 else
11476   ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-lsvld  $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h.  */
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482    Use char because int might match the return type of a GCC
11483    builtin and then its argument prototype would still apply.  */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char dlopen ();
11488 int
11489 main ()
11490 {
11491 return dlopen ();
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497   ac_cv_lib_svld_dlopen=yes
11498 else
11499   ac_cv_lib_svld_dlopen=no
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext \
11502     conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11506 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11507 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11508   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11509 else
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11511 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11512 if ${ac_cv_lib_dld_dld_link+:} false; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515   ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-ldld  $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h.  */
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521    Use char because int might match the return type of a GCC
11522    builtin and then its argument prototype would still apply.  */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char dld_link ();
11527 int
11528 main ()
11529 {
11530 return dld_link ();
11531   ;
11532   return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536   ac_cv_lib_dld_dld_link=yes
11537 else
11538   ac_cv_lib_dld_dld_link=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext \
11541     conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11545 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11546 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11547   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11548 fi
11549
11550
11551 fi
11552
11553
11554 fi
11555
11556
11557 fi
11558
11559
11560 fi
11561
11562
11563 fi
11564
11565     ;;
11566   esac
11567
11568   if test "x$lt_cv_dlopen" != xno; then
11569     enable_dlopen=yes
11570   else
11571     enable_dlopen=no
11572   fi
11573
11574   case $lt_cv_dlopen in
11575   dlopen)
11576     save_CPPFLAGS="$CPPFLAGS"
11577     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11578
11579     save_LDFLAGS="$LDFLAGS"
11580     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11581
11582     save_LIBS="$LIBS"
11583     LIBS="$lt_cv_dlopen_libs $LIBS"
11584
11585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11586 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11587 if ${lt_cv_dlopen_self+:} false; then :
11588   $as_echo_n "(cached) " >&6
11589 else
11590           if test "$cross_compiling" = yes; then :
11591   lt_cv_dlopen_self=cross
11592 else
11593   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11594   lt_status=$lt_dlunknown
11595   cat > conftest.$ac_ext <<_LT_EOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11598
11599 #if HAVE_DLFCN_H
11600 #include <dlfcn.h>
11601 #endif
11602
11603 #include <stdio.h>
11604
11605 #ifdef RTLD_GLOBAL
11606 #  define LT_DLGLOBAL           RTLD_GLOBAL
11607 #else
11608 #  ifdef DL_GLOBAL
11609 #    define LT_DLGLOBAL         DL_GLOBAL
11610 #  else
11611 #    define LT_DLGLOBAL         0
11612 #  endif
11613 #endif
11614
11615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11616    find out it does not work in some platform. */
11617 #ifndef LT_DLLAZY_OR_NOW
11618 #  ifdef RTLD_LAZY
11619 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11620 #  else
11621 #    ifdef DL_LAZY
11622 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11623 #    else
11624 #      ifdef RTLD_NOW
11625 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11626 #      else
11627 #        ifdef DL_NOW
11628 #          define LT_DLLAZY_OR_NOW      DL_NOW
11629 #        else
11630 #          define LT_DLLAZY_OR_NOW      0
11631 #        endif
11632 #      endif
11633 #    endif
11634 #  endif
11635 #endif
11636
11637 /* When -fvisbility=hidden is used, assume the code has been annotated
11638    correspondingly for the symbols needed.  */
11639 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11640 int fnord () __attribute__((visibility("default")));
11641 #endif
11642
11643 int fnord () { return 42; }
11644 int main ()
11645 {
11646   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11647   int status = $lt_dlunknown;
11648
11649   if (self)
11650     {
11651       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11652       else
11653         {
11654           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11655           else puts (dlerror ());
11656         }
11657       /* dlclose (self); */
11658     }
11659   else
11660     puts (dlerror ());
11661
11662   return status;
11663 }
11664 _LT_EOF
11665   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11666   (eval $ac_link) 2>&5
11667   ac_status=$?
11668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11669   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11670     (./conftest; exit; ) >&5 2>/dev/null
11671     lt_status=$?
11672     case x$lt_status in
11673       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11674       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11675       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11676     esac
11677   else :
11678     # compilation failed
11679     lt_cv_dlopen_self=no
11680   fi
11681 fi
11682 rm -fr conftest*
11683
11684
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11687 $as_echo "$lt_cv_dlopen_self" >&6; }
11688
11689     if test "x$lt_cv_dlopen_self" = xyes; then
11690       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11691       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11692 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11693 if ${lt_cv_dlopen_self_static+:} false; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696           if test "$cross_compiling" = yes; then :
11697   lt_cv_dlopen_self_static=cross
11698 else
11699   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11700   lt_status=$lt_dlunknown
11701   cat > conftest.$ac_ext <<_LT_EOF
11702 #line $LINENO "configure"
11703 #include "confdefs.h"
11704
11705 #if HAVE_DLFCN_H
11706 #include <dlfcn.h>
11707 #endif
11708
11709 #include <stdio.h>
11710
11711 #ifdef RTLD_GLOBAL
11712 #  define LT_DLGLOBAL           RTLD_GLOBAL
11713 #else
11714 #  ifdef DL_GLOBAL
11715 #    define LT_DLGLOBAL         DL_GLOBAL
11716 #  else
11717 #    define LT_DLGLOBAL         0
11718 #  endif
11719 #endif
11720
11721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11722    find out it does not work in some platform. */
11723 #ifndef LT_DLLAZY_OR_NOW
11724 #  ifdef RTLD_LAZY
11725 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11726 #  else
11727 #    ifdef DL_LAZY
11728 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11729 #    else
11730 #      ifdef RTLD_NOW
11731 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11732 #      else
11733 #        ifdef DL_NOW
11734 #          define LT_DLLAZY_OR_NOW      DL_NOW
11735 #        else
11736 #          define LT_DLLAZY_OR_NOW      0
11737 #        endif
11738 #      endif
11739 #    endif
11740 #  endif
11741 #endif
11742
11743 /* When -fvisbility=hidden is used, assume the code has been annotated
11744    correspondingly for the symbols needed.  */
11745 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11746 int fnord () __attribute__((visibility("default")));
11747 #endif
11748
11749 int fnord () { return 42; }
11750 int main ()
11751 {
11752   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11753   int status = $lt_dlunknown;
11754
11755   if (self)
11756     {
11757       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11758       else
11759         {
11760           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11761           else puts (dlerror ());
11762         }
11763       /* dlclose (self); */
11764     }
11765   else
11766     puts (dlerror ());
11767
11768   return status;
11769 }
11770 _LT_EOF
11771   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11772   (eval $ac_link) 2>&5
11773   ac_status=$?
11774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11776     (./conftest; exit; ) >&5 2>/dev/null
11777     lt_status=$?
11778     case x$lt_status in
11779       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11780       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11781       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11782     esac
11783   else :
11784     # compilation failed
11785     lt_cv_dlopen_self_static=no
11786   fi
11787 fi
11788 rm -fr conftest*
11789
11790
11791 fi
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11793 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11794     fi
11795
11796     CPPFLAGS="$save_CPPFLAGS"
11797     LDFLAGS="$save_LDFLAGS"
11798     LIBS="$save_LIBS"
11799     ;;
11800   esac
11801
11802   case $lt_cv_dlopen_self in
11803   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11804   *) enable_dlopen_self=unknown ;;
11805   esac
11806
11807   case $lt_cv_dlopen_self_static in
11808   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11809   *) enable_dlopen_self_static=unknown ;;
11810   esac
11811 fi
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829 striplib=
11830 old_striplib=
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11832 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11833 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11834   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11835   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11838 else
11839 # FIXME - insert some real tests, host_os isn't really good enough
11840   case $host_os in
11841   darwin*)
11842     if test -n "$STRIP" ; then
11843       striplib="$STRIP -x"
11844       old_striplib="$STRIP -S"
11845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11847     else
11848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11850     fi
11851     ;;
11852   *)
11853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855     ;;
11856   esac
11857 fi
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870   # Report which library types will actually be built
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11872 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11874 $as_echo "$can_build_shared" >&6; }
11875
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11877 $as_echo_n "checking whether to build shared libraries... " >&6; }
11878   test "$can_build_shared" = "no" && enable_shared=no
11879
11880   # On AIX, shared libraries and static libraries use the same namespace, and
11881   # are all built from PIC.
11882   case $host_os in
11883   aix3*)
11884     test "$enable_shared" = yes && enable_static=no
11885     if test -n "$RANLIB"; then
11886       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11887       postinstall_cmds='$RANLIB $lib'
11888     fi
11889     ;;
11890
11891   aix[4-9]*)
11892     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11893       test "$enable_shared" = yes && enable_static=no
11894     fi
11895     ;;
11896   esac
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11898 $as_echo "$enable_shared" >&6; }
11899
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11901 $as_echo_n "checking whether to build static libraries... " >&6; }
11902   # Make sure either enable_shared or enable_static is yes.
11903   test "$enable_shared" = yes || enable_static=yes
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11905 $as_echo "$enable_static" >&6; }
11906
11907
11908
11909
11910 fi
11911 ac_ext=c
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11916
11917 CC="$lt_save_CC"
11918
11919       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11920     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11921     (test "X$CXX" != "Xg++"))) ; then
11922   ac_ext=cpp
11923 ac_cpp='$CXXCPP $CPPFLAGS'
11924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11928 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11929 if test -z "$CXXCPP"; then
11930   if ${ac_cv_prog_CXXCPP+:} false; then :
11931   $as_echo_n "(cached) " >&6
11932 else
11933       # Double quotes because CXXCPP needs to be expanded
11934     for CXXCPP in "$CXX -E" "/lib/cpp"
11935     do
11936       ac_preproc_ok=false
11937 for ac_cxx_preproc_warn_flag in '' yes
11938 do
11939   # Use a header file that comes with gcc, so configuring glibc
11940   # with a fresh cross-compiler works.
11941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11942   # <limits.h> exists even on freestanding compilers.
11943   # On the NeXT, cc -E runs the code through the compiler's parser,
11944   # not just through cpp. "Syntax error" is here to catch this case.
11945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h.  */
11947 #ifdef __STDC__
11948 # include <limits.h>
11949 #else
11950 # include <assert.h>
11951 #endif
11952                      Syntax error
11953 _ACEOF
11954 if ac_fn_cxx_try_cpp "$LINENO"; then :
11955
11956 else
11957   # Broken: fails on valid input.
11958 continue
11959 fi
11960 rm -f conftest.err conftest.i conftest.$ac_ext
11961
11962   # OK, works on sane cases.  Now check whether nonexistent headers
11963   # can be detected and how.
11964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h.  */
11966 #include <ac_nonexistent.h>
11967 _ACEOF
11968 if ac_fn_cxx_try_cpp "$LINENO"; then :
11969   # Broken: success on invalid input.
11970 continue
11971 else
11972   # Passes both tests.
11973 ac_preproc_ok=:
11974 break
11975 fi
11976 rm -f conftest.err conftest.i conftest.$ac_ext
11977
11978 done
11979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11980 rm -f conftest.i conftest.err conftest.$ac_ext
11981 if $ac_preproc_ok; then :
11982   break
11983 fi
11984
11985     done
11986     ac_cv_prog_CXXCPP=$CXXCPP
11987
11988 fi
11989   CXXCPP=$ac_cv_prog_CXXCPP
11990 else
11991   ac_cv_prog_CXXCPP=$CXXCPP
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11994 $as_echo "$CXXCPP" >&6; }
11995 ac_preproc_ok=false
11996 for ac_cxx_preproc_warn_flag in '' yes
11997 do
11998   # Use a header file that comes with gcc, so configuring glibc
11999   # with a fresh cross-compiler works.
12000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12001   # <limits.h> exists even on freestanding compilers.
12002   # On the NeXT, cc -E runs the code through the compiler's parser,
12003   # not just through cpp. "Syntax error" is here to catch this case.
12004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h.  */
12006 #ifdef __STDC__
12007 # include <limits.h>
12008 #else
12009 # include <assert.h>
12010 #endif
12011                      Syntax error
12012 _ACEOF
12013 if ac_fn_cxx_try_cpp "$LINENO"; then :
12014
12015 else
12016   # Broken: fails on valid input.
12017 continue
12018 fi
12019 rm -f conftest.err conftest.i conftest.$ac_ext
12020
12021   # OK, works on sane cases.  Now check whether nonexistent headers
12022   # can be detected and how.
12023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h.  */
12025 #include <ac_nonexistent.h>
12026 _ACEOF
12027 if ac_fn_cxx_try_cpp "$LINENO"; then :
12028   # Broken: success on invalid input.
12029 continue
12030 else
12031   # Passes both tests.
12032 ac_preproc_ok=:
12033 break
12034 fi
12035 rm -f conftest.err conftest.i conftest.$ac_ext
12036
12037 done
12038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12039 rm -f conftest.i conftest.err conftest.$ac_ext
12040 if $ac_preproc_ok; then :
12041
12042 else
12043   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12045 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12046 See \`config.log' for more details" "$LINENO" 5; }
12047 fi
12048
12049 ac_ext=c
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12054
12055 else
12056   _lt_caught_CXX_error=yes
12057 fi
12058
12059 ac_ext=cpp
12060 ac_cpp='$CXXCPP $CPPFLAGS'
12061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12064
12065 archive_cmds_need_lc_CXX=no
12066 allow_undefined_flag_CXX=
12067 always_export_symbols_CXX=no
12068 archive_expsym_cmds_CXX=
12069 compiler_needs_object_CXX=no
12070 export_dynamic_flag_spec_CXX=
12071 hardcode_direct_CXX=no
12072 hardcode_direct_absolute_CXX=no
12073 hardcode_libdir_flag_spec_CXX=
12074 hardcode_libdir_flag_spec_ld_CXX=
12075 hardcode_libdir_separator_CXX=
12076 hardcode_minus_L_CXX=no
12077 hardcode_shlibpath_var_CXX=unsupported
12078 hardcode_automatic_CXX=no
12079 inherit_rpath_CXX=no
12080 module_cmds_CXX=
12081 module_expsym_cmds_CXX=
12082 link_all_deplibs_CXX=unknown
12083 old_archive_cmds_CXX=$old_archive_cmds
12084 reload_flag_CXX=$reload_flag
12085 reload_cmds_CXX=$reload_cmds
12086 no_undefined_flag_CXX=
12087 whole_archive_flag_spec_CXX=
12088 enable_shared_with_static_runtimes_CXX=no
12089
12090 # Source file extension for C++ test sources.
12091 ac_ext=cpp
12092
12093 # Object file extension for compiled C++ test sources.
12094 objext=o
12095 objext_CXX=$objext
12096
12097 # No sense in running all these tests if we already determined that
12098 # the CXX compiler isn't working.  Some variables (like enable_shared)
12099 # are currently assumed to apply to all compilers on this platform,
12100 # and will be corrupted by setting them based on a non-working compiler.
12101 if test "$_lt_caught_CXX_error" != yes; then
12102   # Code to be used in simple compile tests
12103   lt_simple_compile_test_code="int some_variable = 0;"
12104
12105   # Code to be used in simple link tests
12106   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12107
12108   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12109
12110
12111
12112
12113
12114
12115 # If no C compiler was specified, use CC.
12116 LTCC=${LTCC-"$CC"}
12117
12118 # If no C compiler flags were specified, use CFLAGS.
12119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12120
12121 # Allow CC to be a program name with arguments.
12122 compiler=$CC
12123
12124
12125   # save warnings/boilerplate of simple test code
12126   ac_outfile=conftest.$ac_objext
12127 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12129 _lt_compiler_boilerplate=`cat conftest.err`
12130 $RM conftest*
12131
12132   ac_outfile=conftest.$ac_objext
12133 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12135 _lt_linker_boilerplate=`cat conftest.err`
12136 $RM -r conftest*
12137
12138
12139   # Allow CC to be a program name with arguments.
12140   lt_save_CC=$CC
12141   lt_save_CFLAGS=$CFLAGS
12142   lt_save_LD=$LD
12143   lt_save_GCC=$GCC
12144   GCC=$GXX
12145   lt_save_with_gnu_ld=$with_gnu_ld
12146   lt_save_path_LD=$lt_cv_path_LD
12147   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12148     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12149   else
12150     $as_unset lt_cv_prog_gnu_ld
12151   fi
12152   if test -n "${lt_cv_path_LDCXX+set}"; then
12153     lt_cv_path_LD=$lt_cv_path_LDCXX
12154   else
12155     $as_unset lt_cv_path_LD
12156   fi
12157   test -z "${LDCXX+set}" || LD=$LDCXX
12158   CC=${CXX-"c++"}
12159   CFLAGS=$CXXFLAGS
12160   compiler=$CC
12161   compiler_CXX=$CC
12162   for cc_temp in $compiler""; do
12163   case $cc_temp in
12164     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12165     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12166     \-*) ;;
12167     *) break;;
12168   esac
12169 done
12170 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12171
12172
12173   if test -n "$compiler"; then
12174     # We don't want -fno-exception when compiling C++ code, so set the
12175     # no_builtin_flag separately
12176     if test "$GXX" = yes; then
12177       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12178     else
12179       lt_prog_compiler_no_builtin_flag_CXX=
12180     fi
12181
12182     if test "$GXX" = yes; then
12183       # Set up default GNU C++ configuration
12184
12185
12186
12187 # Check whether --with-gnu-ld was given.
12188 if test "${with_gnu_ld+set}" = set; then :
12189   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12190 else
12191   with_gnu_ld=no
12192 fi
12193
12194 ac_prog=ld
12195 if test "$GCC" = yes; then
12196   # Check if gcc -print-prog-name=ld gives a path.
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12198 $as_echo_n "checking for ld used by $CC... " >&6; }
12199   case $host in
12200   *-*-mingw*)
12201     # gcc leaves a trailing carriage return which upsets mingw
12202     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12203   *)
12204     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12205   esac
12206   case $ac_prog in
12207     # Accept absolute paths.
12208     [\\/]* | ?:[\\/]*)
12209       re_direlt='/[^/][^/]*/\.\./'
12210       # Canonicalize the pathname of ld
12211       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12212       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12213         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12214       done
12215       test -z "$LD" && LD="$ac_prog"
12216       ;;
12217   "")
12218     # If it fails, then pretend we aren't using GCC.
12219     ac_prog=ld
12220     ;;
12221   *)
12222     # If it is relative, then search for the first ld in PATH.
12223     with_gnu_ld=unknown
12224     ;;
12225   esac
12226 elif test "$with_gnu_ld" = yes; then
12227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12228 $as_echo_n "checking for GNU ld... " >&6; }
12229 else
12230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12231 $as_echo_n "checking for non-GNU ld... " >&6; }
12232 fi
12233 if ${lt_cv_path_LD+:} false; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   if test -z "$LD"; then
12237   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12238   for ac_dir in $PATH; do
12239     IFS="$lt_save_ifs"
12240     test -z "$ac_dir" && ac_dir=.
12241     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12242       lt_cv_path_LD="$ac_dir/$ac_prog"
12243       # Check to see if the program is GNU ld.  I'd rather use --version,
12244       # but apparently some variants of GNU ld only accept -v.
12245       # Break only if it was the GNU/non-GNU ld that we prefer.
12246       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12247       *GNU* | *'with BFD'*)
12248         test "$with_gnu_ld" != no && break
12249         ;;
12250       *)
12251         test "$with_gnu_ld" != yes && break
12252         ;;
12253       esac
12254     fi
12255   done
12256   IFS="$lt_save_ifs"
12257 else
12258   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12259 fi
12260 fi
12261
12262 LD="$lt_cv_path_LD"
12263 if test -n "$LD"; then
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12265 $as_echo "$LD" >&6; }
12266 else
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12272 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12273 if ${lt_cv_prog_gnu_ld+:} false; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12277 case `$LD -v 2>&1 </dev/null` in
12278 *GNU* | *'with BFD'*)
12279   lt_cv_prog_gnu_ld=yes
12280   ;;
12281 *)
12282   lt_cv_prog_gnu_ld=no
12283   ;;
12284 esac
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12287 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12288 with_gnu_ld=$lt_cv_prog_gnu_ld
12289
12290
12291
12292
12293
12294
12295
12296       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12297       # archiving commands below assume that GNU ld is being used.
12298       if test "$with_gnu_ld" = yes; then
12299         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12300         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'
12301
12302         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12303         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12304
12305         # If archive_cmds runs LD, not CC, wlarc should be empty
12306         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12307         #     investigate it a little bit more. (MM)
12308         wlarc='${wl}'
12309
12310         # ancient GNU ld didn't support --whole-archive et. al.
12311         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12312           $GREP 'no-whole-archive' > /dev/null; then
12313           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12314         else
12315           whole_archive_flag_spec_CXX=
12316         fi
12317       else
12318         with_gnu_ld=no
12319         wlarc=
12320
12321         # A generic and very simple default shared library creation
12322         # command for GNU C++ for the case where it uses the native
12323         # linker, instead of GNU ld.  If possible, this setting should
12324         # overridden to take advantage of the native linker features on
12325         # the platform it is being used on.
12326         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12327       fi
12328
12329       # Commands to make compiler produce verbose output that lists
12330       # what "hidden" libraries, object files and flags are used when
12331       # linking a shared library.
12332       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12333
12334     else
12335       GXX=no
12336       with_gnu_ld=no
12337       wlarc=
12338     fi
12339
12340     # PORTME: fill in a description of your system's C++ link characteristics
12341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12342 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12343     ld_shlibs_CXX=yes
12344     case $host_os in
12345       aix3*)
12346         # FIXME: insert proper C++ library support
12347         ld_shlibs_CXX=no
12348         ;;
12349       aix[4-9]*)
12350         if test "$host_cpu" = ia64; then
12351           # On IA64, the linker does run time linking by default, so we don't
12352           # have to do anything special.
12353           aix_use_runtimelinking=no
12354           exp_sym_flag='-Bexport'
12355           no_entry_flag=""
12356         else
12357           aix_use_runtimelinking=no
12358
12359           # Test if we are trying to use run time linking or normal
12360           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12361           # need to do runtime linking.
12362           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12363             for ld_flag in $LDFLAGS; do
12364               case $ld_flag in
12365               *-brtl*)
12366                 aix_use_runtimelinking=yes
12367                 break
12368                 ;;
12369               esac
12370             done
12371             ;;
12372           esac
12373
12374           exp_sym_flag='-bexport'
12375           no_entry_flag='-bnoentry'
12376         fi
12377
12378         # When large executables or shared objects are built, AIX ld can
12379         # have problems creating the table of contents.  If linking a library
12380         # or program results in "error TOC overflow" add -mminimal-toc to
12381         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12382         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12383
12384         archive_cmds_CXX=''
12385         hardcode_direct_CXX=yes
12386         hardcode_direct_absolute_CXX=yes
12387         hardcode_libdir_separator_CXX=':'
12388         link_all_deplibs_CXX=yes
12389         file_list_spec_CXX='${wl}-f,'
12390
12391         if test "$GXX" = yes; then
12392           case $host_os in aix4.[012]|aix4.[012].*)
12393           # We only want to do this on AIX 4.2 and lower, the check
12394           # below for broken collect2 doesn't work under 4.3+
12395           collect2name=`${CC} -print-prog-name=collect2`
12396           if test -f "$collect2name" &&
12397              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12398           then
12399             # We have reworked collect2
12400             :
12401           else
12402             # We have old collect2
12403             hardcode_direct_CXX=unsupported
12404             # It fails to find uninstalled libraries when the uninstalled
12405             # path is not listed in the libpath.  Setting hardcode_minus_L
12406             # to unsupported forces relinking
12407             hardcode_minus_L_CXX=yes
12408             hardcode_libdir_flag_spec_CXX='-L$libdir'
12409             hardcode_libdir_separator_CXX=
12410           fi
12411           esac
12412           shared_flag='-shared'
12413           if test "$aix_use_runtimelinking" = yes; then
12414             shared_flag="$shared_flag "'${wl}-G'
12415           fi
12416         else
12417           # not using gcc
12418           if test "$host_cpu" = ia64; then
12419           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12420           # chokes on -Wl,-G. The following line is correct:
12421           shared_flag='-G'
12422           else
12423             if test "$aix_use_runtimelinking" = yes; then
12424               shared_flag='${wl}-G'
12425             else
12426               shared_flag='${wl}-bM:SRE'
12427             fi
12428           fi
12429         fi
12430
12431         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12432         # It seems that -bexpall does not export symbols beginning with
12433         # underscore (_), so it is better to generate a list of symbols to
12434         # export.
12435         always_export_symbols_CXX=yes
12436         if test "$aix_use_runtimelinking" = yes; then
12437           # Warning - without using the other runtime loading flags (-brtl),
12438           # -berok will link without error, but may produce a broken library.
12439           allow_undefined_flag_CXX='-berok'
12440           # Determine the default libpath from the value encoded in an empty
12441           # executable.
12442           if test "${lt_cv_aix_libpath+set}" = set; then
12443   aix_libpath=$lt_cv_aix_libpath
12444 else
12445   if ${lt_cv_aix_libpath__CXX+:} false; then :
12446   $as_echo_n "(cached) " >&6
12447 else
12448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h.  */
12450
12451 int
12452 main ()
12453 {
12454
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_cxx_try_link "$LINENO"; then :
12460
12461   lt_aix_libpath_sed='
12462       /Import File Strings/,/^$/ {
12463           /^0/ {
12464               s/^0  *\([^ ]*\) *$/\1/
12465               p
12466           }
12467       }'
12468   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12469   # Check for a 64-bit object if we didn't find anything.
12470   if test -z "$lt_cv_aix_libpath__CXX"; then
12471     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12472   fi
12473 fi
12474 rm -f core conftest.err conftest.$ac_objext \
12475     conftest$ac_exeext conftest.$ac_ext
12476   if test -z "$lt_cv_aix_libpath__CXX"; then
12477     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12478   fi
12479
12480 fi
12481
12482   aix_libpath=$lt_cv_aix_libpath__CXX
12483 fi
12484
12485           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12486
12487           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"
12488         else
12489           if test "$host_cpu" = ia64; then
12490             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12491             allow_undefined_flag_CXX="-z nodefs"
12492             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"
12493           else
12494             # Determine the default libpath from the value encoded in an
12495             # empty executable.
12496             if test "${lt_cv_aix_libpath+set}" = set; then
12497   aix_libpath=$lt_cv_aix_libpath
12498 else
12499   if ${lt_cv_aix_libpath__CXX+:} false; then :
12500   $as_echo_n "(cached) " >&6
12501 else
12502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h.  */
12504
12505 int
12506 main ()
12507 {
12508
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 if ac_fn_cxx_try_link "$LINENO"; then :
12514
12515   lt_aix_libpath_sed='
12516       /Import File Strings/,/^$/ {
12517           /^0/ {
12518               s/^0  *\([^ ]*\) *$/\1/
12519               p
12520           }
12521       }'
12522   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12523   # Check for a 64-bit object if we didn't find anything.
12524   if test -z "$lt_cv_aix_libpath__CXX"; then
12525     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12526   fi
12527 fi
12528 rm -f core conftest.err conftest.$ac_objext \
12529     conftest$ac_exeext conftest.$ac_ext
12530   if test -z "$lt_cv_aix_libpath__CXX"; then
12531     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12532   fi
12533
12534 fi
12535
12536   aix_libpath=$lt_cv_aix_libpath__CXX
12537 fi
12538
12539             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12540             # Warning - without using the other run time loading flags,
12541             # -berok will link without error, but may produce a broken library.
12542             no_undefined_flag_CXX=' ${wl}-bernotok'
12543             allow_undefined_flag_CXX=' ${wl}-berok'
12544             if test "$with_gnu_ld" = yes; then
12545               # We only use this code for GNU lds that support --whole-archive.
12546               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12547             else
12548               # Exported symbols can be pulled into shared objects from archives
12549               whole_archive_flag_spec_CXX='$convenience'
12550             fi
12551             archive_cmds_need_lc_CXX=yes
12552             # This is similar to how AIX traditionally builds its shared
12553             # libraries.
12554             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'
12555           fi
12556         fi
12557         ;;
12558
12559       beos*)
12560         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12561           allow_undefined_flag_CXX=unsupported
12562           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12563           # support --undefined.  This deserves some investigation.  FIXME
12564           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12565         else
12566           ld_shlibs_CXX=no
12567         fi
12568         ;;
12569
12570       chorus*)
12571         case $cc_basename in
12572           *)
12573           # FIXME: insert proper C++ library support
12574           ld_shlibs_CXX=no
12575           ;;
12576         esac
12577         ;;
12578
12579       cygwin* | mingw* | pw32* | cegcc*)
12580         case $GXX,$cc_basename in
12581         ,cl* | no,cl*)
12582           # Native MSVC
12583           # hardcode_libdir_flag_spec is actually meaningless, as there is
12584           # no search path for DLLs.
12585           hardcode_libdir_flag_spec_CXX=' '
12586           allow_undefined_flag_CXX=unsupported
12587           always_export_symbols_CXX=yes
12588           file_list_spec_CXX='@'
12589           # Tell ltmain to make .lib files, not .a files.
12590           libext=lib
12591           # Tell ltmain to make .dll files, not .so files.
12592           shrext_cmds=".dll"
12593           # FIXME: Setting linknames here is a bad hack.
12594           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12595           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12596               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12597             else
12598               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12599             fi~
12600             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12601             linknames='
12602           # The linker will not automatically build a static lib if we build a DLL.
12603           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12604           enable_shared_with_static_runtimes_CXX=yes
12605           # Don't use ranlib
12606           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12607           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12608             lt_tool_outputfile="@TOOL_OUTPUT@"~
12609             case $lt_outputfile in
12610               *.exe|*.EXE) ;;
12611               *)
12612                 lt_outputfile="$lt_outputfile.exe"
12613                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12614                 ;;
12615             esac~
12616             func_to_tool_file "$lt_outputfile"~
12617             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12618               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12619               $RM "$lt_outputfile.manifest";
12620             fi'
12621           ;;
12622         *)
12623           # g++
12624           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12625           # as there is no search path for DLLs.
12626           hardcode_libdir_flag_spec_CXX='-L$libdir'
12627           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12628           allow_undefined_flag_CXX=unsupported
12629           always_export_symbols_CXX=no
12630           enable_shared_with_static_runtimes_CXX=yes
12631
12632           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12633             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'
12634             # If the export-symbols file already is a .def file (1st line
12635             # is EXPORTS), use it as is; otherwise, prepend...
12636             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12637               cp $export_symbols $output_objdir/$soname.def;
12638             else
12639               echo EXPORTS > $output_objdir/$soname.def;
12640               cat $export_symbols >> $output_objdir/$soname.def;
12641             fi~
12642             $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'
12643           else
12644             ld_shlibs_CXX=no
12645           fi
12646           ;;
12647         esac
12648         ;;
12649       darwin* | rhapsody*)
12650
12651
12652   archive_cmds_need_lc_CXX=no
12653   hardcode_direct_CXX=no
12654   hardcode_automatic_CXX=yes
12655   hardcode_shlibpath_var_CXX=unsupported
12656   if test "$lt_cv_ld_force_load" = "yes"; then
12657     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\"`'
12658   else
12659     whole_archive_flag_spec_CXX=''
12660   fi
12661   link_all_deplibs_CXX=yes
12662   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12663   case $cc_basename in
12664      ifort*) _lt_dar_can_shared=yes ;;
12665      *) _lt_dar_can_shared=$GCC ;;
12666   esac
12667   if test "$_lt_dar_can_shared" = "yes"; then
12668     output_verbose_link_cmd=func_echo_all
12669     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}"
12670     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12671     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}"
12672     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}"
12673        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12674       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}"
12675       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}"
12676     fi
12677
12678   else
12679   ld_shlibs_CXX=no
12680   fi
12681
12682         ;;
12683
12684       dgux*)
12685         case $cc_basename in
12686           ec++*)
12687             # FIXME: insert proper C++ library support
12688             ld_shlibs_CXX=no
12689             ;;
12690           ghcx*)
12691             # Green Hills C++ Compiler
12692             # FIXME: insert proper C++ library support
12693             ld_shlibs_CXX=no
12694             ;;
12695           *)
12696             # FIXME: insert proper C++ library support
12697             ld_shlibs_CXX=no
12698             ;;
12699         esac
12700         ;;
12701
12702       freebsd[12]*)
12703         # C++ shared libraries reported to be fairly broken before
12704         # switch to ELF
12705         ld_shlibs_CXX=no
12706         ;;
12707
12708       freebsd-elf*)
12709         archive_cmds_need_lc_CXX=no
12710         ;;
12711
12712       freebsd* | dragonfly*)
12713         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12714         # conventions
12715         ld_shlibs_CXX=yes
12716         ;;
12717
12718       gnu*)
12719         ;;
12720
12721       haiku*)
12722         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12723         link_all_deplibs_CXX=yes
12724         ;;
12725
12726       hpux9*)
12727         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12728         hardcode_libdir_separator_CXX=:
12729         export_dynamic_flag_spec_CXX='${wl}-E'
12730         hardcode_direct_CXX=yes
12731         hardcode_minus_L_CXX=yes # Not in the search PATH,
12732                                              # but as the default
12733                                              # location of the library.
12734
12735         case $cc_basename in
12736           CC*)
12737             # FIXME: insert proper C++ library support
12738             ld_shlibs_CXX=no
12739             ;;
12740           aCC*)
12741             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'
12742             # Commands to make compiler produce verbose output that lists
12743             # what "hidden" libraries, object files and flags are used when
12744             # linking a shared library.
12745             #
12746             # There doesn't appear to be a way to prevent this compiler from
12747             # explicitly linking system object files so we need to strip them
12748             # from the output so that they don't get included in the library
12749             # dependencies.
12750             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"'
12751             ;;
12752           *)
12753             if test "$GXX" = yes; then
12754               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'
12755             else
12756               # FIXME: insert proper C++ library support
12757               ld_shlibs_CXX=no
12758             fi
12759             ;;
12760         esac
12761         ;;
12762
12763       hpux10*|hpux11*)
12764         if test $with_gnu_ld = no; then
12765           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12766           hardcode_libdir_separator_CXX=:
12767
12768           case $host_cpu in
12769             hppa*64*|ia64*)
12770               ;;
12771             *)
12772               export_dynamic_flag_spec_CXX='${wl}-E'
12773               ;;
12774           esac
12775         fi
12776         case $host_cpu in
12777           hppa*64*|ia64*)
12778             hardcode_direct_CXX=no
12779             hardcode_shlibpath_var_CXX=no
12780             ;;
12781           *)
12782             hardcode_direct_CXX=yes
12783             hardcode_direct_absolute_CXX=yes
12784             hardcode_minus_L_CXX=yes # Not in the search PATH,
12785                                                  # but as the default
12786                                                  # location of the library.
12787             ;;
12788         esac
12789
12790         case $cc_basename in
12791           CC*)
12792             # FIXME: insert proper C++ library support
12793             ld_shlibs_CXX=no
12794             ;;
12795           aCC*)
12796             case $host_cpu in
12797               hppa*64*)
12798                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12799                 ;;
12800               ia64*)
12801                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12802                 ;;
12803               *)
12804                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12805                 ;;
12806             esac
12807             # Commands to make compiler produce verbose output that lists
12808             # what "hidden" libraries, object files and flags are used when
12809             # linking a shared library.
12810             #
12811             # There doesn't appear to be a way to prevent this compiler from
12812             # explicitly linking system object files so we need to strip them
12813             # from the output so that they don't get included in the library
12814             # dependencies.
12815             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"'
12816             ;;
12817           *)
12818             if test "$GXX" = yes; then
12819               if test $with_gnu_ld = no; then
12820                 case $host_cpu in
12821                   hppa*64*)
12822                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823                     ;;
12824                   ia64*)
12825                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12826                     ;;
12827                   *)
12828                     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'
12829                     ;;
12830                 esac
12831               fi
12832             else
12833               # FIXME: insert proper C++ library support
12834               ld_shlibs_CXX=no
12835             fi
12836             ;;
12837         esac
12838         ;;
12839
12840       interix[3-9]*)
12841         hardcode_direct_CXX=no
12842         hardcode_shlibpath_var_CXX=no
12843         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12844         export_dynamic_flag_spec_CXX='${wl}-E'
12845         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12846         # Instead, shared libraries are loaded at an image base (0x10000000 by
12847         # default) and relocated if they conflict, which is a slow very memory
12848         # consuming and fragmenting process.  To avoid this, we pick a random,
12849         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12850         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12851         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'
12852         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'
12853         ;;
12854       irix5* | irix6*)
12855         case $cc_basename in
12856           CC*)
12857             # SGI C++
12858             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'
12859
12860             # Archives containing C++ object files must be created using
12861             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12862             # necessary to make sure instantiated templates are included
12863             # in the archive.
12864             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12865             ;;
12866           *)
12867             if test "$GXX" = yes; then
12868               if test "$with_gnu_ld" = no; then
12869                 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'
12870               else
12871                 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'
12872               fi
12873             fi
12874             link_all_deplibs_CXX=yes
12875             ;;
12876         esac
12877         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878         hardcode_libdir_separator_CXX=:
12879         inherit_rpath_CXX=yes
12880         ;;
12881
12882       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12883         case $cc_basename in
12884           KCC*)
12885             # Kuck and Associates, Inc. (KAI) C++ Compiler
12886
12887             # KCC will only create a shared library if the output file
12888             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12889             # to its proper name (with version) after linking.
12890             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'
12891             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'
12892             # Commands to make compiler produce verbose output that lists
12893             # what "hidden" libraries, object files and flags are used when
12894             # linking a shared library.
12895             #
12896             # There doesn't appear to be a way to prevent this compiler from
12897             # explicitly linking system object files so we need to strip them
12898             # from the output so that they don't get included in the library
12899             # dependencies.
12900             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"'
12901
12902             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12903             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12904
12905             # Archives containing C++ object files must be created using
12906             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12907             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12908             ;;
12909           icpc* | ecpc* )
12910             # Intel C++
12911             with_gnu_ld=yes
12912             # version 8.0 and above of icpc choke on multiply defined symbols
12913             # if we add $predep_objects and $postdep_objects, however 7.1 and
12914             # earlier do not add the objects themselves.
12915             case `$CC -V 2>&1` in
12916               *"Version 7."*)
12917                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918                 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'
12919                 ;;
12920               *)  # Version 8.0 or newer
12921                 tmp_idyn=
12922                 case $host_cpu in
12923                   ia64*) tmp_idyn=' -i_dynamic';;
12924                 esac
12925                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12926                 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'
12927                 ;;
12928             esac
12929             archive_cmds_need_lc_CXX=no
12930             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12931             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12932             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12933             ;;
12934           pgCC* | pgcpp*)
12935             # Portland Group C++ compiler
12936             case `$CC -V` in
12937             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12938               prelink_cmds_CXX='tpldir=Template.dir~
12939                 rm -rf $tpldir~
12940                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12941                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12942               old_archive_cmds_CXX='tpldir=Template.dir~
12943                 rm -rf $tpldir~
12944                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12945                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12946                 $RANLIB $oldlib'
12947               archive_cmds_CXX='tpldir=Template.dir~
12948                 rm -rf $tpldir~
12949                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12950                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12951               archive_expsym_cmds_CXX='tpldir=Template.dir~
12952                 rm -rf $tpldir~
12953                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12954                 $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'
12955               ;;
12956             *) # Version 6 and above use weak symbols
12957               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12958               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'
12959               ;;
12960             esac
12961
12962             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12963             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12964             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'
12965             ;;
12966           cxx*)
12967             # Compaq C++
12968             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12969             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'
12970
12971             runpath_var=LD_RUN_PATH
12972             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12973             hardcode_libdir_separator_CXX=:
12974
12975             # Commands to make compiler produce verbose output that lists
12976             # what "hidden" libraries, object files and flags are used when
12977             # linking a shared library.
12978             #
12979             # There doesn't appear to be a way to prevent this compiler from
12980             # explicitly linking system object files so we need to strip them
12981             # from the output so that they don't get included in the library
12982             # dependencies.
12983             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'
12984             ;;
12985           xl* | mpixl* | bgxl*)
12986             # IBM XL 8.0 on PPC, with GNU ld
12987             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12988             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12989             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990             if test "x$supports_anon_versioning" = xyes; then
12991               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12992                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12993                 echo "local: *; };" >> $output_objdir/$libname.ver~
12994                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12995             fi
12996             ;;
12997           *)
12998             case `$CC -V 2>&1 | sed 5q` in
12999             *Sun\ C*)
13000               # Sun C++ 5.9
13001               no_undefined_flag_CXX=' -zdefs'
13002               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13003               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'
13004               hardcode_libdir_flag_spec_CXX='-R$libdir'
13005               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'
13006               compiler_needs_object_CXX=yes
13007
13008               # Not sure whether something based on
13009               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13010               # would be better.
13011               output_verbose_link_cmd='func_echo_all'
13012
13013               # Archives containing C++ object files must be created using
13014               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13015               # necessary to make sure instantiated templates are included
13016               # in the archive.
13017               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13018               ;;
13019             esac
13020             ;;
13021         esac
13022         ;;
13023
13024       lynxos*)
13025         # FIXME: insert proper C++ library support
13026         ld_shlibs_CXX=no
13027         ;;
13028
13029       m88k*)
13030         # FIXME: insert proper C++ library support
13031         ld_shlibs_CXX=no
13032         ;;
13033
13034       mvs*)
13035         case $cc_basename in
13036           cxx*)
13037             # FIXME: insert proper C++ library support
13038             ld_shlibs_CXX=no
13039             ;;
13040           *)
13041             # FIXME: insert proper C++ library support
13042             ld_shlibs_CXX=no
13043             ;;
13044         esac
13045         ;;
13046
13047       netbsd*)
13048         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13049           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13050           wlarc=
13051           hardcode_libdir_flag_spec_CXX='-R$libdir'
13052           hardcode_direct_CXX=yes
13053           hardcode_shlibpath_var_CXX=no
13054         fi
13055         # Workaround some broken pre-1.5 toolchains
13056         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13057         ;;
13058
13059       *nto* | *qnx*)
13060         ld_shlibs_CXX=yes
13061         ;;
13062
13063       openbsd2*)
13064         # C++ shared libraries are fairly broken
13065         ld_shlibs_CXX=no
13066         ;;
13067
13068       openbsd*)
13069         if test -f /usr/libexec/ld.so; then
13070           hardcode_direct_CXX=yes
13071           hardcode_shlibpath_var_CXX=no
13072           hardcode_direct_absolute_CXX=yes
13073           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13074           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13075           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13076             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13077             export_dynamic_flag_spec_CXX='${wl}-E'
13078             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13079           fi
13080           output_verbose_link_cmd=func_echo_all
13081         else
13082           ld_shlibs_CXX=no
13083         fi
13084         ;;
13085
13086       osf3* | osf4* | osf5*)
13087         case $cc_basename in
13088           KCC*)
13089             # Kuck and Associates, Inc. (KAI) C++ Compiler
13090
13091             # KCC will only create a shared library if the output file
13092             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13093             # to its proper name (with version) after linking.
13094             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'
13095
13096             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13097             hardcode_libdir_separator_CXX=:
13098
13099             # Archives containing C++ object files must be created using
13100             # the KAI C++ compiler.
13101             case $host in
13102               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13103               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13104             esac
13105             ;;
13106           RCC*)
13107             # Rational C++ 2.4.1
13108             # FIXME: insert proper C++ library support
13109             ld_shlibs_CXX=no
13110             ;;
13111           cxx*)
13112             case $host in
13113               osf3*)
13114                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13115                 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'
13116                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13117                 ;;
13118               *)
13119                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13120                 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'
13121                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13122                   echo "-hidden">> $lib.exp~
13123                   $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~
13124                   $RM $lib.exp'
13125                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13126                 ;;
13127             esac
13128
13129             hardcode_libdir_separator_CXX=:
13130
13131             # Commands to make compiler produce verbose output that lists
13132             # what "hidden" libraries, object files and flags are used when
13133             # linking a shared library.
13134             #
13135             # There doesn't appear to be a way to prevent this compiler from
13136             # explicitly linking system object files so we need to strip them
13137             # from the output so that they don't get included in the library
13138             # dependencies.
13139             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"'
13140             ;;
13141           *)
13142             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13143               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13144               case $host in
13145                 osf3*)
13146                   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'
13147                   ;;
13148                 *)
13149                   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'
13150                   ;;
13151               esac
13152
13153               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13154               hardcode_libdir_separator_CXX=:
13155
13156               # Commands to make compiler produce verbose output that lists
13157               # what "hidden" libraries, object files and flags are used when
13158               # linking a shared library.
13159               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13160
13161             else
13162               # FIXME: insert proper C++ library support
13163               ld_shlibs_CXX=no
13164             fi
13165             ;;
13166         esac
13167         ;;
13168
13169       psos*)
13170         # FIXME: insert proper C++ library support
13171         ld_shlibs_CXX=no
13172         ;;
13173
13174       sunos4*)
13175         case $cc_basename in
13176           CC*)
13177             # Sun C++ 4.x
13178             # FIXME: insert proper C++ library support
13179             ld_shlibs_CXX=no
13180             ;;
13181           lcc*)
13182             # Lucid
13183             # FIXME: insert proper C++ library support
13184             ld_shlibs_CXX=no
13185             ;;
13186           *)
13187             # FIXME: insert proper C++ library support
13188             ld_shlibs_CXX=no
13189             ;;
13190         esac
13191         ;;
13192
13193       solaris*)
13194         case $cc_basename in
13195           CC* | sunCC*)
13196             # Sun C++ 4.2, 5.x and Centerline C++
13197             archive_cmds_need_lc_CXX=yes
13198             no_undefined_flag_CXX=' -zdefs'
13199             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13200             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13201               $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'
13202
13203             hardcode_libdir_flag_spec_CXX='-R$libdir'
13204             hardcode_shlibpath_var_CXX=no
13205             case $host_os in
13206               solaris2.[0-5] | solaris2.[0-5].*) ;;
13207               *)
13208                 # The compiler driver will combine and reorder linker options,
13209                 # but understands `-z linker_flag'.
13210                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13211                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13212                 ;;
13213             esac
13214             link_all_deplibs_CXX=yes
13215
13216             output_verbose_link_cmd='func_echo_all'
13217
13218             # Archives containing C++ object files must be created using
13219             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13220             # necessary to make sure instantiated templates are included
13221             # in the archive.
13222             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13223             ;;
13224           gcx*)
13225             # Green Hills C++ Compiler
13226             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13227
13228             # The C++ compiler must be used to create the archive.
13229             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13230             ;;
13231           *)
13232             # GNU C++ compiler with Solaris linker
13233             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13234               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13235               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13236                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13237                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13238                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13239
13240                 # Commands to make compiler produce verbose output that lists
13241                 # what "hidden" libraries, object files and flags are used when
13242                 # linking a shared library.
13243                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13244               else
13245                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13246                 # platform.
13247                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13248                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13249                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13255               fi
13256
13257               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13258               case $host_os in
13259                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13260                 *)
13261                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13262                   ;;
13263               esac
13264             fi
13265             ;;
13266         esac
13267         ;;
13268
13269     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13270       no_undefined_flag_CXX='${wl}-z,text'
13271       archive_cmds_need_lc_CXX=no
13272       hardcode_shlibpath_var_CXX=no
13273       runpath_var='LD_RUN_PATH'
13274
13275       case $cc_basename in
13276         CC*)
13277           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13278           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279           ;;
13280         *)
13281           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13282           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283           ;;
13284       esac
13285       ;;
13286
13287       sysv5* | sco3.2v5* | sco5v6*)
13288         # Note: We can NOT use -z defs as we might desire, because we do not
13289         # link with -lc, and that would cause any symbols used from libc to
13290         # always be unresolved, which means just about no library would
13291         # ever link correctly.  If we're not using GNU ld we use -z text
13292         # though, which does catch some bad symbols but isn't as heavy-handed
13293         # as -z defs.
13294         no_undefined_flag_CXX='${wl}-z,text'
13295         allow_undefined_flag_CXX='${wl}-z,nodefs'
13296         archive_cmds_need_lc_CXX=no
13297         hardcode_shlibpath_var_CXX=no
13298         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13299         hardcode_libdir_separator_CXX=':'
13300         link_all_deplibs_CXX=yes
13301         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13302         runpath_var='LD_RUN_PATH'
13303
13304         case $cc_basename in
13305           CC*)
13306             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13307             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13309               '"$old_archive_cmds_CXX"
13310             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13311               '"$reload_cmds_CXX"
13312             ;;
13313           *)
13314             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13315             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316             ;;
13317         esac
13318       ;;
13319
13320       tandem*)
13321         case $cc_basename in
13322           NCC*)
13323             # NonStop-UX NCC 3.20
13324             # FIXME: insert proper C++ library support
13325             ld_shlibs_CXX=no
13326             ;;
13327           *)
13328             # FIXME: insert proper C++ library support
13329             ld_shlibs_CXX=no
13330             ;;
13331         esac
13332         ;;
13333
13334       vxworks*)
13335         # FIXME: insert proper C++ library support
13336         ld_shlibs_CXX=no
13337         ;;
13338
13339       *)
13340         # FIXME: insert proper C++ library support
13341         ld_shlibs_CXX=no
13342         ;;
13343     esac
13344
13345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13346 $as_echo "$ld_shlibs_CXX" >&6; }
13347     test "$ld_shlibs_CXX" = no && can_build_shared=no
13348
13349     GCC_CXX="$GXX"
13350     LD_CXX="$LD"
13351
13352     ## CAVEAT EMPTOR:
13353     ## There is no encapsulation within the following macros, do not change
13354     ## the running order or otherwise move them around unless you know exactly
13355     ## what you are doing...
13356     # Dependencies to place before and after the object being linked:
13357 predep_objects_CXX=
13358 postdep_objects_CXX=
13359 predeps_CXX=
13360 postdeps_CXX=
13361 compiler_lib_search_path_CXX=
13362
13363 cat > conftest.$ac_ext <<_LT_EOF
13364 class Foo
13365 {
13366 public:
13367   Foo (void) { a = 0; }
13368 private:
13369   int a;
13370 };
13371 _LT_EOF
13372
13373
13374 _lt_libdeps_save_CFLAGS=$CFLAGS
13375 case "$CC $CFLAGS " in #(
13376 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13377 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13378 esac
13379
13380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13381   (eval $ac_compile) 2>&5
13382   ac_status=$?
13383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13384   test $ac_status = 0; }; then
13385   # Parse the compiler output and extract the necessary
13386   # objects, libraries and library flags.
13387
13388   # Sentinel used to keep track of whether or not we are before
13389   # the conftest object file.
13390   pre_test_object_deps_done=no
13391
13392   for p in `eval "$output_verbose_link_cmd"`; do
13393     case ${prev}${p} in
13394
13395     -L* | -R* | -l*)
13396        # Some compilers place space between "-{L,R}" and the path.
13397        # Remove the space.
13398        if test $p = "-L" ||
13399           test $p = "-R"; then
13400          prev=$p
13401          continue
13402        fi
13403
13404        # Expand the sysroot to ease extracting the directories later.
13405        if test -z "$prev"; then
13406          case $p in
13407          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13408          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13409          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13410          esac
13411        fi
13412        case $p in
13413        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13414        esac
13415        if test "$pre_test_object_deps_done" = no; then
13416          case ${prev} in
13417          -L | -R)
13418            # Internal compiler library paths should come after those
13419            # provided the user.  The postdeps already come after the
13420            # user supplied libs so there is no need to process them.
13421            if test -z "$compiler_lib_search_path_CXX"; then
13422              compiler_lib_search_path_CXX="${prev}${p}"
13423            else
13424              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13425            fi
13426            ;;
13427          # The "-l" case would never come before the object being
13428          # linked, so don't bother handling this case.
13429          esac
13430        else
13431          if test -z "$postdeps_CXX"; then
13432            postdeps_CXX="${prev}${p}"
13433          else
13434            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13435          fi
13436        fi
13437        prev=
13438        ;;
13439
13440     *.lto.$objext) ;; # Ignore GCC LTO objects
13441     *.$objext)
13442        # This assumes that the test object file only shows up
13443        # once in the compiler output.
13444        if test "$p" = "conftest.$objext"; then
13445          pre_test_object_deps_done=yes
13446          continue
13447        fi
13448
13449        if test "$pre_test_object_deps_done" = no; then
13450          if test -z "$predep_objects_CXX"; then
13451            predep_objects_CXX="$p"
13452          else
13453            predep_objects_CXX="$predep_objects_CXX $p"
13454          fi
13455        else
13456          if test -z "$postdep_objects_CXX"; then
13457            postdep_objects_CXX="$p"
13458          else
13459            postdep_objects_CXX="$postdep_objects_CXX $p"
13460          fi
13461        fi
13462        ;;
13463
13464     *) ;; # Ignore the rest.
13465
13466     esac
13467   done
13468
13469   # Clean up.
13470   rm -f a.out a.exe
13471 else
13472   echo "libtool.m4: error: problem compiling CXX test program"
13473 fi
13474
13475 $RM -f confest.$objext
13476 CFLAGS=$_lt_libdeps_save_CFLAGS
13477
13478 # PORTME: override above test on systems where it is broken
13479 case $host_os in
13480 interix[3-9]*)
13481   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13482   # hack all around it, let's just trust "g++" to DTRT.
13483   predep_objects_CXX=
13484   postdep_objects_CXX=
13485   postdeps_CXX=
13486   ;;
13487
13488 linux*)
13489   case `$CC -V 2>&1 | sed 5q` in
13490   *Sun\ C*)
13491     # Sun C++ 5.9
13492
13493     # The more standards-conforming stlport4 library is
13494     # incompatible with the Cstd library. Avoid specifying
13495     # it if it's in CXXFLAGS. Ignore libCrun as
13496     # -library=stlport4 depends on it.
13497     case " $CXX $CXXFLAGS " in
13498     *" -library=stlport4 "*)
13499       solaris_use_stlport4=yes
13500       ;;
13501     esac
13502
13503     if test "$solaris_use_stlport4" != yes; then
13504       postdeps_CXX='-library=Cstd -library=Crun'
13505     fi
13506     ;;
13507   esac
13508   ;;
13509
13510 solaris*)
13511   case $cc_basename in
13512   CC* | sunCC*)
13513     # The more standards-conforming stlport4 library is
13514     # incompatible with the Cstd library. Avoid specifying
13515     # it if it's in CXXFLAGS. Ignore libCrun as
13516     # -library=stlport4 depends on it.
13517     case " $CXX $CXXFLAGS " in
13518     *" -library=stlport4 "*)
13519       solaris_use_stlport4=yes
13520       ;;
13521     esac
13522
13523     # Adding this requires a known-good setup of shared libraries for
13524     # Sun compiler versions before 5.6, else PIC objects from an old
13525     # archive will be linked into the output, leading to subtle bugs.
13526     if test "$solaris_use_stlport4" != yes; then
13527       postdeps_CXX='-library=Cstd -library=Crun'
13528     fi
13529     ;;
13530   esac
13531   ;;
13532 esac
13533
13534
13535 case " $postdeps_CXX " in
13536 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13537 esac
13538  compiler_lib_search_dirs_CXX=
13539 if test -n "${compiler_lib_search_path_CXX}"; then
13540  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13541 fi
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573     lt_prog_compiler_wl_CXX=
13574 lt_prog_compiler_pic_CXX=
13575 lt_prog_compiler_static_CXX=
13576
13577
13578   # C++ specific cases for pic, static, wl, etc.
13579   if test "$GXX" = yes; then
13580     lt_prog_compiler_wl_CXX='-Wl,'
13581     lt_prog_compiler_static_CXX='-static'
13582
13583     case $host_os in
13584     aix*)
13585       # All AIX code is PIC.
13586       if test "$host_cpu" = ia64; then
13587         # AIX 5 now supports IA64 processor
13588         lt_prog_compiler_static_CXX='-Bstatic'
13589       fi
13590       ;;
13591
13592     amigaos*)
13593       case $host_cpu in
13594       powerpc)
13595             # see comment about AmigaOS4 .so support
13596             lt_prog_compiler_pic_CXX='-fPIC'
13597         ;;
13598       m68k)
13599             # FIXME: we need at least 68020 code to build shared libraries, but
13600             # adding the `-m68020' flag to GCC prevents building anything better,
13601             # like `-m68040'.
13602             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13603         ;;
13604       esac
13605       ;;
13606
13607     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13608       # PIC is the default for these OSes.
13609       ;;
13610     mingw* | cygwin* | os2* | pw32* | cegcc*)
13611       # This hack is so that the source file can tell whether it is being
13612       # built for inclusion in a dll (and should export symbols for example).
13613       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13614       # (--disable-auto-import) libraries
13615       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13616       ;;
13617     darwin* | rhapsody*)
13618       # PIC is the default on this platform
13619       # Common symbols not allowed in MH_DYLIB files
13620       lt_prog_compiler_pic_CXX='-fno-common'
13621       ;;
13622     *djgpp*)
13623       # DJGPP does not support shared libraries at all
13624       lt_prog_compiler_pic_CXX=
13625       ;;
13626     haiku*)
13627       # PIC is the default for Haiku.
13628       # The "-static" flag exists, but is broken.
13629       lt_prog_compiler_static_CXX=
13630       ;;
13631     interix[3-9]*)
13632       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13633       # Instead, we relocate shared libraries at runtime.
13634       ;;
13635     sysv4*MP*)
13636       if test -d /usr/nec; then
13637         lt_prog_compiler_pic_CXX=-Kconform_pic
13638       fi
13639       ;;
13640     hpux*)
13641       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13642       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13643       # sets the default TLS model and affects inlining.
13644       case $host_cpu in
13645       hppa*64*)
13646         ;;
13647       *)
13648         lt_prog_compiler_pic_CXX='-fPIC'
13649         ;;
13650       esac
13651       ;;
13652     *qnx* | *nto*)
13653       # QNX uses GNU C++, but need to define -shared option too, otherwise
13654       # it will coredump.
13655       lt_prog_compiler_pic_CXX='-fPIC -shared'
13656       ;;
13657     *)
13658       lt_prog_compiler_pic_CXX='-fPIC'
13659       ;;
13660     esac
13661   else
13662     case $host_os in
13663       aix[4-9]*)
13664         # All AIX code is PIC.
13665         if test "$host_cpu" = ia64; then
13666           # AIX 5 now supports IA64 processor
13667           lt_prog_compiler_static_CXX='-Bstatic'
13668         else
13669           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13670         fi
13671         ;;
13672       chorus*)
13673         case $cc_basename in
13674         cxch68*)
13675           # Green Hills C++ Compiler
13676           # _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"
13677           ;;
13678         esac
13679         ;;
13680       mingw* | cygwin* | os2* | pw32* | cegcc*)
13681         # This hack is so that the source file can tell whether it is being
13682         # built for inclusion in a dll (and should export symbols for example).
13683         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13684         ;;
13685       dgux*)
13686         case $cc_basename in
13687           ec++*)
13688             lt_prog_compiler_pic_CXX='-KPIC'
13689             ;;
13690           ghcx*)
13691             # Green Hills C++ Compiler
13692             lt_prog_compiler_pic_CXX='-pic'
13693             ;;
13694           *)
13695             ;;
13696         esac
13697         ;;
13698       freebsd* | dragonfly*)
13699         # FreeBSD uses GNU C++
13700         ;;
13701       hpux9* | hpux10* | hpux11*)
13702         case $cc_basename in
13703           CC*)
13704             lt_prog_compiler_wl_CXX='-Wl,'
13705             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13706             if test "$host_cpu" != ia64; then
13707               lt_prog_compiler_pic_CXX='+Z'
13708             fi
13709             ;;
13710           aCC*)
13711             lt_prog_compiler_wl_CXX='-Wl,'
13712             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13713             case $host_cpu in
13714             hppa*64*|ia64*)
13715               # +Z the default
13716               ;;
13717             *)
13718               lt_prog_compiler_pic_CXX='+Z'
13719               ;;
13720             esac
13721             ;;
13722           *)
13723             ;;
13724         esac
13725         ;;
13726       interix*)
13727         # This is c89, which is MS Visual C++ (no shared libs)
13728         # Anyone wants to do a port?
13729         ;;
13730       irix5* | irix6* | nonstopux*)
13731         case $cc_basename in
13732           CC*)
13733             lt_prog_compiler_wl_CXX='-Wl,'
13734             lt_prog_compiler_static_CXX='-non_shared'
13735             # CC pic flag -KPIC is the default.
13736             ;;
13737           *)
13738             ;;
13739         esac
13740         ;;
13741       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13742         case $cc_basename in
13743           KCC*)
13744             # KAI C++ Compiler
13745             lt_prog_compiler_wl_CXX='--backend -Wl,'
13746             lt_prog_compiler_pic_CXX='-fPIC'
13747             ;;
13748           ecpc* )
13749             # old Intel C++ for x86_64 which still supported -KPIC.
13750             lt_prog_compiler_wl_CXX='-Wl,'
13751             lt_prog_compiler_pic_CXX='-KPIC'
13752             lt_prog_compiler_static_CXX='-static'
13753             ;;
13754           icpc* )
13755             # Intel C++, used to be incompatible with GCC.
13756             # ICC 10 doesn't accept -KPIC any more.
13757             lt_prog_compiler_wl_CXX='-Wl,'
13758             lt_prog_compiler_pic_CXX='-fPIC'
13759             lt_prog_compiler_static_CXX='-static'
13760             ;;
13761           pgCC* | pgcpp*)
13762             # Portland Group C++ compiler
13763             lt_prog_compiler_wl_CXX='-Wl,'
13764             lt_prog_compiler_pic_CXX='-fpic'
13765             lt_prog_compiler_static_CXX='-Bstatic'
13766             ;;
13767           cxx*)
13768             # Compaq C++
13769             # Make sure the PIC flag is empty.  It appears that all Alpha
13770             # Linux and Compaq Tru64 Unix objects are PIC.
13771             lt_prog_compiler_pic_CXX=
13772             lt_prog_compiler_static_CXX='-non_shared'
13773             ;;
13774           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13775             # IBM XL 8.0, 9.0 on PPC and BlueGene
13776             lt_prog_compiler_wl_CXX='-Wl,'
13777             lt_prog_compiler_pic_CXX='-qpic'
13778             lt_prog_compiler_static_CXX='-qstaticlink'
13779             ;;
13780           *)
13781             case `$CC -V 2>&1 | sed 5q` in
13782             *Sun\ C*)
13783               # Sun C++ 5.9
13784               lt_prog_compiler_pic_CXX='-KPIC'
13785               lt_prog_compiler_static_CXX='-Bstatic'
13786               lt_prog_compiler_wl_CXX='-Qoption ld '
13787               ;;
13788             esac
13789             ;;
13790         esac
13791         ;;
13792       lynxos*)
13793         ;;
13794       m88k*)
13795         ;;
13796       mvs*)
13797         case $cc_basename in
13798           cxx*)
13799             lt_prog_compiler_pic_CXX='-W c,exportall'
13800             ;;
13801           *)
13802             ;;
13803         esac
13804         ;;
13805       netbsd*)
13806         ;;
13807       *qnx* | *nto*)
13808         # QNX uses GNU C++, but need to define -shared option too, otherwise
13809         # it will coredump.
13810         lt_prog_compiler_pic_CXX='-fPIC -shared'
13811         ;;
13812       osf3* | osf4* | osf5*)
13813         case $cc_basename in
13814           KCC*)
13815             lt_prog_compiler_wl_CXX='--backend -Wl,'
13816             ;;
13817           RCC*)
13818             # Rational C++ 2.4.1
13819             lt_prog_compiler_pic_CXX='-pic'
13820             ;;
13821           cxx*)
13822             # Digital/Compaq C++
13823             lt_prog_compiler_wl_CXX='-Wl,'
13824             # Make sure the PIC flag is empty.  It appears that all Alpha
13825             # Linux and Compaq Tru64 Unix objects are PIC.
13826             lt_prog_compiler_pic_CXX=
13827             lt_prog_compiler_static_CXX='-non_shared'
13828             ;;
13829           *)
13830             ;;
13831         esac
13832         ;;
13833       psos*)
13834         ;;
13835       solaris*)
13836         case $cc_basename in
13837           CC* | sunCC*)
13838             # Sun C++ 4.2, 5.x and Centerline C++
13839             lt_prog_compiler_pic_CXX='-KPIC'
13840             lt_prog_compiler_static_CXX='-Bstatic'
13841             lt_prog_compiler_wl_CXX='-Qoption ld '
13842             ;;
13843           gcx*)
13844             # Green Hills C++ Compiler
13845             lt_prog_compiler_pic_CXX='-PIC'
13846             ;;
13847           *)
13848             ;;
13849         esac
13850         ;;
13851       sunos4*)
13852         case $cc_basename in
13853           CC*)
13854             # Sun C++ 4.x
13855             lt_prog_compiler_pic_CXX='-pic'
13856             lt_prog_compiler_static_CXX='-Bstatic'
13857             ;;
13858           lcc*)
13859             # Lucid
13860             lt_prog_compiler_pic_CXX='-pic'
13861             ;;
13862           *)
13863             ;;
13864         esac
13865         ;;
13866       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13867         case $cc_basename in
13868           CC*)
13869             lt_prog_compiler_wl_CXX='-Wl,'
13870             lt_prog_compiler_pic_CXX='-KPIC'
13871             lt_prog_compiler_static_CXX='-Bstatic'
13872             ;;
13873         esac
13874         ;;
13875       tandem*)
13876         case $cc_basename in
13877           NCC*)
13878             # NonStop-UX NCC 3.20
13879             lt_prog_compiler_pic_CXX='-KPIC'
13880             ;;
13881           *)
13882             ;;
13883         esac
13884         ;;
13885       vxworks*)
13886         ;;
13887       *)
13888         lt_prog_compiler_can_build_shared_CXX=no
13889         ;;
13890     esac
13891   fi
13892
13893 case $host_os in
13894   # For platforms which do not support PIC, -DPIC is meaningless:
13895   *djgpp*)
13896     lt_prog_compiler_pic_CXX=
13897     ;;
13898   *)
13899     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13900     ;;
13901 esac
13902
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13905 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13909 fi
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13911 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13912 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13913
13914 #
13915 # Check to make sure the PIC flag actually works.
13916 #
13917 if test -n "$lt_prog_compiler_pic_CXX"; then
13918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13919 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13920 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13921   $as_echo_n "(cached) " >&6
13922 else
13923   lt_cv_prog_compiler_pic_works_CXX=no
13924    ac_outfile=conftest.$ac_objext
13925    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13926    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13927    # Insert the option either (1) after the last *FLAGS variable, or
13928    # (2) before a word containing "conftest.", or (3) at the end.
13929    # Note that $ac_compile itself does not contain backslashes and begins
13930    # with a dollar sign (not a hyphen), so the echo should work correctly.
13931    # The option is referenced via a variable to avoid confusing sed.
13932    lt_compile=`echo "$ac_compile" | $SED \
13933    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13935    -e 's:$: $lt_compiler_flag:'`
13936    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13937    (eval "$lt_compile" 2>conftest.err)
13938    ac_status=$?
13939    cat conftest.err >&5
13940    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941    if (exit $ac_status) && test -s "$ac_outfile"; then
13942      # The compiler can only warn and ignore the option if not recognized
13943      # So say no if there are warnings other than the usual output.
13944      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13945      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13946      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13947        lt_cv_prog_compiler_pic_works_CXX=yes
13948      fi
13949    fi
13950    $RM conftest*
13951
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13954 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13955
13956 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13957     case $lt_prog_compiler_pic_CXX in
13958      "" | " "*) ;;
13959      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13960      esac
13961 else
13962     lt_prog_compiler_pic_CXX=
13963      lt_prog_compiler_can_build_shared_CXX=no
13964 fi
13965
13966 fi
13967
13968
13969
13970
13971
13972 #
13973 # Check to make sure the static flag actually works.
13974 #
13975 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13977 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13978 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13979   $as_echo_n "(cached) " >&6
13980 else
13981   lt_cv_prog_compiler_static_works_CXX=no
13982    save_LDFLAGS="$LDFLAGS"
13983    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13984    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13985    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13986      # The linker can only warn and ignore the option if not recognized
13987      # So say no if there are warnings
13988      if test -s conftest.err; then
13989        # Append any errors to the config.log.
13990        cat conftest.err 1>&5
13991        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13992        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13993        if diff conftest.exp conftest.er2 >/dev/null; then
13994          lt_cv_prog_compiler_static_works_CXX=yes
13995        fi
13996      else
13997        lt_cv_prog_compiler_static_works_CXX=yes
13998      fi
13999    fi
14000    $RM -r conftest*
14001    LDFLAGS="$save_LDFLAGS"
14002
14003 fi
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14005 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14006
14007 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14008     :
14009 else
14010     lt_prog_compiler_static_CXX=
14011 fi
14012
14013
14014
14015
14016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14017 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14018 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14019   $as_echo_n "(cached) " >&6
14020 else
14021   lt_cv_prog_compiler_c_o_CXX=no
14022    $RM -r conftest 2>/dev/null
14023    mkdir conftest
14024    cd conftest
14025    mkdir out
14026    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027
14028    lt_compiler_flag="-o out/conftest2.$ac_objext"
14029    # Insert the option either (1) after the last *FLAGS variable, or
14030    # (2) before a word containing "conftest.", or (3) at the end.
14031    # Note that $ac_compile itself does not contain backslashes and begins
14032    # with a dollar sign (not a hyphen), so the echo should work correctly.
14033    lt_compile=`echo "$ac_compile" | $SED \
14034    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036    -e 's:$: $lt_compiler_flag:'`
14037    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14038    (eval "$lt_compile" 2>out/conftest.err)
14039    ac_status=$?
14040    cat out/conftest.err >&5
14041    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14043    then
14044      # The compiler can only warn and ignore the option if not recognized
14045      # So say no if there are warnings
14046      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14047      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14048      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14049        lt_cv_prog_compiler_c_o_CXX=yes
14050      fi
14051    fi
14052    chmod u+w . 2>&5
14053    $RM conftest*
14054    # SGI C++ compiler will create directory out/ii_files/ for
14055    # template instantiation
14056    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14057    $RM out/* && rmdir out
14058    cd ..
14059    $RM -r conftest
14060    $RM conftest*
14061
14062 fi
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14064 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14065
14066
14067
14068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14069 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14070 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14071   $as_echo_n "(cached) " >&6
14072 else
14073   lt_cv_prog_compiler_c_o_CXX=no
14074    $RM -r conftest 2>/dev/null
14075    mkdir conftest
14076    cd conftest
14077    mkdir out
14078    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14079
14080    lt_compiler_flag="-o out/conftest2.$ac_objext"
14081    # Insert the option either (1) after the last *FLAGS variable, or
14082    # (2) before a word containing "conftest.", or (3) at the end.
14083    # Note that $ac_compile itself does not contain backslashes and begins
14084    # with a dollar sign (not a hyphen), so the echo should work correctly.
14085    lt_compile=`echo "$ac_compile" | $SED \
14086    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14087    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14088    -e 's:$: $lt_compiler_flag:'`
14089    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14090    (eval "$lt_compile" 2>out/conftest.err)
14091    ac_status=$?
14092    cat out/conftest.err >&5
14093    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14095    then
14096      # The compiler can only warn and ignore the option if not recognized
14097      # So say no if there are warnings
14098      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14099      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14100      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14101        lt_cv_prog_compiler_c_o_CXX=yes
14102      fi
14103    fi
14104    chmod u+w . 2>&5
14105    $RM conftest*
14106    # SGI C++ compiler will create directory out/ii_files/ for
14107    # template instantiation
14108    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14109    $RM out/* && rmdir out
14110    cd ..
14111    $RM -r conftest
14112    $RM conftest*
14113
14114 fi
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14116 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14117
14118
14119
14120
14121 hard_links="nottested"
14122 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14123   # do not overwrite the value of need_locks provided by the user
14124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14125 $as_echo_n "checking if we can lock with hard links... " >&6; }
14126   hard_links=yes
14127   $RM conftest*
14128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14129   touch conftest.a
14130   ln conftest.a conftest.b 2>&5 || hard_links=no
14131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14133 $as_echo "$hard_links" >&6; }
14134   if test "$hard_links" = no; then
14135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14136 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14137     need_locks=warn
14138   fi
14139 else
14140   need_locks=no
14141 fi
14142
14143
14144
14145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14147
14148   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14149   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14150   case $host_os in
14151   aix[4-9]*)
14152     # If we're using GNU nm, then we don't want the "-C" option.
14153     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14154     # Also, AIX nm treats weak defined symbols like other global defined
14155     # symbols, whereas GNU nm marks them as "W".
14156     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14157       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'
14158     else
14159       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'
14160     fi
14161     ;;
14162   pw32*)
14163     export_symbols_cmds_CXX="$ltdll_cmds"
14164     ;;
14165   cygwin* | mingw* | cegcc*)
14166     case $cc_basename in
14167     cl*) ;;
14168     *)
14169       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'
14170       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14171       ;;
14172     esac
14173     ;;
14174   *)
14175     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14176     ;;
14177   esac
14178
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14180 $as_echo "$ld_shlibs_CXX" >&6; }
14181 test "$ld_shlibs_CXX" = no && can_build_shared=no
14182
14183 with_gnu_ld_CXX=$with_gnu_ld
14184
14185
14186
14187
14188
14189
14190 #
14191 # Do we need to explicitly link libc?
14192 #
14193 case "x$archive_cmds_need_lc_CXX" in
14194 x|xyes)
14195   # Assume -lc should be added
14196   archive_cmds_need_lc_CXX=yes
14197
14198   if test "$enable_shared" = yes && test "$GCC" = yes; then
14199     case $archive_cmds_CXX in
14200     *'~'*)
14201       # FIXME: we may have to deal with multi-command sequences.
14202       ;;
14203     '$CC '*)
14204       # Test whether the compiler implicitly links with -lc since on some
14205       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14206       # to ld, don't add -lc before -lgcc.
14207       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14208 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14209 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14210   $as_echo_n "(cached) " >&6
14211 else
14212   $RM conftest*
14213         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14214
14215         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14216   (eval $ac_compile) 2>&5
14217   ac_status=$?
14218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14219   test $ac_status = 0; } 2>conftest.err; then
14220           soname=conftest
14221           lib=conftest
14222           libobjs=conftest.$ac_objext
14223           deplibs=
14224           wl=$lt_prog_compiler_wl_CXX
14225           pic_flag=$lt_prog_compiler_pic_CXX
14226           compiler_flags=-v
14227           linker_flags=-v
14228           verstring=
14229           output_objdir=.
14230           libname=conftest
14231           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14232           allow_undefined_flag_CXX=
14233           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14234   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14235   ac_status=$?
14236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237   test $ac_status = 0; }
14238           then
14239             lt_cv_archive_cmds_need_lc_CXX=no
14240           else
14241             lt_cv_archive_cmds_need_lc_CXX=yes
14242           fi
14243           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14244         else
14245           cat conftest.err 1>&5
14246         fi
14247         $RM conftest*
14248
14249 fi
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14251 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14252       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14253       ;;
14254     esac
14255   fi
14256   ;;
14257 esac
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14323 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14324
14325 library_names_spec=
14326 libname_spec='lib$name'
14327 soname_spec=
14328 shrext_cmds=".so"
14329 postinstall_cmds=
14330 postuninstall_cmds=
14331 finish_cmds=
14332 finish_eval=
14333 shlibpath_var=
14334 shlibpath_overrides_runpath=unknown
14335 version_type=none
14336 dynamic_linker="$host_os ld.so"
14337 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14338 need_lib_prefix=unknown
14339 hardcode_into_libs=no
14340
14341 # when you set need_version to no, make sure it does not cause -set_version
14342 # flags to be left without arguments
14343 need_version=unknown
14344
14345 case $host_os in
14346 aix3*)
14347   version_type=linux
14348   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14349   shlibpath_var=LIBPATH
14350
14351   # AIX 3 has no versioning support, so we append a major version to the name.
14352   soname_spec='${libname}${release}${shared_ext}$major'
14353   ;;
14354
14355 aix[4-9]*)
14356   version_type=linux
14357   need_lib_prefix=no
14358   need_version=no
14359   hardcode_into_libs=yes
14360   if test "$host_cpu" = ia64; then
14361     # AIX 5 supports IA64
14362     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14363     shlibpath_var=LD_LIBRARY_PATH
14364   else
14365     # With GCC up to 2.95.x, collect2 would create an import file
14366     # for dependence libraries.  The import file would start with
14367     # the line `#! .'.  This would cause the generated library to
14368     # depend on `.', always an invalid library.  This was fixed in
14369     # development snapshots of GCC prior to 3.0.
14370     case $host_os in
14371       aix4 | aix4.[01] | aix4.[01].*)
14372       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14373            echo ' yes '
14374            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14375         :
14376       else
14377         can_build_shared=no
14378       fi
14379       ;;
14380     esac
14381     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14382     # soname into executable. Probably we can add versioning support to
14383     # collect2, so additional links can be useful in future.
14384     if test "$aix_use_runtimelinking" = yes; then
14385       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14386       # instead of lib<name>.a to let people know that these are not
14387       # typical AIX shared libraries.
14388       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389     else
14390       # We preserve .a as extension for shared libraries through AIX4.2
14391       # and later when we are not doing run time linking.
14392       library_names_spec='${libname}${release}.a $libname.a'
14393       soname_spec='${libname}${release}${shared_ext}$major'
14394     fi
14395     shlibpath_var=LIBPATH
14396   fi
14397   ;;
14398
14399 amigaos*)
14400   case $host_cpu in
14401   powerpc)
14402     # Since July 2007 AmigaOS4 officially supports .so libraries.
14403     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405     ;;
14406   m68k)
14407     library_names_spec='$libname.ixlibrary $libname.a'
14408     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14409     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'
14410     ;;
14411   esac
14412   ;;
14413
14414 beos*)
14415   library_names_spec='${libname}${shared_ext}'
14416   dynamic_linker="$host_os ld.so"
14417   shlibpath_var=LIBRARY_PATH
14418   ;;
14419
14420 bsdi[45]*)
14421   version_type=linux
14422   need_version=no
14423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424   soname_spec='${libname}${release}${shared_ext}$major'
14425   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14426   shlibpath_var=LD_LIBRARY_PATH
14427   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14428   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14429   # the default ld.so.conf also contains /usr/contrib/lib and
14430   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14431   # libtool to hard-code these into programs
14432   ;;
14433
14434 cygwin* | mingw* | pw32* | cegcc*)
14435   version_type=windows
14436   shrext_cmds=".dll"
14437   need_version=no
14438   need_lib_prefix=no
14439
14440   case $GCC,$cc_basename in
14441   yes,*)
14442     # gcc
14443     library_names_spec='$libname.dll.a'
14444     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14445     postinstall_cmds='base_file=`basename \${file}`~
14446       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14447       dldir=$destdir/`dirname \$dlpath`~
14448       test -d \$dldir || mkdir -p \$dldir~
14449       $install_prog $dir/$dlname \$dldir/$dlname~
14450       chmod a+x \$dldir/$dlname~
14451       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14452         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14453       fi'
14454     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14455       dlpath=$dir/\$dldll~
14456        $RM \$dlpath'
14457     shlibpath_overrides_runpath=yes
14458
14459     case $host_os in
14460     cygwin*)
14461       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14462       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14463
14464       ;;
14465     mingw* | cegcc*)
14466       # MinGW DLLs use traditional 'lib' prefix
14467       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14468       ;;
14469     pw32*)
14470       # pw32 DLLs use 'pw' prefix rather than 'lib'
14471       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14472       ;;
14473     esac
14474     dynamic_linker='Win32 ld.exe'
14475     ;;
14476
14477   *,cl*)
14478     # Native MSVC
14479     libname_spec='$name'
14480     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481     library_names_spec='${libname}.dll.lib'
14482
14483     case $build_os in
14484     mingw*)
14485       sys_lib_search_path_spec=
14486       lt_save_ifs=$IFS
14487       IFS=';'
14488       for lt_path in $LIB
14489       do
14490         IFS=$lt_save_ifs
14491         # Let DOS variable expansion print the short 8.3 style file name.
14492         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14493         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14494       done
14495       IFS=$lt_save_ifs
14496       # Convert to MSYS style.
14497       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14498       ;;
14499     cygwin*)
14500       # Convert to unix form, then to dos form, then back to unix form
14501       # but this time dos style (no spaces!) so that the unix form looks
14502       # like /cygdrive/c/PROGRA~1:/cygdr...
14503       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14504       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14505       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14506       ;;
14507     *)
14508       sys_lib_search_path_spec="$LIB"
14509       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14510         # It is most probably a Windows format PATH.
14511         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14512       else
14513         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14514       fi
14515       # FIXME: find the short name or the path components, as spaces are
14516       # common. (e.g. "Program Files" -> "PROGRA~1")
14517       ;;
14518     esac
14519
14520     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14521     postinstall_cmds='base_file=`basename \${file}`~
14522       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14523       dldir=$destdir/`dirname \$dlpath`~
14524       test -d \$dldir || mkdir -p \$dldir~
14525       $install_prog $dir/$dlname \$dldir/$dlname'
14526     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14527       dlpath=$dir/\$dldll~
14528        $RM \$dlpath'
14529     shlibpath_overrides_runpath=yes
14530     dynamic_linker='Win32 link.exe'
14531     ;;
14532
14533   *)
14534     # Assume MSVC wrapper
14535     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14536     dynamic_linker='Win32 ld.exe'
14537     ;;
14538   esac
14539   # FIXME: first we should search . and the directory the executable is in
14540   shlibpath_var=PATH
14541   ;;
14542
14543 darwin* | rhapsody*)
14544   dynamic_linker="$host_os dyld"
14545   version_type=darwin
14546   need_lib_prefix=no
14547   need_version=no
14548   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14549   soname_spec='${libname}${release}${major}$shared_ext'
14550   shlibpath_overrides_runpath=yes
14551   shlibpath_var=DYLD_LIBRARY_PATH
14552   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14553
14554   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14555   ;;
14556
14557 dgux*)
14558   version_type=linux
14559   need_lib_prefix=no
14560   need_version=no
14561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14562   soname_spec='${libname}${release}${shared_ext}$major'
14563   shlibpath_var=LD_LIBRARY_PATH
14564   ;;
14565
14566 freebsd1*)
14567   dynamic_linker=no
14568   ;;
14569
14570 freebsd* | dragonfly*)
14571   # DragonFly does not have aout.  When/if they implement a new
14572   # versioning mechanism, adjust this.
14573   if test -x /usr/bin/objformat; then
14574     objformat=`/usr/bin/objformat`
14575   else
14576     case $host_os in
14577     freebsd[123]*) objformat=aout ;;
14578     *) objformat=elf ;;
14579     esac
14580   fi
14581   version_type=freebsd-$objformat
14582   case $version_type in
14583     freebsd-elf*)
14584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14585       need_version=no
14586       need_lib_prefix=no
14587       ;;
14588     freebsd-*)
14589       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14590       need_version=yes
14591       ;;
14592   esac
14593   shlibpath_var=LD_LIBRARY_PATH
14594   case $host_os in
14595   freebsd2*)
14596     shlibpath_overrides_runpath=yes
14597     ;;
14598   freebsd3.[01]* | freebsdelf3.[01]*)
14599     shlibpath_overrides_runpath=yes
14600     hardcode_into_libs=yes
14601     ;;
14602   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14603   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14604     shlibpath_overrides_runpath=no
14605     hardcode_into_libs=yes
14606     ;;
14607   *) # from 4.6 on, and DragonFly
14608     shlibpath_overrides_runpath=yes
14609     hardcode_into_libs=yes
14610     ;;
14611   esac
14612   ;;
14613
14614 gnu*)
14615   version_type=linux
14616   need_lib_prefix=no
14617   need_version=no
14618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14619   soname_spec='${libname}${release}${shared_ext}$major'
14620   shlibpath_var=LD_LIBRARY_PATH
14621   hardcode_into_libs=yes
14622   ;;
14623
14624 haiku*)
14625   version_type=linux
14626   need_lib_prefix=no
14627   need_version=no
14628   dynamic_linker="$host_os runtime_loader"
14629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14630   soname_spec='${libname}${release}${shared_ext}$major'
14631   shlibpath_var=LIBRARY_PATH
14632   shlibpath_overrides_runpath=yes
14633   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14634   hardcode_into_libs=yes
14635   ;;
14636
14637 hpux9* | hpux10* | hpux11*)
14638   # Give a soname corresponding to the major version so that dld.sl refuses to
14639   # link against other versions.
14640   version_type=sunos
14641   need_lib_prefix=no
14642   need_version=no
14643   case $host_cpu in
14644   ia64*)
14645     shrext_cmds='.so'
14646     hardcode_into_libs=yes
14647     dynamic_linker="$host_os dld.so"
14648     shlibpath_var=LD_LIBRARY_PATH
14649     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651     soname_spec='${libname}${release}${shared_ext}$major'
14652     if test "X$HPUX_IA64_MODE" = X32; then
14653       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14654     else
14655       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14656     fi
14657     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14658     ;;
14659   hppa*64*)
14660     shrext_cmds='.sl'
14661     hardcode_into_libs=yes
14662     dynamic_linker="$host_os dld.sl"
14663     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14664     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666     soname_spec='${libname}${release}${shared_ext}$major'
14667     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14668     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14669     ;;
14670   *)
14671     shrext_cmds='.sl'
14672     dynamic_linker="$host_os dld.sl"
14673     shlibpath_var=SHLIB_PATH
14674     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676     soname_spec='${libname}${release}${shared_ext}$major'
14677     ;;
14678   esac
14679   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14680   postinstall_cmds='chmod 555 $lib'
14681   # or fails outright, so override atomically:
14682   install_override_mode=555
14683   ;;
14684
14685 interix[3-9]*)
14686   version_type=linux
14687   need_lib_prefix=no
14688   need_version=no
14689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14690   soname_spec='${libname}${release}${shared_ext}$major'
14691   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14692   shlibpath_var=LD_LIBRARY_PATH
14693   shlibpath_overrides_runpath=no
14694   hardcode_into_libs=yes
14695   ;;
14696
14697 irix5* | irix6* | nonstopux*)
14698   case $host_os in
14699     nonstopux*) version_type=nonstopux ;;
14700     *)
14701         if test "$lt_cv_prog_gnu_ld" = yes; then
14702                 version_type=linux
14703         else
14704                 version_type=irix
14705         fi ;;
14706   esac
14707   need_lib_prefix=no
14708   need_version=no
14709   soname_spec='${libname}${release}${shared_ext}$major'
14710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14711   case $host_os in
14712   irix5* | nonstopux*)
14713     libsuff= shlibsuff=
14714     ;;
14715   *)
14716     case $LD in # libtool.m4 will add one of these switches to LD
14717     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14718       libsuff= shlibsuff= libmagic=32-bit;;
14719     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14720       libsuff=32 shlibsuff=N32 libmagic=N32;;
14721     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14722       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14723     *) libsuff= shlibsuff= libmagic=never-match;;
14724     esac
14725     ;;
14726   esac
14727   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14728   shlibpath_overrides_runpath=no
14729   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14730   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14731   hardcode_into_libs=yes
14732   ;;
14733
14734 # No shared lib support for Linux oldld, aout, or coff.
14735 linux*oldld* | linux*aout* | linux*coff*)
14736   dynamic_linker=no
14737   ;;
14738
14739 # This must be Linux ELF.
14740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14741   version_type=linux
14742   need_lib_prefix=no
14743   need_version=no
14744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745   soname_spec='${libname}${release}${shared_ext}$major'
14746   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   shlibpath_overrides_runpath=no
14749
14750   # Some binutils ld are patched to set DT_RUNPATH
14751   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14752   $as_echo_n "(cached) " >&6
14753 else
14754   lt_cv_shlibpath_overrides_runpath=no
14755     save_LDFLAGS=$LDFLAGS
14756     save_libdir=$libdir
14757     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14758          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h.  */
14761
14762 int
14763 main ()
14764 {
14765
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_cxx_try_link "$LINENO"; then :
14771   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14772   lt_cv_shlibpath_overrides_runpath=yes
14773 fi
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext \
14776     conftest$ac_exeext conftest.$ac_ext
14777     LDFLAGS=$save_LDFLAGS
14778     libdir=$save_libdir
14779
14780 fi
14781
14782   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14783
14784   # This implies no fast_install, which is unacceptable.
14785   # Some rework will be needed to allow for fast_install
14786   # before this can be enabled.
14787   hardcode_into_libs=yes
14788
14789   # Append ld.so.conf contents to the search path
14790   if test -f /etc/ld.so.conf; then
14791     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' ' '`
14792     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14793   fi
14794
14795   # We used to test for /lib/ld.so.1 and disable shared libraries on
14796   # powerpc, because MkLinux only supported shared libraries with the
14797   # GNU dynamic linker.  Since this was broken with cross compilers,
14798   # most powerpc-linux boxes support dynamic linking these days and
14799   # people can always --disable-shared, the test was removed, and we
14800   # assume the GNU/Linux dynamic linker is in use.
14801   dynamic_linker='GNU/Linux ld.so'
14802   ;;
14803
14804 netbsd*)
14805   version_type=sunos
14806   need_lib_prefix=no
14807   need_version=no
14808   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14810     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14811     dynamic_linker='NetBSD (a.out) ld.so'
14812   else
14813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14814     soname_spec='${libname}${release}${shared_ext}$major'
14815     dynamic_linker='NetBSD ld.elf_so'
14816   fi
14817   shlibpath_var=LD_LIBRARY_PATH
14818   shlibpath_overrides_runpath=yes
14819   hardcode_into_libs=yes
14820   ;;
14821
14822 newsos6)
14823   version_type=linux
14824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825   shlibpath_var=LD_LIBRARY_PATH
14826   shlibpath_overrides_runpath=yes
14827   ;;
14828
14829 *nto* | *qnx*)
14830   version_type=qnx
14831   need_lib_prefix=no
14832   need_version=no
14833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834   soname_spec='${libname}${release}${shared_ext}$major'
14835   shlibpath_var=LD_LIBRARY_PATH
14836   shlibpath_overrides_runpath=no
14837   hardcode_into_libs=yes
14838   dynamic_linker='ldqnx.so'
14839   ;;
14840
14841 openbsd*)
14842   version_type=sunos
14843   sys_lib_dlsearch_path_spec="/usr/lib"
14844   need_lib_prefix=no
14845   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14846   case $host_os in
14847     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14848     *)                          need_version=no  ;;
14849   esac
14850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14851   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14852   shlibpath_var=LD_LIBRARY_PATH
14853   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14854     case $host_os in
14855       openbsd2.[89] | openbsd2.[89].*)
14856         shlibpath_overrides_runpath=no
14857         ;;
14858       *)
14859         shlibpath_overrides_runpath=yes
14860         ;;
14861       esac
14862   else
14863     shlibpath_overrides_runpath=yes
14864   fi
14865   ;;
14866
14867 os2*)
14868   libname_spec='$name'
14869   shrext_cmds=".dll"
14870   need_lib_prefix=no
14871   library_names_spec='$libname${shared_ext} $libname.a'
14872   dynamic_linker='OS/2 ld.exe'
14873   shlibpath_var=LIBPATH
14874   ;;
14875
14876 osf3* | osf4* | osf5*)
14877   version_type=osf
14878   need_lib_prefix=no
14879   need_version=no
14880   soname_spec='${libname}${release}${shared_ext}$major'
14881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882   shlibpath_var=LD_LIBRARY_PATH
14883   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14884   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14885   ;;
14886
14887 rdos*)
14888   dynamic_linker=no
14889   ;;
14890
14891 solaris*)
14892   version_type=linux
14893   need_lib_prefix=no
14894   need_version=no
14895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896   soname_spec='${libname}${release}${shared_ext}$major'
14897   shlibpath_var=LD_LIBRARY_PATH
14898   shlibpath_overrides_runpath=yes
14899   hardcode_into_libs=yes
14900   # ldd complains unless libraries are executable
14901   postinstall_cmds='chmod +x $lib'
14902   ;;
14903
14904 sunos4*)
14905   version_type=sunos
14906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14907   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14908   shlibpath_var=LD_LIBRARY_PATH
14909   shlibpath_overrides_runpath=yes
14910   if test "$with_gnu_ld" = yes; then
14911     need_lib_prefix=no
14912   fi
14913   need_version=yes
14914   ;;
14915
14916 sysv4 | sysv4.3*)
14917   version_type=linux
14918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919   soname_spec='${libname}${release}${shared_ext}$major'
14920   shlibpath_var=LD_LIBRARY_PATH
14921   case $host_vendor in
14922     sni)
14923       shlibpath_overrides_runpath=no
14924       need_lib_prefix=no
14925       runpath_var=LD_RUN_PATH
14926       ;;
14927     siemens)
14928       need_lib_prefix=no
14929       ;;
14930     motorola)
14931       need_lib_prefix=no
14932       need_version=no
14933       shlibpath_overrides_runpath=no
14934       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14935       ;;
14936   esac
14937   ;;
14938
14939 sysv4*MP*)
14940   if test -d /usr/nec ;then
14941     version_type=linux
14942     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14943     soname_spec='$libname${shared_ext}.$major'
14944     shlibpath_var=LD_LIBRARY_PATH
14945   fi
14946   ;;
14947
14948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14949   version_type=freebsd-elf
14950   need_lib_prefix=no
14951   need_version=no
14952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14953   soname_spec='${libname}${release}${shared_ext}$major'
14954   shlibpath_var=LD_LIBRARY_PATH
14955   shlibpath_overrides_runpath=yes
14956   hardcode_into_libs=yes
14957   if test "$with_gnu_ld" = yes; then
14958     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14959   else
14960     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14961     case $host_os in
14962       sco3.2v5*)
14963         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14964         ;;
14965     esac
14966   fi
14967   sys_lib_dlsearch_path_spec='/usr/lib'
14968   ;;
14969
14970 tpf*)
14971   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14972   version_type=linux
14973   need_lib_prefix=no
14974   need_version=no
14975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976   shlibpath_var=LD_LIBRARY_PATH
14977   shlibpath_overrides_runpath=no
14978   hardcode_into_libs=yes
14979   ;;
14980
14981 uts4*)
14982   version_type=linux
14983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984   soname_spec='${libname}${release}${shared_ext}$major'
14985   shlibpath_var=LD_LIBRARY_PATH
14986   ;;
14987
14988 *)
14989   dynamic_linker=no
14990   ;;
14991 esac
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14993 $as_echo "$dynamic_linker" >&6; }
14994 test "$dynamic_linker" = no && can_build_shared=no
14995
14996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14997 if test "$GCC" = yes; then
14998   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14999 fi
15000
15001 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15002   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15003 fi
15004 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15005   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15006 fi
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15046 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15047 hardcode_action_CXX=
15048 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15049    test -n "$runpath_var_CXX" ||
15050    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15051
15052   # We can hardcode non-existent directories.
15053   if test "$hardcode_direct_CXX" != no &&
15054      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15055      # have to relink, otherwise we might link with an installed library
15056      # when we should be linking with a yet-to-be-installed one
15057      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15058      test "$hardcode_minus_L_CXX" != no; then
15059     # Linking always hardcodes the temporary library directory.
15060     hardcode_action_CXX=relink
15061   else
15062     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15063     hardcode_action_CXX=immediate
15064   fi
15065 else
15066   # We cannot hardcode anything, or else we can only hardcode existing
15067   # directories.
15068   hardcode_action_CXX=unsupported
15069 fi
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15071 $as_echo "$hardcode_action_CXX" >&6; }
15072
15073 if test "$hardcode_action_CXX" = relink ||
15074    test "$inherit_rpath_CXX" = yes; then
15075   # Fast installation is not supported
15076   enable_fast_install=no
15077 elif test "$shlibpath_overrides_runpath" = yes ||
15078      test "$enable_shared" = no; then
15079   # Fast installation is not necessary
15080   enable_fast_install=needless
15081 fi
15082
15083
15084
15085
15086
15087
15088
15089   fi # test -n "$compiler"
15090
15091   CC=$lt_save_CC
15092   CFLAGS=$lt_save_CFLAGS
15093   LDCXX=$LD
15094   LD=$lt_save_LD
15095   GCC=$lt_save_GCC
15096   with_gnu_ld=$lt_save_with_gnu_ld
15097   lt_cv_path_LDCXX=$lt_cv_path_LD
15098   lt_cv_path_LD=$lt_save_path_LD
15099   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15100   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15101 fi # test "$_lt_caught_CXX_error" != yes
15102
15103 ac_ext=c
15104 ac_cpp='$CPP $CPPFLAGS'
15105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121         ac_config_commands="$ac_config_commands libtool"
15122
15123
15124
15125
15126 # Only expand once:
15127
15128
15129 else
15130
15131   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15132
15133     enable_dlopen=yes
15134
15135
15136
15137
15138 fi
15139
15140
15141
15142 # Check whether --enable-strict-dependencies was given.
15143 if test "${enable_strict_dependencies+set}" = set; then :
15144   enableval=$enable_strict_dependencies;
15145 fi
15146
15147
15148 docdir='${datadir}/doc/freeradius'
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15150 $as_echo_n "checking docdir... " >&6; }
15151
15152 # Check whether --with-docdir was given.
15153 if test "${with_docdir+set}" = set; then :
15154   withval=$with_docdir;  case "$withval" in
15155     no)
15156         docdir=no
15157         ;;
15158     yes)
15159         ;;
15160     [\\/$]* | ?:[\\/]* )
15161         docdir="$withval"
15162         ;;
15163     *)
15164         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15165         ;;
15166   esac
15167
15168 fi
15169
15170
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15172 $as_echo "$docdir" >&6; }
15173 if test "x$docdir" = xno; then
15174         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15175 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15176 fi
15177
15178 logdir='${localstatedir}/log/radius'
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15180 $as_echo_n "checking logdir... " >&6; }
15181
15182 # Check whether --with-logdir was given.
15183 if test "${with_logdir+set}" = set; then :
15184   withval=$with_logdir;  case "$withval" in
15185     no)
15186         as_fn_error $? "Need logdir" "$LINENO" 5
15187         ;;
15188     yes)
15189         ;;
15190     [\\/$]* | ?:[\\/]* )
15191         logdir="$withval"
15192         ;;
15193     *)
15194         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15195         ;;
15196   esac
15197
15198 fi
15199
15200
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15202 $as_echo "$logdir" >&6; }
15203
15204 radacctdir='${logdir}/radacct'
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15206 $as_echo_n "checking radacctdir... " >&6; }
15207
15208 # Check whether --with-radacctdir was given.
15209 if test "${with_radacctdir+set}" = set; then :
15210   withval=$with_radacctdir;  case "$withval" in
15211     no)
15212         as_fn_error $? "Need radacctdir" "$LINENO" 5
15213         ;;
15214     yes)
15215         ;;
15216     [\\/$]* | ?:[\\/]* )
15217         radacctdir="$withval"
15218         ;;
15219     *)
15220         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15221         ;;
15222   esac
15223
15224 fi
15225
15226
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15228 $as_echo "$radacctdir" >&6; }
15229
15230 raddbdir='${sysconfdir}/raddb'
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15232 $as_echo_n "checking raddbdir... " >&6; }
15233
15234 # Check whether --with-raddbdir was given.
15235 if test "${with_raddbdir+set}" = set; then :
15236   withval=$with_raddbdir;  case "$withval" in
15237     no)
15238         as_fn_error $? "Need raddbdir" "$LINENO" 5
15239         ;;
15240     yes)
15241         ;;
15242     [\\/$]* | ?:[\\/]* )
15243         raddbdir="$withval"
15244         ;;
15245     *)
15246         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15247         ;;
15248   esac
15249
15250 fi
15251
15252
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15254 $as_echo "$raddbdir" >&6; }
15255
15256 ASCEND_BINARY=yes
15257
15258 # Check whether --with-ascend-binary was given.
15259 if test "${with_ascend_binary+set}" = set; then :
15260   withval=$with_ascend_binary;  case "$withval" in
15261     yes)
15262         ;;
15263     *)
15264         ASCEND_BINARY=""
15265   esac
15266
15267 fi
15268
15269 if test "X$ASCEND_BINARY" = "Xyes"; then
15270
15271 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
15272
15273 fi
15274
15275 WITH_THREADS=yes
15276
15277 # Check whether --with-threads was given.
15278 if test "${with_threads+set}" = set; then :
15279   withval=$with_threads;  case "$withval" in
15280     yes)
15281         ;;
15282     *)
15283         WITH_THREADS=""
15284   esac
15285
15286 fi
15287
15288
15289 WITH_VMPS=yes
15290
15291 # Check whether --with-vmps was given.
15292 if test "${with_vmps+set}" = set; then :
15293   withval=$with_vmps;  case "$withval" in
15294     yes)
15295         ;;
15296     *)
15297         WITH_VMPS=no
15298   esac
15299
15300 fi
15301
15302 if test "x$WITH_VMPS" = "xyes"; then
15303
15304 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15305
15306 fi
15307
15308 WITH_DHCP=yes
15309
15310 # Check whether --with-dhcp was given.
15311 if test "${with_dhcp+set}" = set; then :
15312   withval=$with_dhcp;  case "$withval" in
15313     yes)
15314         ;;
15315     *)
15316         WITH_DHCP=no
15317   esac
15318
15319 fi
15320
15321 if test "x$WITH_DHCP" = "xyes"; then
15322
15323 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15324
15325 fi
15326
15327
15328 STATIC_MODULES=
15329
15330 # Check whether --with-static_modules was given.
15331 if test "${with_static_modules+set}" = set; then :
15332   withval=$with_static_modules;
15333   for i in $withval; do
15334     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15335   done
15336
15337 fi
15338
15339
15340 MODULES=
15341
15342 # Check whether --with-modules was given.
15343 if test "${with_modules+set}" = set; then :
15344   withval=$with_modules;
15345  for i in $withval; do
15346    MODULES="$MODULES $i"
15347  done
15348
15349 fi
15350
15351
15352 # Check whether --enable-developer was given.
15353 if test "${enable_developer+set}" = set; then :
15354   enableval=$enable_developer;  case "$enableval" in
15355     no)
15356         developer=no
15357         ;;
15358     *)
15359         developer=yes
15360   esac
15361
15362 fi
15363
15364
15365 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
15366     developer="yes"
15367 fi
15368
15369 if test "x$developer" != "xno" -a -d $srcdir/.git; then
15370     developer="yes"
15371 fi
15372
15373 EXPERIMENTAL=
15374
15375 # Check whether --with-experimental-modules was given.
15376 if test "${with_experimental_modules+set}" = set; then :
15377   withval=$with_experimental_modules;  case "$withval" in
15378     yes)
15379         EXPERIMENTAL=yes
15380         ;;
15381     *)
15382   esac
15383
15384 fi
15385
15386
15387 WITH_OPENSSL=yes
15388
15389 # Check whether --with-openssl was given.
15390 if test "${with_openssl+set}" = set; then :
15391   withval=$with_openssl;  case "$withval" in
15392     no)
15393         WITH_OPENSSL=no
15394         ;;
15395     *)
15396         WITH_OPENSSL=yes
15397         ;;
15398   esac
15399
15400 fi
15401
15402
15403 OPENSSL_INCLUDE_DIR=
15404
15405 # Check whether --with-openssl-includes was given.
15406 if test "${with_openssl_includes+set}" = set; then :
15407   withval=$with_openssl_includes;  case "$withval" in
15408     *) OPENSSL_INCLUDE_DIR="$withval"
15409         ;;
15410   esac
15411
15412 fi
15413
15414
15415 OPENSSL_LIB_DIR=
15416
15417 # Check whether --with-openssl-libraries was given.
15418 if test "${with_openssl_libraries+set}" = set; then :
15419   withval=$with_openssl_libraries;  case "$withval" in
15420     *) OPENSSL_LIB_DIR="$withval"
15421         ;;
15422   esac
15423
15424 fi
15425
15426
15427
15428
15429 # Check whether --with-rlm-FOO-lib-dir was given.
15430 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15431   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15432     *)
15433         ;;
15434   esac
15435
15436 fi
15437
15438
15439
15440 # Check whether --with-rlm-FOO-include-dir was given.
15441 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15442   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15443     *)
15444         ;;
15445   esac
15446
15447 fi
15448
15449
15450
15451 WITH_UDPFROMTO=no
15452
15453 # Check whether --with-udpfromto was given.
15454 if test "${with_udpfromto+set}" = set; then :
15455   withval=$with_udpfromto;  case "$withval" in
15456     yes)
15457         WITH_UDPFROMTO=yes
15458         ;;
15459     *)
15460         WITH_UDPFROMTO=no
15461   esac
15462
15463 fi
15464
15465
15466 if test "x$WITH_UDPFROMTO" = "xyes"; then
15467
15468 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15469
15470 fi
15471
15472
15473 CHECKRAD=checkrad.pl
15474 # Extract the first word of "perl", so it can be a program name with args.
15475 set dummy perl; ac_word=$2
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15477 $as_echo_n "checking for $ac_word... " >&6; }
15478 if ${ac_cv_path_PERL+:} false; then :
15479   $as_echo_n "(cached) " >&6
15480 else
15481   case $PERL in
15482   [\\/]* | ?:[\\/]*)
15483   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15484   ;;
15485   *)
15486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487 for as_dir in $PATH
15488 do
15489   IFS=$as_save_IFS
15490   test -z "$as_dir" && as_dir=.
15491     for ac_exec_ext in '' $ac_executable_extensions; do
15492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15493     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15495     break 2
15496   fi
15497 done
15498   done
15499 IFS=$as_save_IFS
15500
15501   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15502   ;;
15503 esac
15504 fi
15505 PERL=$ac_cv_path_PERL
15506 if test -n "$PERL"; then
15507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15508 $as_echo "$PERL" >&6; }
15509 else
15510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15511 $as_echo "no" >&6; }
15512 fi
15513
15514
15515 if test "x$ac_cv_path_PERL" = "x"; then
15516   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
15517 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15518 fi
15519 # Extract the first word of "snmpget", so it can be a program name with args.
15520 set dummy snmpget; ac_word=$2
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15522 $as_echo_n "checking for $ac_word... " >&6; }
15523 if ${ac_cv_path_SNMPGET+:} false; then :
15524   $as_echo_n "(cached) " >&6
15525 else
15526   case $SNMPGET in
15527   [\\/]* | ?:[\\/]*)
15528   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15529   ;;
15530   *)
15531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15532 for as_dir in $PATH
15533 do
15534   IFS=$as_save_IFS
15535   test -z "$as_dir" && as_dir=.
15536     for ac_exec_ext in '' $ac_executable_extensions; do
15537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15538     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15540     break 2
15541   fi
15542 done
15543   done
15544 IFS=$as_save_IFS
15545
15546   ;;
15547 esac
15548 fi
15549 SNMPGET=$ac_cv_path_SNMPGET
15550 if test -n "$SNMPGET"; then
15551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15552 $as_echo "$SNMPGET" >&6; }
15553 else
15554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15555 $as_echo "no" >&6; }
15556 fi
15557
15558
15559 if test "x$ac_cv_path_SNMPGET" = "x"; then
15560   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
15561 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15562 fi
15563
15564 # Extract the first word of "snmpwalk", so it can be a program name with args.
15565 set dummy snmpwalk; ac_word=$2
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15567 $as_echo_n "checking for $ac_word... " >&6; }
15568 if ${ac_cv_path_SNMPWALK+:} false; then :
15569   $as_echo_n "(cached) " >&6
15570 else
15571   case $SNMPWALK in
15572   [\\/]* | ?:[\\/]*)
15573   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15574   ;;
15575   *)
15576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15577 for as_dir in $PATH
15578 do
15579   IFS=$as_save_IFS
15580   test -z "$as_dir" && as_dir=.
15581     for ac_exec_ext in '' $ac_executable_extensions; do
15582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15583     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15585     break 2
15586   fi
15587 done
15588   done
15589 IFS=$as_save_IFS
15590
15591   ;;
15592 esac
15593 fi
15594 SNMPWALK=$ac_cv_path_SNMPWALK
15595 if test -n "$SNMPWALK"; then
15596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15597 $as_echo "$SNMPWALK" >&6; }
15598 else
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15600 $as_echo "no" >&6; }
15601 fi
15602
15603
15604 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15605   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
15606 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15607 fi
15608
15609 # Extract the first word of "rusers", so it can be a program name with args.
15610 set dummy rusers; ac_word=$2
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612 $as_echo_n "checking for $ac_word... " >&6; }
15613 if ${ac_cv_path_RUSERS+:} false; then :
15614   $as_echo_n "(cached) " >&6
15615 else
15616   case $RUSERS in
15617   [\\/]* | ?:[\\/]*)
15618   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15619   ;;
15620   *)
15621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15622 for as_dir in $PATH
15623 do
15624   IFS=$as_save_IFS
15625   test -z "$as_dir" && as_dir=.
15626     for ac_exec_ext in '' $ac_executable_extensions; do
15627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15628     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15630     break 2
15631   fi
15632 done
15633   done
15634 IFS=$as_save_IFS
15635
15636   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15637   ;;
15638 esac
15639 fi
15640 RUSERS=$ac_cv_path_RUSERS
15641 if test -n "$RUSERS"; then
15642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15643 $as_echo "$RUSERS" >&6; }
15644 else
15645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646 $as_echo "no" >&6; }
15647 fi
15648
15649
15650
15651 missing_dir=`cd $ac_aux_dir && pwd`
15652 # expand $ac_aux_dir to an absolute path
15653 am_aux_dir=`cd $ac_aux_dir && pwd`
15654
15655 if test x"${MISSING+set}" != xset; then
15656   case $am_aux_dir in
15657   *\ * | *\     *)
15658     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15659   *)
15660     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15661   esac
15662 fi
15663 # Use eval to expand $SHELL
15664 if eval "$MISSING --run true"; then
15665   am_missing_run="$MISSING --run "
15666 else
15667   am_missing_run=
15668   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15669 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15670 fi
15671
15672
15673 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15674
15675
15676 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15677
15678
15679 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15680
15681
15682 # Extract the first word of "locate", so it can be a program name with args.
15683 set dummy locate; ac_word=$2
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15685 $as_echo_n "checking for $ac_word... " >&6; }
15686 if ${ac_cv_path_LOCATE+:} false; then :
15687   $as_echo_n "(cached) " >&6
15688 else
15689   case $LOCATE in
15690   [\\/]* | ?:[\\/]*)
15691   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15692   ;;
15693   *)
15694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15695 for as_dir in $PATH
15696 do
15697   IFS=$as_save_IFS
15698   test -z "$as_dir" && as_dir=.
15699     for ac_exec_ext in '' $ac_executable_extensions; do
15700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15701     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15703     break 2
15704   fi
15705 done
15706   done
15707 IFS=$as_save_IFS
15708
15709   ;;
15710 esac
15711 fi
15712 LOCATE=$ac_cv_path_LOCATE
15713 if test -n "$LOCATE"; then
15714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15715 $as_echo "$LOCATE" >&6; }
15716 else
15717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718 $as_echo "no" >&6; }
15719 fi
15720
15721
15722 # Extract the first word of "dirname", so it can be a program name with args.
15723 set dummy dirname; ac_word=$2
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15725 $as_echo_n "checking for $ac_word... " >&6; }
15726 if ${ac_cv_path_DIRNAME+:} false; then :
15727   $as_echo_n "(cached) " >&6
15728 else
15729   case $DIRNAME in
15730   [\\/]* | ?:[\\/]*)
15731   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15732   ;;
15733   *)
15734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15735 for as_dir in $PATH
15736 do
15737   IFS=$as_save_IFS
15738   test -z "$as_dir" && as_dir=.
15739     for ac_exec_ext in '' $ac_executable_extensions; do
15740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15741     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15743     break 2
15744   fi
15745 done
15746   done
15747 IFS=$as_save_IFS
15748
15749   ;;
15750 esac
15751 fi
15752 DIRNAME=$ac_cv_path_DIRNAME
15753 if test -n "$DIRNAME"; then
15754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15755 $as_echo "$DIRNAME" >&6; }
15756 else
15757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758 $as_echo "no" >&6; }
15759 fi
15760
15761
15762 # Extract the first word of "grep", so it can be a program name with args.
15763 set dummy grep; ac_word=$2
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15765 $as_echo_n "checking for $ac_word... " >&6; }
15766 if ${ac_cv_path_GREP+:} false; then :
15767   $as_echo_n "(cached) " >&6
15768 else
15769   case $GREP in
15770   [\\/]* | ?:[\\/]*)
15771   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15772   ;;
15773   *)
15774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775 for as_dir in $PATH
15776 do
15777   IFS=$as_save_IFS
15778   test -z "$as_dir" && as_dir=.
15779     for ac_exec_ext in '' $ac_executable_extensions; do
15780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15781     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15783     break 2
15784   fi
15785 done
15786   done
15787 IFS=$as_save_IFS
15788
15789   ;;
15790 esac
15791 fi
15792 GREP=$ac_cv_path_GREP
15793 if test -n "$GREP"; then
15794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15795 $as_echo "$GREP" >&6; }
15796 else
15797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15798 $as_echo "no" >&6; }
15799 fi
15800
15801
15802
15803
15804 old_CFLAGS=$CFLAGS
15805 if test "x$WITH_THREADS" = "xyes"; then
15806   if test $ac_cv_prog_suncc = "yes"; then
15807     CFLAGS="$CFLAGS -mt"
15808   fi
15809
15810   for ac_header in pthread.h
15811 do :
15812   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15813 if test "x$ac_cv_header_pthread_h" = xyes; then :
15814   cat >>confdefs.h <<_ACEOF
15815 #define HAVE_PTHREAD_H 1
15816 _ACEOF
15817
15818 else
15819    WITH_THREADS="no"
15820 fi
15821
15822 done
15823
15824
15825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15826 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15827 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15828   $as_echo_n "(cached) " >&6
15829 else
15830   ac_check_lib_save_LIBS=$LIBS
15831 LIBS="-lpthread  $LIBS"
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h.  */
15834
15835 /* Override any GCC internal prototype to avoid an error.
15836    Use char because int might match the return type of a GCC
15837    builtin and then its argument prototype would still apply.  */
15838 #ifdef __cplusplus
15839 extern "C"
15840 #endif
15841 char pthread_create ();
15842 int
15843 main ()
15844 {
15845 return pthread_create ();
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 if ac_fn_c_try_link "$LINENO"; then :
15851   ac_cv_lib_pthread_pthread_create=yes
15852 else
15853   ac_cv_lib_pthread_pthread_create=no
15854 fi
15855 rm -f core conftest.err conftest.$ac_objext \
15856     conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15858 fi
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15860 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15861 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15862    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15863                   LIBS="-lpthread $LIBS"
15864 else
15865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15866 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15867 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15868   $as_echo_n "(cached) " >&6
15869 else
15870   ac_check_lib_save_LIBS=$LIBS
15871 LIBS="-lc_r  $LIBS"
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h.  */
15874
15875 /* Override any GCC internal prototype to avoid an error.
15876    Use char because int might match the return type of a GCC
15877    builtin and then its argument prototype would still apply.  */
15878 #ifdef __cplusplus
15879 extern "C"
15880 #endif
15881 char pthread_create ();
15882 int
15883 main ()
15884 {
15885 return pthread_create ();
15886   ;
15887   return 0;
15888 }
15889 _ACEOF
15890 if ac_fn_c_try_link "$LINENO"; then :
15891   ac_cv_lib_c_r_pthread_create=yes
15892 else
15893   ac_cv_lib_c_r_pthread_create=no
15894 fi
15895 rm -f core conftest.err conftest.$ac_objext \
15896     conftest$ac_exeext conftest.$ac_ext
15897 LIBS=$ac_check_lib_save_LIBS
15898 fi
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
15900 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15901 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
15902    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
15903 else
15904    WITH_THREADS="no"
15905
15906 fi
15907
15908
15909 fi
15910
15911 fi
15912
15913 if test "x$WITH_THREADS" != "xyes"; then
15914   CFLAGS=$old_CFLAGS
15915   ac_cv_header_pthread_h="no"
15916   WITH_THREADS=no
15917 else
15918
15919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
15920 $as_echo_n "checking for library containing sem_init... " >&6; }
15921 if ${ac_cv_search_sem_init+:} false; then :
15922   $as_echo_n "(cached) " >&6
15923 else
15924   ac_func_search_save_LIBS=$LIBS
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h.  */
15927
15928 /* Override any GCC internal prototype to avoid an error.
15929    Use char because int might match the return type of a GCC
15930    builtin and then its argument prototype would still apply.  */
15931 #ifdef __cplusplus
15932 extern "C"
15933 #endif
15934 char sem_init ();
15935 int
15936 main ()
15937 {
15938 return sem_init ();
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 for ac_lib in '' pthread sem posix4 rt semaphore; do
15944   if test -z "$ac_lib"; then
15945     ac_res="none required"
15946   else
15947     ac_res=-l$ac_lib
15948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15949   fi
15950   if ac_fn_c_try_link "$LINENO"; then :
15951   ac_cv_search_sem_init=$ac_res
15952 fi
15953 rm -f core conftest.err conftest.$ac_objext \
15954     conftest$ac_exeext
15955   if ${ac_cv_search_sem_init+:} false; then :
15956   break
15957 fi
15958 done
15959 if ${ac_cv_search_sem_init+:} false; then :
15960
15961 else
15962   ac_cv_search_sem_init=no
15963 fi
15964 rm conftest.$ac_ext
15965 LIBS=$ac_func_search_save_LIBS
15966 fi
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
15968 $as_echo "$ac_cv_search_sem_init" >&6; }
15969 ac_res=$ac_cv_search_sem_init
15970 if test "$ac_res" != no; then :
15971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15972
15973 else
15974   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
15975
15976 fi
15977
15978 fi
15979
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15982 if ${ac_cv_lib_dl_dlopen+:} false; then :
15983   $as_echo_n "(cached) " >&6
15984 else
15985   ac_check_lib_save_LIBS=$LIBS
15986 LIBS="-ldl  $LIBS"
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h.  */
15989
15990 /* Override any GCC internal prototype to avoid an error.
15991    Use char because int might match the return type of a GCC
15992    builtin and then its argument prototype would still apply.  */
15993 #ifdef __cplusplus
15994 extern "C"
15995 #endif
15996 char dlopen ();
15997 int
15998 main ()
15999 {
16000 return dlopen ();
16001   ;
16002   return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"; then :
16006   ac_cv_lib_dl_dlopen=yes
16007 else
16008   ac_cv_lib_dl_dlopen=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext \
16011     conftest$ac_exeext conftest.$ac_ext
16012 LIBS=$ac_check_lib_save_LIBS
16013 fi
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16016 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16017   cat >>confdefs.h <<_ACEOF
16018 #define HAVE_LIBDL 1
16019 _ACEOF
16020
16021   LIBS="-ldl $LIBS"
16022
16023 fi
16024
16025
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16027 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16028 if ${ac_cv_lib_socket_getsockname+:} false; then :
16029   $as_echo_n "(cached) " >&6
16030 else
16031   ac_check_lib_save_LIBS=$LIBS
16032 LIBS="-lsocket  $LIBS"
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h.  */
16035
16036 /* Override any GCC internal prototype to avoid an error.
16037    Use char because int might match the return type of a GCC
16038    builtin and then its argument prototype would still apply.  */
16039 #ifdef __cplusplus
16040 extern "C"
16041 #endif
16042 char getsockname ();
16043 int
16044 main ()
16045 {
16046 return getsockname ();
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 if ac_fn_c_try_link "$LINENO"; then :
16052   ac_cv_lib_socket_getsockname=yes
16053 else
16054   ac_cv_lib_socket_getsockname=no
16055 fi
16056 rm -f core conftest.err conftest.$ac_objext \
16057     conftest$ac_exeext conftest.$ac_ext
16058 LIBS=$ac_check_lib_save_LIBS
16059 fi
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16061 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16062 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16063   cat >>confdefs.h <<_ACEOF
16064 #define HAVE_LIBSOCKET 1
16065 _ACEOF
16066
16067   LIBS="-lsocket $LIBS"
16068
16069 fi
16070
16071
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16073 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16074 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16075   $as_echo_n "(cached) " >&6
16076 else
16077   ac_check_lib_save_LIBS=$LIBS
16078 LIBS="-lresolv  $LIBS"
16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080 /* end confdefs.h.  */
16081
16082 /* Override any GCC internal prototype to avoid an error.
16083    Use char because int might match the return type of a GCC
16084    builtin and then its argument prototype would still apply.  */
16085 #ifdef __cplusplus
16086 extern "C"
16087 #endif
16088 char inet_aton ();
16089 int
16090 main ()
16091 {
16092 return inet_aton ();
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 if ac_fn_c_try_link "$LINENO"; then :
16098   ac_cv_lib_resolv_inet_aton=yes
16099 else
16100   ac_cv_lib_resolv_inet_aton=no
16101 fi
16102 rm -f core conftest.err conftest.$ac_objext \
16103     conftest$ac_exeext conftest.$ac_ext
16104 LIBS=$ac_check_lib_save_LIBS
16105 fi
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16107 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16108 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16109   cat >>confdefs.h <<_ACEOF
16110 #define HAVE_LIBRESOLV 1
16111 _ACEOF
16112
16113   LIBS="-lresolv $LIBS"
16114
16115 fi
16116
16117
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16119 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16120 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16121   $as_echo_n "(cached) " >&6
16122 else
16123   ac_check_lib_save_LIBS=$LIBS
16124 LIBS="-lnsl  $LIBS"
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h.  */
16127
16128 /* Override any GCC internal prototype to avoid an error.
16129    Use char because int might match the return type of a GCC
16130    builtin and then its argument prototype would still apply.  */
16131 #ifdef __cplusplus
16132 extern "C"
16133 #endif
16134 char inet_ntoa ();
16135 int
16136 main ()
16137 {
16138 return inet_ntoa ();
16139   ;
16140   return 0;
16141 }
16142 _ACEOF
16143 if ac_fn_c_try_link "$LINENO"; then :
16144   ac_cv_lib_nsl_inet_ntoa=yes
16145 else
16146   ac_cv_lib_nsl_inet_ntoa=no
16147 fi
16148 rm -f core conftest.err conftest.$ac_objext \
16149     conftest$ac_exeext conftest.$ac_ext
16150 LIBS=$ac_check_lib_save_LIBS
16151 fi
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16153 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16154 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16155   cat >>confdefs.h <<_ACEOF
16156 #define HAVE_LIBNSL 1
16157 _ACEOF
16158
16159   LIBS="-lnsl $LIBS"
16160
16161 fi
16162
16163
16164 OPENSSL_LIBS=
16165 if test "x$WITH_OPENSSL" = xyes; then
16166   old_LIBS=$LIBS
16167   old_LDFLAGS="$LDFLAGS"
16168   if test "x$OPENSSL_LIB_DIR" != "x"; then
16169     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16170   fi
16171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16172 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16173 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16174   $as_echo_n "(cached) " >&6
16175 else
16176   ac_check_lib_save_LIBS=$LIBS
16177 LIBS="-lcrypto  $LIBS"
16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179 /* end confdefs.h.  */
16180
16181 /* Override any GCC internal prototype to avoid an error.
16182    Use char because int might match the return type of a GCC
16183    builtin and then its argument prototype would still apply.  */
16184 #ifdef __cplusplus
16185 extern "C"
16186 #endif
16187 char DH_new ();
16188 int
16189 main ()
16190 {
16191 return DH_new ();
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 if ac_fn_c_try_link "$LINENO"; then :
16197   ac_cv_lib_crypto_DH_new=yes
16198 else
16199   ac_cv_lib_crypto_DH_new=no
16200 fi
16201 rm -f core conftest.err conftest.$ac_objext \
16202     conftest$ac_exeext conftest.$ac_ext
16203 LIBS=$ac_check_lib_save_LIBS
16204 fi
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16206 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16207 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16208
16209         LIBS="-lcrypto $LIBS"
16210
16211 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16212
16213         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16214 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16215 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16216   $as_echo_n "(cached) " >&6
16217 else
16218   ac_check_lib_save_LIBS=$LIBS
16219 LIBS="-lssl  $LIBS"
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h.  */
16222
16223 /* Override any GCC internal prototype to avoid an error.
16224    Use char because int might match the return type of a GCC
16225    builtin and then its argument prototype would still apply.  */
16226 #ifdef __cplusplus
16227 extern "C"
16228 #endif
16229 char SSL_new ();
16230 int
16231 main ()
16232 {
16233 return SSL_new ();
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 if ac_fn_c_try_link "$LINENO"; then :
16239   ac_cv_lib_ssl_SSL_new=yes
16240 else
16241   ac_cv_lib_ssl_SSL_new=no
16242 fi
16243 rm -f core conftest.err conftest.$ac_objext \
16244     conftest$ac_exeext conftest.$ac_ext
16245 LIBS=$ac_check_lib_save_LIBS
16246 fi
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16248 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16249 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16250
16251
16252 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16253
16254                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16255                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16256                 fi
16257                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16258
16259 fi
16260
16261
16262 fi
16263
16264   LIBS=$old_LIBS
16265   LDFLAGS="$old_LDFLAGS"
16266 fi
16267
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16269 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16270 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16271   $as_echo_n "(cached) " >&6
16272 else
16273   ac_check_lib_save_LIBS=$LIBS
16274 LIBS="-lws2_32  $LIBS"
16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h.  */
16277
16278 /* Override any GCC internal prototype to avoid an error.
16279    Use char because int might match the return type of a GCC
16280    builtin and then its argument prototype would still apply.  */
16281 #ifdef __cplusplus
16282 extern "C"
16283 #endif
16284 char htonl ();
16285 int
16286 main ()
16287 {
16288 return htonl ();
16289   ;
16290   return 0;
16291 }
16292 _ACEOF
16293 if ac_fn_c_try_link "$LINENO"; then :
16294   ac_cv_lib_ws2_32_htonl=yes
16295 else
16296   ac_cv_lib_ws2_32_htonl=no
16297 fi
16298 rm -f core conftest.err conftest.$ac_objext \
16299     conftest$ac_exeext conftest.$ac_ext
16300 LIBS=$ac_check_lib_save_LIBS
16301 fi
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16303 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16304 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16305   cat >>confdefs.h <<_ACEOF
16306 #define HAVE_LIBWS2_32 1
16307 _ACEOF
16308
16309   LIBS="-lws2_32 $LIBS"
16310
16311 fi
16312
16313
16314 PCAP_LIBS=
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16316 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16317 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16318   $as_echo_n "(cached) " >&6
16319 else
16320   ac_check_lib_save_LIBS=$LIBS
16321 LIBS="-lpcap  $LIBS"
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h.  */
16324
16325 /* Override any GCC internal prototype to avoid an error.
16326    Use char because int might match the return type of a GCC
16327    builtin and then its argument prototype would still apply.  */
16328 #ifdef __cplusplus
16329 extern "C"
16330 #endif
16331 char pcap_open_live ();
16332 int
16333 main ()
16334 {
16335 return pcap_open_live ();
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 if ac_fn_c_try_link "$LINENO"; then :
16341   ac_cv_lib_pcap_pcap_open_live=yes
16342 else
16343   ac_cv_lib_pcap_pcap_open_live=no
16344 fi
16345 rm -f core conftest.err conftest.$ac_objext \
16346     conftest$ac_exeext conftest.$ac_ext
16347 LIBS=$ac_check_lib_save_LIBS
16348 fi
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16350 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16351 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16352    PCAP_LIBS="-lpcap"
16353
16354 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16355
16356
16357 else
16358    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16359 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16360 fi
16361
16362
16363
16364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16365 $as_echo_n "checking for a readline compatible library... " >&6; }
16366 if ${ac_cv_lib_readline+:} false; then :
16367   $as_echo_n "(cached) " >&6
16368 else
16369
16370     ORIG_LIBS=$LIBS
16371     for readline_lib in readline edit editline; do
16372       for termcap_lib in "" termcap curses ncurses; do
16373         if test -z "$termcap_lib"; then
16374           TRY_LIB="-l$readline_lib"
16375         else
16376           TRY_LIB="-l$readline_lib -l$termcap_lib"
16377         fi
16378         LIBS="$ORIG_LIBS $TRY_LIB"
16379         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h.  */
16381
16382 /* Override any GCC internal prototype to avoid an error.
16383    Use char because int might match the return type of a GCC
16384    builtin and then its argument prototype would still apply.  */
16385 #ifdef __cplusplus
16386 extern "C"
16387 #endif
16388 char readline ();
16389 int
16390 main ()
16391 {
16392 return readline ();
16393   ;
16394   return 0;
16395 }
16396 _ACEOF
16397 if ac_fn_c_try_link "$LINENO"; then :
16398   ac_cv_lib_readline="$TRY_LIB"
16399 fi
16400 rm -f core conftest.err conftest.$ac_objext \
16401     conftest$ac_exeext conftest.$ac_ext
16402         if test -n "$ac_cv_lib_readline"; then
16403           LIBREADLINE="$TRY_LIB"
16404
16405           break
16406         fi
16407       done
16408       if test -n "$ac_cv_lib_readline"; then
16409         break
16410       fi
16411     done
16412     if test -z "$ac_cv_lib_readline"; then
16413       ac_cv_lib_readline="no"
16414     fi
16415     LIBS=$ORIG_LIBS
16416
16417 fi
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
16419 $as_echo "$ac_cv_lib_readline" >&6; }
16420
16421   if test "$ac_cv_lib_readline" != "no"; then
16422
16423 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16424
16425     for ac_header in readline.h readline/readline.h
16426 do :
16427   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16428 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16430   cat >>confdefs.h <<_ACEOF
16431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 _ACEOF
16433
16434 fi
16435
16436 done
16437
16438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16439 $as_echo_n "checking whether readline supports history... " >&6; }
16440 if ${ac_cv_lib_readline_history+:} false; then :
16441   $as_echo_n "(cached) " >&6
16442 else
16443
16444       ac_cv_lib_readline_history="no"
16445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h.  */
16447
16448 /* Override any GCC internal prototype to avoid an error.
16449    Use char because int might match the return type of a GCC
16450    builtin and then its argument prototype would still apply.  */
16451 #ifdef __cplusplus
16452 extern "C"
16453 #endif
16454 char add_history ();
16455 int
16456 main ()
16457 {
16458 return add_history ();
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 if ac_fn_c_try_link "$LINENO"; then :
16464   ac_cv_lib_readline_history="yes"
16465 fi
16466 rm -f core conftest.err conftest.$ac_objext \
16467     conftest$ac_exeext conftest.$ac_ext
16468
16469 fi
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
16471 $as_echo "$ac_cv_lib_readline_history" >&6; }
16472     if test "$ac_cv_lib_readline_history" = "yes"; then
16473
16474 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16475
16476       for ac_header in history.h readline/history.h
16477 do :
16478   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16479 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16481   cat >>confdefs.h <<_ACEOF
16482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16483 _ACEOF
16484
16485 fi
16486
16487 done
16488
16489     fi
16490   fi
16491
16492
16493
16494 case "$host" in
16495 *-interix*)
16496         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16497         ;;
16498 *-darwin*)
16499         CFLAGS="$CFLAGS -DDARWIN"
16500         LIBS="-framework DirectoryService $LIBS"
16501         ;;
16502 esac
16503
16504 ac_header_dirent=no
16505 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16506   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16508 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16509 if eval \${$as_ac_Header+:} false; then :
16510   $as_echo_n "(cached) " >&6
16511 else
16512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h.  */
16514 #include <sys/types.h>
16515 #include <$ac_hdr>
16516
16517 int
16518 main ()
16519 {
16520 if ((DIR *) 0)
16521 return 0;
16522   ;
16523   return 0;
16524 }
16525 _ACEOF
16526 if ac_fn_c_try_compile "$LINENO"; then :
16527   eval "$as_ac_Header=yes"
16528 else
16529   eval "$as_ac_Header=no"
16530 fi
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532 fi
16533 eval ac_res=\$$as_ac_Header
16534                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16535 $as_echo "$ac_res" >&6; }
16536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16537   cat >>confdefs.h <<_ACEOF
16538 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16539 _ACEOF
16540
16541 ac_header_dirent=$ac_hdr; break
16542 fi
16543
16544 done
16545 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16546 if test $ac_header_dirent = dirent.h; then
16547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16548 $as_echo_n "checking for library containing opendir... " >&6; }
16549 if ${ac_cv_search_opendir+:} false; then :
16550   $as_echo_n "(cached) " >&6
16551 else
16552   ac_func_search_save_LIBS=$LIBS
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h.  */
16555
16556 /* Override any GCC internal prototype to avoid an error.
16557    Use char because int might match the return type of a GCC
16558    builtin and then its argument prototype would still apply.  */
16559 #ifdef __cplusplus
16560 extern "C"
16561 #endif
16562 char opendir ();
16563 int
16564 main ()
16565 {
16566 return opendir ();
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 for ac_lib in '' dir; do
16572   if test -z "$ac_lib"; then
16573     ac_res="none required"
16574   else
16575     ac_res=-l$ac_lib
16576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16577   fi
16578   if ac_fn_c_try_link "$LINENO"; then :
16579   ac_cv_search_opendir=$ac_res
16580 fi
16581 rm -f core conftest.err conftest.$ac_objext \
16582     conftest$ac_exeext
16583   if ${ac_cv_search_opendir+:} false; then :
16584   break
16585 fi
16586 done
16587 if ${ac_cv_search_opendir+:} false; then :
16588
16589 else
16590   ac_cv_search_opendir=no
16591 fi
16592 rm conftest.$ac_ext
16593 LIBS=$ac_func_search_save_LIBS
16594 fi
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16596 $as_echo "$ac_cv_search_opendir" >&6; }
16597 ac_res=$ac_cv_search_opendir
16598 if test "$ac_res" != no; then :
16599   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16600
16601 fi
16602
16603 else
16604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16605 $as_echo_n "checking for library containing opendir... " >&6; }
16606 if ${ac_cv_search_opendir+:} false; then :
16607   $as_echo_n "(cached) " >&6
16608 else
16609   ac_func_search_save_LIBS=$LIBS
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h.  */
16612
16613 /* Override any GCC internal prototype to avoid an error.
16614    Use char because int might match the return type of a GCC
16615    builtin and then its argument prototype would still apply.  */
16616 #ifdef __cplusplus
16617 extern "C"
16618 #endif
16619 char opendir ();
16620 int
16621 main ()
16622 {
16623 return opendir ();
16624   ;
16625   return 0;
16626 }
16627 _ACEOF
16628 for ac_lib in '' x; do
16629   if test -z "$ac_lib"; then
16630     ac_res="none required"
16631   else
16632     ac_res=-l$ac_lib
16633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16634   fi
16635   if ac_fn_c_try_link "$LINENO"; then :
16636   ac_cv_search_opendir=$ac_res
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext \
16639     conftest$ac_exeext
16640   if ${ac_cv_search_opendir+:} false; then :
16641   break
16642 fi
16643 done
16644 if ${ac_cv_search_opendir+:} false; then :
16645
16646 else
16647   ac_cv_search_opendir=no
16648 fi
16649 rm conftest.$ac_ext
16650 LIBS=$ac_func_search_save_LIBS
16651 fi
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16653 $as_echo "$ac_cv_search_opendir" >&6; }
16654 ac_res=$ac_cv_search_opendir
16655 if test "$ac_res" != no; then :
16656   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16657
16658 fi
16659
16660 fi
16661
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16663 $as_echo_n "checking for ANSI C header files... " >&6; }
16664 if ${ac_cv_header_stdc+:} false; then :
16665   $as_echo_n "(cached) " >&6
16666 else
16667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h.  */
16669 #include <stdlib.h>
16670 #include <stdarg.h>
16671 #include <string.h>
16672 #include <float.h>
16673
16674 int
16675 main ()
16676 {
16677
16678   ;
16679   return 0;
16680 }
16681 _ACEOF
16682 if ac_fn_c_try_compile "$LINENO"; then :
16683   ac_cv_header_stdc=yes
16684 else
16685   ac_cv_header_stdc=no
16686 fi
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688
16689 if test $ac_cv_header_stdc = yes; then
16690   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h.  */
16693 #include <string.h>
16694
16695 _ACEOF
16696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16697   $EGREP "memchr" >/dev/null 2>&1; then :
16698
16699 else
16700   ac_cv_header_stdc=no
16701 fi
16702 rm -f conftest*
16703
16704 fi
16705
16706 if test $ac_cv_header_stdc = yes; then
16707   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h.  */
16710 #include <stdlib.h>
16711
16712 _ACEOF
16713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16714   $EGREP "free" >/dev/null 2>&1; then :
16715
16716 else
16717   ac_cv_header_stdc=no
16718 fi
16719 rm -f conftest*
16720
16721 fi
16722
16723 if test $ac_cv_header_stdc = yes; then
16724   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16725   if test "$cross_compiling" = yes; then :
16726   :
16727 else
16728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h.  */
16730 #include <ctype.h>
16731 #include <stdlib.h>
16732 #if ((' ' & 0x0FF) == 0x020)
16733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16735 #else
16736 # define ISLOWER(c) \
16737                    (('a' <= (c) && (c) <= 'i') \
16738                      || ('j' <= (c) && (c) <= 'r') \
16739                      || ('s' <= (c) && (c) <= 'z'))
16740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16741 #endif
16742
16743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16744 int
16745 main ()
16746 {
16747   int i;
16748   for (i = 0; i < 256; i++)
16749     if (XOR (islower (i), ISLOWER (i))
16750         || toupper (i) != TOUPPER (i))
16751       return 2;
16752   return 0;
16753 }
16754 _ACEOF
16755 if ac_fn_c_try_run "$LINENO"; then :
16756
16757 else
16758   ac_cv_header_stdc=no
16759 fi
16760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16761   conftest.$ac_objext conftest.beam conftest.$ac_ext
16762 fi
16763
16764 fi
16765 fi
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16767 $as_echo "$ac_cv_header_stdc" >&6; }
16768 if test $ac_cv_header_stdc = yes; then
16769
16770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16771
16772 fi
16773
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16775 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16776 if ${ac_cv_header_time+:} false; then :
16777   $as_echo_n "(cached) " >&6
16778 else
16779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h.  */
16781 #include <sys/types.h>
16782 #include <sys/time.h>
16783 #include <time.h>
16784
16785 int
16786 main ()
16787 {
16788 if ((struct tm *) 0)
16789 return 0;
16790   ;
16791   return 0;
16792 }
16793 _ACEOF
16794 if ac_fn_c_try_compile "$LINENO"; then :
16795   ac_cv_header_time=yes
16796 else
16797   ac_cv_header_time=no
16798 fi
16799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16800 fi
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16802 $as_echo "$ac_cv_header_time" >&6; }
16803 if test $ac_cv_header_time = yes; then
16804
16805 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16806
16807 fi
16808
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16810 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16811 if ${ac_cv_header_sys_wait_h+:} false; then :
16812   $as_echo_n "(cached) " >&6
16813 else
16814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h.  */
16816 #include <sys/types.h>
16817 #include <sys/wait.h>
16818 #ifndef WEXITSTATUS
16819 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16820 #endif
16821 #ifndef WIFEXITED
16822 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16823 #endif
16824
16825 int
16826 main ()
16827 {
16828   int s;
16829   wait (&s);
16830   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16831   ;
16832   return 0;
16833 }
16834 _ACEOF
16835 if ac_fn_c_try_compile "$LINENO"; then :
16836   ac_cv_header_sys_wait_h=yes
16837 else
16838   ac_cv_header_sys_wait_h=no
16839 fi
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 fi
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16843 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16844 if test $ac_cv_header_sys_wait_h = yes; then
16845
16846 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16847
16848 fi
16849
16850
16851 for ac_header in \
16852         unistd.h \
16853         crypt.h \
16854         errno.h \
16855         resource.h \
16856         sys/resource.h \
16857         getopt.h \
16858         malloc.h \
16859         utmp.h \
16860         utmpx.h \
16861         signal.h \
16862         sys/select.h \
16863         syslog.h \
16864         inttypes.h \
16865         stdint.h \
16866         stdio.h \
16867         netdb.h \
16868         semaphore.h \
16869         arpa/inet.h \
16870         netinet/in.h \
16871         sys/types.h \
16872         sys/socket.h \
16873         winsock.h \
16874         utime.h \
16875         sys/time.h \
16876         sys/wait.h \
16877         sys/security.h \
16878         fcntl.h \
16879         sys/fcntl.h \
16880         sys/prctl.h \
16881         sys/un.h \
16882         glob.h \
16883         prot.h \
16884         pwd.h \
16885         grp.h \
16886         stddef.h \
16887         fnmatch.h \
16888         sia.h \
16889         siad.h
16890
16891 do :
16892   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16894 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16895   cat >>confdefs.h <<_ACEOF
16896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16897 _ACEOF
16898
16899 fi
16900
16901 done
16902
16903
16904 for ac_header in net/if.h
16905 do :
16906   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
16907 # include <sys/socket.h>
16908 # endif
16909
16910 "
16911 if test "x$ac_cv_header_net_if_h" = xyes; then :
16912   cat >>confdefs.h <<_ACEOF
16913 #define HAVE_NET_IF_H 1
16914 _ACEOF
16915
16916 fi
16917
16918 done
16919
16920
16921 REGEX=no
16922 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
16923 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
16924
16925 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
16926
16927 fi
16928
16929
16930 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
16931
16932 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
16933
16934   REGEX_EXTENDED=yes
16935   REGEX_PCRE=yes
16936   REGEX=yes
16937   LIBS="$LIBS -lpcreposix"
16938 else
16939
16940 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16941 if test "x$ac_cv_header_regex_h" = xyes; then :
16942
16943 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
16944
16945 fi
16946
16947
16948 if test "x$ac_cv_header_regex_h" = "xyes"; then
16949   REGEX_EXTENDED=no
16950   REGEX_PCRE=no
16951   REGEX=yes
16952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h.  */
16954 #include <regex.h>
16955      #ifdef REG_EXTENDED
16956        yes
16957      #endif
16958
16959 _ACEOF
16960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16961   $EGREP "yes" >/dev/null 2>&1; then :
16962
16963 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
16964  REGEX_EXTENDED=yes
16965 fi
16966 rm -f conftest*
16967
16968 fi
16969 fi
16970
16971
16972
16973
16974
16975 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
16976 then
16977
16978 $as_echo "#define OSFC2 /**/" >>confdefs.h
16979
16980 fi
16981
16982 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
16983 then
16984
16985 $as_echo "#define OSFSIA /**/" >>confdefs.h
16986
16987 fi
16988
16989 OPENSSL_INCLUDE="-DNO_OPENSSL"
16990 if test "x$WITH_OPENSSL" = xyes; then
16991   if test "x$OPENSSL_LIBS" = "x"; then
16992     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
16993 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
16994   else
16995     old_CPPFLAGS=$CPPFLAGS
16996     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
16997         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
16998     fi
16999         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17000     for ac_header in \
17001         openssl/ssl.h \
17002         openssl/crypto.h \
17003         openssl/err.h \
17004         openssl/evp.h \
17005         openssl/md5.h \
17006         openssl/md4.h \
17007         openssl/sha.h \
17008         openssl/ocsp.h \
17009         openssl/engine.h
17010 do :
17011   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17012 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17013 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17014   cat >>confdefs.h <<_ACEOF
17015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17016 _ACEOF
17017
17018 else
17019   OPENSSL_LIBS=
17020
17021 fi
17022
17023 done
17024
17025     if test "x$OPENSSL_LIBS" != "x"; then
17026         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17027 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17028         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h.  */
17030 #include <openssl/crypto.h>
17031              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17032              yes
17033              #endif
17034
17035 _ACEOF
17036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17037   $EGREP "yes" >/dev/null 2>&1; then :
17038   goodssl="yes"
17039 fi
17040 rm -f conftest*
17041
17042         if test "x$goodssl" != "xyes"; then
17043             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17044 $as_echo "no" >&6; }
17045             OPENSSL_LIBS=
17046         else
17047             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17048 $as_echo "yes" >&6; }
17049             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17050                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17051             else
17052                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17053             fi
17054         fi
17055     fi
17056     CPPFLAGS=$old_CPPFLAGS
17057   fi
17058 fi
17059
17060
17061 export OPENSSL_LIBS
17062
17063 if test "x$PCAP_LIBS" = x; then
17064     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17065 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17066 else
17067     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17068 if test "x$ac_cv_header_pcap_h" = xyes; then :
17069
17070 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17071
17072 else
17073    PCAP_LIBS=
17074         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17075 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17076
17077 fi
17078
17079
17080
17081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17082 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17083 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17084   $as_echo_n "(cached) " >&6
17085 else
17086   ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lpcap  $LIBS"
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h.  */
17090
17091 /* Override any GCC internal prototype to avoid an error.
17092    Use char because int might match the return type of a GCC
17093    builtin and then its argument prototype would still apply.  */
17094 #ifdef __cplusplus
17095 extern "C"
17096 #endif
17097 char pcap_fopen_offline ();
17098 int
17099 main ()
17100 {
17101 return pcap_fopen_offline ();
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 if ac_fn_c_try_link "$LINENO"; then :
17107   ac_cv_lib_pcap_pcap_fopen_offline=yes
17108 else
17109   ac_cv_lib_pcap_pcap_fopen_offline=no
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext \
17112     conftest$ac_exeext conftest.$ac_ext
17113 LIBS=$ac_check_lib_save_LIBS
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17116 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17117 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17118
17119 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17120
17121
17122 fi
17123
17124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17125 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17126 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17127   $as_echo_n "(cached) " >&6
17128 else
17129   ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-lpcap  $LIBS"
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h.  */
17133
17134 /* Override any GCC internal prototype to avoid an error.
17135    Use char because int might match the return type of a GCC
17136    builtin and then its argument prototype would still apply.  */
17137 #ifdef __cplusplus
17138 extern "C"
17139 #endif
17140 char pcap_dump_fopen ();
17141 int
17142 main ()
17143 {
17144 return pcap_dump_fopen ();
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 if ac_fn_c_try_link "$LINENO"; then :
17150   ac_cv_lib_pcap_pcap_dump_fopen=yes
17151 else
17152   ac_cv_lib_pcap_pcap_dump_fopen=no
17153 fi
17154 rm -f core conftest.err conftest.$ac_objext \
17155     conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17157 fi
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17159 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17160 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17161
17162 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17163
17164
17165 fi
17166
17167 fi
17168
17169
17170
17171 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17172 if test "x$ac_cv_type_off_t" = xyes; then :
17173
17174 else
17175
17176 cat >>confdefs.h <<_ACEOF
17177 #define off_t long int
17178 _ACEOF
17179
17180 fi
17181
17182 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17183 if test "x$ac_cv_type_pid_t" = xyes; then :
17184
17185 else
17186
17187 cat >>confdefs.h <<_ACEOF
17188 #define pid_t int
17189 _ACEOF
17190
17191 fi
17192
17193 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17194 if test "x$ac_cv_type_size_t" = xyes; then :
17195
17196 else
17197
17198 cat >>confdefs.h <<_ACEOF
17199 #define size_t unsigned int
17200 _ACEOF
17201
17202 fi
17203
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17205 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17206 if ${ac_cv_type_uid_t+:} false; then :
17207   $as_echo_n "(cached) " >&6
17208 else
17209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h.  */
17211 #include <sys/types.h>
17212
17213 _ACEOF
17214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17215   $EGREP "uid_t" >/dev/null 2>&1; then :
17216   ac_cv_type_uid_t=yes
17217 else
17218   ac_cv_type_uid_t=no
17219 fi
17220 rm -f conftest*
17221
17222 fi
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17224 $as_echo "$ac_cv_type_uid_t" >&6; }
17225 if test $ac_cv_type_uid_t = no; then
17226
17227 $as_echo "#define uid_t int" >>confdefs.h
17228
17229
17230 $as_echo "#define gid_t int" >>confdefs.h
17231
17232 fi
17233
17234
17235
17236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17237 $as_echo_n "checking for socklen_t... " >&6; }
17238 if ${ac_cv_type_socklen_t+:} false; then :
17239   $as_echo_n "(cached) " >&6
17240 else
17241    ac_cv_type_socklen_t=no
17242       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h.  */
17244 #ifdef HAVE_SYS_TYPES_H
17245 #include <sys/types.h>
17246 #endif
17247 #ifdef HAVE_SYS_SOCKET_H
17248 #include <sys/socket.h>
17249 #endif
17250
17251 int
17252 main ()
17253 {
17254 socklen_t foo
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 if ac_fn_c_try_compile "$LINENO"; then :
17260   ac_cv_type_socklen_t=yes
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17263
17264
17265 fi
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17267 $as_echo "$ac_cv_type_socklen_t" >&6; }
17268
17269   if test "$ac_cv_type_socklen_t" != "yes"; then
17270
17271 $as_echo "#define socklen_t int" >>confdefs.h
17272
17273   fi
17274
17275
17276
17277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17278 $as_echo_n "checking for uint8_t... " >&6; }
17279 if ${ac_cv_type_uint8_t+:} false; then :
17280   $as_echo_n "(cached) " >&6
17281 else
17282    ac_cv_type_uint8_t=no
17283       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h.  */
17285 #ifdef HAVE_INTTYPES_H
17286 #include <inttypes.h>
17287 #endif
17288 #ifdef HAVE_STDINT_H
17289 #include <stdint.h>
17290 #endif
17291
17292 int
17293 main ()
17294 {
17295 uint8_t foo
17296   ;
17297   return 0;
17298 }
17299 _ACEOF
17300 if ac_fn_c_try_compile "$LINENO"; then :
17301   ac_cv_type_uint8_t=yes
17302 fi
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304
17305
17306 fi
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17308 $as_echo "$ac_cv_type_uint8_t" >&6; }
17309
17310   if test "$ac_cv_type_uint8_t" != "yes"; then
17311
17312 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17313
17314   fi
17315
17316
17317
17318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17319 $as_echo_n "checking for uint16_t... " >&6; }
17320 if ${ac_cv_type_uint16_t+:} false; then :
17321   $as_echo_n "(cached) " >&6
17322 else
17323    ac_cv_type_uint16_t=no
17324       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325 /* end confdefs.h.  */
17326 #ifdef HAVE_INTTYPES_H
17327 #include <inttypes.h>
17328 #endif
17329 #ifdef HAVE_STDINT_H
17330 #include <stdint.h>
17331 #endif
17332
17333 int
17334 main ()
17335 {
17336 uint16_t foo
17337   ;
17338   return 0;
17339 }
17340 _ACEOF
17341 if ac_fn_c_try_compile "$LINENO"; then :
17342   ac_cv_type_uint16_t=yes
17343 fi
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345
17346
17347 fi
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17349 $as_echo "$ac_cv_type_uint16_t" >&6; }
17350
17351   if test "$ac_cv_type_uint16_t" != "yes"; then
17352
17353 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17354
17355   fi
17356
17357
17358
17359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17360 $as_echo_n "checking for uint32_t... " >&6; }
17361 if ${ac_cv_type_uint32_t+:} false; then :
17362   $as_echo_n "(cached) " >&6
17363 else
17364    ac_cv_type_uint32_t=no
17365       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17366 /* end confdefs.h.  */
17367 #ifdef HAVE_INTTYPES_H
17368 #include <inttypes.h>
17369 #endif
17370 #ifdef HAVE_STDINT_H
17371 #include <stdint.h>
17372 #endif
17373
17374 int
17375 main ()
17376 {
17377 uint32_t foo
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_compile "$LINENO"; then :
17383   ac_cv_type_uint32_t=yes
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386
17387
17388 fi
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17390 $as_echo "$ac_cv_type_uint32_t" >&6; }
17391
17392   if test "$ac_cv_type_uint32_t" != "yes"; then
17393
17394 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17395
17396   fi
17397
17398
17399 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17400 #ifdef HAVE_NETINET_IN_H
17401 #include <netinet/in.h>
17402 #endif
17403
17404 "
17405 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17406
17407 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17408
17409 fi
17410
17411
17412 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17413 #ifdef HAVE_NETINET_IN_H
17414 #include <netinet/in.h>
17415 #endif
17416 #ifdef HAVE_SYS_SOCKET_H
17417 #include <sys/socket.h>
17418 #endif
17419
17420 "
17421 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17422
17423 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17424
17425 fi
17426
17427
17428 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17429 #ifdef HAVE_NETINET_IN_H
17430 #include <netinet/in.h>
17431 #endif
17432
17433 "
17434 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17435
17436 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17437
17438 fi
17439
17440
17441 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17442 #ifdef HAVE_SYS_TYPES_H
17443 #include <sys/types.h>
17444 #endif
17445 #ifdef HAVE_SYS_SOCKET_H
17446 #include <sys/socket.h>
17447 #endif
17448 #ifdef HAVE_NETDB_H
17449 #include <netdb.h>
17450 #endif
17451
17452 "
17453 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17454
17455 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17456
17457 fi
17458
17459
17460 for ac_func in \
17461         getopt_long \
17462         lockf \
17463         strsignal \
17464         sigaction \
17465         sigprocmask \
17466         pthread_sigmask \
17467         snprintf \
17468         vsnprintf \
17469         setsid \
17470         strncasecmp \
17471         strcasecmp \
17472         localtime_r \
17473         ctime_r \
17474         gmtime_r \
17475         strsep \
17476         inet_aton \
17477         inet_pton \
17478         inet_ntop \
17479         setlinebuf \
17480         setvbuf \
17481         getusershell \
17482         initgroups \
17483         getaddrinfo \
17484         getnameinfo \
17485         closefrom \
17486         gettimeofday \
17487         getpeereid \
17488         setuid \
17489         setresuid \
17490         getresuid \
17491         strlcat \
17492         strlcpy
17493
17494 do :
17495   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17498   cat >>confdefs.h <<_ACEOF
17499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17500 _ACEOF
17501
17502 fi
17503 done
17504
17505 for ac_func in \
17506         crypt \
17507         strncasecmp \
17508         strcasecmp \
17509         inet_aton \
17510         setlinebuf \
17511         getusershell \
17512         endusershell
17513
17514 do
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17516 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17517 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17518   $as_echo_n "(cached) " >&6
17519 else
17520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h.  */
17522
17523 #include <stdio.h>
17524 #include <string.h>
17525 #ifdef HAVE_UNISTD_H
17526 #include <unistd.h>
17527 #endif
17528 #ifdef HAVE_CRYPT_H
17529 #include <crypt.h>
17530 #endif
17531 #ifdef HAVE_ERRNO_H
17532 #include <errno.h>
17533 #endif
17534 #ifdef HAVE_RESOURCE_H
17535 #include <resource.h>
17536 #endif
17537 #ifdef HAVE_GETOPT_H
17538 #include <getopt.h>
17539 #endif
17540 #ifdef HAVE_MALLOC_H
17541 #include <malloc.h>
17542 #endif
17543 #ifdef HAVE_UTMP_H
17544 #include <utmp.h>
17545 #endif
17546 #ifdef HAVE_UTMPX_H
17547 #include <utmpx.h>
17548 #endif
17549 #ifdef HAVE_SYS_SELECT_H
17550 #include <sys/select.h>
17551 #endif
17552 #ifdef HAVE_DLFCN_H
17553 #include <dlfcn.h>
17554 #endif
17555 #ifdef HAVE_REGEX_H
17556 #include <regex.h>
17557 #endif
17558 #ifdef HAVE_SYSLOG_H
17559 #include <syslog.h>
17560 #endif
17561 #ifdef HAVE_INTTYPES_H
17562 #include <inttypes.h>
17563 #endif
17564 #ifdef HAVE_STDINT_H
17565 #include <stdint.h>
17566 #endif
17567 #ifdef HAVE_ARPA_INET_H
17568 #include <arpa/inet.h>
17569 #endif
17570
17571 int
17572 main ()
17573 {
17574 char *(*pfn) = (char *(*)) $ac_func
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 if ac_fn_c_try_compile "$LINENO"; then :
17580   eval "radius_cv_decl_needed_$ac_func=no"
17581 else
17582   eval "radius_cv_decl_needed_$ac_func=yes"
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585 fi
17586
17587 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17589 $as_echo "yes" >&6; }
17590   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17591   cat >>confdefs.h <<_ACEOF
17592 #define $radius_tr_decl 1
17593 _ACEOF
17594
17595 else
17596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17597 $as_echo "no" >&6; }
17598 fi
17599
17600 done
17601
17602
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17604 $as_echo_n "checking return type of signal handlers... " >&6; }
17605 if ${ac_cv_type_signal+:} false; then :
17606   $as_echo_n "(cached) " >&6
17607 else
17608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h.  */
17610 #include <sys/types.h>
17611 #include <signal.h>
17612
17613 int
17614 main ()
17615 {
17616 return *(signal (0, 0)) (0) == 1;
17617   ;
17618   return 0;
17619 }
17620 _ACEOF
17621 if ac_fn_c_try_compile "$LINENO"; then :
17622   ac_cv_type_signal=int
17623 else
17624   ac_cv_type_signal=void
17625 fi
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627 fi
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17629 $as_echo "$ac_cv_type_signal" >&6; }
17630
17631 cat >>confdefs.h <<_ACEOF
17632 #define RETSIGTYPE $ac_cv_type_signal
17633 _ACEOF
17634
17635
17636
17637 if test "x$ac_cv_header_utmpx_h" = "xyes"
17638 then
17639
17640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17641 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17642
17643
17644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h.  */
17646
17647 #include <utmpx.h>
17648 #ifdef HAVE_STDDEF_H
17649 #include <stddef.h>
17650 #endif
17651 #ifndef offsetof
17652 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17653 #endif
17654
17655 int
17656 main ()
17657 {
17658  int foo = offsetof(struct utmpx, ut_xtime)
17659   ;
17660   return 0;
17661 }
17662 _ACEOF
17663 if ac_fn_c_try_compile "$LINENO"; then :
17664   has_element=" "
17665 else
17666   has_element=
17667 fi
17668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17669
17670   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17671   if test "x$has_element" != "x"; then
17672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17673 $as_echo "yes" >&6; }
17674     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17675   else
17676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17677 $as_echo "no" >&6; }
17678     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17679  fi
17680
17681  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17682  then
17683
17684 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17685
17686  fi
17687 fi
17688
17689
17690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17691 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17692
17693
17694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h.  */
17696
17697 #include <netinet/in.h>
17698 #ifdef HAVE_STDDEF_H
17699 #include <stddef.h>
17700 #endif
17701 #ifndef offsetof
17702 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17703 #endif
17704
17705 int
17706 main ()
17707 {
17708  int foo = offsetof(struct in_pktinfo, ipi_addr)
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_compile "$LINENO"; then :
17714   has_element=" "
17715 else
17716   has_element=
17717 fi
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719
17720   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17721   if test "x$has_element" != "x"; then
17722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17723 $as_echo "yes" >&6; }
17724     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17725   else
17726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17727 $as_echo "no" >&6; }
17728     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17729  fi
17730
17731 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17732 then
17733
17734 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17735
17736 fi
17737
17738
17739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17740 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17741
17742
17743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h.  */
17745
17746 #include <netinet/in.h>
17747 #ifdef HAVE_STDDEF_H
17748 #include <stddef.h>
17749 #endif
17750 #ifndef offsetof
17751 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17752 #endif
17753
17754 int
17755 main ()
17756 {
17757  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17758   ;
17759   return 0;
17760 }
17761 _ACEOF
17762 if ac_fn_c_try_compile "$LINENO"; then :
17763   has_element=" "
17764 else
17765   has_element=
17766 fi
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768
17769   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17770   if test "x$has_element" != "x"; then
17771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17772 $as_echo "yes" >&6; }
17773     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17774   else
17775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17776 $as_echo "no" >&6; }
17777     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17778  fi
17779
17780 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17781 then
17782
17783 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17784
17785 fi
17786
17787
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17789 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17790 if ${ac_cv_c_const+:} false; then :
17791   $as_echo_n "(cached) " >&6
17792 else
17793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h.  */
17795
17796 int
17797 main ()
17798 {
17799 /* FIXME: Include the comments suggested by Paul. */
17800 #ifndef __cplusplus
17801   /* Ultrix mips cc rejects this.  */
17802   typedef int charset[2];
17803   const charset cs;
17804   /* SunOS 4.1.1 cc rejects this.  */
17805   char const *const *pcpcc;
17806   char **ppc;
17807   /* NEC SVR4.0.2 mips cc rejects this.  */
17808   struct point {int x, y;};
17809   static struct point const zero = {0,0};
17810   /* AIX XL C 1.02.0.0 rejects this.
17811      It does not let you subtract one const X* pointer from another in
17812      an arm of an if-expression whose if-part is not a constant
17813      expression */
17814   const char *g = "string";
17815   pcpcc = &g + (g ? g-g : 0);
17816   /* HPUX 7.0 cc rejects these. */
17817   ++pcpcc;
17818   ppc = (char**) pcpcc;
17819   pcpcc = (char const *const *) ppc;
17820   { /* SCO 3.2v4 cc rejects this.  */
17821     char *t;
17822     char const *s = 0 ? (char *) 0 : (char const *) 0;
17823
17824     *t++ = 0;
17825     if (s) return 0;
17826   }
17827   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17828     int x[] = {25, 17};
17829     const int *foo = &x[0];
17830     ++foo;
17831   }
17832   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17833     typedef const int *iptr;
17834     iptr p = 0;
17835     ++p;
17836   }
17837   { /* AIX XL C 1.02.0.0 rejects this saying
17838        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17839     struct s { int j; const int *ap[3]; };
17840     struct s *b; b->j = 5;
17841   }
17842   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17843     const int foo = 10;
17844     if (!foo) return 0;
17845   }
17846   return !cs[0] && !zero.x;
17847 #endif
17848
17849   ;
17850   return 0;
17851 }
17852 _ACEOF
17853 if ac_fn_c_try_compile "$LINENO"; then :
17854   ac_cv_c_const=yes
17855 else
17856   ac_cv_c_const=no
17857 fi
17858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17859 fi
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17861 $as_echo "$ac_cv_c_const" >&6; }
17862 if test $ac_cv_c_const = no; then
17863
17864 $as_echo "#define const /**/" >>confdefs.h
17865
17866 fi
17867
17868
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
17870 $as_echo_n "checking type of OS... " >&6; }
17871 OS=`uname -s`
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
17873 $as_echo "$OS" >&6; }
17874 if test "$OS" = "OS/2"; then
17875         LIBPREFIX=
17876 else
17877         LIBPREFIX=lib
17878 fi
17879
17880
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
17882 $as_echo_n "checking for developer gcc flags... " >&6; }
17883 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
17884   devflags="-g -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"
17885   CFLAGS="$CFLAGS $devflags"
17886   INSTALLSTRIP=""
17887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
17888 $as_echo "yes.  Using $devflags" >&6; }
17889 else
17890   devflags=""
17891   CFLAGS="$CFLAGS -DNDEBUG"
17892   INSTALLSTRIP=""
17893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
17894 $as_echo "no." >&6; }
17895 fi
17896
17897
17898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
17899 $as_echo_n "checking for TLS... " >&6; }
17900     if test "$cross_compiling" = yes; then :
17901   have_tls=no
17902 else
17903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h.  */
17905  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
17906 _ACEOF
17907 if ac_fn_c_try_run "$LINENO"; then :
17908   have_tls=yes
17909 else
17910   have_tls=no
17911 fi
17912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17913   conftest.$ac_objext conftest.beam conftest.$ac_ext
17914 fi
17915
17916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
17917 $as_echo "$have_tls" >&6; }
17918     if test "$have_tls" = "yes"; then
17919
17920 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
17921
17922     fi
17923
17924
17925
17926 old_LIBS="$LIBS"
17927 LIBS="$LIBS $LIBLTDL"
17928 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
17929 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
17930
17931 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
17932
17933 fi
17934
17935 LIBS="$old_LIBS"
17936
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17938 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17939 if ${ac_cv_lib_crypt_crypt+:} false; then :
17940   $as_echo_n "(cached) " >&6
17941 else
17942   ac_check_lib_save_LIBS=$LIBS
17943 LIBS="-lcrypt  $LIBS"
17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h.  */
17946
17947 /* Override any GCC internal prototype to avoid an error.
17948    Use char because int might match the return type of a GCC
17949    builtin and then its argument prototype would still apply.  */
17950 #ifdef __cplusplus
17951 extern "C"
17952 #endif
17953 char crypt ();
17954 int
17955 main ()
17956 {
17957 return crypt ();
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 if ac_fn_c_try_link "$LINENO"; then :
17963   ac_cv_lib_crypt_crypt=yes
17964 else
17965   ac_cv_lib_crypt_crypt=no
17966 fi
17967 rm -f core conftest.err conftest.$ac_objext \
17968     conftest$ac_exeext conftest.$ac_ext
17969 LIBS=$ac_check_lib_save_LIBS
17970 fi
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17972 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17973 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17974   CRYPTLIB="-lcrypt"
17975
17976 fi
17977
17978 if test "$CRYPTLIB" != ""; then
17979
17980 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
17981
17982 else
17983   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
17984 if test "x$ac_cv_func_crypt" = xyes; then :
17985
17986 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
17987
17988 fi
17989
17990 fi
17991
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
17993 $as_echo_n "checking for setkey in -lcipher... " >&6; }
17994 if ${ac_cv_lib_cipher_setkey+:} false; then :
17995   $as_echo_n "(cached) " >&6
17996 else
17997   ac_check_lib_save_LIBS=$LIBS
17998 LIBS="-lcipher  $LIBS"
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h.  */
18001
18002 /* Override any GCC internal prototype to avoid an error.
18003    Use char because int might match the return type of a GCC
18004    builtin and then its argument prototype would still apply.  */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 char setkey ();
18009 int
18010 main ()
18011 {
18012 return setkey ();
18013   ;
18014   return 0;
18015 }
18016 _ACEOF
18017 if ac_fn_c_try_link "$LINENO"; then :
18018   ac_cv_lib_cipher_setkey=yes
18019 else
18020   ac_cv_lib_cipher_setkey=no
18021 fi
18022 rm -f core conftest.err conftest.$ac_objext \
18023     conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18025 fi
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18027 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18028 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18029   CRYPTLIB="${CRYPTLIB} -lcipher"
18030
18031 fi
18032
18033
18034
18035
18036 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18037
18038
18039 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18040
18041
18042 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18043
18044 gethostbyaddrrstyle=""
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18046 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18047 case "$host" in
18048 *-freebsd*)
18049         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18050 #ifdef HAVE_NETDB_H
18051 #include <netdb.h>
18052 #endif
18053
18054 "
18055 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18056   ac_have_decl=1
18057 else
18058   ac_have_decl=0
18059 fi
18060
18061 cat >>confdefs.h <<_ACEOF
18062 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18063 _ACEOF
18064 if test $ac_have_decl = 1; then :
18065
18066 else
18067
18068
18069 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18070
18071                 gethostbyaddrrstyle=BSD
18072                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18073 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18074
18075 fi
18076
18077         ;;
18078 esac
18079 if test "x$gethostbyaddrrstyle" = "x"; then
18080         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081 /* end confdefs.h.  */
18082
18083 #include <stdio.h>
18084 #include <netdb.h>
18085
18086 int
18087 main ()
18088 {
18089  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18090   ;
18091   return 0;
18092 }
18093 _ACEOF
18094 if ac_fn_c_try_link "$LINENO"; then :
18095
18096
18097 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18098
18099         gethostbyaddrrstyle=GNU
18100
18101 fi
18102 rm -f core conftest.err conftest.$ac_objext \
18103     conftest$ac_exeext conftest.$ac_ext
18104 fi
18105 if test "x$gethostbyaddrrstyle" = "x"; then
18106         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h.  */
18108
18109 #include <stdio.h>
18110 #include <netdb.h>
18111
18112 int
18113 main ()
18114 {
18115  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 if ac_fn_c_try_link "$LINENO"; then :
18121
18122
18123 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18124
18125                 gethostbyaddrrstyle=SYSV
18126
18127 fi
18128 rm -f core conftest.err conftest.$ac_objext \
18129     conftest$ac_exeext conftest.$ac_ext
18130 fi
18131 if test "x$gethostbyaddrrstyle" = "x"; then
18132         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134
18135 #include <stdio.h>
18136 #include <netdb.h>
18137
18138 int
18139 main ()
18140 {
18141  gethostbyaddr(NULL, 0, 0)
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 if ac_fn_c_try_link "$LINENO"; then :
18147
18148
18149 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18150
18151                 gethostbyaddrrstyle=BSD
18152
18153 fi
18154 rm -f core conftest.err conftest.$ac_objext \
18155     conftest$ac_exeext conftest.$ac_ext
18156 fi
18157
18158 if test "x$gethostbyaddrrstyle" = "x"; then
18159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18160 $as_echo "none!  It must not exist, here." >&6; }
18161 else
18162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18163 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18164 fi
18165
18166 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18167         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18168 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18169 fi
18170
18171 gethostbynamerstyle=""
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18173 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h.  */
18176
18177 #include <stdio.h>
18178 #include <netdb.h>
18179
18180 int
18181 main ()
18182 {
18183  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18184   ;
18185   return 0;
18186 }
18187 _ACEOF
18188 if ac_fn_c_try_link "$LINENO"; then :
18189
18190
18191 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18192
18193         gethostbynamerstyle=GNU
18194
18195 fi
18196 rm -f core conftest.err conftest.$ac_objext \
18197     conftest$ac_exeext conftest.$ac_ext
18198 if test "x$gethostbynamerstyle" = "x"; then
18199         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h.  */
18201
18202 #include <stdio.h>
18203 #include <netdb.h>
18204
18205 int
18206 main ()
18207 {
18208  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18209   ;
18210   return 0;
18211 }
18212 _ACEOF
18213 if ac_fn_c_try_link "$LINENO"; then :
18214
18215
18216 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18217
18218                 gethostbynamerstyle=SYSV
18219
18220 fi
18221 rm -f core conftest.err conftest.$ac_objext \
18222     conftest$ac_exeext conftest.$ac_ext
18223 fi
18224 if test "x$gethostbynamerstyle" = "x"; then
18225         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h.  */
18227
18228 #include <stdio.h>
18229 #include <netdb.h>
18230
18231 int
18232 main ()
18233 {
18234  gethostbyname(NULL)
18235   ;
18236   return 0;
18237 }
18238 _ACEOF
18239 if ac_fn_c_try_link "$LINENO"; then :
18240
18241
18242 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18243
18244                 gethostbynamerstyle=BSD
18245
18246 fi
18247 rm -f core conftest.err conftest.$ac_objext \
18248     conftest$ac_exeext conftest.$ac_ext
18249 fi
18250
18251 if test "x$gethostbynamerstyle" = "x"; then
18252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18253 $as_echo "none!  It must not exist, here." >&6; }
18254 else
18255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18256 $as_echo "${gethostbynamerstyle}-style" >&6; }
18257 fi
18258
18259 if test "x$gethostbynamerstyle" = "xBSD"; then
18260         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18261 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18262 fi
18263
18264
18265 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18266
18267
18268 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18269
18270 ctimerstyle=""
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18272 $as_echo_n "checking ctime_r() syntax... " >&6; }
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h.  */
18275
18276 #include <time.h>
18277
18278 int
18279 main ()
18280 {
18281  ctime_r(NULL, NULL, 0)
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 if ac_fn_c_try_link "$LINENO"; then :
18287
18288
18289 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18290
18291         ctimerstyle="SOLARIS"
18292
18293 fi
18294 rm -f core conftest.err conftest.$ac_objext \
18295     conftest$ac_exeext conftest.$ac_ext
18296 if test "x$ctimerstyle" = "x"; then
18297         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h.  */
18299
18300 #include <time.h>
18301
18302 int
18303 main ()
18304 {
18305  ctime_r(NULL, NULL)
18306   ;
18307   return 0;
18308 }
18309 _ACEOF
18310 if ac_fn_c_try_link "$LINENO"; then :
18311
18312
18313 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18314
18315                 ctimerstyle="POSIX"
18316
18317 fi
18318 rm -f core conftest.err conftest.$ac_objext \
18319     conftest$ac_exeext conftest.$ac_ext
18320 fi
18321
18322 if test "x$ctimerstyle" = "x"; then
18323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18324 $as_echo "none!  It must not exist, here." >&6; }
18325 else
18326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18327 $as_echo "${ctimerstyle}-style" >&6; }
18328 fi
18329
18330 HOSTINFO=$host
18331
18332
18333
18334 top_builddir=`pwd`
18335 export top_builddir
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18337 $as_echo "top_builddir=$top_builddir" >&6; }
18338
18339
18340
18341
18342
18343 mysubdirs=""
18344 if test "x$EXPERIMENTAL" = "xyes"; then
18345   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
18346     mysubdirs=`echo $mysubdirs $bar`
18347 else
18348         for bar in `cat "${srcdir}"/src/modules/stable`; do
18349     if test -f "${srcdir}"/src/modules/$bar/configure; then
18350       mysubdirs="$mysubdirs src/modules/$bar"
18351     fi
18352   done
18353 fi
18354
18355 if test "x$EXPERIMENTAL" = "xyes"; then
18356   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18357     MODULES="$MODULES $foo"
18358   done
18359 else
18360             for foo in `cat "${srcdir}"/src/modules/stable`; do
18361     MODULES="$MODULES $foo"
18362    done
18363 fi
18364
18365
18366
18367 subdirs="$subdirs $mysubdirs"
18368
18369
18370
18371
18372 ac_config_commands="$ac_config_commands stamp-h"
18373
18374 ac_config_commands="$ac_config_commands build-radpaths-h"
18375
18376 ac_config_commands="$ac_config_commands main-chmod"
18377
18378 ac_config_commands="$ac_config_commands scripts-chmod"
18379
18380
18381
18382
18383
18384 USE_SHARED_LIBS=$enable_shared
18385
18386 USE_STATIC_LIBS=$enable_static
18387
18388
18389
18390
18391
18392
18393
18394   unset ac_cv_env_LIBS_set
18395   unset ac_cv_env_LIBS_value
18396
18397   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad.pl ./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"
18398
18399 cat >confcache <<\_ACEOF
18400 # This file is a shell script that caches the results of configure
18401 # tests run on this system so they can be shared between configure
18402 # scripts and configure runs, see configure's option --config-cache.
18403 # It is not useful on other systems.  If it contains results you don't
18404 # want to keep, you may remove or edit it.
18405 #
18406 # config.status only pays attention to the cache file if you give it
18407 # the --recheck option to rerun configure.
18408 #
18409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18411 # following values.
18412
18413 _ACEOF
18414
18415 # The following way of writing the cache mishandles newlines in values,
18416 # but we know of no workaround that is simple, portable, and efficient.
18417 # So, we kill variables containing newlines.
18418 # Ultrix sh set writes to stderr and can't be redirected directly,
18419 # and sets the high bit in the cache file unless we assign to the vars.
18420 (
18421   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18422     eval ac_val=\$$ac_var
18423     case $ac_val in #(
18424     *${as_nl}*)
18425       case $ac_var in #(
18426       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18428       esac
18429       case $ac_var in #(
18430       _ | IFS | as_nl) ;; #(
18431       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18432       *) { eval $ac_var=; unset $ac_var;} ;;
18433       esac ;;
18434     esac
18435   done
18436
18437   (set) 2>&1 |
18438     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18439     *${as_nl}ac_space=\ *)
18440       # `set' does not quote correctly, so add quotes: double-quote
18441       # substitution turns \\\\ into \\, and sed turns \\ into \.
18442       sed -n \
18443         "s/'/'\\\\''/g;
18444           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18445       ;; #(
18446     *)
18447       # `set' quotes correctly as required by POSIX, so do not add quotes.
18448       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18449       ;;
18450     esac |
18451     sort
18452 ) |
18453   sed '
18454      /^ac_cv_env_/b end
18455      t clear
18456      :clear
18457      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18458      t end
18459      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18460      :end' >>confcache
18461 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18462   if test -w "$cache_file"; then
18463     if test "x$cache_file" != "x/dev/null"; then
18464       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18465 $as_echo "$as_me: updating cache $cache_file" >&6;}
18466       if test ! -f "$cache_file" || test -h "$cache_file"; then
18467         cat confcache >"$cache_file"
18468       else
18469         case $cache_file in #(
18470         */* | ?:*)
18471           mv -f confcache "$cache_file"$$ &&
18472           mv -f "$cache_file"$$ "$cache_file" ;; #(
18473         *)
18474           mv -f confcache "$cache_file" ;;
18475         esac
18476       fi
18477     fi
18478   else
18479     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18481   fi
18482 fi
18483 rm -f confcache
18484
18485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18486 # Let make expand exec_prefix.
18487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18488
18489 DEFS=-DHAVE_CONFIG_H
18490
18491 ac_libobjs=
18492 ac_ltlibobjs=
18493 U=
18494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18495   # 1. Remove the extension, and $U if already installed.
18496   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18497   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18498   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18499   #    will be set to the directory where LIBOBJS objects are built.
18500   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18501   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18502 done
18503 LIBOBJS=$ac_libobjs
18504
18505 LTLIBOBJS=$ac_ltlibobjs
18506
18507
18508
18509
18510 : "${CONFIG_STATUS=./config.status}"
18511 ac_write_fail=0
18512 ac_clean_files_save=$ac_clean_files
18513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18516 as_write_fail=0
18517 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18518 #! $SHELL
18519 # Generated by $as_me.
18520 # Run this file to recreate the current configuration.
18521 # Compiler output produced by configure, useful for debugging
18522 # configure, is in config.log if it exists.
18523
18524 debug=false
18525 ac_cs_recheck=false
18526 ac_cs_silent=false
18527
18528 SHELL=\${CONFIG_SHELL-$SHELL}
18529 export SHELL
18530 _ASEOF
18531 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18532 ## -------------------- ##
18533 ## M4sh Initialization. ##
18534 ## -------------------- ##
18535
18536 # Be more Bourne compatible
18537 DUALCASE=1; export DUALCASE # for MKS sh
18538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18539   emulate sh
18540   NULLCMD=:
18541   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18542   # is contrary to our usage.  Disable this feature.
18543   alias -g '${1+"$@"}'='"$@"'
18544   setopt NO_GLOB_SUBST
18545 else
18546   case `(set -o) 2>/dev/null` in #(
18547   *posix*) :
18548     set -o posix ;; #(
18549   *) :
18550      ;;
18551 esac
18552 fi
18553
18554
18555 as_nl='
18556 '
18557 export as_nl
18558 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18559 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18560 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18562 # Prefer a ksh shell builtin over an external printf program on Solaris,
18563 # but without wasting forks for bash or zsh.
18564 if test -z "$BASH_VERSION$ZSH_VERSION" \
18565     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18566   as_echo='print -r --'
18567   as_echo_n='print -rn --'
18568 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18569   as_echo='printf %s\n'
18570   as_echo_n='printf %s'
18571 else
18572   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18573     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18574     as_echo_n='/usr/ucb/echo -n'
18575   else
18576     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18577     as_echo_n_body='eval
18578       arg=$1;
18579       case $arg in #(
18580       *"$as_nl"*)
18581         expr "X$arg" : "X\\(.*\\)$as_nl";
18582         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18583       esac;
18584       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18585     '
18586     export as_echo_n_body
18587     as_echo_n='sh -c $as_echo_n_body as_echo'
18588   fi
18589   export as_echo_body
18590   as_echo='sh -c $as_echo_body as_echo'
18591 fi
18592
18593 # The user is always right.
18594 if test "${PATH_SEPARATOR+set}" != set; then
18595   PATH_SEPARATOR=:
18596   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18597     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18598       PATH_SEPARATOR=';'
18599   }
18600 fi
18601
18602
18603 # IFS
18604 # We need space, tab and new line, in precisely that order.  Quoting is
18605 # there to prevent editors from complaining about space-tab.
18606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18607 # splitting by setting IFS to empty value.)
18608 IFS=" ""        $as_nl"
18609
18610 # Find who we are.  Look in the path if we contain no directory separator.
18611 as_myself=
18612 case $0 in #((
18613   *[\\/]* ) as_myself=$0 ;;
18614   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18615 for as_dir in $PATH
18616 do
18617   IFS=$as_save_IFS
18618   test -z "$as_dir" && as_dir=.
18619     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18620   done
18621 IFS=$as_save_IFS
18622
18623      ;;
18624 esac
18625 # We did not find ourselves, most probably we were run as `sh COMMAND'
18626 # in which case we are not to be found in the path.
18627 if test "x$as_myself" = x; then
18628   as_myself=$0
18629 fi
18630 if test ! -f "$as_myself"; then
18631   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18632   exit 1
18633 fi
18634
18635 # Unset variables that we do not need and which cause bugs (e.g. in
18636 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18637 # suppresses any "Segmentation fault" message there.  '((' could
18638 # trigger a bug in pdksh 5.2.14.
18639 for as_var in BASH_ENV ENV MAIL MAILPATH
18640 do eval test x\${$as_var+set} = xset \
18641   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18642 done
18643 PS1='$ '
18644 PS2='> '
18645 PS4='+ '
18646
18647 # NLS nuisances.
18648 LC_ALL=C
18649 export LC_ALL
18650 LANGUAGE=C
18651 export LANGUAGE
18652
18653 # CDPATH.
18654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18655
18656
18657 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18658 # ----------------------------------------
18659 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18660 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18661 # script with STATUS, using 1 if that was 0.
18662 as_fn_error ()
18663 {
18664   as_status=$1; test $as_status -eq 0 && as_status=1
18665   if test "$4"; then
18666     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18667     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18668   fi
18669   $as_echo "$as_me: error: $2" >&2
18670   as_fn_exit $as_status
18671 } # as_fn_error
18672
18673
18674 # as_fn_set_status STATUS
18675 # -----------------------
18676 # Set $? to STATUS, without forking.
18677 as_fn_set_status ()
18678 {
18679   return $1
18680 } # as_fn_set_status
18681
18682 # as_fn_exit STATUS
18683 # -----------------
18684 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18685 as_fn_exit ()
18686 {
18687   set +e
18688   as_fn_set_status $1
18689   exit $1
18690 } # as_fn_exit
18691
18692 # as_fn_unset VAR
18693 # ---------------
18694 # Portably unset VAR.
18695 as_fn_unset ()
18696 {
18697   { eval $1=; unset $1;}
18698 }
18699 as_unset=as_fn_unset
18700 # as_fn_append VAR VALUE
18701 # ----------------------
18702 # Append the text in VALUE to the end of the definition contained in VAR. Take
18703 # advantage of any shell optimizations that allow amortized linear growth over
18704 # repeated appends, instead of the typical quadratic growth present in naive
18705 # implementations.
18706 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18707   eval 'as_fn_append ()
18708   {
18709     eval $1+=\$2
18710   }'
18711 else
18712   as_fn_append ()
18713   {
18714     eval $1=\$$1\$2
18715   }
18716 fi # as_fn_append
18717
18718 # as_fn_arith ARG...
18719 # ------------------
18720 # Perform arithmetic evaluation on the ARGs, and store the result in the
18721 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18722 # must be portable across $(()) and expr.
18723 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18724   eval 'as_fn_arith ()
18725   {
18726     as_val=$(( $* ))
18727   }'
18728 else
18729   as_fn_arith ()
18730   {
18731     as_val=`expr "$@" || test $? -eq 1`
18732   }
18733 fi # as_fn_arith
18734
18735
18736 if expr a : '\(a\)' >/dev/null 2>&1 &&
18737    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18738   as_expr=expr
18739 else
18740   as_expr=false
18741 fi
18742
18743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18744   as_basename=basename
18745 else
18746   as_basename=false
18747 fi
18748
18749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18750   as_dirname=dirname
18751 else
18752   as_dirname=false
18753 fi
18754
18755 as_me=`$as_basename -- "$0" ||
18756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18757          X"$0" : 'X\(//\)$' \| \
18758          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18759 $as_echo X/"$0" |
18760     sed '/^.*\/\([^/][^/]*\)\/*$/{
18761             s//\1/
18762             q
18763           }
18764           /^X\/\(\/\/\)$/{
18765             s//\1/
18766             q
18767           }
18768           /^X\/\(\/\).*/{
18769             s//\1/
18770             q
18771           }
18772           s/.*/./; q'`
18773
18774 # Avoid depending upon Character Ranges.
18775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18778 as_cr_digits='0123456789'
18779 as_cr_alnum=$as_cr_Letters$as_cr_digits
18780
18781 ECHO_C= ECHO_N= ECHO_T=
18782 case `echo -n x` in #(((((
18783 -n*)
18784   case `echo 'xy\c'` in
18785   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18786   xy)  ECHO_C='\c';;
18787   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18788        ECHO_T=' ';;
18789   esac;;
18790 *)
18791   ECHO_N='-n';;
18792 esac
18793
18794 rm -f conf$$ conf$$.exe conf$$.file
18795 if test -d conf$$.dir; then
18796   rm -f conf$$.dir/conf$$.file
18797 else
18798   rm -f conf$$.dir
18799   mkdir conf$$.dir 2>/dev/null
18800 fi
18801 if (echo >conf$$.file) 2>/dev/null; then
18802   if ln -s conf$$.file conf$$ 2>/dev/null; then
18803     as_ln_s='ln -s'
18804     # ... but there are two gotchas:
18805     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18806     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18807     # In both cases, we have to default to `cp -p'.
18808     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18809       as_ln_s='cp -p'
18810   elif ln conf$$.file conf$$ 2>/dev/null; then
18811     as_ln_s=ln
18812   else
18813     as_ln_s='cp -p'
18814   fi
18815 else
18816   as_ln_s='cp -p'
18817 fi
18818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18819 rmdir conf$$.dir 2>/dev/null
18820
18821
18822 # as_fn_mkdir_p
18823 # -------------
18824 # Create "$as_dir" as a directory, including parents if necessary.
18825 as_fn_mkdir_p ()
18826 {
18827
18828   case $as_dir in #(
18829   -*) as_dir=./$as_dir;;
18830   esac
18831   test -d "$as_dir" || eval $as_mkdir_p || {
18832     as_dirs=
18833     while :; do
18834       case $as_dir in #(
18835       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18836       *) as_qdir=$as_dir;;
18837       esac
18838       as_dirs="'$as_qdir' $as_dirs"
18839       as_dir=`$as_dirname -- "$as_dir" ||
18840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18841          X"$as_dir" : 'X\(//\)[^/]' \| \
18842          X"$as_dir" : 'X\(//\)$' \| \
18843          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18844 $as_echo X"$as_dir" |
18845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18846             s//\1/
18847             q
18848           }
18849           /^X\(\/\/\)[^/].*/{
18850             s//\1/
18851             q
18852           }
18853           /^X\(\/\/\)$/{
18854             s//\1/
18855             q
18856           }
18857           /^X\(\/\).*/{
18858             s//\1/
18859             q
18860           }
18861           s/.*/./; q'`
18862       test -d "$as_dir" && break
18863     done
18864     test -z "$as_dirs" || eval "mkdir $as_dirs"
18865   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18866
18867
18868 } # as_fn_mkdir_p
18869 if mkdir -p . 2>/dev/null; then
18870   as_mkdir_p='mkdir -p "$as_dir"'
18871 else
18872   test -d ./-p && rmdir ./-p
18873   as_mkdir_p=false
18874 fi
18875
18876 if test -x / >/dev/null 2>&1; then
18877   as_test_x='test -x'
18878 else
18879   if ls -dL / >/dev/null 2>&1; then
18880     as_ls_L_option=L
18881   else
18882     as_ls_L_option=
18883   fi
18884   as_test_x='
18885     eval sh -c '\''
18886       if test -d "$1"; then
18887         test -d "$1/.";
18888       else
18889         case $1 in #(
18890         -*)set "./$1";;
18891         esac;
18892         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18893         ???[sx]*):;;*)false;;esac;fi
18894     '\'' sh
18895   '
18896 fi
18897 as_executable_p=$as_test_x
18898
18899 # Sed expression to map a string onto a valid CPP name.
18900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18901
18902 # Sed expression to map a string onto a valid variable name.
18903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18904
18905
18906 exec 6>&1
18907 ## ----------------------------------- ##
18908 ## Main body of $CONFIG_STATUS script. ##
18909 ## ----------------------------------- ##
18910 _ASEOF
18911 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18912
18913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18914 # Save the log message, to keep $0 and so on meaningful, and to
18915 # report actual input values of CONFIG_FILES etc. instead of their
18916 # values after options handling.
18917 ac_log="
18918 This file was extended by $as_me, which was
18919 generated by GNU Autoconf 2.68.  Invocation command line was
18920
18921   CONFIG_FILES    = $CONFIG_FILES
18922   CONFIG_HEADERS  = $CONFIG_HEADERS
18923   CONFIG_LINKS    = $CONFIG_LINKS
18924   CONFIG_COMMANDS = $CONFIG_COMMANDS
18925   $ $0 $@
18926
18927 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18928 "
18929
18930 _ACEOF
18931
18932 case $ac_config_files in *"
18933 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18934 esac
18935
18936 case $ac_config_headers in *"
18937 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18938 esac
18939
18940
18941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18942 # Files that config.status was made for.
18943 config_files="$ac_config_files"
18944 config_headers="$ac_config_headers"
18945 config_commands="$ac_config_commands"
18946
18947 _ACEOF
18948
18949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18950 ac_cs_usage="\
18951 \`$as_me' instantiates files and other configuration actions
18952 from templates according to the current configuration.  Unless the files
18953 and actions are specified as TAGs, all are instantiated by default.
18954
18955 Usage: $0 [OPTION]... [TAG]...
18956
18957   -h, --help       print this help, then exit
18958   -V, --version    print version number and configuration settings, then exit
18959       --config     print configuration, then exit
18960   -q, --quiet, --silent
18961                    do not print progress messages
18962   -d, --debug      don't remove temporary files
18963       --recheck    update $as_me by reconfiguring in the same conditions
18964       --file=FILE[:TEMPLATE]
18965                    instantiate the configuration file FILE
18966       --header=FILE[:TEMPLATE]
18967                    instantiate the configuration header FILE
18968
18969 Configuration files:
18970 $config_files
18971
18972 Configuration headers:
18973 $config_headers
18974
18975 Configuration commands:
18976 $config_commands
18977
18978 Report bugs to the package provider."
18979
18980 _ACEOF
18981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18983 ac_cs_version="\\
18984 config.status
18985 configured by $0, generated by GNU Autoconf 2.68,
18986   with options \\"\$ac_cs_config\\"
18987
18988 Copyright (C) 2010 Free Software Foundation, Inc.
18989 This config.status script is free software; the Free Software Foundation
18990 gives unlimited permission to copy, distribute and modify it."
18991
18992 ac_pwd='$ac_pwd'
18993 srcdir='$srcdir'
18994 AWK='$AWK'
18995 test -n "\$AWK" || AWK=awk
18996 _ACEOF
18997
18998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18999 # The default lists apply if the user does not specify any file.
19000 ac_need_defaults=:
19001 while test $# != 0
19002 do
19003   case $1 in
19004   --*=?*)
19005     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19006     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19007     ac_shift=:
19008     ;;
19009   --*=)
19010     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19011     ac_optarg=
19012     ac_shift=:
19013     ;;
19014   *)
19015     ac_option=$1
19016     ac_optarg=$2
19017     ac_shift=shift
19018     ;;
19019   esac
19020
19021   case $ac_option in
19022   # Handling of the options.
19023   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19024     ac_cs_recheck=: ;;
19025   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19026     $as_echo "$ac_cs_version"; exit ;;
19027   --config | --confi | --conf | --con | --co | --c )
19028     $as_echo "$ac_cs_config"; exit ;;
19029   --debug | --debu | --deb | --de | --d | -d )
19030     debug=: ;;
19031   --file | --fil | --fi | --f )
19032     $ac_shift
19033     case $ac_optarg in
19034     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19035     '') as_fn_error $? "missing file argument" ;;
19036     esac
19037     as_fn_append CONFIG_FILES " '$ac_optarg'"
19038     ac_need_defaults=false;;
19039   --header | --heade | --head | --hea )
19040     $ac_shift
19041     case $ac_optarg in
19042     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19043     esac
19044     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19045     ac_need_defaults=false;;
19046   --he | --h)
19047     # Conflict between --help and --header
19048     as_fn_error $? "ambiguous option: \`$1'
19049 Try \`$0 --help' for more information.";;
19050   --help | --hel | -h )
19051     $as_echo "$ac_cs_usage"; exit ;;
19052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19053   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19054     ac_cs_silent=: ;;
19055
19056   # This is an error.
19057   -*) as_fn_error $? "unrecognized option: \`$1'
19058 Try \`$0 --help' for more information." ;;
19059
19060   *) as_fn_append ac_config_targets " $1"
19061      ac_need_defaults=false ;;
19062
19063   esac
19064   shift
19065 done
19066
19067 ac_configure_extra_args=
19068
19069 if $ac_cs_silent; then
19070   exec 6>/dev/null
19071   ac_configure_extra_args="$ac_configure_extra_args --silent"
19072 fi
19073
19074 _ACEOF
19075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19076 if \$ac_cs_recheck; then
19077   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19078   shift
19079   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19080   CONFIG_SHELL='$SHELL'
19081   export CONFIG_SHELL
19082   exec "\$@"
19083 fi
19084
19085 _ACEOF
19086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19087 exec 5>>config.log
19088 {
19089   echo
19090   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19091 ## Running $as_me. ##
19092 _ASBOX
19093   $as_echo "$ac_log"
19094 } >&5
19095
19096 _ACEOF
19097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19098 #
19099 # INIT-COMMANDS
19100 #
19101
19102
19103 # The HP-UX ksh and POSIX shell print the target directory to stdout
19104 # if CDPATH is set.
19105 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19106
19107 sed_quote_subst='$sed_quote_subst'
19108 double_quote_subst='$double_quote_subst'
19109 delay_variable_subst='$delay_variable_subst'
19110 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19111 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19112 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19113 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19114 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19115 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19116 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19117 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19118 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19119 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19120 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19121 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19122 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19123 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19124 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19125 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19126 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19127 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19128 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19129 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19130 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19131 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19132 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19133 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19134 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19135 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19136 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19137 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19138 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19139 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19140 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19141 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19142 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19143 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19144 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19145 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19146 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19147 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19148 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19149 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19150 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19151 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19152 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19153 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19154 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19155 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19156 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19157 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19158 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19159 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19160 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19161 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19162 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19163 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19164 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19165 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"`'
19166 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19167 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19168 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19169 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19170 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19171 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19172 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19173 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19174 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19175 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19176 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19177 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19178 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19179 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19180 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19181 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19182 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19183 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19184 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19185 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19186 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19187 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19188 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19189 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19190 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19191 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19192 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19193 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19194 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19195 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19196 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19197 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19198 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19199 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19200 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19201 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19202 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19203 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19204 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19205 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19206 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19207 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19208 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19209 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19210 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19211 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19212 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19213 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19214 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19215 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19216 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19217 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19218 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19219 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19220 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19221 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19222 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19223 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19224 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19225 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19226 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19227 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19228 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19229 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19230 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19231 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19232 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19233 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19234 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19235 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19236 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19237 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19238 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19239 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19240 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19241 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19242 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19243 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19244 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19245 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19246 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19247 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19248 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19249 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19250 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19251 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19252 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19253 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19254 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19255 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19256 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19257 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19258 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19259 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19260 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19261 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19262 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19263 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19264 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19265 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19266 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19267 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19268 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19269 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19270 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19271 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19272 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19273 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19274 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19275 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19276 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19277 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19278 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19279 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19280 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19281 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19282 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19283 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19284 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19285 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19286 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19287 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19288 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19289 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19290 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19291 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19292 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19293 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19294 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19295
19296 LTCC='$LTCC'
19297 LTCFLAGS='$LTCFLAGS'
19298 compiler='$compiler_DEFAULT'
19299
19300 # A function that is used when there is no print builtin or printf.
19301 func_fallback_echo ()
19302 {
19303   eval 'cat <<_LTECHO_EOF
19304 \$1
19305 _LTECHO_EOF'
19306 }
19307
19308 # Quote evaled strings.
19309 for var in SHELL \
19310 ECHO \
19311 SED \
19312 GREP \
19313 EGREP \
19314 FGREP \
19315 LD \
19316 NM \
19317 LN_S \
19318 lt_SP2NL \
19319 lt_NL2SP \
19320 reload_flag \
19321 OBJDUMP \
19322 deplibs_check_method \
19323 file_magic_cmd \
19324 file_magic_glob \
19325 want_nocaseglob \
19326 DLLTOOL \
19327 sharedlib_from_linklib_cmd \
19328 AR \
19329 AR_FLAGS \
19330 archiver_list_spec \
19331 STRIP \
19332 RANLIB \
19333 CC \
19334 CFLAGS \
19335 compiler \
19336 lt_cv_sys_global_symbol_pipe \
19337 lt_cv_sys_global_symbol_to_cdecl \
19338 lt_cv_sys_global_symbol_to_c_name_address \
19339 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19340 nm_file_list_spec \
19341 lt_prog_compiler_no_builtin_flag \
19342 lt_prog_compiler_pic \
19343 lt_prog_compiler_wl \
19344 lt_prog_compiler_static \
19345 lt_cv_prog_compiler_c_o \
19346 need_locks \
19347 MANIFEST_TOOL \
19348 DSYMUTIL \
19349 NMEDIT \
19350 LIPO \
19351 OTOOL \
19352 OTOOL64 \
19353 shrext_cmds \
19354 export_dynamic_flag_spec \
19355 whole_archive_flag_spec \
19356 compiler_needs_object \
19357 with_gnu_ld \
19358 allow_undefined_flag \
19359 no_undefined_flag \
19360 hardcode_libdir_flag_spec \
19361 hardcode_libdir_flag_spec_ld \
19362 hardcode_libdir_separator \
19363 exclude_expsyms \
19364 include_expsyms \
19365 file_list_spec \
19366 variables_saved_for_relink \
19367 libname_spec \
19368 library_names_spec \
19369 soname_spec \
19370 install_override_mode \
19371 finish_eval \
19372 old_striplib \
19373 striplib \
19374 compiler_lib_search_dirs \
19375 predep_objects \
19376 postdep_objects \
19377 predeps \
19378 postdeps \
19379 compiler_lib_search_path \
19380 LD_CXX \
19381 reload_flag_CXX \
19382 compiler_CXX \
19383 lt_prog_compiler_no_builtin_flag_CXX \
19384 lt_prog_compiler_pic_CXX \
19385 lt_prog_compiler_wl_CXX \
19386 lt_prog_compiler_static_CXX \
19387 lt_cv_prog_compiler_c_o_CXX \
19388 export_dynamic_flag_spec_CXX \
19389 whole_archive_flag_spec_CXX \
19390 compiler_needs_object_CXX \
19391 with_gnu_ld_CXX \
19392 allow_undefined_flag_CXX \
19393 no_undefined_flag_CXX \
19394 hardcode_libdir_flag_spec_CXX \
19395 hardcode_libdir_flag_spec_ld_CXX \
19396 hardcode_libdir_separator_CXX \
19397 exclude_expsyms_CXX \
19398 include_expsyms_CXX \
19399 file_list_spec_CXX \
19400 compiler_lib_search_dirs_CXX \
19401 predep_objects_CXX \
19402 postdep_objects_CXX \
19403 predeps_CXX \
19404 postdeps_CXX \
19405 compiler_lib_search_path_CXX; do
19406     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19407     *[\\\\\\\`\\"\\\$]*)
19408       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19409       ;;
19410     *)
19411       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19412       ;;
19413     esac
19414 done
19415
19416 # Double-quote double-evaled strings.
19417 for var in reload_cmds \
19418 old_postinstall_cmds \
19419 old_postuninstall_cmds \
19420 old_archive_cmds \
19421 extract_expsyms_cmds \
19422 old_archive_from_new_cmds \
19423 old_archive_from_expsyms_cmds \
19424 archive_cmds \
19425 archive_expsym_cmds \
19426 module_cmds \
19427 module_expsym_cmds \
19428 export_symbols_cmds \
19429 prelink_cmds \
19430 postlink_cmds \
19431 postinstall_cmds \
19432 postuninstall_cmds \
19433 finish_cmds \
19434 sys_lib_search_path_spec \
19435 sys_lib_dlsearch_path_spec \
19436 reload_cmds_CXX \
19437 old_archive_cmds_CXX \
19438 old_archive_from_new_cmds_CXX \
19439 old_archive_from_expsyms_cmds_CXX \
19440 archive_cmds_CXX \
19441 archive_expsym_cmds_CXX \
19442 module_cmds_CXX \
19443 module_expsym_cmds_CXX \
19444 export_symbols_cmds_CXX \
19445 prelink_cmds_CXX \
19446 postlink_cmds_CXX; do
19447     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19448     *[\\\\\\\`\\"\\\$]*)
19449       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19450       ;;
19451     *)
19452       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19453       ;;
19454     esac
19455 done
19456
19457 xsi_shell='$xsi_shell'
19458 lt_shell_append='$lt_shell_append'
19459
19460 # See if we are running on zsh, and set the options which allow our
19461 # commands through without removal of \ escapes INIT.
19462 if test -n "\${ZSH_VERSION+set}" ; then
19463    setopt NO_GLOB_SUBST
19464 fi
19465
19466
19467     PACKAGE='$PACKAGE'
19468     VERSION='$VERSION'
19469     TIMESTAMP='$TIMESTAMP'
19470     RM='$RM'
19471     ofile='$ofile'
19472
19473
19474
19475
19476
19477
19478 _ACEOF
19479
19480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19481
19482 # Handling of arguments.
19483 for ac_config_target in $ac_config_targets
19484 do
19485   case $ac_config_target in
19486     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19487     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19488     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19489     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19490     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19491     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19492     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19493     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19494     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19495     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19496     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
19497     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19498     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19499     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19500     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19501     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19502     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19503     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19504     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19505     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19506
19507   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19508   esac
19509 done
19510
19511
19512 # If the user did not use the arguments to specify the items to instantiate,
19513 # then the envvar interface is used.  Set only those that are not.
19514 # We use the long form for the default assignment because of an extremely
19515 # bizarre bug on SunOS 4.1.3.
19516 if $ac_need_defaults; then
19517   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19518   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19519   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19520 fi
19521
19522 # Have a temporary directory for convenience.  Make it in the build tree
19523 # simply because there is no reason against having it here, and in addition,
19524 # creating and moving files from /tmp can sometimes cause problems.
19525 # Hook for its removal unless debugging.
19526 # Note that there is a small window in which the directory will not be cleaned:
19527 # after its creation but before its name has been assigned to `$tmp'.
19528 $debug ||
19529 {
19530   tmp= ac_tmp=
19531   trap 'exit_status=$?
19532   : "${ac_tmp:=$tmp}"
19533   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19534 ' 0
19535   trap 'as_fn_exit 1' 1 2 13 15
19536 }
19537 # Create a (secure) tmp directory for tmp files.
19538
19539 {
19540   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19541   test -d "$tmp"
19542 }  ||
19543 {
19544   tmp=./conf$$-$RANDOM
19545   (umask 077 && mkdir "$tmp")
19546 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19547 ac_tmp=$tmp
19548
19549 # Set up the scripts for CONFIG_FILES section.
19550 # No need to generate them if there are no CONFIG_FILES.
19551 # This happens for instance with `./config.status config.h'.
19552 if test -n "$CONFIG_FILES"; then
19553
19554
19555 ac_cr=`echo X | tr X '\015'`
19556 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19557 # But we know of no other shell where ac_cr would be empty at this
19558 # point, so we can use a bashism as a fallback.
19559 if test "x$ac_cr" = x; then
19560   eval ac_cr=\$\'\\r\'
19561 fi
19562 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19563 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19564   ac_cs_awk_cr='\\r'
19565 else
19566   ac_cs_awk_cr=$ac_cr
19567 fi
19568
19569 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19570 _ACEOF
19571
19572
19573 {
19574   echo "cat >conf$$subs.awk <<_ACEOF" &&
19575   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19576   echo "_ACEOF"
19577 } >conf$$subs.sh ||
19578   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19579 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19580 ac_delim='%!_!# '
19581 for ac_last_try in false false false false false :; do
19582   . ./conf$$subs.sh ||
19583     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19584
19585   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19586   if test $ac_delim_n = $ac_delim_num; then
19587     break
19588   elif $ac_last_try; then
19589     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19590   else
19591     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19592   fi
19593 done
19594 rm -f conf$$subs.sh
19595
19596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19597 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19598 _ACEOF
19599 sed -n '
19600 h
19601 s/^/S["/; s/!.*/"]=/
19602 p
19603 g
19604 s/^[^!]*!//
19605 :repl
19606 t repl
19607 s/'"$ac_delim"'$//
19608 t delim
19609 :nl
19610 h
19611 s/\(.\{148\}\)..*/\1/
19612 t more1
19613 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19614 p
19615 n
19616 b repl
19617 :more1
19618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19619 p
19620 g
19621 s/.\{148\}//
19622 t nl
19623 :delim
19624 h
19625 s/\(.\{148\}\)..*/\1/
19626 t more2
19627 s/["\\]/\\&/g; s/^/"/; s/$/"/
19628 p
19629 b
19630 :more2
19631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19632 p
19633 g
19634 s/.\{148\}//
19635 t delim
19636 ' <conf$$subs.awk | sed '
19637 /^[^""]/{
19638   N
19639   s/\n//
19640 }
19641 ' >>$CONFIG_STATUS || ac_write_fail=1
19642 rm -f conf$$subs.awk
19643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19644 _ACAWK
19645 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19646   for (key in S) S_is_set[key] = 1
19647   FS = "\a"
19648
19649 }
19650 {
19651   line = $ 0
19652   nfields = split(line, field, "@")
19653   substed = 0
19654   len = length(field[1])
19655   for (i = 2; i < nfields; i++) {
19656     key = field[i]
19657     keylen = length(key)
19658     if (S_is_set[key]) {
19659       value = S[key]
19660       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19661       len += length(value) + length(field[++i])
19662       substed = 1
19663     } else
19664       len += 1 + keylen
19665   }
19666
19667   print line
19668 }
19669
19670 _ACAWK
19671 _ACEOF
19672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19674   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19675 else
19676   cat
19677 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19678   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19679 _ACEOF
19680
19681 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19682 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19683 # trailing colons and then remove the whole line if VPATH becomes empty
19684 # (actually we leave an empty line to preserve line numbers).
19685 if test "x$srcdir" = x.; then
19686   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19687 h
19688 s///
19689 s/^/:/
19690 s/[      ]*$/:/
19691 s/:\$(srcdir):/:/g
19692 s/:\${srcdir}:/:/g
19693 s/:@srcdir@:/:/g
19694 s/^:*//
19695 s/:*$//
19696 x
19697 s/\(=[   ]*\).*/\1/
19698 G
19699 s/\n//
19700 s/^[^=]*=[       ]*$//
19701 }'
19702 fi
19703
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19705 fi # test -n "$CONFIG_FILES"
19706
19707 # Set up the scripts for CONFIG_HEADERS section.
19708 # No need to generate them if there are no CONFIG_HEADERS.
19709 # This happens for instance with `./config.status Makefile'.
19710 if test -n "$CONFIG_HEADERS"; then
19711 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19712 BEGIN {
19713 _ACEOF
19714
19715 # Transform confdefs.h into an awk script `defines.awk', embedded as
19716 # here-document in config.status, that substitutes the proper values into
19717 # config.h.in to produce config.h.
19718
19719 # Create a delimiter string that does not exist in confdefs.h, to ease
19720 # handling of long lines.
19721 ac_delim='%!_!# '
19722 for ac_last_try in false false :; do
19723   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19724   if test -z "$ac_tt"; then
19725     break
19726   elif $ac_last_try; then
19727     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19728   else
19729     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19730   fi
19731 done
19732
19733 # For the awk script, D is an array of macro values keyed by name,
19734 # likewise P contains macro parameters if any.  Preserve backslash
19735 # newline sequences.
19736
19737 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19738 sed -n '
19739 s/.\{148\}/&'"$ac_delim"'/g
19740 t rset
19741 :rset
19742 s/^[     ]*#[    ]*define[       ][      ]*/ /
19743 t def
19744 d
19745 :def
19746 s/\\$//
19747 t bsnl
19748 s/["\\]/\\&/g
19749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19750 D["\1"]=" \3"/p
19751 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19752 d
19753 :bsnl
19754 s/["\\]/\\&/g
19755 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19756 D["\1"]=" \3\\\\\\n"\\/p
19757 t cont
19758 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19759 t cont
19760 d
19761 :cont
19762 n
19763 s/.\{148\}/&'"$ac_delim"'/g
19764 t clear
19765 :clear
19766 s/\\$//
19767 t bsnlc
19768 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19769 d
19770 :bsnlc
19771 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19772 b cont
19773 ' <confdefs.h | sed '
19774 s/'"$ac_delim"'/"\\\
19775 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19776
19777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19778   for (key in D) D_is_set[key] = 1
19779   FS = "\a"
19780 }
19781 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19782   line = \$ 0
19783   split(line, arg, " ")
19784   if (arg[1] == "#") {
19785     defundef = arg[2]
19786     mac1 = arg[3]
19787   } else {
19788     defundef = substr(arg[1], 2)
19789     mac1 = arg[2]
19790   }
19791   split(mac1, mac2, "(") #)
19792   macro = mac2[1]
19793   prefix = substr(line, 1, index(line, defundef) - 1)
19794   if (D_is_set[macro]) {
19795     # Preserve the white space surrounding the "#".
19796     print prefix "define", macro P[macro] D[macro]
19797     next
19798   } else {
19799     # Replace #undef with comments.  This is necessary, for example,
19800     # in the case of _POSIX_SOURCE, which is predefined and required
19801     # on some systems where configure will not decide to define it.
19802     if (defundef == "undef") {
19803       print "/*", prefix defundef, macro, "*/"
19804       next
19805     }
19806   }
19807 }
19808 { print }
19809 _ACAWK
19810 _ACEOF
19811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19812   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19813 fi # test -n "$CONFIG_HEADERS"
19814
19815
19816 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19817 shift
19818 for ac_tag
19819 do
19820   case $ac_tag in
19821   :[FHLC]) ac_mode=$ac_tag; continue;;
19822   esac
19823   case $ac_mode$ac_tag in
19824   :[FHL]*:*);;
19825   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19826   :[FH]-) ac_tag=-:-;;
19827   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19828   esac
19829   ac_save_IFS=$IFS
19830   IFS=:
19831   set x $ac_tag
19832   IFS=$ac_save_IFS
19833   shift
19834   ac_file=$1
19835   shift
19836
19837   case $ac_mode in
19838   :L) ac_source=$1;;
19839   :[FH])
19840     ac_file_inputs=
19841     for ac_f
19842     do
19843       case $ac_f in
19844       -) ac_f="$ac_tmp/stdin";;
19845       *) # Look for the file first in the build tree, then in the source tree
19846          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19847          # because $ac_f cannot contain `:'.
19848          test -f "$ac_f" ||
19849            case $ac_f in
19850            [\\/$]*) false;;
19851            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19852            esac ||
19853            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19854       esac
19855       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19856       as_fn_append ac_file_inputs " '$ac_f'"
19857     done
19858
19859     # Let's still pretend it is `configure' which instantiates (i.e., don't
19860     # use $as_me), people would be surprised to read:
19861     #    /* config.h.  Generated by config.status.  */
19862     configure_input='Generated from '`
19863           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19864         `' by configure.'
19865     if test x"$ac_file" != x-; then
19866       configure_input="$ac_file.  $configure_input"
19867       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19868 $as_echo "$as_me: creating $ac_file" >&6;}
19869     fi
19870     # Neutralize special characters interpreted by sed in replacement strings.
19871     case $configure_input in #(
19872     *\&* | *\|* | *\\* )
19873        ac_sed_conf_input=`$as_echo "$configure_input" |
19874        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19875     *) ac_sed_conf_input=$configure_input;;
19876     esac
19877
19878     case $ac_tag in
19879     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19880       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19881     esac
19882     ;;
19883   esac
19884
19885   ac_dir=`$as_dirname -- "$ac_file" ||
19886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19887          X"$ac_file" : 'X\(//\)[^/]' \| \
19888          X"$ac_file" : 'X\(//\)$' \| \
19889          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19890 $as_echo X"$ac_file" |
19891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19892             s//\1/
19893             q
19894           }
19895           /^X\(\/\/\)[^/].*/{
19896             s//\1/
19897             q
19898           }
19899           /^X\(\/\/\)$/{
19900             s//\1/
19901             q
19902           }
19903           /^X\(\/\).*/{
19904             s//\1/
19905             q
19906           }
19907           s/.*/./; q'`
19908   as_dir="$ac_dir"; as_fn_mkdir_p
19909   ac_builddir=.
19910
19911 case "$ac_dir" in
19912 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19913 *)
19914   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19915   # A ".." for each directory in $ac_dir_suffix.
19916   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19917   case $ac_top_builddir_sub in
19918   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19919   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19920   esac ;;
19921 esac
19922 ac_abs_top_builddir=$ac_pwd
19923 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19924 # for backward compatibility:
19925 ac_top_builddir=$ac_top_build_prefix
19926
19927 case $srcdir in
19928   .)  # We are building in place.
19929     ac_srcdir=.
19930     ac_top_srcdir=$ac_top_builddir_sub
19931     ac_abs_top_srcdir=$ac_pwd ;;
19932   [\\/]* | ?:[\\/]* )  # Absolute name.
19933     ac_srcdir=$srcdir$ac_dir_suffix;
19934     ac_top_srcdir=$srcdir
19935     ac_abs_top_srcdir=$srcdir ;;
19936   *) # Relative name.
19937     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19938     ac_top_srcdir=$ac_top_build_prefix$srcdir
19939     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19940 esac
19941 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19942
19943
19944   case $ac_mode in
19945   :F)
19946   #
19947   # CONFIG_FILE
19948   #
19949
19950 _ACEOF
19951
19952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19953 # If the template does not know about datarootdir, expand it.
19954 # FIXME: This hack should be removed a few years after 2.60.
19955 ac_datarootdir_hack=; ac_datarootdir_seen=
19956 ac_sed_dataroot='
19957 /datarootdir/ {
19958   p
19959   q
19960 }
19961 /@datadir@/p
19962 /@docdir@/p
19963 /@infodir@/p
19964 /@localedir@/p
19965 /@mandir@/p'
19966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19967 *datarootdir*) ac_datarootdir_seen=yes;;
19968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19971 _ACEOF
19972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19973   ac_datarootdir_hack='
19974   s&@datadir@&$datadir&g
19975   s&@docdir@&$docdir&g
19976   s&@infodir@&$infodir&g
19977   s&@localedir@&$localedir&g
19978   s&@mandir@&$mandir&g
19979   s&\\\${datarootdir}&$datarootdir&g' ;;
19980 esac
19981 _ACEOF
19982
19983 # Neutralize VPATH when `$srcdir' = `.'.
19984 # Shell code in configure.ac might set extrasub.
19985 # FIXME: do we really want to maintain this feature?
19986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19987 ac_sed_extra="$ac_vpsub
19988 $extrasub
19989 _ACEOF
19990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19991 :t
19992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19993 s|@configure_input@|$ac_sed_conf_input|;t t
19994 s&@top_builddir@&$ac_top_builddir_sub&;t t
19995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19996 s&@srcdir@&$ac_srcdir&;t t
19997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19998 s&@top_srcdir@&$ac_top_srcdir&;t t
19999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20000 s&@builddir@&$ac_builddir&;t t
20001 s&@abs_builddir@&$ac_abs_builddir&;t t
20002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20003 $ac_datarootdir_hack
20004 "
20005 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20006   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20007
20008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20009   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20010   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20011       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20012   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20013 which seems to be undefined.  Please make sure it is defined" >&5
20014 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20015 which seems to be undefined.  Please make sure it is defined" >&2;}
20016
20017   rm -f "$ac_tmp/stdin"
20018   case $ac_file in
20019   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20020   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20021   esac \
20022   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20023  ;;
20024   :H)
20025   #
20026   # CONFIG_HEADER
20027   #
20028   if test x"$ac_file" != x-; then
20029     {
20030       $as_echo "/* $configure_input  */" \
20031       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20032     } >"$ac_tmp/config.h" \
20033       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20034     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20035       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20036 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20037     else
20038       rm -f "$ac_file"
20039       mv "$ac_tmp/config.h" "$ac_file" \
20040         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20041     fi
20042   else
20043     $as_echo "/* $configure_input  */" \
20044       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20045       || as_fn_error $? "could not create -" "$LINENO" 5
20046   fi
20047  ;;
20048
20049   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20050 $as_echo "$as_me: executing $ac_file commands" >&6;}
20051  ;;
20052   esac
20053
20054
20055   case $ac_file$ac_mode in
20056     "libtool":C)
20057
20058     # See if we are running on zsh, and set the options which allow our
20059     # commands through without removal of \ escapes.
20060     if test -n "${ZSH_VERSION+set}" ; then
20061       setopt NO_GLOB_SUBST
20062     fi
20063
20064     cfgfile="${ofile}T"
20065     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20066     $RM "$cfgfile"
20067
20068     cat <<_LT_EOF >> "$cfgfile"
20069 #! $SHELL
20070
20071 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20072 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20075 #
20076 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20077 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20078 #                 Inc.
20079 #   Written by Gordon Matzigkeit, 1996
20080 #
20081 #   This file is part of GNU Libtool.
20082 #
20083 # GNU Libtool is free software; you can redistribute it and/or
20084 # modify it under the terms of the GNU General Public License as
20085 # published by the Free Software Foundation; either version 2 of
20086 # the License, or (at your option) any later version.
20087 #
20088 # As a special exception to the GNU General Public License,
20089 # if you distribute this file as part of a program or library that
20090 # is built using GNU Libtool, you may include this file under the
20091 # same distribution terms that you use for the rest of that program.
20092 #
20093 # GNU Libtool is distributed in the hope that it will be useful,
20094 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20096 # GNU General Public License for more details.
20097 #
20098 # You should have received a copy of the GNU General Public License
20099 # along with GNU Libtool; see the file COPYING.  If not, a copy
20100 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20101 # obtained by writing to the Free Software Foundation, Inc.,
20102 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20103
20104
20105 # The names of the tagged configurations supported by this script.
20106 available_tags="CXX "
20107
20108 # ### BEGIN LIBTOOL CONFIG
20109
20110 # Which release of libtool.m4 was used?
20111 macro_version=$macro_version
20112 macro_revision=$macro_revision
20113
20114 # Whether or not to build shared libraries.
20115 build_libtool_libs=$enable_shared
20116
20117 # Whether or not to build static libraries.
20118 build_old_libs=$enable_static
20119
20120 # What type of objects to build.
20121 pic_mode=$pic_mode
20122
20123 # Whether or not to optimize for fast installation.
20124 fast_install=$enable_fast_install
20125
20126 # Shell to use when invoking shell scripts.
20127 SHELL=$lt_SHELL
20128
20129 # An echo program that protects backslashes.
20130 ECHO=$lt_ECHO
20131
20132 # The host system.
20133 host_alias=$host_alias
20134 host=$host
20135 host_os=$host_os
20136
20137 # The build system.
20138 build_alias=$build_alias
20139 build=$build
20140 build_os=$build_os
20141
20142 # A sed program that does not truncate output.
20143 SED=$lt_SED
20144
20145 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20146 Xsed="\$SED -e 1s/^X//"
20147
20148 # A grep program that handles long lines.
20149 GREP=$lt_GREP
20150
20151 # An ERE matcher.
20152 EGREP=$lt_EGREP
20153
20154 # A literal string matcher.
20155 FGREP=$lt_FGREP
20156
20157 # A BSD- or MS-compatible name lister.
20158 NM=$lt_NM
20159
20160 # Whether we need soft or hard links.
20161 LN_S=$lt_LN_S
20162
20163 # What is the maximum length of a command?
20164 max_cmd_len=$max_cmd_len
20165
20166 # Object file suffix (normally "o").
20167 objext=$ac_objext
20168
20169 # Executable file suffix (normally "").
20170 exeext=$exeext
20171
20172 # whether the shell understands "unset".
20173 lt_unset=$lt_unset
20174
20175 # turn spaces into newlines.
20176 SP2NL=$lt_lt_SP2NL
20177
20178 # turn newlines into spaces.
20179 NL2SP=$lt_lt_NL2SP
20180
20181 # convert \$build file names to \$host format.
20182 to_host_file_cmd=$lt_cv_to_host_file_cmd
20183
20184 # convert \$build files to toolchain format.
20185 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20186
20187 # An object symbol dumper.
20188 OBJDUMP=$lt_OBJDUMP
20189
20190 # Method to check whether dependent libraries are shared objects.
20191 deplibs_check_method=$lt_deplibs_check_method
20192
20193 # Command to use when deplibs_check_method = "file_magic".
20194 file_magic_cmd=$lt_file_magic_cmd
20195
20196 # How to find potential files when deplibs_check_method = "file_magic".
20197 file_magic_glob=$lt_file_magic_glob
20198
20199 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20200 want_nocaseglob=$lt_want_nocaseglob
20201
20202 # DLL creation program.
20203 DLLTOOL=$lt_DLLTOOL
20204
20205 # Command to associate shared and link libraries.
20206 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20207
20208 # The archiver.
20209 AR=$lt_AR
20210
20211 # Flags to create an archive.
20212 AR_FLAGS=$lt_AR_FLAGS
20213
20214 # How to feed a file listing to the archiver.
20215 archiver_list_spec=$lt_archiver_list_spec
20216
20217 # A symbol stripping program.
20218 STRIP=$lt_STRIP
20219
20220 # Commands used to install an old-style archive.
20221 RANLIB=$lt_RANLIB
20222 old_postinstall_cmds=$lt_old_postinstall_cmds
20223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20224
20225 # Whether to use a lock for old archive extraction.
20226 lock_old_archive_extraction=$lock_old_archive_extraction
20227
20228 # A C compiler.
20229 LTCC=$lt_CC
20230
20231 # LTCC compiler flags.
20232 LTCFLAGS=$lt_CFLAGS
20233
20234 # Take the output of nm and produce a listing of raw symbols and C names.
20235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20236
20237 # Transform the output of nm in a proper C declaration.
20238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20239
20240 # Transform the output of nm in a C name address pair.
20241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20242
20243 # Transform the output of nm in a C name address pair when lib prefix is needed.
20244 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20245
20246 # Specify filename containing input files for \$NM.
20247 nm_file_list_spec=$lt_nm_file_list_spec
20248
20249 # The root where to search for dependent libraries,and in which our libraries should be installed.
20250 lt_sysroot=$lt_sysroot
20251
20252 # The name of the directory that contains temporary libtool files.
20253 objdir=$objdir
20254
20255 # Used to examine libraries when file_magic_cmd begins with "file".
20256 MAGIC_CMD=$MAGIC_CMD
20257
20258 # Must we lock files when doing compilation?
20259 need_locks=$lt_need_locks
20260
20261 # Manifest tool.
20262 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20263
20264 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20265 DSYMUTIL=$lt_DSYMUTIL
20266
20267 # Tool to change global to local symbols on Mac OS X.
20268 NMEDIT=$lt_NMEDIT
20269
20270 # Tool to manipulate fat objects and archives on Mac OS X.
20271 LIPO=$lt_LIPO
20272
20273 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20274 OTOOL=$lt_OTOOL
20275
20276 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20277 OTOOL64=$lt_OTOOL64
20278
20279 # Old archive suffix (normally "a").
20280 libext=$libext
20281
20282 # Shared library suffix (normally ".so").
20283 shrext_cmds=$lt_shrext_cmds
20284
20285 # The commands to extract the exported symbol list from a shared archive.
20286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20287
20288 # Variables whose values should be saved in libtool wrapper scripts and
20289 # restored at link time.
20290 variables_saved_for_relink=$lt_variables_saved_for_relink
20291
20292 # Do we need the "lib" prefix for modules?
20293 need_lib_prefix=$need_lib_prefix
20294
20295 # Do we need a version for libraries?
20296 need_version=$need_version
20297
20298 # Library versioning type.
20299 version_type=$version_type
20300
20301 # Shared library runtime path variable.
20302 runpath_var=$runpath_var
20303
20304 # Shared library path variable.
20305 shlibpath_var=$shlibpath_var
20306
20307 # Is shlibpath searched before the hard-coded library search path?
20308 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20309
20310 # Format of library name prefix.
20311 libname_spec=$lt_libname_spec
20312
20313 # List of archive names.  First name is the real one, the rest are links.
20314 # The last name is the one that the linker finds with -lNAME
20315 library_names_spec=$lt_library_names_spec
20316
20317 # The coded name of the library, if different from the real name.
20318 soname_spec=$lt_soname_spec
20319
20320 # Permission mode override for installation of shared libraries.
20321 install_override_mode=$lt_install_override_mode
20322
20323 # Command to use after installation of a shared archive.
20324 postinstall_cmds=$lt_postinstall_cmds
20325
20326 # Command to use after uninstallation of a shared archive.
20327 postuninstall_cmds=$lt_postuninstall_cmds
20328
20329 # Commands used to finish a libtool library installation in a directory.
20330 finish_cmds=$lt_finish_cmds
20331
20332 # As "finish_cmds", except a single script fragment to be evaled but
20333 # not shown.
20334 finish_eval=$lt_finish_eval
20335
20336 # Whether we should hardcode library paths into libraries.
20337 hardcode_into_libs=$hardcode_into_libs
20338
20339 # Compile-time system search path for libraries.
20340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20341
20342 # Run-time system search path for libraries.
20343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20344
20345 # Whether dlopen is supported.
20346 dlopen_support=$enable_dlopen
20347
20348 # Whether dlopen of programs is supported.
20349 dlopen_self=$enable_dlopen_self
20350
20351 # Whether dlopen of statically linked programs is supported.
20352 dlopen_self_static=$enable_dlopen_self_static
20353
20354 # Commands to strip libraries.
20355 old_striplib=$lt_old_striplib
20356 striplib=$lt_striplib
20357
20358
20359 # The linker used to build libraries.
20360 LD=$lt_LD
20361
20362 # How to create reloadable object files.
20363 reload_flag=$lt_reload_flag
20364 reload_cmds=$lt_reload_cmds
20365
20366 # Commands used to build an old-style archive.
20367 old_archive_cmds=$lt_old_archive_cmds
20368
20369 # A language specific compiler.
20370 CC=$lt_compiler
20371
20372 # Is the compiler the GNU compiler?
20373 with_gcc=$GCC
20374
20375 # Compiler flag to turn off builtin functions.
20376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20377
20378 # Additional compiler flags for building library objects.
20379 pic_flag=$lt_lt_prog_compiler_pic
20380
20381 # How to pass a linker flag through the compiler.
20382 wl=$lt_lt_prog_compiler_wl
20383
20384 # Compiler flag to prevent dynamic linking.
20385 link_static_flag=$lt_lt_prog_compiler_static
20386
20387 # Does compiler simultaneously support -c and -o options?
20388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20389
20390 # Whether or not to add -lc for building shared libraries.
20391 build_libtool_need_lc=$archive_cmds_need_lc
20392
20393 # Whether or not to disallow shared libs when runtime libs are static.
20394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20395
20396 # Compiler flag to allow reflexive dlopens.
20397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20398
20399 # Compiler flag to generate shared objects directly from archives.
20400 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20401
20402 # Whether the compiler copes with passing no objects directly.
20403 compiler_needs_object=$lt_compiler_needs_object
20404
20405 # Create an old-style archive from a shared archive.
20406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20407
20408 # Create a temporary old-style archive to link instead of a shared archive.
20409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20410
20411 # Commands used to build a shared archive.
20412 archive_cmds=$lt_archive_cmds
20413 archive_expsym_cmds=$lt_archive_expsym_cmds
20414
20415 # Commands used to build a loadable module if different from building
20416 # a shared archive.
20417 module_cmds=$lt_module_cmds
20418 module_expsym_cmds=$lt_module_expsym_cmds
20419
20420 # Whether we are building with GNU ld or not.
20421 with_gnu_ld=$lt_with_gnu_ld
20422
20423 # Flag that allows shared libraries with undefined symbols to be built.
20424 allow_undefined_flag=$lt_allow_undefined_flag
20425
20426 # Flag that enforces no undefined symbols.
20427 no_undefined_flag=$lt_no_undefined_flag
20428
20429 # Flag to hardcode \$libdir into a binary during linking.
20430 # This must work even if \$libdir does not exist
20431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20432
20433 # If ld is used when linking, flag to hardcode \$libdir into a binary
20434 # during linking.  This must work even if \$libdir does not exist.
20435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20436
20437 # Whether we need a single "-rpath" flag with a separated argument.
20438 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20439
20440 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20441 # DIR into the resulting binary.
20442 hardcode_direct=$hardcode_direct
20443
20444 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20445 # DIR into the resulting binary and the resulting library dependency is
20446 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20447 # library is relocated.
20448 hardcode_direct_absolute=$hardcode_direct_absolute
20449
20450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20451 # into the resulting binary.
20452 hardcode_minus_L=$hardcode_minus_L
20453
20454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20455 # into the resulting binary.
20456 hardcode_shlibpath_var=$hardcode_shlibpath_var
20457
20458 # Set to "yes" if building a shared library automatically hardcodes DIR
20459 # into the library and all subsequent libraries and executables linked
20460 # against it.
20461 hardcode_automatic=$hardcode_automatic
20462
20463 # Set to yes if linker adds runtime paths of dependent libraries
20464 # to runtime path list.
20465 inherit_rpath=$inherit_rpath
20466
20467 # Whether libtool must link a program against all its dependency libraries.
20468 link_all_deplibs=$link_all_deplibs
20469
20470 # Set to "yes" if exported symbols are required.
20471 always_export_symbols=$always_export_symbols
20472
20473 # The commands to list exported symbols.
20474 export_symbols_cmds=$lt_export_symbols_cmds
20475
20476 # Symbols that should not be listed in the preloaded symbols.
20477 exclude_expsyms=$lt_exclude_expsyms
20478
20479 # Symbols that must always be exported.
20480 include_expsyms=$lt_include_expsyms
20481
20482 # Commands necessary for linking programs (against libraries) with templates.
20483 prelink_cmds=$lt_prelink_cmds
20484
20485 # Commands necessary for finishing linking programs.
20486 postlink_cmds=$lt_postlink_cmds
20487
20488 # Specify filename containing input files.
20489 file_list_spec=$lt_file_list_spec
20490
20491 # How to hardcode a shared library path into an executable.
20492 hardcode_action=$hardcode_action
20493
20494 # The directories searched by this compiler when creating a shared library.
20495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20496
20497 # Dependencies to place before and after the objects being linked to
20498 # create a shared library.
20499 predep_objects=$lt_predep_objects
20500 postdep_objects=$lt_postdep_objects
20501 predeps=$lt_predeps
20502 postdeps=$lt_postdeps
20503
20504 # The library search path used internally by the compiler when linking
20505 # a shared library.
20506 compiler_lib_search_path=$lt_compiler_lib_search_path
20507
20508 # ### END LIBTOOL CONFIG
20509
20510 _LT_EOF
20511
20512   case $host_os in
20513   aix3*)
20514     cat <<\_LT_EOF >> "$cfgfile"
20515 # AIX sometimes has problems with the GCC collect2 program.  For some
20516 # reason, if we set the COLLECT_NAMES environment variable, the problems
20517 # vanish in a puff of smoke.
20518 if test "X${COLLECT_NAMES+set}" != Xset; then
20519   COLLECT_NAMES=
20520   export COLLECT_NAMES
20521 fi
20522 _LT_EOF
20523     ;;
20524   esac
20525
20526
20527
20528   # We use sed instead of cat because bash on DJGPP gets confused if
20529   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20530   # text mode, it properly converts lines to CR/LF.  This bash problem
20531   # is reportedly fixed, but why not run on old versions too?
20532   sed '$q' "$ltmain" >> "$cfgfile" \
20533      || (rm -f "$cfgfile"; exit 1)
20534
20535   if test x"$xsi_shell" = xyes; then
20536   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20537 func_dirname ()\
20538 {\
20539 \    case ${1} in\
20540 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20541 \      *  ) func_dirname_result="${3}" ;;\
20542 \    esac\
20543 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20544   && mv -f "$cfgfile.tmp" "$cfgfile" \
20545     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20546 test 0 -eq $? || _lt_function_replace_fail=:
20547
20548
20549   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20550 func_basename ()\
20551 {\
20552 \    func_basename_result="${1##*/}"\
20553 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20554   && mv -f "$cfgfile.tmp" "$cfgfile" \
20555     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20556 test 0 -eq $? || _lt_function_replace_fail=:
20557
20558
20559   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20560 func_dirname_and_basename ()\
20561 {\
20562 \    case ${1} in\
20563 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20564 \      *  ) func_dirname_result="${3}" ;;\
20565 \    esac\
20566 \    func_basename_result="${1##*/}"\
20567 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20568   && mv -f "$cfgfile.tmp" "$cfgfile" \
20569     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20570 test 0 -eq $? || _lt_function_replace_fail=:
20571
20572
20573   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20574 func_stripname ()\
20575 {\
20576 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20577 \    # positional parameters, so assign one to ordinary parameter first.\
20578 \    func_stripname_result=${3}\
20579 \    func_stripname_result=${func_stripname_result#"${1}"}\
20580 \    func_stripname_result=${func_stripname_result%"${2}"}\
20581 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20582   && mv -f "$cfgfile.tmp" "$cfgfile" \
20583     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20584 test 0 -eq $? || _lt_function_replace_fail=:
20585
20586
20587   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20588 func_split_long_opt ()\
20589 {\
20590 \    func_split_long_opt_name=${1%%=*}\
20591 \    func_split_long_opt_arg=${1#*=}\
20592 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20593   && mv -f "$cfgfile.tmp" "$cfgfile" \
20594     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20595 test 0 -eq $? || _lt_function_replace_fail=:
20596
20597
20598   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20599 func_split_short_opt ()\
20600 {\
20601 \    func_split_short_opt_arg=${1#??}\
20602 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20603 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20604   && mv -f "$cfgfile.tmp" "$cfgfile" \
20605     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20606 test 0 -eq $? || _lt_function_replace_fail=:
20607
20608
20609   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20610 func_lo2o ()\
20611 {\
20612 \    case ${1} in\
20613 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20614 \      *)    func_lo2o_result=${1} ;;\
20615 \    esac\
20616 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20617   && mv -f "$cfgfile.tmp" "$cfgfile" \
20618     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20619 test 0 -eq $? || _lt_function_replace_fail=:
20620
20621
20622   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20623 func_xform ()\
20624 {\
20625     func_xform_result=${1%.*}.lo\
20626 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20627   && mv -f "$cfgfile.tmp" "$cfgfile" \
20628     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20629 test 0 -eq $? || _lt_function_replace_fail=:
20630
20631
20632   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20633 func_arith ()\
20634 {\
20635     func_arith_result=$(( $* ))\
20636 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20637   && mv -f "$cfgfile.tmp" "$cfgfile" \
20638     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20639 test 0 -eq $? || _lt_function_replace_fail=:
20640
20641
20642   sed -e '/^func_len ()$/,/^} # func_len /c\
20643 func_len ()\
20644 {\
20645     func_len_result=${#1}\
20646 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20647   && mv -f "$cfgfile.tmp" "$cfgfile" \
20648     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20649 test 0 -eq $? || _lt_function_replace_fail=:
20650
20651 fi
20652
20653 if test x"$lt_shell_append" = xyes; then
20654   sed -e '/^func_append ()$/,/^} # func_append /c\
20655 func_append ()\
20656 {\
20657     eval "${1}+=\\${2}"\
20658 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20659   && mv -f "$cfgfile.tmp" "$cfgfile" \
20660     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20661 test 0 -eq $? || _lt_function_replace_fail=:
20662
20663
20664   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20665 func_append_quoted ()\
20666 {\
20667 \    func_quote_for_eval "${2}"\
20668 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20669 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20670   && mv -f "$cfgfile.tmp" "$cfgfile" \
20671     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20672 test 0 -eq $? || _lt_function_replace_fail=:
20673
20674
20675   # Save a `func_append' function call where possible by direct use of '+='
20676   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20677     && mv -f "$cfgfile.tmp" "$cfgfile" \
20678       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20679   test 0 -eq $? || _lt_function_replace_fail=:
20680 else
20681   # Save a `func_append' function call even when '+=' is not available
20682   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20683     && mv -f "$cfgfile.tmp" "$cfgfile" \
20684       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20685   test 0 -eq $? || _lt_function_replace_fail=:
20686 fi
20687
20688 if test x"$_lt_function_replace_fail" = x":"; then
20689   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20690 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20691 fi
20692
20693
20694    mv -f "$cfgfile" "$ofile" ||
20695     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20696   chmod +x "$ofile"
20697
20698
20699     cat <<_LT_EOF >> "$ofile"
20700
20701 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20702
20703 # The linker used to build libraries.
20704 LD=$lt_LD_CXX
20705
20706 # How to create reloadable object files.
20707 reload_flag=$lt_reload_flag_CXX
20708 reload_cmds=$lt_reload_cmds_CXX
20709
20710 # Commands used to build an old-style archive.
20711 old_archive_cmds=$lt_old_archive_cmds_CXX
20712
20713 # A language specific compiler.
20714 CC=$lt_compiler_CXX
20715
20716 # Is the compiler the GNU compiler?
20717 with_gcc=$GCC_CXX
20718
20719 # Compiler flag to turn off builtin functions.
20720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20721
20722 # Additional compiler flags for building library objects.
20723 pic_flag=$lt_lt_prog_compiler_pic_CXX
20724
20725 # How to pass a linker flag through the compiler.
20726 wl=$lt_lt_prog_compiler_wl_CXX
20727
20728 # Compiler flag to prevent dynamic linking.
20729 link_static_flag=$lt_lt_prog_compiler_static_CXX
20730
20731 # Does compiler simultaneously support -c and -o options?
20732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20733
20734 # Whether or not to add -lc for building shared libraries.
20735 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20736
20737 # Whether or not to disallow shared libs when runtime libs are static.
20738 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20739
20740 # Compiler flag to allow reflexive dlopens.
20741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20742
20743 # Compiler flag to generate shared objects directly from archives.
20744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20745
20746 # Whether the compiler copes with passing no objects directly.
20747 compiler_needs_object=$lt_compiler_needs_object_CXX
20748
20749 # Create an old-style archive from a shared archive.
20750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20751
20752 # Create a temporary old-style archive to link instead of a shared archive.
20753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20754
20755 # Commands used to build a shared archive.
20756 archive_cmds=$lt_archive_cmds_CXX
20757 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20758
20759 # Commands used to build a loadable module if different from building
20760 # a shared archive.
20761 module_cmds=$lt_module_cmds_CXX
20762 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20763
20764 # Whether we are building with GNU ld or not.
20765 with_gnu_ld=$lt_with_gnu_ld_CXX
20766
20767 # Flag that allows shared libraries with undefined symbols to be built.
20768 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20769
20770 # Flag that enforces no undefined symbols.
20771 no_undefined_flag=$lt_no_undefined_flag_CXX
20772
20773 # Flag to hardcode \$libdir into a binary during linking.
20774 # This must work even if \$libdir does not exist
20775 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20776
20777 # If ld is used when linking, flag to hardcode \$libdir into a binary
20778 # during linking.  This must work even if \$libdir does not exist.
20779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20780
20781 # Whether we need a single "-rpath" flag with a separated argument.
20782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20783
20784 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20785 # DIR into the resulting binary.
20786 hardcode_direct=$hardcode_direct_CXX
20787
20788 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20789 # DIR into the resulting binary and the resulting library dependency is
20790 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20791 # library is relocated.
20792 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20793
20794 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20795 # into the resulting binary.
20796 hardcode_minus_L=$hardcode_minus_L_CXX
20797
20798 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20799 # into the resulting binary.
20800 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20801
20802 # Set to "yes" if building a shared library automatically hardcodes DIR
20803 # into the library and all subsequent libraries and executables linked
20804 # against it.
20805 hardcode_automatic=$hardcode_automatic_CXX
20806
20807 # Set to yes if linker adds runtime paths of dependent libraries
20808 # to runtime path list.
20809 inherit_rpath=$inherit_rpath_CXX
20810
20811 # Whether libtool must link a program against all its dependency libraries.
20812 link_all_deplibs=$link_all_deplibs_CXX
20813
20814 # Set to "yes" if exported symbols are required.
20815 always_export_symbols=$always_export_symbols_CXX
20816
20817 # The commands to list exported symbols.
20818 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20819
20820 # Symbols that should not be listed in the preloaded symbols.
20821 exclude_expsyms=$lt_exclude_expsyms_CXX
20822
20823 # Symbols that must always be exported.
20824 include_expsyms=$lt_include_expsyms_CXX
20825
20826 # Commands necessary for linking programs (against libraries) with templates.
20827 prelink_cmds=$lt_prelink_cmds_CXX
20828
20829 # Commands necessary for finishing linking programs.
20830 postlink_cmds=$lt_postlink_cmds_CXX
20831
20832 # Specify filename containing input files.
20833 file_list_spec=$lt_file_list_spec_CXX
20834
20835 # How to hardcode a shared library path into an executable.
20836 hardcode_action=$hardcode_action_CXX
20837
20838 # The directories searched by this compiler when creating a shared library.
20839 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20840
20841 # Dependencies to place before and after the objects being linked to
20842 # create a shared library.
20843 predep_objects=$lt_predep_objects_CXX
20844 postdep_objects=$lt_postdep_objects_CXX
20845 predeps=$lt_predeps_CXX
20846 postdeps=$lt_postdeps_CXX
20847
20848 # The library search path used internally by the compiler when linking
20849 # a shared library.
20850 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20851
20852 # ### END LIBTOOL TAG CONFIG: CXX
20853 _LT_EOF
20854
20855  ;;
20856     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
20857     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
20858     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
20859     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
20860
20861   esac
20862 done # for ac_tag
20863
20864
20865 as_fn_exit 0
20866 _ACEOF
20867 ac_clean_files=$ac_clean_files_save
20868
20869 test $ac_write_fail = 0 ||
20870   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20871
20872
20873 # configure is writing to config.log, and then calls config.status.
20874 # config.status does its own redirection, appending to config.log.
20875 # Unfortunately, on DOS this fails, as config.log is still kept open
20876 # by configure, so config.status won't be able to write to it; its
20877 # output is simply discarded.  So we exec the FD to /dev/null,
20878 # effectively closing config.log, so it can be properly (re)opened and
20879 # appended to by config.status.  When coming back to configure, we
20880 # need to make the FD available again.
20881 if test "$no_create" != yes; then
20882   ac_cs_success=:
20883   ac_config_status_args=
20884   test "$silent" = yes &&
20885     ac_config_status_args="$ac_config_status_args --quiet"
20886   exec 5>/dev/null
20887   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20888   exec 5>>config.log
20889   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20890   # would make configure fail if this is the last instruction.
20891   $ac_cs_success || as_fn_exit 1
20892 fi
20893
20894 #
20895 # CONFIG_SUBDIRS section.
20896 #
20897 if test "$no_recursion" != yes; then
20898
20899   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20900   # so they do not pile up.
20901   ac_sub_configure_args=
20902   ac_prev=
20903   eval "set x $ac_configure_args"
20904   shift
20905   for ac_arg
20906   do
20907     if test -n "$ac_prev"; then
20908       ac_prev=
20909       continue
20910     fi
20911     case $ac_arg in
20912     -cache-file | --cache-file | --cache-fil | --cache-fi \
20913     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20914       ac_prev=cache_file ;;
20915     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20916     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20917     | --c=*)
20918       ;;
20919     --config-cache | -C)
20920       ;;
20921     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20922       ac_prev=srcdir ;;
20923     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20924       ;;
20925     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20926       ac_prev=prefix ;;
20927     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20928       ;;
20929     --disable-option-checking)
20930       ;;
20931     *)
20932       case $ac_arg in
20933       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20934       esac
20935       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
20936     esac
20937   done
20938
20939   # Always prepend --prefix to ensure using the same prefix
20940   # in subdir configurations.
20941   ac_arg="--prefix=$prefix"
20942   case $ac_arg in
20943   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20944   esac
20945   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20946
20947   # Pass --silent
20948   if test "$silent" = yes; then
20949     ac_sub_configure_args="--silent $ac_sub_configure_args"
20950   fi
20951
20952   # Always prepend --disable-option-checking to silence warnings, since
20953   # different subdirs can have different --enable and --with options.
20954   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20955
20956   ac_popdir=`pwd`
20957   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20958
20959     # Do not complain, so a configure script can configure whichever
20960     # parts of a large source tree are present.
20961     test -d "$srcdir/$ac_dir" || continue
20962
20963     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20964     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20965     $as_echo "$ac_msg" >&6
20966     as_dir="$ac_dir"; as_fn_mkdir_p
20967     ac_builddir=.
20968
20969 case "$ac_dir" in
20970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20971 *)
20972   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20973   # A ".." for each directory in $ac_dir_suffix.
20974   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20975   case $ac_top_builddir_sub in
20976   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20977   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20978   esac ;;
20979 esac
20980 ac_abs_top_builddir=$ac_pwd
20981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20982 # for backward compatibility:
20983 ac_top_builddir=$ac_top_build_prefix
20984
20985 case $srcdir in
20986   .)  # We are building in place.
20987     ac_srcdir=.
20988     ac_top_srcdir=$ac_top_builddir_sub
20989     ac_abs_top_srcdir=$ac_pwd ;;
20990   [\\/]* | ?:[\\/]* )  # Absolute name.
20991     ac_srcdir=$srcdir$ac_dir_suffix;
20992     ac_top_srcdir=$srcdir
20993     ac_abs_top_srcdir=$srcdir ;;
20994   *) # Relative name.
20995     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20996     ac_top_srcdir=$ac_top_build_prefix$srcdir
20997     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20998 esac
20999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21000
21001
21002     cd "$ac_dir"
21003
21004     # Check for guested configure; otherwise get Cygnus style configure.
21005     if test -f "$ac_srcdir/configure.gnu"; then
21006       ac_sub_configure=$ac_srcdir/configure.gnu
21007     elif test -f "$ac_srcdir/configure"; then
21008       ac_sub_configure=$ac_srcdir/configure
21009     elif test -f "$ac_srcdir/configure.in"; then
21010       # This should be Cygnus configure.
21011       ac_sub_configure=$ac_aux_dir/configure
21012     else
21013       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21014 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21015       ac_sub_configure=
21016     fi
21017
21018     # The recursion is here.
21019     if test -n "$ac_sub_configure"; then
21020       # Make the cache file name correct relative to the subdirectory.
21021       case $cache_file in
21022       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21023       *) # Relative name.
21024         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21025       esac
21026
21027       { $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
21028 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21029       # The eval makes quoting arguments work.
21030       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21031            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21032         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21033     fi
21034
21035     cd "$ac_popdir"
21036   done
21037 fi
21038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21039   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21041 fi
21042
21043