Make $Id$ work again
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
563
564 case X$ECHO in
565 X*--fallback-echo)
566   # Remove one level of quotation (which was required for Make).
567   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568   ;;
569 esac
570
571 echo=${ECHO-echo}
572 if test "X$1" = X--no-reexec; then
573   # Discard the --no-reexec flag, and continue.
574   shift
575 elif test "X$1" = X--fallback-echo; then
576   # Avoid inline document here, it may be left over
577   :
578 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579   # Yippee, $echo works!
580   :
581 else
582   # Restart under the correct shell.
583   exec $SHELL "$0" --no-reexec ${1+"$@"}
584 fi
585
586 if test "X$1" = X--fallback-echo; then
587   # used as fallback echo
588   shift
589   cat <<EOF
590 $*
591 EOF
592   exit 0
593 fi
594
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
596 # if CDPATH is set.
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599 if test -z "$ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
605        echo_test_string=`eval $cmd` &&
606        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607     then
608       break
609     fi
610   done
611 fi
612
613 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615    test "X$echo_testing_string" = "X$echo_test_string"; then
616   :
617 else
618   # The Solaris, AIX, and Digital Unix default echo programs unquote
619   # backslashes.  This makes it impossible to quote backslashes using
620   #   echo "$something" | sed 's/\\/\\\\/g'
621   #
622   # So, first we look for a working echo in the user's PATH.
623
624   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625   for dir in $PATH /usr/ucb; do
626     IFS="$lt_save_ifs"
627     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630        test "X$echo_testing_string" = "X$echo_test_string"; then
631       echo="$dir/echo"
632       break
633     fi
634   done
635   IFS="$lt_save_ifs"
636
637   if test "X$echo" = Xecho; then
638     # We didn't find a better echo, so look for alternatives.
639     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641        test "X$echo_testing_string" = "X$echo_test_string"; then
642       # This shell has a builtin print -r that does the trick.
643       echo='print -r'
644     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645          test "X$CONFIG_SHELL" != X/bin/ksh; then
646       # If we have ksh, try running configure again with it.
647       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648       export ORIGINAL_CONFIG_SHELL
649       CONFIG_SHELL=/bin/ksh
650       export CONFIG_SHELL
651       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652     else
653       # Try using printf.
654       echo='printf %s\n'
655       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657          test "X$echo_testing_string" = "X$echo_test_string"; then
658         # Cool, printf works
659         :
660       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661            test "X$echo_testing_string" = 'X\t' &&
662            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663            test "X$echo_testing_string" = "X$echo_test_string"; then
664         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
665         export CONFIG_SHELL
666         SHELL="$CONFIG_SHELL"
667         export SHELL
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670            test "X$echo_testing_string" = 'X\t' &&
671            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673         echo="$CONFIG_SHELL $0 --fallback-echo"
674       else
675         # maybe with a smaller string...
676         prev=:
677
678         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680           then
681             break
682           fi
683           prev="$cmd"
684         done
685
686         if test "$prev" != 'sed 50q "$0"'; then
687           echo_test_string=`eval $prev`
688           export echo_test_string
689           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
690         else
691           # Oops.  We lost completely, so just stick with echo.
692           echo=echo
693         fi
694       fi
695     fi
696   fi
697 fi
698 fi
699
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
702 ECHO=$echo
703 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 fi
706
707
708
709
710 tagnames=${tagnames+${tagnames},}CXX
711
712 tagnames=${tagnames+${tagnames},}F77
713
714 test -n "$DJDIR" || exec 7<&0 </dev/null
715 exec 6>&1
716
717 # Name of the host.
718 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719 # so uname gets run too.
720 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721
722 #
723 # Initializations.
724 #
725 ac_default_prefix=/usr/local
726 ac_clean_files=
727 ac_config_libobj_dir=.
728 LIBOBJS=
729 cross_compiling=no
730 subdirs=
731 MFLAGS=
732 MAKEFLAGS=
733
734 # Identity of this package.
735 PACKAGE_NAME='freeradius'
736 PACKAGE_TARNAME='freeradius'
737 PACKAGE_VERSION='$Id$'
738 PACKAGE_STRING='freeradius $Id$'
739 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
740 PACKAGE_URL='http://www.freeradius.org'
741
742 ac_unique_file="src/main/radiusd.c"
743 # Factoring default headers for most tests.
744 ac_includes_default="\
745 #include <stdio.h>
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
748 #endif
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
751 #endif
752 #ifdef STDC_HEADERS
753 # include <stdlib.h>
754 # include <stddef.h>
755 #else
756 # ifdef HAVE_STDLIB_H
757 #  include <stdlib.h>
758 # endif
759 #endif
760 #ifdef HAVE_STRING_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
762 #  include <memory.h>
763 # endif
764 # include <string.h>
765 #endif
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
768 #endif
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
771 #endif
772 #ifdef HAVE_STDINT_H
773 # include <stdint.h>
774 #endif
775 #ifdef HAVE_UNISTD_H
776 # include <unistd.h>
777 #endif"
778
779 enable_option_checking=no
780 ac_subst_vars='LTLIBOBJS
781 LIBOBJS
782 RADIUSD_VERSION_COMMIT
783 RADIUSD_VERSION_STRING
784 RADIUSD_VERSION
785 RADIUSD_INCRM_VERSION
786 RADIUSD_MINOR_VERSION
787 RADIUSD_MAJOR_VERSION
788 STATIC_MODULES
789 USE_STATIC_LIBS
790 USE_SHARED_LIBS
791 INSTALLSTRIP
792 MODULES
793 subdirs
794 INCLTDL
795 LIBLTDL
796 HOSTINFO
797 CRYPTLIB
798 LIBPREFIX
799 PCAP_LIBS
800 OPENSSL_LIBS
801 OPENSSL_INCLUDE
802 REGEX_EXTENDED
803 REGEX
804 LIBREADLINE
805 DIRNAME
806 LOCATE
807 AUTOHEADER
808 AUTOCONF
809 ACLOCAL
810 RUSERS
811 SNMPWALK
812 SNMPGET
813 PERL
814 raddbdir
815 radacctdir
816 logdir
817 ac_ct_F77
818 FFLAGS
819 F77
820 CXXCPP
821 NMEDIT
822 DSYMUTIL
823 STRIP
824 AR
825 ECHO
826 LN_S
827 SED
828 host_os
829 host_vendor
830 host_cpu
831 host
832 build_os
833 build_vendor
834 build_cpu
835 build
836 LIBTOOL
837 LTDL_SUBDIRS
838 GIT
839 MAKE
840 GMAKE
841 RANLIB
842 EGREP
843 GREP
844 CPP
845 ac_ct_CXX
846 CXXFLAGS
847 CXX
848 OBJEXT
849 EXEEXT
850 ac_ct_CC
851 CPPFLAGS
852 LDFLAGS
853 CFLAGS
854 CC
855 target_alias
856 host_alias
857 build_alias
858 LIBS
859 ECHO_T
860 ECHO_N
861 ECHO_C
862 DEFS
863 mandir
864 localedir
865 libdir
866 psdir
867 pdfdir
868 dvidir
869 htmldir
870 infodir
871 docdir
872 oldincludedir
873 includedir
874 localstatedir
875 sharedstatedir
876 sysconfdir
877 datadir
878 datarootdir
879 libexecdir
880 sbindir
881 bindir
882 program_transform_name
883 prefix
884 exec_prefix
885 PACKAGE_URL
886 PACKAGE_BUGREPORT
887 PACKAGE_STRING
888 PACKAGE_VERSION
889 PACKAGE_TARNAME
890 PACKAGE_NAME
891 PATH_SEPARATOR
892 SHELL'
893 ac_subst_files=''
894 ac_user_opts='
895 enable_option_checking
896 enable_largefile
897 with_system_libltdl
898 with_system_libtool
899 enable_shared
900 enable_static
901 enable_fast_install
902 with_gnu_ld
903 enable_libtool_lock
904 with_pic
905 with_tags
906 enable_strict_dependencies
907 with_docdir
908 with_logdir
909 with_radacctdir
910 with_raddbdir
911 with_ascend_binary
912 with_threads
913 with_vmps
914 with_dhcp
915 with_post_proxy_authorize
916 with_static_modules
917 with_modules
918 enable_developer
919 with_experimental_modules
920 with_openssl
921 with_openssl_includes
922 with_openssl_libraries
923 with_rlm_FOO_lib_dir
924 with_rlm_FOO_include_dir
925 with_udpfromto
926 '
927       ac_precious_vars='build_alias
928 host_alias
929 target_alias
930 CC
931 CFLAGS
932 LDFLAGS
933 LIBS
934 CPPFLAGS
935 CXX
936 CXXFLAGS
937 CCC
938 CPP
939 CXXCPP
940 F77
941 FFLAGS'
942 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
996   # If the previous option needs an argument, assign it.
997   if test -n "$ac_prev"; then
998     eval $ac_prev=\$ac_option
999     ac_prev=
1000     continue
1001   fi
1002
1003   case $ac_option in
1004   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005   *=)   ac_optarg= ;;
1006   *)    ac_optarg=yes ;;
1007   esac
1008
1009   # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011   case $ac_dashdash$ac_option in
1012   --)
1013     ac_dashdash=yes ;;
1014
1015   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016     ac_prev=bindir ;;
1017   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018     bindir=$ac_optarg ;;
1019
1020   -build | --build | --buil | --bui | --bu)
1021     ac_prev=build_alias ;;
1022   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023     build_alias=$ac_optarg ;;
1024
1025   -cache-file | --cache-file | --cache-fil | --cache-fi \
1026   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027     ac_prev=cache_file ;;
1028   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030     cache_file=$ac_optarg ;;
1031
1032   --config-cache | -C)
1033     cache_file=config.cache ;;
1034
1035   -datadir | --datadir | --datadi | --datad)
1036     ac_prev=datadir ;;
1037   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038     datadir=$ac_optarg ;;
1039
1040   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041   | --dataroo | --dataro | --datar)
1042     ac_prev=datarootdir ;;
1043   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045     datarootdir=$ac_optarg ;;
1046
1047   -disable-* | --disable-*)
1048     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051       as_fn_error $? "invalid feature name: $ac_useropt"
1052     ac_useropt_orig=$ac_useropt
1053     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054     case $ac_user_opts in
1055       *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059          ac_unrecognized_sep=', ';;
1060     esac
1061     eval enable_$ac_useropt=no ;;
1062
1063   -docdir | --docdir | --docdi | --doc | --do)
1064     ac_prev=docdir ;;
1065   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066     docdir=$ac_optarg ;;
1067
1068   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069     ac_prev=dvidir ;;
1070   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071     dvidir=$ac_optarg ;;
1072
1073   -enable-* | --enable-*)
1074     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077       as_fn_error $? "invalid feature name: $ac_useropt"
1078     ac_useropt_orig=$ac_useropt
1079     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080     case $ac_user_opts in
1081       *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085          ac_unrecognized_sep=', ';;
1086     esac
1087     eval enable_$ac_useropt=\$ac_optarg ;;
1088
1089   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091   | --exec | --exe | --ex)
1092     ac_prev=exec_prefix ;;
1093   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095   | --exec=* | --exe=* | --ex=*)
1096     exec_prefix=$ac_optarg ;;
1097
1098   -gas | --gas | --ga | --g)
1099     # Obsolete; use --with-gas.
1100     with_gas=yes ;;
1101
1102   -help | --help | --hel | --he | -h)
1103     ac_init_help=long ;;
1104   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105     ac_init_help=recursive ;;
1106   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107     ac_init_help=short ;;
1108
1109   -host | --host | --hos | --ho)
1110     ac_prev=host_alias ;;
1111   -host=* | --host=* | --hos=* | --ho=*)
1112     host_alias=$ac_optarg ;;
1113
1114   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115     ac_prev=htmldir ;;
1116   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117   | --ht=*)
1118     htmldir=$ac_optarg ;;
1119
1120   -includedir | --includedir | --includedi | --included | --include \
1121   | --includ | --inclu | --incl | --inc)
1122     ac_prev=includedir ;;
1123   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124   | --includ=* | --inclu=* | --incl=* | --inc=*)
1125     includedir=$ac_optarg ;;
1126
1127   -infodir | --infodir | --infodi | --infod | --info | --inf)
1128     ac_prev=infodir ;;
1129   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130     infodir=$ac_optarg ;;
1131
1132   -libdir | --libdir | --libdi | --libd)
1133     ac_prev=libdir ;;
1134   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135     libdir=$ac_optarg ;;
1136
1137   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138   | --libexe | --libex | --libe)
1139     ac_prev=libexecdir ;;
1140   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141   | --libexe=* | --libex=* | --libe=*)
1142     libexecdir=$ac_optarg ;;
1143
1144   -localedir | --localedir | --localedi | --localed | --locale)
1145     ac_prev=localedir ;;
1146   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147     localedir=$ac_optarg ;;
1148
1149   -localstatedir | --localstatedir | --localstatedi | --localstated \
1150   | --localstate | --localstat | --localsta | --localst | --locals)
1151     ac_prev=localstatedir ;;
1152   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154     localstatedir=$ac_optarg ;;
1155
1156   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157     ac_prev=mandir ;;
1158   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159     mandir=$ac_optarg ;;
1160
1161   -nfp | --nfp | --nf)
1162     # Obsolete; use --without-fp.
1163     with_fp=no ;;
1164
1165   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166   | --no-cr | --no-c | -n)
1167     no_create=yes ;;
1168
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     no_recursion=yes ;;
1172
1173   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175   | --oldin | --oldi | --old | --ol | --o)
1176     ac_prev=oldincludedir ;;
1177   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180     oldincludedir=$ac_optarg ;;
1181
1182   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183     ac_prev=prefix ;;
1184   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185     prefix=$ac_optarg ;;
1186
1187   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188   | --program-pre | --program-pr | --program-p)
1189     ac_prev=program_prefix ;;
1190   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192     program_prefix=$ac_optarg ;;
1193
1194   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195   | --program-suf | --program-su | --program-s)
1196     ac_prev=program_suffix ;;
1197   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199     program_suffix=$ac_optarg ;;
1200
1201   -program-transform-name | --program-transform-name \
1202   | --program-transform-nam | --program-transform-na \
1203   | --program-transform-n | --program-transform- \
1204   | --program-transform | --program-transfor \
1205   | --program-transfo | --program-transf \
1206   | --program-trans | --program-tran \
1207   | --progr-tra | --program-tr | --program-t)
1208     ac_prev=program_transform_name ;;
1209   -program-transform-name=* | --program-transform-name=* \
1210   | --program-transform-nam=* | --program-transform-na=* \
1211   | --program-transform-n=* | --program-transform-=* \
1212   | --program-transform=* | --program-transfor=* \
1213   | --program-transfo=* | --program-transf=* \
1214   | --program-trans=* | --program-tran=* \
1215   | --progr-tra=* | --program-tr=* | --program-t=*)
1216     program_transform_name=$ac_optarg ;;
1217
1218   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219     ac_prev=pdfdir ;;
1220   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221     pdfdir=$ac_optarg ;;
1222
1223   -psdir | --psdir | --psdi | --psd | --ps)
1224     ac_prev=psdir ;;
1225   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226     psdir=$ac_optarg ;;
1227
1228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229   | -silent | --silent | --silen | --sile | --sil)
1230     silent=yes ;;
1231
1232   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233     ac_prev=sbindir ;;
1234   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235   | --sbi=* | --sb=*)
1236     sbindir=$ac_optarg ;;
1237
1238   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240   | --sharedst | --shareds | --shared | --share | --shar \
1241   | --sha | --sh)
1242     ac_prev=sharedstatedir ;;
1243   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246   | --sha=* | --sh=*)
1247     sharedstatedir=$ac_optarg ;;
1248
1249   -site | --site | --sit)
1250     ac_prev=site ;;
1251   -site=* | --site=* | --sit=*)
1252     site=$ac_optarg ;;
1253
1254   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255     ac_prev=srcdir ;;
1256   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257     srcdir=$ac_optarg ;;
1258
1259   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260   | --syscon | --sysco | --sysc | --sys | --sy)
1261     ac_prev=sysconfdir ;;
1262   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264     sysconfdir=$ac_optarg ;;
1265
1266   -target | --target | --targe | --targ | --tar | --ta | --t)
1267     ac_prev=target_alias ;;
1268   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269     target_alias=$ac_optarg ;;
1270
1271   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272     verbose=yes ;;
1273
1274   -version | --version | --versio | --versi | --vers | -V)
1275     ac_init_version=: ;;
1276
1277   -with-* | --with-*)
1278     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281       as_fn_error $? "invalid package name: $ac_useropt"
1282     ac_useropt_orig=$ac_useropt
1283     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284     case $ac_user_opts in
1285       *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289          ac_unrecognized_sep=', ';;
1290     esac
1291     eval with_$ac_useropt=\$ac_optarg ;;
1292
1293   -without-* | --without-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       as_fn_error $? "invalid package name: $ac_useropt"
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval with_$ac_useropt=no ;;
1308
1309   --x)
1310     # Obsolete; use --with-x.
1311     with_x=yes ;;
1312
1313   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314   | --x-incl | --x-inc | --x-in | --x-i)
1315     ac_prev=x_includes ;;
1316   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318     x_includes=$ac_optarg ;;
1319
1320   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322     ac_prev=x_libraries ;;
1323   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325     x_libraries=$ac_optarg ;;
1326
1327   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information"
1329     ;;
1330
1331   *=*)
1332     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333     # Reject names that are not valid shell variable names.
1334     case $ac_envvar in #(
1335       '' | [0-9]* | *[!_$as_cr_alnum]* )
1336       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1337     esac
1338     eval $ac_envvar=\$ac_optarg
1339     export $ac_envvar ;;
1340
1341   *)
1342     # FIXME: should be removed in autoconf 3.0.
1343     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1347     ;;
1348
1349   esac
1350 done
1351
1352 if test -n "$ac_prev"; then
1353   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354   as_fn_error $? "missing argument to $ac_option"
1355 fi
1356
1357 if test -n "$ac_unrecognized_opts"; then
1358   case $enable_option_checking in
1359     no) ;;
1360     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1361     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362   esac
1363 fi
1364
1365 # Check all directory arguments for consistency.
1366 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367                 datadir sysconfdir sharedstatedir localstatedir includedir \
1368                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369                 libdir localedir mandir
1370 do
1371   eval ac_val=\$$ac_var
1372   # Remove trailing slashes.
1373   case $ac_val in
1374     */ )
1375       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376       eval $ac_var=\$ac_val;;
1377   esac
1378   # Be sure to have absolute directory names.
1379   case $ac_val in
1380     [\\/$]* | ?:[\\/]* )  continue;;
1381     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382   esac
1383   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1385
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1392
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395   if test "x$build_alias" = x; then
1396     cross_compiling=maybe
1397   elif test "x$build_alias" != "x$host_alias"; then
1398     cross_compiling=yes
1399   fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411   as_fn_error $? "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413   as_fn_error $? "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418   ac_srcdir_defaulted=yes
1419   # Try the directory containing this script, then the parent directory.
1420   ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422          X"$as_myself" : 'X\(//\)[^/]' \| \
1423          X"$as_myself" : 'X\(//\)$' \| \
1424          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\/\)[^/].*/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\).*/{
1439             s//\1/
1440             q
1441           }
1442           s/.*/./; q'`
1443   srcdir=$ac_confdir
1444   if test ! -r "$srcdir/$ac_unique_file"; then
1445     srcdir=..
1446   fi
1447 else
1448   ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1457         pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460   srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_env_${ac_var}_value=\$${ac_var}
1471   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479   # Omit some internal or obsolete options to make the list less imposing.
1480   # This message is too long to be a string in the A/UX 3.1 sh.
1481   cat <<_ACEOF
1482 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE.  See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492   -h, --help              display this help and exit
1493       --help=short        display options specific to this package
1494       --help=recursive    display the short help of all the included packages
1495   -V, --version           display version information and exit
1496   -q, --quiet, --silent   do not print \`checking ...' messages
1497       --cache-file=FILE   cache test results in FILE [disabled]
1498   -C, --config-cache      alias for \`--cache-file=config.cache'
1499   -n, --no-create         do not create output files
1500       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503   --prefix=PREFIX         install architecture-independent files in PREFIX
1504                           [$ac_default_prefix]
1505   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1506                           [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516   --bindir=DIR            user executables [EPREFIX/bin]
1517   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1518   --libexecdir=DIR        program executables [EPREFIX/libexec]
1519   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1520   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1521   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1522   --libdir=DIR            object code libraries [EPREFIX/lib]
1523   --includedir=DIR        C header files [PREFIX/include]
1524   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1525   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1526   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1527   --infodir=DIR           info documentation [DATAROOTDIR/info]
1528   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1529   --mandir=DIR            man documentation [DATAROOTDIR/man]
1530   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1531   --htmldir=DIR           html documentation [DOCDIR]
1532   --dvidir=DIR            dvi documentation [DOCDIR]
1533   --pdfdir=DIR            pdf documentation [DOCDIR]
1534   --psdir=DIR             ps documentation [DOCDIR]
1535 _ACEOF
1536
1537   cat <<\_ACEOF
1538
1539 System types:
1540   --build=BUILD     configure for building on BUILD [guessed]
1541   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1542 _ACEOF
1543 fi
1544
1545 if test -n "$ac_init_help"; then
1546   case $ac_init_help in
1547      short | recursive ) echo "Configuration of freeradius $Id$:";;
1548    esac
1549   cat <<\_ACEOF
1550
1551 Optional Features:
1552   --disable-option-checking  ignore unrecognized --enable/--with options
1553   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555   --disable-largefile     omit support for large files
1556   --enable-shared[=PKGS]  build shared libraries [default=yes]
1557   --enable-static[=PKGS]  build static libraries [default=yes]
1558   --enable-fast-install[=PKGS]
1559                           optimize for fast installation [default=yes]
1560   --disable-libtool-lock  avoid locking (might break parallel builds)
1561   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1562   --enable-developer               Enables features of interest to developers.
1563
1564 Optional Packages:
1565   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1566   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1567   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1568   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1569   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1570   --with-pic              try to use only PIC/non-PIC objects [default=use
1571                           both]
1572   --with-tags[=TAGS]      include additional configurations [automatic]
1573   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1574   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1575   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1576   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1577   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1578   --with-threads          Use threads, if available.  (default=yes)
1579   --with-vmps             Compile in VMPS support. (default=yes)
1580   --with-dhcp             Compile in DHCP support. (default=yes)
1581   --with-post-proxy-authorize  1.x compatibility  (default=no)
1582   --with-static-modules=QUOTED-MODULE-LIST
1583  --with-modules=QUOTED-MODULE-LIST
1584   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1585   --with-openssl                   Use OpenSSL. (default=yes)
1586   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1587   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1588   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1589   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1590   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1591
1592 Some influential environment variables:
1593   CC          C compiler command
1594   CFLAGS      C compiler flags
1595   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1596               nonstandard directory <lib dir>
1597   LIBS        libraries to pass to the linker, e.g. -l<library>
1598   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599               you have headers in a nonstandard directory <include dir>
1600   CXX         C++ compiler command
1601   CXXFLAGS    C++ compiler flags
1602   CPP         C preprocessor
1603   CXXCPP      C++ preprocessor
1604   F77         Fortran 77 compiler command
1605   FFLAGS      Fortran 77 compiler flags
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to <http://bugs.freeradius.org>.
1611 freeradius home page: <http://www.freeradius.org>.
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617   # If there are subdirs, report their specific --help.
1618   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619     test -d "$ac_dir" ||
1620       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621       continue
1622     ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628   # A ".." for each directory in $ac_dir_suffix.
1629   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630   case $ac_top_builddir_sub in
1631   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633   esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641   .)  # We are building in place.
1642     ac_srcdir=.
1643     ac_top_srcdir=$ac_top_builddir_sub
1644     ac_abs_top_srcdir=$ac_pwd ;;
1645   [\\/]* | ?:[\\/]* )  # Absolute name.
1646     ac_srcdir=$srcdir$ac_dir_suffix;
1647     ac_top_srcdir=$srcdir
1648     ac_abs_top_srcdir=$srcdir ;;
1649   *) # Relative name.
1650     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651     ac_top_srcdir=$ac_top_build_prefix$srcdir
1652     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656     cd "$ac_dir" || { ac_status=$?; continue; }
1657     # Check for guested configure.
1658     if test -f "$ac_srcdir/configure.gnu"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661     elif test -f "$ac_srcdir/configure"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure" --help=recursive
1664     else
1665       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666     fi || ac_status=$?
1667     cd "$ac_pwd" || { ac_status=$?; break; }
1668   done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673   cat <<\_ACEOF
1674 freeradius configure $Id$
1675 generated by GNU Autoconf 2.69
1676
1677 Copyright (C) 2012 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681   exit
1682 fi
1683
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext
1695   if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_compile") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_c_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest.$ac_objext; then :
1714   ac_retval=0
1715 else
1716   $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719         ac_retval=1
1720 fi
1721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_cxx_try_compile LINENO
1727 # ----------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_cxx_try_compile ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   rm -f conftest.$ac_objext
1733   if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_compile") 2>conftest.err
1741   ac_status=$?
1742   if test -s conftest.err; then
1743     grep -v '^ *+' conftest.err >conftest.er1
1744     cat conftest.er1 >&5
1745     mv -f conftest.er1 conftest.err
1746   fi
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } && {
1749          test -z "$ac_cxx_werror_flag" ||
1750          test ! -s conftest.err
1751        } && test -s conftest.$ac_objext; then :
1752   ac_retval=0
1753 else
1754   $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757         ac_retval=1
1758 fi
1759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760   as_fn_set_status $ac_retval
1761
1762 } # ac_fn_cxx_try_compile
1763
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_cpp ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778   ac_status=$?
1779   if test -s conftest.err; then
1780     grep -v '^ *+' conftest.err >conftest.er1
1781     cat conftest.er1 >&5
1782     mv -f conftest.er1 conftest.err
1783   fi
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } > conftest.i && {
1786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787          test ! -s conftest.err
1788        }; then :
1789   ac_retval=0
1790 else
1791   $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794     ac_retval=1
1795 fi
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797   as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_cpp
1800
1801 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804 # the include files in INCLUDES and setting the cache variable VAR
1805 # accordingly.
1806 ac_fn_c_check_header_mongrel ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   if eval \${$3+:} false; then :
1810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813   $as_echo_n "(cached) " >&6
1814 fi
1815 eval ac_res=\$$3
1816                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 else
1819   # Is the header compilable?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821 $as_echo_n "checking $2 usability... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h.  */
1824 $4
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828   ac_header_compiler=yes
1829 else
1830   ac_header_compiler=no
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834 $as_echo "$ac_header_compiler" >&6; }
1835
1836 # Is the header present?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838 $as_echo_n "checking $2 presence... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h.  */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_cpp "$LINENO"; then :
1844   ac_header_preproc=yes
1845 else
1846   ac_header_preproc=no
1847 fi
1848 rm -f conftest.err conftest.i conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850 $as_echo "$ac_header_preproc" >&6; }
1851
1852 # So?  What about this header?
1853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854   yes:no: )
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859     ;;
1860   no:yes:* )
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1864 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1868 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 ( $as_echo "## ----------------------------------------- ##
1872 ## Report this to http://bugs.freeradius.org ##
1873 ## ----------------------------------------- ##"
1874      ) | sed "s/^/$as_me: WARNING:     /" >&2
1875     ;;
1876 esac
1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880   $as_echo_n "(cached) " >&6
1881 else
1882   eval "$3=\$ac_header_compiler"
1883 fi
1884 eval ac_res=\$$3
1885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 fi
1888   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_header_mongrel
1891
1892 # ac_fn_c_try_run LINENO
1893 # ----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1895 # that executables *can* be run.
1896 ac_fn_c_try_run ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902   *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906   (eval "$ac_link") 2>&5
1907   ac_status=$?
1908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910   { { case "(($ac_try" in
1911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912   *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916   (eval "$ac_try") 2>&5
1917   ac_status=$?
1918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919   test $ac_status = 0; }; }; then :
1920   ac_retval=0
1921 else
1922   $as_echo "$as_me: program exited with status $ac_status" >&5
1923        $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926        ac_retval=$ac_status
1927 fi
1928   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930   as_fn_set_status $ac_retval
1931
1932 } # ac_fn_c_try_run
1933
1934 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1935 # -------------------------------------------------------
1936 # Tests whether HEADER exists and can be compiled using the include files in
1937 # INCLUDES, setting the cache variable VAR accordingly.
1938 ac_fn_c_check_header_compile ()
1939 {
1940   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944   $as_echo_n "(cached) " >&6
1945 else
1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 $4
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952   eval "$3=yes"
1953 else
1954   eval "$3=no"
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963 } # ac_fn_c_check_header_compile
1964
1965 # ac_fn_c_try_link LINENO
1966 # -----------------------
1967 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_link ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   rm -f conftest.$ac_objext conftest$ac_exeext
1972   if { { ac_try="$ac_link"
1973 case "(($ac_try" in
1974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975   *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979   (eval "$ac_link") 2>conftest.err
1980   ac_status=$?
1981   if test -s conftest.err; then
1982     grep -v '^ *+' conftest.err >conftest.er1
1983     cat conftest.er1 >&5
1984     mv -f conftest.er1 conftest.err
1985   fi
1986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987   test $ac_status = 0; } && {
1988          test -z "$ac_c_werror_flag" ||
1989          test ! -s conftest.err
1990        } && test -s conftest$ac_exeext && {
1991          test "$cross_compiling" = yes ||
1992          test -x conftest$ac_exeext
1993        }; then :
1994   ac_retval=0
1995 else
1996   $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999         ac_retval=1
2000 fi
2001   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2002   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2003   # interfere with the next link command; also delete a directory that is
2004   # left behind by Apple's compiler.  We do this before executing the actions.
2005   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007   as_fn_set_status $ac_retval
2008
2009 } # ac_fn_c_try_link
2010
2011 # ac_fn_c_check_func LINENO FUNC VAR
2012 # ----------------------------------
2013 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2014 ac_fn_c_check_func ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020   $as_echo_n "(cached) " >&6
2021 else
2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2026 #define $2 innocuous_$2
2027
2028 /* System header to define __stub macros and hopefully few prototypes,
2029     which can conflict with char $2 (); below.
2030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2031     <limits.h> exists even on freestanding compilers.  */
2032
2033 #ifdef __STDC__
2034 # include <limits.h>
2035 #else
2036 # include <assert.h>
2037 #endif
2038
2039 #undef $2
2040
2041 /* Override any GCC internal prototype to avoid an error.
2042    Use char because int might match the return type of a GCC
2043    builtin and then its argument prototype would still apply.  */
2044 #ifdef __cplusplus
2045 extern "C"
2046 #endif
2047 char $2 ();
2048 /* The GNU C library defines this for functions which it implements
2049     to always fail with ENOSYS.  Some functions are actually named
2050     something starting with __ and the normal name is an alias.  */
2051 #if defined __stub_$2 || defined __stub___$2
2052 choke me
2053 #endif
2054
2055 int
2056 main ()
2057 {
2058 return $2 ();
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_link "$LINENO"; then :
2064   eval "$3=yes"
2065 else
2066   eval "$3=no"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext \
2069     conftest$ac_exeext conftest.$ac_ext
2070 fi
2071 eval ac_res=\$$3
2072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_func
2077
2078 # ac_fn_cxx_try_cpp LINENO
2079 # ------------------------
2080 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_cxx_try_cpp ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   if { { ac_try="$ac_cpp conftest.$ac_ext"
2085 case "(($ac_try" in
2086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087   *) ac_try_echo=$ac_try;;
2088 esac
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2092   ac_status=$?
2093   if test -s conftest.err; then
2094     grep -v '^ *+' conftest.err >conftest.er1
2095     cat conftest.er1 >&5
2096     mv -f conftest.er1 conftest.err
2097   fi
2098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099   test $ac_status = 0; } > conftest.i && {
2100          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2101          test ! -s conftest.err
2102        }; then :
2103   ac_retval=0
2104 else
2105   $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108     ac_retval=1
2109 fi
2110   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111   as_fn_set_status $ac_retval
2112
2113 } # ac_fn_cxx_try_cpp
2114
2115 # ac_fn_cxx_try_link LINENO
2116 # -------------------------
2117 # Try to link conftest.$ac_ext, and return whether this succeeded.
2118 ac_fn_cxx_try_link ()
2119 {
2120   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121   rm -f conftest.$ac_objext conftest$ac_exeext
2122   if { { ac_try="$ac_link"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128 $as_echo "$ac_try_echo"; } >&5
2129   (eval "$ac_link") 2>conftest.err
2130   ac_status=$?
2131   if test -s conftest.err; then
2132     grep -v '^ *+' conftest.err >conftest.er1
2133     cat conftest.er1 >&5
2134     mv -f conftest.er1 conftest.err
2135   fi
2136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137   test $ac_status = 0; } && {
2138          test -z "$ac_cxx_werror_flag" ||
2139          test ! -s conftest.err
2140        } && test -s conftest$ac_exeext && {
2141          test "$cross_compiling" = yes ||
2142          test -x conftest$ac_exeext
2143        }; then :
2144   ac_retval=0
2145 else
2146   $as_echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149         ac_retval=1
2150 fi
2151   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2152   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2153   # interfere with the next link command; also delete a directory that is
2154   # left behind by Apple's compiler.  We do this before executing the actions.
2155   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2156   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157   as_fn_set_status $ac_retval
2158
2159 } # ac_fn_cxx_try_link
2160
2161 # ac_fn_f77_try_compile LINENO
2162 # ----------------------------
2163 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_f77_try_compile ()
2165 {
2166   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167   rm -f conftest.$ac_objext
2168   if { { ac_try="$ac_compile"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175   (eval "$ac_compile") 2>conftest.err
2176   ac_status=$?
2177   if test -s conftest.err; then
2178     grep -v '^ *+' conftest.err >conftest.er1
2179     cat conftest.er1 >&5
2180     mv -f conftest.er1 conftest.err
2181   fi
2182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183   test $ac_status = 0; } && {
2184          test -z "$ac_f77_werror_flag" ||
2185          test ! -s conftest.err
2186        } && test -s conftest.$ac_objext; then :
2187   ac_retval=0
2188 else
2189   $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192         ac_retval=1
2193 fi
2194   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195   as_fn_set_status $ac_retval
2196
2197 } # ac_fn_f77_try_compile
2198
2199 # ac_fn_f77_try_link LINENO
2200 # -------------------------
2201 # Try to link conftest.$ac_ext, and return whether this succeeded.
2202 ac_fn_f77_try_link ()
2203 {
2204   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205   rm -f conftest.$ac_objext conftest$ac_exeext
2206   if { { ac_try="$ac_link"
2207 case "(($ac_try" in
2208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209   *) ac_try_echo=$ac_try;;
2210 esac
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213   (eval "$ac_link") 2>conftest.err
2214   ac_status=$?
2215   if test -s conftest.err; then
2216     grep -v '^ *+' conftest.err >conftest.er1
2217     cat conftest.er1 >&5
2218     mv -f conftest.er1 conftest.err
2219   fi
2220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221   test $ac_status = 0; } && {
2222          test -z "$ac_f77_werror_flag" ||
2223          test ! -s conftest.err
2224        } && test -s conftest$ac_exeext && {
2225          test "$cross_compiling" = yes ||
2226          test -x conftest$ac_exeext
2227        }; then :
2228   ac_retval=0
2229 else
2230   $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233         ac_retval=1
2234 fi
2235   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2236   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2237   # interfere with the next link command; also delete a directory that is
2238   # left behind by Apple's compiler.  We do this before executing the actions.
2239   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2240   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241   as_fn_set_status $ac_retval
2242
2243 } # ac_fn_f77_try_link
2244
2245 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2246 # -------------------------------------------
2247 # Tests whether TYPE exists after having included INCLUDES, setting cache
2248 # variable VAR accordingly.
2249 ac_fn_c_check_type ()
2250 {
2251   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval \${$3+:} false; then :
2255   $as_echo_n "(cached) " >&6
2256 else
2257   eval "$3=no"
2258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h.  */
2260 $4
2261 int
2262 main ()
2263 {
2264 if (sizeof ($2))
2265          return 0;
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h.  */
2273 $4
2274 int
2275 main ()
2276 {
2277 if (sizeof (($2)))
2278             return 0;
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284
2285 else
2286   eval "$3=yes"
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 fi
2292 eval ac_res=\$$3
2293                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297 } # ac_fn_c_check_type
2298
2299 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2300 # ---------------------------------------------
2301 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2302 # accordingly.
2303 ac_fn_c_check_decl ()
2304 {
2305   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306   as_decl_name=`echo $2|sed 's/ *(.*//'`
2307   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2309 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2310 if eval \${$3+:} false; then :
2311   $as_echo_n "(cached) " >&6
2312 else
2313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h.  */
2315 $4
2316 int
2317 main ()
2318 {
2319 #ifndef $as_decl_name
2320 #ifdef __cplusplus
2321   (void) $as_decl_use;
2322 #else
2323   (void) $as_decl_name;
2324 #endif
2325 #endif
2326
2327   ;
2328   return 0;
2329 }
2330 _ACEOF
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332   eval "$3=yes"
2333 else
2334   eval "$3=no"
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 eval ac_res=\$$3
2339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342
2343 } # ac_fn_c_check_decl
2344 cat >config.log <<_ACEOF
2345 This file contains any messages produced by compilers while
2346 running configure, to aid debugging if configure makes a mistake.
2347
2348 It was created by freeradius $as_me $Id$, which was
2349 generated by GNU Autoconf 2.69.  Invocation command line was
2350
2351   $ $0 $@
2352
2353 _ACEOF
2354 exec 5>>config.log
2355 {
2356 cat <<_ASUNAME
2357 ## --------- ##
2358 ## Platform. ##
2359 ## --------- ##
2360
2361 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366
2367 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2369
2370 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2371 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2372 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2373 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2374 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2375 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2376 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2377
2378 _ASUNAME
2379
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383   IFS=$as_save_IFS
2384   test -z "$as_dir" && as_dir=.
2385     $as_echo "PATH: $as_dir"
2386   done
2387 IFS=$as_save_IFS
2388
2389 } >&5
2390
2391 cat >&5 <<_ACEOF
2392
2393
2394 ## ----------- ##
2395 ## Core tests. ##
2396 ## ----------- ##
2397
2398 _ACEOF
2399
2400
2401 # Keep a trace of the command line.
2402 # Strip out --no-create and --no-recursion so they do not pile up.
2403 # Strip out --silent because we don't want to record it for future runs.
2404 # Also quote any args containing shell meta-characters.
2405 # Make two passes to allow for proper duplicate-argument suppression.
2406 ac_configure_args=
2407 ac_configure_args0=
2408 ac_configure_args1=
2409 ac_must_keep_next=false
2410 for ac_pass in 1 2
2411 do
2412   for ac_arg
2413   do
2414     case $ac_arg in
2415     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417     | -silent | --silent | --silen | --sile | --sil)
2418       continue ;;
2419     *\'*)
2420       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421     esac
2422     case $ac_pass in
2423     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424     2)
2425       as_fn_append ac_configure_args1 " '$ac_arg'"
2426       if test $ac_must_keep_next = true; then
2427         ac_must_keep_next=false # Got value, back to normal.
2428       else
2429         case $ac_arg in
2430           *=* | --config-cache | -C | -disable-* | --disable-* \
2431           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433           | -with-* | --with-* | -without-* | --without-* | --x)
2434             case "$ac_configure_args0 " in
2435               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436             esac
2437             ;;
2438           -* ) ac_must_keep_next=true ;;
2439         esac
2440       fi
2441       as_fn_append ac_configure_args " '$ac_arg'"
2442       ;;
2443     esac
2444   done
2445 done
2446 { ac_configure_args0=; unset ac_configure_args0;}
2447 { ac_configure_args1=; unset ac_configure_args1;}
2448
2449 # When interrupted or exit'd, cleanup temporary files, and complete
2450 # config.log.  We remove comments because anyway the quotes in there
2451 # would cause problems or look ugly.
2452 # WARNING: Use '\'' to represent an apostrophe within the trap.
2453 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454 trap 'exit_status=$?
2455   # Save into config.log some information that might help in debugging.
2456   {
2457     echo
2458
2459     $as_echo "## ---------------- ##
2460 ## Cache variables. ##
2461 ## ---------------- ##"
2462     echo
2463     # The following way of writing the cache mishandles newlines in values,
2464 (
2465   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466     eval ac_val=\$$ac_var
2467     case $ac_val in #(
2468     *${as_nl}*)
2469       case $ac_var in #(
2470       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2472       esac
2473       case $ac_var in #(
2474       _ | IFS | as_nl) ;; #(
2475       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476       *) { eval $ac_var=; unset $ac_var;} ;;
2477       esac ;;
2478     esac
2479   done
2480   (set) 2>&1 |
2481     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482     *${as_nl}ac_space=\ *)
2483       sed -n \
2484         "s/'\''/'\''\\\\'\'''\''/g;
2485           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2486       ;; #(
2487     *)
2488       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2489       ;;
2490     esac |
2491     sort
2492 )
2493     echo
2494
2495     $as_echo "## ----------------- ##
2496 ## Output variables. ##
2497 ## ----------------- ##"
2498     echo
2499     for ac_var in $ac_subst_vars
2500     do
2501       eval ac_val=\$$ac_var
2502       case $ac_val in
2503       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504       esac
2505       $as_echo "$ac_var='\''$ac_val'\''"
2506     done | sort
2507     echo
2508
2509     if test -n "$ac_subst_files"; then
2510       $as_echo "## ------------------- ##
2511 ## File substitutions. ##
2512 ## ------------------- ##"
2513       echo
2514       for ac_var in $ac_subst_files
2515       do
2516         eval ac_val=\$$ac_var
2517         case $ac_val in
2518         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519         esac
2520         $as_echo "$ac_var='\''$ac_val'\''"
2521       done | sort
2522       echo
2523     fi
2524
2525     if test -s confdefs.h; then
2526       $as_echo "## ----------- ##
2527 ## confdefs.h. ##
2528 ## ----------- ##"
2529       echo
2530       cat confdefs.h
2531       echo
2532     fi
2533     test "$ac_signal" != 0 &&
2534       $as_echo "$as_me: caught signal $ac_signal"
2535     $as_echo "$as_me: exit $exit_status"
2536   } >&5
2537   rm -f core *.core core.conftest.* &&
2538     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2539     exit $exit_status
2540 ' 0
2541 for ac_signal in 1 2 13 15; do
2542   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2543 done
2544 ac_signal=0
2545
2546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2547 rm -f -r conftest* confdefs.h
2548
2549 $as_echo "/* confdefs.h */" > confdefs.h
2550
2551 # Predefined preprocessor variables.
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_NAME "$PACKAGE_NAME"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2563 _ACEOF
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_STRING "$PACKAGE_STRING"
2567 _ACEOF
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2571 _ACEOF
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_URL "$PACKAGE_URL"
2575 _ACEOF
2576
2577
2578 # Let the site file select an alternate cache file if it wants to.
2579 # Prefer an explicitly selected file to automatically selected ones.
2580 ac_site_file1=NONE
2581 ac_site_file2=NONE
2582 if test -n "$CONFIG_SITE"; then
2583   # We do not want a PATH search for config.site.
2584   case $CONFIG_SITE in #((
2585     -*)  ac_site_file1=./$CONFIG_SITE;;
2586     */*) ac_site_file1=$CONFIG_SITE;;
2587     *)   ac_site_file1=./$CONFIG_SITE;;
2588   esac
2589 elif test "x$prefix" != xNONE; then
2590   ac_site_file1=$prefix/share/config.site
2591   ac_site_file2=$prefix/etc/config.site
2592 else
2593   ac_site_file1=$ac_default_prefix/share/config.site
2594   ac_site_file2=$ac_default_prefix/etc/config.site
2595 fi
2596 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 do
2598   test "x$ac_site_file" = xNONE && continue
2599   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2600     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2601 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2602     sed 's/^/| /' "$ac_site_file" >&5
2603     . "$ac_site_file" \
2604       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 as_fn_error $? "failed to load site script $ac_site_file
2607 See \`config.log' for more details" "$LINENO" 5; }
2608   fi
2609 done
2610
2611 if test -r "$cache_file"; then
2612   # Some versions of bash will fail to source /dev/null (special files
2613   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2614   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2615     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2616 $as_echo "$as_me: loading cache $cache_file" >&6;}
2617     case $cache_file in
2618       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619       *)                      . "./$cache_file";;
2620     esac
2621   fi
2622 else
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2624 $as_echo "$as_me: creating cache $cache_file" >&6;}
2625   >$cache_file
2626 fi
2627
2628 # Check that the precious variables saved in the cache have kept the same
2629 # value.
2630 ac_cache_corrupted=false
2631 for ac_var in $ac_precious_vars; do
2632   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2633   eval ac_new_set=\$ac_env_${ac_var}_set
2634   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2635   eval ac_new_val=\$ac_env_${ac_var}_value
2636   case $ac_old_set,$ac_new_set in
2637     set,)
2638       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2640       ac_cache_corrupted=: ;;
2641     ,set)
2642       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2643 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2644       ac_cache_corrupted=: ;;
2645     ,);;
2646     *)
2647       if test "x$ac_old_val" != "x$ac_new_val"; then
2648         # differences in whitespace do not lead to failure.
2649         ac_old_val_w=`echo x $ac_old_val`
2650         ac_new_val_w=`echo x $ac_new_val`
2651         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2652           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2653 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2654           ac_cache_corrupted=:
2655         else
2656           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2657 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2658           eval $ac_var=\$ac_old_val
2659         fi
2660         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2661 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2662         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2663 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2664       fi;;
2665   esac
2666   # Pass precious variables to config.status.
2667   if test "$ac_new_set" = set; then
2668     case $ac_new_val in
2669     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2670     *) ac_arg=$ac_var=$ac_new_val ;;
2671     esac
2672     case " $ac_configure_args " in
2673       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2674       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2675     esac
2676   fi
2677 done
2678 if $ac_cache_corrupted; then
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2682 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2683   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2684 fi
2685 ## -------------------- ##
2686 ## Main body of script. ##
2687 ## -------------------- ##
2688
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694
2695
2696
2697 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2698
2699
2700
2701 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2702 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^^\.*\.//' | sed 's/\..*$//'`
2703 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/-.*$//'`
2704
2705 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2706 -v minor="$RADIUSD_MINOR_VERSION" \
2707 -v incrm="$RADIUSD_INCRM_VERSION" \
2708 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2709
2710 RADIUSD_VERSION_STRING=`cat VERSION`
2711 PACKAGE=freeradius
2712
2713
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_CC+:} false; then :
2725   $as_echo_n "(cached) " >&6
2726 else
2727   if test -n "$CC"; then
2728   ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735     for ac_exec_ext in '' $ac_executable_extensions; do
2736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739     break 2
2740   fi
2741 done
2742   done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2751 else
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757 fi
2758 if test -z "$ac_cv_prog_CC"; then
2759   ac_ct_CC=$CC
2760   # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test -n "$ac_ct_CC"; then
2768   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775     for ac_exec_ext in '' $ac_executable_extensions; do
2776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777     ac_cv_prog_ac_ct_CC="gcc"
2778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782   done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2790 $as_echo "$ac_ct_CC" >&6; }
2791 else
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796   if test "x$ac_ct_CC" = x; then
2797     CC=""
2798   else
2799     case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805     CC=$ac_ct_CC
2806   fi
2807 else
2808   CC="$ac_cv_prog_CC"
2809 fi
2810
2811 if test -z "$CC"; then
2812           if test -n "$ac_tool_prefix"; then
2813     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}cc; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_CC+:} false; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$CC"; then
2821   ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828     for ac_exec_ext in '' $ac_executable_extensions; do
2829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830     ac_cv_prog_CC="${ac_tool_prefix}cc"
2831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835   done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2844 else
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849
2850   fi
2851 fi
2852 if test -z "$CC"; then
2853   # Extract the first word of "cc", so it can be a program name with args.
2854 set dummy cc; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if ${ac_cv_prog_CC+:} false; then :
2858   $as_echo_n "(cached) " >&6
2859 else
2860   if test -n "$CC"; then
2861   ac_cv_prog_CC="$CC" # Let the user override the test.
2862 else
2863   ac_prog_rejected=no
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869     for ac_exec_ext in '' $ac_executable_extensions; do
2870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2872        ac_prog_rejected=yes
2873        continue
2874      fi
2875     ac_cv_prog_CC="cc"
2876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877     break 2
2878   fi
2879 done
2880   done
2881 IFS=$as_save_IFS
2882
2883 if test $ac_prog_rejected = yes; then
2884   # We found a bogon in the path, so make sure we never use it.
2885   set dummy $ac_cv_prog_CC
2886   shift
2887   if test $# != 0; then
2888     # We chose a different compiler from the bogus one.
2889     # However, it has the same basename, so the bogon will be chosen
2890     # first if we set CC to just the basename; use the full file name.
2891     shift
2892     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2893   fi
2894 fi
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 fi
2908 if test -z "$CC"; then
2909   if test -n "$ac_tool_prefix"; then
2910   for ac_prog in cl.exe
2911   do
2912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_CC+:} false; then :
2917   $as_echo_n "(cached) " >&6
2918 else
2919   if test -n "$CC"; then
2920   ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927     for ac_exec_ext in '' $ac_executable_extensions; do
2928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934   done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2943 else
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949     test -n "$CC" && break
2950   done
2951 fi
2952 if test -z "$CC"; then
2953   ac_ct_CC=$CC
2954   for ac_prog in cl.exe
2955 do
2956   # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2961   $as_echo_n "(cached) " >&6
2962 else
2963   if test -n "$ac_ct_CC"; then
2964   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969   IFS=$as_save_IFS
2970   test -z "$as_dir" && as_dir=.
2971     for ac_exec_ext in '' $ac_executable_extensions; do
2972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973     ac_cv_prog_ac_ct_CC="$ac_prog"
2974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975     break 2
2976   fi
2977 done
2978   done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984 if test -n "$ac_ct_CC"; then
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986 $as_echo "$ac_ct_CC" >&6; }
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993   test -n "$ac_ct_CC" && break
2994 done
2995
2996   if test "x$ac_ct_CC" = x; then
2997     CC=""
2998   else
2999     case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005     CC=$ac_ct_CC
3006   fi
3007 fi
3008
3009 fi
3010
3011
3012 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 as_fn_error $? "no acceptable C compiler found in \$PATH
3015 See \`config.log' for more details" "$LINENO" 5; }
3016
3017 # Provide some information about the compiler.
3018 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3019 set X $ac_compile
3020 ac_compiler=$2
3021 for ac_option in --version -v -V -qversion; do
3022   { { ac_try="$ac_compiler $ac_option >&5"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3030   ac_status=$?
3031   if test -s conftest.err; then
3032     sed '10a\
3033 ... rest of stderr output deleted ...
3034          10q' conftest.err >conftest.er1
3035     cat conftest.er1 >&5
3036   fi
3037   rm -f conftest.er1 conftest.err
3038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039   test $ac_status = 0; }
3040 done
3041
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h.  */
3044
3045 int
3046 main ()
3047 {
3048
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 ac_clean_files_save=$ac_clean_files
3054 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3055 # Try to create an executable without -o first, disregard a.out.
3056 # It will help us diagnose broken compilers, and finding out an intuition
3057 # of exeext.
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3059 $as_echo_n "checking whether the C compiler works... " >&6; }
3060 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3061
3062 # The possible output files:
3063 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3064
3065 ac_rmfiles=
3066 for ac_file in $ac_files
3067 do
3068   case $ac_file in
3069     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3070     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3071   esac
3072 done
3073 rm -f $ac_rmfiles
3074
3075 if { { ac_try="$ac_link_default"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082   (eval "$ac_link_default") 2>&5
3083   ac_status=$?
3084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085   test $ac_status = 0; }; then :
3086   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3087 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3088 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3089 # so that the user can short-circuit this test for compilers unknown to
3090 # Autoconf.
3091 for ac_file in $ac_files ''
3092 do
3093   test -f "$ac_file" || continue
3094   case $ac_file in
3095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3096         ;;
3097     [ab].out )
3098         # We found the default executable, but exeext='' is most
3099         # certainly right.
3100         break;;
3101     *.* )
3102         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3103         then :; else
3104            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105         fi
3106         # We set ac_cv_exeext here because the later test for it is not
3107         # safe: cross compilers may not add the suffix if given an `-o'
3108         # argument, so we may need to know it at that point already.
3109         # Even if this section looks crufty: it has the advantage of
3110         # actually working.
3111         break;;
3112     * )
3113         break;;
3114   esac
3115 done
3116 test "$ac_cv_exeext" = no && ac_cv_exeext=
3117
3118 else
3119   ac_file=''
3120 fi
3121 if test -z "$ac_file"; then :
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 $as_echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error 77 "C compiler cannot create executables
3130 See \`config.log' for more details" "$LINENO" 5; }
3131 else
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3136 $as_echo_n "checking for C compiler default output file name... " >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3138 $as_echo "$ac_file" >&6; }
3139 ac_exeext=$ac_cv_exeext
3140
3141 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3142 ac_clean_files=$ac_clean_files_save
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3144 $as_echo_n "checking for suffix of executables... " >&6; }
3145 if { { ac_try="$ac_link"
3146 case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152   (eval "$ac_link") 2>&5
3153   ac_status=$?
3154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155   test $ac_status = 0; }; then :
3156   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3157 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3158 # work properly (i.e., refer to `conftest.exe'), while it won't with
3159 # `rm'.
3160 for ac_file in conftest.exe conftest conftest.*; do
3161   test -f "$ac_file" || continue
3162   case $ac_file in
3163     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3164     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165           break;;
3166     * ) break;;
3167   esac
3168 done
3169 else
3170   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3173 See \`config.log' for more details" "$LINENO" 5; }
3174 fi
3175 rm -f conftest conftest$ac_cv_exeext
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3177 $as_echo "$ac_cv_exeext" >&6; }
3178
3179 rm -f conftest.$ac_ext
3180 EXEEXT=$ac_cv_exeext
3181 ac_exeext=$EXEEXT
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h.  */
3184 #include <stdio.h>
3185 int
3186 main ()
3187 {
3188 FILE *f = fopen ("conftest.out", "w");
3189  return ferror (f) || fclose (f) != 0;
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 ac_clean_files="$ac_clean_files conftest.out"
3196 # Check that the compiler produces executables we can run.  If not, either
3197 # the compiler is broken, or we cross compile.
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3199 $as_echo_n "checking whether we are cross compiling... " >&6; }
3200 if test "$cross_compiling" != yes; then
3201   { { ac_try="$ac_link"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208   (eval "$ac_link") 2>&5
3209   ac_status=$?
3210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211   test $ac_status = 0; }
3212   if { ac_try='./conftest$ac_cv_exeext'
3213   { { case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219   (eval "$ac_try") 2>&5
3220   ac_status=$?
3221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222   test $ac_status = 0; }; }; then
3223     cross_compiling=no
3224   else
3225     if test "$cross_compiling" = maybe; then
3226         cross_compiling=yes
3227     else
3228         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "cannot run C compiled programs.
3231 If you meant to cross compile, use \`--host'.
3232 See \`config.log' for more details" "$LINENO" 5; }
3233     fi
3234   fi
3235 fi
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3237 $as_echo "$cross_compiling" >&6; }
3238
3239 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3240 ac_clean_files=$ac_clean_files_save
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3242 $as_echo_n "checking for suffix of object files... " >&6; }
3243 if ${ac_cv_objext+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h.  */
3248
3249 int
3250 main ()
3251 {
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.o conftest.obj
3258 if { { ac_try="$ac_compile"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265   (eval "$ac_compile") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268   test $ac_status = 0; }; then :
3269   for ac_file in conftest.o conftest.obj conftest.*; do
3270   test -f "$ac_file" || continue;
3271   case $ac_file in
3272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3273     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3274        break;;
3275   esac
3276 done
3277 else
3278   $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error $? "cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details" "$LINENO" 5; }
3285 fi
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3287 fi
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3289 $as_echo "$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3291 ac_objext=$OBJEXT
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3293 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3294 if ${ac_cv_c_compiler_gnu+:} false; then :
3295   $as_echo_n "(cached) " >&6
3296 else
3297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h.  */
3299
3300 int
3301 main ()
3302 {
3303 #ifndef __GNUC__
3304        choke me
3305 #endif
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312   ac_compiler_gnu=yes
3313 else
3314   ac_compiler_gnu=no
3315 fi
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3318
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3321 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3322 if test $ac_compiler_gnu = yes; then
3323   GCC=yes
3324 else
3325   GCC=
3326 fi
3327 ac_test_CFLAGS=${CFLAGS+set}
3328 ac_save_CFLAGS=$CFLAGS
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3330 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3331 if ${ac_cv_prog_cc_g+:} false; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   ac_save_c_werror_flag=$ac_c_werror_flag
3335    ac_c_werror_flag=yes
3336    ac_cv_prog_cc_g=no
3337    CFLAGS="-g"
3338    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h.  */
3340
3341 int
3342 main ()
3343 {
3344
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350   ac_cv_prog_cc_g=yes
3351 else
3352   CFLAGS=""
3353       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h.  */
3355
3356 int
3357 main ()
3358 {
3359
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365
3366 else
3367   ac_c_werror_flag=$ac_save_c_werror_flag
3368          CFLAGS="-g"
3369          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h.  */
3371
3372 int
3373 main ()
3374 {
3375
3376   ;
3377   return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381   ac_cv_prog_cc_g=yes
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388    ac_c_werror_flag=$ac_save_c_werror_flag
3389 fi
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3391 $as_echo "$ac_cv_prog_cc_g" >&6; }
3392 if test "$ac_test_CFLAGS" = set; then
3393   CFLAGS=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395   if test "$GCC" = yes; then
3396     CFLAGS="-g -O2"
3397   else
3398     CFLAGS="-g"
3399   fi
3400 else
3401   if test "$GCC" = yes; then
3402     CFLAGS="-O2"
3403   else
3404     CFLAGS=
3405   fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3408 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3409 if ${ac_cv_prog_cc_c89+:} false; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   ac_cv_prog_cc_c89=no
3413 ac_save_CC=$CC
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416 #include <stdarg.h>
3417 #include <stdio.h>
3418 struct stat;
3419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3420 struct buf { int x; };
3421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3422 static char *e (p, i)
3423      char **p;
3424      int i;
3425 {
3426   return p[i];
3427 }
3428 static char *f (char * (*g) (char **, int), char **p, ...)
3429 {
3430   char *s;
3431   va_list v;
3432   va_start (v,p);
3433   s = g (p, va_arg (v,int));
3434   va_end (v);
3435   return s;
3436 }
3437
3438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3439    function prototypes and stuff, but not '\xHH' hex character constants.
3440    These don't provoke an error unfortunately, instead are silently treated
3441    as 'x'.  The following induces an error, until -std is added to get
3442    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3443    array size at least.  It's necessary to write '\x00'==0 to get something
3444    that's true only with -std.  */
3445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3446
3447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3448    inside strings and character constants.  */
3449 #define FOO(x) 'x'
3450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3451
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456 int argc;
3457 char **argv;
3458 int
3459 main ()
3460 {
3461 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3467         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3468 do
3469   CC="$ac_save_CC $ac_arg"
3470   if ac_fn_c_try_compile "$LINENO"; then :
3471   ac_cv_prog_cc_c89=$ac_arg
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext
3474   test "x$ac_cv_prog_cc_c89" != "xno" && break
3475 done
3476 rm -f conftest.$ac_ext
3477 CC=$ac_save_CC
3478
3479 fi
3480 # AC_CACHE_VAL
3481 case "x$ac_cv_prog_cc_c89" in
3482   x)
3483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3484 $as_echo "none needed" >&6; } ;;
3485   xno)
3486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3487 $as_echo "unsupported" >&6; } ;;
3488   *)
3489     CC="$CC $ac_cv_prog_cc_c89"
3490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3491 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3492 esac
3493 if test "x$ac_cv_prog_cc_c89" != xno; then :
3494
3495 fi
3496
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503 ac_ext=cpp
3504 ac_cpp='$CXXCPP $CPPFLAGS'
3505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 if test -z "$CXX"; then
3509   if test -n "$CCC"; then
3510     CXX=$CCC
3511   else
3512     if test -n "$ac_tool_prefix"; then
3513   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3514   do
3515     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_CXX+:} false; then :
3520   $as_echo_n "(cached) " >&6
3521 else
3522   if test -n "$CXX"; then
3523   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528   IFS=$as_save_IFS
3529   test -z "$as_dir" && as_dir=.
3530     for ac_exec_ext in '' $ac_executable_extensions; do
3531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537   done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 CXX=$ac_cv_prog_CXX
3543 if test -n "$CXX"; then
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3545 $as_echo "$CXX" >&6; }
3546 else
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551
3552     test -n "$CXX" && break
3553   done
3554 fi
3555 if test -z "$CXX"; then
3556   ac_ct_CXX=$CXX
3557   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3558 do
3559   # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3564   $as_echo_n "(cached) " >&6
3565 else
3566   if test -n "$ac_ct_CXX"; then
3567   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574     for ac_exec_ext in '' $ac_executable_extensions; do
3575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576     ac_cv_prog_ac_ct_CXX="$ac_prog"
3577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581   done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3587 if test -n "$ac_ct_CXX"; then
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3589 $as_echo "$ac_ct_CXX" >&6; }
3590 else
3591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 fi
3594
3595
3596   test -n "$ac_ct_CXX" && break
3597 done
3598
3599   if test "x$ac_ct_CXX" = x; then
3600     CXX="g++"
3601   else
3602     case $cross_compiling:$ac_tool_warned in
3603 yes:)
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3606 ac_tool_warned=yes ;;
3607 esac
3608     CXX=$ac_ct_CXX
3609   fi
3610 fi
3611
3612   fi
3613 fi
3614 # Provide some information about the compiler.
3615 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3616 set X $ac_compile
3617 ac_compiler=$2
3618 for ac_option in --version -v -V -qversion; do
3619   { { ac_try="$ac_compiler $ac_option >&5"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3627   ac_status=$?
3628   if test -s conftest.err; then
3629     sed '10a\
3630 ... rest of stderr output deleted ...
3631          10q' conftest.err >conftest.er1
3632     cat conftest.er1 >&5
3633   fi
3634   rm -f conftest.er1 conftest.err
3635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636   test $ac_status = 0; }
3637 done
3638
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3641 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h.  */
3646
3647 int
3648 main ()
3649 {
3650 #ifndef __GNUC__
3651        choke me
3652 #endif
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 if ac_fn_cxx_try_compile "$LINENO"; then :
3659   ac_compiler_gnu=yes
3660 else
3661   ac_compiler_gnu=no
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3665
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3668 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3669 if test $ac_compiler_gnu = yes; then
3670   GXX=yes
3671 else
3672   GXX=
3673 fi
3674 ac_test_CXXFLAGS=${CXXFLAGS+set}
3675 ac_save_CXXFLAGS=$CXXFLAGS
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3677 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3678 if ${ac_cv_prog_cxx_g+:} false; then :
3679   $as_echo_n "(cached) " >&6
3680 else
3681   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3682    ac_cxx_werror_flag=yes
3683    ac_cv_prog_cxx_g=no
3684    CXXFLAGS="-g"
3685    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h.  */
3687
3688 int
3689 main ()
3690 {
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 if ac_fn_cxx_try_compile "$LINENO"; then :
3697   ac_cv_prog_cxx_g=yes
3698 else
3699   CXXFLAGS=""
3700       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h.  */
3702
3703 int
3704 main ()
3705 {
3706
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_cxx_try_compile "$LINENO"; then :
3712
3713 else
3714   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3715          CXXFLAGS="-g"
3716          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h.  */
3718
3719 int
3720 main ()
3721 {
3722
3723   ;
3724   return 0;
3725 }
3726 _ACEOF
3727 if ac_fn_cxx_try_compile "$LINENO"; then :
3728   ac_cv_prog_cxx_g=yes
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3738 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3739 if test "$ac_test_CXXFLAGS" = set; then
3740   CXXFLAGS=$ac_save_CXXFLAGS
3741 elif test $ac_cv_prog_cxx_g = yes; then
3742   if test "$GXX" = yes; then
3743     CXXFLAGS="-g -O2"
3744   else
3745     CXXFLAGS="-g"
3746   fi
3747 else
3748   if test "$GXX" = yes; then
3749     CXXFLAGS="-O2"
3750   else
3751     CXXFLAGS=
3752   fi
3753 fi
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759
3760
3761
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3768 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3769 # On Suns, sometimes $CPP names a directory.
3770 if test -n "$CPP" && test -d "$CPP"; then
3771   CPP=
3772 fi
3773 if test -z "$CPP"; then
3774   if ${ac_cv_prog_CPP+:} false; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777       # Double quotes because CPP needs to be expanded
3778     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3779     do
3780       ac_preproc_ok=false
3781 for ac_c_preproc_warn_flag in '' yes
3782 do
3783   # Use a header file that comes with gcc, so configuring glibc
3784   # with a fresh cross-compiler works.
3785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786   # <limits.h> exists even on freestanding compilers.
3787   # On the NeXT, cc -E runs the code through the compiler's parser,
3788   # not just through cpp. "Syntax error" is here to catch this case.
3789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h.  */
3791 #ifdef __STDC__
3792 # include <limits.h>
3793 #else
3794 # include <assert.h>
3795 #endif
3796                      Syntax error
3797 _ACEOF
3798 if ac_fn_c_try_cpp "$LINENO"; then :
3799
3800 else
3801   # Broken: fails on valid input.
3802 continue
3803 fi
3804 rm -f conftest.err conftest.i conftest.$ac_ext
3805
3806   # OK, works on sane cases.  Now check whether nonexistent headers
3807   # can be detected and how.
3808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h.  */
3810 #include <ac_nonexistent.h>
3811 _ACEOF
3812 if ac_fn_c_try_cpp "$LINENO"; then :
3813   # Broken: success on invalid input.
3814 continue
3815 else
3816   # Passes both tests.
3817 ac_preproc_ok=:
3818 break
3819 fi
3820 rm -f conftest.err conftest.i conftest.$ac_ext
3821
3822 done
3823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824 rm -f conftest.i conftest.err conftest.$ac_ext
3825 if $ac_preproc_ok; then :
3826   break
3827 fi
3828
3829     done
3830     ac_cv_prog_CPP=$CPP
3831
3832 fi
3833   CPP=$ac_cv_prog_CPP
3834 else
3835   ac_cv_prog_CPP=$CPP
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3838 $as_echo "$CPP" >&6; }
3839 ac_preproc_ok=false
3840 for ac_c_preproc_warn_flag in '' yes
3841 do
3842   # Use a header file that comes with gcc, so configuring glibc
3843   # with a fresh cross-compiler works.
3844   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3845   # <limits.h> exists even on freestanding compilers.
3846   # On the NeXT, cc -E runs the code through the compiler's parser,
3847   # not just through cpp. "Syntax error" is here to catch this case.
3848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h.  */
3850 #ifdef __STDC__
3851 # include <limits.h>
3852 #else
3853 # include <assert.h>
3854 #endif
3855                      Syntax error
3856 _ACEOF
3857 if ac_fn_c_try_cpp "$LINENO"; then :
3858
3859 else
3860   # Broken: fails on valid input.
3861 continue
3862 fi
3863 rm -f conftest.err conftest.i conftest.$ac_ext
3864
3865   # OK, works on sane cases.  Now check whether nonexistent headers
3866   # can be detected and how.
3867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h.  */
3869 #include <ac_nonexistent.h>
3870 _ACEOF
3871 if ac_fn_c_try_cpp "$LINENO"; then :
3872   # Broken: success on invalid input.
3873 continue
3874 else
3875   # Passes both tests.
3876 ac_preproc_ok=:
3877 break
3878 fi
3879 rm -f conftest.err conftest.i conftest.$ac_ext
3880
3881 done
3882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883 rm -f conftest.i conftest.err conftest.$ac_ext
3884 if $ac_preproc_ok; then :
3885
3886 else
3887   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3890 See \`config.log' for more details" "$LINENO" 5; }
3891 fi
3892
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3901 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3902 if ${ac_cv_path_GREP+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if test -z "$GREP"; then
3906   ac_path_GREP_found=false
3907   # Loop through the user's path and test for each of PROGNAME-LIST
3908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913     for ac_prog in grep ggrep; do
3914     for ac_exec_ext in '' $ac_executable_extensions; do
3915       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3916       as_fn_executable_p "$ac_path_GREP" || continue
3917 # Check for GNU ac_path_GREP and select it if it is found.
3918   # Check for GNU $ac_path_GREP
3919 case `"$ac_path_GREP" --version 2>&1` in
3920 *GNU*)
3921   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3922 *)
3923   ac_count=0
3924   $as_echo_n 0123456789 >"conftest.in"
3925   while :
3926   do
3927     cat "conftest.in" "conftest.in" >"conftest.tmp"
3928     mv "conftest.tmp" "conftest.in"
3929     cp "conftest.in" "conftest.nl"
3930     $as_echo 'GREP' >> "conftest.nl"
3931     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3932     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3933     as_fn_arith $ac_count + 1 && ac_count=$as_val
3934     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3935       # Best one so far, save it but keep looking for a better one
3936       ac_cv_path_GREP="$ac_path_GREP"
3937       ac_path_GREP_max=$ac_count
3938     fi
3939     # 10*(2^10) chars as input seems more than enough
3940     test $ac_count -gt 10 && break
3941   done
3942   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943 esac
3944
3945       $ac_path_GREP_found && break 3
3946     done
3947   done
3948   done
3949 IFS=$as_save_IFS
3950   if test -z "$ac_cv_path_GREP"; then
3951     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3952   fi
3953 else
3954   ac_cv_path_GREP=$GREP
3955 fi
3956
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3959 $as_echo "$ac_cv_path_GREP" >&6; }
3960  GREP="$ac_cv_path_GREP"
3961
3962
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3964 $as_echo_n "checking for egrep... " >&6; }
3965 if ${ac_cv_path_EGREP+:} false; then :
3966   $as_echo_n "(cached) " >&6
3967 else
3968   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3969    then ac_cv_path_EGREP="$GREP -E"
3970    else
3971      if test -z "$EGREP"; then
3972   ac_path_EGREP_found=false
3973   # Loop through the user's path and test for each of PROGNAME-LIST
3974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979     for ac_prog in egrep; do
3980     for ac_exec_ext in '' $ac_executable_extensions; do
3981       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982       as_fn_executable_p "$ac_path_EGREP" || continue
3983 # Check for GNU ac_path_EGREP and select it if it is found.
3984   # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988 *)
3989   ac_count=0
3990   $as_echo_n 0123456789 >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     $as_echo 'EGREP' >> "conftest.nl"
3997     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     as_fn_arith $ac_count + 1 && ac_count=$as_val
4000     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_EGREP="$ac_path_EGREP"
4003       ac_path_EGREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011       $ac_path_EGREP_found && break 3
4012     done
4013   done
4014   done
4015 IFS=$as_save_IFS
4016   if test -z "$ac_cv_path_EGREP"; then
4017     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4018   fi
4019 else
4020   ac_cv_path_EGREP=$EGREP
4021 fi
4022
4023    fi
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4026 $as_echo "$ac_cv_path_EGREP" >&6; }
4027  EGREP="$ac_cv_path_EGREP"
4028
4029
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4031 $as_echo_n "checking for ANSI C header files... " >&6; }
4032 if ${ac_cv_header_stdc+:} false; then :
4033   $as_echo_n "(cached) " >&6
4034 else
4035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h.  */
4037 #include <stdlib.h>
4038 #include <stdarg.h>
4039 #include <string.h>
4040 #include <float.h>
4041
4042 int
4043 main ()
4044 {
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051   ac_cv_header_stdc=yes
4052 else
4053   ac_cv_header_stdc=no
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056
4057 if test $ac_cv_header_stdc = yes; then
4058   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h.  */
4061 #include <string.h>
4062
4063 _ACEOF
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065   $EGREP "memchr" >/dev/null 2>&1; then :
4066
4067 else
4068   ac_cv_header_stdc=no
4069 fi
4070 rm -f conftest*
4071
4072 fi
4073
4074 if test $ac_cv_header_stdc = yes; then
4075   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078 #include <stdlib.h>
4079
4080 _ACEOF
4081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4082   $EGREP "free" >/dev/null 2>&1; then :
4083
4084 else
4085   ac_cv_header_stdc=no
4086 fi
4087 rm -f conftest*
4088
4089 fi
4090
4091 if test $ac_cv_header_stdc = yes; then
4092   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4093   if test "$cross_compiling" = yes; then :
4094   :
4095 else
4096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098 #include <ctype.h>
4099 #include <stdlib.h>
4100 #if ((' ' & 0x0FF) == 0x020)
4101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4103 #else
4104 # define ISLOWER(c) \
4105                    (('a' <= (c) && (c) <= 'i') \
4106                      || ('j' <= (c) && (c) <= 'r') \
4107                      || ('s' <= (c) && (c) <= 'z'))
4108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4109 #endif
4110
4111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4112 int
4113 main ()
4114 {
4115   int i;
4116   for (i = 0; i < 256; i++)
4117     if (XOR (islower (i), ISLOWER (i))
4118         || toupper (i) != TOUPPER (i))
4119       return 2;
4120   return 0;
4121 }
4122 _ACEOF
4123 if ac_fn_c_try_run "$LINENO"; then :
4124
4125 else
4126   ac_cv_header_stdc=no
4127 fi
4128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4129   conftest.$ac_objext conftest.beam conftest.$ac_ext
4130 fi
4131
4132 fi
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4135 $as_echo "$ac_cv_header_stdc" >&6; }
4136 if test $ac_cv_header_stdc = yes; then
4137
4138 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4139
4140 fi
4141
4142 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4143 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4144                   inttypes.h stdint.h unistd.h
4145 do :
4146   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4147 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4148 "
4149 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4150   cat >>confdefs.h <<_ACEOF
4151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4152 _ACEOF
4153
4154 fi
4155
4156 done
4157
4158
4159
4160   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4161 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4162   MINIX=yes
4163 else
4164   MINIX=
4165 fi
4166
4167
4168   if test "$MINIX" = yes; then
4169
4170 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4171
4172
4173 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4174
4175
4176 $as_echo "#define _MINIX 1" >>confdefs.h
4177
4178   fi
4179
4180
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4182 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4183 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h.  */
4188
4189 #         define __EXTENSIONS__ 1
4190           $ac_includes_default
4191 int
4192 main ()
4193 {
4194
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200   ac_cv_safe_to_define___extensions__=yes
4201 else
4202   ac_cv_safe_to_define___extensions__=no
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4207 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4208   test $ac_cv_safe_to_define___extensions__ = yes &&
4209     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4210
4211   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4212
4213   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4214
4215   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4216
4217   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4218
4219
4220
4221
4222 if test $ac_cv_c_compiler_gnu = yes; then
4223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4224 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4225 if ${ac_cv_prog_gcc_traditional+:} false; then :
4226   $as_echo_n "(cached) " >&6
4227 else
4228     ac_pattern="Autoconf.*'x'"
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231 #include <sgtty.h>
4232 Autoconf TIOCGETP
4233 _ACEOF
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4236   ac_cv_prog_gcc_traditional=yes
4237 else
4238   ac_cv_prog_gcc_traditional=no
4239 fi
4240 rm -f conftest*
4241
4242
4243   if test $ac_cv_prog_gcc_traditional = no; then
4244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246 #include <termio.h>
4247 Autoconf TCGETA
4248 _ACEOF
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4251   ac_cv_prog_gcc_traditional=yes
4252 fi
4253 rm -f conftest*
4254
4255   fi
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4258 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4259   if test $ac_cv_prog_gcc_traditional = yes; then
4260     CC="$CC -traditional"
4261   fi
4262 fi
4263
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4265 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4266 if ${ac_cv_prog_suncc+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   cat > conftest.c <<EOF
4270 #ifdef __SUNPRO_C
4271   yes;
4272 #endif
4273 EOF
4274 if { ac_try='${CC-cc} -E conftest.c'
4275   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4276   (eval $ac_try) 2>&5
4277   ac_status=$?
4278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4280   ac_cv_prog_suncc=yes
4281 else
4282   ac_cv_prog_suncc=no
4283 fi
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4286 $as_echo "$ac_cv_prog_suncc" >&6; }
4287 if test -n "$ac_tool_prefix"; then
4288   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_RANLIB+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   if test -n "$RANLIB"; then
4296   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303     for ac_exec_ext in '' $ac_executable_extensions; do
4304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310   done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 RANLIB=$ac_cv_prog_RANLIB
4316 if test -n "$RANLIB"; then
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4318 $as_echo "$RANLIB" >&6; }
4319 else
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325 fi
4326 if test -z "$ac_cv_prog_RANLIB"; then
4327   ac_ct_RANLIB=$RANLIB
4328   # Extract the first word of "ranlib", so it can be a program name with args.
4329 set dummy ranlib; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -n "$ac_ct_RANLIB"; then
4336   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345     ac_cv_prog_ac_ct_RANLIB="ranlib"
4346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350   done
4351 IFS=$as_save_IFS
4352
4353 fi
4354 fi
4355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4356 if test -n "$ac_ct_RANLIB"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4358 $as_echo "$ac_ct_RANLIB" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364   if test "x$ac_ct_RANLIB" = x; then
4365     RANLIB=":"
4366   else
4367     case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373     RANLIB=$ac_ct_RANLIB
4374   fi
4375 else
4376   RANLIB="$ac_cv_prog_RANLIB"
4377 fi
4378
4379
4380 if test "x$GCC" = "xyes"; then
4381     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4382 fi
4383
4384 # Check whether --enable-largefile was given.
4385 if test "${enable_largefile+set}" = set; then :
4386   enableval=$enable_largefile;
4387 fi
4388
4389 if test "$enable_largefile" != no; then
4390
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4392 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4393 if ${ac_cv_sys_largefile_CC+:} false; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   ac_cv_sys_largefile_CC=no
4397      if test "$GCC" != yes; then
4398        ac_save_CC=$CC
4399        while :; do
4400          # IRIX 6.2 and later do not support large files by default,
4401          # so use the C compiler's -n32 option if that helps.
4402          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h.  */
4404 #include <sys/types.h>
4405  /* Check that off_t can represent 2**63 - 1 correctly.
4406     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4407     since some C++ compilers masquerading as C compilers
4408     incorrectly reject 9223372036854775807.  */
4409 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4410   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4411                        && LARGE_OFF_T % 2147483647 == 1)
4412                       ? 1 : -1];
4413 int
4414 main ()
4415 {
4416
4417   ;
4418   return 0;
4419 }
4420 _ACEOF
4421          if ac_fn_c_try_compile "$LINENO"; then :
4422   break
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext
4425          CC="$CC -n32"
4426          if ac_fn_c_try_compile "$LINENO"; then :
4427   ac_cv_sys_largefile_CC=' -n32'; break
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext
4430          break
4431        done
4432        CC=$ac_save_CC
4433        rm -f conftest.$ac_ext
4434     fi
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4437 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4438   if test "$ac_cv_sys_largefile_CC" != no; then
4439     CC=$CC$ac_cv_sys_largefile_CC
4440   fi
4441
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4443 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4444 if ${ac_cv_sys_file_offset_bits+:} false; then :
4445   $as_echo_n "(cached) " >&6
4446 else
4447   while :; do
4448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450 #include <sys/types.h>
4451  /* Check that off_t can represent 2**63 - 1 correctly.
4452     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4453     since some C++ compilers masquerading as C compilers
4454     incorrectly reject 9223372036854775807.  */
4455 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4456   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4457                        && LARGE_OFF_T % 2147483647 == 1)
4458                       ? 1 : -1];
4459 int
4460 main ()
4461 {
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468   ac_cv_sys_file_offset_bits=no; break
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h.  */
4473 #define _FILE_OFFSET_BITS 64
4474 #include <sys/types.h>
4475  /* Check that off_t can represent 2**63 - 1 correctly.
4476     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4477     since some C++ compilers masquerading as C compilers
4478     incorrectly reject 9223372036854775807.  */
4479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4480   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4481                        && LARGE_OFF_T % 2147483647 == 1)
4482                       ? 1 : -1];
4483 int
4484 main ()
4485 {
4486
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 if ac_fn_c_try_compile "$LINENO"; then :
4492   ac_cv_sys_file_offset_bits=64; break
4493 fi
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495   ac_cv_sys_file_offset_bits=unknown
4496   break
4497 done
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4500 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4501 case $ac_cv_sys_file_offset_bits in #(
4502   no | unknown) ;;
4503   *)
4504 cat >>confdefs.h <<_ACEOF
4505 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4506 _ACEOF
4507 ;;
4508 esac
4509 rm -rf conftest*
4510   if test $ac_cv_sys_file_offset_bits = unknown; then
4511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4512 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4513 if ${ac_cv_sys_large_files+:} false; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   while :; do
4517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h.  */
4519 #include <sys/types.h>
4520  /* Check that off_t can represent 2**63 - 1 correctly.
4521     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4522     since some C++ compilers masquerading as C compilers
4523     incorrectly reject 9223372036854775807.  */
4524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4525   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4526                        && LARGE_OFF_T % 2147483647 == 1)
4527                       ? 1 : -1];
4528 int
4529 main ()
4530 {
4531
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_c_try_compile "$LINENO"; then :
4537   ac_cv_sys_large_files=no; break
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h.  */
4542 #define _LARGE_FILES 1
4543 #include <sys/types.h>
4544  /* Check that off_t can represent 2**63 - 1 correctly.
4545     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4546     since some C++ compilers masquerading as C compilers
4547     incorrectly reject 9223372036854775807.  */
4548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4549   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4550                        && LARGE_OFF_T % 2147483647 == 1)
4551                       ? 1 : -1];
4552 int
4553 main ()
4554 {
4555
4556   ;
4557   return 0;
4558 }
4559 _ACEOF
4560 if ac_fn_c_try_compile "$LINENO"; then :
4561   ac_cv_sys_large_files=1; break
4562 fi
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564   ac_cv_sys_large_files=unknown
4565   break
4566 done
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4569 $as_echo "$ac_cv_sys_large_files" >&6; }
4570 case $ac_cv_sys_large_files in #(
4571   no | unknown) ;;
4572   *)
4573 cat >>confdefs.h <<_ACEOF
4574 #define _LARGE_FILES $ac_cv_sys_large_files
4575 _ACEOF
4576 ;;
4577 esac
4578 rm -rf conftest*
4579   fi
4580
4581
4582 fi
4583
4584
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4586 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4587 if ${ac_cv_c_bigendian+:} false; then :
4588   $as_echo_n "(cached) " >&6
4589 else
4590   ac_cv_c_bigendian=unknown
4591     # See if we're dealing with a universal compiler.
4592     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h.  */
4594 #ifndef __APPLE_CC__
4595                not a universal capable compiler
4596              #endif
4597              typedef int dummy;
4598
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601
4602         # Check for potential -arch flags.  It is not universal unless
4603         # there are at least two -arch flags with different values.
4604         ac_arch=
4605         ac_prev=
4606         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4607          if test -n "$ac_prev"; then
4608            case $ac_word in
4609              i?86 | x86_64 | ppc | ppc64)
4610                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4611                  ac_arch=$ac_word
4612                else
4613                  ac_cv_c_bigendian=universal
4614                  break
4615                fi
4616                ;;
4617            esac
4618            ac_prev=
4619          elif test "x$ac_word" = "x-arch"; then
4620            ac_prev=arch
4621          fi
4622        done
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625     if test $ac_cv_c_bigendian = unknown; then
4626       # See if sys/param.h defines the BYTE_ORDER macro.
4627       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629 #include <sys/types.h>
4630              #include <sys/param.h>
4631
4632 int
4633 main ()
4634 {
4635 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4636                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4637                      && LITTLE_ENDIAN)
4638               bogus endian macros
4639              #endif
4640
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646   # It does; now see whether it defined to BIG_ENDIAN or not.
4647          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h.  */
4649 #include <sys/types.h>
4650                 #include <sys/param.h>
4651
4652 int
4653 main ()
4654 {
4655 #if BYTE_ORDER != BIG_ENDIAN
4656                  not big endian
4657                 #endif
4658
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664   ac_cv_c_bigendian=yes
4665 else
4666   ac_cv_c_bigendian=no
4667 fi
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671     fi
4672     if test $ac_cv_c_bigendian = unknown; then
4673       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h.  */
4676 #include <limits.h>
4677
4678 int
4679 main ()
4680 {
4681 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4682               bogus endian macros
4683              #endif
4684
4685   ;
4686   return 0;
4687 }
4688 _ACEOF
4689 if ac_fn_c_try_compile "$LINENO"; then :
4690   # It does; now see whether it defined to _BIG_ENDIAN or not.
4691          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h.  */
4693 #include <limits.h>
4694
4695 int
4696 main ()
4697 {
4698 #ifndef _BIG_ENDIAN
4699                  not big endian
4700                 #endif
4701
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707   ac_cv_c_bigendian=yes
4708 else
4709   ac_cv_c_bigendian=no
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714     fi
4715     if test $ac_cv_c_bigendian = unknown; then
4716       # Compile a test program.
4717       if test "$cross_compiling" = yes; then :
4718   # Try to guess by grepping values from an object file.
4719          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h.  */
4721 short int ascii_mm[] =
4722                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4723                 short int ascii_ii[] =
4724                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4725                 int use_ascii (int i) {
4726                   return ascii_mm[i] + ascii_ii[i];
4727                 }
4728                 short int ebcdic_ii[] =
4729                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4730                 short int ebcdic_mm[] =
4731                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4732                 int use_ebcdic (int i) {
4733                   return ebcdic_mm[i] + ebcdic_ii[i];
4734                 }
4735                 extern int foo;
4736
4737 int
4738 main ()
4739 {
4740 return use_ascii (foo) == use_ebcdic (foo);
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4747               ac_cv_c_bigendian=yes
4748             fi
4749             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4750               if test "$ac_cv_c_bigendian" = unknown; then
4751                 ac_cv_c_bigendian=no
4752               else
4753                 # finding both strings is unlikely to happen, but who knows?
4754                 ac_cv_c_bigendian=unknown
4755               fi
4756             fi
4757 fi
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 else
4760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h.  */
4762 $ac_includes_default
4763 int
4764 main ()
4765 {
4766
4767              /* Are we little or big endian?  From Harbison&Steele.  */
4768              union
4769              {
4770                long int l;
4771                char c[sizeof (long int)];
4772              } u;
4773              u.l = 1;
4774              return u.c[sizeof (long int) - 1] == 1;
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_run "$LINENO"; then :
4781   ac_cv_c_bigendian=no
4782 else
4783   ac_cv_c_bigendian=yes
4784 fi
4785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4786   conftest.$ac_objext conftest.beam conftest.$ac_ext
4787 fi
4788
4789     fi
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4792 $as_echo "$ac_cv_c_bigendian" >&6; }
4793  case $ac_cv_c_bigendian in #(
4794    yes)
4795      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4796 ;; #(
4797    no)
4798       ;; #(
4799    universal)
4800
4801 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4802
4803      ;; #(
4804    *)
4805      as_fn_error $? "unknown endianness
4806  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4807  esac
4808
4809
4810 # Extract the first word of "gmake", so it can be a program name with args.
4811 set dummy gmake; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_prog_GMAKE+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   if test -n "$GMAKE"; then
4818   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825     for ac_exec_ext in '' $ac_executable_extensions; do
4826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827     ac_cv_prog_GMAKE="yes"
4828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832   done
4833 IFS=$as_save_IFS
4834
4835   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4836 fi
4837 fi
4838 GMAKE=$ac_cv_prog_GMAKE
4839 if test -n "$GMAKE"; then
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4841 $as_echo "$GMAKE" >&6; }
4842 else
4843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 if test $GMAKE = no; then
4849   # Extract the first word of "make", so it can be a program name with args.
4850 set dummy make; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_path_MAKE+:} false; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   case $MAKE in
4857   [\\/]* | ?:[\\/]*)
4858   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4859   ;;
4860   *)
4861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866     for ac_exec_ext in '' $ac_executable_extensions; do
4867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873   done
4874 IFS=$as_save_IFS
4875
4876   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4877   ;;
4878 esac
4879 fi
4880 MAKE=$ac_cv_path_MAKE
4881 if test -n "$MAKE"; then
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4883 $as_echo "$MAKE" >&6; }
4884 else
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888
4889
4890 else
4891   # Extract the first word of "gmake", so it can be a program name with args.
4892 set dummy gmake; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_path_MAKE+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   case $MAKE in
4899   [\\/]* | ?:[\\/]*)
4900   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4901   ;;
4902   *)
4903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908     for ac_exec_ext in '' $ac_executable_extensions; do
4909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915   done
4916 IFS=$as_save_IFS
4917
4918   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4919   ;;
4920 esac
4921 fi
4922 MAKE=$ac_cv_path_MAKE
4923 if test -n "$MAKE"; then
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4925 $as_echo "$MAKE" >&6; }
4926 else
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932 fi
4933 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4934 if test -z "$makever"; then
4935   as_fn_error $? "GNU Make is not installed.  Please download and install it
4936                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4937 fi
4938
4939 # Extract the first word of "git", so it can be a program name with args.
4940 set dummy git; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_GIT+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   if test -n "$GIT"; then
4947   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954     for ac_exec_ext in '' $ac_executable_extensions; do
4955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956     ac_cv_prog_GIT="yes"
4957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961   done
4962 IFS=$as_save_IFS
4963
4964   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4965 fi
4966 fi
4967 GIT=$ac_cv_prog_GIT
4968 if test -n "$GIT"; then
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4970 $as_echo "$GIT" >&6; }
4971 else
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4974 fi
4975
4976
4977
4978
4979 # Check whether --with-system-libltdl was given.
4980 if test "${with_system_libltdl+set}" = set; then :
4981   withval=$with_system_libltdl;
4982 LIBLTDL="-lltdl"
4983 INCLTDL=-DWITH_SYSTEM_LTDL
4984 LTDL_SUBDIRS=
4985
4986 else
4987
4988 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
4990 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
4991 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-lltdl  $LIBS"
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h.  */
4998
4999 /* Override any GCC internal prototype to avoid an error.
5000    Use char because int might match the return type of a GCC
5001    builtin and then its argument prototype would still apply.  */
5002 #ifdef __cplusplus
5003 extern "C"
5004 #endif
5005 char lt_dlinit ();
5006 int
5007 main ()
5008 {
5009 return lt_dlinit ();
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 if ac_fn_c_try_link "$LINENO"; then :
5015   ac_cv_lib_ltdl_lt_dlinit=yes
5016 else
5017   ac_cv_lib_ltdl_lt_dlinit=no
5018 fi
5019 rm -f core conftest.err conftest.$ac_objext \
5020     conftest$ac_exeext conftest.$ac_ext
5021 LIBS=$ac_check_lib_save_LIBS
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5024 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5025 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5026   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5027 else
5028   if test x"$enable_ltdl_install" = xno; then
5029      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5030 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5031    else
5032      enable_ltdl_install=yes
5033    fi
5034
5035 fi
5036
5037   if test x"$enable_ltdl_install" = x"yes"; then
5038     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5039     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5040     LTDLINCL='-I${top_srcdir}/''libltdl'
5041   else
5042     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5043     LIBLTDL="-lltdl"
5044     LTDLINCL=
5045   fi
5046   # For backwards non-gettext consistent compatibility...
5047   INCLTDL="$LTDLINCL"
5048
5049
5050 if test x"$enable_ltdl_install" = x"yes"; then
5051   LTDL_SUBDIRS=libltdl
5052 fi
5053
5054 fi
5055
5056
5057
5058 # Check whether --enable-shared was given.
5059 if test "${enable_shared+set}" = set; then :
5060   enableval=$enable_shared; p=${PACKAGE-default}
5061     case $enableval in
5062     yes) enable_shared=yes ;;
5063     no) enable_shared=no ;;
5064     *)
5065       enable_shared=no
5066       # Look at the argument we got.  We use all the common list separators.
5067       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5068       for pkg in $enableval; do
5069         IFS="$lt_save_ifs"
5070         if test "X$pkg" = "X$p"; then
5071           enable_shared=yes
5072         fi
5073       done
5074       IFS="$lt_save_ifs"
5075       ;;
5076     esac
5077 else
5078   enable_shared=yes
5079 fi
5080
5081
5082 # Check whether --enable-static was given.
5083 if test "${enable_static+set}" = set; then :
5084   enableval=$enable_static; p=${PACKAGE-default}
5085     case $enableval in
5086     yes) enable_static=yes ;;
5087     no) enable_static=no ;;
5088     *)
5089      enable_static=no
5090       # Look at the argument we got.  We use all the common list separators.
5091       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5092       for pkg in $enableval; do
5093         IFS="$lt_save_ifs"
5094         if test "X$pkg" = "X$p"; then
5095           enable_static=yes
5096         fi
5097       done
5098       IFS="$lt_save_ifs"
5099       ;;
5100     esac
5101 else
5102   enable_static=yes
5103 fi
5104
5105
5106 # Check whether --enable-fast-install was given.
5107 if test "${enable_fast_install+set}" = set; then :
5108   enableval=$enable_fast_install; p=${PACKAGE-default}
5109     case $enableval in
5110     yes) enable_fast_install=yes ;;
5111     no) enable_fast_install=no ;;
5112     *)
5113       enable_fast_install=no
5114       # Look at the argument we got.  We use all the common list separators.
5115       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5116       for pkg in $enableval; do
5117         IFS="$lt_save_ifs"
5118         if test "X$pkg" = "X$p"; then
5119           enable_fast_install=yes
5120         fi
5121       done
5122       IFS="$lt_save_ifs"
5123       ;;
5124     esac
5125 else
5126   enable_fast_install=yes
5127 fi
5128
5129
5130 ac_aux_dir=
5131 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5132   if test -f "$ac_dir/install-sh"; then
5133     ac_aux_dir=$ac_dir
5134     ac_install_sh="$ac_aux_dir/install-sh -c"
5135     break
5136   elif test -f "$ac_dir/install.sh"; then
5137     ac_aux_dir=$ac_dir
5138     ac_install_sh="$ac_aux_dir/install.sh -c"
5139     break
5140   elif test -f "$ac_dir/shtool"; then
5141     ac_aux_dir=$ac_dir
5142     ac_install_sh="$ac_aux_dir/shtool install -c"
5143     break
5144   fi
5145 done
5146 if test -z "$ac_aux_dir"; then
5147   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5148 fi
5149
5150 # These three variables are undocumented and unsupported,
5151 # and are intended to be withdrawn in a future Autoconf release.
5152 # They can cause serious problems if a builder's source tree is in a directory
5153 # whose full name contains unusual characters.
5154 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5155 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5156 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5157
5158
5159 # Make sure we can run config.sub.
5160 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5161   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5164 $as_echo_n "checking build system type... " >&6; }
5165 if ${ac_cv_build+:} false; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   ac_build_alias=$build_alias
5169 test "x$ac_build_alias" = x &&
5170   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5171 test "x$ac_build_alias" = x &&
5172   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5173 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5174   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5175
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5178 $as_echo "$ac_cv_build" >&6; }
5179 case $ac_cv_build in
5180 *-*-*) ;;
5181 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5182 esac
5183 build=$ac_cv_build
5184 ac_save_IFS=$IFS; IFS='-'
5185 set x $ac_cv_build
5186 shift
5187 build_cpu=$1
5188 build_vendor=$2
5189 shift; shift
5190 # Remember, the first character of IFS is used to create $*,
5191 # except with old shells:
5192 build_os=$*
5193 IFS=$ac_save_IFS
5194 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5198 $as_echo_n "checking host system type... " >&6; }
5199 if ${ac_cv_host+:} false; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202   if test "x$host_alias" = x; then
5203   ac_cv_host=$ac_cv_build
5204 else
5205   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5206     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5207 fi
5208
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5211 $as_echo "$ac_cv_host" >&6; }
5212 case $ac_cv_host in
5213 *-*-*) ;;
5214 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5215 esac
5216 host=$ac_cv_host
5217 ac_save_IFS=$IFS; IFS='-'
5218 set x $ac_cv_host
5219 shift
5220 host_cpu=$1
5221 host_vendor=$2
5222 shift; shift
5223 # Remember, the first character of IFS is used to create $*,
5224 # except with old shells:
5225 host_os=$*
5226 IFS=$ac_save_IFS
5227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5232 if ${lt_cv_path_SED+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   # Loop through the user's path and test for sed and gsed.
5236 # Then use that list of sed's as ones to test for truncation.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242   for lt_ac_prog in sed gsed; do
5243     for ac_exec_ext in '' $ac_executable_extensions; do
5244       if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5245         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5246       fi
5247     done
5248   done
5249 done
5250 IFS=$as_save_IFS
5251 lt_ac_max=0
5252 lt_ac_count=0
5253 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5254 # along with /bin/sed that truncates output.
5255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5256   test ! -f $lt_ac_sed && continue
5257   cat /dev/null > conftest.in
5258   lt_ac_count=0
5259   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5260   # Check for GNU sed and select it if it is found.
5261   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5262     lt_cv_path_SED=$lt_ac_sed
5263     break
5264   fi
5265   while true; do
5266     cat conftest.in conftest.in >conftest.tmp
5267     mv conftest.tmp conftest.in
5268     cp conftest.in conftest.nl
5269     echo >>conftest.nl
5270     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5271     cmp -s conftest.out conftest.nl || break
5272     # 10000 chars as input seems more than enough
5273     test $lt_ac_count -gt 10 && break
5274     lt_ac_count=`expr $lt_ac_count + 1`
5275     if test $lt_ac_count -gt $lt_ac_max; then
5276       lt_ac_max=$lt_ac_count
5277       lt_cv_path_SED=$lt_ac_sed
5278     fi
5279   done
5280 done
5281
5282 fi
5283
5284 SED=$lt_cv_path_SED
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5287 $as_echo "$SED" >&6; }
5288
5289
5290 # Check whether --with-gnu-ld was given.
5291 if test "${with_gnu_ld+set}" = set; then :
5292   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5293 else
5294   with_gnu_ld=no
5295 fi
5296
5297 ac_prog=ld
5298 if test "$GCC" = yes; then
5299   # Check if gcc -print-prog-name=ld gives a path.
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5301 $as_echo_n "checking for ld used by $CC... " >&6; }
5302   case $host in
5303   *-*-mingw*)
5304     # gcc leaves a trailing carriage return which upsets mingw
5305     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5306   *)
5307     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5308   esac
5309   case $ac_prog in
5310     # Accept absolute paths.
5311     [\\/]* | ?:[\\/]*)
5312       re_direlt='/[^/][^/]*/\.\./'
5313       # Canonicalize the pathname of ld
5314       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5315       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5316         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5317       done
5318       test -z "$LD" && LD="$ac_prog"
5319       ;;
5320   "")
5321     # If it fails, then pretend we aren't using GCC.
5322     ac_prog=ld
5323     ;;
5324   *)
5325     # If it is relative, then search for the first ld in PATH.
5326     with_gnu_ld=unknown
5327     ;;
5328   esac
5329 elif test "$with_gnu_ld" = yes; then
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5331 $as_echo_n "checking for GNU ld... " >&6; }
5332 else
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5334 $as_echo_n "checking for non-GNU ld... " >&6; }
5335 fi
5336 if ${lt_cv_path_LD+:} false; then :
5337   $as_echo_n "(cached) " >&6
5338 else
5339   if test -z "$LD"; then
5340   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341   for ac_dir in $PATH; do
5342     IFS="$lt_save_ifs"
5343     test -z "$ac_dir" && ac_dir=.
5344     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5345       lt_cv_path_LD="$ac_dir/$ac_prog"
5346       # Check to see if the program is GNU ld.  I'd rather use --version,
5347       # but apparently some variants of GNU ld only accept -v.
5348       # Break only if it was the GNU/non-GNU ld that we prefer.
5349       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5350       *GNU* | *'with BFD'*)
5351         test "$with_gnu_ld" != no && break
5352         ;;
5353       *)
5354         test "$with_gnu_ld" != yes && break
5355         ;;
5356       esac
5357     fi
5358   done
5359   IFS="$lt_save_ifs"
5360 else
5361   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5362 fi
5363 fi
5364
5365 LD="$lt_cv_path_LD"
5366 if test -n "$LD"; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5368 $as_echo "$LD" >&6; }
5369 else
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5376 if ${lt_cv_prog_gnu_ld+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5380 case `$LD -v 2>&1 </dev/null` in
5381 *GNU* | *'with BFD'*)
5382   lt_cv_prog_gnu_ld=yes
5383   ;;
5384 *)
5385   lt_cv_prog_gnu_ld=no
5386   ;;
5387 esac
5388 fi
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5391 with_gnu_ld=$lt_cv_prog_gnu_ld
5392
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5395 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5396 if ${lt_cv_ld_reload_flag+:} false; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   lt_cv_ld_reload_flag='-r'
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5402 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5403 reload_flag=$lt_cv_ld_reload_flag
5404 case $reload_flag in
5405 "" | " "*) ;;
5406 *) reload_flag=" $reload_flag" ;;
5407 esac
5408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5409 case $host_os in
5410   darwin*)
5411     if test "$GCC" = yes; then
5412       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5413     else
5414       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5415     fi
5416     ;;
5417 esac
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5420 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5421 if ${lt_cv_path_NM+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   if test -n "$NM"; then
5425   # Let the user override the test.
5426   lt_cv_path_NM="$NM"
5427 else
5428   lt_nm_to_check="${ac_tool_prefix}nm"
5429   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5430     lt_nm_to_check="$lt_nm_to_check nm"
5431   fi
5432   for lt_tmp_nm in $lt_nm_to_check; do
5433     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5434     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5435       IFS="$lt_save_ifs"
5436       test -z "$ac_dir" && ac_dir=.
5437       tmp_nm="$ac_dir/$lt_tmp_nm"
5438       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5439         # Check to see if the nm accepts a BSD-compat flag.
5440         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5441         #   nm: unknown option "B" ignored
5442         # Tru64's nm complains that /dev/null is an invalid object file
5443         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5444         */dev/null* | *'Invalid file or object type'*)
5445           lt_cv_path_NM="$tmp_nm -B"
5446           break
5447           ;;
5448         *)
5449           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5450           */dev/null*)
5451             lt_cv_path_NM="$tmp_nm -p"
5452             break
5453             ;;
5454           *)
5455             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5456             continue # so that we can try to find one that supports BSD flags
5457             ;;
5458           esac
5459           ;;
5460         esac
5461       fi
5462     done
5463     IFS="$lt_save_ifs"
5464   done
5465   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5466 fi
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5469 $as_echo "$lt_cv_path_NM" >&6; }
5470 NM="$lt_cv_path_NM"
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5473 $as_echo_n "checking whether ln -s works... " >&6; }
5474 LN_S=$as_ln_s
5475 if test "$LN_S" = "ln -s"; then
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5477 $as_echo "yes" >&6; }
5478 else
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5480 $as_echo "no, using $LN_S" >&6; }
5481 fi
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5484 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5485 if ${lt_cv_deplibs_check_method+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   lt_cv_file_magic_cmd='$MAGIC_CMD'
5489 lt_cv_file_magic_test_file=
5490 lt_cv_deplibs_check_method='unknown'
5491 # Need to set the preceding variable on all platforms that support
5492 # interlibrary dependencies.
5493 # 'none' -- dependencies not supported.
5494 # `unknown' -- same as none, but documents that we really don't know.
5495 # 'pass_all' -- all dependencies passed with no checks.
5496 # 'test_compile' -- check by making test program.
5497 # 'file_magic [[regex]]' -- check by looking for files in library path
5498 # which responds to the $file_magic_cmd with a given extended regex.
5499 # If you have `file' or equivalent on your system and you're not sure
5500 # whether `pass_all' will *always* work, you probably want this one.
5501
5502 case $host_os in
5503 aix[4-9]*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506
5507 beos*)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 bsdi[45]*)
5512   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5513   lt_cv_file_magic_cmd='/usr/bin/file -L'
5514   lt_cv_file_magic_test_file=/shlib/libc.so
5515   ;;
5516
5517 cygwin*)
5518   # func_win32_libid is a shell function defined in ltmain.sh
5519   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5520   lt_cv_file_magic_cmd='func_win32_libid'
5521   ;;
5522
5523 mingw* | pw32*)
5524   # Base MSYS/MinGW do not provide the 'file' command needed by
5525   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5526   # unless we find 'file', for example because we are cross-compiling.
5527   if ( file / ) >/dev/null 2>&1; then
5528     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5529     lt_cv_file_magic_cmd='func_win32_libid'
5530   else
5531     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5532     lt_cv_file_magic_cmd='$OBJDUMP -f'
5533   fi
5534   ;;
5535
5536 darwin* | rhapsody*)
5537   lt_cv_deplibs_check_method=pass_all
5538   ;;
5539
5540 freebsd* | dragonfly*)
5541   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5542     case $host_cpu in
5543     i*86 )
5544       # Not sure whether the presence of OpenBSD here was a mistake.
5545       # Let's accept both of them until this is cleared up.
5546       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5547       lt_cv_file_magic_cmd=/usr/bin/file
5548       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5549       ;;
5550     esac
5551   else
5552     lt_cv_deplibs_check_method=pass_all
5553   fi
5554   ;;
5555
5556 gnu*)
5557   lt_cv_deplibs_check_method=pass_all
5558   ;;
5559
5560 hpux10.20* | hpux11*)
5561   lt_cv_file_magic_cmd=/usr/bin/file
5562   case $host_cpu in
5563   ia64*)
5564     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5565     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5566     ;;
5567   hppa*64*)
5568     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5569     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5570     ;;
5571   *)
5572     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5573     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5574     ;;
5575   esac
5576   ;;
5577
5578 interix[3-9]*)
5579   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5580   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5581   ;;
5582
5583 irix5* | irix6* | nonstopux*)
5584   case $LD in
5585   *-32|*"-32 ") libmagic=32-bit;;
5586   *-n32|*"-n32 ") libmagic=N32;;
5587   *-64|*"-64 ") libmagic=64-bit;;
5588   *) libmagic=never-match;;
5589   esac
5590   lt_cv_deplibs_check_method=pass_all
5591   ;;
5592
5593 # This must be Linux ELF.
5594 linux* | k*bsd*-gnu)
5595   lt_cv_deplibs_check_method=pass_all
5596   ;;
5597
5598 netbsd* | netbsdelf*-gnu)
5599   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5600     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5601   else
5602     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5603   fi
5604   ;;
5605
5606 newos6*)
5607   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5608   lt_cv_file_magic_cmd=/usr/bin/file
5609   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5610   ;;
5611
5612 nto-qnx*)
5613   lt_cv_deplibs_check_method=unknown
5614   ;;
5615
5616 openbsd*)
5617   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5618     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5619   else
5620     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5621   fi
5622   ;;
5623
5624 osf3* | osf4* | osf5*)
5625   lt_cv_deplibs_check_method=pass_all
5626   ;;
5627
5628 rdos*)
5629   lt_cv_deplibs_check_method=pass_all
5630   ;;
5631
5632 solaris*)
5633   lt_cv_deplibs_check_method=pass_all
5634   ;;
5635
5636 sysv4 | sysv4.3*)
5637   case $host_vendor in
5638   motorola)
5639     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]'
5640     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5641     ;;
5642   ncr)
5643     lt_cv_deplibs_check_method=pass_all
5644     ;;
5645   sequent)
5646     lt_cv_file_magic_cmd='/bin/file'
5647     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5648     ;;
5649   sni)
5650     lt_cv_file_magic_cmd='/bin/file'
5651     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5652     lt_cv_file_magic_test_file=/lib/libc.so
5653     ;;
5654   siemens)
5655     lt_cv_deplibs_check_method=pass_all
5656     ;;
5657   pc)
5658     lt_cv_deplibs_check_method=pass_all
5659     ;;
5660   esac
5661   ;;
5662
5663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5664   lt_cv_deplibs_check_method=pass_all
5665   ;;
5666 esac
5667
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5670 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5671 file_magic_cmd=$lt_cv_file_magic_cmd
5672 deplibs_check_method=$lt_cv_deplibs_check_method
5673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5674
5675
5676
5677
5678 # If no C compiler was specified, use CC.
5679 LTCC=${LTCC-"$CC"}
5680
5681 # If no C compiler flags were specified, use CFLAGS.
5682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5683
5684 # Allow CC to be a program name with arguments.
5685 compiler=$CC
5686
5687 # Check whether --enable-libtool-lock was given.
5688 if test "${enable_libtool_lock+set}" = set; then :
5689   enableval=$enable_libtool_lock;
5690 fi
5691
5692 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5693
5694 # Some flags need to be propagated to the compiler or linker for good
5695 # libtool support.
5696 case $host in
5697 ia64-*-hpux*)
5698   # Find out which ABI we are using.
5699   echo 'int i;' > conftest.$ac_ext
5700   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5701   (eval $ac_compile) 2>&5
5702   ac_status=$?
5703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704   test $ac_status = 0; }; then
5705     case `/usr/bin/file conftest.$ac_objext` in
5706     *ELF-32*)
5707       HPUX_IA64_MODE="32"
5708       ;;
5709     *ELF-64*)
5710       HPUX_IA64_MODE="64"
5711       ;;
5712     esac
5713   fi
5714   rm -rf conftest*
5715   ;;
5716 *-*-irix6*)
5717   # Find out which ABI we are using.
5718   echo '#line 5718 "configure"' > conftest.$ac_ext
5719   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5720   (eval $ac_compile) 2>&5
5721   ac_status=$?
5722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723   test $ac_status = 0; }; then
5724    if test "$lt_cv_prog_gnu_ld" = yes; then
5725     case `/usr/bin/file conftest.$ac_objext` in
5726     *32-bit*)
5727       LD="${LD-ld} -melf32bsmip"
5728       ;;
5729     *N32*)
5730       LD="${LD-ld} -melf32bmipn32"
5731       ;;
5732     *64-bit*)
5733       LD="${LD-ld} -melf64bmip"
5734       ;;
5735     esac
5736    else
5737     case `/usr/bin/file conftest.$ac_objext` in
5738     *32-bit*)
5739       LD="${LD-ld} -32"
5740       ;;
5741     *N32*)
5742       LD="${LD-ld} -n32"
5743       ;;
5744     *64-bit*)
5745       LD="${LD-ld} -64"
5746       ;;
5747     esac
5748    fi
5749   fi
5750   rm -rf conftest*
5751   ;;
5752
5753 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5754 s390*-*linux*|sparc*-*linux*)
5755   # Find out which ABI we are using.
5756   echo 'int i;' > conftest.$ac_ext
5757   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5758   (eval $ac_compile) 2>&5
5759   ac_status=$?
5760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761   test $ac_status = 0; }; then
5762     case `/usr/bin/file conftest.o` in
5763     *32-bit*)
5764       case $host in
5765         x86_64-*kfreebsd*-gnu)
5766           LD="${LD-ld} -m elf_i386_fbsd"
5767           ;;
5768         x86_64-*linux*)
5769           LD="${LD-ld} -m elf_i386"
5770           ;;
5771         ppc64-*linux*|powerpc64-*linux*)
5772           LD="${LD-ld} -m elf32ppclinux"
5773           ;;
5774         s390x-*linux*)
5775           LD="${LD-ld} -m elf_s390"
5776           ;;
5777         sparc64-*linux*)
5778           LD="${LD-ld} -m elf32_sparc"
5779           ;;
5780       esac
5781       ;;
5782     *64-bit*)
5783       case $host in
5784         x86_64-*kfreebsd*-gnu)
5785           LD="${LD-ld} -m elf_x86_64_fbsd"
5786           ;;
5787         x86_64-*linux*)
5788           LD="${LD-ld} -m elf_x86_64"
5789           ;;
5790         ppc*-*linux*|powerpc*-*linux*)
5791           LD="${LD-ld} -m elf64ppc"
5792           ;;
5793         s390*-*linux*)
5794           LD="${LD-ld} -m elf64_s390"
5795           ;;
5796         sparc*-*linux*)
5797           LD="${LD-ld} -m elf64_sparc"
5798           ;;
5799       esac
5800       ;;
5801     esac
5802   fi
5803   rm -rf conftest*
5804   ;;
5805
5806 *-*-sco3.2v5*)
5807   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5808   SAVE_CFLAGS="$CFLAGS"
5809   CFLAGS="$CFLAGS -belf"
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5811 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5812 if ${lt_cv_cc_needs_belf+:} false; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   ac_ext=c
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820
5821      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h.  */
5823
5824 int
5825 main ()
5826 {
5827
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_c_try_link "$LINENO"; then :
5833   lt_cv_cc_needs_belf=yes
5834 else
5835   lt_cv_cc_needs_belf=no
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext \
5838     conftest$ac_exeext conftest.$ac_ext
5839      ac_ext=c
5840 ac_cpp='$CPP $CPPFLAGS'
5841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5844
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5847 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5848   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5849     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5850     CFLAGS="$SAVE_CFLAGS"
5851   fi
5852   ;;
5853 sparc*-*solaris*)
5854   # Find out which ABI we are using.
5855   echo 'int i;' > conftest.$ac_ext
5856   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5857   (eval $ac_compile) 2>&5
5858   ac_status=$?
5859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860   test $ac_status = 0; }; then
5861     case `/usr/bin/file conftest.o` in
5862     *64-bit*)
5863       case $lt_cv_prog_gnu_ld in
5864       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5865       *)
5866         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5867           LD="${LD-ld} -64"
5868         fi
5869         ;;
5870       esac
5871       ;;
5872     esac
5873   fi
5874   rm -rf conftest*
5875   ;;
5876
5877
5878 esac
5879
5880 need_locks="$enable_libtool_lock"
5881
5882
5883 for ac_header in dlfcn.h
5884 do :
5885   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5886 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5887   cat >>confdefs.h <<_ACEOF
5888 #define HAVE_DLFCN_H 1
5889 _ACEOF
5890
5891 fi
5892
5893 done
5894
5895
5896
5897 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5898     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5899     (test "X$CXX" != "Xg++"))) ; then
5900   ac_ext=cpp
5901 ac_cpp='$CXXCPP $CPPFLAGS'
5902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5906 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5907 if test -z "$CXXCPP"; then
5908   if ${ac_cv_prog_CXXCPP+:} false; then :
5909   $as_echo_n "(cached) " >&6
5910 else
5911       # Double quotes because CXXCPP needs to be expanded
5912     for CXXCPP in "$CXX -E" "/lib/cpp"
5913     do
5914       ac_preproc_ok=false
5915 for ac_cxx_preproc_warn_flag in '' yes
5916 do
5917   # Use a header file that comes with gcc, so configuring glibc
5918   # with a fresh cross-compiler works.
5919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920   # <limits.h> exists even on freestanding compilers.
5921   # On the NeXT, cc -E runs the code through the compiler's parser,
5922   # not just through cpp. "Syntax error" is here to catch this case.
5923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h.  */
5925 #ifdef __STDC__
5926 # include <limits.h>
5927 #else
5928 # include <assert.h>
5929 #endif
5930                      Syntax error
5931 _ACEOF
5932 if ac_fn_cxx_try_cpp "$LINENO"; then :
5933
5934 else
5935   # Broken: fails on valid input.
5936 continue
5937 fi
5938 rm -f conftest.err conftest.i conftest.$ac_ext
5939
5940   # OK, works on sane cases.  Now check whether nonexistent headers
5941   # can be detected and how.
5942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h.  */
5944 #include <ac_nonexistent.h>
5945 _ACEOF
5946 if ac_fn_cxx_try_cpp "$LINENO"; then :
5947   # Broken: success on invalid input.
5948 continue
5949 else
5950   # Passes both tests.
5951 ac_preproc_ok=:
5952 break
5953 fi
5954 rm -f conftest.err conftest.i conftest.$ac_ext
5955
5956 done
5957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5958 rm -f conftest.i conftest.err conftest.$ac_ext
5959 if $ac_preproc_ok; then :
5960   break
5961 fi
5962
5963     done
5964     ac_cv_prog_CXXCPP=$CXXCPP
5965
5966 fi
5967   CXXCPP=$ac_cv_prog_CXXCPP
5968 else
5969   ac_cv_prog_CXXCPP=$CXXCPP
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5972 $as_echo "$CXXCPP" >&6; }
5973 ac_preproc_ok=false
5974 for ac_cxx_preproc_warn_flag in '' yes
5975 do
5976   # Use a header file that comes with gcc, so configuring glibc
5977   # with a fresh cross-compiler works.
5978   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979   # <limits.h> exists even on freestanding compilers.
5980   # On the NeXT, cc -E runs the code through the compiler's parser,
5981   # not just through cpp. "Syntax error" is here to catch this case.
5982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h.  */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5989                      Syntax error
5990 _ACEOF
5991 if ac_fn_cxx_try_cpp "$LINENO"; then :
5992
5993 else
5994   # Broken: fails on valid input.
5995 continue
5996 fi
5997 rm -f conftest.err conftest.i conftest.$ac_ext
5998
5999   # OK, works on sane cases.  Now check whether nonexistent headers
6000   # can be detected and how.
6001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h.  */
6003 #include <ac_nonexistent.h>
6004 _ACEOF
6005 if ac_fn_cxx_try_cpp "$LINENO"; then :
6006   # Broken: success on invalid input.
6007 continue
6008 else
6009   # Passes both tests.
6010 ac_preproc_ok=:
6011 break
6012 fi
6013 rm -f conftest.err conftest.i conftest.$ac_ext
6014
6015 done
6016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6017 rm -f conftest.i conftest.err conftest.$ac_ext
6018 if $ac_preproc_ok; then :
6019
6020 else
6021   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6023 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6024 See \`config.log' for more details" "$LINENO" 5; }
6025 fi
6026
6027 ac_ext=cpp
6028 ac_cpp='$CXXCPP $CPPFLAGS'
6029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6032
6033 fi
6034
6035
6036 ac_ext=f
6037 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6038 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6040 if test -n "$ac_tool_prefix"; then
6041   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6042   do
6043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if ${ac_cv_prog_F77+:} false; then :
6048   $as_echo_n "(cached) " >&6
6049 else
6050   if test -n "$F77"; then
6051   ac_cv_prog_F77="$F77" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056   IFS=$as_save_IFS
6057   test -z "$as_dir" && as_dir=.
6058     for ac_exec_ext in '' $ac_executable_extensions; do
6059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065   done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 F77=$ac_cv_prog_F77
6071 if test -n "$F77"; then
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6073 $as_echo "$F77" >&6; }
6074 else
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079
6080     test -n "$F77" && break
6081   done
6082 fi
6083 if test -z "$F77"; then
6084   ac_ct_F77=$F77
6085   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6086 do
6087   # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy $ac_prog; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   if test -n "$ac_ct_F77"; then
6095   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_exec_ext in '' $ac_executable_extensions; do
6103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104     ac_cv_prog_ac_ct_F77="$ac_prog"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6115 if test -n "$ac_ct_F77"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6117 $as_echo "$ac_ct_F77" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123
6124   test -n "$ac_ct_F77" && break
6125 done
6126
6127   if test "x$ac_ct_F77" = x; then
6128     F77=""
6129   else
6130     case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134 ac_tool_warned=yes ;;
6135 esac
6136     F77=$ac_ct_F77
6137   fi
6138 fi
6139
6140
6141 # Provide some information about the compiler.
6142 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6143 set X $ac_compile
6144 ac_compiler=$2
6145 for ac_option in --version -v -V -qversion; do
6146   { { ac_try="$ac_compiler $ac_option >&5"
6147 case "(($ac_try" in
6148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149   *) ac_try_echo=$ac_try;;
6150 esac
6151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6152 $as_echo "$ac_try_echo"; } >&5
6153   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6154   ac_status=$?
6155   if test -s conftest.err; then
6156     sed '10a\
6157 ... rest of stderr output deleted ...
6158          10q' conftest.err >conftest.er1
6159     cat conftest.er1 >&5
6160   fi
6161   rm -f conftest.er1 conftest.err
6162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163   test $ac_status = 0; }
6164 done
6165 rm -f a.out
6166
6167 # If we don't use `.F' as extension, the preprocessor is not run on the
6168 # input file.  (Note that this only needs to work for GNU compilers.)
6169 ac_save_ext=$ac_ext
6170 ac_ext=F
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6172 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6173 if ${ac_cv_f77_compiler_gnu+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   cat > conftest.$ac_ext <<_ACEOF
6177       program main
6178 #ifndef __GNUC__
6179        choke me
6180 #endif
6181
6182       end
6183 _ACEOF
6184 if ac_fn_f77_try_compile "$LINENO"; then :
6185   ac_compiler_gnu=yes
6186 else
6187   ac_compiler_gnu=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6191
6192 fi
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6194 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6195 ac_ext=$ac_save_ext
6196 ac_test_FFLAGS=${FFLAGS+set}
6197 ac_save_FFLAGS=$FFLAGS
6198 FFLAGS=
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6200 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6201 if ${ac_cv_prog_f77_g+:} false; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   FFLAGS=-g
6205 cat > conftest.$ac_ext <<_ACEOF
6206       program main
6207
6208       end
6209 _ACEOF
6210 if ac_fn_f77_try_compile "$LINENO"; then :
6211   ac_cv_prog_f77_g=yes
6212 else
6213   ac_cv_prog_f77_g=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6219 $as_echo "$ac_cv_prog_f77_g" >&6; }
6220 if test "$ac_test_FFLAGS" = set; then
6221   FFLAGS=$ac_save_FFLAGS
6222 elif test $ac_cv_prog_f77_g = yes; then
6223   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6224     FFLAGS="-g -O2"
6225   else
6226     FFLAGS="-g"
6227   fi
6228 else
6229   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6230     FFLAGS="-O2"
6231   else
6232     FFLAGS=
6233   fi
6234 fi
6235
6236 if test $ac_compiler_gnu = yes; then
6237   G77=yes
6238 else
6239   G77=
6240 fi
6241 ac_ext=c
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246
6247
6248
6249 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6250 # find the maximum length of command line arguments
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6252 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6253 if ${lt_cv_sys_max_cmd_len+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256     i=0
6257   teststring="ABCD"
6258
6259   case $build_os in
6260   msdosdjgpp*)
6261     # On DJGPP, this test can blow up pretty badly due to problems in libc
6262     # (any single argument exceeding 2000 bytes causes a buffer overrun
6263     # during glob expansion).  Even if it were fixed, the result of this
6264     # check would be larger than it should be.
6265     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6266     ;;
6267
6268   gnu*)
6269     # Under GNU Hurd, this test is not required because there is
6270     # no limit to the length of command line arguments.
6271     # Libtool will interpret -1 as no limit whatsoever
6272     lt_cv_sys_max_cmd_len=-1;
6273     ;;
6274
6275   cygwin* | mingw*)
6276     # On Win9x/ME, this test blows up -- it succeeds, but takes
6277     # about 5 minutes as the teststring grows exponentially.
6278     # Worse, since 9x/ME are not pre-emptively multitasking,
6279     # you end up with a "frozen" computer, even though with patience
6280     # the test eventually succeeds (with a max line length of 256k).
6281     # Instead, let's just punt: use the minimum linelength reported by
6282     # all of the supported platforms: 8192 (on NT/2K/XP).
6283     lt_cv_sys_max_cmd_len=8192;
6284     ;;
6285
6286   amigaos*)
6287     # On AmigaOS with pdksh, this test takes hours, literally.
6288     # So we just punt and use a minimum line length of 8192.
6289     lt_cv_sys_max_cmd_len=8192;
6290     ;;
6291
6292   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6293     # This has been around since 386BSD, at least.  Likely further.
6294     if test -x /sbin/sysctl; then
6295       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6296     elif test -x /usr/sbin/sysctl; then
6297       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6298     else
6299       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6300     fi
6301     # And add a safety zone
6302     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6303     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6304     ;;
6305
6306   interix*)
6307     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6308     lt_cv_sys_max_cmd_len=196608
6309     ;;
6310
6311   osf*)
6312     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6313     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6314     # nice to cause kernel panics so lets avoid the loop below.
6315     # First set a reasonable default.
6316     lt_cv_sys_max_cmd_len=16384
6317     #
6318     if test -x /sbin/sysconfig; then
6319       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6320         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6321       esac
6322     fi
6323     ;;
6324   sco3.2v5*)
6325     lt_cv_sys_max_cmd_len=102400
6326     ;;
6327   sysv5* | sco5v6* | sysv4.2uw2*)
6328     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6329     if test -n "$kargmax"; then
6330       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6331     else
6332       lt_cv_sys_max_cmd_len=32768
6333     fi
6334     ;;
6335   *)
6336     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6337     if test -n "$lt_cv_sys_max_cmd_len"; then
6338       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6339       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6340     else
6341       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6342       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6343                = "XX$teststring") >/dev/null 2>&1 &&
6344               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6345               lt_cv_sys_max_cmd_len=$new_result &&
6346               test $i != 17 # 1/2 MB should be enough
6347       do
6348         i=`expr $i + 1`
6349         teststring=$teststring$teststring
6350       done
6351       teststring=
6352       # Add a significant safety factor because C++ compilers can tack on massive
6353       # amounts of additional arguments before passing them to the linker.
6354       # It appears as though 1/2 is a usable value.
6355       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6356     fi
6357     ;;
6358   esac
6359
6360 fi
6361
6362 if test -n $lt_cv_sys_max_cmd_len ; then
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6364 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6365 else
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6367 $as_echo "none" >&6; }
6368 fi
6369
6370
6371
6372
6373
6374 # Check for command to grab the raw symbol name followed by C symbol from nm.
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6376 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6377 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380
6381 # These are sane defaults that work on at least a few old systems.
6382 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6383
6384 # Character class describing NM global symbol codes.
6385 symcode='[BCDEGRST]'
6386
6387 # Regexp to match symbols that can be accessed directly from C.
6388 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6389
6390 # Transform an extracted symbol line into a proper C declaration
6391 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6392
6393 # Transform an extracted symbol line into symbol name and symbol address
6394 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6395
6396 # Define system-specific variables.
6397 case $host_os in
6398 aix*)
6399   symcode='[BCDT]'
6400   ;;
6401 cygwin* | mingw* | pw32*)
6402   symcode='[ABCDGISTW]'
6403   ;;
6404 hpux*) # Its linker distinguishes data from code symbols
6405   if test "$host_cpu" = ia64; then
6406     symcode='[ABCDEGRST]'
6407   fi
6408   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6409   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6410   ;;
6411 linux* | k*bsd*-gnu)
6412   if test "$host_cpu" = ia64; then
6413     symcode='[ABCDGIRSTW]'
6414     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6415     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6416   fi
6417   ;;
6418 irix* | nonstopux*)
6419   symcode='[BCDEGRST]'
6420   ;;
6421 osf*)
6422   symcode='[BCDEGQRST]'
6423   ;;
6424 solaris*)
6425   symcode='[BDRT]'
6426   ;;
6427 sco3.2v5*)
6428   symcode='[DT]'
6429   ;;
6430 sysv4.2uw2*)
6431   symcode='[DT]'
6432   ;;
6433 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6434   symcode='[ABDT]'
6435   ;;
6436 sysv4)
6437   symcode='[DFNSTU]'
6438   ;;
6439 esac
6440
6441 # Handle CRLF in mingw tool chain
6442 opt_cr=
6443 case $build_os in
6444 mingw*)
6445   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6446   ;;
6447 esac
6448
6449 # If we're using GNU nm, then use its standard symbol codes.
6450 case `$NM -V 2>&1` in
6451 *GNU* | *'with BFD'*)
6452   symcode='[ABCDGIRSTW]' ;;
6453 esac
6454
6455 # Try without a prefix undercore, then with it.
6456 for ac_symprfx in "" "_"; do
6457
6458   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6459   symxfrm="\\1 $ac_symprfx\\2 \\2"
6460
6461   # Write the raw and C identifiers.
6462   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6463
6464   # Check to see that the pipe works correctly.
6465   pipe_works=no
6466
6467   rm -f conftest*
6468   cat > conftest.$ac_ext <<EOF
6469 #ifdef __cplusplus
6470 extern "C" {
6471 #endif
6472 char nm_test_var;
6473 void nm_test_func(){}
6474 #ifdef __cplusplus
6475 }
6476 #endif
6477 int main(){nm_test_var='a';nm_test_func();return(0);}
6478 EOF
6479
6480   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6481   (eval $ac_compile) 2>&5
6482   ac_status=$?
6483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484   test $ac_status = 0; }; then
6485     # Now try to grab the symbols.
6486     nlist=conftest.nm
6487     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6488   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6489   ac_status=$?
6490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6491   test $ac_status = 0; } && test -s "$nlist"; then
6492       # Try sorting and uniquifying the output.
6493       if sort "$nlist" | uniq > "$nlist"T; then
6494         mv -f "$nlist"T "$nlist"
6495       else
6496         rm -f "$nlist"T
6497       fi
6498
6499       # Make sure that we snagged all the symbols we need.
6500       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6501         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6502           cat <<EOF > conftest.$ac_ext
6503 #ifdef __cplusplus
6504 extern "C" {
6505 #endif
6506
6507 EOF
6508           # Now generate the symbol file.
6509           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6510
6511           cat <<EOF >> conftest.$ac_ext
6512 #if defined (__STDC__) && __STDC__
6513 # define lt_ptr_t void *
6514 #else
6515 # define lt_ptr_t char *
6516 # define const
6517 #endif
6518
6519 /* The mapping between symbol names and symbols. */
6520 const struct {
6521   const char *name;
6522   lt_ptr_t address;
6523 }
6524 lt_preloaded_symbols[] =
6525 {
6526 EOF
6527           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6528           cat <<\EOF >> conftest.$ac_ext
6529   {0, (lt_ptr_t) 0}
6530 };
6531
6532 #ifdef __cplusplus
6533 }
6534 #endif
6535 EOF
6536           # Now try linking the two files.
6537           mv conftest.$ac_objext conftstm.$ac_objext
6538           lt_save_LIBS="$LIBS"
6539           lt_save_CFLAGS="$CFLAGS"
6540           LIBS="conftstm.$ac_objext"
6541           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6542           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6543   (eval $ac_link) 2>&5
6544   ac_status=$?
6545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6547             pipe_works=yes
6548           fi
6549           LIBS="$lt_save_LIBS"
6550           CFLAGS="$lt_save_CFLAGS"
6551         else
6552           echo "cannot find nm_test_func in $nlist" >&5
6553         fi
6554       else
6555         echo "cannot find nm_test_var in $nlist" >&5
6556       fi
6557     else
6558       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6559     fi
6560   else
6561     echo "$progname: failed program was:" >&5
6562     cat conftest.$ac_ext >&5
6563   fi
6564   rm -rf conftest* conftst*
6565
6566   # Do not use the global_symbol_pipe unless it works.
6567   if test "$pipe_works" = yes; then
6568     break
6569   else
6570     lt_cv_sys_global_symbol_pipe=
6571   fi
6572 done
6573
6574 fi
6575
6576 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6577   lt_cv_sys_global_symbol_to_cdecl=
6578 fi
6579 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6581 $as_echo "failed" >&6; }
6582 else
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6584 $as_echo "ok" >&6; }
6585 fi
6586
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6588 $as_echo_n "checking for objdir... " >&6; }
6589 if ${lt_cv_objdir+:} false; then :
6590   $as_echo_n "(cached) " >&6
6591 else
6592   rm -f .libs 2>/dev/null
6593 mkdir .libs 2>/dev/null
6594 if test -d .libs; then
6595   lt_cv_objdir=.libs
6596 else
6597   # MS-DOS does not allow filenames that begin with a dot.
6598   lt_cv_objdir=_libs
6599 fi
6600 rmdir .libs 2>/dev/null
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6603 $as_echo "$lt_cv_objdir" >&6; }
6604 objdir=$lt_cv_objdir
6605
6606
6607
6608
6609
6610 case $host_os in
6611 aix3*)
6612   # AIX sometimes has problems with the GCC collect2 program.  For some
6613   # reason, if we set the COLLECT_NAMES environment variable, the problems
6614   # vanish in a puff of smoke.
6615   if test "X${COLLECT_NAMES+set}" != Xset; then
6616     COLLECT_NAMES=
6617     export COLLECT_NAMES
6618   fi
6619   ;;
6620 esac
6621
6622 # Sed substitution that helps us do robust quoting.  It backslashifies
6623 # metacharacters that are still active within double-quoted strings.
6624 Xsed='sed -e 1s/^X//'
6625 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6626
6627 # Same as above, but do not quote variable references.
6628 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6629
6630 # Sed substitution to delay expansion of an escaped shell variable in a
6631 # double_quote_subst'ed string.
6632 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6633
6634 # Sed substitution to avoid accidental globbing in evaled expressions
6635 no_glob_subst='s/\*/\\\*/g'
6636
6637 # Constants:
6638 rm="rm -f"
6639
6640 # Global variables:
6641 default_ofile=libtool
6642 can_build_shared=yes
6643
6644 # All known linkers require a `.a' archive for static linking (except MSVC,
6645 # which needs '.lib').
6646 libext=a
6647 ltmain="$ac_aux_dir/ltmain.sh"
6648 ofile="$default_ofile"
6649 with_gnu_ld="$lt_cv_prog_gnu_ld"
6650
6651 if test -n "$ac_tool_prefix"; then
6652   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}ar; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_AR+:} false; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   if test -n "$AR"; then
6660   ac_cv_prog_AR="$AR" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667     for ac_exec_ext in '' $ac_executable_extensions; do
6668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669     ac_cv_prog_AR="${ac_tool_prefix}ar"
6670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674   done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 AR=$ac_cv_prog_AR
6680 if test -n "$AR"; then
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6682 $as_echo "$AR" >&6; }
6683 else
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if test -z "$ac_cv_prog_AR"; then
6691   ac_ct_AR=$AR
6692   # Extract the first word of "ar", so it can be a program name with args.
6693 set dummy ar; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   if test -n "$ac_ct_AR"; then
6700   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707     for ac_exec_ext in '' $ac_executable_extensions; do
6708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709     ac_cv_prog_ac_ct_AR="ar"
6710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714   done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6720 if test -n "$ac_ct_AR"; then
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6722 $as_echo "$ac_ct_AR" >&6; }
6723 else
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728   if test "x$ac_ct_AR" = x; then
6729     AR="false"
6730   else
6731     case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6736 esac
6737     AR=$ac_ct_AR
6738   fi
6739 else
6740   AR="$ac_cv_prog_AR"
6741 fi
6742
6743 if test -n "$ac_tool_prefix"; then
6744   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_prog_RANLIB+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   if test -n "$RANLIB"; then
6752   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757   IFS=$as_save_IFS
6758   test -z "$as_dir" && as_dir=.
6759     for ac_exec_ext in '' $ac_executable_extensions; do
6760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763     break 2
6764   fi
6765 done
6766   done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 RANLIB=$ac_cv_prog_RANLIB
6772 if test -n "$RANLIB"; then
6773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6774 $as_echo "$RANLIB" >&6; }
6775 else
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779
6780
6781 fi
6782 if test -z "$ac_cv_prog_RANLIB"; then
6783   ac_ct_RANLIB=$RANLIB
6784   # Extract the first word of "ranlib", so it can be a program name with args.
6785 set dummy ranlib; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6789   $as_echo_n "(cached) " >&6
6790 else
6791   if test -n "$ac_ct_RANLIB"; then
6792   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799     for ac_exec_ext in '' $ac_executable_extensions; do
6800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801     ac_cv_prog_ac_ct_RANLIB="ranlib"
6802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806   done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6812 if test -n "$ac_ct_RANLIB"; then
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6814 $as_echo "$ac_ct_RANLIB" >&6; }
6815 else
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820   if test "x$ac_ct_RANLIB" = x; then
6821     RANLIB=":"
6822   else
6823     case $cross_compiling:$ac_tool_warned in
6824 yes:)
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827 ac_tool_warned=yes ;;
6828 esac
6829     RANLIB=$ac_ct_RANLIB
6830   fi
6831 else
6832   RANLIB="$ac_cv_prog_RANLIB"
6833 fi
6834
6835 if test -n "$ac_tool_prefix"; then
6836   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}strip; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_STRIP+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   if test -n "$STRIP"; then
6844   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851     for ac_exec_ext in '' $ac_executable_extensions; do
6852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858   done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 STRIP=$ac_cv_prog_STRIP
6864 if test -n "$STRIP"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6866 $as_echo "$STRIP" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872
6873 fi
6874 if test -z "$ac_cv_prog_STRIP"; then
6875   ac_ct_STRIP=$STRIP
6876   # Extract the first word of "strip", so it can be a program name with args.
6877 set dummy strip; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   if test -n "$ac_ct_STRIP"; then
6884   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891     for ac_exec_ext in '' $ac_executable_extensions; do
6892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893     ac_cv_prog_ac_ct_STRIP="strip"
6894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895     break 2
6896   fi
6897 done
6898   done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6904 if test -n "$ac_ct_STRIP"; then
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6906 $as_echo "$ac_ct_STRIP" >&6; }
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912   if test "x$ac_ct_STRIP" = x; then
6913     STRIP=":"
6914   else
6915     case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921     STRIP=$ac_ct_STRIP
6922   fi
6923 else
6924   STRIP="$ac_cv_prog_STRIP"
6925 fi
6926
6927
6928 old_CC="$CC"
6929 old_CFLAGS="$CFLAGS"
6930
6931 # Set sane defaults for various variables
6932 test -z "$AR" && AR=ar
6933 test -z "$AR_FLAGS" && AR_FLAGS=cru
6934 test -z "$AS" && AS=as
6935 test -z "$CC" && CC=cc
6936 test -z "$LTCC" && LTCC=$CC
6937 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6938 test -z "$DLLTOOL" && DLLTOOL=dlltool
6939 test -z "$LD" && LD=ld
6940 test -z "$LN_S" && LN_S="ln -s"
6941 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6942 test -z "$NM" && NM=nm
6943 test -z "$SED" && SED=sed
6944 test -z "$OBJDUMP" && OBJDUMP=objdump
6945 test -z "$RANLIB" && RANLIB=:
6946 test -z "$STRIP" && STRIP=:
6947 test -z "$ac_objext" && ac_objext=o
6948
6949 # Determine commands to create old-style static archives.
6950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6951 old_postinstall_cmds='chmod 644 $oldlib'
6952 old_postuninstall_cmds=
6953
6954 if test -n "$RANLIB"; then
6955   case $host_os in
6956   openbsd*)
6957     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6958     ;;
6959   *)
6960     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6961     ;;
6962   esac
6963   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6964 fi
6965
6966 for cc_temp in $compiler""; do
6967   case $cc_temp in
6968     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6969     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6970     \-*) ;;
6971     *) break;;
6972   esac
6973 done
6974 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6975
6976
6977 # Only perform the check for file, if the check method requires it
6978 case $deplibs_check_method in
6979 file_magic*)
6980   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6982 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6983 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6984   $as_echo_n "(cached) " >&6
6985 else
6986   case $MAGIC_CMD in
6987 [\\/*] |  ?:[\\/]*)
6988   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6989   ;;
6990 *)
6991   lt_save_MAGIC_CMD="$MAGIC_CMD"
6992   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6993   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6994   for ac_dir in $ac_dummy; do
6995     IFS="$lt_save_ifs"
6996     test -z "$ac_dir" && ac_dir=.
6997     if test -f $ac_dir/${ac_tool_prefix}file; then
6998       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6999       if test -n "$file_magic_test_file"; then
7000         case $deplibs_check_method in
7001         "file_magic "*)
7002           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7003           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7004           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7005             $EGREP "$file_magic_regex" > /dev/null; then
7006             :
7007           else
7008             cat <<EOF 1>&2
7009
7010 *** Warning: the command libtool uses to detect shared libraries,
7011 *** $file_magic_cmd, produces output that libtool cannot recognize.
7012 *** The result is that libtool may fail to recognize shared libraries
7013 *** as such.  This will affect the creation of libtool libraries that
7014 *** depend on shared libraries, but programs linked with such libtool
7015 *** libraries will work regardless of this problem.  Nevertheless, you
7016 *** may want to report the problem to your system manager and/or to
7017 *** bug-libtool@gnu.org
7018
7019 EOF
7020           fi ;;
7021         esac
7022       fi
7023       break
7024     fi
7025   done
7026   IFS="$lt_save_ifs"
7027   MAGIC_CMD="$lt_save_MAGIC_CMD"
7028   ;;
7029 esac
7030 fi
7031
7032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7033 if test -n "$MAGIC_CMD"; then
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7035 $as_echo "$MAGIC_CMD" >&6; }
7036 else
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041 if test -z "$lt_cv_path_MAGIC_CMD"; then
7042   if test -n "$ac_tool_prefix"; then
7043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7044 $as_echo_n "checking for file... " >&6; }
7045 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   case $MAGIC_CMD in
7049 [\\/*] |  ?:[\\/]*)
7050   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7051   ;;
7052 *)
7053   lt_save_MAGIC_CMD="$MAGIC_CMD"
7054   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7055   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7056   for ac_dir in $ac_dummy; do
7057     IFS="$lt_save_ifs"
7058     test -z "$ac_dir" && ac_dir=.
7059     if test -f $ac_dir/file; then
7060       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7061       if test -n "$file_magic_test_file"; then
7062         case $deplibs_check_method in
7063         "file_magic "*)
7064           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7065           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7066           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7067             $EGREP "$file_magic_regex" > /dev/null; then
7068             :
7069           else
7070             cat <<EOF 1>&2
7071
7072 *** Warning: the command libtool uses to detect shared libraries,
7073 *** $file_magic_cmd, produces output that libtool cannot recognize.
7074 *** The result is that libtool may fail to recognize shared libraries
7075 *** as such.  This will affect the creation of libtool libraries that
7076 *** depend on shared libraries, but programs linked with such libtool
7077 *** libraries will work regardless of this problem.  Nevertheless, you
7078 *** may want to report the problem to your system manager and/or to
7079 *** bug-libtool@gnu.org
7080
7081 EOF
7082           fi ;;
7083         esac
7084       fi
7085       break
7086     fi
7087   done
7088   IFS="$lt_save_ifs"
7089   MAGIC_CMD="$lt_save_MAGIC_CMD"
7090   ;;
7091 esac
7092 fi
7093
7094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7095 if test -n "$MAGIC_CMD"; then
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7097 $as_echo "$MAGIC_CMD" >&6; }
7098 else
7099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103   else
7104     MAGIC_CMD=:
7105   fi
7106 fi
7107
7108   fi
7109   ;;
7110 esac
7111
7112
7113   case $host_os in
7114     rhapsody* | darwin*)
7115     if test -n "$ac_tool_prefix"; then
7116   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7121   $as_echo_n "(cached) " >&6
7122 else
7123   if test -n "$DSYMUTIL"; then
7124   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131     for ac_exec_ext in '' $ac_executable_extensions; do
7132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138   done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7144 if test -n "$DSYMUTIL"; then
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7146 $as_echo "$DSYMUTIL" >&6; }
7147 else
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152
7153 fi
7154 if test -z "$ac_cv_prog_DSYMUTIL"; then
7155   ac_ct_DSYMUTIL=$DSYMUTIL
7156   # Extract the first word of "dsymutil", so it can be a program name with args.
7157 set dummy dsymutil; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   if test -n "$ac_ct_DSYMUTIL"; then
7164   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171     for ac_exec_ext in '' $ac_executable_extensions; do
7172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178   done
7179 IFS=$as_save_IFS
7180
7181 fi
7182 fi
7183 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7184 if test -n "$ac_ct_DSYMUTIL"; then
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7186 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7187 else
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190 fi
7191
7192   if test "x$ac_ct_DSYMUTIL" = x; then
7193     DSYMUTIL=":"
7194   else
7195     case $cross_compiling:$ac_tool_warned in
7196 yes:)
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7200 esac
7201     DSYMUTIL=$ac_ct_DSYMUTIL
7202   fi
7203 else
7204   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7205 fi
7206
7207     if test -n "$ac_tool_prefix"; then
7208   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7209 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_NMEDIT+:} false; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   if test -n "$NMEDIT"; then
7216   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223     for ac_exec_ext in '' $ac_executable_extensions; do
7224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230   done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 NMEDIT=$ac_cv_prog_NMEDIT
7236 if test -n "$NMEDIT"; then
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7238 $as_echo "$NMEDIT" >&6; }
7239 else
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244
7245 fi
7246 if test -z "$ac_cv_prog_NMEDIT"; then
7247   ac_ct_NMEDIT=$NMEDIT
7248   # Extract the first word of "nmedit", so it can be a program name with args.
7249 set dummy nmedit; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   if test -n "$ac_ct_NMEDIT"; then
7256   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7276 if test -n "$ac_ct_NMEDIT"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7278 $as_echo "$ac_ct_NMEDIT" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284   if test "x$ac_ct_NMEDIT" = x; then
7285     NMEDIT=":"
7286   else
7287     case $cross_compiling:$ac_tool_warned in
7288 yes:)
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 ac_tool_warned=yes ;;
7292 esac
7293     NMEDIT=$ac_ct_NMEDIT
7294   fi
7295 else
7296   NMEDIT="$ac_cv_prog_NMEDIT"
7297 fi
7298
7299
7300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7301 $as_echo_n "checking for -single_module linker flag... " >&6; }
7302 if ${lt_cv_apple_cc_single_mod+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   lt_cv_apple_cc_single_mod=no
7306       if test -z "${LT_MULTI_MODULE}"; then
7307    # By default we will add the -single_module flag. You can override
7308    # by either setting the environment variable LT_MULTI_MODULE
7309    # non-empty at configure time, or by adding -multi_module to the
7310    # link flags.
7311    echo "int foo(void){return 1;}" > conftest.c
7312    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7313      -dynamiclib ${wl}-single_module conftest.c
7314    if test -f libconftest.dylib; then
7315      lt_cv_apple_cc_single_mod=yes
7316      rm -rf libconftest.dylib*
7317    fi
7318    rm conftest.c
7319       fi
7320 fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7322 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7324 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7325 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   lt_cv_ld_exported_symbols_list=no
7329       save_LDFLAGS=$LDFLAGS
7330       echo "_main" > conftest.sym
7331       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h.  */
7334
7335 int
7336 main ()
7337 {
7338
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 if ac_fn_c_try_link "$LINENO"; then :
7344   lt_cv_ld_exported_symbols_list=yes
7345 else
7346   lt_cv_ld_exported_symbols_list=no
7347 fi
7348 rm -f core conftest.err conftest.$ac_objext \
7349     conftest$ac_exeext conftest.$ac_ext
7350    LDFLAGS="$save_LDFLAGS"
7351
7352 fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7354 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7355     case $host_os in
7356     rhapsody* | darwin1.[0123])
7357       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7358     darwin1.*)
7359      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7360     darwin*)
7361       # if running on 10.5 or later, the deployment target defaults
7362       # to the OS version, if on x86, and 10.4, the deployment
7363       # target defaults to 10.4. Don't you love it?
7364       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7365    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7366      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7367    10.[012]*)
7368      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7369    10.*)
7370      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7371       esac
7372     ;;
7373   esac
7374     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7375       _lt_dar_single_mod='$single_module'
7376     fi
7377     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7378       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7379     else
7380       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7381     fi
7382     if test "$DSYMUTIL" != ":"; then
7383       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7384     else
7385       _lt_dsymutil=
7386     fi
7387     ;;
7388   esac
7389
7390
7391 enable_dlopen=yes
7392 enable_win32_dll=no
7393
7394 # Check whether --enable-libtool-lock was given.
7395 if test "${enable_libtool_lock+set}" = set; then :
7396   enableval=$enable_libtool_lock;
7397 fi
7398
7399 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7400
7401
7402 # Check whether --with-pic was given.
7403 if test "${with_pic+set}" = set; then :
7404   withval=$with_pic; pic_mode="$withval"
7405 else
7406   pic_mode=default
7407 fi
7408
7409 test -z "$pic_mode" && pic_mode=default
7410
7411 # Use C for the default configuration in the libtool script
7412 tagname=
7413 lt_save_CC="$CC"
7414 ac_ext=c
7415 ac_cpp='$CPP $CPPFLAGS'
7416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7419
7420
7421 # Source file extension for C test sources.
7422 ac_ext=c
7423
7424 # Object file extension for compiled C test sources.
7425 objext=o
7426 objext=$objext
7427
7428 # Code to be used in simple compile tests
7429 lt_simple_compile_test_code="int some_variable = 0;"
7430
7431 # Code to be used in simple link tests
7432 lt_simple_link_test_code='int main(){return(0);}'
7433
7434
7435 # If no C compiler was specified, use CC.
7436 LTCC=${LTCC-"$CC"}
7437
7438 # If no C compiler flags were specified, use CFLAGS.
7439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7440
7441 # Allow CC to be a program name with arguments.
7442 compiler=$CC
7443
7444
7445 # save warnings/boilerplate of simple test code
7446 ac_outfile=conftest.$ac_objext
7447 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7448 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7449 _lt_compiler_boilerplate=`cat conftest.err`
7450 $rm conftest*
7451
7452 ac_outfile=conftest.$ac_objext
7453 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7454 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7455 _lt_linker_boilerplate=`cat conftest.err`
7456 $rm -r conftest*
7457
7458
7459
7460 lt_prog_compiler_no_builtin_flag=
7461
7462 if test "$GCC" = yes; then
7463   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7464
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7467 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7468 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   lt_cv_prog_compiler_rtti_exceptions=no
7472   ac_outfile=conftest.$ac_objext
7473    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7474    lt_compiler_flag="-fno-rtti -fno-exceptions"
7475    # Insert the option either (1) after the last *FLAGS variable, or
7476    # (2) before a word containing "conftest.", or (3) at the end.
7477    # Note that $ac_compile itself does not contain backslashes and begins
7478    # with a dollar sign (not a hyphen), so the echo should work correctly.
7479    # The option is referenced via a variable to avoid confusing sed.
7480    lt_compile=`echo "$ac_compile" | $SED \
7481    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7483    -e 's:$: $lt_compiler_flag:'`
7484    (eval echo "\"\$as_me:7484: $lt_compile\"" >&5)
7485    (eval "$lt_compile" 2>conftest.err)
7486    ac_status=$?
7487    cat conftest.err >&5
7488    echo "$as_me:7488: \$? = $ac_status" >&5
7489    if (exit $ac_status) && test -s "$ac_outfile"; then
7490      # The compiler can only warn and ignore the option if not recognized
7491      # So say no if there are warnings other than the usual output.
7492      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7493      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7494      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7495        lt_cv_prog_compiler_rtti_exceptions=yes
7496      fi
7497    fi
7498    $rm conftest*
7499
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7502 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7503
7504 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7505     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7506 else
7507     :
7508 fi
7509
7510 fi
7511
7512 lt_prog_compiler_wl=
7513 lt_prog_compiler_pic=
7514 lt_prog_compiler_static=
7515
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7517 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7518
7519   if test "$GCC" = yes; then
7520     lt_prog_compiler_wl='-Wl,'
7521     lt_prog_compiler_static='-static'
7522
7523     case $host_os in
7524       aix*)
7525       # All AIX code is PIC.
7526       if test "$host_cpu" = ia64; then
7527         # AIX 5 now supports IA64 processor
7528         lt_prog_compiler_static='-Bstatic'
7529       fi
7530       ;;
7531
7532     amigaos*)
7533       # FIXME: we need at least 68020 code to build shared libraries, but
7534       # adding the `-m68020' flag to GCC prevents building anything better,
7535       # like `-m68040'.
7536       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7537       ;;
7538
7539     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7540       # PIC is the default for these OSes.
7541       ;;
7542
7543     mingw* | cygwin* | pw32* | os2*)
7544       # This hack is so that the source file can tell whether it is being
7545       # built for inclusion in a dll (and should export symbols for example).
7546       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7547       # (--disable-auto-import) libraries
7548       lt_prog_compiler_pic='-DDLL_EXPORT'
7549       ;;
7550
7551     darwin* | rhapsody*)
7552       # PIC is the default on this platform
7553       # Common symbols not allowed in MH_DYLIB files
7554       lt_prog_compiler_pic='-fno-common'
7555       ;;
7556
7557     interix[3-9]*)
7558       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7559       # Instead, we relocate shared libraries at runtime.
7560       ;;
7561
7562     msdosdjgpp*)
7563       # Just because we use GCC doesn't mean we suddenly get shared libraries
7564       # on systems that don't support them.
7565       lt_prog_compiler_can_build_shared=no
7566       enable_shared=no
7567       ;;
7568
7569     sysv4*MP*)
7570       if test -d /usr/nec; then
7571         lt_prog_compiler_pic=-Kconform_pic
7572       fi
7573       ;;
7574
7575     hpux*)
7576       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7577       # not for PA HP-UX.
7578       case $host_cpu in
7579       hppa*64*|ia64*)
7580         # +Z the default
7581         ;;
7582       *)
7583         lt_prog_compiler_pic='-fPIC'
7584         ;;
7585       esac
7586       ;;
7587
7588     *)
7589       lt_prog_compiler_pic='-fPIC'
7590       ;;
7591     esac
7592   else
7593     # PORTME Check for flag to pass linker flags through the system compiler.
7594     case $host_os in
7595     aix*)
7596       lt_prog_compiler_wl='-Wl,'
7597       if test "$host_cpu" = ia64; then
7598         # AIX 5 now supports IA64 processor
7599         lt_prog_compiler_static='-Bstatic'
7600       else
7601         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7602       fi
7603       ;;
7604       darwin*)
7605         # PIC is the default on this platform
7606         # Common symbols not allowed in MH_DYLIB files
7607        case $cc_basename in
7608          xlc*)
7609          lt_prog_compiler_pic='-qnocommon'
7610          lt_prog_compiler_wl='-Wl,'
7611          ;;
7612        esac
7613        ;;
7614
7615     mingw* | cygwin* | pw32* | os2*)
7616       # This hack is so that the source file can tell whether it is being
7617       # built for inclusion in a dll (and should export symbols for example).
7618       lt_prog_compiler_pic='-DDLL_EXPORT'
7619       ;;
7620
7621     hpux9* | hpux10* | hpux11*)
7622       lt_prog_compiler_wl='-Wl,'
7623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7624       # not for PA HP-UX.
7625       case $host_cpu in
7626       hppa*64*|ia64*)
7627         # +Z the default
7628         ;;
7629       *)
7630         lt_prog_compiler_pic='+Z'
7631         ;;
7632       esac
7633       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7634       lt_prog_compiler_static='${wl}-a ${wl}archive'
7635       ;;
7636
7637     irix5* | irix6* | nonstopux*)
7638       lt_prog_compiler_wl='-Wl,'
7639       # PIC (with -KPIC) is the default.
7640       lt_prog_compiler_static='-non_shared'
7641       ;;
7642
7643     newsos6)
7644       lt_prog_compiler_pic='-KPIC'
7645       lt_prog_compiler_static='-Bstatic'
7646       ;;
7647
7648     linux* | k*bsd*-gnu)
7649       case $cc_basename in
7650       icc* | ecc*)
7651         lt_prog_compiler_wl='-Wl,'
7652         lt_prog_compiler_pic='-KPIC'
7653         lt_prog_compiler_static='-static'
7654         ;;
7655       pgcc* | pgf77* | pgf90* | pgf95*)
7656         # Portland Group compilers (*not* the Pentium gcc compiler,
7657         # which looks to be a dead project)
7658         lt_prog_compiler_wl='-Wl,'
7659         lt_prog_compiler_pic='-fpic'
7660         lt_prog_compiler_static='-Bstatic'
7661         ;;
7662       ccc*)
7663         lt_prog_compiler_wl='-Wl,'
7664         # All Alpha code is PIC.
7665         lt_prog_compiler_static='-non_shared'
7666         ;;
7667       *)
7668         case `$CC -V 2>&1 | sed 5q` in
7669         *Sun\ C*)
7670           # Sun C 5.9
7671           lt_prog_compiler_pic='-KPIC'
7672           lt_prog_compiler_static='-Bstatic'
7673           lt_prog_compiler_wl='-Wl,'
7674           ;;
7675         *Sun\ F*)
7676           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7677           lt_prog_compiler_pic='-KPIC'
7678           lt_prog_compiler_static='-Bstatic'
7679           lt_prog_compiler_wl=''
7680           ;;
7681         esac
7682         ;;
7683       esac
7684       ;;
7685
7686     osf3* | osf4* | osf5*)
7687       lt_prog_compiler_wl='-Wl,'
7688       # All OSF/1 code is PIC.
7689       lt_prog_compiler_static='-non_shared'
7690       ;;
7691
7692     rdos*)
7693       lt_prog_compiler_static='-non_shared'
7694       ;;
7695
7696     solaris*)
7697       lt_prog_compiler_pic='-KPIC'
7698       lt_prog_compiler_static='-Bstatic'
7699       case $cc_basename in
7700       f77* | f90* | f95*)
7701         lt_prog_compiler_wl='-Qoption ld ';;
7702       *)
7703         lt_prog_compiler_wl='-Wl,';;
7704       esac
7705       ;;
7706
7707     sunos4*)
7708       lt_prog_compiler_wl='-Qoption ld '
7709       lt_prog_compiler_pic='-PIC'
7710       lt_prog_compiler_static='-Bstatic'
7711       ;;
7712
7713     sysv4 | sysv4.2uw2* | sysv4.3*)
7714       lt_prog_compiler_wl='-Wl,'
7715       lt_prog_compiler_pic='-KPIC'
7716       lt_prog_compiler_static='-Bstatic'
7717       ;;
7718
7719     sysv4*MP*)
7720       if test -d /usr/nec ;then
7721         lt_prog_compiler_pic='-Kconform_pic'
7722         lt_prog_compiler_static='-Bstatic'
7723       fi
7724       ;;
7725
7726     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7727       lt_prog_compiler_wl='-Wl,'
7728       lt_prog_compiler_pic='-KPIC'
7729       lt_prog_compiler_static='-Bstatic'
7730       ;;
7731
7732     unicos*)
7733       lt_prog_compiler_wl='-Wl,'
7734       lt_prog_compiler_can_build_shared=no
7735       ;;
7736
7737     uts4*)
7738       lt_prog_compiler_pic='-pic'
7739       lt_prog_compiler_static='-Bstatic'
7740       ;;
7741
7742     *)
7743       lt_prog_compiler_can_build_shared=no
7744       ;;
7745     esac
7746   fi
7747
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7749 $as_echo "$lt_prog_compiler_pic" >&6; }
7750
7751 #
7752 # Check to make sure the PIC flag actually works.
7753 #
7754 if test -n "$lt_prog_compiler_pic"; then
7755
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7757 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7758 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761   lt_cv_prog_compiler_pic_works=no
7762   ac_outfile=conftest.$ac_objext
7763    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7764    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7765    # Insert the option either (1) after the last *FLAGS variable, or
7766    # (2) before a word containing "conftest.", or (3) at the end.
7767    # Note that $ac_compile itself does not contain backslashes and begins
7768    # with a dollar sign (not a hyphen), so the echo should work correctly.
7769    # The option is referenced via a variable to avoid confusing sed.
7770    lt_compile=`echo "$ac_compile" | $SED \
7771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7773    -e 's:$: $lt_compiler_flag:'`
7774    (eval echo "\"\$as_me:7774: $lt_compile\"" >&5)
7775    (eval "$lt_compile" 2>conftest.err)
7776    ac_status=$?
7777    cat conftest.err >&5
7778    echo "$as_me:7778: \$? = $ac_status" >&5
7779    if (exit $ac_status) && test -s "$ac_outfile"; then
7780      # The compiler can only warn and ignore the option if not recognized
7781      # So say no if there are warnings other than the usual output.
7782      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7783      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7785        lt_cv_prog_compiler_pic_works=yes
7786      fi
7787    fi
7788    $rm conftest*
7789
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7792 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7793
7794 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7795     case $lt_prog_compiler_pic in
7796      "" | " "*) ;;
7797      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7798      esac
7799 else
7800     lt_prog_compiler_pic=
7801      lt_prog_compiler_can_build_shared=no
7802 fi
7803
7804 fi
7805 case $host_os in
7806   # For platforms which do not support PIC, -DPIC is meaningless:
7807   *djgpp*)
7808     lt_prog_compiler_pic=
7809     ;;
7810   *)
7811     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7812     ;;
7813 esac
7814
7815 #
7816 # Check to make sure the static flag actually works.
7817 #
7818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7820 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7821 if ${lt_cv_prog_compiler_static_works+:} false; then :
7822   $as_echo_n "(cached) " >&6
7823 else
7824   lt_cv_prog_compiler_static_works=no
7825    save_LDFLAGS="$LDFLAGS"
7826    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7827    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7828    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7829      # The linker can only warn and ignore the option if not recognized
7830      # So say no if there are warnings
7831      if test -s conftest.err; then
7832        # Append any errors to the config.log.
7833        cat conftest.err 1>&5
7834        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7835        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7836        if diff conftest.exp conftest.er2 >/dev/null; then
7837          lt_cv_prog_compiler_static_works=yes
7838        fi
7839      else
7840        lt_cv_prog_compiler_static_works=yes
7841      fi
7842    fi
7843    $rm -r conftest*
7844    LDFLAGS="$save_LDFLAGS"
7845
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7848 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7849
7850 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7851     :
7852 else
7853     lt_prog_compiler_static=
7854 fi
7855
7856
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7859 if ${lt_cv_prog_compiler_c_o+:} false; then :
7860   $as_echo_n "(cached) " >&6
7861 else
7862   lt_cv_prog_compiler_c_o=no
7863    $rm -r conftest 2>/dev/null
7864    mkdir conftest
7865    cd conftest
7866    mkdir out
7867    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7868
7869    lt_compiler_flag="-o out/conftest2.$ac_objext"
7870    # Insert the option either (1) after the last *FLAGS variable, or
7871    # (2) before a word containing "conftest.", or (3) at the end.
7872    # Note that $ac_compile itself does not contain backslashes and begins
7873    # with a dollar sign (not a hyphen), so the echo should work correctly.
7874    lt_compile=`echo "$ac_compile" | $SED \
7875    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7876    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7877    -e 's:$: $lt_compiler_flag:'`
7878    (eval echo "\"\$as_me:7878: $lt_compile\"" >&5)
7879    (eval "$lt_compile" 2>out/conftest.err)
7880    ac_status=$?
7881    cat out/conftest.err >&5
7882    echo "$as_me:7882: \$? = $ac_status" >&5
7883    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7884    then
7885      # The compiler can only warn and ignore the option if not recognized
7886      # So say no if there are warnings
7887      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7888      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7889      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7890        lt_cv_prog_compiler_c_o=yes
7891      fi
7892    fi
7893    chmod u+w . 2>&5
7894    $rm conftest*
7895    # SGI C++ compiler will create directory out/ii_files/ for
7896    # template instantiation
7897    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7898    $rm out/* && rmdir out
7899    cd ..
7900    rmdir conftest
7901    $rm conftest*
7902
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7905 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7906
7907
7908 hard_links="nottested"
7909 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7910   # do not overwrite the value of need_locks provided by the user
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7912 $as_echo_n "checking if we can lock with hard links... " >&6; }
7913   hard_links=yes
7914   $rm conftest*
7915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7916   touch conftest.a
7917   ln conftest.a conftest.b 2>&5 || hard_links=no
7918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7920 $as_echo "$hard_links" >&6; }
7921   if test "$hard_links" = no; then
7922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7923 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7924     need_locks=warn
7925   fi
7926 else
7927   need_locks=no
7928 fi
7929
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7931 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7932
7933   runpath_var=
7934   allow_undefined_flag=
7935   enable_shared_with_static_runtimes=no
7936   archive_cmds=
7937   archive_expsym_cmds=
7938   old_archive_From_new_cmds=
7939   old_archive_from_expsyms_cmds=
7940   export_dynamic_flag_spec=
7941   whole_archive_flag_spec=
7942   thread_safe_flag_spec=
7943   hardcode_libdir_flag_spec=
7944   hardcode_libdir_flag_spec_ld=
7945   hardcode_libdir_separator=
7946   hardcode_direct=no
7947   hardcode_minus_L=no
7948   hardcode_shlibpath_var=unsupported
7949   link_all_deplibs=unknown
7950   hardcode_automatic=no
7951   module_cmds=
7952   module_expsym_cmds=
7953   always_export_symbols=no
7954   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7955   # include_expsyms should be a list of space-separated symbols to be *always*
7956   # included in the symbol list
7957   include_expsyms=
7958   # exclude_expsyms can be an extended regexp of symbols to exclude
7959   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7960   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7961   # as well as any symbol that contains `d'.
7962   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7963   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7964   # platforms (ab)use it in PIC code, but their linkers get confused if
7965   # the symbol is explicitly referenced.  Since portable code cannot
7966   # rely on this symbol name, it's probably fine to never include it in
7967   # preloaded symbol tables.
7968   # Exclude shared library initialization/finalization symbols.
7969   extract_expsyms_cmds=
7970   # Just being paranoid about ensuring that cc_basename is set.
7971   for cc_temp in $compiler""; do
7972   case $cc_temp in
7973     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7974     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7975     \-*) ;;
7976     *) break;;
7977   esac
7978 done
7979 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7980
7981   case $host_os in
7982   cygwin* | mingw* | pw32*)
7983     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7984     # When not using gcc, we currently assume that we are using
7985     # Microsoft Visual C++.
7986     if test "$GCC" != yes; then
7987       with_gnu_ld=no
7988     fi
7989     ;;
7990   interix*)
7991     # we just hope/assume this is gcc and not c89 (= MSVC++)
7992     with_gnu_ld=yes
7993     ;;
7994   openbsd*)
7995     with_gnu_ld=no
7996     ;;
7997   esac
7998
7999   ld_shlibs=yes
8000   if test "$with_gnu_ld" = yes; then
8001     # If archive_cmds runs LD, not CC, wlarc should be empty
8002     wlarc='${wl}'
8003
8004     # Set some defaults for GNU ld with shared library support. These
8005     # are reset later if shared libraries are not supported. Putting them
8006     # here allows them to be overridden if necessary.
8007     runpath_var=LD_RUN_PATH
8008     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8009     export_dynamic_flag_spec='${wl}--export-dynamic'
8010     # ancient GNU ld didn't support --whole-archive et. al.
8011     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8012         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8013       else
8014         whole_archive_flag_spec=
8015     fi
8016     supports_anon_versioning=no
8017     case `$LD -v 2>/dev/null` in
8018       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8019       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8020       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8021       *\ 2.11.*) ;; # other 2.11 versions
8022       *) supports_anon_versioning=yes ;;
8023     esac
8024
8025     # See if GNU ld supports shared libraries.
8026     case $host_os in
8027     aix[3-9]*)
8028       # On AIX/PPC, the GNU linker is very broken
8029       if test "$host_cpu" != ia64; then
8030         ld_shlibs=no
8031         cat <<EOF 1>&2
8032
8033 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8034 *** to be unable to reliably create shared libraries on AIX.
8035 *** Therefore, libtool is disabling shared libraries support.  If you
8036 *** really care for shared libraries, you may want to modify your PATH
8037 *** so that a non-GNU linker is found, and then restart.
8038
8039 EOF
8040       fi
8041       ;;
8042
8043     amigaos*)
8044       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)'
8045       hardcode_libdir_flag_spec='-L$libdir'
8046       hardcode_minus_L=yes
8047
8048       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8049       # that the semantics of dynamic libraries on AmigaOS, at least up
8050       # to version 4, is to share data among multiple programs linked
8051       # with the same dynamic library.  Since this doesn't match the
8052       # behavior of shared libraries on other platforms, we can't use
8053       # them.
8054       ld_shlibs=no
8055       ;;
8056
8057     beos*)
8058       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8059         allow_undefined_flag=unsupported
8060         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8061         # support --undefined.  This deserves some investigation.  FIXME
8062         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8063       else
8064         ld_shlibs=no
8065       fi
8066       ;;
8067
8068     cygwin* | mingw* | pw32*)
8069       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8070       # as there is no search path for DLLs.
8071       hardcode_libdir_flag_spec='-L$libdir'
8072       allow_undefined_flag=unsupported
8073       always_export_symbols=no
8074       enable_shared_with_static_runtimes=yes
8075       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8076
8077       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8078         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8079         # If the export-symbols file already is a .def file (1st line
8080         # is EXPORTS), use it as is; otherwise, prepend...
8081         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8082           cp $export_symbols $output_objdir/$soname.def;
8083         else
8084           echo EXPORTS > $output_objdir/$soname.def;
8085           cat $export_symbols >> $output_objdir/$soname.def;
8086         fi~
8087         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8088       else
8089         ld_shlibs=no
8090       fi
8091       ;;
8092
8093     interix[3-9]*)
8094       hardcode_direct=no
8095       hardcode_shlibpath_var=no
8096       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8097       export_dynamic_flag_spec='${wl}-E'
8098       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8099       # Instead, shared libraries are loaded at an image base (0x10000000 by
8100       # default) and relocated if they conflict, which is a slow very memory
8101       # consuming and fragmenting process.  To avoid this, we pick a random,
8102       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8103       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8104       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8105       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'
8106       ;;
8107
8108     gnu* | linux* | k*bsd*-gnu)
8109       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8110         tmp_addflag=
8111         case $cc_basename,$host_cpu in
8112         pgcc*)                          # Portland Group C compiler
8113           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8114           tmp_addflag=' $pic_flag'
8115           ;;
8116         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8117           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8118           tmp_addflag=' $pic_flag -Mnomain' ;;
8119         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8120           tmp_addflag=' -i_dynamic' ;;
8121         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8122           tmp_addflag=' -i_dynamic -nofor_main' ;;
8123         ifc* | ifort*)                  # Intel Fortran compiler
8124           tmp_addflag=' -nofor_main' ;;
8125         esac
8126         case `$CC -V 2>&1 | sed 5q` in
8127         *Sun\ C*)                       # Sun C 5.9
8128           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8129           tmp_sharedflag='-G' ;;
8130         *Sun\ F*)                       # Sun Fortran 8.3
8131           tmp_sharedflag='-G' ;;
8132         *)
8133           tmp_sharedflag='-shared' ;;
8134         esac
8135         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8136
8137         if test $supports_anon_versioning = yes; then
8138           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8139   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8140   $echo "local: *; };" >> $output_objdir/$libname.ver~
8141           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8142         fi
8143         link_all_deplibs=no
8144       else
8145         ld_shlibs=no
8146       fi
8147       ;;
8148
8149     netbsd* | netbsdelf*-gnu)
8150       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8151         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8152         wlarc=
8153       else
8154         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8156       fi
8157       ;;
8158
8159     solaris*)
8160       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8161         ld_shlibs=no
8162         cat <<EOF 1>&2
8163
8164 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8165 *** create shared libraries on Solaris systems.  Therefore, libtool
8166 *** is disabling shared libraries support.  We urge you to upgrade GNU
8167 *** binutils to release 2.9.1 or newer.  Another option is to modify
8168 *** your PATH or compiler configuration so that the native linker is
8169 *** used, and then restart.
8170
8171 EOF
8172       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8173         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8175       else
8176         ld_shlibs=no
8177       fi
8178       ;;
8179
8180     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8181       case `$LD -v 2>&1` in
8182         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8183         ld_shlibs=no
8184         cat <<_LT_EOF 1>&2
8185
8186 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8187 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8188 *** is disabling shared libraries support.  We urge you to upgrade GNU
8189 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8190 *** your PATH or compiler configuration so that the native linker is
8191 *** used, and then restart.
8192
8193 _LT_EOF
8194         ;;
8195         *)
8196           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8197             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8198             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8199             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8200           else
8201             ld_shlibs=no
8202           fi
8203         ;;
8204       esac
8205       ;;
8206
8207     sunos4*)
8208       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8209       wlarc=
8210       hardcode_direct=yes
8211       hardcode_shlibpath_var=no
8212       ;;
8213
8214     *)
8215       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8216         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8217         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8218       else
8219         ld_shlibs=no
8220       fi
8221       ;;
8222     esac
8223
8224     if test "$ld_shlibs" = no; then
8225       runpath_var=
8226       hardcode_libdir_flag_spec=
8227       export_dynamic_flag_spec=
8228       whole_archive_flag_spec=
8229     fi
8230   else
8231     # PORTME fill in a description of your system's linker (not GNU ld)
8232     case $host_os in
8233     aix3*)
8234       allow_undefined_flag=unsupported
8235       always_export_symbols=yes
8236       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'
8237       # Note: this linker hardcodes the directories in LIBPATH if there
8238       # are no directories specified by -L.
8239       hardcode_minus_L=yes
8240       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8241         # Neither direct hardcoding nor static linking is supported with a
8242         # broken collect2.
8243         hardcode_direct=unsupported
8244       fi
8245       ;;
8246
8247     aix[4-9]*)
8248       if test "$host_cpu" = ia64; then
8249         # On IA64, the linker does run time linking by default, so we don't
8250         # have to do anything special.
8251         aix_use_runtimelinking=no
8252         exp_sym_flag='-Bexport'
8253         no_entry_flag=""
8254       else
8255         # If we're using GNU nm, then we don't want the "-C" option.
8256         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8257         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8258           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8259         else
8260           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'
8261         fi
8262         aix_use_runtimelinking=no
8263
8264         # Test if we are trying to use run time linking or normal
8265         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8266         # need to do runtime linking.
8267         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8268           for ld_flag in $LDFLAGS; do
8269           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8270             aix_use_runtimelinking=yes
8271             break
8272           fi
8273           done
8274           ;;
8275         esac
8276
8277         exp_sym_flag='-bexport'
8278         no_entry_flag='-bnoentry'
8279       fi
8280
8281       # When large executables or shared objects are built, AIX ld can
8282       # have problems creating the table of contents.  If linking a library
8283       # or program results in "error TOC overflow" add -mminimal-toc to
8284       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8285       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8286
8287       archive_cmds=''
8288       hardcode_direct=yes
8289       hardcode_libdir_separator=':'
8290       link_all_deplibs=yes
8291
8292       if test "$GCC" = yes; then
8293         case $host_os in aix4.[012]|aix4.[012].*)
8294         # We only want to do this on AIX 4.2 and lower, the check
8295         # below for broken collect2 doesn't work under 4.3+
8296           collect2name=`${CC} -print-prog-name=collect2`
8297           if test -f "$collect2name" && \
8298            strings "$collect2name" | grep resolve_lib_name >/dev/null
8299           then
8300           # We have reworked collect2
8301           :
8302           else
8303           # We have old collect2
8304           hardcode_direct=unsupported
8305           # It fails to find uninstalled libraries when the uninstalled
8306           # path is not listed in the libpath.  Setting hardcode_minus_L
8307           # to unsupported forces relinking
8308           hardcode_minus_L=yes
8309           hardcode_libdir_flag_spec='-L$libdir'
8310           hardcode_libdir_separator=
8311           fi
8312           ;;
8313         esac
8314         shared_flag='-shared'
8315         if test "$aix_use_runtimelinking" = yes; then
8316           shared_flag="$shared_flag "'${wl}-G'
8317         fi
8318       else
8319         # not using gcc
8320         if test "$host_cpu" = ia64; then
8321         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8322         # chokes on -Wl,-G. The following line is correct:
8323           shared_flag='-G'
8324         else
8325           if test "$aix_use_runtimelinking" = yes; then
8326             shared_flag='${wl}-G'
8327           else
8328             shared_flag='${wl}-bM:SRE'
8329           fi
8330         fi
8331       fi
8332
8333       # It seems that -bexpall does not export symbols beginning with
8334       # underscore (_), so it is better to generate a list of symbols to export.
8335       always_export_symbols=yes
8336       if test "$aix_use_runtimelinking" = yes; then
8337         # Warning - without using the other runtime loading flags (-brtl),
8338         # -berok will link without error, but may produce a broken library.
8339         allow_undefined_flag='-berok'
8340        # Determine the default libpath from the value encoded in an empty executable.
8341        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h.  */
8343
8344 int
8345 main ()
8346 {
8347
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 if ac_fn_c_try_link "$LINENO"; then :
8353
8354 lt_aix_libpath_sed='
8355     /Import File Strings/,/^$/ {
8356         /^0/ {
8357             s/^0  *\(.*\)$/\1/
8358             p
8359         }
8360     }'
8361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8362 # Check for a 64-bit object if we didn't find anything.
8363 if test -z "$aix_libpath"; then
8364   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8365 fi
8366 fi
8367 rm -f core conftest.err conftest.$ac_objext \
8368     conftest$ac_exeext conftest.$ac_ext
8369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8370
8371        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8372         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8373        else
8374         if test "$host_cpu" = ia64; then
8375           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8376           allow_undefined_flag="-z nodefs"
8377           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"
8378         else
8379          # Determine the default libpath from the value encoded in an empty executable.
8380          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h.  */
8382
8383 int
8384 main ()
8385 {
8386
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 if ac_fn_c_try_link "$LINENO"; then :
8392
8393 lt_aix_libpath_sed='
8394     /Import File Strings/,/^$/ {
8395         /^0/ {
8396             s/^0  *\(.*\)$/\1/
8397             p
8398         }
8399     }'
8400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8401 # Check for a 64-bit object if we didn't find anything.
8402 if test -z "$aix_libpath"; then
8403   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8404 fi
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext \
8407     conftest$ac_exeext conftest.$ac_ext
8408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8409
8410          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8411           # Warning - without using the other run time loading flags,
8412           # -berok will link without error, but may produce a broken library.
8413           no_undefined_flag=' ${wl}-bernotok'
8414           allow_undefined_flag=' ${wl}-berok'
8415           # Exported symbols can be pulled into shared objects from archives
8416           whole_archive_flag_spec='$convenience'
8417           archive_cmds_need_lc=yes
8418           # This is similar to how AIX traditionally builds its shared libraries.
8419           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'
8420         fi
8421       fi
8422       ;;
8423
8424     amigaos*)
8425       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)'
8426       hardcode_libdir_flag_spec='-L$libdir'
8427       hardcode_minus_L=yes
8428       # see comment about different semantics on the GNU ld section
8429       ld_shlibs=no
8430       ;;
8431
8432     bsdi[45]*)
8433       export_dynamic_flag_spec=-rdynamic
8434       ;;
8435
8436     cygwin* | mingw* | pw32*)
8437       # When not using gcc, we currently assume that we are using
8438       # Microsoft Visual C++.
8439       # hardcode_libdir_flag_spec is actually meaningless, as there is
8440       # no search path for DLLs.
8441       hardcode_libdir_flag_spec=' '
8442       allow_undefined_flag=unsupported
8443       # Tell ltmain to make .lib files, not .a files.
8444       libext=lib
8445       # Tell ltmain to make .dll files, not .so files.
8446       shrext_cmds=".dll"
8447       # FIXME: Setting linknames here is a bad hack.
8448       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8449       # The linker will automatically build a .lib file if we build a DLL.
8450       old_archive_From_new_cmds='true'
8451       # FIXME: Should let the user specify the lib program.
8452       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8453       fix_srcfile_path='`cygpath -w "$srcfile"`'
8454       enable_shared_with_static_runtimes=yes
8455       ;;
8456
8457     darwin* | rhapsody*)
8458       case $host_os in
8459         rhapsody* | darwin1.[012])
8460          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8461          ;;
8462        *) # Darwin 1.3 on
8463          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8464            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8465          else
8466            case ${MACOSX_DEPLOYMENT_TARGET} in
8467              10.[012])
8468                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8469                ;;
8470              10.*)
8471                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8472                ;;
8473            esac
8474          fi
8475          ;;
8476       esac
8477       archive_cmds_need_lc=no
8478       hardcode_direct=no
8479       hardcode_automatic=yes
8480       hardcode_shlibpath_var=unsupported
8481       whole_archive_flag_spec=''
8482       link_all_deplibs=yes
8483     if test "$GCC" = yes ; then
8484         output_verbose_link_cmd='echo'
8485         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8486         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8487         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}"
8488         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}"
8489     else
8490       case $cc_basename in
8491         xlc*)
8492          output_verbose_link_cmd='echo'
8493          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8494          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8495           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8496          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8497           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8498           ;;
8499        *)
8500          ld_shlibs=no
8501           ;;
8502       esac
8503     fi
8504       ;;
8505
8506     dgux*)
8507       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508       hardcode_libdir_flag_spec='-L$libdir'
8509       hardcode_shlibpath_var=no
8510       ;;
8511
8512     freebsd1*)
8513       ld_shlibs=no
8514       ;;
8515
8516     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8517     # support.  Future versions do this automatically, but an explicit c++rt0.o
8518     # does not break anything, and helps significantly (at the cost of a little
8519     # extra space).
8520     freebsd2.2*)
8521       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8522       hardcode_libdir_flag_spec='-R$libdir'
8523       hardcode_direct=yes
8524       hardcode_shlibpath_var=no
8525       ;;
8526
8527     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8528     freebsd2*)
8529       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8530       hardcode_direct=yes
8531       hardcode_minus_L=yes
8532       hardcode_shlibpath_var=no
8533       ;;
8534
8535     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8536     freebsd* | dragonfly*)
8537       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8538       hardcode_libdir_flag_spec='-R$libdir'
8539       hardcode_direct=yes
8540       hardcode_shlibpath_var=no
8541       ;;
8542
8543     hpux9*)
8544       if test "$GCC" = yes; then
8545         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8546       else
8547         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'
8548       fi
8549       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8550       hardcode_libdir_separator=:
8551       hardcode_direct=yes
8552
8553       # hardcode_minus_L: Not really in the search PATH,
8554       # but as the default location of the library.
8555       hardcode_minus_L=yes
8556       export_dynamic_flag_spec='${wl}-E'
8557       ;;
8558
8559     hpux10*)
8560       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8561         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8562       else
8563         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8564       fi
8565       if test "$with_gnu_ld" = no; then
8566         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567         hardcode_libdir_separator=:
8568
8569         hardcode_direct=yes
8570         export_dynamic_flag_spec='${wl}-E'
8571
8572         # hardcode_minus_L: Not really in the search PATH,
8573         # but as the default location of the library.
8574         hardcode_minus_L=yes
8575       fi
8576       ;;
8577
8578     hpux11*)
8579       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8580         case $host_cpu in
8581         hppa*64*)
8582           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8583           ;;
8584         ia64*)
8585           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8586           ;;
8587         *)
8588           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8589           ;;
8590         esac
8591       else
8592         case $host_cpu in
8593         hppa*64*)
8594           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8595           ;;
8596         ia64*)
8597           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8598           ;;
8599         *)
8600           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8601           ;;
8602         esac
8603       fi
8604       if test "$with_gnu_ld" = no; then
8605         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8606         hardcode_libdir_separator=:
8607
8608         case $host_cpu in
8609         hppa*64*|ia64*)
8610           hardcode_libdir_flag_spec_ld='+b $libdir'
8611           hardcode_direct=no
8612           hardcode_shlibpath_var=no
8613           ;;
8614         *)
8615           hardcode_direct=yes
8616           export_dynamic_flag_spec='${wl}-E'
8617
8618           # hardcode_minus_L: Not really in the search PATH,
8619           # but as the default location of the library.
8620           hardcode_minus_L=yes
8621           ;;
8622         esac
8623       fi
8624       ;;
8625
8626     irix5* | irix6* | nonstopux*)
8627       if test "$GCC" = yes; then
8628         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8629       else
8630         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8631         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8632       fi
8633       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634       hardcode_libdir_separator=:
8635       link_all_deplibs=yes
8636       ;;
8637
8638     netbsd* | netbsdelf*-gnu)
8639       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8640         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8641       else
8642         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8643       fi
8644       hardcode_libdir_flag_spec='-R$libdir'
8645       hardcode_direct=yes
8646       hardcode_shlibpath_var=no
8647       ;;
8648
8649     newsos6)
8650       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8651       hardcode_direct=yes
8652       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653       hardcode_libdir_separator=:
8654       hardcode_shlibpath_var=no
8655       ;;
8656
8657     openbsd*)
8658       if test -f /usr/libexec/ld.so; then
8659         hardcode_direct=yes
8660         hardcode_shlibpath_var=no
8661         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665           export_dynamic_flag_spec='${wl}-E'
8666         else
8667           case $host_os in
8668            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8669              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670              hardcode_libdir_flag_spec='-R$libdir'
8671              ;;
8672            *)
8673              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675              ;;
8676           esac
8677         fi
8678       else
8679         ld_shlibs=no
8680       fi
8681       ;;
8682
8683     os2*)
8684       hardcode_libdir_flag_spec='-L$libdir'
8685       hardcode_minus_L=yes
8686       allow_undefined_flag=unsupported
8687       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'
8688       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8689       ;;
8690
8691     osf3*)
8692       if test "$GCC" = yes; then
8693         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8695       else
8696         allow_undefined_flag=' -expect_unresolved \*'
8697         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8698       fi
8699       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700       hardcode_libdir_separator=:
8701       ;;
8702
8703     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8704       if test "$GCC" = yes; then
8705         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8706         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8707         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708       else
8709         allow_undefined_flag=' -expect_unresolved \*'
8710         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8711         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8712         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8713
8714         # Both c and cxx compiler support -rpath directly
8715         hardcode_libdir_flag_spec='-rpath $libdir'
8716       fi
8717       hardcode_libdir_separator=:
8718       ;;
8719
8720     solaris*)
8721       no_undefined_flag=' -z text'
8722       if test "$GCC" = yes; then
8723         wlarc='${wl}'
8724         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8726           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8727       else
8728         wlarc=''
8729         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8731         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8732       fi
8733       hardcode_libdir_flag_spec='-R$libdir'
8734       hardcode_shlibpath_var=no
8735       case $host_os in
8736       solaris2.[0-5] | solaris2.[0-5].*) ;;
8737       *)
8738         # The compiler driver will combine and reorder linker options,
8739         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8740         # but is careful enough not to reorder.
8741         # Supported since Solaris 2.6 (maybe 2.5.1?)
8742         if test "$GCC" = yes; then
8743           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8744         else
8745           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8746         fi
8747         ;;
8748       esac
8749       link_all_deplibs=yes
8750       ;;
8751
8752     sunos4*)
8753       if test "x$host_vendor" = xsequent; then
8754         # Use $CC to link under sequent, because it throws in some extra .o
8755         # files that make .init and .fini sections work.
8756         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8757       else
8758         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8759       fi
8760       hardcode_libdir_flag_spec='-L$libdir'
8761       hardcode_direct=yes
8762       hardcode_minus_L=yes
8763       hardcode_shlibpath_var=no
8764       ;;
8765
8766     sysv4)
8767       case $host_vendor in
8768         sni)
8769           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770           hardcode_direct=yes # is this really true???
8771         ;;
8772         siemens)
8773           ## LD is ld it makes a PLAMLIB
8774           ## CC just makes a GrossModule.
8775           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8776           reload_cmds='$CC -r -o $output$reload_objs'
8777           hardcode_direct=no
8778         ;;
8779         motorola)
8780           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8782         ;;
8783       esac
8784       runpath_var='LD_RUN_PATH'
8785       hardcode_shlibpath_var=no
8786       ;;
8787
8788     sysv4.3*)
8789       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790       hardcode_shlibpath_var=no
8791       export_dynamic_flag_spec='-Bexport'
8792       ;;
8793
8794     sysv4*MP*)
8795       if test -d /usr/nec; then
8796         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797         hardcode_shlibpath_var=no
8798         runpath_var=LD_RUN_PATH
8799         hardcode_runpath_var=yes
8800         ld_shlibs=yes
8801       fi
8802       ;;
8803
8804     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8805       no_undefined_flag='${wl}-z,text'
8806       archive_cmds_need_lc=no
8807       hardcode_shlibpath_var=no
8808       runpath_var='LD_RUN_PATH'
8809
8810       if test "$GCC" = yes; then
8811         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8812         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813       else
8814         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816       fi
8817       ;;
8818
8819     sysv5* | sco3.2v5* | sco5v6*)
8820       # Note: We can NOT use -z defs as we might desire, because we do not
8821       # link with -lc, and that would cause any symbols used from libc to
8822       # always be unresolved, which means just about no library would
8823       # ever link correctly.  If we're not using GNU ld we use -z text
8824       # though, which does catch some bad symbols but isn't as heavy-handed
8825       # as -z defs.
8826       no_undefined_flag='${wl}-z,text'
8827       allow_undefined_flag='${wl}-z,nodefs'
8828       archive_cmds_need_lc=no
8829       hardcode_shlibpath_var=no
8830       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8831       hardcode_libdir_separator=':'
8832       link_all_deplibs=yes
8833       export_dynamic_flag_spec='${wl}-Bexport'
8834       runpath_var='LD_RUN_PATH'
8835
8836       if test "$GCC" = yes; then
8837         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839       else
8840         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842       fi
8843       ;;
8844
8845     uts4*)
8846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847       hardcode_libdir_flag_spec='-L$libdir'
8848       hardcode_shlibpath_var=no
8849       ;;
8850
8851     *)
8852       ld_shlibs=no
8853       ;;
8854     esac
8855   fi
8856
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8858 $as_echo "$ld_shlibs" >&6; }
8859 test "$ld_shlibs" = no && can_build_shared=no
8860
8861 #
8862 # Do we need to explicitly link libc?
8863 #
8864 case "x$archive_cmds_need_lc" in
8865 x|xyes)
8866   # Assume -lc should be added
8867   archive_cmds_need_lc=yes
8868
8869   if test "$enable_shared" = yes && test "$GCC" = yes; then
8870     case $archive_cmds in
8871     *'~'*)
8872       # FIXME: we may have to deal with multi-command sequences.
8873       ;;
8874     '$CC '*)
8875       # Test whether the compiler implicitly links with -lc since on some
8876       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8877       # to ld, don't add -lc before -lgcc.
8878       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8880       $rm conftest*
8881       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8884   (eval $ac_compile) 2>&5
8885   ac_status=$?
8886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8887   test $ac_status = 0; } 2>conftest.err; then
8888         soname=conftest
8889         lib=conftest
8890         libobjs=conftest.$ac_objext
8891         deplibs=
8892         wl=$lt_prog_compiler_wl
8893         pic_flag=$lt_prog_compiler_pic
8894         compiler_flags=-v
8895         linker_flags=-v
8896         verstring=
8897         output_objdir=.
8898         libname=conftest
8899         lt_save_allow_undefined_flag=$allow_undefined_flag
8900         allow_undefined_flag=
8901         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8902   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8903   ac_status=$?
8904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8905   test $ac_status = 0; }
8906         then
8907           archive_cmds_need_lc=no
8908         else
8909           archive_cmds_need_lc=yes
8910         fi
8911         allow_undefined_flag=$lt_save_allow_undefined_flag
8912       else
8913         cat conftest.err 1>&5
8914       fi
8915       $rm conftest*
8916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8917 $as_echo "$archive_cmds_need_lc" >&6; }
8918       ;;
8919     esac
8920   fi
8921   ;;
8922 esac
8923
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8925 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8926 library_names_spec=
8927 libname_spec='lib$name'
8928 soname_spec=
8929 shrext_cmds=".so"
8930 postinstall_cmds=
8931 postuninstall_cmds=
8932 finish_cmds=
8933 finish_eval=
8934 shlibpath_var=
8935 shlibpath_overrides_runpath=unknown
8936 version_type=none
8937 dynamic_linker="$host_os ld.so"
8938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8939
8940 if test "$GCC" = yes; then
8941   case $host_os in
8942     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8943     *) lt_awk_arg="/^libraries:/" ;;
8944   esac
8945   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8946   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8947     # if the path contains ";" then we assume it to be the separator
8948     # otherwise default to the standard path separator (i.e. ":") - it is
8949     # assumed that no part of a normal pathname contains ";" but that should
8950     # okay in the real world where ";" in dirpaths is itself problematic.
8951     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8952   else
8953     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8954   fi
8955   # Ok, now we have the path, separated by spaces, we can step through it
8956   # and add multilib dir if necessary.
8957   lt_tmp_lt_search_path_spec=
8958   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8959   for lt_sys_path in $lt_search_path_spec; do
8960     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8961       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8962     else
8963       test -d "$lt_sys_path" && \
8964         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8965     fi
8966   done
8967   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8968 BEGIN {RS=" "; FS="/|\n";} {
8969   lt_foo="";
8970   lt_count=0;
8971   for (lt_i = NF; lt_i > 0; lt_i--) {
8972     if ($lt_i != "" && $lt_i != ".") {
8973       if ($lt_i == "..") {
8974         lt_count++;
8975       } else {
8976         if (lt_count == 0) {
8977           lt_foo="/" $lt_i lt_foo;
8978         } else {
8979           lt_count--;
8980         }
8981       }
8982     }
8983   }
8984   if (lt_foo != "") { lt_freq[lt_foo]++; }
8985   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8986 }'`
8987   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8988 else
8989   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8990 fi
8991 need_lib_prefix=unknown
8992 hardcode_into_libs=no
8993
8994 # when you set need_version to no, make sure it does not cause -set_version
8995 # flags to be left without arguments
8996 need_version=unknown
8997
8998 case $host_os in
8999 aix3*)
9000   version_type=linux
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9002   shlibpath_var=LIBPATH
9003
9004   # AIX 3 has no versioning support, so we append a major version to the name.
9005   soname_spec='${libname}${release}${shared_ext}$major'
9006   ;;
9007
9008 aix[4-9]*)
9009   version_type=linux
9010   need_lib_prefix=no
9011   need_version=no
9012   hardcode_into_libs=yes
9013   if test "$host_cpu" = ia64; then
9014     # AIX 5 supports IA64
9015     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9016     shlibpath_var=LD_LIBRARY_PATH
9017   else
9018     # With GCC up to 2.95.x, collect2 would create an import file
9019     # for dependence libraries.  The import file would start with
9020     # the line `#! .'.  This would cause the generated library to
9021     # depend on `.', always an invalid library.  This was fixed in
9022     # development snapshots of GCC prior to 3.0.
9023     case $host_os in
9024       aix4 | aix4.[01] | aix4.[01].*)
9025       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9026            echo ' yes '
9027            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9028         :
9029       else
9030         can_build_shared=no
9031       fi
9032       ;;
9033     esac
9034     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9035     # soname into executable. Probably we can add versioning support to
9036     # collect2, so additional links can be useful in future.
9037     if test "$aix_use_runtimelinking" = yes; then
9038       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9039       # instead of lib<name>.a to let people know that these are not
9040       # typical AIX shared libraries.
9041       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042     else
9043       # We preserve .a as extension for shared libraries through AIX4.2
9044       # and later when we are not doing run time linking.
9045       library_names_spec='${libname}${release}.a $libname.a'
9046       soname_spec='${libname}${release}${shared_ext}$major'
9047     fi
9048     shlibpath_var=LIBPATH
9049   fi
9050   ;;
9051
9052 amigaos*)
9053   library_names_spec='$libname.ixlibrary $libname.a'
9054   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9055   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9056   ;;
9057
9058 beos*)
9059   library_names_spec='${libname}${shared_ext}'
9060   dynamic_linker="$host_os ld.so"
9061   shlibpath_var=LIBRARY_PATH
9062   ;;
9063
9064 bsdi[45]*)
9065   version_type=linux
9066   need_version=no
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068   soname_spec='${libname}${release}${shared_ext}$major'
9069   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9070   shlibpath_var=LD_LIBRARY_PATH
9071   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9072   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9073   # the default ld.so.conf also contains /usr/contrib/lib and
9074   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9075   # libtool to hard-code these into programs
9076   ;;
9077
9078 cygwin* | mingw* | pw32*)
9079   version_type=windows
9080   shrext_cmds=".dll"
9081   need_version=no
9082   need_lib_prefix=no
9083
9084   case $GCC,$host_os in
9085   yes,cygwin* | yes,mingw* | yes,pw32*)
9086     library_names_spec='$libname.dll.a'
9087     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9088     postinstall_cmds='base_file=`basename \${file}`~
9089       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9090       dldir=$destdir/`dirname \$dlpath`~
9091       test -d \$dldir || mkdir -p \$dldir~
9092       $install_prog $dir/$dlname \$dldir/$dlname~
9093       chmod a+x \$dldir/$dlname'
9094     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9095       dlpath=$dir/\$dldll~
9096        $rm \$dlpath'
9097     shlibpath_overrides_runpath=yes
9098
9099     case $host_os in
9100     cygwin*)
9101       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9102       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9103       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9104       ;;
9105     mingw*)
9106       # MinGW DLLs use traditional 'lib' prefix
9107       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9108       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9110         # It is most probably a Windows format PATH printed by
9111         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9112         # path with ; separators, and with drive letters. We can handle the
9113         # drive letters (cygwin fileutils understands them), so leave them,
9114         # especially as we might pass files found there to a mingw objdump,
9115         # which wouldn't understand a cygwinified path. Ahh.
9116         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9117       else
9118         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9119       fi
9120       ;;
9121     pw32*)
9122       # pw32 DLLs use 'pw' prefix rather than 'lib'
9123       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9124       ;;
9125     esac
9126     ;;
9127
9128   *)
9129     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9130     ;;
9131   esac
9132   dynamic_linker='Win32 ld.exe'
9133   # FIXME: first we should search . and the directory the executable is in
9134   shlibpath_var=PATH
9135   ;;
9136
9137 darwin* | rhapsody*)
9138   dynamic_linker="$host_os dyld"
9139   version_type=darwin
9140   need_lib_prefix=no
9141   need_version=no
9142   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9143   soname_spec='${libname}${release}${major}$shared_ext'
9144   shlibpath_overrides_runpath=yes
9145   shlibpath_var=DYLD_LIBRARY_PATH
9146   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9147
9148   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9149   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9150   ;;
9151
9152 dgux*)
9153   version_type=linux
9154   need_lib_prefix=no
9155   need_version=no
9156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9157   soname_spec='${libname}${release}${shared_ext}$major'
9158   shlibpath_var=LD_LIBRARY_PATH
9159   ;;
9160
9161 freebsd1*)
9162   dynamic_linker=no
9163   ;;
9164
9165 freebsd* | dragonfly*)
9166   # DragonFly does not have aout.  When/if they implement a new
9167   # versioning mechanism, adjust this.
9168   if test -x /usr/bin/objformat; then
9169     objformat=`/usr/bin/objformat`
9170   else
9171     case $host_os in
9172     freebsd[123]*) objformat=aout ;;
9173     *) objformat=elf ;;
9174     esac
9175   fi
9176   version_type=freebsd-$objformat
9177   case $version_type in
9178     freebsd-elf*)
9179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9180       need_version=no
9181       need_lib_prefix=no
9182       ;;
9183     freebsd-*)
9184       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9185       need_version=yes
9186       ;;
9187   esac
9188   shlibpath_var=LD_LIBRARY_PATH
9189   case $host_os in
9190   freebsd2*)
9191     shlibpath_overrides_runpath=yes
9192     ;;
9193   freebsd3.[01]* | freebsdelf3.[01]*)
9194     shlibpath_overrides_runpath=yes
9195     hardcode_into_libs=yes
9196     ;;
9197   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9198   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9199     shlibpath_overrides_runpath=no
9200     hardcode_into_libs=yes
9201     ;;
9202   *) # from 4.6 on, and DragonFly
9203     shlibpath_overrides_runpath=yes
9204     hardcode_into_libs=yes
9205     ;;
9206   esac
9207   ;;
9208
9209 gnu*)
9210   version_type=linux
9211   need_lib_prefix=no
9212   need_version=no
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9214   soname_spec='${libname}${release}${shared_ext}$major'
9215   shlibpath_var=LD_LIBRARY_PATH
9216   hardcode_into_libs=yes
9217   ;;
9218
9219 hpux9* | hpux10* | hpux11*)
9220   # Give a soname corresponding to the major version so that dld.sl refuses to
9221   # link against other versions.
9222   version_type=sunos
9223   need_lib_prefix=no
9224   need_version=no
9225   case $host_cpu in
9226   ia64*)
9227     shrext_cmds='.so'
9228     hardcode_into_libs=yes
9229     dynamic_linker="$host_os dld.so"
9230     shlibpath_var=LD_LIBRARY_PATH
9231     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233     soname_spec='${libname}${release}${shared_ext}$major'
9234     if test "X$HPUX_IA64_MODE" = X32; then
9235       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9236     else
9237       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9238     fi
9239     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9240     ;;
9241    hppa*64*)
9242      shrext_cmds='.sl'
9243      hardcode_into_libs=yes
9244      dynamic_linker="$host_os dld.sl"
9245      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9246      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9247      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248      soname_spec='${libname}${release}${shared_ext}$major'
9249      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9250      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9251      ;;
9252    *)
9253     shrext_cmds='.sl'
9254     dynamic_linker="$host_os dld.sl"
9255     shlibpath_var=SHLIB_PATH
9256     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258     soname_spec='${libname}${release}${shared_ext}$major'
9259     ;;
9260   esac
9261   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9262   postinstall_cmds='chmod 555 $lib'
9263   ;;
9264
9265 interix[3-9]*)
9266   version_type=linux
9267   need_lib_prefix=no
9268   need_version=no
9269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9270   soname_spec='${libname}${release}${shared_ext}$major'
9271   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9272   shlibpath_var=LD_LIBRARY_PATH
9273   shlibpath_overrides_runpath=no
9274   hardcode_into_libs=yes
9275   ;;
9276
9277 irix5* | irix6* | nonstopux*)
9278   case $host_os in
9279     nonstopux*) version_type=nonstopux ;;
9280     *)
9281         if test "$lt_cv_prog_gnu_ld" = yes; then
9282                 version_type=linux
9283         else
9284                 version_type=irix
9285         fi ;;
9286   esac
9287   need_lib_prefix=no
9288   need_version=no
9289   soname_spec='${libname}${release}${shared_ext}$major'
9290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9291   case $host_os in
9292   irix5* | nonstopux*)
9293     libsuff= shlibsuff=
9294     ;;
9295   *)
9296     case $LD in # libtool.m4 will add one of these switches to LD
9297     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9298       libsuff= shlibsuff= libmagic=32-bit;;
9299     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9300       libsuff=32 shlibsuff=N32 libmagic=N32;;
9301     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9302       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9303     *) libsuff= shlibsuff= libmagic=never-match;;
9304     esac
9305     ;;
9306   esac
9307   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9308   shlibpath_overrides_runpath=no
9309   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9310   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9311   hardcode_into_libs=yes
9312   ;;
9313
9314 # No shared lib support for Linux oldld, aout, or coff.
9315 linux*oldld* | linux*aout* | linux*coff*)
9316   dynamic_linker=no
9317   ;;
9318
9319 # This must be Linux ELF.
9320 linux* | k*bsd*-gnu)
9321   version_type=linux
9322   need_lib_prefix=no
9323   need_version=no
9324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325   soname_spec='${libname}${release}${shared_ext}$major'
9326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9327   shlibpath_var=LD_LIBRARY_PATH
9328   shlibpath_overrides_runpath=no
9329   # This implies no fast_install, which is unacceptable.
9330   # Some rework will be needed to allow for fast_install
9331   # before this can be enabled.
9332   hardcode_into_libs=yes
9333
9334   # Append ld.so.conf contents to the search path
9335   if test -f /etc/ld.so.conf; then
9336     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9337     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9338   fi
9339
9340   # We used to test for /lib/ld.so.1 and disable shared libraries on
9341   # powerpc, because MkLinux only supported shared libraries with the
9342   # GNU dynamic linker.  Since this was broken with cross compilers,
9343   # most powerpc-linux boxes support dynamic linking these days and
9344   # people can always --disable-shared, the test was removed, and we
9345   # assume the GNU/Linux dynamic linker is in use.
9346   dynamic_linker='GNU/Linux ld.so'
9347   ;;
9348
9349 netbsdelf*-gnu)
9350   version_type=linux
9351   need_lib_prefix=no
9352   need_version=no
9353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9354   soname_spec='${libname}${release}${shared_ext}$major'
9355   shlibpath_var=LD_LIBRARY_PATH
9356   shlibpath_overrides_runpath=no
9357   hardcode_into_libs=yes
9358   dynamic_linker='NetBSD ld.elf_so'
9359   ;;
9360
9361 netbsd*)
9362   version_type=sunos
9363   need_lib_prefix=no
9364   need_version=no
9365   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9367     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9368     dynamic_linker='NetBSD (a.out) ld.so'
9369   else
9370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9371     soname_spec='${libname}${release}${shared_ext}$major'
9372     dynamic_linker='NetBSD ld.elf_so'
9373   fi
9374   shlibpath_var=LD_LIBRARY_PATH
9375   shlibpath_overrides_runpath=yes
9376   hardcode_into_libs=yes
9377   ;;
9378
9379 newsos6)
9380   version_type=linux
9381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382   shlibpath_var=LD_LIBRARY_PATH
9383   shlibpath_overrides_runpath=yes
9384   ;;
9385
9386 nto-qnx*)
9387   version_type=linux
9388   need_lib_prefix=no
9389   need_version=no
9390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391   soname_spec='${libname}${release}${shared_ext}$major'
9392   shlibpath_var=LD_LIBRARY_PATH
9393   shlibpath_overrides_runpath=yes
9394   ;;
9395
9396 openbsd*)
9397   version_type=sunos
9398   sys_lib_dlsearch_path_spec="/usr/lib"
9399   need_lib_prefix=no
9400   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9401   case $host_os in
9402     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9403     *)                         need_version=no  ;;
9404   esac
9405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9409     case $host_os in
9410       openbsd2.[89] | openbsd2.[89].*)
9411         shlibpath_overrides_runpath=no
9412         ;;
9413       *)
9414         shlibpath_overrides_runpath=yes
9415         ;;
9416       esac
9417   else
9418     shlibpath_overrides_runpath=yes
9419   fi
9420   ;;
9421
9422 os2*)
9423   libname_spec='$name'
9424   shrext_cmds=".dll"
9425   need_lib_prefix=no
9426   library_names_spec='$libname${shared_ext} $libname.a'
9427   dynamic_linker='OS/2 ld.exe'
9428   shlibpath_var=LIBPATH
9429   ;;
9430
9431 osf3* | osf4* | osf5*)
9432   version_type=osf
9433   need_lib_prefix=no
9434   need_version=no
9435   soname_spec='${libname}${release}${shared_ext}$major'
9436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9437   shlibpath_var=LD_LIBRARY_PATH
9438   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9439   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9440   ;;
9441
9442 rdos*)
9443   dynamic_linker=no
9444   ;;
9445
9446 solaris*)
9447   version_type=linux
9448   need_lib_prefix=no
9449   need_version=no
9450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451   soname_spec='${libname}${release}${shared_ext}$major'
9452   shlibpath_var=LD_LIBRARY_PATH
9453   shlibpath_overrides_runpath=yes
9454   hardcode_into_libs=yes
9455   # ldd complains unless libraries are executable
9456   postinstall_cmds='chmod +x $lib'
9457   ;;
9458
9459 sunos4*)
9460   version_type=sunos
9461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9462   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9463   shlibpath_var=LD_LIBRARY_PATH
9464   shlibpath_overrides_runpath=yes
9465   if test "$with_gnu_ld" = yes; then
9466     need_lib_prefix=no
9467   fi
9468   need_version=yes
9469   ;;
9470
9471 sysv4 | sysv4.3*)
9472   version_type=linux
9473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474   soname_spec='${libname}${release}${shared_ext}$major'
9475   shlibpath_var=LD_LIBRARY_PATH
9476   case $host_vendor in
9477     sni)
9478       shlibpath_overrides_runpath=no
9479       need_lib_prefix=no
9480       export_dynamic_flag_spec='${wl}-Blargedynsym'
9481       runpath_var=LD_RUN_PATH
9482       ;;
9483     siemens)
9484       need_lib_prefix=no
9485       ;;
9486     motorola)
9487       need_lib_prefix=no
9488       need_version=no
9489       shlibpath_overrides_runpath=no
9490       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9491       ;;
9492   esac
9493   ;;
9494
9495 sysv4*MP*)
9496   if test -d /usr/nec ;then
9497     version_type=linux
9498     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9499     soname_spec='$libname${shared_ext}.$major'
9500     shlibpath_var=LD_LIBRARY_PATH
9501   fi
9502   ;;
9503
9504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9505   version_type=freebsd-elf
9506   need_lib_prefix=no
9507   need_version=no
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9509   soname_spec='${libname}${release}${shared_ext}$major'
9510   shlibpath_var=LD_LIBRARY_PATH
9511   hardcode_into_libs=yes
9512   if test "$with_gnu_ld" = yes; then
9513     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9514     shlibpath_overrides_runpath=no
9515   else
9516     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9517     shlibpath_overrides_runpath=yes
9518     case $host_os in
9519       sco3.2v5*)
9520         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9521         ;;
9522     esac
9523   fi
9524   sys_lib_dlsearch_path_spec='/usr/lib'
9525   ;;
9526
9527 uts4*)
9528   version_type=linux
9529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530   soname_spec='${libname}${release}${shared_ext}$major'
9531   shlibpath_var=LD_LIBRARY_PATH
9532   ;;
9533
9534 *)
9535   dynamic_linker=no
9536   ;;
9537 esac
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9539 $as_echo "$dynamic_linker" >&6; }
9540 test "$dynamic_linker" = no && can_build_shared=no
9541
9542 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9543   $as_echo_n "(cached) " >&6
9544 else
9545   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9546 fi
9547
9548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9549 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9553 fi
9554
9555 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9556
9557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9558 if test "$GCC" = yes; then
9559   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9560 fi
9561
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9563 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9564 hardcode_action=
9565 if test -n "$hardcode_libdir_flag_spec" || \
9566    test -n "$runpath_var" || \
9567    test "X$hardcode_automatic" = "Xyes" ; then
9568
9569   # We can hardcode non-existant directories.
9570   if test "$hardcode_direct" != no &&
9571      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9572      # have to relink, otherwise we might link with an installed library
9573      # when we should be linking with a yet-to-be-installed one
9574      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9575      test "$hardcode_minus_L" != no; then
9576     # Linking always hardcodes the temporary library directory.
9577     hardcode_action=relink
9578   else
9579     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9580     hardcode_action=immediate
9581   fi
9582 else
9583   # We cannot hardcode anything, or else we can only hardcode existing
9584   # directories.
9585   hardcode_action=unsupported
9586 fi
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9588 $as_echo "$hardcode_action" >&6; }
9589
9590 if test "$hardcode_action" = relink; then
9591   # Fast installation is not supported
9592   enable_fast_install=no
9593 elif test "$shlibpath_overrides_runpath" = yes ||
9594      test "$enable_shared" = no; then
9595   # Fast installation is not necessary
9596   enable_fast_install=needless
9597 fi
9598
9599 striplib=
9600 old_striplib=
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9602 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9604   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9605   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9607 $as_echo "yes" >&6; }
9608 else
9609 # FIXME - insert some real tests, host_os isn't really good enough
9610   case $host_os in
9611    darwin*)
9612        if test -n "$STRIP" ; then
9613          striplib="$STRIP -x"
9614          old_striplib="$STRIP -S"
9615          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9616 $as_echo "yes" >&6; }
9617        else
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 fi
9621        ;;
9622    *)
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9625     ;;
9626   esac
9627 fi
9628
9629 if test "x$enable_dlopen" != xyes; then
9630   enable_dlopen=unknown
9631   enable_dlopen_self=unknown
9632   enable_dlopen_self_static=unknown
9633 else
9634   lt_cv_dlopen=no
9635   lt_cv_dlopen_libs=
9636
9637   case $host_os in
9638   beos*)
9639     lt_cv_dlopen="load_add_on"
9640     lt_cv_dlopen_libs=
9641     lt_cv_dlopen_self=yes
9642     ;;
9643
9644   mingw* | pw32*)
9645     lt_cv_dlopen="LoadLibrary"
9646     lt_cv_dlopen_libs=
9647    ;;
9648
9649   cygwin*)
9650     lt_cv_dlopen="dlopen"
9651     lt_cv_dlopen_libs=
9652    ;;
9653
9654   darwin*)
9655   # if libdl is installed we need to link against it
9656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9658 if ${ac_cv_lib_dl_dlopen+:} false; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   ac_check_lib_save_LIBS=$LIBS
9662 LIBS="-ldl  $LIBS"
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h.  */
9665
9666 /* Override any GCC internal prototype to avoid an error.
9667    Use char because int might match the return type of a GCC
9668    builtin and then its argument prototype would still apply.  */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 char dlopen ();
9673 int
9674 main ()
9675 {
9676 return dlopen ();
9677   ;
9678   return 0;
9679 }
9680 _ACEOF
9681 if ac_fn_c_try_link "$LINENO"; then :
9682   ac_cv_lib_dl_dlopen=yes
9683 else
9684   ac_cv_lib_dl_dlopen=no
9685 fi
9686 rm -f core conftest.err conftest.$ac_objext \
9687     conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9689 fi
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9692 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9693   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9694 else
9695
9696     lt_cv_dlopen="dyld"
9697     lt_cv_dlopen_libs=
9698     lt_cv_dlopen_self=yes
9699
9700 fi
9701
9702    ;;
9703
9704   *)
9705     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9706 if test "x$ac_cv_func_shl_load" = xyes; then :
9707   lt_cv_dlopen="shl_load"
9708 else
9709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9710 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9711 if ${ac_cv_lib_dld_shl_load+:} false; then :
9712   $as_echo_n "(cached) " >&6
9713 else
9714   ac_check_lib_save_LIBS=$LIBS
9715 LIBS="-ldld  $LIBS"
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h.  */
9718
9719 /* Override any GCC internal prototype to avoid an error.
9720    Use char because int might match the return type of a GCC
9721    builtin and then its argument prototype would still apply.  */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 char shl_load ();
9726 int
9727 main ()
9728 {
9729 return shl_load ();
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"; then :
9735   ac_cv_lib_dld_shl_load=yes
9736 else
9737   ac_cv_lib_dld_shl_load=no
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext \
9740     conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9745 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9746   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9747 else
9748   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9749 if test "x$ac_cv_func_dlopen" = xyes; then :
9750   lt_cv_dlopen="dlopen"
9751 else
9752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9754 if ${ac_cv_lib_dl_dlopen+:} false; then :
9755   $as_echo_n "(cached) " >&6
9756 else
9757   ac_check_lib_save_LIBS=$LIBS
9758 LIBS="-ldl  $LIBS"
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h.  */
9761
9762 /* Override any GCC internal prototype to avoid an error.
9763    Use char because int might match the return type of a GCC
9764    builtin and then its argument prototype would still apply.  */
9765 #ifdef __cplusplus
9766 extern "C"
9767 #endif
9768 char dlopen ();
9769 int
9770 main ()
9771 {
9772 return dlopen ();
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 if ac_fn_c_try_link "$LINENO"; then :
9778   ac_cv_lib_dl_dlopen=yes
9779 else
9780   ac_cv_lib_dl_dlopen=no
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext \
9783     conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9788 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9789   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9790 else
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9792 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9793 if ${ac_cv_lib_svld_dlopen+:} false; then :
9794   $as_echo_n "(cached) " >&6
9795 else
9796   ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-lsvld  $LIBS"
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h.  */
9800
9801 /* Override any GCC internal prototype to avoid an error.
9802    Use char because int might match the return type of a GCC
9803    builtin and then its argument prototype would still apply.  */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char dlopen ();
9808 int
9809 main ()
9810 {
9811 return dlopen ();
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817   ac_cv_lib_svld_dlopen=yes
9818 else
9819   ac_cv_lib_svld_dlopen=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext \
9822     conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9826 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9827 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9828   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9829 else
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9831 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9832 if ${ac_cv_lib_dld_dld_link+:} false; then :
9833   $as_echo_n "(cached) " >&6
9834 else
9835   ac_check_lib_save_LIBS=$LIBS
9836 LIBS="-ldld  $LIBS"
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h.  */
9839
9840 /* Override any GCC internal prototype to avoid an error.
9841    Use char because int might match the return type of a GCC
9842    builtin and then its argument prototype would still apply.  */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char dld_link ();
9847 int
9848 main ()
9849 {
9850 return dld_link ();
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"; then :
9856   ac_cv_lib_dld_dld_link=yes
9857 else
9858   ac_cv_lib_dld_dld_link=no
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861     conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9865 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9866 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9867   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9868 fi
9869
9870
9871 fi
9872
9873
9874 fi
9875
9876
9877 fi
9878
9879
9880 fi
9881
9882
9883 fi
9884
9885     ;;
9886   esac
9887
9888   if test "x$lt_cv_dlopen" != xno; then
9889     enable_dlopen=yes
9890   else
9891     enable_dlopen=no
9892   fi
9893
9894   case $lt_cv_dlopen in
9895   dlopen)
9896     save_CPPFLAGS="$CPPFLAGS"
9897     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9898
9899     save_LDFLAGS="$LDFLAGS"
9900     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9901
9902     save_LIBS="$LIBS"
9903     LIBS="$lt_cv_dlopen_libs $LIBS"
9904
9905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9906 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9907 if ${lt_cv_dlopen_self+:} false; then :
9908   $as_echo_n "(cached) " >&6
9909 else
9910           if test "$cross_compiling" = yes; then :
9911   lt_cv_dlopen_self=cross
9912 else
9913   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9914   lt_status=$lt_dlunknown
9915   cat > conftest.$ac_ext <<EOF
9916 #line 9916 "configure"
9917 #include "confdefs.h"
9918
9919 #if HAVE_DLFCN_H
9920 #include <dlfcn.h>
9921 #endif
9922
9923 #include <stdio.h>
9924
9925 #ifdef RTLD_GLOBAL
9926 #  define LT_DLGLOBAL           RTLD_GLOBAL
9927 #else
9928 #  ifdef DL_GLOBAL
9929 #    define LT_DLGLOBAL         DL_GLOBAL
9930 #  else
9931 #    define LT_DLGLOBAL         0
9932 #  endif
9933 #endif
9934
9935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9936    find out it does not work in some platform. */
9937 #ifndef LT_DLLAZY_OR_NOW
9938 #  ifdef RTLD_LAZY
9939 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9940 #  else
9941 #    ifdef DL_LAZY
9942 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9943 #    else
9944 #      ifdef RTLD_NOW
9945 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9946 #      else
9947 #        ifdef DL_NOW
9948 #          define LT_DLLAZY_OR_NOW      DL_NOW
9949 #        else
9950 #          define LT_DLLAZY_OR_NOW      0
9951 #        endif
9952 #      endif
9953 #    endif
9954 #  endif
9955 #endif
9956
9957 #ifdef __cplusplus
9958 extern "C" void exit (int);
9959 #endif
9960
9961 void fnord() { int i=42;}
9962 int main ()
9963 {
9964   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9965   int status = $lt_dlunknown;
9966
9967   if (self)
9968     {
9969       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9970       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9971       /* dlclose (self); */
9972     }
9973   else
9974     puts (dlerror ());
9975
9976     exit (status);
9977 }
9978 EOF
9979   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9980   (eval $ac_link) 2>&5
9981   ac_status=$?
9982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9983   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9984     (./conftest; exit; ) >&5 2>/dev/null
9985     lt_status=$?
9986     case x$lt_status in
9987       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9988       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9989       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9990     esac
9991   else :
9992     # compilation failed
9993     lt_cv_dlopen_self=no
9994   fi
9995 fi
9996 rm -fr conftest*
9997
9998
9999 fi
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10001 $as_echo "$lt_cv_dlopen_self" >&6; }
10002
10003     if test "x$lt_cv_dlopen_self" = xyes; then
10004       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10005       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10006 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10007 if ${lt_cv_dlopen_self_static+:} false; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010           if test "$cross_compiling" = yes; then :
10011   lt_cv_dlopen_self_static=cross
10012 else
10013   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10014   lt_status=$lt_dlunknown
10015   cat > conftest.$ac_ext <<EOF
10016 #line 10016 "configure"
10017 #include "confdefs.h"
10018
10019 #if HAVE_DLFCN_H
10020 #include <dlfcn.h>
10021 #endif
10022
10023 #include <stdio.h>
10024
10025 #ifdef RTLD_GLOBAL
10026 #  define LT_DLGLOBAL           RTLD_GLOBAL
10027 #else
10028 #  ifdef DL_GLOBAL
10029 #    define LT_DLGLOBAL         DL_GLOBAL
10030 #  else
10031 #    define LT_DLGLOBAL         0
10032 #  endif
10033 #endif
10034
10035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10036    find out it does not work in some platform. */
10037 #ifndef LT_DLLAZY_OR_NOW
10038 #  ifdef RTLD_LAZY
10039 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10040 #  else
10041 #    ifdef DL_LAZY
10042 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10043 #    else
10044 #      ifdef RTLD_NOW
10045 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10046 #      else
10047 #        ifdef DL_NOW
10048 #          define LT_DLLAZY_OR_NOW      DL_NOW
10049 #        else
10050 #          define LT_DLLAZY_OR_NOW      0
10051 #        endif
10052 #      endif
10053 #    endif
10054 #  endif
10055 #endif
10056
10057 #ifdef __cplusplus
10058 extern "C" void exit (int);
10059 #endif
10060
10061 void fnord() { int i=42;}
10062 int main ()
10063 {
10064   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10065   int status = $lt_dlunknown;
10066
10067   if (self)
10068     {
10069       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10070       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10071       /* dlclose (self); */
10072     }
10073   else
10074     puts (dlerror ());
10075
10076     exit (status);
10077 }
10078 EOF
10079   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10080   (eval $ac_link) 2>&5
10081   ac_status=$?
10082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10084     (./conftest; exit; ) >&5 2>/dev/null
10085     lt_status=$?
10086     case x$lt_status in
10087       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10088       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10089       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10090     esac
10091   else :
10092     # compilation failed
10093     lt_cv_dlopen_self_static=no
10094   fi
10095 fi
10096 rm -fr conftest*
10097
10098
10099 fi
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10101 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10102     fi
10103
10104     CPPFLAGS="$save_CPPFLAGS"
10105     LDFLAGS="$save_LDFLAGS"
10106     LIBS="$save_LIBS"
10107     ;;
10108   esac
10109
10110   case $lt_cv_dlopen_self in
10111   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10112   *) enable_dlopen_self=unknown ;;
10113   esac
10114
10115   case $lt_cv_dlopen_self_static in
10116   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10117   *) enable_dlopen_self_static=unknown ;;
10118   esac
10119 fi
10120
10121
10122 # Report which library types will actually be built
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10124 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10126 $as_echo "$can_build_shared" >&6; }
10127
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10129 $as_echo_n "checking whether to build shared libraries... " >&6; }
10130 test "$can_build_shared" = "no" && enable_shared=no
10131
10132 # On AIX, shared libraries and static libraries use the same namespace, and
10133 # are all built from PIC.
10134 case $host_os in
10135 aix3*)
10136   test "$enable_shared" = yes && enable_static=no
10137   if test -n "$RANLIB"; then
10138     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10139     postinstall_cmds='$RANLIB $lib'
10140   fi
10141   ;;
10142
10143 aix[4-9]*)
10144   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10145     test "$enable_shared" = yes && enable_static=no
10146   fi
10147     ;;
10148 esac
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10150 $as_echo "$enable_shared" >&6; }
10151
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10153 $as_echo_n "checking whether to build static libraries... " >&6; }
10154 # Make sure either enable_shared or enable_static is yes.
10155 test "$enable_shared" = yes || enable_static=yes
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10157 $as_echo "$enable_static" >&6; }
10158
10159 # The else clause should only fire when bootstrapping the
10160 # libtool distribution, otherwise you forgot to ship ltmain.sh
10161 # with your package, and you will get complaints that there are
10162 # no rules to generate ltmain.sh.
10163 if test -f "$ltmain"; then
10164   # See if we are running on zsh, and set the options which allow our commands through
10165   # without removal of \ escapes.
10166   if test -n "${ZSH_VERSION+set}" ; then
10167     setopt NO_GLOB_SUBST
10168   fi
10169   # Now quote all the things that may contain metacharacters while being
10170   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10171   # variables and quote the copies for generation of the libtool script.
10172   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10173     SED SHELL STRIP \
10174     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10175     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10176     deplibs_check_method reload_flag reload_cmds need_locks \
10177     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10178     lt_cv_sys_global_symbol_to_c_name_address \
10179     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10180     old_postinstall_cmds old_postuninstall_cmds \
10181     compiler \
10182     CC \
10183     LD \
10184     lt_prog_compiler_wl \
10185     lt_prog_compiler_pic \
10186     lt_prog_compiler_static \
10187     lt_prog_compiler_no_builtin_flag \
10188     export_dynamic_flag_spec \
10189     thread_safe_flag_spec \
10190     whole_archive_flag_spec \
10191     enable_shared_with_static_runtimes \
10192     old_archive_cmds \
10193     old_archive_from_new_cmds \
10194     predep_objects \
10195     postdep_objects \
10196     predeps \
10197     postdeps \
10198     compiler_lib_search_path \
10199     compiler_lib_search_dirs \
10200     archive_cmds \
10201     archive_expsym_cmds \
10202     postinstall_cmds \
10203     postuninstall_cmds \
10204     old_archive_from_expsyms_cmds \
10205     allow_undefined_flag \
10206     no_undefined_flag \
10207     export_symbols_cmds \
10208     hardcode_libdir_flag_spec \
10209     hardcode_libdir_flag_spec_ld \
10210     hardcode_libdir_separator \
10211     hardcode_automatic \
10212     module_cmds \
10213     module_expsym_cmds \
10214     lt_cv_prog_compiler_c_o \
10215     fix_srcfile_path \
10216     exclude_expsyms \
10217     include_expsyms; do
10218
10219     case $var in
10220     old_archive_cmds | \
10221     old_archive_from_new_cmds | \
10222     archive_cmds | \
10223     archive_expsym_cmds | \
10224     module_cmds | \
10225     module_expsym_cmds | \
10226     old_archive_from_expsyms_cmds | \
10227     export_symbols_cmds | \
10228     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10229     postinstall_cmds | postuninstall_cmds | \
10230     old_postinstall_cmds | old_postuninstall_cmds | \
10231     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10232       # Double-quote double-evaled strings.
10233       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10234       ;;
10235     *)
10236       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10237       ;;
10238     esac
10239   done
10240
10241   case $lt_echo in
10242   *'\$0 --fallback-echo"')
10243     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10244     ;;
10245   esac
10246
10247 cfgfile="${ofile}T"
10248   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10249   $rm -f "$cfgfile"
10250   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10251 $as_echo "$as_me: creating $ofile" >&6;}
10252
10253   cat <<__EOF__ >> "$cfgfile"
10254 #! $SHELL
10255
10256 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10257 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10259 #
10260 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10261 # Free Software Foundation, Inc.
10262 #
10263 # This file is part of GNU Libtool:
10264 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10265 #
10266 # This program is free software; you can redistribute it and/or modify
10267 # it under the terms of the GNU General Public License as published by
10268 # the Free Software Foundation; either version 2 of the License, or
10269 # (at your option) any later version.
10270 #
10271 # This program is distributed in the hope that it will be useful, but
10272 # WITHOUT ANY WARRANTY; without even the implied warranty of
10273 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10274 # General Public License for more details.
10275 #
10276 # You should have received a copy of the GNU General Public License
10277 # along with this program; if not, write to the Free Software
10278 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10279 #
10280 # As a special exception to the GNU General Public License, if you
10281 # distribute this file as part of a program that contains a
10282 # configuration script generated by Autoconf, you may include it under
10283 # the same distribution terms that you use for the rest of that program.
10284
10285 # A sed program that does not truncate output.
10286 SED=$lt_SED
10287
10288 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10289 Xsed="$SED -e 1s/^X//"
10290
10291 # The HP-UX ksh and POSIX shell print the target directory to stdout
10292 # if CDPATH is set.
10293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10294
10295 # The names of the tagged configurations supported by this script.
10296 available_tags=
10297
10298 # ### BEGIN LIBTOOL CONFIG
10299
10300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10301
10302 # Shell to use when invoking shell scripts.
10303 SHELL=$lt_SHELL
10304
10305 # Whether or not to build shared libraries.
10306 build_libtool_libs=$enable_shared
10307
10308 # Whether or not to build static libraries.
10309 build_old_libs=$enable_static
10310
10311 # Whether or not to add -lc for building shared libraries.
10312 build_libtool_need_lc=$archive_cmds_need_lc
10313
10314 # Whether or not to disallow shared libs when runtime libs are static
10315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10316
10317 # Whether or not to optimize for fast installation.
10318 fast_install=$enable_fast_install
10319
10320 # The host system.
10321 host_alias=$host_alias
10322 host=$host
10323 host_os=$host_os
10324
10325 # The build system.
10326 build_alias=$build_alias
10327 build=$build
10328 build_os=$build_os
10329
10330 # An echo program that does not interpret backslashes.
10331 echo=$lt_echo
10332
10333 # The archiver.
10334 AR=$lt_AR
10335 AR_FLAGS=$lt_AR_FLAGS
10336
10337 # A C compiler.
10338 LTCC=$lt_LTCC
10339
10340 # LTCC compiler flags.
10341 LTCFLAGS=$lt_LTCFLAGS
10342
10343 # A language-specific compiler.
10344 CC=$lt_compiler
10345
10346 # Is the compiler the GNU C compiler?
10347 with_gcc=$GCC
10348
10349 # An ERE matcher.
10350 EGREP=$lt_EGREP
10351
10352 # The linker used to build libraries.
10353 LD=$lt_LD
10354
10355 # Whether we need hard or soft links.
10356 LN_S=$lt_LN_S
10357
10358 # A BSD-compatible nm program.
10359 NM=$lt_NM
10360
10361 # A symbol stripping program
10362 STRIP=$lt_STRIP
10363
10364 # Used to examine libraries when file_magic_cmd begins "file"
10365 MAGIC_CMD=$MAGIC_CMD
10366
10367 # Used on cygwin: DLL creation program.
10368 DLLTOOL="$DLLTOOL"
10369
10370 # Used on cygwin: object dumper.
10371 OBJDUMP="$OBJDUMP"
10372
10373 # Used on cygwin: assembler.
10374 AS="$AS"
10375
10376 # The name of the directory that contains temporary libtool files.
10377 objdir=$objdir
10378
10379 # How to create reloadable object files.
10380 reload_flag=$lt_reload_flag
10381 reload_cmds=$lt_reload_cmds
10382
10383 # How to pass a linker flag through the compiler.
10384 wl=$lt_lt_prog_compiler_wl
10385
10386 # Object file suffix (normally "o").
10387 objext="$ac_objext"
10388
10389 # Old archive suffix (normally "a").
10390 libext="$libext"
10391
10392 # Shared library suffix (normally ".so").
10393 shrext_cmds='$shrext_cmds'
10394
10395 # Executable file suffix (normally "").
10396 exeext="$exeext"
10397
10398 # Additional compiler flags for building library objects.
10399 pic_flag=$lt_lt_prog_compiler_pic
10400 pic_mode=$pic_mode
10401
10402 # What is the maximum length of a command?
10403 max_cmd_len=$lt_cv_sys_max_cmd_len
10404
10405 # Does compiler simultaneously support -c and -o options?
10406 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10407
10408 # Must we lock files when doing compilation?
10409 need_locks=$lt_need_locks
10410
10411 # Do we need the lib prefix for modules?
10412 need_lib_prefix=$need_lib_prefix
10413
10414 # Do we need a version for libraries?
10415 need_version=$need_version
10416
10417 # Whether dlopen is supported.
10418 dlopen_support=$enable_dlopen
10419
10420 # Whether dlopen of programs is supported.
10421 dlopen_self=$enable_dlopen_self
10422
10423 # Whether dlopen of statically linked programs is supported.
10424 dlopen_self_static=$enable_dlopen_self_static
10425
10426 # Compiler flag to prevent dynamic linking.
10427 link_static_flag=$lt_lt_prog_compiler_static
10428
10429 # Compiler flag to turn off builtin functions.
10430 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10431
10432 # Compiler flag to allow reflexive dlopens.
10433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10434
10435 # Compiler flag to generate shared objects directly from archives.
10436 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10437
10438 # Compiler flag to generate thread-safe objects.
10439 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10440
10441 # Library versioning type.
10442 version_type=$version_type
10443
10444 # Format of library name prefix.
10445 libname_spec=$lt_libname_spec
10446
10447 # List of archive names.  First name is the real one, the rest are links.
10448 # The last name is the one that the linker finds with -lNAME.
10449 library_names_spec=$lt_library_names_spec
10450
10451 # The coded name of the library, if different from the real name.
10452 soname_spec=$lt_soname_spec
10453
10454 # Commands used to build and install an old-style archive.
10455 RANLIB=$lt_RANLIB
10456 old_archive_cmds=$lt_old_archive_cmds
10457 old_postinstall_cmds=$lt_old_postinstall_cmds
10458 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10459
10460 # Create an old-style archive from a shared archive.
10461 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10462
10463 # Create a temporary old-style archive to link instead of a shared archive.
10464 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10465
10466 # Commands used to build and install a shared archive.
10467 archive_cmds=$lt_archive_cmds
10468 archive_expsym_cmds=$lt_archive_expsym_cmds
10469 postinstall_cmds=$lt_postinstall_cmds
10470 postuninstall_cmds=$lt_postuninstall_cmds
10471
10472 # Commands used to build a loadable module (assumed same as above if empty)
10473 module_cmds=$lt_module_cmds
10474 module_expsym_cmds=$lt_module_expsym_cmds
10475
10476 # Commands to strip libraries.
10477 old_striplib=$lt_old_striplib
10478 striplib=$lt_striplib
10479
10480 # Dependencies to place before the objects being linked to create a
10481 # shared library.
10482 predep_objects=$lt_predep_objects
10483
10484 # Dependencies to place after the objects being linked to create a
10485 # shared library.
10486 postdep_objects=$lt_postdep_objects
10487
10488 # Dependencies to place before the objects being linked to create a
10489 # shared library.
10490 predeps=$lt_predeps
10491
10492 # Dependencies to place after the objects being linked to create a
10493 # shared library.
10494 postdeps=$lt_postdeps
10495
10496 # The directories searched by this compiler when creating a shared
10497 # library
10498 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10499
10500 # The library search path used internally by the compiler when linking
10501 # a shared library.
10502 compiler_lib_search_path=$lt_compiler_lib_search_path
10503
10504 # Method to check whether dependent libraries are shared objects.
10505 deplibs_check_method=$lt_deplibs_check_method
10506
10507 # Command to use when deplibs_check_method == file_magic.
10508 file_magic_cmd=$lt_file_magic_cmd
10509
10510 # Flag that allows shared libraries with undefined symbols to be built.
10511 allow_undefined_flag=$lt_allow_undefined_flag
10512
10513 # Flag that forces no undefined symbols.
10514 no_undefined_flag=$lt_no_undefined_flag
10515
10516 # Commands used to finish a libtool library installation in a directory.
10517 finish_cmds=$lt_finish_cmds
10518
10519 # Same as above, but a single script fragment to be evaled but not shown.
10520 finish_eval=$lt_finish_eval
10521
10522 # Take the output of nm and produce a listing of raw symbols and C names.
10523 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10524
10525 # Transform the output of nm in a proper C declaration
10526 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10527
10528 # Transform the output of nm in a C name address pair
10529 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10530
10531 # This is the shared library runtime path variable.
10532 runpath_var=$runpath_var
10533
10534 # This is the shared library path variable.
10535 shlibpath_var=$shlibpath_var
10536
10537 # Is shlibpath searched before the hard-coded library search path?
10538 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10539
10540 # How to hardcode a shared library path into an executable.
10541 hardcode_action=$hardcode_action
10542
10543 # Whether we should hardcode library paths into libraries.
10544 hardcode_into_libs=$hardcode_into_libs
10545
10546 # Flag to hardcode \$libdir into a binary during linking.
10547 # This must work even if \$libdir does not exist.
10548 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10549
10550 # If ld is used when linking, flag to hardcode \$libdir into
10551 # a binary during linking. This must work even if \$libdir does
10552 # not exist.
10553 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10554
10555 # Whether we need a single -rpath flag with a separated argument.
10556 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10557
10558 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10559 # resulting binary.
10560 hardcode_direct=$hardcode_direct
10561
10562 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10563 # resulting binary.
10564 hardcode_minus_L=$hardcode_minus_L
10565
10566 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10567 # the resulting binary.
10568 hardcode_shlibpath_var=$hardcode_shlibpath_var
10569
10570 # Set to yes if building a shared library automatically hardcodes DIR into the library
10571 # and all subsequent libraries and executables linked against it.
10572 hardcode_automatic=$hardcode_automatic
10573
10574 # Variables whose values should be saved in libtool wrapper scripts and
10575 # restored at relink time.
10576 variables_saved_for_relink="$variables_saved_for_relink"
10577
10578 # Whether libtool must link a program against all its dependency libraries.
10579 link_all_deplibs=$link_all_deplibs
10580
10581 # Compile-time system search path for libraries
10582 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10583
10584 # Run-time system search path for libraries
10585 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10586
10587 # Fix the shell variable \$srcfile for the compiler.
10588 fix_srcfile_path=$lt_fix_srcfile_path
10589
10590 # Set to yes if exported symbols are required.
10591 always_export_symbols=$always_export_symbols
10592
10593 # The commands to list exported symbols.
10594 export_symbols_cmds=$lt_export_symbols_cmds
10595
10596 # The commands to extract the exported symbol list from a shared archive.
10597 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10598
10599 # Symbols that should not be listed in the preloaded symbols.
10600 exclude_expsyms=$lt_exclude_expsyms
10601
10602 # Symbols that must always be exported.
10603 include_expsyms=$lt_include_expsyms
10604
10605 # ### END LIBTOOL CONFIG
10606
10607 __EOF__
10608
10609
10610   case $host_os in
10611   aix3*)
10612     cat <<\EOF >> "$cfgfile"
10613
10614 # AIX sometimes has problems with the GCC collect2 program.  For some
10615 # reason, if we set the COLLECT_NAMES environment variable, the problems
10616 # vanish in a puff of smoke.
10617 if test "X${COLLECT_NAMES+set}" != Xset; then
10618   COLLECT_NAMES=
10619   export COLLECT_NAMES
10620 fi
10621 EOF
10622     ;;
10623   esac
10624
10625   # We use sed instead of cat because bash on DJGPP gets confused if
10626   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10627   # text mode, it properly converts lines to CR/LF.  This bash problem
10628   # is reportedly fixed, but why not run on old versions too?
10629   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10630
10631   mv -f "$cfgfile" "$ofile" || \
10632     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10633   chmod +x "$ofile"
10634
10635 else
10636   # If there is no Makefile yet, we rely on a make rule to execute
10637   # `config.status --recheck' to rerun these tests and create the
10638   # libtool script then.
10639   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10640   if test -f "$ltmain_in"; then
10641     test -f Makefile && make "$ltmain"
10642   fi
10643 fi
10644
10645
10646 ac_ext=c
10647 ac_cpp='$CPP $CPPFLAGS'
10648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10651
10652 CC="$lt_save_CC"
10653
10654
10655 # Check whether --with-tags was given.
10656 if test "${with_tags+set}" = set; then :
10657   withval=$with_tags; tagnames="$withval"
10658 fi
10659
10660
10661 if test -f "$ltmain" && test -n "$tagnames"; then
10662   if test ! -f "${ofile}"; then
10663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10664 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10665   fi
10666
10667   if test -z "$LTCC"; then
10668     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10669     if test -z "$LTCC"; then
10670       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10671 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10672     else
10673       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10674 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10675     fi
10676   fi
10677   if test -z "$LTCFLAGS"; then
10678     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10679   fi
10680
10681   # Extract list of available tagged configurations in $ofile.
10682   # Note that this assumes the entire list is on one line.
10683   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10684
10685   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10686   for tagname in $tagnames; do
10687     IFS="$lt_save_ifs"
10688     # Check whether tagname contains only valid characters
10689     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10690     "") ;;
10691     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10692         ;;
10693     esac
10694
10695     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10696     then
10697       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10698     fi
10699
10700     # Update the list of available tags.
10701     if test -n "$tagname"; then
10702       echo appending configuration tag \"$tagname\" to $ofile
10703
10704       case $tagname in
10705       CXX)
10706         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10707             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10708             (test "X$CXX" != "Xg++"))) ; then
10709           ac_ext=cpp
10710 ac_cpp='$CXXCPP $CPPFLAGS'
10711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10714
10715
10716
10717
10718 archive_cmds_need_lc_CXX=no
10719 allow_undefined_flag_CXX=
10720 always_export_symbols_CXX=no
10721 archive_expsym_cmds_CXX=
10722 export_dynamic_flag_spec_CXX=
10723 hardcode_direct_CXX=no
10724 hardcode_libdir_flag_spec_CXX=
10725 hardcode_libdir_flag_spec_ld_CXX=
10726 hardcode_libdir_separator_CXX=
10727 hardcode_minus_L_CXX=no
10728 hardcode_shlibpath_var_CXX=unsupported
10729 hardcode_automatic_CXX=no
10730 module_cmds_CXX=
10731 module_expsym_cmds_CXX=
10732 link_all_deplibs_CXX=unknown
10733 old_archive_cmds_CXX=$old_archive_cmds
10734 no_undefined_flag_CXX=
10735 whole_archive_flag_spec_CXX=
10736 enable_shared_with_static_runtimes_CXX=no
10737
10738 # Dependencies to place before and after the object being linked:
10739 predep_objects_CXX=
10740 postdep_objects_CXX=
10741 predeps_CXX=
10742 postdeps_CXX=
10743 compiler_lib_search_path_CXX=
10744 compiler_lib_search_dirs_CXX=
10745
10746 # Source file extension for C++ test sources.
10747 ac_ext=cpp
10748
10749 # Object file extension for compiled C++ test sources.
10750 objext=o
10751 objext_CXX=$objext
10752
10753 # Code to be used in simple compile tests
10754 lt_simple_compile_test_code="int some_variable = 0;"
10755
10756 # Code to be used in simple link tests
10757 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10758
10759 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10760
10761 # If no C compiler was specified, use CC.
10762 LTCC=${LTCC-"$CC"}
10763
10764 # If no C compiler flags were specified, use CFLAGS.
10765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10766
10767 # Allow CC to be a program name with arguments.
10768 compiler=$CC
10769
10770
10771 # save warnings/boilerplate of simple test code
10772 ac_outfile=conftest.$ac_objext
10773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10775 _lt_compiler_boilerplate=`cat conftest.err`
10776 $rm conftest*
10777
10778 ac_outfile=conftest.$ac_objext
10779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10781 _lt_linker_boilerplate=`cat conftest.err`
10782 $rm -r conftest*
10783
10784
10785 # Allow CC to be a program name with arguments.
10786 lt_save_CC=$CC
10787 lt_save_LD=$LD
10788 lt_save_GCC=$GCC
10789 GCC=$GXX
10790 lt_save_with_gnu_ld=$with_gnu_ld
10791 lt_save_path_LD=$lt_cv_path_LD
10792 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10793   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10794 else
10795   $as_unset lt_cv_prog_gnu_ld
10796 fi
10797 if test -n "${lt_cv_path_LDCXX+set}"; then
10798   lt_cv_path_LD=$lt_cv_path_LDCXX
10799 else
10800   $as_unset lt_cv_path_LD
10801 fi
10802 test -z "${LDCXX+set}" || LD=$LDCXX
10803 CC=${CXX-"c++"}
10804 compiler=$CC
10805 compiler_CXX=$CC
10806 for cc_temp in $compiler""; do
10807   case $cc_temp in
10808     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10809     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10810     \-*) ;;
10811     *) break;;
10812   esac
10813 done
10814 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10815
10816
10817 # We don't want -fno-exception wen compiling C++ code, so set the
10818 # no_builtin_flag separately
10819 if test "$GXX" = yes; then
10820   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10821 else
10822   lt_prog_compiler_no_builtin_flag_CXX=
10823 fi
10824
10825 if test "$GXX" = yes; then
10826   # Set up default GNU C++ configuration
10827
10828
10829 # Check whether --with-gnu-ld was given.
10830 if test "${with_gnu_ld+set}" = set; then :
10831   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10832 else
10833   with_gnu_ld=no
10834 fi
10835
10836 ac_prog=ld
10837 if test "$GCC" = yes; then
10838   # Check if gcc -print-prog-name=ld gives a path.
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10840 $as_echo_n "checking for ld used by $CC... " >&6; }
10841   case $host in
10842   *-*-mingw*)
10843     # gcc leaves a trailing carriage return which upsets mingw
10844     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10845   *)
10846     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10847   esac
10848   case $ac_prog in
10849     # Accept absolute paths.
10850     [\\/]* | ?:[\\/]*)
10851       re_direlt='/[^/][^/]*/\.\./'
10852       # Canonicalize the pathname of ld
10853       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10854       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10855         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10856       done
10857       test -z "$LD" && LD="$ac_prog"
10858       ;;
10859   "")
10860     # If it fails, then pretend we aren't using GCC.
10861     ac_prog=ld
10862     ;;
10863   *)
10864     # If it is relative, then search for the first ld in PATH.
10865     with_gnu_ld=unknown
10866     ;;
10867   esac
10868 elif test "$with_gnu_ld" = yes; then
10869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10870 $as_echo_n "checking for GNU ld... " >&6; }
10871 else
10872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10873 $as_echo_n "checking for non-GNU ld... " >&6; }
10874 fi
10875 if ${lt_cv_path_LD+:} false; then :
10876   $as_echo_n "(cached) " >&6
10877 else
10878   if test -z "$LD"; then
10879   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10880   for ac_dir in $PATH; do
10881     IFS="$lt_save_ifs"
10882     test -z "$ac_dir" && ac_dir=.
10883     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10884       lt_cv_path_LD="$ac_dir/$ac_prog"
10885       # Check to see if the program is GNU ld.  I'd rather use --version,
10886       # but apparently some variants of GNU ld only accept -v.
10887       # Break only if it was the GNU/non-GNU ld that we prefer.
10888       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10889       *GNU* | *'with BFD'*)
10890         test "$with_gnu_ld" != no && break
10891         ;;
10892       *)
10893         test "$with_gnu_ld" != yes && break
10894         ;;
10895       esac
10896     fi
10897   done
10898   IFS="$lt_save_ifs"
10899 else
10900   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10901 fi
10902 fi
10903
10904 LD="$lt_cv_path_LD"
10905 if test -n "$LD"; then
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10907 $as_echo "$LD" >&6; }
10908 else
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 fi
10912 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10914 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10915 if ${lt_cv_prog_gnu_ld+:} false; then :
10916   $as_echo_n "(cached) " >&6
10917 else
10918   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10919 case `$LD -v 2>&1 </dev/null` in
10920 *GNU* | *'with BFD'*)
10921   lt_cv_prog_gnu_ld=yes
10922   ;;
10923 *)
10924   lt_cv_prog_gnu_ld=no
10925   ;;
10926 esac
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10929 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10930 with_gnu_ld=$lt_cv_prog_gnu_ld
10931
10932
10933
10934   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10935   # archiving commands below assume that GNU ld is being used.
10936   if test "$with_gnu_ld" = yes; then
10937     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10938     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10939
10940     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10941     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10942
10943     # If archive_cmds runs LD, not CC, wlarc should be empty
10944     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10945     #     investigate it a little bit more. (MM)
10946     wlarc='${wl}'
10947
10948     # ancient GNU ld didn't support --whole-archive et. al.
10949     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10950         grep 'no-whole-archive' > /dev/null; then
10951       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10952     else
10953       whole_archive_flag_spec_CXX=
10954     fi
10955   else
10956     with_gnu_ld=no
10957     wlarc=
10958
10959     # A generic and very simple default shared library creation
10960     # command for GNU C++ for the case where it uses the native
10961     # linker, instead of GNU ld.  If possible, this setting should
10962     # overridden to take advantage of the native linker features on
10963     # the platform it is being used on.
10964     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10965   fi
10966
10967   # Commands to make compiler produce verbose output that lists
10968   # what "hidden" libraries, object files and flags are used when
10969   # linking a shared library.
10970   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10971
10972 else
10973   GXX=no
10974   with_gnu_ld=no
10975   wlarc=
10976 fi
10977
10978 # PORTME: fill in a description of your system's C++ link characteristics
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10980 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10981 ld_shlibs_CXX=yes
10982 case $host_os in
10983   aix3*)
10984     # FIXME: insert proper C++ library support
10985     ld_shlibs_CXX=no
10986     ;;
10987   aix[4-9]*)
10988     if test "$host_cpu" = ia64; then
10989       # On IA64, the linker does run time linking by default, so we don't
10990       # have to do anything special.
10991       aix_use_runtimelinking=no
10992       exp_sym_flag='-Bexport'
10993       no_entry_flag=""
10994     else
10995       aix_use_runtimelinking=no
10996
10997       # Test if we are trying to use run time linking or normal
10998       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10999       # need to do runtime linking.
11000       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11001         for ld_flag in $LDFLAGS; do
11002           case $ld_flag in
11003           *-brtl*)
11004             aix_use_runtimelinking=yes
11005             break
11006             ;;
11007           esac
11008         done
11009         ;;
11010       esac
11011
11012       exp_sym_flag='-bexport'
11013       no_entry_flag='-bnoentry'
11014     fi
11015
11016     # When large executables or shared objects are built, AIX ld can
11017     # have problems creating the table of contents.  If linking a library
11018     # or program results in "error TOC overflow" add -mminimal-toc to
11019     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11020     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11021
11022     archive_cmds_CXX=''
11023     hardcode_direct_CXX=yes
11024     hardcode_libdir_separator_CXX=':'
11025     link_all_deplibs_CXX=yes
11026
11027     if test "$GXX" = yes; then
11028       case $host_os in aix4.[012]|aix4.[012].*)
11029       # We only want to do this on AIX 4.2 and lower, the check
11030       # below for broken collect2 doesn't work under 4.3+
11031         collect2name=`${CC} -print-prog-name=collect2`
11032         if test -f "$collect2name" && \
11033            strings "$collect2name" | grep resolve_lib_name >/dev/null
11034         then
11035           # We have reworked collect2
11036           :
11037         else
11038           # We have old collect2
11039           hardcode_direct_CXX=unsupported
11040           # It fails to find uninstalled libraries when the uninstalled
11041           # path is not listed in the libpath.  Setting hardcode_minus_L
11042           # to unsupported forces relinking
11043           hardcode_minus_L_CXX=yes
11044           hardcode_libdir_flag_spec_CXX='-L$libdir'
11045           hardcode_libdir_separator_CXX=
11046         fi
11047         ;;
11048       esac
11049       shared_flag='-shared'
11050       if test "$aix_use_runtimelinking" = yes; then
11051         shared_flag="$shared_flag "'${wl}-G'
11052       fi
11053     else
11054       # not using gcc
11055       if test "$host_cpu" = ia64; then
11056         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11057         # chokes on -Wl,-G. The following line is correct:
11058         shared_flag='-G'
11059       else
11060         if test "$aix_use_runtimelinking" = yes; then
11061           shared_flag='${wl}-G'
11062         else
11063           shared_flag='${wl}-bM:SRE'
11064         fi
11065       fi
11066     fi
11067
11068     # It seems that -bexpall does not export symbols beginning with
11069     # underscore (_), so it is better to generate a list of symbols to export.
11070     always_export_symbols_CXX=yes
11071     if test "$aix_use_runtimelinking" = yes; then
11072       # Warning - without using the other runtime loading flags (-brtl),
11073       # -berok will link without error, but may produce a broken library.
11074       allow_undefined_flag_CXX='-berok'
11075       # Determine the default libpath from the value encoded in an empty executable.
11076       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h.  */
11078
11079 int
11080 main ()
11081 {
11082
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_cxx_try_link "$LINENO"; then :
11088
11089 lt_aix_libpath_sed='
11090     /Import File Strings/,/^$/ {
11091         /^0/ {
11092             s/^0  *\(.*\)$/\1/
11093             p
11094         }
11095     }'
11096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11097 # Check for a 64-bit object if we didn't find anything.
11098 if test -z "$aix_libpath"; then
11099   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11100 fi
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext \
11103     conftest$ac_exeext conftest.$ac_ext
11104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11105
11106       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11107
11108       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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11109      else
11110       if test "$host_cpu" = ia64; then
11111         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11112         allow_undefined_flag_CXX="-z nodefs"
11113         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"
11114       else
11115         # Determine the default libpath from the value encoded in an empty executable.
11116         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h.  */
11118
11119 int
11120 main ()
11121 {
11122
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 if ac_fn_cxx_try_link "$LINENO"; then :
11128
11129 lt_aix_libpath_sed='
11130     /Import File Strings/,/^$/ {
11131         /^0/ {
11132             s/^0  *\(.*\)$/\1/
11133             p
11134         }
11135     }'
11136 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11137 # Check for a 64-bit object if we didn't find anything.
11138 if test -z "$aix_libpath"; then
11139   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11140 fi
11141 fi
11142 rm -f core conftest.err conftest.$ac_objext \
11143     conftest$ac_exeext conftest.$ac_ext
11144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11145
11146         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11147         # Warning - without using the other run time loading flags,
11148         # -berok will link without error, but may produce a broken library.
11149         no_undefined_flag_CXX=' ${wl}-bernotok'
11150         allow_undefined_flag_CXX=' ${wl}-berok'
11151         # Exported symbols can be pulled into shared objects from archives
11152         whole_archive_flag_spec_CXX='$convenience'
11153         archive_cmds_need_lc_CXX=yes
11154         # This is similar to how AIX traditionally builds its shared libraries.
11155         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'
11156       fi
11157     fi
11158     ;;
11159
11160   beos*)
11161     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11162       allow_undefined_flag_CXX=unsupported
11163       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11164       # support --undefined.  This deserves some investigation.  FIXME
11165       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11166     else
11167       ld_shlibs_CXX=no
11168     fi
11169     ;;
11170
11171   chorus*)
11172     case $cc_basename in
11173       *)
11174         # FIXME: insert proper C++ library support
11175         ld_shlibs_CXX=no
11176         ;;
11177     esac
11178     ;;
11179
11180   cygwin* | mingw* | pw32*)
11181     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11182     # as there is no search path for DLLs.
11183     hardcode_libdir_flag_spec_CXX='-L$libdir'
11184     allow_undefined_flag_CXX=unsupported
11185     always_export_symbols_CXX=no
11186     enable_shared_with_static_runtimes_CXX=yes
11187
11188     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11189       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'
11190       # If the export-symbols file already is a .def file (1st line
11191       # is EXPORTS), use it as is; otherwise, prepend...
11192       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11193         cp $export_symbols $output_objdir/$soname.def;
11194       else
11195         echo EXPORTS > $output_objdir/$soname.def;
11196         cat $export_symbols >> $output_objdir/$soname.def;
11197       fi~
11198       $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'
11199     else
11200       ld_shlibs_CXX=no
11201     fi
11202   ;;
11203       darwin* | rhapsody*)
11204       archive_cmds_need_lc_CXX=no
11205       hardcode_direct_CXX=no
11206       hardcode_automatic_CXX=yes
11207       hardcode_shlibpath_var_CXX=unsupported
11208       whole_archive_flag_spec_CXX=''
11209       link_all_deplibs_CXX=yes
11210       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11211       if test "$GXX" = yes ; then
11212       output_verbose_link_cmd='echo'
11213       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}"
11214       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11215       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}"
11216       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}"
11217       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11218         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}"
11219         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}"
11220       fi
11221       else
11222       case $cc_basename in
11223         xlc*)
11224          output_verbose_link_cmd='echo'
11225           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11226           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11227           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11228           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11229           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11230           ;;
11231        *)
11232          ld_shlibs_CXX=no
11233           ;;
11234       esac
11235       fi
11236         ;;
11237
11238   dgux*)
11239     case $cc_basename in
11240       ec++*)
11241         # FIXME: insert proper C++ library support
11242         ld_shlibs_CXX=no
11243         ;;
11244       ghcx*)
11245         # Green Hills C++ Compiler
11246         # FIXME: insert proper C++ library support
11247         ld_shlibs_CXX=no
11248         ;;
11249       *)
11250         # FIXME: insert proper C++ library support
11251         ld_shlibs_CXX=no
11252         ;;
11253     esac
11254     ;;
11255   freebsd[12]*)
11256     # C++ shared libraries reported to be fairly broken before switch to ELF
11257     ld_shlibs_CXX=no
11258     ;;
11259   freebsd-elf*)
11260     archive_cmds_need_lc_CXX=no
11261     ;;
11262   freebsd* | dragonfly*)
11263     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11264     # conventions
11265     ld_shlibs_CXX=yes
11266     ;;
11267   gnu*)
11268     ;;
11269   hpux9*)
11270     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11271     hardcode_libdir_separator_CXX=:
11272     export_dynamic_flag_spec_CXX='${wl}-E'
11273     hardcode_direct_CXX=yes
11274     hardcode_minus_L_CXX=yes # Not in the search PATH,
11275                                 # but as the default
11276                                 # location of the library.
11277
11278     case $cc_basename in
11279     CC*)
11280       # FIXME: insert proper C++ library support
11281       ld_shlibs_CXX=no
11282       ;;
11283     aCC*)
11284       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'
11285       # Commands to make compiler produce verbose output that lists
11286       # what "hidden" libraries, object files and flags are used when
11287       # linking a shared library.
11288       #
11289       # There doesn't appear to be a way to prevent this compiler from
11290       # explicitly linking system object files so we need to strip them
11291       # from the output so that they don't get included in the library
11292       # dependencies.
11293       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; echo $list'
11294       ;;
11295     *)
11296       if test "$GXX" = yes; then
11297         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
11298       else
11299         # FIXME: insert proper C++ library support
11300         ld_shlibs_CXX=no
11301       fi
11302       ;;
11303     esac
11304     ;;
11305   hpux10*|hpux11*)
11306     if test $with_gnu_ld = no; then
11307       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11308       hardcode_libdir_separator_CXX=:
11309
11310       case $host_cpu in
11311       hppa*64*|ia64*) ;;
11312       *)
11313         export_dynamic_flag_spec_CXX='${wl}-E'
11314         ;;
11315       esac
11316     fi
11317     case $host_cpu in
11318     hppa*64*|ia64*)
11319       hardcode_direct_CXX=no
11320       hardcode_shlibpath_var_CXX=no
11321       ;;
11322     *)
11323       hardcode_direct_CXX=yes
11324       hardcode_minus_L_CXX=yes # Not in the search PATH,
11325                                               # but as the default
11326                                               # location of the library.
11327       ;;
11328     esac
11329
11330     case $cc_basename in
11331       CC*)
11332         # FIXME: insert proper C++ library support
11333         ld_shlibs_CXX=no
11334         ;;
11335       aCC*)
11336         case $host_cpu in
11337         hppa*64*)
11338           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11339           ;;
11340         ia64*)
11341           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11342           ;;
11343         *)
11344           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11345           ;;
11346         esac
11347         # Commands to make compiler produce verbose output that lists
11348         # what "hidden" libraries, object files and flags are used when
11349         # linking a shared library.
11350         #
11351         # There doesn't appear to be a way to prevent this compiler from
11352         # explicitly linking system object files so we need to strip them
11353         # from the output so that they don't get included in the library
11354         # dependencies.
11355         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; echo $list'
11356         ;;
11357       *)
11358         if test "$GXX" = yes; then
11359           if test $with_gnu_ld = no; then
11360             case $host_cpu in
11361             hppa*64*)
11362               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11363               ;;
11364             ia64*)
11365               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11366               ;;
11367             *)
11368               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11369               ;;
11370             esac
11371           fi
11372         else
11373           # FIXME: insert proper C++ library support
11374           ld_shlibs_CXX=no
11375         fi
11376         ;;
11377     esac
11378     ;;
11379   interix[3-9]*)
11380     hardcode_direct_CXX=no
11381     hardcode_shlibpath_var_CXX=no
11382     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11383     export_dynamic_flag_spec_CXX='${wl}-E'
11384     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11385     # Instead, shared libraries are loaded at an image base (0x10000000 by
11386     # default) and relocated if they conflict, which is a slow very memory
11387     # consuming and fragmenting process.  To avoid this, we pick a random,
11388     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11389     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11390     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'
11391     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'
11392     ;;
11393   irix5* | irix6*)
11394     case $cc_basename in
11395       CC*)
11396         # SGI C++
11397         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11398
11399         # Archives containing C++ object files must be created using
11400         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11401         # necessary to make sure instantiated templates are included
11402         # in the archive.
11403         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11404         ;;
11405       *)
11406         if test "$GXX" = yes; then
11407           if test "$with_gnu_ld" = no; then
11408             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11409           else
11410             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11411           fi
11412         fi
11413         link_all_deplibs_CXX=yes
11414         ;;
11415     esac
11416     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11417     hardcode_libdir_separator_CXX=:
11418     ;;
11419   linux* | k*bsd*-gnu)
11420     case $cc_basename in
11421       KCC*)
11422         # Kuck and Associates, Inc. (KAI) C++ Compiler
11423
11424         # KCC will only create a shared library if the output file
11425         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11426         # to its proper name (with version) after linking.
11427         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'
11428         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'
11429         # Commands to make compiler produce verbose output that lists
11430         # what "hidden" libraries, object files and flags are used when
11431         # linking a shared library.
11432         #
11433         # There doesn't appear to be a way to prevent this compiler from
11434         # explicitly linking system object files so we need to strip them
11435         # from the output so that they don't get included in the library
11436         # dependencies.
11437         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; echo $list'
11438
11439         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11440         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11441
11442         # Archives containing C++ object files must be created using
11443         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11444         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11445         ;;
11446       icpc*)
11447         # Intel C++
11448         with_gnu_ld=yes
11449         # version 8.0 and above of icpc choke on multiply defined symbols
11450         # if we add $predep_objects and $postdep_objects, however 7.1 and
11451         # earlier do not add the objects themselves.
11452         case `$CC -V 2>&1` in
11453         *"Version 7."*)
11454           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455           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'
11456           ;;
11457         *)  # Version 8.0 or newer
11458           tmp_idyn=
11459           case $host_cpu in
11460             ia64*) tmp_idyn=' -i_dynamic';;
11461           esac
11462           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11463           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'
11464           ;;
11465         esac
11466         archive_cmds_need_lc_CXX=no
11467         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11468         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11469         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11470         ;;
11471       pgCC* | pgcpp*)
11472         # Portland Group C++ compiler
11473         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11474         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'
11475
11476         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11477         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11478         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11479         ;;
11480       cxx*)
11481         # Compaq C++
11482         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11483         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'
11484
11485         runpath_var=LD_RUN_PATH
11486         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11487         hardcode_libdir_separator_CXX=:
11488
11489         # Commands to make compiler produce verbose output that lists
11490         # what "hidden" libraries, object files and flags are used when
11491         # linking a shared library.
11492         #
11493         # There doesn't appear to be a way to prevent this compiler from
11494         # explicitly linking system object files so we need to strip them
11495         # from the output so that they don't get included in the library
11496         # dependencies.
11497         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11498         ;;
11499       *)
11500         case `$CC -V 2>&1 | sed 5q` in
11501         *Sun\ C*)
11502           # Sun C++ 5.9
11503           no_undefined_flag_CXX=' -zdefs'
11504           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11505           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'
11506           hardcode_libdir_flag_spec_CXX='-R$libdir'
11507           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11508
11509           # Not sure whether something based on
11510           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11511           # would be better.
11512           output_verbose_link_cmd='echo'
11513
11514           # Archives containing C++ object files must be created using
11515           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11516           # necessary to make sure instantiated templates are included
11517           # in the archive.
11518           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11519           ;;
11520         esac
11521         ;;
11522     esac
11523     ;;
11524   lynxos*)
11525     # FIXME: insert proper C++ library support
11526     ld_shlibs_CXX=no
11527     ;;
11528   m88k*)
11529     # FIXME: insert proper C++ library support
11530     ld_shlibs_CXX=no
11531     ;;
11532   mvs*)
11533     case $cc_basename in
11534       cxx*)
11535         # FIXME: insert proper C++ library support
11536         ld_shlibs_CXX=no
11537         ;;
11538       *)
11539         # FIXME: insert proper C++ library support
11540         ld_shlibs_CXX=no
11541         ;;
11542     esac
11543     ;;
11544   netbsd* | netbsdelf*-gnu)
11545     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11546       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11547       wlarc=
11548       hardcode_libdir_flag_spec_CXX='-R$libdir'
11549       hardcode_direct_CXX=yes
11550       hardcode_shlibpath_var_CXX=no
11551     fi
11552     # Workaround some broken pre-1.5 toolchains
11553     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11554     ;;
11555   openbsd2*)
11556     # C++ shared libraries are fairly broken
11557     ld_shlibs_CXX=no
11558     ;;
11559   openbsd*)
11560     if test -f /usr/libexec/ld.so; then
11561       hardcode_direct_CXX=yes
11562       hardcode_shlibpath_var_CXX=no
11563       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11564       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11565       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11566         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11567         export_dynamic_flag_spec_CXX='${wl}-E'
11568         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11569       fi
11570       output_verbose_link_cmd='echo'
11571     else
11572       ld_shlibs_CXX=no
11573     fi
11574     ;;
11575   osf3*)
11576     case $cc_basename in
11577       KCC*)
11578         # Kuck and Associates, Inc. (KAI) C++ Compiler
11579
11580         # KCC will only create a shared library if the output file
11581         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11582         # to its proper name (with version) after linking.
11583         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'
11584
11585         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11586         hardcode_libdir_separator_CXX=:
11587
11588         # Archives containing C++ object files must be created using
11589         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11590         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11591
11592         ;;
11593       RCC*)
11594         # Rational C++ 2.4.1
11595         # FIXME: insert proper C++ library support
11596         ld_shlibs_CXX=no
11597         ;;
11598       cxx*)
11599         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11600         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11601
11602         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11603         hardcode_libdir_separator_CXX=:
11604
11605         # Commands to make compiler produce verbose output that lists
11606         # what "hidden" libraries, object files and flags are used when
11607         # linking a shared library.
11608         #
11609         # There doesn't appear to be a way to prevent this compiler from
11610         # explicitly linking system object files so we need to strip them
11611         # from the output so that they don't get included in the library
11612         # dependencies.
11613         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11614         ;;
11615       *)
11616         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11617           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11618           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11619
11620           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11621           hardcode_libdir_separator_CXX=:
11622
11623           # Commands to make compiler produce verbose output that lists
11624           # what "hidden" libraries, object files and flags are used when
11625           # linking a shared library.
11626           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11627
11628         else
11629           # FIXME: insert proper C++ library support
11630           ld_shlibs_CXX=no
11631         fi
11632         ;;
11633     esac
11634     ;;
11635   osf4* | osf5*)
11636     case $cc_basename in
11637       KCC*)
11638         # Kuck and Associates, Inc. (KAI) C++ Compiler
11639
11640         # KCC will only create a shared library if the output file
11641         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11642         # to its proper name (with version) after linking.
11643         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'
11644
11645         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11646         hardcode_libdir_separator_CXX=:
11647
11648         # Archives containing C++ object files must be created using
11649         # the KAI C++ compiler.
11650         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11651         ;;
11652       RCC*)
11653         # Rational C++ 2.4.1
11654         # FIXME: insert proper C++ library support
11655         ld_shlibs_CXX=no
11656         ;;
11657       cxx*)
11658         allow_undefined_flag_CXX=' -expect_unresolved \*'
11659         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11660         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11661           echo "-hidden">> $lib.exp~
11662           $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~
11663           $rm $lib.exp'
11664
11665         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11666         hardcode_libdir_separator_CXX=:
11667
11668         # Commands to make compiler produce verbose output that lists
11669         # what "hidden" libraries, object files and flags are used when
11670         # linking a shared library.
11671         #
11672         # There doesn't appear to be a way to prevent this compiler from
11673         # explicitly linking system object files so we need to strip them
11674         # from the output so that they don't get included in the library
11675         # dependencies.
11676         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11677         ;;
11678       *)
11679         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11680           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11681          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11682
11683           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11684           hardcode_libdir_separator_CXX=:
11685
11686           # Commands to make compiler produce verbose output that lists
11687           # what "hidden" libraries, object files and flags are used when
11688           # linking a shared library.
11689           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11690
11691         else
11692           # FIXME: insert proper C++ library support
11693           ld_shlibs_CXX=no
11694         fi
11695         ;;
11696     esac
11697     ;;
11698   psos*)
11699     # FIXME: insert proper C++ library support
11700     ld_shlibs_CXX=no
11701     ;;
11702   sunos4*)
11703     case $cc_basename in
11704       CC*)
11705         # Sun C++ 4.x
11706         # FIXME: insert proper C++ library support
11707         ld_shlibs_CXX=no
11708         ;;
11709       lcc*)
11710         # Lucid
11711         # FIXME: insert proper C++ library support
11712         ld_shlibs_CXX=no
11713         ;;
11714       *)
11715         # FIXME: insert proper C++ library support
11716         ld_shlibs_CXX=no
11717         ;;
11718     esac
11719     ;;
11720   solaris*)
11721     case $cc_basename in
11722       CC*)
11723         # Sun C++ 4.2, 5.x and Centerline C++
11724         archive_cmds_need_lc_CXX=yes
11725         no_undefined_flag_CXX=' -zdefs'
11726         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11727         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11728         $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'
11729
11730         hardcode_libdir_flag_spec_CXX='-R$libdir'
11731         hardcode_shlibpath_var_CXX=no
11732         case $host_os in
11733           solaris2.[0-5] | solaris2.[0-5].*) ;;
11734           *)
11735             # The compiler driver will combine and reorder linker options,
11736             # but understands `-z linker_flag'.
11737             # Supported since Solaris 2.6 (maybe 2.5.1?)
11738             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11739             ;;
11740         esac
11741         link_all_deplibs_CXX=yes
11742
11743         output_verbose_link_cmd='echo'
11744
11745         # Archives containing C++ object files must be created using
11746         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11747         # necessary to make sure instantiated templates are included
11748         # in the archive.
11749         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11750         ;;
11751       gcx*)
11752         # Green Hills C++ Compiler
11753         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11754
11755         # The C++ compiler must be used to create the archive.
11756         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11757         ;;
11758       *)
11759         # GNU C++ compiler with Solaris linker
11760         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11761           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11762           if $CC --version | grep -v '^2\.7' > /dev/null; then
11763             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11764             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11765                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11766
11767             # Commands to make compiler produce verbose output that lists
11768             # what "hidden" libraries, object files and flags are used when
11769             # linking a shared library.
11770             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11771           else
11772             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11773             # platform.
11774             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11775             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11776                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11777
11778             # Commands to make compiler produce verbose output that lists
11779             # what "hidden" libraries, object files and flags are used when
11780             # linking a shared library.
11781             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11782           fi
11783
11784           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11785           case $host_os in
11786           solaris2.[0-5] | solaris2.[0-5].*) ;;
11787           *)
11788             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11789             ;;
11790           esac
11791         fi
11792         ;;
11793     esac
11794     ;;
11795   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11796     no_undefined_flag_CXX='${wl}-z,text'
11797     archive_cmds_need_lc_CXX=no
11798     hardcode_shlibpath_var_CXX=no
11799     runpath_var='LD_RUN_PATH'
11800
11801     case $cc_basename in
11802       CC*)
11803         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11804         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11805         ;;
11806       *)
11807         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11808         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11809         ;;
11810     esac
11811     ;;
11812   sysv5* | sco3.2v5* | sco5v6*)
11813     # Note: We can NOT use -z defs as we might desire, because we do not
11814     # link with -lc, and that would cause any symbols used from libc to
11815     # always be unresolved, which means just about no library would
11816     # ever link correctly.  If we're not using GNU ld we use -z text
11817     # though, which does catch some bad symbols but isn't as heavy-handed
11818     # as -z defs.
11819     # For security reasons, it is highly recommended that you always
11820     # use absolute paths for naming shared libraries, and exclude the
11821     # DT_RUNPATH tag from executables and libraries.  But doing so
11822     # requires that you compile everything twice, which is a pain.
11823     # So that behaviour is only enabled if SCOABSPATH is set to a
11824     # non-empty value in the environment.  Most likely only useful for
11825     # creating official distributions of packages.
11826     # This is a hack until libtool officially supports absolute path
11827     # names for shared libraries.
11828     no_undefined_flag_CXX='${wl}-z,text'
11829     allow_undefined_flag_CXX='${wl}-z,nodefs'
11830     archive_cmds_need_lc_CXX=no
11831     hardcode_shlibpath_var_CXX=no
11832     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11833     hardcode_libdir_separator_CXX=':'
11834     link_all_deplibs_CXX=yes
11835     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11836     runpath_var='LD_RUN_PATH'
11837
11838     case $cc_basename in
11839       CC*)
11840         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11841         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11842         ;;
11843       *)
11844         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11845         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11846         ;;
11847     esac
11848     ;;
11849   tandem*)
11850     case $cc_basename in
11851       NCC*)
11852         # NonStop-UX NCC 3.20
11853         # FIXME: insert proper C++ library support
11854         ld_shlibs_CXX=no
11855         ;;
11856       *)
11857         # FIXME: insert proper C++ library support
11858         ld_shlibs_CXX=no
11859         ;;
11860     esac
11861     ;;
11862   vxworks*)
11863     # FIXME: insert proper C++ library support
11864     ld_shlibs_CXX=no
11865     ;;
11866   *)
11867     # FIXME: insert proper C++ library support
11868     ld_shlibs_CXX=no
11869     ;;
11870 esac
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11872 $as_echo "$ld_shlibs_CXX" >&6; }
11873 test "$ld_shlibs_CXX" = no && can_build_shared=no
11874
11875 GCC_CXX="$GXX"
11876 LD_CXX="$LD"
11877
11878 cat > conftest.$ac_ext <<EOF
11879 class Foo
11880 {
11881 public:
11882   Foo (void) { a = 0; }
11883 private:
11884   int a;
11885 };
11886 EOF
11887
11888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11889   (eval $ac_compile) 2>&5
11890   ac_status=$?
11891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11892   test $ac_status = 0; }; then
11893   # Parse the compiler output and extract the necessary
11894   # objects, libraries and library flags.
11895
11896   # Sentinel used to keep track of whether or not we are before
11897   # the conftest object file.
11898   pre_test_object_deps_done=no
11899
11900   # The `*' in the case matches for architectures that use `case' in
11901   # $output_verbose_cmd can trigger glob expansion during the loop
11902   # eval without this substitution.
11903   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11904
11905   for p in `eval $output_verbose_link_cmd`; do
11906     case $p in
11907
11908     -L* | -R* | -l*)
11909        # Some compilers place space between "-{L,R}" and the path.
11910        # Remove the space.
11911        if test $p = "-L" \
11912           || test $p = "-R"; then
11913          prev=$p
11914          continue
11915        else
11916          prev=
11917        fi
11918
11919        if test "$pre_test_object_deps_done" = no; then
11920          case $p in
11921          -L* | -R*)
11922            # Internal compiler library paths should come after those
11923            # provided the user.  The postdeps already come after the
11924            # user supplied libs so there is no need to process them.
11925            if test -z "$compiler_lib_search_path_CXX"; then
11926              compiler_lib_search_path_CXX="${prev}${p}"
11927            else
11928              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11929            fi
11930            ;;
11931          # The "-l" case would never come before the object being
11932          # linked, so don't bother handling this case.
11933          esac
11934        else
11935          if test -z "$postdeps_CXX"; then
11936            postdeps_CXX="${prev}${p}"
11937          else
11938            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11939          fi
11940        fi
11941        ;;
11942
11943     *.$objext)
11944        # This assumes that the test object file only shows up
11945        # once in the compiler output.
11946        if test "$p" = "conftest.$objext"; then
11947          pre_test_object_deps_done=yes
11948          continue
11949        fi
11950
11951        if test "$pre_test_object_deps_done" = no; then
11952          if test -z "$predep_objects_CXX"; then
11953            predep_objects_CXX="$p"
11954          else
11955            predep_objects_CXX="$predep_objects_CXX $p"
11956          fi
11957        else
11958          if test -z "$postdep_objects_CXX"; then
11959            postdep_objects_CXX="$p"
11960          else
11961            postdep_objects_CXX="$postdep_objects_CXX $p"
11962          fi
11963        fi
11964        ;;
11965
11966     *) ;; # Ignore the rest.
11967
11968     esac
11969   done
11970
11971   # Clean up.
11972   rm -f a.out a.exe
11973 else
11974   echo "libtool.m4: error: problem compiling CXX test program"
11975 fi
11976
11977 $rm -f confest.$objext
11978
11979 compiler_lib_search_dirs_CXX=
11980 if test -n "$compiler_lib_search_path_CXX"; then
11981   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11982 fi
11983
11984 # PORTME: override above test on systems where it is broken
11985 case $host_os in
11986 interix[3-9]*)
11987   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11988   # hack all around it, let's just trust "g++" to DTRT.
11989   predep_objects_CXX=
11990   postdep_objects_CXX=
11991   postdeps_CXX=
11992   ;;
11993
11994 linux*)
11995   case `$CC -V 2>&1 | sed 5q` in
11996   *Sun\ C*)
11997     # Sun C++ 5.9
11998     #
11999     # The more standards-conforming stlport4 library is
12000     # incompatible with the Cstd library. Avoid specifying
12001     # it if it's in CXXFLAGS. Ignore libCrun as
12002     # -library=stlport4 depends on it.
12003     case " $CXX $CXXFLAGS " in
12004     *" -library=stlport4 "*)
12005       solaris_use_stlport4=yes
12006       ;;
12007     esac
12008     if test "$solaris_use_stlport4" != yes; then
12009       postdeps_CXX='-library=Cstd -library=Crun'
12010     fi
12011     ;;
12012   esac
12013   ;;
12014
12015 solaris*)
12016   case $cc_basename in
12017   CC*)
12018     # The more standards-conforming stlport4 library is
12019     # incompatible with the Cstd library. Avoid specifying
12020     # it if it's in CXXFLAGS. Ignore libCrun as
12021     # -library=stlport4 depends on it.
12022     case " $CXX $CXXFLAGS " in
12023     *" -library=stlport4 "*)
12024       solaris_use_stlport4=yes
12025       ;;
12026     esac
12027
12028     # Adding this requires a known-good setup of shared libraries for
12029     # Sun compiler versions before 5.6, else PIC objects from an old
12030     # archive will be linked into the output, leading to subtle bugs.
12031     if test "$solaris_use_stlport4" != yes; then
12032       postdeps_CXX='-library=Cstd -library=Crun'
12033     fi
12034     ;;
12035   esac
12036   ;;
12037 esac
12038
12039 case " $postdeps_CXX " in
12040 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12041 esac
12042
12043 lt_prog_compiler_wl_CXX=
12044 lt_prog_compiler_pic_CXX=
12045 lt_prog_compiler_static_CXX=
12046
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12048 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12049
12050   # C++ specific cases for pic, static, wl, etc.
12051   if test "$GXX" = yes; then
12052     lt_prog_compiler_wl_CXX='-Wl,'
12053     lt_prog_compiler_static_CXX='-static'
12054
12055     case $host_os in
12056     aix*)
12057       # All AIX code is PIC.
12058       if test "$host_cpu" = ia64; then
12059         # AIX 5 now supports IA64 processor
12060         lt_prog_compiler_static_CXX='-Bstatic'
12061       fi
12062       ;;
12063     amigaos*)
12064       # FIXME: we need at least 68020 code to build shared libraries, but
12065       # adding the `-m68020' flag to GCC prevents building anything better,
12066       # like `-m68040'.
12067       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12068       ;;
12069     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12070       # PIC is the default for these OSes.
12071       ;;
12072     mingw* | cygwin* | os2* | pw32*)
12073       # This hack is so that the source file can tell whether it is being
12074       # built for inclusion in a dll (and should export symbols for example).
12075       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12076       # (--disable-auto-import) libraries
12077       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12078       ;;
12079     darwin* | rhapsody*)
12080       # PIC is the default on this platform
12081       # Common symbols not allowed in MH_DYLIB files
12082       lt_prog_compiler_pic_CXX='-fno-common'
12083       ;;
12084     *djgpp*)
12085       # DJGPP does not support shared libraries at all
12086       lt_prog_compiler_pic_CXX=
12087       ;;
12088     interix[3-9]*)
12089       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12090       # Instead, we relocate shared libraries at runtime.
12091       ;;
12092     sysv4*MP*)
12093       if test -d /usr/nec; then
12094         lt_prog_compiler_pic_CXX=-Kconform_pic
12095       fi
12096       ;;
12097     hpux*)
12098       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12099       # not for PA HP-UX.
12100       case $host_cpu in
12101       hppa*64*|ia64*)
12102         ;;
12103       *)
12104         lt_prog_compiler_pic_CXX='-fPIC'
12105         ;;
12106       esac
12107       ;;
12108     *)
12109       lt_prog_compiler_pic_CXX='-fPIC'
12110       ;;
12111     esac
12112   else
12113     case $host_os in
12114       aix[4-9]*)
12115         # All AIX code is PIC.
12116         if test "$host_cpu" = ia64; then
12117           # AIX 5 now supports IA64 processor
12118           lt_prog_compiler_static_CXX='-Bstatic'
12119         else
12120           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12121         fi
12122         ;;
12123       chorus*)
12124         case $cc_basename in
12125         cxch68*)
12126           # Green Hills C++ Compiler
12127           # _LT_AC_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"
12128           ;;
12129         esac
12130         ;;
12131        darwin*)
12132          # PIC is the default on this platform
12133          # Common symbols not allowed in MH_DYLIB files
12134          case $cc_basename in
12135            xlc*)
12136            lt_prog_compiler_pic_CXX='-qnocommon'
12137            lt_prog_compiler_wl_CXX='-Wl,'
12138            ;;
12139          esac
12140        ;;
12141       dgux*)
12142         case $cc_basename in
12143           ec++*)
12144             lt_prog_compiler_pic_CXX='-KPIC'
12145             ;;
12146           ghcx*)
12147             # Green Hills C++ Compiler
12148             lt_prog_compiler_pic_CXX='-pic'
12149             ;;
12150           *)
12151             ;;
12152         esac
12153         ;;
12154       freebsd* | dragonfly*)
12155         # FreeBSD uses GNU C++
12156         ;;
12157       hpux9* | hpux10* | hpux11*)
12158         case $cc_basename in
12159           CC*)
12160             lt_prog_compiler_wl_CXX='-Wl,'
12161             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12162             if test "$host_cpu" != ia64; then
12163               lt_prog_compiler_pic_CXX='+Z'
12164             fi
12165             ;;
12166           aCC*)
12167             lt_prog_compiler_wl_CXX='-Wl,'
12168             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12169             case $host_cpu in
12170             hppa*64*|ia64*)
12171               # +Z the default
12172               ;;
12173             *)
12174               lt_prog_compiler_pic_CXX='+Z'
12175               ;;
12176             esac
12177             ;;
12178           *)
12179             ;;
12180         esac
12181         ;;
12182       interix*)
12183         # This is c89, which is MS Visual C++ (no shared libs)
12184         # Anyone wants to do a port?
12185         ;;
12186       irix5* | irix6* | nonstopux*)
12187         case $cc_basename in
12188           CC*)
12189             lt_prog_compiler_wl_CXX='-Wl,'
12190             lt_prog_compiler_static_CXX='-non_shared'
12191             # CC pic flag -KPIC is the default.
12192             ;;
12193           *)
12194             ;;
12195         esac
12196         ;;
12197       linux* | k*bsd*-gnu)
12198         case $cc_basename in
12199           KCC*)
12200             # KAI C++ Compiler
12201             lt_prog_compiler_wl_CXX='--backend -Wl,'
12202             lt_prog_compiler_pic_CXX='-fPIC'
12203             ;;
12204           icpc* | ecpc*)
12205             # Intel C++
12206             lt_prog_compiler_wl_CXX='-Wl,'
12207             lt_prog_compiler_pic_CXX='-KPIC'
12208             lt_prog_compiler_static_CXX='-static'
12209             ;;
12210           pgCC* | pgcpp*)
12211             # Portland Group C++ compiler.
12212             lt_prog_compiler_wl_CXX='-Wl,'
12213             lt_prog_compiler_pic_CXX='-fpic'
12214             lt_prog_compiler_static_CXX='-Bstatic'
12215             ;;
12216           cxx*)
12217             # Compaq C++
12218             # Make sure the PIC flag is empty.  It appears that all Alpha
12219             # Linux and Compaq Tru64 Unix objects are PIC.
12220             lt_prog_compiler_pic_CXX=
12221             lt_prog_compiler_static_CXX='-non_shared'
12222             ;;
12223           *)
12224             case `$CC -V 2>&1 | sed 5q` in
12225             *Sun\ C*)
12226               # Sun C++ 5.9
12227               lt_prog_compiler_pic_CXX='-KPIC'
12228               lt_prog_compiler_static_CXX='-Bstatic'
12229               lt_prog_compiler_wl_CXX='-Qoption ld '
12230               ;;
12231             esac
12232             ;;
12233         esac
12234         ;;
12235       lynxos*)
12236         ;;
12237       m88k*)
12238         ;;
12239       mvs*)
12240         case $cc_basename in
12241           cxx*)
12242             lt_prog_compiler_pic_CXX='-W c,exportall'
12243             ;;
12244           *)
12245             ;;
12246         esac
12247         ;;
12248       netbsd* | netbsdelf*-gnu)
12249         ;;
12250       osf3* | osf4* | osf5*)
12251         case $cc_basename in
12252           KCC*)
12253             lt_prog_compiler_wl_CXX='--backend -Wl,'
12254             ;;
12255           RCC*)
12256             # Rational C++ 2.4.1
12257             lt_prog_compiler_pic_CXX='-pic'
12258             ;;
12259           cxx*)
12260             # Digital/Compaq C++
12261             lt_prog_compiler_wl_CXX='-Wl,'
12262             # Make sure the PIC flag is empty.  It appears that all Alpha
12263             # Linux and Compaq Tru64 Unix objects are PIC.
12264             lt_prog_compiler_pic_CXX=
12265             lt_prog_compiler_static_CXX='-non_shared'
12266             ;;
12267           *)
12268             ;;
12269         esac
12270         ;;
12271       psos*)
12272         ;;
12273       solaris*)
12274         case $cc_basename in
12275           CC*)
12276             # Sun C++ 4.2, 5.x and Centerline C++
12277             lt_prog_compiler_pic_CXX='-KPIC'
12278             lt_prog_compiler_static_CXX='-Bstatic'
12279             lt_prog_compiler_wl_CXX='-Qoption ld '
12280             ;;
12281           gcx*)
12282             # Green Hills C++ Compiler
12283             lt_prog_compiler_pic_CXX='-PIC'
12284             ;;
12285           *)
12286             ;;
12287         esac
12288         ;;
12289       sunos4*)
12290         case $cc_basename in
12291           CC*)
12292             # Sun C++ 4.x
12293             lt_prog_compiler_pic_CXX='-pic'
12294             lt_prog_compiler_static_CXX='-Bstatic'
12295             ;;
12296           lcc*)
12297             # Lucid
12298             lt_prog_compiler_pic_CXX='-pic'
12299             ;;
12300           *)
12301             ;;
12302         esac
12303         ;;
12304       tandem*)
12305         case $cc_basename in
12306           NCC*)
12307             # NonStop-UX NCC 3.20
12308             lt_prog_compiler_pic_CXX='-KPIC'
12309             ;;
12310           *)
12311             ;;
12312         esac
12313         ;;
12314       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12315         case $cc_basename in
12316           CC*)
12317             lt_prog_compiler_wl_CXX='-Wl,'
12318             lt_prog_compiler_pic_CXX='-KPIC'
12319             lt_prog_compiler_static_CXX='-Bstatic'
12320             ;;
12321         esac
12322         ;;
12323       vxworks*)
12324         ;;
12325       *)
12326         lt_prog_compiler_can_build_shared_CXX=no
12327         ;;
12328     esac
12329   fi
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12332 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12333
12334 #
12335 # Check to make sure the PIC flag actually works.
12336 #
12337 if test -n "$lt_prog_compiler_pic_CXX"; then
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12340 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12341 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12342   $as_echo_n "(cached) " >&6
12343 else
12344   lt_cv_prog_compiler_pic_works_CXX=no
12345   ac_outfile=conftest.$ac_objext
12346    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12347    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12348    # Insert the option either (1) after the last *FLAGS variable, or
12349    # (2) before a word containing "conftest.", or (3) at the end.
12350    # Note that $ac_compile itself does not contain backslashes and begins
12351    # with a dollar sign (not a hyphen), so the echo should work correctly.
12352    # The option is referenced via a variable to avoid confusing sed.
12353    lt_compile=`echo "$ac_compile" | $SED \
12354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12356    -e 's:$: $lt_compiler_flag:'`
12357    (eval echo "\"\$as_me:12357: $lt_compile\"" >&5)
12358    (eval "$lt_compile" 2>conftest.err)
12359    ac_status=$?
12360    cat conftest.err >&5
12361    echo "$as_me:12361: \$? = $ac_status" >&5
12362    if (exit $ac_status) && test -s "$ac_outfile"; then
12363      # The compiler can only warn and ignore the option if not recognized
12364      # So say no if there are warnings other than the usual output.
12365      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12366      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12367      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12368        lt_cv_prog_compiler_pic_works_CXX=yes
12369      fi
12370    fi
12371    $rm conftest*
12372
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12375 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12376
12377 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12378     case $lt_prog_compiler_pic_CXX in
12379      "" | " "*) ;;
12380      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12381      esac
12382 else
12383     lt_prog_compiler_pic_CXX=
12384      lt_prog_compiler_can_build_shared_CXX=no
12385 fi
12386
12387 fi
12388 case $host_os in
12389   # For platforms which do not support PIC, -DPIC is meaningless:
12390   *djgpp*)
12391     lt_prog_compiler_pic_CXX=
12392     ;;
12393   *)
12394     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12395     ;;
12396 esac
12397
12398 #
12399 # Check to make sure the static flag actually works.
12400 #
12401 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12403 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12404 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12405   $as_echo_n "(cached) " >&6
12406 else
12407   lt_cv_prog_compiler_static_works_CXX=no
12408    save_LDFLAGS="$LDFLAGS"
12409    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12410    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12411    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12412      # The linker can only warn and ignore the option if not recognized
12413      # So say no if there are warnings
12414      if test -s conftest.err; then
12415        # Append any errors to the config.log.
12416        cat conftest.err 1>&5
12417        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12418        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12419        if diff conftest.exp conftest.er2 >/dev/null; then
12420          lt_cv_prog_compiler_static_works_CXX=yes
12421        fi
12422      else
12423        lt_cv_prog_compiler_static_works_CXX=yes
12424      fi
12425    fi
12426    $rm -r conftest*
12427    LDFLAGS="$save_LDFLAGS"
12428
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12431 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12432
12433 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12434     :
12435 else
12436     lt_prog_compiler_static_CXX=
12437 fi
12438
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12441 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12442 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12443   $as_echo_n "(cached) " >&6
12444 else
12445   lt_cv_prog_compiler_c_o_CXX=no
12446    $rm -r conftest 2>/dev/null
12447    mkdir conftest
12448    cd conftest
12449    mkdir out
12450    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12451
12452    lt_compiler_flag="-o out/conftest2.$ac_objext"
12453    # Insert the option either (1) after the last *FLAGS variable, or
12454    # (2) before a word containing "conftest.", or (3) at the end.
12455    # Note that $ac_compile itself does not contain backslashes and begins
12456    # with a dollar sign (not a hyphen), so the echo should work correctly.
12457    lt_compile=`echo "$ac_compile" | $SED \
12458    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12459    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12460    -e 's:$: $lt_compiler_flag:'`
12461    (eval echo "\"\$as_me:12461: $lt_compile\"" >&5)
12462    (eval "$lt_compile" 2>out/conftest.err)
12463    ac_status=$?
12464    cat out/conftest.err >&5
12465    echo "$as_me:12465: \$? = $ac_status" >&5
12466    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12467    then
12468      # The compiler can only warn and ignore the option if not recognized
12469      # So say no if there are warnings
12470      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12471      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12472      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12473        lt_cv_prog_compiler_c_o_CXX=yes
12474      fi
12475    fi
12476    chmod u+w . 2>&5
12477    $rm conftest*
12478    # SGI C++ compiler will create directory out/ii_files/ for
12479    # template instantiation
12480    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12481    $rm out/* && rmdir out
12482    cd ..
12483    rmdir conftest
12484    $rm conftest*
12485
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12488 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12489
12490
12491 hard_links="nottested"
12492 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12493   # do not overwrite the value of need_locks provided by the user
12494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12495 $as_echo_n "checking if we can lock with hard links... " >&6; }
12496   hard_links=yes
12497   $rm conftest*
12498   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12499   touch conftest.a
12500   ln conftest.a conftest.b 2>&5 || hard_links=no
12501   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12503 $as_echo "$hard_links" >&6; }
12504   if test "$hard_links" = no; then
12505     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12506 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12507     need_locks=warn
12508   fi
12509 else
12510   need_locks=no
12511 fi
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12514 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12515
12516   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12517   case $host_os in
12518   aix[4-9]*)
12519     # If we're using GNU nm, then we don't want the "-C" option.
12520     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12521     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12522       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12523     else
12524       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'
12525     fi
12526     ;;
12527   pw32*)
12528     export_symbols_cmds_CXX="$ltdll_cmds"
12529   ;;
12530   cygwin* | mingw*)
12531     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12532   ;;
12533   linux* | k*bsd*-gnu)
12534     link_all_deplibs_CXX=no
12535   ;;
12536   *)
12537     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12538   ;;
12539   esac
12540   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12543 $as_echo "$ld_shlibs_CXX" >&6; }
12544 test "$ld_shlibs_CXX" = no && can_build_shared=no
12545
12546 #
12547 # Do we need to explicitly link libc?
12548 #
12549 case "x$archive_cmds_need_lc_CXX" in
12550 x|xyes)
12551   # Assume -lc should be added
12552   archive_cmds_need_lc_CXX=yes
12553
12554   if test "$enable_shared" = yes && test "$GCC" = yes; then
12555     case $archive_cmds_CXX in
12556     *'~'*)
12557       # FIXME: we may have to deal with multi-command sequences.
12558       ;;
12559     '$CC '*)
12560       # Test whether the compiler implicitly links with -lc since on some
12561       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12562       # to ld, don't add -lc before -lgcc.
12563       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12564 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12565       $rm conftest*
12566       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12567
12568       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12569   (eval $ac_compile) 2>&5
12570   ac_status=$?
12571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572   test $ac_status = 0; } 2>conftest.err; then
12573         soname=conftest
12574         lib=conftest
12575         libobjs=conftest.$ac_objext
12576         deplibs=
12577         wl=$lt_prog_compiler_wl_CXX
12578         pic_flag=$lt_prog_compiler_pic_CXX
12579         compiler_flags=-v
12580         linker_flags=-v
12581         verstring=
12582         output_objdir=.
12583         libname=conftest
12584         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12585         allow_undefined_flag_CXX=
12586         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12587   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12588   ac_status=$?
12589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590   test $ac_status = 0; }
12591         then
12592           archive_cmds_need_lc_CXX=no
12593         else
12594           archive_cmds_need_lc_CXX=yes
12595         fi
12596         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12597       else
12598         cat conftest.err 1>&5
12599       fi
12600       $rm conftest*
12601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12602 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12603       ;;
12604     esac
12605   fi
12606   ;;
12607 esac
12608
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12610 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12611 library_names_spec=
12612 libname_spec='lib$name'
12613 soname_spec=
12614 shrext_cmds=".so"
12615 postinstall_cmds=
12616 postuninstall_cmds=
12617 finish_cmds=
12618 finish_eval=
12619 shlibpath_var=
12620 shlibpath_overrides_runpath=unknown
12621 version_type=none
12622 dynamic_linker="$host_os ld.so"
12623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12624
12625 need_lib_prefix=unknown
12626 hardcode_into_libs=no
12627
12628 # when you set need_version to no, make sure it does not cause -set_version
12629 # flags to be left without arguments
12630 need_version=unknown
12631
12632 case $host_os in
12633 aix3*)
12634   version_type=linux
12635   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12636   shlibpath_var=LIBPATH
12637
12638   # AIX 3 has no versioning support, so we append a major version to the name.
12639   soname_spec='${libname}${release}${shared_ext}$major'
12640   ;;
12641
12642 aix[4-9]*)
12643   version_type=linux
12644   need_lib_prefix=no
12645   need_version=no
12646   hardcode_into_libs=yes
12647   if test "$host_cpu" = ia64; then
12648     # AIX 5 supports IA64
12649     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12650     shlibpath_var=LD_LIBRARY_PATH
12651   else
12652     # With GCC up to 2.95.x, collect2 would create an import file
12653     # for dependence libraries.  The import file would start with
12654     # the line `#! .'.  This would cause the generated library to
12655     # depend on `.', always an invalid library.  This was fixed in
12656     # development snapshots of GCC prior to 3.0.
12657     case $host_os in
12658       aix4 | aix4.[01] | aix4.[01].*)
12659       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12660            echo ' yes '
12661            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12662         :
12663       else
12664         can_build_shared=no
12665       fi
12666       ;;
12667     esac
12668     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12669     # soname into executable. Probably we can add versioning support to
12670     # collect2, so additional links can be useful in future.
12671     if test "$aix_use_runtimelinking" = yes; then
12672       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12673       # instead of lib<name>.a to let people know that these are not
12674       # typical AIX shared libraries.
12675       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676     else
12677       # We preserve .a as extension for shared libraries through AIX4.2
12678       # and later when we are not doing run time linking.
12679       library_names_spec='${libname}${release}.a $libname.a'
12680       soname_spec='${libname}${release}${shared_ext}$major'
12681     fi
12682     shlibpath_var=LIBPATH
12683   fi
12684   ;;
12685
12686 amigaos*)
12687   library_names_spec='$libname.ixlibrary $libname.a'
12688   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12689   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12690   ;;
12691
12692 beos*)
12693   library_names_spec='${libname}${shared_ext}'
12694   dynamic_linker="$host_os ld.so"
12695   shlibpath_var=LIBRARY_PATH
12696   ;;
12697
12698 bsdi[45]*)
12699   version_type=linux
12700   need_version=no
12701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12702   soname_spec='${libname}${release}${shared_ext}$major'
12703   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12704   shlibpath_var=LD_LIBRARY_PATH
12705   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12706   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12707   # the default ld.so.conf also contains /usr/contrib/lib and
12708   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12709   # libtool to hard-code these into programs
12710   ;;
12711
12712 cygwin* | mingw* | pw32*)
12713   version_type=windows
12714   shrext_cmds=".dll"
12715   need_version=no
12716   need_lib_prefix=no
12717
12718   case $GCC,$host_os in
12719   yes,cygwin* | yes,mingw* | yes,pw32*)
12720     library_names_spec='$libname.dll.a'
12721     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12722     postinstall_cmds='base_file=`basename \${file}`~
12723       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12724       dldir=$destdir/`dirname \$dlpath`~
12725       test -d \$dldir || mkdir -p \$dldir~
12726       $install_prog $dir/$dlname \$dldir/$dlname~
12727       chmod a+x \$dldir/$dlname'
12728     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12729       dlpath=$dir/\$dldll~
12730        $rm \$dlpath'
12731     shlibpath_overrides_runpath=yes
12732
12733     case $host_os in
12734     cygwin*)
12735       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12736       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12737       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12738       ;;
12739     mingw*)
12740       # MinGW DLLs use traditional 'lib' prefix
12741       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12742       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12743       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12744         # It is most probably a Windows format PATH printed by
12745         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12746         # path with ; separators, and with drive letters. We can handle the
12747         # drive letters (cygwin fileutils understands them), so leave them,
12748         # especially as we might pass files found there to a mingw objdump,
12749         # which wouldn't understand a cygwinified path. Ahh.
12750         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12751       else
12752         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12753       fi
12754       ;;
12755     pw32*)
12756       # pw32 DLLs use 'pw' prefix rather than 'lib'
12757       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12758       ;;
12759     esac
12760     ;;
12761
12762   *)
12763     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12764     ;;
12765   esac
12766   dynamic_linker='Win32 ld.exe'
12767   # FIXME: first we should search . and the directory the executable is in
12768   shlibpath_var=PATH
12769   ;;
12770
12771 darwin* | rhapsody*)
12772   dynamic_linker="$host_os dyld"
12773   version_type=darwin
12774   need_lib_prefix=no
12775   need_version=no
12776   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12777   soname_spec='${libname}${release}${major}$shared_ext'
12778   shlibpath_overrides_runpath=yes
12779   shlibpath_var=DYLD_LIBRARY_PATH
12780   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12781
12782   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12783   ;;
12784
12785 dgux*)
12786   version_type=linux
12787   need_lib_prefix=no
12788   need_version=no
12789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12790   soname_spec='${libname}${release}${shared_ext}$major'
12791   shlibpath_var=LD_LIBRARY_PATH
12792   ;;
12793
12794 freebsd1*)
12795   dynamic_linker=no
12796   ;;
12797
12798 freebsd* | dragonfly*)
12799   # DragonFly does not have aout.  When/if they implement a new
12800   # versioning mechanism, adjust this.
12801   if test -x /usr/bin/objformat; then
12802     objformat=`/usr/bin/objformat`
12803   else
12804     case $host_os in
12805     freebsd[123]*) objformat=aout ;;
12806     *) objformat=elf ;;
12807     esac
12808   fi
12809   version_type=freebsd-$objformat
12810   case $version_type in
12811     freebsd-elf*)
12812       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12813       need_version=no
12814       need_lib_prefix=no
12815       ;;
12816     freebsd-*)
12817       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12818       need_version=yes
12819       ;;
12820   esac
12821   shlibpath_var=LD_LIBRARY_PATH
12822   case $host_os in
12823   freebsd2*)
12824     shlibpath_overrides_runpath=yes
12825     ;;
12826   freebsd3.[01]* | freebsdelf3.[01]*)
12827     shlibpath_overrides_runpath=yes
12828     hardcode_into_libs=yes
12829     ;;
12830   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12831   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12832     shlibpath_overrides_runpath=no
12833     hardcode_into_libs=yes
12834     ;;
12835   *) # from 4.6 on, and DragonFly
12836     shlibpath_overrides_runpath=yes
12837     hardcode_into_libs=yes
12838     ;;
12839   esac
12840   ;;
12841
12842 gnu*)
12843   version_type=linux
12844   need_lib_prefix=no
12845   need_version=no
12846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12847   soname_spec='${libname}${release}${shared_ext}$major'
12848   shlibpath_var=LD_LIBRARY_PATH
12849   hardcode_into_libs=yes
12850   ;;
12851
12852 hpux9* | hpux10* | hpux11*)
12853   # Give a soname corresponding to the major version so that dld.sl refuses to
12854   # link against other versions.
12855   version_type=sunos
12856   need_lib_prefix=no
12857   need_version=no
12858   case $host_cpu in
12859   ia64*)
12860     shrext_cmds='.so'
12861     hardcode_into_libs=yes
12862     dynamic_linker="$host_os dld.so"
12863     shlibpath_var=LD_LIBRARY_PATH
12864     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12866     soname_spec='${libname}${release}${shared_ext}$major'
12867     if test "X$HPUX_IA64_MODE" = X32; then
12868       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12869     else
12870       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12871     fi
12872     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12873     ;;
12874    hppa*64*)
12875      shrext_cmds='.sl'
12876      hardcode_into_libs=yes
12877      dynamic_linker="$host_os dld.sl"
12878      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12879      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12880      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881      soname_spec='${libname}${release}${shared_ext}$major'
12882      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12883      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12884      ;;
12885    *)
12886     shrext_cmds='.sl'
12887     dynamic_linker="$host_os dld.sl"
12888     shlibpath_var=SHLIB_PATH
12889     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891     soname_spec='${libname}${release}${shared_ext}$major'
12892     ;;
12893   esac
12894   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12895   postinstall_cmds='chmod 555 $lib'
12896   ;;
12897
12898 interix[3-9]*)
12899   version_type=linux
12900   need_lib_prefix=no
12901   need_version=no
12902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12903   soname_spec='${libname}${release}${shared_ext}$major'
12904   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12905   shlibpath_var=LD_LIBRARY_PATH
12906   shlibpath_overrides_runpath=no
12907   hardcode_into_libs=yes
12908   ;;
12909
12910 irix5* | irix6* | nonstopux*)
12911   case $host_os in
12912     nonstopux*) version_type=nonstopux ;;
12913     *)
12914         if test "$lt_cv_prog_gnu_ld" = yes; then
12915                 version_type=linux
12916         else
12917                 version_type=irix
12918         fi ;;
12919   esac
12920   need_lib_prefix=no
12921   need_version=no
12922   soname_spec='${libname}${release}${shared_ext}$major'
12923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12924   case $host_os in
12925   irix5* | nonstopux*)
12926     libsuff= shlibsuff=
12927     ;;
12928   *)
12929     case $LD in # libtool.m4 will add one of these switches to LD
12930     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12931       libsuff= shlibsuff= libmagic=32-bit;;
12932     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12933       libsuff=32 shlibsuff=N32 libmagic=N32;;
12934     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12935       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12936     *) libsuff= shlibsuff= libmagic=never-match;;
12937     esac
12938     ;;
12939   esac
12940   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12941   shlibpath_overrides_runpath=no
12942   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12943   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12944   hardcode_into_libs=yes
12945   ;;
12946
12947 # No shared lib support for Linux oldld, aout, or coff.
12948 linux*oldld* | linux*aout* | linux*coff*)
12949   dynamic_linker=no
12950   ;;
12951
12952 # This must be Linux ELF.
12953 linux* | k*bsd*-gnu)
12954   version_type=linux
12955   need_lib_prefix=no
12956   need_version=no
12957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12958   soname_spec='${libname}${release}${shared_ext}$major'
12959   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12960   shlibpath_var=LD_LIBRARY_PATH
12961   shlibpath_overrides_runpath=no
12962   # This implies no fast_install, which is unacceptable.
12963   # Some rework will be needed to allow for fast_install
12964   # before this can be enabled.
12965   hardcode_into_libs=yes
12966
12967   # Append ld.so.conf contents to the search path
12968   if test -f /etc/ld.so.conf; then
12969     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12970     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12971   fi
12972
12973   # We used to test for /lib/ld.so.1 and disable shared libraries on
12974   # powerpc, because MkLinux only supported shared libraries with the
12975   # GNU dynamic linker.  Since this was broken with cross compilers,
12976   # most powerpc-linux boxes support dynamic linking these days and
12977   # people can always --disable-shared, the test was removed, and we
12978   # assume the GNU/Linux dynamic linker is in use.
12979   dynamic_linker='GNU/Linux ld.so'
12980   ;;
12981
12982 netbsdelf*-gnu)
12983   version_type=linux
12984   need_lib_prefix=no
12985   need_version=no
12986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12987   soname_spec='${libname}${release}${shared_ext}$major'
12988   shlibpath_var=LD_LIBRARY_PATH
12989   shlibpath_overrides_runpath=no
12990   hardcode_into_libs=yes
12991   dynamic_linker='NetBSD ld.elf_so'
12992   ;;
12993
12994 netbsd*)
12995   version_type=sunos
12996   need_lib_prefix=no
12997   need_version=no
12998   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13000     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13001     dynamic_linker='NetBSD (a.out) ld.so'
13002   else
13003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13004     soname_spec='${libname}${release}${shared_ext}$major'
13005     dynamic_linker='NetBSD ld.elf_so'
13006   fi
13007   shlibpath_var=LD_LIBRARY_PATH
13008   shlibpath_overrides_runpath=yes
13009   hardcode_into_libs=yes
13010   ;;
13011
13012 newsos6)
13013   version_type=linux
13014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015   shlibpath_var=LD_LIBRARY_PATH
13016   shlibpath_overrides_runpath=yes
13017   ;;
13018
13019 nto-qnx*)
13020   version_type=linux
13021   need_lib_prefix=no
13022   need_version=no
13023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024   soname_spec='${libname}${release}${shared_ext}$major'
13025   shlibpath_var=LD_LIBRARY_PATH
13026   shlibpath_overrides_runpath=yes
13027   ;;
13028
13029 openbsd*)
13030   version_type=sunos
13031   sys_lib_dlsearch_path_spec="/usr/lib"
13032   need_lib_prefix=no
13033   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13034   case $host_os in
13035     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13036     *)                         need_version=no  ;;
13037   esac
13038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13040   shlibpath_var=LD_LIBRARY_PATH
13041   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13042     case $host_os in
13043       openbsd2.[89] | openbsd2.[89].*)
13044         shlibpath_overrides_runpath=no
13045         ;;
13046       *)
13047         shlibpath_overrides_runpath=yes
13048         ;;
13049       esac
13050   else
13051     shlibpath_overrides_runpath=yes
13052   fi
13053   ;;
13054
13055 os2*)
13056   libname_spec='$name'
13057   shrext_cmds=".dll"
13058   need_lib_prefix=no
13059   library_names_spec='$libname${shared_ext} $libname.a'
13060   dynamic_linker='OS/2 ld.exe'
13061   shlibpath_var=LIBPATH
13062   ;;
13063
13064 osf3* | osf4* | osf5*)
13065   version_type=osf
13066   need_lib_prefix=no
13067   need_version=no
13068   soname_spec='${libname}${release}${shared_ext}$major'
13069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070   shlibpath_var=LD_LIBRARY_PATH
13071   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13072   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13073   ;;
13074
13075 rdos*)
13076   dynamic_linker=no
13077   ;;
13078
13079 solaris*)
13080   version_type=linux
13081   need_lib_prefix=no
13082   need_version=no
13083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084   soname_spec='${libname}${release}${shared_ext}$major'
13085   shlibpath_var=LD_LIBRARY_PATH
13086   shlibpath_overrides_runpath=yes
13087   hardcode_into_libs=yes
13088   # ldd complains unless libraries are executable
13089   postinstall_cmds='chmod +x $lib'
13090   ;;
13091
13092 sunos4*)
13093   version_type=sunos
13094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13095   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13096   shlibpath_var=LD_LIBRARY_PATH
13097   shlibpath_overrides_runpath=yes
13098   if test "$with_gnu_ld" = yes; then
13099     need_lib_prefix=no
13100   fi
13101   need_version=yes
13102   ;;
13103
13104 sysv4 | sysv4.3*)
13105   version_type=linux
13106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13107   soname_spec='${libname}${release}${shared_ext}$major'
13108   shlibpath_var=LD_LIBRARY_PATH
13109   case $host_vendor in
13110     sni)
13111       shlibpath_overrides_runpath=no
13112       need_lib_prefix=no
13113       export_dynamic_flag_spec='${wl}-Blargedynsym'
13114       runpath_var=LD_RUN_PATH
13115       ;;
13116     siemens)
13117       need_lib_prefix=no
13118       ;;
13119     motorola)
13120       need_lib_prefix=no
13121       need_version=no
13122       shlibpath_overrides_runpath=no
13123       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13124       ;;
13125   esac
13126   ;;
13127
13128 sysv4*MP*)
13129   if test -d /usr/nec ;then
13130     version_type=linux
13131     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13132     soname_spec='$libname${shared_ext}.$major'
13133     shlibpath_var=LD_LIBRARY_PATH
13134   fi
13135   ;;
13136
13137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13138   version_type=freebsd-elf
13139   need_lib_prefix=no
13140   need_version=no
13141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13142   soname_spec='${libname}${release}${shared_ext}$major'
13143   shlibpath_var=LD_LIBRARY_PATH
13144   hardcode_into_libs=yes
13145   if test "$with_gnu_ld" = yes; then
13146     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13147     shlibpath_overrides_runpath=no
13148   else
13149     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13150     shlibpath_overrides_runpath=yes
13151     case $host_os in
13152       sco3.2v5*)
13153         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13154         ;;
13155     esac
13156   fi
13157   sys_lib_dlsearch_path_spec='/usr/lib'
13158   ;;
13159
13160 uts4*)
13161   version_type=linux
13162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13163   soname_spec='${libname}${release}${shared_ext}$major'
13164   shlibpath_var=LD_LIBRARY_PATH
13165   ;;
13166
13167 *)
13168   dynamic_linker=no
13169   ;;
13170 esac
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13172 $as_echo "$dynamic_linker" >&6; }
13173 test "$dynamic_linker" = no && can_build_shared=no
13174
13175 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13176   $as_echo_n "(cached) " >&6
13177 else
13178   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13179 fi
13180
13181 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13182 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13186 fi
13187
13188 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13189
13190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13191 if test "$GCC" = yes; then
13192   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13193 fi
13194
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13196 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13197 hardcode_action_CXX=
13198 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13199    test -n "$runpath_var_CXX" || \
13200    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13201
13202   # We can hardcode non-existant directories.
13203   if test "$hardcode_direct_CXX" != no &&
13204      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13205      # have to relink, otherwise we might link with an installed library
13206      # when we should be linking with a yet-to-be-installed one
13207      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13208      test "$hardcode_minus_L_CXX" != no; then
13209     # Linking always hardcodes the temporary library directory.
13210     hardcode_action_CXX=relink
13211   else
13212     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13213     hardcode_action_CXX=immediate
13214   fi
13215 else
13216   # We cannot hardcode anything, or else we can only hardcode existing
13217   # directories.
13218   hardcode_action_CXX=unsupported
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13221 $as_echo "$hardcode_action_CXX" >&6; }
13222
13223 if test "$hardcode_action_CXX" = relink; then
13224   # Fast installation is not supported
13225   enable_fast_install=no
13226 elif test "$shlibpath_overrides_runpath" = yes ||
13227      test "$enable_shared" = no; then
13228   # Fast installation is not necessary
13229   enable_fast_install=needless
13230 fi
13231
13232
13233 # The else clause should only fire when bootstrapping the
13234 # libtool distribution, otherwise you forgot to ship ltmain.sh
13235 # with your package, and you will get complaints that there are
13236 # no rules to generate ltmain.sh.
13237 if test -f "$ltmain"; then
13238   # See if we are running on zsh, and set the options which allow our commands through
13239   # without removal of \ escapes.
13240   if test -n "${ZSH_VERSION+set}" ; then
13241     setopt NO_GLOB_SUBST
13242   fi
13243   # Now quote all the things that may contain metacharacters while being
13244   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13245   # variables and quote the copies for generation of the libtool script.
13246   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13247     SED SHELL STRIP \
13248     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13249     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13250     deplibs_check_method reload_flag reload_cmds need_locks \
13251     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13252     lt_cv_sys_global_symbol_to_c_name_address \
13253     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13254     old_postinstall_cmds old_postuninstall_cmds \
13255     compiler_CXX \
13256     CC_CXX \
13257     LD_CXX \
13258     lt_prog_compiler_wl_CXX \
13259     lt_prog_compiler_pic_CXX \
13260     lt_prog_compiler_static_CXX \
13261     lt_prog_compiler_no_builtin_flag_CXX \
13262     export_dynamic_flag_spec_CXX \
13263     thread_safe_flag_spec_CXX \
13264     whole_archive_flag_spec_CXX \
13265     enable_shared_with_static_runtimes_CXX \
13266     old_archive_cmds_CXX \
13267     old_archive_from_new_cmds_CXX \
13268     predep_objects_CXX \
13269     postdep_objects_CXX \
13270     predeps_CXX \
13271     postdeps_CXX \
13272     compiler_lib_search_path_CXX \
13273     compiler_lib_search_dirs_CXX \
13274     archive_cmds_CXX \
13275     archive_expsym_cmds_CXX \
13276     postinstall_cmds_CXX \
13277     postuninstall_cmds_CXX \
13278     old_archive_from_expsyms_cmds_CXX \
13279     allow_undefined_flag_CXX \
13280     no_undefined_flag_CXX \
13281     export_symbols_cmds_CXX \
13282     hardcode_libdir_flag_spec_CXX \
13283     hardcode_libdir_flag_spec_ld_CXX \
13284     hardcode_libdir_separator_CXX \
13285     hardcode_automatic_CXX \
13286     module_cmds_CXX \
13287     module_expsym_cmds_CXX \
13288     lt_cv_prog_compiler_c_o_CXX \
13289     fix_srcfile_path_CXX \
13290     exclude_expsyms_CXX \
13291     include_expsyms_CXX; do
13292
13293     case $var in
13294     old_archive_cmds_CXX | \
13295     old_archive_from_new_cmds_CXX | \
13296     archive_cmds_CXX | \
13297     archive_expsym_cmds_CXX | \
13298     module_cmds_CXX | \
13299     module_expsym_cmds_CXX | \
13300     old_archive_from_expsyms_cmds_CXX | \
13301     export_symbols_cmds_CXX | \
13302     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13303     postinstall_cmds | postuninstall_cmds | \
13304     old_postinstall_cmds | old_postuninstall_cmds | \
13305     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13306       # Double-quote double-evaled strings.
13307       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13308       ;;
13309     *)
13310       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13311       ;;
13312     esac
13313   done
13314
13315   case $lt_echo in
13316   *'\$0 --fallback-echo"')
13317     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13318     ;;
13319   esac
13320
13321 cfgfile="$ofile"
13322
13323   cat <<__EOF__ >> "$cfgfile"
13324 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13325
13326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13327
13328 # Shell to use when invoking shell scripts.
13329 SHELL=$lt_SHELL
13330
13331 # Whether or not to build shared libraries.
13332 build_libtool_libs=$enable_shared
13333
13334 # Whether or not to build static libraries.
13335 build_old_libs=$enable_static
13336
13337 # Whether or not to add -lc for building shared libraries.
13338 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13339
13340 # Whether or not to disallow shared libs when runtime libs are static
13341 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13342
13343 # Whether or not to optimize for fast installation.
13344 fast_install=$enable_fast_install
13345
13346 # The host system.
13347 host_alias=$host_alias
13348 host=$host
13349 host_os=$host_os
13350
13351 # The build system.
13352 build_alias=$build_alias
13353 build=$build
13354 build_os=$build_os
13355
13356 # An echo program that does not interpret backslashes.
13357 echo=$lt_echo
13358
13359 # The archiver.
13360 AR=$lt_AR
13361 AR_FLAGS=$lt_AR_FLAGS
13362
13363 # A C compiler.
13364 LTCC=$lt_LTCC
13365
13366 # LTCC compiler flags.
13367 LTCFLAGS=$lt_LTCFLAGS
13368
13369 # A language-specific compiler.
13370 CC=$lt_compiler_CXX
13371
13372 # Is the compiler the GNU C compiler?
13373 with_gcc=$GCC_CXX
13374
13375 # An ERE matcher.
13376 EGREP=$lt_EGREP
13377
13378 # The linker used to build libraries.
13379 LD=$lt_LD_CXX
13380
13381 # Whether we need hard or soft links.
13382 LN_S=$lt_LN_S
13383
13384 # A BSD-compatible nm program.
13385 NM=$lt_NM
13386
13387 # A symbol stripping program
13388 STRIP=$lt_STRIP
13389
13390 # Used to examine libraries when file_magic_cmd begins "file"
13391 MAGIC_CMD=$MAGIC_CMD
13392
13393 # Used on cygwin: DLL creation program.
13394 DLLTOOL="$DLLTOOL"
13395
13396 # Used on cygwin: object dumper.
13397 OBJDUMP="$OBJDUMP"
13398
13399 # Used on cygwin: assembler.
13400 AS="$AS"
13401
13402 # The name of the directory that contains temporary libtool files.
13403 objdir=$objdir
13404
13405 # How to create reloadable object files.
13406 reload_flag=$lt_reload_flag
13407 reload_cmds=$lt_reload_cmds
13408
13409 # How to pass a linker flag through the compiler.
13410 wl=$lt_lt_prog_compiler_wl_CXX
13411
13412 # Object file suffix (normally "o").
13413 objext="$ac_objext"
13414
13415 # Old archive suffix (normally "a").
13416 libext="$libext"
13417
13418 # Shared library suffix (normally ".so").
13419 shrext_cmds='$shrext_cmds'
13420
13421 # Executable file suffix (normally "").
13422 exeext="$exeext"
13423
13424 # Additional compiler flags for building library objects.
13425 pic_flag=$lt_lt_prog_compiler_pic_CXX
13426 pic_mode=$pic_mode
13427
13428 # What is the maximum length of a command?
13429 max_cmd_len=$lt_cv_sys_max_cmd_len
13430
13431 # Does compiler simultaneously support -c and -o options?
13432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13433
13434 # Must we lock files when doing compilation?
13435 need_locks=$lt_need_locks
13436
13437 # Do we need the lib prefix for modules?
13438 need_lib_prefix=$need_lib_prefix
13439
13440 # Do we need a version for libraries?
13441 need_version=$need_version
13442
13443 # Whether dlopen is supported.
13444 dlopen_support=$enable_dlopen
13445
13446 # Whether dlopen of programs is supported.
13447 dlopen_self=$enable_dlopen_self
13448
13449 # Whether dlopen of statically linked programs is supported.
13450 dlopen_self_static=$enable_dlopen_self_static
13451
13452 # Compiler flag to prevent dynamic linking.
13453 link_static_flag=$lt_lt_prog_compiler_static_CXX
13454
13455 # Compiler flag to turn off builtin functions.
13456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13457
13458 # Compiler flag to allow reflexive dlopens.
13459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13460
13461 # Compiler flag to generate shared objects directly from archives.
13462 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13463
13464 # Compiler flag to generate thread-safe objects.
13465 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13466
13467 # Library versioning type.
13468 version_type=$version_type
13469
13470 # Format of library name prefix.
13471 libname_spec=$lt_libname_spec
13472
13473 # List of archive names.  First name is the real one, the rest are links.
13474 # The last name is the one that the linker finds with -lNAME.
13475 library_names_spec=$lt_library_names_spec
13476
13477 # The coded name of the library, if different from the real name.
13478 soname_spec=$lt_soname_spec
13479
13480 # Commands used to build and install an old-style archive.
13481 RANLIB=$lt_RANLIB
13482 old_archive_cmds=$lt_old_archive_cmds_CXX
13483 old_postinstall_cmds=$lt_old_postinstall_cmds
13484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13485
13486 # Create an old-style archive from a shared archive.
13487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13488
13489 # Create a temporary old-style archive to link instead of a shared archive.
13490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13491
13492 # Commands used to build and install a shared archive.
13493 archive_cmds=$lt_archive_cmds_CXX
13494 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13495 postinstall_cmds=$lt_postinstall_cmds
13496 postuninstall_cmds=$lt_postuninstall_cmds
13497
13498 # Commands used to build a loadable module (assumed same as above if empty)
13499 module_cmds=$lt_module_cmds_CXX
13500 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13501
13502 # Commands to strip libraries.
13503 old_striplib=$lt_old_striplib
13504 striplib=$lt_striplib
13505
13506 # Dependencies to place before the objects being linked to create a
13507 # shared library.
13508 predep_objects=$lt_predep_objects_CXX
13509
13510 # Dependencies to place after the objects being linked to create a
13511 # shared library.
13512 postdep_objects=$lt_postdep_objects_CXX
13513
13514 # Dependencies to place before the objects being linked to create a
13515 # shared library.
13516 predeps=$lt_predeps_CXX
13517
13518 # Dependencies to place after the objects being linked to create a
13519 # shared library.
13520 postdeps=$lt_postdeps_CXX
13521
13522 # The directories searched by this compiler when creating a shared
13523 # library
13524 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13525
13526 # The library search path used internally by the compiler when linking
13527 # a shared library.
13528 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13529
13530 # Method to check whether dependent libraries are shared objects.
13531 deplibs_check_method=$lt_deplibs_check_method
13532
13533 # Command to use when deplibs_check_method == file_magic.
13534 file_magic_cmd=$lt_file_magic_cmd
13535
13536 # Flag that allows shared libraries with undefined symbols to be built.
13537 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13538
13539 # Flag that forces no undefined symbols.
13540 no_undefined_flag=$lt_no_undefined_flag_CXX
13541
13542 # Commands used to finish a libtool library installation in a directory.
13543 finish_cmds=$lt_finish_cmds
13544
13545 # Same as above, but a single script fragment to be evaled but not shown.
13546 finish_eval=$lt_finish_eval
13547
13548 # Take the output of nm and produce a listing of raw symbols and C names.
13549 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13550
13551 # Transform the output of nm in a proper C declaration
13552 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13553
13554 # Transform the output of nm in a C name address pair
13555 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13556
13557 # This is the shared library runtime path variable.
13558 runpath_var=$runpath_var
13559
13560 # This is the shared library path variable.
13561 shlibpath_var=$shlibpath_var
13562
13563 # Is shlibpath searched before the hard-coded library search path?
13564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13565
13566 # How to hardcode a shared library path into an executable.
13567 hardcode_action=$hardcode_action_CXX
13568
13569 # Whether we should hardcode library paths into libraries.
13570 hardcode_into_libs=$hardcode_into_libs
13571
13572 # Flag to hardcode \$libdir into a binary during linking.
13573 # This must work even if \$libdir does not exist.
13574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13575
13576 # If ld is used when linking, flag to hardcode \$libdir into
13577 # a binary during linking. This must work even if \$libdir does
13578 # not exist.
13579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13580
13581 # Whether we need a single -rpath flag with a separated argument.
13582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13583
13584 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13585 # resulting binary.
13586 hardcode_direct=$hardcode_direct_CXX
13587
13588 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13589 # resulting binary.
13590 hardcode_minus_L=$hardcode_minus_L_CXX
13591
13592 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13593 # the resulting binary.
13594 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13595
13596 # Set to yes if building a shared library automatically hardcodes DIR into the library
13597 # and all subsequent libraries and executables linked against it.
13598 hardcode_automatic=$hardcode_automatic_CXX
13599
13600 # Variables whose values should be saved in libtool wrapper scripts and
13601 # restored at relink time.
13602 variables_saved_for_relink="$variables_saved_for_relink"
13603
13604 # Whether libtool must link a program against all its dependency libraries.
13605 link_all_deplibs=$link_all_deplibs_CXX
13606
13607 # Compile-time system search path for libraries
13608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13609
13610 # Run-time system search path for libraries
13611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13612
13613 # Fix the shell variable \$srcfile for the compiler.
13614 fix_srcfile_path=$lt_fix_srcfile_path
13615
13616 # Set to yes if exported symbols are required.
13617 always_export_symbols=$always_export_symbols_CXX
13618
13619 # The commands to list exported symbols.
13620 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13621
13622 # The commands to extract the exported symbol list from a shared archive.
13623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13624
13625 # Symbols that should not be listed in the preloaded symbols.
13626 exclude_expsyms=$lt_exclude_expsyms_CXX
13627
13628 # Symbols that must always be exported.
13629 include_expsyms=$lt_include_expsyms_CXX
13630
13631 # ### END LIBTOOL TAG CONFIG: $tagname
13632
13633 __EOF__
13634
13635
13636 else
13637   # If there is no Makefile yet, we rely on a make rule to execute
13638   # `config.status --recheck' to rerun these tests and create the
13639   # libtool script then.
13640   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13641   if test -f "$ltmain_in"; then
13642     test -f Makefile && make "$ltmain"
13643   fi
13644 fi
13645
13646
13647 ac_ext=c
13648 ac_cpp='$CPP $CPPFLAGS'
13649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13652
13653 CC=$lt_save_CC
13654 LDCXX=$LD
13655 LD=$lt_save_LD
13656 GCC=$lt_save_GCC
13657 with_gnu_ldcxx=$with_gnu_ld
13658 with_gnu_ld=$lt_save_with_gnu_ld
13659 lt_cv_path_LDCXX=$lt_cv_path_LD
13660 lt_cv_path_LD=$lt_save_path_LD
13661 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13662 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13663
13664         else
13665           tagname=""
13666         fi
13667         ;;
13668
13669       F77)
13670         if test -n "$F77" && test "X$F77" != "Xno"; then
13671
13672 ac_ext=f
13673 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13674 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13676
13677
13678 archive_cmds_need_lc_F77=no
13679 allow_undefined_flag_F77=
13680 always_export_symbols_F77=no
13681 archive_expsym_cmds_F77=
13682 export_dynamic_flag_spec_F77=
13683 hardcode_direct_F77=no
13684 hardcode_libdir_flag_spec_F77=
13685 hardcode_libdir_flag_spec_ld_F77=
13686 hardcode_libdir_separator_F77=
13687 hardcode_minus_L_F77=no
13688 hardcode_automatic_F77=no
13689 module_cmds_F77=
13690 module_expsym_cmds_F77=
13691 link_all_deplibs_F77=unknown
13692 old_archive_cmds_F77=$old_archive_cmds
13693 no_undefined_flag_F77=
13694 whole_archive_flag_spec_F77=
13695 enable_shared_with_static_runtimes_F77=no
13696
13697 # Source file extension for f77 test sources.
13698 ac_ext=f
13699
13700 # Object file extension for compiled f77 test sources.
13701 objext=o
13702 objext_F77=$objext
13703
13704 # Code to be used in simple compile tests
13705 lt_simple_compile_test_code="\
13706       subroutine t
13707       return
13708       end
13709 "
13710
13711 # Code to be used in simple link tests
13712 lt_simple_link_test_code="\
13713       program t
13714       end
13715 "
13716
13717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13718
13719 # If no C compiler was specified, use CC.
13720 LTCC=${LTCC-"$CC"}
13721
13722 # If no C compiler flags were specified, use CFLAGS.
13723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13724
13725 # Allow CC to be a program name with arguments.
13726 compiler=$CC
13727
13728
13729 # save warnings/boilerplate of simple test code
13730 ac_outfile=conftest.$ac_objext
13731 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13732 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13733 _lt_compiler_boilerplate=`cat conftest.err`
13734 $rm conftest*
13735
13736 ac_outfile=conftest.$ac_objext
13737 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13738 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13739 _lt_linker_boilerplate=`cat conftest.err`
13740 $rm -r conftest*
13741
13742
13743 # Allow CC to be a program name with arguments.
13744 lt_save_CC="$CC"
13745 CC=${F77-"f77"}
13746 compiler=$CC
13747 compiler_F77=$CC
13748 for cc_temp in $compiler""; do
13749   case $cc_temp in
13750     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13751     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13752     \-*) ;;
13753     *) break;;
13754   esac
13755 done
13756 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13757
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13760 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13762 $as_echo "$can_build_shared" >&6; }
13763
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13765 $as_echo_n "checking whether to build shared libraries... " >&6; }
13766 test "$can_build_shared" = "no" && enable_shared=no
13767
13768 # On AIX, shared libraries and static libraries use the same namespace, and
13769 # are all built from PIC.
13770 case $host_os in
13771 aix3*)
13772   test "$enable_shared" = yes && enable_static=no
13773   if test -n "$RANLIB"; then
13774     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13775     postinstall_cmds='$RANLIB $lib'
13776   fi
13777   ;;
13778 aix[4-9]*)
13779   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13780     test "$enable_shared" = yes && enable_static=no
13781   fi
13782   ;;
13783 esac
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13785 $as_echo "$enable_shared" >&6; }
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13788 $as_echo_n "checking whether to build static libraries... " >&6; }
13789 # Make sure either enable_shared or enable_static is yes.
13790 test "$enable_shared" = yes || enable_static=yes
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13792 $as_echo "$enable_static" >&6; }
13793
13794 GCC_F77="$G77"
13795 LD_F77="$LD"
13796
13797 lt_prog_compiler_wl_F77=
13798 lt_prog_compiler_pic_F77=
13799 lt_prog_compiler_static_F77=
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13802 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13803
13804   if test "$GCC" = yes; then
13805     lt_prog_compiler_wl_F77='-Wl,'
13806     lt_prog_compiler_static_F77='-static'
13807
13808     case $host_os in
13809       aix*)
13810       # All AIX code is PIC.
13811       if test "$host_cpu" = ia64; then
13812         # AIX 5 now supports IA64 processor
13813         lt_prog_compiler_static_F77='-Bstatic'
13814       fi
13815       ;;
13816
13817     amigaos*)
13818       # FIXME: we need at least 68020 code to build shared libraries, but
13819       # adding the `-m68020' flag to GCC prevents building anything better,
13820       # like `-m68040'.
13821       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13822       ;;
13823
13824     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13825       # PIC is the default for these OSes.
13826       ;;
13827
13828     mingw* | cygwin* | pw32* | os2*)
13829       # This hack is so that the source file can tell whether it is being
13830       # built for inclusion in a dll (and should export symbols for example).
13831       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13832       # (--disable-auto-import) libraries
13833       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13834       ;;
13835
13836     darwin* | rhapsody*)
13837       # PIC is the default on this platform
13838       # Common symbols not allowed in MH_DYLIB files
13839       lt_prog_compiler_pic_F77='-fno-common'
13840       ;;
13841
13842     interix[3-9]*)
13843       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13844       # Instead, we relocate shared libraries at runtime.
13845       ;;
13846
13847     msdosdjgpp*)
13848       # Just because we use GCC doesn't mean we suddenly get shared libraries
13849       # on systems that don't support them.
13850       lt_prog_compiler_can_build_shared_F77=no
13851       enable_shared=no
13852       ;;
13853
13854     sysv4*MP*)
13855       if test -d /usr/nec; then
13856         lt_prog_compiler_pic_F77=-Kconform_pic
13857       fi
13858       ;;
13859
13860     hpux*)
13861       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13862       # not for PA HP-UX.
13863       case $host_cpu in
13864       hppa*64*|ia64*)
13865         # +Z the default
13866         ;;
13867       *)
13868         lt_prog_compiler_pic_F77='-fPIC'
13869         ;;
13870       esac
13871       ;;
13872
13873     *)
13874       lt_prog_compiler_pic_F77='-fPIC'
13875       ;;
13876     esac
13877   else
13878     # PORTME Check for flag to pass linker flags through the system compiler.
13879     case $host_os in
13880     aix*)
13881       lt_prog_compiler_wl_F77='-Wl,'
13882       if test "$host_cpu" = ia64; then
13883         # AIX 5 now supports IA64 processor
13884         lt_prog_compiler_static_F77='-Bstatic'
13885       else
13886         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13887       fi
13888       ;;
13889       darwin*)
13890         # PIC is the default on this platform
13891         # Common symbols not allowed in MH_DYLIB files
13892        case $cc_basename in
13893          xlc*)
13894          lt_prog_compiler_pic_F77='-qnocommon'
13895          lt_prog_compiler_wl_F77='-Wl,'
13896          ;;
13897        esac
13898        ;;
13899
13900     mingw* | cygwin* | pw32* | os2*)
13901       # This hack is so that the source file can tell whether it is being
13902       # built for inclusion in a dll (and should export symbols for example).
13903       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13904       ;;
13905
13906     hpux9* | hpux10* | hpux11*)
13907       lt_prog_compiler_wl_F77='-Wl,'
13908       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13909       # not for PA HP-UX.
13910       case $host_cpu in
13911       hppa*64*|ia64*)
13912         # +Z the default
13913         ;;
13914       *)
13915         lt_prog_compiler_pic_F77='+Z'
13916         ;;
13917       esac
13918       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13919       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13920       ;;
13921
13922     irix5* | irix6* | nonstopux*)
13923       lt_prog_compiler_wl_F77='-Wl,'
13924       # PIC (with -KPIC) is the default.
13925       lt_prog_compiler_static_F77='-non_shared'
13926       ;;
13927
13928     newsos6)
13929       lt_prog_compiler_pic_F77='-KPIC'
13930       lt_prog_compiler_static_F77='-Bstatic'
13931       ;;
13932
13933     linux* | k*bsd*-gnu)
13934       case $cc_basename in
13935       icc* | ecc*)
13936         lt_prog_compiler_wl_F77='-Wl,'
13937         lt_prog_compiler_pic_F77='-KPIC'
13938         lt_prog_compiler_static_F77='-static'
13939         ;;
13940       pgcc* | pgf77* | pgf90* | pgf95*)
13941         # Portland Group compilers (*not* the Pentium gcc compiler,
13942         # which looks to be a dead project)
13943         lt_prog_compiler_wl_F77='-Wl,'
13944         lt_prog_compiler_pic_F77='-fpic'
13945         lt_prog_compiler_static_F77='-Bstatic'
13946         ;;
13947       ccc*)
13948         lt_prog_compiler_wl_F77='-Wl,'
13949         # All Alpha code is PIC.
13950         lt_prog_compiler_static_F77='-non_shared'
13951         ;;
13952       *)
13953         case `$CC -V 2>&1 | sed 5q` in
13954         *Sun\ C*)
13955           # Sun C 5.9
13956           lt_prog_compiler_pic_F77='-KPIC'
13957           lt_prog_compiler_static_F77='-Bstatic'
13958           lt_prog_compiler_wl_F77='-Wl,'
13959           ;;
13960         *Sun\ F*)
13961           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13962           lt_prog_compiler_pic_F77='-KPIC'
13963           lt_prog_compiler_static_F77='-Bstatic'
13964           lt_prog_compiler_wl_F77=''
13965           ;;
13966         esac
13967         ;;
13968       esac
13969       ;;
13970
13971     osf3* | osf4* | osf5*)
13972       lt_prog_compiler_wl_F77='-Wl,'
13973       # All OSF/1 code is PIC.
13974       lt_prog_compiler_static_F77='-non_shared'
13975       ;;
13976
13977     rdos*)
13978       lt_prog_compiler_static_F77='-non_shared'
13979       ;;
13980
13981     solaris*)
13982       lt_prog_compiler_pic_F77='-KPIC'
13983       lt_prog_compiler_static_F77='-Bstatic'
13984       case $cc_basename in
13985       f77* | f90* | f95*)
13986         lt_prog_compiler_wl_F77='-Qoption ld ';;
13987       *)
13988         lt_prog_compiler_wl_F77='-Wl,';;
13989       esac
13990       ;;
13991
13992     sunos4*)
13993       lt_prog_compiler_wl_F77='-Qoption ld '
13994       lt_prog_compiler_pic_F77='-PIC'
13995       lt_prog_compiler_static_F77='-Bstatic'
13996       ;;
13997
13998     sysv4 | sysv4.2uw2* | sysv4.3*)
13999       lt_prog_compiler_wl_F77='-Wl,'
14000       lt_prog_compiler_pic_F77='-KPIC'
14001       lt_prog_compiler_static_F77='-Bstatic'
14002       ;;
14003
14004     sysv4*MP*)
14005       if test -d /usr/nec ;then
14006         lt_prog_compiler_pic_F77='-Kconform_pic'
14007         lt_prog_compiler_static_F77='-Bstatic'
14008       fi
14009       ;;
14010
14011     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14012       lt_prog_compiler_wl_F77='-Wl,'
14013       lt_prog_compiler_pic_F77='-KPIC'
14014       lt_prog_compiler_static_F77='-Bstatic'
14015       ;;
14016
14017     unicos*)
14018       lt_prog_compiler_wl_F77='-Wl,'
14019       lt_prog_compiler_can_build_shared_F77=no
14020       ;;
14021
14022     uts4*)
14023       lt_prog_compiler_pic_F77='-pic'
14024       lt_prog_compiler_static_F77='-Bstatic'
14025       ;;
14026
14027     *)
14028       lt_prog_compiler_can_build_shared_F77=no
14029       ;;
14030     esac
14031   fi
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14034 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14035
14036 #
14037 # Check to make sure the PIC flag actually works.
14038 #
14039 if test -n "$lt_prog_compiler_pic_F77"; then
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14042 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14043 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14044   $as_echo_n "(cached) " >&6
14045 else
14046   lt_cv_prog_compiler_pic_works_F77=no
14047   ac_outfile=conftest.$ac_objext
14048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14049    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14050    # Insert the option either (1) after the last *FLAGS variable, or
14051    # (2) before a word containing "conftest.", or (3) at the end.
14052    # Note that $ac_compile itself does not contain backslashes and begins
14053    # with a dollar sign (not a hyphen), so the echo should work correctly.
14054    # The option is referenced via a variable to avoid confusing sed.
14055    lt_compile=`echo "$ac_compile" | $SED \
14056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058    -e 's:$: $lt_compiler_flag:'`
14059    (eval echo "\"\$as_me:14059: $lt_compile\"" >&5)
14060    (eval "$lt_compile" 2>conftest.err)
14061    ac_status=$?
14062    cat conftest.err >&5
14063    echo "$as_me:14063: \$? = $ac_status" >&5
14064    if (exit $ac_status) && test -s "$ac_outfile"; then
14065      # The compiler can only warn and ignore the option if not recognized
14066      # So say no if there are warnings other than the usual output.
14067      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14068      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14069      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14070        lt_cv_prog_compiler_pic_works_F77=yes
14071      fi
14072    fi
14073    $rm conftest*
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14077 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14078
14079 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14080     case $lt_prog_compiler_pic_F77 in
14081      "" | " "*) ;;
14082      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14083      esac
14084 else
14085     lt_prog_compiler_pic_F77=
14086      lt_prog_compiler_can_build_shared_F77=no
14087 fi
14088
14089 fi
14090 case $host_os in
14091   # For platforms which do not support PIC, -DPIC is meaningless:
14092   *djgpp*)
14093     lt_prog_compiler_pic_F77=
14094     ;;
14095   *)
14096     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14097     ;;
14098 esac
14099
14100 #
14101 # Check to make sure the static flag actually works.
14102 #
14103 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14105 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14106 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14107   $as_echo_n "(cached) " >&6
14108 else
14109   lt_cv_prog_compiler_static_works_F77=no
14110    save_LDFLAGS="$LDFLAGS"
14111    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14112    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14113    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14114      # The linker can only warn and ignore the option if not recognized
14115      # So say no if there are warnings
14116      if test -s conftest.err; then
14117        # Append any errors to the config.log.
14118        cat conftest.err 1>&5
14119        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14120        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14121        if diff conftest.exp conftest.er2 >/dev/null; then
14122          lt_cv_prog_compiler_static_works_F77=yes
14123        fi
14124      else
14125        lt_cv_prog_compiler_static_works_F77=yes
14126      fi
14127    fi
14128    $rm -r conftest*
14129    LDFLAGS="$save_LDFLAGS"
14130
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14133 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14134
14135 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14136     :
14137 else
14138     lt_prog_compiler_static_F77=
14139 fi
14140
14141
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14144 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14145   $as_echo_n "(cached) " >&6
14146 else
14147   lt_cv_prog_compiler_c_o_F77=no
14148    $rm -r conftest 2>/dev/null
14149    mkdir conftest
14150    cd conftest
14151    mkdir out
14152    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14153
14154    lt_compiler_flag="-o out/conftest2.$ac_objext"
14155    # Insert the option either (1) after the last *FLAGS variable, or
14156    # (2) before a word containing "conftest.", or (3) at the end.
14157    # Note that $ac_compile itself does not contain backslashes and begins
14158    # with a dollar sign (not a hyphen), so the echo should work correctly.
14159    lt_compile=`echo "$ac_compile" | $SED \
14160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14162    -e 's:$: $lt_compiler_flag:'`
14163    (eval echo "\"\$as_me:14163: $lt_compile\"" >&5)
14164    (eval "$lt_compile" 2>out/conftest.err)
14165    ac_status=$?
14166    cat out/conftest.err >&5
14167    echo "$as_me:14167: \$? = $ac_status" >&5
14168    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14169    then
14170      # The compiler can only warn and ignore the option if not recognized
14171      # So say no if there are warnings
14172      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14173      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14174      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14175        lt_cv_prog_compiler_c_o_F77=yes
14176      fi
14177    fi
14178    chmod u+w . 2>&5
14179    $rm conftest*
14180    # SGI C++ compiler will create directory out/ii_files/ for
14181    # template instantiation
14182    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14183    $rm out/* && rmdir out
14184    cd ..
14185    rmdir conftest
14186    $rm conftest*
14187
14188 fi
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14190 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14191
14192
14193 hard_links="nottested"
14194 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14195   # do not overwrite the value of need_locks provided by the user
14196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14197 $as_echo_n "checking if we can lock with hard links... " >&6; }
14198   hard_links=yes
14199   $rm conftest*
14200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14201   touch conftest.a
14202   ln conftest.a conftest.b 2>&5 || hard_links=no
14203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14205 $as_echo "$hard_links" >&6; }
14206   if test "$hard_links" = no; then
14207     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14208 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14209     need_locks=warn
14210   fi
14211 else
14212   need_locks=no
14213 fi
14214
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14216 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14217
14218   runpath_var=
14219   allow_undefined_flag_F77=
14220   enable_shared_with_static_runtimes_F77=no
14221   archive_cmds_F77=
14222   archive_expsym_cmds_F77=
14223   old_archive_From_new_cmds_F77=
14224   old_archive_from_expsyms_cmds_F77=
14225   export_dynamic_flag_spec_F77=
14226   whole_archive_flag_spec_F77=
14227   thread_safe_flag_spec_F77=
14228   hardcode_libdir_flag_spec_F77=
14229   hardcode_libdir_flag_spec_ld_F77=
14230   hardcode_libdir_separator_F77=
14231   hardcode_direct_F77=no
14232   hardcode_minus_L_F77=no
14233   hardcode_shlibpath_var_F77=unsupported
14234   link_all_deplibs_F77=unknown
14235   hardcode_automatic_F77=no
14236   module_cmds_F77=
14237   module_expsym_cmds_F77=
14238   always_export_symbols_F77=no
14239   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14240   # include_expsyms should be a list of space-separated symbols to be *always*
14241   # included in the symbol list
14242   include_expsyms_F77=
14243   # exclude_expsyms can be an extended regexp of symbols to exclude
14244   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14245   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14246   # as well as any symbol that contains `d'.
14247   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14248   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14249   # platforms (ab)use it in PIC code, but their linkers get confused if
14250   # the symbol is explicitly referenced.  Since portable code cannot
14251   # rely on this symbol name, it's probably fine to never include it in
14252   # preloaded symbol tables.
14253   # Exclude shared library initialization/finalization symbols.
14254   extract_expsyms_cmds=
14255   # Just being paranoid about ensuring that cc_basename is set.
14256   for cc_temp in $compiler""; do
14257   case $cc_temp in
14258     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14260     \-*) ;;
14261     *) break;;
14262   esac
14263 done
14264 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14265
14266   case $host_os in
14267   cygwin* | mingw* | pw32*)
14268     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14269     # When not using gcc, we currently assume that we are using
14270     # Microsoft Visual C++.
14271     if test "$GCC" != yes; then
14272       with_gnu_ld=no
14273     fi
14274     ;;
14275   interix*)
14276     # we just hope/assume this is gcc and not c89 (= MSVC++)
14277     with_gnu_ld=yes
14278     ;;
14279   openbsd*)
14280     with_gnu_ld=no
14281     ;;
14282   esac
14283
14284   ld_shlibs_F77=yes
14285   if test "$with_gnu_ld" = yes; then
14286     # If archive_cmds runs LD, not CC, wlarc should be empty
14287     wlarc='${wl}'
14288
14289     # Set some defaults for GNU ld with shared library support. These
14290     # are reset later if shared libraries are not supported. Putting them
14291     # here allows them to be overridden if necessary.
14292     runpath_var=LD_RUN_PATH
14293     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14294     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14295     # ancient GNU ld didn't support --whole-archive et. al.
14296     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14297         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14298       else
14299         whole_archive_flag_spec_F77=
14300     fi
14301     supports_anon_versioning=no
14302     case `$LD -v 2>/dev/null` in
14303       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14304       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14305       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14306       *\ 2.11.*) ;; # other 2.11 versions
14307       *) supports_anon_versioning=yes ;;
14308     esac
14309
14310     # See if GNU ld supports shared libraries.
14311     case $host_os in
14312     aix[3-9]*)
14313       # On AIX/PPC, the GNU linker is very broken
14314       if test "$host_cpu" != ia64; then
14315         ld_shlibs_F77=no
14316         cat <<EOF 1>&2
14317
14318 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14319 *** to be unable to reliably create shared libraries on AIX.
14320 *** Therefore, libtool is disabling shared libraries support.  If you
14321 *** really care for shared libraries, you may want to modify your PATH
14322 *** so that a non-GNU linker is found, and then restart.
14323
14324 EOF
14325       fi
14326       ;;
14327
14328     amigaos*)
14329       archive_cmds_F77='$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)'
14330       hardcode_libdir_flag_spec_F77='-L$libdir'
14331       hardcode_minus_L_F77=yes
14332
14333       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14334       # that the semantics of dynamic libraries on AmigaOS, at least up
14335       # to version 4, is to share data among multiple programs linked
14336       # with the same dynamic library.  Since this doesn't match the
14337       # behavior of shared libraries on other platforms, we can't use
14338       # them.
14339       ld_shlibs_F77=no
14340       ;;
14341
14342     beos*)
14343       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14344         allow_undefined_flag_F77=unsupported
14345         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14346         # support --undefined.  This deserves some investigation.  FIXME
14347         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14348       else
14349         ld_shlibs_F77=no
14350       fi
14351       ;;
14352
14353     cygwin* | mingw* | pw32*)
14354       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14355       # as there is no search path for DLLs.
14356       hardcode_libdir_flag_spec_F77='-L$libdir'
14357       allow_undefined_flag_F77=unsupported
14358       always_export_symbols_F77=no
14359       enable_shared_with_static_runtimes_F77=yes
14360       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14361
14362       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14363         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14364         # If the export-symbols file already is a .def file (1st line
14365         # is EXPORTS), use it as is; otherwise, prepend...
14366         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14367           cp $export_symbols $output_objdir/$soname.def;
14368         else
14369           echo EXPORTS > $output_objdir/$soname.def;
14370           cat $export_symbols >> $output_objdir/$soname.def;
14371         fi~
14372         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14373       else
14374         ld_shlibs_F77=no
14375       fi
14376       ;;
14377
14378     interix[3-9]*)
14379       hardcode_direct_F77=no
14380       hardcode_shlibpath_var_F77=no
14381       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14382       export_dynamic_flag_spec_F77='${wl}-E'
14383       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14384       # Instead, shared libraries are loaded at an image base (0x10000000 by
14385       # default) and relocated if they conflict, which is a slow very memory
14386       # consuming and fragmenting process.  To avoid this, we pick a random,
14387       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14388       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14389       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14390       archive_expsym_cmds_F77='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'
14391       ;;
14392
14393     gnu* | linux* | k*bsd*-gnu)
14394       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14395         tmp_addflag=
14396         case $cc_basename,$host_cpu in
14397         pgcc*)                          # Portland Group C compiler
14398           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14399           tmp_addflag=' $pic_flag'
14400           ;;
14401         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14402           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14403           tmp_addflag=' $pic_flag -Mnomain' ;;
14404         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14405           tmp_addflag=' -i_dynamic' ;;
14406         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14407           tmp_addflag=' -i_dynamic -nofor_main' ;;
14408         ifc* | ifort*)                  # Intel Fortran compiler
14409           tmp_addflag=' -nofor_main' ;;
14410         esac
14411         case `$CC -V 2>&1 | sed 5q` in
14412         *Sun\ C*)                       # Sun C 5.9
14413           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14414           tmp_sharedflag='-G' ;;
14415         *Sun\ F*)                       # Sun Fortran 8.3
14416           tmp_sharedflag='-G' ;;
14417         *)
14418           tmp_sharedflag='-shared' ;;
14419         esac
14420         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14421
14422         if test $supports_anon_versioning = yes; then
14423           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14424   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14425   $echo "local: *; };" >> $output_objdir/$libname.ver~
14426           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14427         fi
14428         link_all_deplibs_F77=no
14429       else
14430         ld_shlibs_F77=no
14431       fi
14432       ;;
14433
14434     netbsd* | netbsdelf*-gnu)
14435       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14436         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14437         wlarc=
14438       else
14439         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14440         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14441       fi
14442       ;;
14443
14444     solaris*)
14445       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14446         ld_shlibs_F77=no
14447         cat <<EOF 1>&2
14448
14449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14450 *** create shared libraries on Solaris systems.  Therefore, libtool
14451 *** is disabling shared libraries support.  We urge you to upgrade GNU
14452 *** binutils to release 2.9.1 or newer.  Another option is to modify
14453 *** your PATH or compiler configuration so that the native linker is
14454 *** used, and then restart.
14455
14456 EOF
14457       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14458         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14460       else
14461         ld_shlibs_F77=no
14462       fi
14463       ;;
14464
14465     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14466       case `$LD -v 2>&1` in
14467         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14468         ld_shlibs_F77=no
14469         cat <<_LT_EOF 1>&2
14470
14471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14472 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14473 *** is disabling shared libraries support.  We urge you to upgrade GNU
14474 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14475 *** your PATH or compiler configuration so that the native linker is
14476 *** used, and then restart.
14477
14478 _LT_EOF
14479         ;;
14480         *)
14481           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14482             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14483             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14484             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14485           else
14486             ld_shlibs_F77=no
14487           fi
14488         ;;
14489       esac
14490       ;;
14491
14492     sunos4*)
14493       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14494       wlarc=
14495       hardcode_direct_F77=yes
14496       hardcode_shlibpath_var_F77=no
14497       ;;
14498
14499     *)
14500       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14501         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14503       else
14504         ld_shlibs_F77=no
14505       fi
14506       ;;
14507     esac
14508
14509     if test "$ld_shlibs_F77" = no; then
14510       runpath_var=
14511       hardcode_libdir_flag_spec_F77=
14512       export_dynamic_flag_spec_F77=
14513       whole_archive_flag_spec_F77=
14514     fi
14515   else
14516     # PORTME fill in a description of your system's linker (not GNU ld)
14517     case $host_os in
14518     aix3*)
14519       allow_undefined_flag_F77=unsupported
14520       always_export_symbols_F77=yes
14521       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14522       # Note: this linker hardcodes the directories in LIBPATH if there
14523       # are no directories specified by -L.
14524       hardcode_minus_L_F77=yes
14525       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14526         # Neither direct hardcoding nor static linking is supported with a
14527         # broken collect2.
14528         hardcode_direct_F77=unsupported
14529       fi
14530       ;;
14531
14532     aix[4-9]*)
14533       if test "$host_cpu" = ia64; then
14534         # On IA64, the linker does run time linking by default, so we don't
14535         # have to do anything special.
14536         aix_use_runtimelinking=no
14537         exp_sym_flag='-Bexport'
14538         no_entry_flag=""
14539       else
14540         # If we're using GNU nm, then we don't want the "-C" option.
14541         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14542         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14543           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14544         else
14545           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14546         fi
14547         aix_use_runtimelinking=no
14548
14549         # Test if we are trying to use run time linking or normal
14550         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14551         # need to do runtime linking.
14552         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14553           for ld_flag in $LDFLAGS; do
14554           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14555             aix_use_runtimelinking=yes
14556             break
14557           fi
14558           done
14559           ;;
14560         esac
14561
14562         exp_sym_flag='-bexport'
14563         no_entry_flag='-bnoentry'
14564       fi
14565
14566       # When large executables or shared objects are built, AIX ld can
14567       # have problems creating the table of contents.  If linking a library
14568       # or program results in "error TOC overflow" add -mminimal-toc to
14569       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14570       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14571
14572       archive_cmds_F77=''
14573       hardcode_direct_F77=yes
14574       hardcode_libdir_separator_F77=':'
14575       link_all_deplibs_F77=yes
14576
14577       if test "$GCC" = yes; then
14578         case $host_os in aix4.[012]|aix4.[012].*)
14579         # We only want to do this on AIX 4.2 and lower, the check
14580         # below for broken collect2 doesn't work under 4.3+
14581           collect2name=`${CC} -print-prog-name=collect2`
14582           if test -f "$collect2name" && \
14583            strings "$collect2name" | grep resolve_lib_name >/dev/null
14584           then
14585           # We have reworked collect2
14586           :
14587           else
14588           # We have old collect2
14589           hardcode_direct_F77=unsupported
14590           # It fails to find uninstalled libraries when the uninstalled
14591           # path is not listed in the libpath.  Setting hardcode_minus_L
14592           # to unsupported forces relinking
14593           hardcode_minus_L_F77=yes
14594           hardcode_libdir_flag_spec_F77='-L$libdir'
14595           hardcode_libdir_separator_F77=
14596           fi
14597           ;;
14598         esac
14599         shared_flag='-shared'
14600         if test "$aix_use_runtimelinking" = yes; then
14601           shared_flag="$shared_flag "'${wl}-G'
14602         fi
14603       else
14604         # not using gcc
14605         if test "$host_cpu" = ia64; then
14606         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14607         # chokes on -Wl,-G. The following line is correct:
14608           shared_flag='-G'
14609         else
14610           if test "$aix_use_runtimelinking" = yes; then
14611             shared_flag='${wl}-G'
14612           else
14613             shared_flag='${wl}-bM:SRE'
14614           fi
14615         fi
14616       fi
14617
14618       # It seems that -bexpall does not export symbols beginning with
14619       # underscore (_), so it is better to generate a list of symbols to export.
14620       always_export_symbols_F77=yes
14621       if test "$aix_use_runtimelinking" = yes; then
14622         # Warning - without using the other runtime loading flags (-brtl),
14623         # -berok will link without error, but may produce a broken library.
14624         allow_undefined_flag_F77='-berok'
14625        # Determine the default libpath from the value encoded in an empty executable.
14626        cat > conftest.$ac_ext <<_ACEOF
14627       program main
14628
14629       end
14630 _ACEOF
14631 if ac_fn_f77_try_link "$LINENO"; then :
14632
14633 lt_aix_libpath_sed='
14634     /Import File Strings/,/^$/ {
14635         /^0/ {
14636             s/^0  *\(.*\)$/\1/
14637             p
14638         }
14639     }'
14640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14641 # Check for a 64-bit object if we didn't find anything.
14642 if test -z "$aix_libpath"; then
14643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14644 fi
14645 fi
14646 rm -f core conftest.err conftest.$ac_objext \
14647     conftest$ac_exeext conftest.$ac_ext
14648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14649
14650        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14651         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14652        else
14653         if test "$host_cpu" = ia64; then
14654           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14655           allow_undefined_flag_F77="-z nodefs"
14656           archive_expsym_cmds_F77="\$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"
14657         else
14658          # Determine the default libpath from the value encoded in an empty executable.
14659          cat > conftest.$ac_ext <<_ACEOF
14660       program main
14661
14662       end
14663 _ACEOF
14664 if ac_fn_f77_try_link "$LINENO"; then :
14665
14666 lt_aix_libpath_sed='
14667     /Import File Strings/,/^$/ {
14668         /^0/ {
14669             s/^0  *\(.*\)$/\1/
14670             p
14671         }
14672     }'
14673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14674 # Check for a 64-bit object if we didn't find anything.
14675 if test -z "$aix_libpath"; then
14676   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14677 fi
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext \
14680     conftest$ac_exeext conftest.$ac_ext
14681 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14682
14683          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14684           # Warning - without using the other run time loading flags,
14685           # -berok will link without error, but may produce a broken library.
14686           no_undefined_flag_F77=' ${wl}-bernotok'
14687           allow_undefined_flag_F77=' ${wl}-berok'
14688           # Exported symbols can be pulled into shared objects from archives
14689           whole_archive_flag_spec_F77='$convenience'
14690           archive_cmds_need_lc_F77=yes
14691           # This is similar to how AIX traditionally builds its shared libraries.
14692           archive_expsym_cmds_F77="\$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'
14693         fi
14694       fi
14695       ;;
14696
14697     amigaos*)
14698       archive_cmds_F77='$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)'
14699       hardcode_libdir_flag_spec_F77='-L$libdir'
14700       hardcode_minus_L_F77=yes
14701       # see comment about different semantics on the GNU ld section
14702       ld_shlibs_F77=no
14703       ;;
14704
14705     bsdi[45]*)
14706       export_dynamic_flag_spec_F77=-rdynamic
14707       ;;
14708
14709     cygwin* | mingw* | pw32*)
14710       # When not using gcc, we currently assume that we are using
14711       # Microsoft Visual C++.
14712       # hardcode_libdir_flag_spec is actually meaningless, as there is
14713       # no search path for DLLs.
14714       hardcode_libdir_flag_spec_F77=' '
14715       allow_undefined_flag_F77=unsupported
14716       # Tell ltmain to make .lib files, not .a files.
14717       libext=lib
14718       # Tell ltmain to make .dll files, not .so files.
14719       shrext_cmds=".dll"
14720       # FIXME: Setting linknames here is a bad hack.
14721       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14722       # The linker will automatically build a .lib file if we build a DLL.
14723       old_archive_From_new_cmds_F77='true'
14724       # FIXME: Should let the user specify the lib program.
14725       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14726       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14727       enable_shared_with_static_runtimes_F77=yes
14728       ;;
14729
14730     darwin* | rhapsody*)
14731       case $host_os in
14732         rhapsody* | darwin1.[012])
14733          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14734          ;;
14735        *) # Darwin 1.3 on
14736          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14737            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14738          else
14739            case ${MACOSX_DEPLOYMENT_TARGET} in
14740              10.[012])
14741                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14742                ;;
14743              10.*)
14744                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14745                ;;
14746            esac
14747          fi
14748          ;;
14749       esac
14750       archive_cmds_need_lc_F77=no
14751       hardcode_direct_F77=no
14752       hardcode_automatic_F77=yes
14753       hardcode_shlibpath_var_F77=unsupported
14754       whole_archive_flag_spec_F77=''
14755       link_all_deplibs_F77=yes
14756     if test "$GCC" = yes ; then
14757         output_verbose_link_cmd='echo'
14758         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14759         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14760         archive_expsym_cmds_F77="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}"
14761         module_expsym_cmds_F77="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}"
14762     else
14763       case $cc_basename in
14764         xlc*)
14765          output_verbose_link_cmd='echo'
14766          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14767          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14768           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14769          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14770           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14771           ;;
14772        *)
14773          ld_shlibs_F77=no
14774           ;;
14775       esac
14776     fi
14777       ;;
14778
14779     dgux*)
14780       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14781       hardcode_libdir_flag_spec_F77='-L$libdir'
14782       hardcode_shlibpath_var_F77=no
14783       ;;
14784
14785     freebsd1*)
14786       ld_shlibs_F77=no
14787       ;;
14788
14789     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14790     # support.  Future versions do this automatically, but an explicit c++rt0.o
14791     # does not break anything, and helps significantly (at the cost of a little
14792     # extra space).
14793     freebsd2.2*)
14794       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14795       hardcode_libdir_flag_spec_F77='-R$libdir'
14796       hardcode_direct_F77=yes
14797       hardcode_shlibpath_var_F77=no
14798       ;;
14799
14800     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14801     freebsd2*)
14802       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14803       hardcode_direct_F77=yes
14804       hardcode_minus_L_F77=yes
14805       hardcode_shlibpath_var_F77=no
14806       ;;
14807
14808     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14809     freebsd* | dragonfly*)
14810       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14811       hardcode_libdir_flag_spec_F77='-R$libdir'
14812       hardcode_direct_F77=yes
14813       hardcode_shlibpath_var_F77=no
14814       ;;
14815
14816     hpux9*)
14817       if test "$GCC" = yes; then
14818         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14819       else
14820         archive_cmds_F77='$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'
14821       fi
14822       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14823       hardcode_libdir_separator_F77=:
14824       hardcode_direct_F77=yes
14825
14826       # hardcode_minus_L: Not really in the search PATH,
14827       # but as the default location of the library.
14828       hardcode_minus_L_F77=yes
14829       export_dynamic_flag_spec_F77='${wl}-E'
14830       ;;
14831
14832     hpux10*)
14833       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14834         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14835       else
14836         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14837       fi
14838       if test "$with_gnu_ld" = no; then
14839         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14840         hardcode_libdir_separator_F77=:
14841
14842         hardcode_direct_F77=yes
14843         export_dynamic_flag_spec_F77='${wl}-E'
14844
14845         # hardcode_minus_L: Not really in the search PATH,
14846         # but as the default location of the library.
14847         hardcode_minus_L_F77=yes
14848       fi
14849       ;;
14850
14851     hpux11*)
14852       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14853         case $host_cpu in
14854         hppa*64*)
14855           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14856           ;;
14857         ia64*)
14858           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14859           ;;
14860         *)
14861           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14862           ;;
14863         esac
14864       else
14865         case $host_cpu in
14866         hppa*64*)
14867           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14868           ;;
14869         ia64*)
14870           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14871           ;;
14872         *)
14873           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14874           ;;
14875         esac
14876       fi
14877       if test "$with_gnu_ld" = no; then
14878         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14879         hardcode_libdir_separator_F77=:
14880
14881         case $host_cpu in
14882         hppa*64*|ia64*)
14883           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14884           hardcode_direct_F77=no
14885           hardcode_shlibpath_var_F77=no
14886           ;;
14887         *)
14888           hardcode_direct_F77=yes
14889           export_dynamic_flag_spec_F77='${wl}-E'
14890
14891           # hardcode_minus_L: Not really in the search PATH,
14892           # but as the default location of the library.
14893           hardcode_minus_L_F77=yes
14894           ;;
14895         esac
14896       fi
14897       ;;
14898
14899     irix5* | irix6* | nonstopux*)
14900       if test "$GCC" = yes; then
14901         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14902       else
14903         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14904         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14905       fi
14906       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14907       hardcode_libdir_separator_F77=:
14908       link_all_deplibs_F77=yes
14909       ;;
14910
14911     netbsd* | netbsdelf*-gnu)
14912       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14913         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14914       else
14915         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14916       fi
14917       hardcode_libdir_flag_spec_F77='-R$libdir'
14918       hardcode_direct_F77=yes
14919       hardcode_shlibpath_var_F77=no
14920       ;;
14921
14922     newsos6)
14923       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14924       hardcode_direct_F77=yes
14925       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14926       hardcode_libdir_separator_F77=:
14927       hardcode_shlibpath_var_F77=no
14928       ;;
14929
14930     openbsd*)
14931       if test -f /usr/libexec/ld.so; then
14932         hardcode_direct_F77=yes
14933         hardcode_shlibpath_var_F77=no
14934         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14935           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14936           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14937           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14938           export_dynamic_flag_spec_F77='${wl}-E'
14939         else
14940           case $host_os in
14941            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14942              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14943              hardcode_libdir_flag_spec_F77='-R$libdir'
14944              ;;
14945            *)
14946              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14947              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14948              ;;
14949           esac
14950         fi
14951       else
14952         ld_shlibs_F77=no
14953       fi
14954       ;;
14955
14956     os2*)
14957       hardcode_libdir_flag_spec_F77='-L$libdir'
14958       hardcode_minus_L_F77=yes
14959       allow_undefined_flag_F77=unsupported
14960       archive_cmds_F77='$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'
14961       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14962       ;;
14963
14964     osf3*)
14965       if test "$GCC" = yes; then
14966         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14967         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14968       else
14969         allow_undefined_flag_F77=' -expect_unresolved \*'
14970         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14971       fi
14972       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14973       hardcode_libdir_separator_F77=:
14974       ;;
14975
14976     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14977       if test "$GCC" = yes; then
14978         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14979         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14980         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14981       else
14982         allow_undefined_flag_F77=' -expect_unresolved \*'
14983         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14984         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14985         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14986
14987         # Both c and cxx compiler support -rpath directly
14988         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14989       fi
14990       hardcode_libdir_separator_F77=:
14991       ;;
14992
14993     solaris*)
14994       no_undefined_flag_F77=' -z text'
14995       if test "$GCC" = yes; then
14996         wlarc='${wl}'
14997         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14998         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14999           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15000       else
15001         wlarc=''
15002         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15003         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15004         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15005       fi
15006       hardcode_libdir_flag_spec_F77='-R$libdir'
15007       hardcode_shlibpath_var_F77=no
15008       case $host_os in
15009       solaris2.[0-5] | solaris2.[0-5].*) ;;
15010       *)
15011         # The compiler driver will combine and reorder linker options,
15012         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15013         # but is careful enough not to reorder.
15014         # Supported since Solaris 2.6 (maybe 2.5.1?)
15015         if test "$GCC" = yes; then
15016           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15017         else
15018           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15019         fi
15020         ;;
15021       esac
15022       link_all_deplibs_F77=yes
15023       ;;
15024
15025     sunos4*)
15026       if test "x$host_vendor" = xsequent; then
15027         # Use $CC to link under sequent, because it throws in some extra .o
15028         # files that make .init and .fini sections work.
15029         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15030       else
15031         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15032       fi
15033       hardcode_libdir_flag_spec_F77='-L$libdir'
15034       hardcode_direct_F77=yes
15035       hardcode_minus_L_F77=yes
15036       hardcode_shlibpath_var_F77=no
15037       ;;
15038
15039     sysv4)
15040       case $host_vendor in
15041         sni)
15042           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043           hardcode_direct_F77=yes # is this really true???
15044         ;;
15045         siemens)
15046           ## LD is ld it makes a PLAMLIB
15047           ## CC just makes a GrossModule.
15048           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15049           reload_cmds_F77='$CC -r -o $output$reload_objs'
15050           hardcode_direct_F77=no
15051         ;;
15052         motorola)
15053           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15054           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15055         ;;
15056       esac
15057       runpath_var='LD_RUN_PATH'
15058       hardcode_shlibpath_var_F77=no
15059       ;;
15060
15061     sysv4.3*)
15062       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063       hardcode_shlibpath_var_F77=no
15064       export_dynamic_flag_spec_F77='-Bexport'
15065       ;;
15066
15067     sysv4*MP*)
15068       if test -d /usr/nec; then
15069         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070         hardcode_shlibpath_var_F77=no
15071         runpath_var=LD_RUN_PATH
15072         hardcode_runpath_var=yes
15073         ld_shlibs_F77=yes
15074       fi
15075       ;;
15076
15077     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15078       no_undefined_flag_F77='${wl}-z,text'
15079       archive_cmds_need_lc_F77=no
15080       hardcode_shlibpath_var_F77=no
15081       runpath_var='LD_RUN_PATH'
15082
15083       if test "$GCC" = yes; then
15084         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15085         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15086       else
15087         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15089       fi
15090       ;;
15091
15092     sysv5* | sco3.2v5* | sco5v6*)
15093       # Note: We can NOT use -z defs as we might desire, because we do not
15094       # link with -lc, and that would cause any symbols used from libc to
15095       # always be unresolved, which means just about no library would
15096       # ever link correctly.  If we're not using GNU ld we use -z text
15097       # though, which does catch some bad symbols but isn't as heavy-handed
15098       # as -z defs.
15099       no_undefined_flag_F77='${wl}-z,text'
15100       allow_undefined_flag_F77='${wl}-z,nodefs'
15101       archive_cmds_need_lc_F77=no
15102       hardcode_shlibpath_var_F77=no
15103       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15104       hardcode_libdir_separator_F77=':'
15105       link_all_deplibs_F77=yes
15106       export_dynamic_flag_spec_F77='${wl}-Bexport'
15107       runpath_var='LD_RUN_PATH'
15108
15109       if test "$GCC" = yes; then
15110         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15111         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15112       else
15113         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15114         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15115       fi
15116       ;;
15117
15118     uts4*)
15119       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120       hardcode_libdir_flag_spec_F77='-L$libdir'
15121       hardcode_shlibpath_var_F77=no
15122       ;;
15123
15124     *)
15125       ld_shlibs_F77=no
15126       ;;
15127     esac
15128   fi
15129
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15131 $as_echo "$ld_shlibs_F77" >&6; }
15132 test "$ld_shlibs_F77" = no && can_build_shared=no
15133
15134 #
15135 # Do we need to explicitly link libc?
15136 #
15137 case "x$archive_cmds_need_lc_F77" in
15138 x|xyes)
15139   # Assume -lc should be added
15140   archive_cmds_need_lc_F77=yes
15141
15142   if test "$enable_shared" = yes && test "$GCC" = yes; then
15143     case $archive_cmds_F77 in
15144     *'~'*)
15145       # FIXME: we may have to deal with multi-command sequences.
15146       ;;
15147     '$CC '*)
15148       # Test whether the compiler implicitly links with -lc since on some
15149       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15150       # to ld, don't add -lc before -lgcc.
15151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15152 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15153       $rm conftest*
15154       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15155
15156       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15157   (eval $ac_compile) 2>&5
15158   ac_status=$?
15159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15160   test $ac_status = 0; } 2>conftest.err; then
15161         soname=conftest
15162         lib=conftest
15163         libobjs=conftest.$ac_objext
15164         deplibs=
15165         wl=$lt_prog_compiler_wl_F77
15166         pic_flag=$lt_prog_compiler_pic_F77
15167         compiler_flags=-v
15168         linker_flags=-v
15169         verstring=
15170         output_objdir=.
15171         libname=conftest
15172         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15173         allow_undefined_flag_F77=
15174         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15175   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15176   ac_status=$?
15177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15178   test $ac_status = 0; }
15179         then
15180           archive_cmds_need_lc_F77=no
15181         else
15182           archive_cmds_need_lc_F77=yes
15183         fi
15184         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15185       else
15186         cat conftest.err 1>&5
15187       fi
15188       $rm conftest*
15189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15190 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15191       ;;
15192     esac
15193   fi
15194   ;;
15195 esac
15196
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15198 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15199 library_names_spec=
15200 libname_spec='lib$name'
15201 soname_spec=
15202 shrext_cmds=".so"
15203 postinstall_cmds=
15204 postuninstall_cmds=
15205 finish_cmds=
15206 finish_eval=
15207 shlibpath_var=
15208 shlibpath_overrides_runpath=unknown
15209 version_type=none
15210 dynamic_linker="$host_os ld.so"
15211 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15212
15213 need_lib_prefix=unknown
15214 hardcode_into_libs=no
15215
15216 # when you set need_version to no, make sure it does not cause -set_version
15217 # flags to be left without arguments
15218 need_version=unknown
15219
15220 case $host_os in
15221 aix3*)
15222   version_type=linux
15223   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15224   shlibpath_var=LIBPATH
15225
15226   # AIX 3 has no versioning support, so we append a major version to the name.
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   ;;
15229
15230 aix[4-9]*)
15231   version_type=linux
15232   need_lib_prefix=no
15233   need_version=no
15234   hardcode_into_libs=yes
15235   if test "$host_cpu" = ia64; then
15236     # AIX 5 supports IA64
15237     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15238     shlibpath_var=LD_LIBRARY_PATH
15239   else
15240     # With GCC up to 2.95.x, collect2 would create an import file
15241     # for dependence libraries.  The import file would start with
15242     # the line `#! .'.  This would cause the generated library to
15243     # depend on `.', always an invalid library.  This was fixed in
15244     # development snapshots of GCC prior to 3.0.
15245     case $host_os in
15246       aix4 | aix4.[01] | aix4.[01].*)
15247       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15248            echo ' yes '
15249            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15250         :
15251       else
15252         can_build_shared=no
15253       fi
15254       ;;
15255     esac
15256     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15257     # soname into executable. Probably we can add versioning support to
15258     # collect2, so additional links can be useful in future.
15259     if test "$aix_use_runtimelinking" = yes; then
15260       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15261       # instead of lib<name>.a to let people know that these are not
15262       # typical AIX shared libraries.
15263       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264     else
15265       # We preserve .a as extension for shared libraries through AIX4.2
15266       # and later when we are not doing run time linking.
15267       library_names_spec='${libname}${release}.a $libname.a'
15268       soname_spec='${libname}${release}${shared_ext}$major'
15269     fi
15270     shlibpath_var=LIBPATH
15271   fi
15272   ;;
15273
15274 amigaos*)
15275   library_names_spec='$libname.ixlibrary $libname.a'
15276   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15277   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15278   ;;
15279
15280 beos*)
15281   library_names_spec='${libname}${shared_ext}'
15282   dynamic_linker="$host_os ld.so"
15283   shlibpath_var=LIBRARY_PATH
15284   ;;
15285
15286 bsdi[45]*)
15287   version_type=linux
15288   need_version=no
15289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290   soname_spec='${libname}${release}${shared_ext}$major'
15291   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15292   shlibpath_var=LD_LIBRARY_PATH
15293   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15294   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15295   # the default ld.so.conf also contains /usr/contrib/lib and
15296   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15297   # libtool to hard-code these into programs
15298   ;;
15299
15300 cygwin* | mingw* | pw32*)
15301   version_type=windows
15302   shrext_cmds=".dll"
15303   need_version=no
15304   need_lib_prefix=no
15305
15306   case $GCC,$host_os in
15307   yes,cygwin* | yes,mingw* | yes,pw32*)
15308     library_names_spec='$libname.dll.a'
15309     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15310     postinstall_cmds='base_file=`basename \${file}`~
15311       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15312       dldir=$destdir/`dirname \$dlpath`~
15313       test -d \$dldir || mkdir -p \$dldir~
15314       $install_prog $dir/$dlname \$dldir/$dlname~
15315       chmod a+x \$dldir/$dlname'
15316     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15317       dlpath=$dir/\$dldll~
15318        $rm \$dlpath'
15319     shlibpath_overrides_runpath=yes
15320
15321     case $host_os in
15322     cygwin*)
15323       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15324       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15325       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15326       ;;
15327     mingw*)
15328       # MinGW DLLs use traditional 'lib' prefix
15329       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15331       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15332         # It is most probably a Windows format PATH printed by
15333         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15334         # path with ; separators, and with drive letters. We can handle the
15335         # drive letters (cygwin fileutils understands them), so leave them,
15336         # especially as we might pass files found there to a mingw objdump,
15337         # which wouldn't understand a cygwinified path. Ahh.
15338         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15339       else
15340         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15341       fi
15342       ;;
15343     pw32*)
15344       # pw32 DLLs use 'pw' prefix rather than 'lib'
15345       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15346       ;;
15347     esac
15348     ;;
15349
15350   *)
15351     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15352     ;;
15353   esac
15354   dynamic_linker='Win32 ld.exe'
15355   # FIXME: first we should search . and the directory the executable is in
15356   shlibpath_var=PATH
15357   ;;
15358
15359 darwin* | rhapsody*)
15360   dynamic_linker="$host_os dyld"
15361   version_type=darwin
15362   need_lib_prefix=no
15363   need_version=no
15364   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15365   soname_spec='${libname}${release}${major}$shared_ext'
15366   shlibpath_overrides_runpath=yes
15367   shlibpath_var=DYLD_LIBRARY_PATH
15368   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15369
15370   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15371   ;;
15372
15373 dgux*)
15374   version_type=linux
15375   need_lib_prefix=no
15376   need_version=no
15377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15378   soname_spec='${libname}${release}${shared_ext}$major'
15379   shlibpath_var=LD_LIBRARY_PATH
15380   ;;
15381
15382 freebsd1*)
15383   dynamic_linker=no
15384   ;;
15385
15386 freebsd* | dragonfly*)
15387   # DragonFly does not have aout.  When/if they implement a new
15388   # versioning mechanism, adjust this.
15389   if test -x /usr/bin/objformat; then
15390     objformat=`/usr/bin/objformat`
15391   else
15392     case $host_os in
15393     freebsd[123]*) objformat=aout ;;
15394     *) objformat=elf ;;
15395     esac
15396   fi
15397   version_type=freebsd-$objformat
15398   case $version_type in
15399     freebsd-elf*)
15400       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15401       need_version=no
15402       need_lib_prefix=no
15403       ;;
15404     freebsd-*)
15405       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15406       need_version=yes
15407       ;;
15408   esac
15409   shlibpath_var=LD_LIBRARY_PATH
15410   case $host_os in
15411   freebsd2*)
15412     shlibpath_overrides_runpath=yes
15413     ;;
15414   freebsd3.[01]* | freebsdelf3.[01]*)
15415     shlibpath_overrides_runpath=yes
15416     hardcode_into_libs=yes
15417     ;;
15418   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15419   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15420     shlibpath_overrides_runpath=no
15421     hardcode_into_libs=yes
15422     ;;
15423   *) # from 4.6 on, and DragonFly
15424     shlibpath_overrides_runpath=yes
15425     hardcode_into_libs=yes
15426     ;;
15427   esac
15428   ;;
15429
15430 gnu*)
15431   version_type=linux
15432   need_lib_prefix=no
15433   need_version=no
15434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15435   soname_spec='${libname}${release}${shared_ext}$major'
15436   shlibpath_var=LD_LIBRARY_PATH
15437   hardcode_into_libs=yes
15438   ;;
15439
15440 hpux9* | hpux10* | hpux11*)
15441   # Give a soname corresponding to the major version so that dld.sl refuses to
15442   # link against other versions.
15443   version_type=sunos
15444   need_lib_prefix=no
15445   need_version=no
15446   case $host_cpu in
15447   ia64*)
15448     shrext_cmds='.so'
15449     hardcode_into_libs=yes
15450     dynamic_linker="$host_os dld.so"
15451     shlibpath_var=LD_LIBRARY_PATH
15452     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454     soname_spec='${libname}${release}${shared_ext}$major'
15455     if test "X$HPUX_IA64_MODE" = X32; then
15456       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15457     else
15458       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15459     fi
15460     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15461     ;;
15462    hppa*64*)
15463      shrext_cmds='.sl'
15464      hardcode_into_libs=yes
15465      dynamic_linker="$host_os dld.sl"
15466      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15467      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15468      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469      soname_spec='${libname}${release}${shared_ext}$major'
15470      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15471      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15472      ;;
15473    *)
15474     shrext_cmds='.sl'
15475     dynamic_linker="$host_os dld.sl"
15476     shlibpath_var=SHLIB_PATH
15477     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15479     soname_spec='${libname}${release}${shared_ext}$major'
15480     ;;
15481   esac
15482   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15483   postinstall_cmds='chmod 555 $lib'
15484   ;;
15485
15486 interix[3-9]*)
15487   version_type=linux
15488   need_lib_prefix=no
15489   need_version=no
15490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15493   shlibpath_var=LD_LIBRARY_PATH
15494   shlibpath_overrides_runpath=no
15495   hardcode_into_libs=yes
15496   ;;
15497
15498 irix5* | irix6* | nonstopux*)
15499   case $host_os in
15500     nonstopux*) version_type=nonstopux ;;
15501     *)
15502         if test "$lt_cv_prog_gnu_ld" = yes; then
15503                 version_type=linux
15504         else
15505                 version_type=irix
15506         fi ;;
15507   esac
15508   need_lib_prefix=no
15509   need_version=no
15510   soname_spec='${libname}${release}${shared_ext}$major'
15511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15512   case $host_os in
15513   irix5* | nonstopux*)
15514     libsuff= shlibsuff=
15515     ;;
15516   *)
15517     case $LD in # libtool.m4 will add one of these switches to LD
15518     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15519       libsuff= shlibsuff= libmagic=32-bit;;
15520     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15521       libsuff=32 shlibsuff=N32 libmagic=N32;;
15522     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15523       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15524     *) libsuff= shlibsuff= libmagic=never-match;;
15525     esac
15526     ;;
15527   esac
15528   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15529   shlibpath_overrides_runpath=no
15530   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15531   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15532   hardcode_into_libs=yes
15533   ;;
15534
15535 # No shared lib support for Linux oldld, aout, or coff.
15536 linux*oldld* | linux*aout* | linux*coff*)
15537   dynamic_linker=no
15538   ;;
15539
15540 # This must be Linux ELF.
15541 linux* | k*bsd*-gnu)
15542   version_type=linux
15543   need_lib_prefix=no
15544   need_version=no
15545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546   soname_spec='${libname}${release}${shared_ext}$major'
15547   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15548   shlibpath_var=LD_LIBRARY_PATH
15549   shlibpath_overrides_runpath=no
15550   # This implies no fast_install, which is unacceptable.
15551   # Some rework will be needed to allow for fast_install
15552   # before this can be enabled.
15553   hardcode_into_libs=yes
15554
15555   # Append ld.so.conf contents to the search path
15556   if test -f /etc/ld.so.conf; then
15557     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15558     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15559   fi
15560
15561   # We used to test for /lib/ld.so.1 and disable shared libraries on
15562   # powerpc, because MkLinux only supported shared libraries with the
15563   # GNU dynamic linker.  Since this was broken with cross compilers,
15564   # most powerpc-linux boxes support dynamic linking these days and
15565   # people can always --disable-shared, the test was removed, and we
15566   # assume the GNU/Linux dynamic linker is in use.
15567   dynamic_linker='GNU/Linux ld.so'
15568   ;;
15569
15570 netbsdelf*-gnu)
15571   version_type=linux
15572   need_lib_prefix=no
15573   need_version=no
15574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15575   soname_spec='${libname}${release}${shared_ext}$major'
15576   shlibpath_var=LD_LIBRARY_PATH
15577   shlibpath_overrides_runpath=no
15578   hardcode_into_libs=yes
15579   dynamic_linker='NetBSD ld.elf_so'
15580   ;;
15581
15582 netbsd*)
15583   version_type=sunos
15584   need_lib_prefix=no
15585   need_version=no
15586   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15588     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15589     dynamic_linker='NetBSD (a.out) ld.so'
15590   else
15591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15592     soname_spec='${libname}${release}${shared_ext}$major'
15593     dynamic_linker='NetBSD ld.elf_so'
15594   fi
15595   shlibpath_var=LD_LIBRARY_PATH
15596   shlibpath_overrides_runpath=yes
15597   hardcode_into_libs=yes
15598   ;;
15599
15600 newsos6)
15601   version_type=linux
15602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603   shlibpath_var=LD_LIBRARY_PATH
15604   shlibpath_overrides_runpath=yes
15605   ;;
15606
15607 nto-qnx*)
15608   version_type=linux
15609   need_lib_prefix=no
15610   need_version=no
15611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612   soname_spec='${libname}${release}${shared_ext}$major'
15613   shlibpath_var=LD_LIBRARY_PATH
15614   shlibpath_overrides_runpath=yes
15615   ;;
15616
15617 openbsd*)
15618   version_type=sunos
15619   sys_lib_dlsearch_path_spec="/usr/lib"
15620   need_lib_prefix=no
15621   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15622   case $host_os in
15623     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15624     *)                         need_version=no  ;;
15625   esac
15626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15627   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15628   shlibpath_var=LD_LIBRARY_PATH
15629   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15630     case $host_os in
15631       openbsd2.[89] | openbsd2.[89].*)
15632         shlibpath_overrides_runpath=no
15633         ;;
15634       *)
15635         shlibpath_overrides_runpath=yes
15636         ;;
15637       esac
15638   else
15639     shlibpath_overrides_runpath=yes
15640   fi
15641   ;;
15642
15643 os2*)
15644   libname_spec='$name'
15645   shrext_cmds=".dll"
15646   need_lib_prefix=no
15647   library_names_spec='$libname${shared_ext} $libname.a'
15648   dynamic_linker='OS/2 ld.exe'
15649   shlibpath_var=LIBPATH
15650   ;;
15651
15652 osf3* | osf4* | osf5*)
15653   version_type=osf
15654   need_lib_prefix=no
15655   need_version=no
15656   soname_spec='${libname}${release}${shared_ext}$major'
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658   shlibpath_var=LD_LIBRARY_PATH
15659   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15660   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15661   ;;
15662
15663 rdos*)
15664   dynamic_linker=no
15665   ;;
15666
15667 solaris*)
15668   version_type=linux
15669   need_lib_prefix=no
15670   need_version=no
15671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672   soname_spec='${libname}${release}${shared_ext}$major'
15673   shlibpath_var=LD_LIBRARY_PATH
15674   shlibpath_overrides_runpath=yes
15675   hardcode_into_libs=yes
15676   # ldd complains unless libraries are executable
15677   postinstall_cmds='chmod +x $lib'
15678   ;;
15679
15680 sunos4*)
15681   version_type=sunos
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15683   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   shlibpath_overrides_runpath=yes
15686   if test "$with_gnu_ld" = yes; then
15687     need_lib_prefix=no
15688   fi
15689   need_version=yes
15690   ;;
15691
15692 sysv4 | sysv4.3*)
15693   version_type=linux
15694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695   soname_spec='${libname}${release}${shared_ext}$major'
15696   shlibpath_var=LD_LIBRARY_PATH
15697   case $host_vendor in
15698     sni)
15699       shlibpath_overrides_runpath=no
15700       need_lib_prefix=no
15701       export_dynamic_flag_spec='${wl}-Blargedynsym'
15702       runpath_var=LD_RUN_PATH
15703       ;;
15704     siemens)
15705       need_lib_prefix=no
15706       ;;
15707     motorola)
15708       need_lib_prefix=no
15709       need_version=no
15710       shlibpath_overrides_runpath=no
15711       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15712       ;;
15713   esac
15714   ;;
15715
15716 sysv4*MP*)
15717   if test -d /usr/nec ;then
15718     version_type=linux
15719     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15720     soname_spec='$libname${shared_ext}.$major'
15721     shlibpath_var=LD_LIBRARY_PATH
15722   fi
15723   ;;
15724
15725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15726   version_type=freebsd-elf
15727   need_lib_prefix=no
15728   need_version=no
15729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15730   soname_spec='${libname}${release}${shared_ext}$major'
15731   shlibpath_var=LD_LIBRARY_PATH
15732   hardcode_into_libs=yes
15733   if test "$with_gnu_ld" = yes; then
15734     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15735     shlibpath_overrides_runpath=no
15736   else
15737     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15738     shlibpath_overrides_runpath=yes
15739     case $host_os in
15740       sco3.2v5*)
15741         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15742         ;;
15743     esac
15744   fi
15745   sys_lib_dlsearch_path_spec='/usr/lib'
15746   ;;
15747
15748 uts4*)
15749   version_type=linux
15750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751   soname_spec='${libname}${release}${shared_ext}$major'
15752   shlibpath_var=LD_LIBRARY_PATH
15753   ;;
15754
15755 *)
15756   dynamic_linker=no
15757   ;;
15758 esac
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15760 $as_echo "$dynamic_linker" >&6; }
15761 test "$dynamic_linker" = no && can_build_shared=no
15762
15763 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15764   $as_echo_n "(cached) " >&6
15765 else
15766   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15767 fi
15768
15769 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15770 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15771   $as_echo_n "(cached) " >&6
15772 else
15773   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15774 fi
15775
15776 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15777
15778 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15779 if test "$GCC" = yes; then
15780   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15781 fi
15782
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15784 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15785 hardcode_action_F77=
15786 if test -n "$hardcode_libdir_flag_spec_F77" || \
15787    test -n "$runpath_var_F77" || \
15788    test "X$hardcode_automatic_F77" = "Xyes" ; then
15789
15790   # We can hardcode non-existant directories.
15791   if test "$hardcode_direct_F77" != no &&
15792      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15793      # have to relink, otherwise we might link with an installed library
15794      # when we should be linking with a yet-to-be-installed one
15795      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15796      test "$hardcode_minus_L_F77" != no; then
15797     # Linking always hardcodes the temporary library directory.
15798     hardcode_action_F77=relink
15799   else
15800     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15801     hardcode_action_F77=immediate
15802   fi
15803 else
15804   # We cannot hardcode anything, or else we can only hardcode existing
15805   # directories.
15806   hardcode_action_F77=unsupported
15807 fi
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15809 $as_echo "$hardcode_action_F77" >&6; }
15810
15811 if test "$hardcode_action_F77" = relink; then
15812   # Fast installation is not supported
15813   enable_fast_install=no
15814 elif test "$shlibpath_overrides_runpath" = yes ||
15815      test "$enable_shared" = no; then
15816   # Fast installation is not necessary
15817   enable_fast_install=needless
15818 fi
15819
15820
15821 # The else clause should only fire when bootstrapping the
15822 # libtool distribution, otherwise you forgot to ship ltmain.sh
15823 # with your package, and you will get complaints that there are
15824 # no rules to generate ltmain.sh.
15825 if test -f "$ltmain"; then
15826   # See if we are running on zsh, and set the options which allow our commands through
15827   # without removal of \ escapes.
15828   if test -n "${ZSH_VERSION+set}" ; then
15829     setopt NO_GLOB_SUBST
15830   fi
15831   # Now quote all the things that may contain metacharacters while being
15832   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15833   # variables and quote the copies for generation of the libtool script.
15834   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15835     SED SHELL STRIP \
15836     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15837     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15838     deplibs_check_method reload_flag reload_cmds need_locks \
15839     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15840     lt_cv_sys_global_symbol_to_c_name_address \
15841     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15842     old_postinstall_cmds old_postuninstall_cmds \
15843     compiler_F77 \
15844     CC_F77 \
15845     LD_F77 \
15846     lt_prog_compiler_wl_F77 \
15847     lt_prog_compiler_pic_F77 \
15848     lt_prog_compiler_static_F77 \
15849     lt_prog_compiler_no_builtin_flag_F77 \
15850     export_dynamic_flag_spec_F77 \
15851     thread_safe_flag_spec_F77 \
15852     whole_archive_flag_spec_F77 \
15853     enable_shared_with_static_runtimes_F77 \
15854     old_archive_cmds_F77 \
15855     old_archive_from_new_cmds_F77 \
15856     predep_objects_F77 \
15857     postdep_objects_F77 \
15858     predeps_F77 \
15859     postdeps_F77 \
15860     compiler_lib_search_path_F77 \
15861     compiler_lib_search_dirs_F77 \
15862     archive_cmds_F77 \
15863     archive_expsym_cmds_F77 \
15864     postinstall_cmds_F77 \
15865     postuninstall_cmds_F77 \
15866     old_archive_from_expsyms_cmds_F77 \
15867     allow_undefined_flag_F77 \
15868     no_undefined_flag_F77 \
15869     export_symbols_cmds_F77 \
15870     hardcode_libdir_flag_spec_F77 \
15871     hardcode_libdir_flag_spec_ld_F77 \
15872     hardcode_libdir_separator_F77 \
15873     hardcode_automatic_F77 \
15874     module_cmds_F77 \
15875     module_expsym_cmds_F77 \
15876     lt_cv_prog_compiler_c_o_F77 \
15877     fix_srcfile_path_F77 \
15878     exclude_expsyms_F77 \
15879     include_expsyms_F77; do
15880
15881     case $var in
15882     old_archive_cmds_F77 | \
15883     old_archive_from_new_cmds_F77 | \
15884     archive_cmds_F77 | \
15885     archive_expsym_cmds_F77 | \
15886     module_cmds_F77 | \
15887     module_expsym_cmds_F77 | \
15888     old_archive_from_expsyms_cmds_F77 | \
15889     export_symbols_cmds_F77 | \
15890     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15891     postinstall_cmds | postuninstall_cmds | \
15892     old_postinstall_cmds | old_postuninstall_cmds | \
15893     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15894       # Double-quote double-evaled strings.
15895       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15896       ;;
15897     *)
15898       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15899       ;;
15900     esac
15901   done
15902
15903   case $lt_echo in
15904   *'\$0 --fallback-echo"')
15905     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15906     ;;
15907   esac
15908
15909 cfgfile="$ofile"
15910
15911   cat <<__EOF__ >> "$cfgfile"
15912 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15913
15914 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15915
15916 # Shell to use when invoking shell scripts.
15917 SHELL=$lt_SHELL
15918
15919 # Whether or not to build shared libraries.
15920 build_libtool_libs=$enable_shared
15921
15922 # Whether or not to build static libraries.
15923 build_old_libs=$enable_static
15924
15925 # Whether or not to add -lc for building shared libraries.
15926 build_libtool_need_lc=$archive_cmds_need_lc_F77
15927
15928 # Whether or not to disallow shared libs when runtime libs are static
15929 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15930
15931 # Whether or not to optimize for fast installation.
15932 fast_install=$enable_fast_install
15933
15934 # The host system.
15935 host_alias=$host_alias
15936 host=$host
15937 host_os=$host_os
15938
15939 # The build system.
15940 build_alias=$build_alias
15941 build=$build
15942 build_os=$build_os
15943
15944 # An echo program that does not interpret backslashes.
15945 echo=$lt_echo
15946
15947 # The archiver.
15948 AR=$lt_AR
15949 AR_FLAGS=$lt_AR_FLAGS
15950
15951 # A C compiler.
15952 LTCC=$lt_LTCC
15953
15954 # LTCC compiler flags.
15955 LTCFLAGS=$lt_LTCFLAGS
15956
15957 # A language-specific compiler.
15958 CC=$lt_compiler_F77
15959
15960 # Is the compiler the GNU C compiler?
15961 with_gcc=$GCC_F77
15962
15963 # An ERE matcher.
15964 EGREP=$lt_EGREP
15965
15966 # The linker used to build libraries.
15967 LD=$lt_LD_F77
15968
15969 # Whether we need hard or soft links.
15970 LN_S=$lt_LN_S
15971
15972 # A BSD-compatible nm program.
15973 NM=$lt_NM
15974
15975 # A symbol stripping program
15976 STRIP=$lt_STRIP
15977
15978 # Used to examine libraries when file_magic_cmd begins "file"
15979 MAGIC_CMD=$MAGIC_CMD
15980
15981 # Used on cygwin: DLL creation program.
15982 DLLTOOL="$DLLTOOL"
15983
15984 # Used on cygwin: object dumper.
15985 OBJDUMP="$OBJDUMP"
15986
15987 # Used on cygwin: assembler.
15988 AS="$AS"
15989
15990 # The name of the directory that contains temporary libtool files.
15991 objdir=$objdir
15992
15993 # How to create reloadable object files.
15994 reload_flag=$lt_reload_flag
15995 reload_cmds=$lt_reload_cmds
15996
15997 # How to pass a linker flag through the compiler.
15998 wl=$lt_lt_prog_compiler_wl_F77
15999
16000 # Object file suffix (normally "o").
16001 objext="$ac_objext"
16002
16003 # Old archive suffix (normally "a").
16004 libext="$libext"
16005
16006 # Shared library suffix (normally ".so").
16007 shrext_cmds='$shrext_cmds'
16008
16009 # Executable file suffix (normally "").
16010 exeext="$exeext"
16011
16012 # Additional compiler flags for building library objects.
16013 pic_flag=$lt_lt_prog_compiler_pic_F77
16014 pic_mode=$pic_mode
16015
16016 # What is the maximum length of a command?
16017 max_cmd_len=$lt_cv_sys_max_cmd_len
16018
16019 # Does compiler simultaneously support -c and -o options?
16020 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16021
16022 # Must we lock files when doing compilation?
16023 need_locks=$lt_need_locks
16024
16025 # Do we need the lib prefix for modules?
16026 need_lib_prefix=$need_lib_prefix
16027
16028 # Do we need a version for libraries?
16029 need_version=$need_version
16030
16031 # Whether dlopen is supported.
16032 dlopen_support=$enable_dlopen
16033
16034 # Whether dlopen of programs is supported.
16035 dlopen_self=$enable_dlopen_self
16036
16037 # Whether dlopen of statically linked programs is supported.
16038 dlopen_self_static=$enable_dlopen_self_static
16039
16040 # Compiler flag to prevent dynamic linking.
16041 link_static_flag=$lt_lt_prog_compiler_static_F77
16042
16043 # Compiler flag to turn off builtin functions.
16044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16045
16046 # Compiler flag to allow reflexive dlopens.
16047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16048
16049 # Compiler flag to generate shared objects directly from archives.
16050 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16051
16052 # Compiler flag to generate thread-safe objects.
16053 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16054
16055 # Library versioning type.
16056 version_type=$version_type
16057
16058 # Format of library name prefix.
16059 libname_spec=$lt_libname_spec
16060
16061 # List of archive names.  First name is the real one, the rest are links.
16062 # The last name is the one that the linker finds with -lNAME.
16063 library_names_spec=$lt_library_names_spec
16064
16065 # The coded name of the library, if different from the real name.
16066 soname_spec=$lt_soname_spec
16067
16068 # Commands used to build and install an old-style archive.
16069 RANLIB=$lt_RANLIB
16070 old_archive_cmds=$lt_old_archive_cmds_F77
16071 old_postinstall_cmds=$lt_old_postinstall_cmds
16072 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16073
16074 # Create an old-style archive from a shared archive.
16075 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16076
16077 # Create a temporary old-style archive to link instead of a shared archive.
16078 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16079
16080 # Commands used to build and install a shared archive.
16081 archive_cmds=$lt_archive_cmds_F77
16082 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16083 postinstall_cmds=$lt_postinstall_cmds
16084 postuninstall_cmds=$lt_postuninstall_cmds
16085
16086 # Commands used to build a loadable module (assumed same as above if empty)
16087 module_cmds=$lt_module_cmds_F77
16088 module_expsym_cmds=$lt_module_expsym_cmds_F77
16089
16090 # Commands to strip libraries.
16091 old_striplib=$lt_old_striplib
16092 striplib=$lt_striplib
16093
16094 # Dependencies to place before the objects being linked to create a
16095 # shared library.
16096 predep_objects=$lt_predep_objects_F77
16097
16098 # Dependencies to place after the objects being linked to create a
16099 # shared library.
16100 postdep_objects=$lt_postdep_objects_F77
16101
16102 # Dependencies to place before the objects being linked to create a
16103 # shared library.
16104 predeps=$lt_predeps_F77
16105
16106 # Dependencies to place after the objects being linked to create a
16107 # shared library.
16108 postdeps=$lt_postdeps_F77
16109
16110 # The directories searched by this compiler when creating a shared
16111 # library
16112 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16113
16114 # The library search path used internally by the compiler when linking
16115 # a shared library.
16116 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16117
16118 # Method to check whether dependent libraries are shared objects.
16119 deplibs_check_method=$lt_deplibs_check_method
16120
16121 # Command to use when deplibs_check_method == file_magic.
16122 file_magic_cmd=$lt_file_magic_cmd
16123
16124 # Flag that allows shared libraries with undefined symbols to be built.
16125 allow_undefined_flag=$lt_allow_undefined_flag_F77
16126
16127 # Flag that forces no undefined symbols.
16128 no_undefined_flag=$lt_no_undefined_flag_F77
16129
16130 # Commands used to finish a libtool library installation in a directory.
16131 finish_cmds=$lt_finish_cmds
16132
16133 # Same as above, but a single script fragment to be evaled but not shown.
16134 finish_eval=$lt_finish_eval
16135
16136 # Take the output of nm and produce a listing of raw symbols and C names.
16137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16138
16139 # Transform the output of nm in a proper C declaration
16140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16141
16142 # Transform the output of nm in a C name address pair
16143 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16144
16145 # This is the shared library runtime path variable.
16146 runpath_var=$runpath_var
16147
16148 # This is the shared library path variable.
16149 shlibpath_var=$shlibpath_var
16150
16151 # Is shlibpath searched before the hard-coded library search path?
16152 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16153
16154 # How to hardcode a shared library path into an executable.
16155 hardcode_action=$hardcode_action_F77
16156
16157 # Whether we should hardcode library paths into libraries.
16158 hardcode_into_libs=$hardcode_into_libs
16159
16160 # Flag to hardcode \$libdir into a binary during linking.
16161 # This must work even if \$libdir does not exist.
16162 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16163
16164 # If ld is used when linking, flag to hardcode \$libdir into
16165 # a binary during linking. This must work even if \$libdir does
16166 # not exist.
16167 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16168
16169 # Whether we need a single -rpath flag with a separated argument.
16170 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16171
16172 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16173 # resulting binary.
16174 hardcode_direct=$hardcode_direct_F77
16175
16176 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16177 # resulting binary.
16178 hardcode_minus_L=$hardcode_minus_L_F77
16179
16180 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16181 # the resulting binary.
16182 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16183
16184 # Set to yes if building a shared library automatically hardcodes DIR into the library
16185 # and all subsequent libraries and executables linked against it.
16186 hardcode_automatic=$hardcode_automatic_F77
16187
16188 # Variables whose values should be saved in libtool wrapper scripts and
16189 # restored at relink time.
16190 variables_saved_for_relink="$variables_saved_for_relink"
16191
16192 # Whether libtool must link a program against all its dependency libraries.
16193 link_all_deplibs=$link_all_deplibs_F77
16194
16195 # Compile-time system search path for libraries
16196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16197
16198 # Run-time system search path for libraries
16199 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16200
16201 # Fix the shell variable \$srcfile for the compiler.
16202 fix_srcfile_path=$lt_fix_srcfile_path
16203
16204 # Set to yes if exported symbols are required.
16205 always_export_symbols=$always_export_symbols_F77
16206
16207 # The commands to list exported symbols.
16208 export_symbols_cmds=$lt_export_symbols_cmds_F77
16209
16210 # The commands to extract the exported symbol list from a shared archive.
16211 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16212
16213 # Symbols that should not be listed in the preloaded symbols.
16214 exclude_expsyms=$lt_exclude_expsyms_F77
16215
16216 # Symbols that must always be exported.
16217 include_expsyms=$lt_include_expsyms_F77
16218
16219 # ### END LIBTOOL TAG CONFIG: $tagname
16220
16221 __EOF__
16222
16223
16224 else
16225   # If there is no Makefile yet, we rely on a make rule to execute
16226   # `config.status --recheck' to rerun these tests and create the
16227   # libtool script then.
16228   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16229   if test -f "$ltmain_in"; then
16230     test -f Makefile && make "$ltmain"
16231   fi
16232 fi
16233
16234
16235 ac_ext=c
16236 ac_cpp='$CPP $CPPFLAGS'
16237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16240
16241 CC="$lt_save_CC"
16242
16243         else
16244           tagname=""
16245         fi
16246         ;;
16247
16248       GCJ)
16249         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16250
16251
16252 # Source file extension for Java test sources.
16253 ac_ext=java
16254
16255 # Object file extension for compiled Java test sources.
16256 objext=o
16257 objext_GCJ=$objext
16258
16259 # Code to be used in simple compile tests
16260 lt_simple_compile_test_code="class foo {}"
16261
16262 # Code to be used in simple link tests
16263 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16264
16265 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16266
16267 # If no C compiler was specified, use CC.
16268 LTCC=${LTCC-"$CC"}
16269
16270 # If no C compiler flags were specified, use CFLAGS.
16271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16272
16273 # Allow CC to be a program name with arguments.
16274 compiler=$CC
16275
16276
16277 # save warnings/boilerplate of simple test code
16278 ac_outfile=conftest.$ac_objext
16279 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16280 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16281 _lt_compiler_boilerplate=`cat conftest.err`
16282 $rm conftest*
16283
16284 ac_outfile=conftest.$ac_objext
16285 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16286 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16287 _lt_linker_boilerplate=`cat conftest.err`
16288 $rm -r conftest*
16289
16290
16291 # Allow CC to be a program name with arguments.
16292 lt_save_CC="$CC"
16293 CC=${GCJ-"gcj"}
16294 compiler=$CC
16295 compiler_GCJ=$CC
16296 for cc_temp in $compiler""; do
16297   case $cc_temp in
16298     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16299     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16300     \-*) ;;
16301     *) break;;
16302   esac
16303 done
16304 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16305
16306
16307 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16308 archive_cmds_need_lc_GCJ=no
16309
16310 old_archive_cmds_GCJ=$old_archive_cmds
16311
16312
16313 lt_prog_compiler_no_builtin_flag_GCJ=
16314
16315 if test "$GCC" = yes; then
16316   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16317
16318
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16320 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16321 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16322   $as_echo_n "(cached) " >&6
16323 else
16324   lt_cv_prog_compiler_rtti_exceptions=no
16325   ac_outfile=conftest.$ac_objext
16326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16327    lt_compiler_flag="-fno-rtti -fno-exceptions"
16328    # Insert the option either (1) after the last *FLAGS variable, or
16329    # (2) before a word containing "conftest.", or (3) at the end.
16330    # Note that $ac_compile itself does not contain backslashes and begins
16331    # with a dollar sign (not a hyphen), so the echo should work correctly.
16332    # The option is referenced via a variable to avoid confusing sed.
16333    lt_compile=`echo "$ac_compile" | $SED \
16334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16336    -e 's:$: $lt_compiler_flag:'`
16337    (eval echo "\"\$as_me:16337: $lt_compile\"" >&5)
16338    (eval "$lt_compile" 2>conftest.err)
16339    ac_status=$?
16340    cat conftest.err >&5
16341    echo "$as_me:16341: \$? = $ac_status" >&5
16342    if (exit $ac_status) && test -s "$ac_outfile"; then
16343      # The compiler can only warn and ignore the option if not recognized
16344      # So say no if there are warnings other than the usual output.
16345      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16346      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16347      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16348        lt_cv_prog_compiler_rtti_exceptions=yes
16349      fi
16350    fi
16351    $rm conftest*
16352
16353 fi
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16355 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16356
16357 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16358     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16359 else
16360     :
16361 fi
16362
16363 fi
16364
16365 lt_prog_compiler_wl_GCJ=
16366 lt_prog_compiler_pic_GCJ=
16367 lt_prog_compiler_static_GCJ=
16368
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16370 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16371
16372   if test "$GCC" = yes; then
16373     lt_prog_compiler_wl_GCJ='-Wl,'
16374     lt_prog_compiler_static_GCJ='-static'
16375
16376     case $host_os in
16377       aix*)
16378       # All AIX code is PIC.
16379       if test "$host_cpu" = ia64; then
16380         # AIX 5 now supports IA64 processor
16381         lt_prog_compiler_static_GCJ='-Bstatic'
16382       fi
16383       ;;
16384
16385     amigaos*)
16386       # FIXME: we need at least 68020 code to build shared libraries, but
16387       # adding the `-m68020' flag to GCC prevents building anything better,
16388       # like `-m68040'.
16389       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16390       ;;
16391
16392     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16393       # PIC is the default for these OSes.
16394       ;;
16395
16396     mingw* | cygwin* | pw32* | os2*)
16397       # This hack is so that the source file can tell whether it is being
16398       # built for inclusion in a dll (and should export symbols for example).
16399       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16400       # (--disable-auto-import) libraries
16401
16402       ;;
16403
16404     darwin* | rhapsody*)
16405       # PIC is the default on this platform
16406       # Common symbols not allowed in MH_DYLIB files
16407       lt_prog_compiler_pic_GCJ='-fno-common'
16408       ;;
16409
16410     interix[3-9]*)
16411       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16412       # Instead, we relocate shared libraries at runtime.
16413       ;;
16414
16415     msdosdjgpp*)
16416       # Just because we use GCC doesn't mean we suddenly get shared libraries
16417       # on systems that don't support them.
16418       lt_prog_compiler_can_build_shared_GCJ=no
16419       enable_shared=no
16420       ;;
16421
16422     sysv4*MP*)
16423       if test -d /usr/nec; then
16424         lt_prog_compiler_pic_GCJ=-Kconform_pic
16425       fi
16426       ;;
16427
16428     hpux*)
16429       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16430       # not for PA HP-UX.
16431       case $host_cpu in
16432       hppa*64*|ia64*)
16433         # +Z the default
16434         ;;
16435       *)
16436         lt_prog_compiler_pic_GCJ='-fPIC'
16437         ;;
16438       esac
16439       ;;
16440
16441     *)
16442       lt_prog_compiler_pic_GCJ='-fPIC'
16443       ;;
16444     esac
16445   else
16446     # PORTME Check for flag to pass linker flags through the system compiler.
16447     case $host_os in
16448     aix*)
16449       lt_prog_compiler_wl_GCJ='-Wl,'
16450       if test "$host_cpu" = ia64; then
16451         # AIX 5 now supports IA64 processor
16452         lt_prog_compiler_static_GCJ='-Bstatic'
16453       else
16454         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16455       fi
16456       ;;
16457       darwin*)
16458         # PIC is the default on this platform
16459         # Common symbols not allowed in MH_DYLIB files
16460        case $cc_basename in
16461          xlc*)
16462          lt_prog_compiler_pic_GCJ='-qnocommon'
16463          lt_prog_compiler_wl_GCJ='-Wl,'
16464          ;;
16465        esac
16466        ;;
16467
16468     mingw* | cygwin* | pw32* | os2*)
16469       # This hack is so that the source file can tell whether it is being
16470       # built for inclusion in a dll (and should export symbols for example).
16471
16472       ;;
16473
16474     hpux9* | hpux10* | hpux11*)
16475       lt_prog_compiler_wl_GCJ='-Wl,'
16476       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16477       # not for PA HP-UX.
16478       case $host_cpu in
16479       hppa*64*|ia64*)
16480         # +Z the default
16481         ;;
16482       *)
16483         lt_prog_compiler_pic_GCJ='+Z'
16484         ;;
16485       esac
16486       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16487       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16488       ;;
16489
16490     irix5* | irix6* | nonstopux*)
16491       lt_prog_compiler_wl_GCJ='-Wl,'
16492       # PIC (with -KPIC) is the default.
16493       lt_prog_compiler_static_GCJ='-non_shared'
16494       ;;
16495
16496     newsos6)
16497       lt_prog_compiler_pic_GCJ='-KPIC'
16498       lt_prog_compiler_static_GCJ='-Bstatic'
16499       ;;
16500
16501     linux* | k*bsd*-gnu)
16502       case $cc_basename in
16503       icc* | ecc*)
16504         lt_prog_compiler_wl_GCJ='-Wl,'
16505         lt_prog_compiler_pic_GCJ='-KPIC'
16506         lt_prog_compiler_static_GCJ='-static'
16507         ;;
16508       pgcc* | pgf77* | pgf90* | pgf95*)
16509         # Portland Group compilers (*not* the Pentium gcc compiler,
16510         # which looks to be a dead project)
16511         lt_prog_compiler_wl_GCJ='-Wl,'
16512         lt_prog_compiler_pic_GCJ='-fpic'
16513         lt_prog_compiler_static_GCJ='-Bstatic'
16514         ;;
16515       ccc*)
16516         lt_prog_compiler_wl_GCJ='-Wl,'
16517         # All Alpha code is PIC.
16518         lt_prog_compiler_static_GCJ='-non_shared'
16519         ;;
16520       *)
16521         case `$CC -V 2>&1 | sed 5q` in
16522         *Sun\ C*)
16523           # Sun C 5.9
16524           lt_prog_compiler_pic_GCJ='-KPIC'
16525           lt_prog_compiler_static_GCJ='-Bstatic'
16526           lt_prog_compiler_wl_GCJ='-Wl,'
16527           ;;
16528         *Sun\ F*)
16529           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16530           lt_prog_compiler_pic_GCJ='-KPIC'
16531           lt_prog_compiler_static_GCJ='-Bstatic'
16532           lt_prog_compiler_wl_GCJ=''
16533           ;;
16534         esac
16535         ;;
16536       esac
16537       ;;
16538
16539     osf3* | osf4* | osf5*)
16540       lt_prog_compiler_wl_GCJ='-Wl,'
16541       # All OSF/1 code is PIC.
16542       lt_prog_compiler_static_GCJ='-non_shared'
16543       ;;
16544
16545     rdos*)
16546       lt_prog_compiler_static_GCJ='-non_shared'
16547       ;;
16548
16549     solaris*)
16550       lt_prog_compiler_pic_GCJ='-KPIC'
16551       lt_prog_compiler_static_GCJ='-Bstatic'
16552       case $cc_basename in
16553       f77* | f90* | f95*)
16554         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16555       *)
16556         lt_prog_compiler_wl_GCJ='-Wl,';;
16557       esac
16558       ;;
16559
16560     sunos4*)
16561       lt_prog_compiler_wl_GCJ='-Qoption ld '
16562       lt_prog_compiler_pic_GCJ='-PIC'
16563       lt_prog_compiler_static_GCJ='-Bstatic'
16564       ;;
16565
16566     sysv4 | sysv4.2uw2* | sysv4.3*)
16567       lt_prog_compiler_wl_GCJ='-Wl,'
16568       lt_prog_compiler_pic_GCJ='-KPIC'
16569       lt_prog_compiler_static_GCJ='-Bstatic'
16570       ;;
16571
16572     sysv4*MP*)
16573       if test -d /usr/nec ;then
16574         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16575         lt_prog_compiler_static_GCJ='-Bstatic'
16576       fi
16577       ;;
16578
16579     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16580       lt_prog_compiler_wl_GCJ='-Wl,'
16581       lt_prog_compiler_pic_GCJ='-KPIC'
16582       lt_prog_compiler_static_GCJ='-Bstatic'
16583       ;;
16584
16585     unicos*)
16586       lt_prog_compiler_wl_GCJ='-Wl,'
16587       lt_prog_compiler_can_build_shared_GCJ=no
16588       ;;
16589
16590     uts4*)
16591       lt_prog_compiler_pic_GCJ='-pic'
16592       lt_prog_compiler_static_GCJ='-Bstatic'
16593       ;;
16594
16595     *)
16596       lt_prog_compiler_can_build_shared_GCJ=no
16597       ;;
16598     esac
16599   fi
16600
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16602 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16603
16604 #
16605 # Check to make sure the PIC flag actually works.
16606 #
16607 if test -n "$lt_prog_compiler_pic_GCJ"; then
16608
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16610 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16611 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16612   $as_echo_n "(cached) " >&6
16613 else
16614   lt_cv_prog_compiler_pic_works_GCJ=no
16615   ac_outfile=conftest.$ac_objext
16616    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16617    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16618    # Insert the option either (1) after the last *FLAGS variable, or
16619    # (2) before a word containing "conftest.", or (3) at the end.
16620    # Note that $ac_compile itself does not contain backslashes and begins
16621    # with a dollar sign (not a hyphen), so the echo should work correctly.
16622    # The option is referenced via a variable to avoid confusing sed.
16623    lt_compile=`echo "$ac_compile" | $SED \
16624    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16625    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16626    -e 's:$: $lt_compiler_flag:'`
16627    (eval echo "\"\$as_me:16627: $lt_compile\"" >&5)
16628    (eval "$lt_compile" 2>conftest.err)
16629    ac_status=$?
16630    cat conftest.err >&5
16631    echo "$as_me:16631: \$? = $ac_status" >&5
16632    if (exit $ac_status) && test -s "$ac_outfile"; then
16633      # The compiler can only warn and ignore the option if not recognized
16634      # So say no if there are warnings other than the usual output.
16635      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16636      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16637      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16638        lt_cv_prog_compiler_pic_works_GCJ=yes
16639      fi
16640    fi
16641    $rm conftest*
16642
16643 fi
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16645 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16646
16647 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16648     case $lt_prog_compiler_pic_GCJ in
16649      "" | " "*) ;;
16650      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16651      esac
16652 else
16653     lt_prog_compiler_pic_GCJ=
16654      lt_prog_compiler_can_build_shared_GCJ=no
16655 fi
16656
16657 fi
16658 case $host_os in
16659   # For platforms which do not support PIC, -DPIC is meaningless:
16660   *djgpp*)
16661     lt_prog_compiler_pic_GCJ=
16662     ;;
16663   *)
16664     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16665     ;;
16666 esac
16667
16668 #
16669 # Check to make sure the static flag actually works.
16670 #
16671 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16674 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16675   $as_echo_n "(cached) " >&6
16676 else
16677   lt_cv_prog_compiler_static_works_GCJ=no
16678    save_LDFLAGS="$LDFLAGS"
16679    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16680    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16681    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16682      # The linker can only warn and ignore the option if not recognized
16683      # So say no if there are warnings
16684      if test -s conftest.err; then
16685        # Append any errors to the config.log.
16686        cat conftest.err 1>&5
16687        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16688        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16689        if diff conftest.exp conftest.er2 >/dev/null; then
16690          lt_cv_prog_compiler_static_works_GCJ=yes
16691        fi
16692      else
16693        lt_cv_prog_compiler_static_works_GCJ=yes
16694      fi
16695    fi
16696    $rm -r conftest*
16697    LDFLAGS="$save_LDFLAGS"
16698
16699 fi
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16701 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16702
16703 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16704     :
16705 else
16706     lt_prog_compiler_static_GCJ=
16707 fi
16708
16709
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16711 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16712 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16713   $as_echo_n "(cached) " >&6
16714 else
16715   lt_cv_prog_compiler_c_o_GCJ=no
16716    $rm -r conftest 2>/dev/null
16717    mkdir conftest
16718    cd conftest
16719    mkdir out
16720    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16721
16722    lt_compiler_flag="-o out/conftest2.$ac_objext"
16723    # Insert the option either (1) after the last *FLAGS variable, or
16724    # (2) before a word containing "conftest.", or (3) at the end.
16725    # Note that $ac_compile itself does not contain backslashes and begins
16726    # with a dollar sign (not a hyphen), so the echo should work correctly.
16727    lt_compile=`echo "$ac_compile" | $SED \
16728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730    -e 's:$: $lt_compiler_flag:'`
16731    (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
16732    (eval "$lt_compile" 2>out/conftest.err)
16733    ac_status=$?
16734    cat out/conftest.err >&5
16735    echo "$as_me:16735: \$? = $ac_status" >&5
16736    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16737    then
16738      # The compiler can only warn and ignore the option if not recognized
16739      # So say no if there are warnings
16740      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16741      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16742      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16743        lt_cv_prog_compiler_c_o_GCJ=yes
16744      fi
16745    fi
16746    chmod u+w . 2>&5
16747    $rm conftest*
16748    # SGI C++ compiler will create directory out/ii_files/ for
16749    # template instantiation
16750    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16751    $rm out/* && rmdir out
16752    cd ..
16753    rmdir conftest
16754    $rm conftest*
16755
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16758 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16759
16760
16761 hard_links="nottested"
16762 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16763   # do not overwrite the value of need_locks provided by the user
16764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16765 $as_echo_n "checking if we can lock with hard links... " >&6; }
16766   hard_links=yes
16767   $rm conftest*
16768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16769   touch conftest.a
16770   ln conftest.a conftest.b 2>&5 || hard_links=no
16771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16773 $as_echo "$hard_links" >&6; }
16774   if test "$hard_links" = no; then
16775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16776 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16777     need_locks=warn
16778   fi
16779 else
16780   need_locks=no
16781 fi
16782
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16784 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16785
16786   runpath_var=
16787   allow_undefined_flag_GCJ=
16788   enable_shared_with_static_runtimes_GCJ=no
16789   archive_cmds_GCJ=
16790   archive_expsym_cmds_GCJ=
16791   old_archive_From_new_cmds_GCJ=
16792   old_archive_from_expsyms_cmds_GCJ=
16793   export_dynamic_flag_spec_GCJ=
16794   whole_archive_flag_spec_GCJ=
16795   thread_safe_flag_spec_GCJ=
16796   hardcode_libdir_flag_spec_GCJ=
16797   hardcode_libdir_flag_spec_ld_GCJ=
16798   hardcode_libdir_separator_GCJ=
16799   hardcode_direct_GCJ=no
16800   hardcode_minus_L_GCJ=no
16801   hardcode_shlibpath_var_GCJ=unsupported
16802   link_all_deplibs_GCJ=unknown
16803   hardcode_automatic_GCJ=no
16804   module_cmds_GCJ=
16805   module_expsym_cmds_GCJ=
16806   always_export_symbols_GCJ=no
16807   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16808   # include_expsyms should be a list of space-separated symbols to be *always*
16809   # included in the symbol list
16810   include_expsyms_GCJ=
16811   # exclude_expsyms can be an extended regexp of symbols to exclude
16812   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16813   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16814   # as well as any symbol that contains `d'.
16815   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16816   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16817   # platforms (ab)use it in PIC code, but their linkers get confused if
16818   # the symbol is explicitly referenced.  Since portable code cannot
16819   # rely on this symbol name, it's probably fine to never include it in
16820   # preloaded symbol tables.
16821   # Exclude shared library initialization/finalization symbols.
16822   extract_expsyms_cmds=
16823   # Just being paranoid about ensuring that cc_basename is set.
16824   for cc_temp in $compiler""; do
16825   case $cc_temp in
16826     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16827     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16828     \-*) ;;
16829     *) break;;
16830   esac
16831 done
16832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16833
16834   case $host_os in
16835   cygwin* | mingw* | pw32*)
16836     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16837     # When not using gcc, we currently assume that we are using
16838     # Microsoft Visual C++.
16839     if test "$GCC" != yes; then
16840       with_gnu_ld=no
16841     fi
16842     ;;
16843   interix*)
16844     # we just hope/assume this is gcc and not c89 (= MSVC++)
16845     with_gnu_ld=yes
16846     ;;
16847   openbsd*)
16848     with_gnu_ld=no
16849     ;;
16850   esac
16851
16852   ld_shlibs_GCJ=yes
16853   if test "$with_gnu_ld" = yes; then
16854     # If archive_cmds runs LD, not CC, wlarc should be empty
16855     wlarc='${wl}'
16856
16857     # Set some defaults for GNU ld with shared library support. These
16858     # are reset later if shared libraries are not supported. Putting them
16859     # here allows them to be overridden if necessary.
16860     runpath_var=LD_RUN_PATH
16861     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16862     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16863     # ancient GNU ld didn't support --whole-archive et. al.
16864     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16865         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16866       else
16867         whole_archive_flag_spec_GCJ=
16868     fi
16869     supports_anon_versioning=no
16870     case `$LD -v 2>/dev/null` in
16871       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16872       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16873       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16874       *\ 2.11.*) ;; # other 2.11 versions
16875       *) supports_anon_versioning=yes ;;
16876     esac
16877
16878     # See if GNU ld supports shared libraries.
16879     case $host_os in
16880     aix[3-9]*)
16881       # On AIX/PPC, the GNU linker is very broken
16882       if test "$host_cpu" != ia64; then
16883         ld_shlibs_GCJ=no
16884         cat <<EOF 1>&2
16885
16886 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16887 *** to be unable to reliably create shared libraries on AIX.
16888 *** Therefore, libtool is disabling shared libraries support.  If you
16889 *** really care for shared libraries, you may want to modify your PATH
16890 *** so that a non-GNU linker is found, and then restart.
16891
16892 EOF
16893       fi
16894       ;;
16895
16896     amigaos*)
16897       archive_cmds_GCJ='$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)'
16898       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16899       hardcode_minus_L_GCJ=yes
16900
16901       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16902       # that the semantics of dynamic libraries on AmigaOS, at least up
16903       # to version 4, is to share data among multiple programs linked
16904       # with the same dynamic library.  Since this doesn't match the
16905       # behavior of shared libraries on other platforms, we can't use
16906       # them.
16907       ld_shlibs_GCJ=no
16908       ;;
16909
16910     beos*)
16911       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16912         allow_undefined_flag_GCJ=unsupported
16913         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16914         # support --undefined.  This deserves some investigation.  FIXME
16915         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16916       else
16917         ld_shlibs_GCJ=no
16918       fi
16919       ;;
16920
16921     cygwin* | mingw* | pw32*)
16922       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16923       # as there is no search path for DLLs.
16924       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16925       allow_undefined_flag_GCJ=unsupported
16926       always_export_symbols_GCJ=no
16927       enable_shared_with_static_runtimes_GCJ=yes
16928       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16929
16930       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16931         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16932         # If the export-symbols file already is a .def file (1st line
16933         # is EXPORTS), use it as is; otherwise, prepend...
16934         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16935           cp $export_symbols $output_objdir/$soname.def;
16936         else
16937           echo EXPORTS > $output_objdir/$soname.def;
16938           cat $export_symbols >> $output_objdir/$soname.def;
16939         fi~
16940         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16941       else
16942         ld_shlibs_GCJ=no
16943       fi
16944       ;;
16945
16946     interix[3-9]*)
16947       hardcode_direct_GCJ=no
16948       hardcode_shlibpath_var_GCJ=no
16949       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16950       export_dynamic_flag_spec_GCJ='${wl}-E'
16951       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16952       # Instead, shared libraries are loaded at an image base (0x10000000 by
16953       # default) and relocated if they conflict, which is a slow very memory
16954       # consuming and fragmenting process.  To avoid this, we pick a random,
16955       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16956       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16957       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16958       archive_expsym_cmds_GCJ='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'
16959       ;;
16960
16961     gnu* | linux* | k*bsd*-gnu)
16962       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16963         tmp_addflag=
16964         case $cc_basename,$host_cpu in
16965         pgcc*)                          # Portland Group C compiler
16966           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16967           tmp_addflag=' $pic_flag'
16968           ;;
16969         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16970           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16971           tmp_addflag=' $pic_flag -Mnomain' ;;
16972         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16973           tmp_addflag=' -i_dynamic' ;;
16974         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16975           tmp_addflag=' -i_dynamic -nofor_main' ;;
16976         ifc* | ifort*)                  # Intel Fortran compiler
16977           tmp_addflag=' -nofor_main' ;;
16978         esac
16979         case `$CC -V 2>&1 | sed 5q` in
16980         *Sun\ C*)                       # Sun C 5.9
16981           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16982           tmp_sharedflag='-G' ;;
16983         *Sun\ F*)                       # Sun Fortran 8.3
16984           tmp_sharedflag='-G' ;;
16985         *)
16986           tmp_sharedflag='-shared' ;;
16987         esac
16988         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16989
16990         if test $supports_anon_versioning = yes; then
16991           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16992   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16993   $echo "local: *; };" >> $output_objdir/$libname.ver~
16994           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16995         fi
16996         link_all_deplibs_GCJ=no
16997       else
16998         ld_shlibs_GCJ=no
16999       fi
17000       ;;
17001
17002     netbsd* | netbsdelf*-gnu)
17003       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17004         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17005         wlarc=
17006       else
17007         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17008         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17009       fi
17010       ;;
17011
17012     solaris*)
17013       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17014         ld_shlibs_GCJ=no
17015         cat <<EOF 1>&2
17016
17017 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17018 *** create shared libraries on Solaris systems.  Therefore, libtool
17019 *** is disabling shared libraries support.  We urge you to upgrade GNU
17020 *** binutils to release 2.9.1 or newer.  Another option is to modify
17021 *** your PATH or compiler configuration so that the native linker is
17022 *** used, and then restart.
17023
17024 EOF
17025       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17026         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17027         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17028       else
17029         ld_shlibs_GCJ=no
17030       fi
17031       ;;
17032
17033     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17034       case `$LD -v 2>&1` in
17035         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17036         ld_shlibs_GCJ=no
17037         cat <<_LT_EOF 1>&2
17038
17039 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17040 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17041 *** is disabling shared libraries support.  We urge you to upgrade GNU
17042 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17043 *** your PATH or compiler configuration so that the native linker is
17044 *** used, and then restart.
17045
17046 _LT_EOF
17047         ;;
17048         *)
17049           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17050             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17051             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17052             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17053           else
17054             ld_shlibs_GCJ=no
17055           fi
17056         ;;
17057       esac
17058       ;;
17059
17060     sunos4*)
17061       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17062       wlarc=
17063       hardcode_direct_GCJ=yes
17064       hardcode_shlibpath_var_GCJ=no
17065       ;;
17066
17067     *)
17068       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17069         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17070         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17071       else
17072         ld_shlibs_GCJ=no
17073       fi
17074       ;;
17075     esac
17076
17077     if test "$ld_shlibs_GCJ" = no; then
17078       runpath_var=
17079       hardcode_libdir_flag_spec_GCJ=
17080       export_dynamic_flag_spec_GCJ=
17081       whole_archive_flag_spec_GCJ=
17082     fi
17083   else
17084     # PORTME fill in a description of your system's linker (not GNU ld)
17085     case $host_os in
17086     aix3*)
17087       allow_undefined_flag_GCJ=unsupported
17088       always_export_symbols_GCJ=yes
17089       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17090       # Note: this linker hardcodes the directories in LIBPATH if there
17091       # are no directories specified by -L.
17092       hardcode_minus_L_GCJ=yes
17093       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17094         # Neither direct hardcoding nor static linking is supported with a
17095         # broken collect2.
17096         hardcode_direct_GCJ=unsupported
17097       fi
17098       ;;
17099
17100     aix[4-9]*)
17101       if test "$host_cpu" = ia64; then
17102         # On IA64, the linker does run time linking by default, so we don't
17103         # have to do anything special.
17104         aix_use_runtimelinking=no
17105         exp_sym_flag='-Bexport'
17106         no_entry_flag=""
17107       else
17108         # If we're using GNU nm, then we don't want the "-C" option.
17109         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17110         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17111           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17112         else
17113           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17114         fi
17115         aix_use_runtimelinking=no
17116
17117         # Test if we are trying to use run time linking or normal
17118         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17119         # need to do runtime linking.
17120         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17121           for ld_flag in $LDFLAGS; do
17122           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17123             aix_use_runtimelinking=yes
17124             break
17125           fi
17126           done
17127           ;;
17128         esac
17129
17130         exp_sym_flag='-bexport'
17131         no_entry_flag='-bnoentry'
17132       fi
17133
17134       # When large executables or shared objects are built, AIX ld can
17135       # have problems creating the table of contents.  If linking a library
17136       # or program results in "error TOC overflow" add -mminimal-toc to
17137       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17138       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17139
17140       archive_cmds_GCJ=''
17141       hardcode_direct_GCJ=yes
17142       hardcode_libdir_separator_GCJ=':'
17143       link_all_deplibs_GCJ=yes
17144
17145       if test "$GCC" = yes; then
17146         case $host_os in aix4.[012]|aix4.[012].*)
17147         # We only want to do this on AIX 4.2 and lower, the check
17148         # below for broken collect2 doesn't work under 4.3+
17149           collect2name=`${CC} -print-prog-name=collect2`
17150           if test -f "$collect2name" && \
17151            strings "$collect2name" | grep resolve_lib_name >/dev/null
17152           then
17153           # We have reworked collect2
17154           :
17155           else
17156           # We have old collect2
17157           hardcode_direct_GCJ=unsupported
17158           # It fails to find uninstalled libraries when the uninstalled
17159           # path is not listed in the libpath.  Setting hardcode_minus_L
17160           # to unsupported forces relinking
17161           hardcode_minus_L_GCJ=yes
17162           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17163           hardcode_libdir_separator_GCJ=
17164           fi
17165           ;;
17166         esac
17167         shared_flag='-shared'
17168         if test "$aix_use_runtimelinking" = yes; then
17169           shared_flag="$shared_flag "'${wl}-G'
17170         fi
17171       else
17172         # not using gcc
17173         if test "$host_cpu" = ia64; then
17174         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17175         # chokes on -Wl,-G. The following line is correct:
17176           shared_flag='-G'
17177         else
17178           if test "$aix_use_runtimelinking" = yes; then
17179             shared_flag='${wl}-G'
17180           else
17181             shared_flag='${wl}-bM:SRE'
17182           fi
17183         fi
17184       fi
17185
17186       # It seems that -bexpall does not export symbols beginning with
17187       # underscore (_), so it is better to generate a list of symbols to export.
17188       always_export_symbols_GCJ=yes
17189       if test "$aix_use_runtimelinking" = yes; then
17190         # Warning - without using the other runtime loading flags (-brtl),
17191         # -berok will link without error, but may produce a broken library.
17192         allow_undefined_flag_GCJ='-berok'
17193        # Determine the default libpath from the value encoded in an empty executable.
17194        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h.  */
17196
17197 int
17198 main ()
17199 {
17200
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 if ac_fn_c_try_link "$LINENO"; then :
17206
17207 lt_aix_libpath_sed='
17208     /Import File Strings/,/^$/ {
17209         /^0/ {
17210             s/^0  *\(.*\)$/\1/
17211             p
17212         }
17213     }'
17214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17215 # Check for a 64-bit object if we didn't find anything.
17216 if test -z "$aix_libpath"; then
17217   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17218 fi
17219 fi
17220 rm -f core conftest.err conftest.$ac_objext \
17221     conftest$ac_exeext conftest.$ac_ext
17222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17223
17224        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17225         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17226        else
17227         if test "$host_cpu" = ia64; then
17228           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17229           allow_undefined_flag_GCJ="-z nodefs"
17230           archive_expsym_cmds_GCJ="\$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"
17231         else
17232          # Determine the default libpath from the value encoded in an empty executable.
17233          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h.  */
17235
17236 int
17237 main ()
17238 {
17239
17240   ;
17241   return 0;
17242 }
17243 _ACEOF
17244 if ac_fn_c_try_link "$LINENO"; then :
17245
17246 lt_aix_libpath_sed='
17247     /Import File Strings/,/^$/ {
17248         /^0/ {
17249             s/^0  *\(.*\)$/\1/
17250             p
17251         }
17252     }'
17253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17254 # Check for a 64-bit object if we didn't find anything.
17255 if test -z "$aix_libpath"; then
17256   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17257 fi
17258 fi
17259 rm -f core conftest.err conftest.$ac_objext \
17260     conftest$ac_exeext conftest.$ac_ext
17261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17262
17263          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17264           # Warning - without using the other run time loading flags,
17265           # -berok will link without error, but may produce a broken library.
17266           no_undefined_flag_GCJ=' ${wl}-bernotok'
17267           allow_undefined_flag_GCJ=' ${wl}-berok'
17268           # Exported symbols can be pulled into shared objects from archives
17269           whole_archive_flag_spec_GCJ='$convenience'
17270           archive_cmds_need_lc_GCJ=yes
17271           # This is similar to how AIX traditionally builds its shared libraries.
17272           archive_expsym_cmds_GCJ="\$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'
17273         fi
17274       fi
17275       ;;
17276
17277     amigaos*)
17278       archive_cmds_GCJ='$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)'
17279       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280       hardcode_minus_L_GCJ=yes
17281       # see comment about different semantics on the GNU ld section
17282       ld_shlibs_GCJ=no
17283       ;;
17284
17285     bsdi[45]*)
17286       export_dynamic_flag_spec_GCJ=-rdynamic
17287       ;;
17288
17289     cygwin* | mingw* | pw32*)
17290       # When not using gcc, we currently assume that we are using
17291       # Microsoft Visual C++.
17292       # hardcode_libdir_flag_spec is actually meaningless, as there is
17293       # no search path for DLLs.
17294       hardcode_libdir_flag_spec_GCJ=' '
17295       allow_undefined_flag_GCJ=unsupported
17296       # Tell ltmain to make .lib files, not .a files.
17297       libext=lib
17298       # Tell ltmain to make .dll files, not .so files.
17299       shrext_cmds=".dll"
17300       # FIXME: Setting linknames here is a bad hack.
17301       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17302       # The linker will automatically build a .lib file if we build a DLL.
17303       old_archive_From_new_cmds_GCJ='true'
17304       # FIXME: Should let the user specify the lib program.
17305       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17306       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17307       enable_shared_with_static_runtimes_GCJ=yes
17308       ;;
17309
17310     darwin* | rhapsody*)
17311       case $host_os in
17312         rhapsody* | darwin1.[012])
17313          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17314          ;;
17315        *) # Darwin 1.3 on
17316          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17317            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17318          else
17319            case ${MACOSX_DEPLOYMENT_TARGET} in
17320              10.[012])
17321                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17322                ;;
17323              10.*)
17324                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17325                ;;
17326            esac
17327          fi
17328          ;;
17329       esac
17330       archive_cmds_need_lc_GCJ=no
17331       hardcode_direct_GCJ=no
17332       hardcode_automatic_GCJ=yes
17333       hardcode_shlibpath_var_GCJ=unsupported
17334       whole_archive_flag_spec_GCJ=''
17335       link_all_deplibs_GCJ=yes
17336     if test "$GCC" = yes ; then
17337         output_verbose_link_cmd='echo'
17338         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17339         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17340         archive_expsym_cmds_GCJ="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}"
17341         module_expsym_cmds_GCJ="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}"
17342     else
17343       case $cc_basename in
17344         xlc*)
17345          output_verbose_link_cmd='echo'
17346          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17347          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17348           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17349          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17350           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17351           ;;
17352        *)
17353          ld_shlibs_GCJ=no
17354           ;;
17355       esac
17356     fi
17357       ;;
17358
17359     dgux*)
17360       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17361       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17362       hardcode_shlibpath_var_GCJ=no
17363       ;;
17364
17365     freebsd1*)
17366       ld_shlibs_GCJ=no
17367       ;;
17368
17369     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17370     # support.  Future versions do this automatically, but an explicit c++rt0.o
17371     # does not break anything, and helps significantly (at the cost of a little
17372     # extra space).
17373     freebsd2.2*)
17374       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17375       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17376       hardcode_direct_GCJ=yes
17377       hardcode_shlibpath_var_GCJ=no
17378       ;;
17379
17380     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17381     freebsd2*)
17382       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17383       hardcode_direct_GCJ=yes
17384       hardcode_minus_L_GCJ=yes
17385       hardcode_shlibpath_var_GCJ=no
17386       ;;
17387
17388     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17389     freebsd* | dragonfly*)
17390       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17391       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17392       hardcode_direct_GCJ=yes
17393       hardcode_shlibpath_var_GCJ=no
17394       ;;
17395
17396     hpux9*)
17397       if test "$GCC" = yes; then
17398         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17399       else
17400         archive_cmds_GCJ='$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'
17401       fi
17402       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17403       hardcode_libdir_separator_GCJ=:
17404       hardcode_direct_GCJ=yes
17405
17406       # hardcode_minus_L: Not really in the search PATH,
17407       # but as the default location of the library.
17408       hardcode_minus_L_GCJ=yes
17409       export_dynamic_flag_spec_GCJ='${wl}-E'
17410       ;;
17411
17412     hpux10*)
17413       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17414         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17415       else
17416         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17417       fi
17418       if test "$with_gnu_ld" = no; then
17419         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17420         hardcode_libdir_separator_GCJ=:
17421
17422         hardcode_direct_GCJ=yes
17423         export_dynamic_flag_spec_GCJ='${wl}-E'
17424
17425         # hardcode_minus_L: Not really in the search PATH,
17426         # but as the default location of the library.
17427         hardcode_minus_L_GCJ=yes
17428       fi
17429       ;;
17430
17431     hpux11*)
17432       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17433         case $host_cpu in
17434         hppa*64*)
17435           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17436           ;;
17437         ia64*)
17438           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17439           ;;
17440         *)
17441           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17442           ;;
17443         esac
17444       else
17445         case $host_cpu in
17446         hppa*64*)
17447           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17448           ;;
17449         ia64*)
17450           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17451           ;;
17452         *)
17453           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17454           ;;
17455         esac
17456       fi
17457       if test "$with_gnu_ld" = no; then
17458         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17459         hardcode_libdir_separator_GCJ=:
17460
17461         case $host_cpu in
17462         hppa*64*|ia64*)
17463           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17464           hardcode_direct_GCJ=no
17465           hardcode_shlibpath_var_GCJ=no
17466           ;;
17467         *)
17468           hardcode_direct_GCJ=yes
17469           export_dynamic_flag_spec_GCJ='${wl}-E'
17470
17471           # hardcode_minus_L: Not really in the search PATH,
17472           # but as the default location of the library.
17473           hardcode_minus_L_GCJ=yes
17474           ;;
17475         esac
17476       fi
17477       ;;
17478
17479     irix5* | irix6* | nonstopux*)
17480       if test "$GCC" = yes; then
17481         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17482       else
17483         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17484         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17485       fi
17486       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17487       hardcode_libdir_separator_GCJ=:
17488       link_all_deplibs_GCJ=yes
17489       ;;
17490
17491     netbsd* | netbsdelf*-gnu)
17492       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17493         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17494       else
17495         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17496       fi
17497       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17498       hardcode_direct_GCJ=yes
17499       hardcode_shlibpath_var_GCJ=no
17500       ;;
17501
17502     newsos6)
17503       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17504       hardcode_direct_GCJ=yes
17505       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17506       hardcode_libdir_separator_GCJ=:
17507       hardcode_shlibpath_var_GCJ=no
17508       ;;
17509
17510     openbsd*)
17511       if test -f /usr/libexec/ld.so; then
17512         hardcode_direct_GCJ=yes
17513         hardcode_shlibpath_var_GCJ=no
17514         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17515           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17516           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17517           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17518           export_dynamic_flag_spec_GCJ='${wl}-E'
17519         else
17520           case $host_os in
17521            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17522              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17523              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17524              ;;
17525            *)
17526              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17527              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17528              ;;
17529           esac
17530         fi
17531       else
17532         ld_shlibs_GCJ=no
17533       fi
17534       ;;
17535
17536     os2*)
17537       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17538       hardcode_minus_L_GCJ=yes
17539       allow_undefined_flag_GCJ=unsupported
17540       archive_cmds_GCJ='$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'
17541       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17542       ;;
17543
17544     osf3*)
17545       if test "$GCC" = yes; then
17546         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17547         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17548       else
17549         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17550         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17551       fi
17552       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17553       hardcode_libdir_separator_GCJ=:
17554       ;;
17555
17556     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17557       if test "$GCC" = yes; then
17558         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17559         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17560         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17561       else
17562         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17563         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17564         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17565         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17566
17567         # Both c and cxx compiler support -rpath directly
17568         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17569       fi
17570       hardcode_libdir_separator_GCJ=:
17571       ;;
17572
17573     solaris*)
17574       no_undefined_flag_GCJ=' -z text'
17575       if test "$GCC" = yes; then
17576         wlarc='${wl}'
17577         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17578         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17579           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17580       else
17581         wlarc=''
17582         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17583         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17584         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17585       fi
17586       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17587       hardcode_shlibpath_var_GCJ=no
17588       case $host_os in
17589       solaris2.[0-5] | solaris2.[0-5].*) ;;
17590       *)
17591         # The compiler driver will combine and reorder linker options,
17592         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17593         # but is careful enough not to reorder.
17594         # Supported since Solaris 2.6 (maybe 2.5.1?)
17595         if test "$GCC" = yes; then
17596           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17597         else
17598           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17599         fi
17600         ;;
17601       esac
17602       link_all_deplibs_GCJ=yes
17603       ;;
17604
17605     sunos4*)
17606       if test "x$host_vendor" = xsequent; then
17607         # Use $CC to link under sequent, because it throws in some extra .o
17608         # files that make .init and .fini sections work.
17609         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17610       else
17611         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17612       fi
17613       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17614       hardcode_direct_GCJ=yes
17615       hardcode_minus_L_GCJ=yes
17616       hardcode_shlibpath_var_GCJ=no
17617       ;;
17618
17619     sysv4)
17620       case $host_vendor in
17621         sni)
17622           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17623           hardcode_direct_GCJ=yes # is this really true???
17624         ;;
17625         siemens)
17626           ## LD is ld it makes a PLAMLIB
17627           ## CC just makes a GrossModule.
17628           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17629           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17630           hardcode_direct_GCJ=no
17631         ;;
17632         motorola)
17633           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17634           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17635         ;;
17636       esac
17637       runpath_var='LD_RUN_PATH'
17638       hardcode_shlibpath_var_GCJ=no
17639       ;;
17640
17641     sysv4.3*)
17642       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643       hardcode_shlibpath_var_GCJ=no
17644       export_dynamic_flag_spec_GCJ='-Bexport'
17645       ;;
17646
17647     sysv4*MP*)
17648       if test -d /usr/nec; then
17649         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17650         hardcode_shlibpath_var_GCJ=no
17651         runpath_var=LD_RUN_PATH
17652         hardcode_runpath_var=yes
17653         ld_shlibs_GCJ=yes
17654       fi
17655       ;;
17656
17657     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17658       no_undefined_flag_GCJ='${wl}-z,text'
17659       archive_cmds_need_lc_GCJ=no
17660       hardcode_shlibpath_var_GCJ=no
17661       runpath_var='LD_RUN_PATH'
17662
17663       if test "$GCC" = yes; then
17664         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17665         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17666       else
17667         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17668         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17669       fi
17670       ;;
17671
17672     sysv5* | sco3.2v5* | sco5v6*)
17673       # Note: We can NOT use -z defs as we might desire, because we do not
17674       # link with -lc, and that would cause any symbols used from libc to
17675       # always be unresolved, which means just about no library would
17676       # ever link correctly.  If we're not using GNU ld we use -z text
17677       # though, which does catch some bad symbols but isn't as heavy-handed
17678       # as -z defs.
17679       no_undefined_flag_GCJ='${wl}-z,text'
17680       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17681       archive_cmds_need_lc_GCJ=no
17682       hardcode_shlibpath_var_GCJ=no
17683       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17684       hardcode_libdir_separator_GCJ=':'
17685       link_all_deplibs_GCJ=yes
17686       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17687       runpath_var='LD_RUN_PATH'
17688
17689       if test "$GCC" = yes; then
17690         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17691         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17692       else
17693         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17694         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17695       fi
17696       ;;
17697
17698     uts4*)
17699       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17700       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17701       hardcode_shlibpath_var_GCJ=no
17702       ;;
17703
17704     *)
17705       ld_shlibs_GCJ=no
17706       ;;
17707     esac
17708   fi
17709
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17711 $as_echo "$ld_shlibs_GCJ" >&6; }
17712 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17713
17714 #
17715 # Do we need to explicitly link libc?
17716 #
17717 case "x$archive_cmds_need_lc_GCJ" in
17718 x|xyes)
17719   # Assume -lc should be added
17720   archive_cmds_need_lc_GCJ=yes
17721
17722   if test "$enable_shared" = yes && test "$GCC" = yes; then
17723     case $archive_cmds_GCJ in
17724     *'~'*)
17725       # FIXME: we may have to deal with multi-command sequences.
17726       ;;
17727     '$CC '*)
17728       # Test whether the compiler implicitly links with -lc since on some
17729       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17730       # to ld, don't add -lc before -lgcc.
17731       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17733       $rm conftest*
17734       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17735
17736       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17737   (eval $ac_compile) 2>&5
17738   ac_status=$?
17739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17740   test $ac_status = 0; } 2>conftest.err; then
17741         soname=conftest
17742         lib=conftest
17743         libobjs=conftest.$ac_objext
17744         deplibs=
17745         wl=$lt_prog_compiler_wl_GCJ
17746         pic_flag=$lt_prog_compiler_pic_GCJ
17747         compiler_flags=-v
17748         linker_flags=-v
17749         verstring=
17750         output_objdir=.
17751         libname=conftest
17752         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17753         allow_undefined_flag_GCJ=
17754         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17755   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17756   ac_status=$?
17757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17758   test $ac_status = 0; }
17759         then
17760           archive_cmds_need_lc_GCJ=no
17761         else
17762           archive_cmds_need_lc_GCJ=yes
17763         fi
17764         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17765       else
17766         cat conftest.err 1>&5
17767       fi
17768       $rm conftest*
17769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17770 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17771       ;;
17772     esac
17773   fi
17774   ;;
17775 esac
17776
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17778 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17779 library_names_spec=
17780 libname_spec='lib$name'
17781 soname_spec=
17782 shrext_cmds=".so"
17783 postinstall_cmds=
17784 postuninstall_cmds=
17785 finish_cmds=
17786 finish_eval=
17787 shlibpath_var=
17788 shlibpath_overrides_runpath=unknown
17789 version_type=none
17790 dynamic_linker="$host_os ld.so"
17791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17792
17793 need_lib_prefix=unknown
17794 hardcode_into_libs=no
17795
17796 # when you set need_version to no, make sure it does not cause -set_version
17797 # flags to be left without arguments
17798 need_version=unknown
17799
17800 case $host_os in
17801 aix3*)
17802   version_type=linux
17803   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17804   shlibpath_var=LIBPATH
17805
17806   # AIX 3 has no versioning support, so we append a major version to the name.
17807   soname_spec='${libname}${release}${shared_ext}$major'
17808   ;;
17809
17810 aix[4-9]*)
17811   version_type=linux
17812   need_lib_prefix=no
17813   need_version=no
17814   hardcode_into_libs=yes
17815   if test "$host_cpu" = ia64; then
17816     # AIX 5 supports IA64
17817     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17818     shlibpath_var=LD_LIBRARY_PATH
17819   else
17820     # With GCC up to 2.95.x, collect2 would create an import file
17821     # for dependence libraries.  The import file would start with
17822     # the line `#! .'.  This would cause the generated library to
17823     # depend on `.', always an invalid library.  This was fixed in
17824     # development snapshots of GCC prior to 3.0.
17825     case $host_os in
17826       aix4 | aix4.[01] | aix4.[01].*)
17827       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17828            echo ' yes '
17829            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17830         :
17831       else
17832         can_build_shared=no
17833       fi
17834       ;;
17835     esac
17836     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17837     # soname into executable. Probably we can add versioning support to
17838     # collect2, so additional links can be useful in future.
17839     if test "$aix_use_runtimelinking" = yes; then
17840       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17841       # instead of lib<name>.a to let people know that these are not
17842       # typical AIX shared libraries.
17843       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844     else
17845       # We preserve .a as extension for shared libraries through AIX4.2
17846       # and later when we are not doing run time linking.
17847       library_names_spec='${libname}${release}.a $libname.a'
17848       soname_spec='${libname}${release}${shared_ext}$major'
17849     fi
17850     shlibpath_var=LIBPATH
17851   fi
17852   ;;
17853
17854 amigaos*)
17855   library_names_spec='$libname.ixlibrary $libname.a'
17856   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17857   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17858   ;;
17859
17860 beos*)
17861   library_names_spec='${libname}${shared_ext}'
17862   dynamic_linker="$host_os ld.so"
17863   shlibpath_var=LIBRARY_PATH
17864   ;;
17865
17866 bsdi[45]*)
17867   version_type=linux
17868   need_version=no
17869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870   soname_spec='${libname}${release}${shared_ext}$major'
17871   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17872   shlibpath_var=LD_LIBRARY_PATH
17873   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17874   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17875   # the default ld.so.conf also contains /usr/contrib/lib and
17876   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17877   # libtool to hard-code these into programs
17878   ;;
17879
17880 cygwin* | mingw* | pw32*)
17881   version_type=windows
17882   shrext_cmds=".dll"
17883   need_version=no
17884   need_lib_prefix=no
17885
17886   case $GCC,$host_os in
17887   yes,cygwin* | yes,mingw* | yes,pw32*)
17888     library_names_spec='$libname.dll.a'
17889     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17890     postinstall_cmds='base_file=`basename \${file}`~
17891       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17892       dldir=$destdir/`dirname \$dlpath`~
17893       test -d \$dldir || mkdir -p \$dldir~
17894       $install_prog $dir/$dlname \$dldir/$dlname~
17895       chmod a+x \$dldir/$dlname'
17896     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17897       dlpath=$dir/\$dldll~
17898        $rm \$dlpath'
17899     shlibpath_overrides_runpath=yes
17900
17901     case $host_os in
17902     cygwin*)
17903       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17904       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17905       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17906       ;;
17907     mingw*)
17908       # MinGW DLLs use traditional 'lib' prefix
17909       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17910       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17911       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17912         # It is most probably a Windows format PATH printed by
17913         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17914         # path with ; separators, and with drive letters. We can handle the
17915         # drive letters (cygwin fileutils understands them), so leave them,
17916         # especially as we might pass files found there to a mingw objdump,
17917         # which wouldn't understand a cygwinified path. Ahh.
17918         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17919       else
17920         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17921       fi
17922       ;;
17923     pw32*)
17924       # pw32 DLLs use 'pw' prefix rather than 'lib'
17925       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17926       ;;
17927     esac
17928     ;;
17929
17930   *)
17931     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17932     ;;
17933   esac
17934   dynamic_linker='Win32 ld.exe'
17935   # FIXME: first we should search . and the directory the executable is in
17936   shlibpath_var=PATH
17937   ;;
17938
17939 darwin* | rhapsody*)
17940   dynamic_linker="$host_os dyld"
17941   version_type=darwin
17942   need_lib_prefix=no
17943   need_version=no
17944   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17945   soname_spec='${libname}${release}${major}$shared_ext'
17946   shlibpath_overrides_runpath=yes
17947   shlibpath_var=DYLD_LIBRARY_PATH
17948   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17949
17950   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17951   ;;
17952
17953 dgux*)
17954   version_type=linux
17955   need_lib_prefix=no
17956   need_version=no
17957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17958   soname_spec='${libname}${release}${shared_ext}$major'
17959   shlibpath_var=LD_LIBRARY_PATH
17960   ;;
17961
17962 freebsd1*)
17963   dynamic_linker=no
17964   ;;
17965
17966 freebsd* | dragonfly*)
17967   # DragonFly does not have aout.  When/if they implement a new
17968   # versioning mechanism, adjust this.
17969   if test -x /usr/bin/objformat; then
17970     objformat=`/usr/bin/objformat`
17971   else
17972     case $host_os in
17973     freebsd[123]*) objformat=aout ;;
17974     *) objformat=elf ;;
17975     esac
17976   fi
17977   version_type=freebsd-$objformat
17978   case $version_type in
17979     freebsd-elf*)
17980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17981       need_version=no
17982       need_lib_prefix=no
17983       ;;
17984     freebsd-*)
17985       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17986       need_version=yes
17987       ;;
17988   esac
17989   shlibpath_var=LD_LIBRARY_PATH
17990   case $host_os in
17991   freebsd2*)
17992     shlibpath_overrides_runpath=yes
17993     ;;
17994   freebsd3.[01]* | freebsdelf3.[01]*)
17995     shlibpath_overrides_runpath=yes
17996     hardcode_into_libs=yes
17997     ;;
17998   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17999   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18000     shlibpath_overrides_runpath=no
18001     hardcode_into_libs=yes
18002     ;;
18003   *) # from 4.6 on, and DragonFly
18004     shlibpath_overrides_runpath=yes
18005     hardcode_into_libs=yes
18006     ;;
18007   esac
18008   ;;
18009
18010 gnu*)
18011   version_type=linux
18012   need_lib_prefix=no
18013   need_version=no
18014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18015   soname_spec='${libname}${release}${shared_ext}$major'
18016   shlibpath_var=LD_LIBRARY_PATH
18017   hardcode_into_libs=yes
18018   ;;
18019
18020 hpux9* | hpux10* | hpux11*)
18021   # Give a soname corresponding to the major version so that dld.sl refuses to
18022   # link against other versions.
18023   version_type=sunos
18024   need_lib_prefix=no
18025   need_version=no
18026   case $host_cpu in
18027   ia64*)
18028     shrext_cmds='.so'
18029     hardcode_into_libs=yes
18030     dynamic_linker="$host_os dld.so"
18031     shlibpath_var=LD_LIBRARY_PATH
18032     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034     soname_spec='${libname}${release}${shared_ext}$major'
18035     if test "X$HPUX_IA64_MODE" = X32; then
18036       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18037     else
18038       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18039     fi
18040     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18041     ;;
18042    hppa*64*)
18043      shrext_cmds='.sl'
18044      hardcode_into_libs=yes
18045      dynamic_linker="$host_os dld.sl"
18046      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18047      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18048      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18049      soname_spec='${libname}${release}${shared_ext}$major'
18050      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18051      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18052      ;;
18053    *)
18054     shrext_cmds='.sl'
18055     dynamic_linker="$host_os dld.sl"
18056     shlibpath_var=SHLIB_PATH
18057     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18059     soname_spec='${libname}${release}${shared_ext}$major'
18060     ;;
18061   esac
18062   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18063   postinstall_cmds='chmod 555 $lib'
18064   ;;
18065
18066 interix[3-9]*)
18067   version_type=linux
18068   need_lib_prefix=no
18069   need_version=no
18070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18071   soname_spec='${libname}${release}${shared_ext}$major'
18072   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18073   shlibpath_var=LD_LIBRARY_PATH
18074   shlibpath_overrides_runpath=no
18075   hardcode_into_libs=yes
18076   ;;
18077
18078 irix5* | irix6* | nonstopux*)
18079   case $host_os in
18080     nonstopux*) version_type=nonstopux ;;
18081     *)
18082         if test "$lt_cv_prog_gnu_ld" = yes; then
18083                 version_type=linux
18084         else
18085                 version_type=irix
18086         fi ;;
18087   esac
18088   need_lib_prefix=no
18089   need_version=no
18090   soname_spec='${libname}${release}${shared_ext}$major'
18091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18092   case $host_os in
18093   irix5* | nonstopux*)
18094     libsuff= shlibsuff=
18095     ;;
18096   *)
18097     case $LD in # libtool.m4 will add one of these switches to LD
18098     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18099       libsuff= shlibsuff= libmagic=32-bit;;
18100     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18101       libsuff=32 shlibsuff=N32 libmagic=N32;;
18102     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18103       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18104     *) libsuff= shlibsuff= libmagic=never-match;;
18105     esac
18106     ;;
18107   esac
18108   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18109   shlibpath_overrides_runpath=no
18110   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18111   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18112   hardcode_into_libs=yes
18113   ;;
18114
18115 # No shared lib support for Linux oldld, aout, or coff.
18116 linux*oldld* | linux*aout* | linux*coff*)
18117   dynamic_linker=no
18118   ;;
18119
18120 # This must be Linux ELF.
18121 linux* | k*bsd*-gnu)
18122   version_type=linux
18123   need_lib_prefix=no
18124   need_version=no
18125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18126   soname_spec='${libname}${release}${shared_ext}$major'
18127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18128   shlibpath_var=LD_LIBRARY_PATH
18129   shlibpath_overrides_runpath=no
18130   # This implies no fast_install, which is unacceptable.
18131   # Some rework will be needed to allow for fast_install
18132   # before this can be enabled.
18133   hardcode_into_libs=yes
18134
18135   # Append ld.so.conf contents to the search path
18136   if test -f /etc/ld.so.conf; then
18137     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18138     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18139   fi
18140
18141   # We used to test for /lib/ld.so.1 and disable shared libraries on
18142   # powerpc, because MkLinux only supported shared libraries with the
18143   # GNU dynamic linker.  Since this was broken with cross compilers,
18144   # most powerpc-linux boxes support dynamic linking these days and
18145   # people can always --disable-shared, the test was removed, and we
18146   # assume the GNU/Linux dynamic linker is in use.
18147   dynamic_linker='GNU/Linux ld.so'
18148   ;;
18149
18150 netbsdelf*-gnu)
18151   version_type=linux
18152   need_lib_prefix=no
18153   need_version=no
18154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18155   soname_spec='${libname}${release}${shared_ext}$major'
18156   shlibpath_var=LD_LIBRARY_PATH
18157   shlibpath_overrides_runpath=no
18158   hardcode_into_libs=yes
18159   dynamic_linker='NetBSD ld.elf_so'
18160   ;;
18161
18162 netbsd*)
18163   version_type=sunos
18164   need_lib_prefix=no
18165   need_version=no
18166   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18168     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18169     dynamic_linker='NetBSD (a.out) ld.so'
18170   else
18171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18172     soname_spec='${libname}${release}${shared_ext}$major'
18173     dynamic_linker='NetBSD ld.elf_so'
18174   fi
18175   shlibpath_var=LD_LIBRARY_PATH
18176   shlibpath_overrides_runpath=yes
18177   hardcode_into_libs=yes
18178   ;;
18179
18180 newsos6)
18181   version_type=linux
18182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183   shlibpath_var=LD_LIBRARY_PATH
18184   shlibpath_overrides_runpath=yes
18185   ;;
18186
18187 nto-qnx*)
18188   version_type=linux
18189   need_lib_prefix=no
18190   need_version=no
18191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192   soname_spec='${libname}${release}${shared_ext}$major'
18193   shlibpath_var=LD_LIBRARY_PATH
18194   shlibpath_overrides_runpath=yes
18195   ;;
18196
18197 openbsd*)
18198   version_type=sunos
18199   sys_lib_dlsearch_path_spec="/usr/lib"
18200   need_lib_prefix=no
18201   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18202   case $host_os in
18203     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18204     *)                         need_version=no  ;;
18205   esac
18206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18207   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18208   shlibpath_var=LD_LIBRARY_PATH
18209   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18210     case $host_os in
18211       openbsd2.[89] | openbsd2.[89].*)
18212         shlibpath_overrides_runpath=no
18213         ;;
18214       *)
18215         shlibpath_overrides_runpath=yes
18216         ;;
18217       esac
18218   else
18219     shlibpath_overrides_runpath=yes
18220   fi
18221   ;;
18222
18223 os2*)
18224   libname_spec='$name'
18225   shrext_cmds=".dll"
18226   need_lib_prefix=no
18227   library_names_spec='$libname${shared_ext} $libname.a'
18228   dynamic_linker='OS/2 ld.exe'
18229   shlibpath_var=LIBPATH
18230   ;;
18231
18232 osf3* | osf4* | osf5*)
18233   version_type=osf
18234   need_lib_prefix=no
18235   need_version=no
18236   soname_spec='${libname}${release}${shared_ext}$major'
18237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238   shlibpath_var=LD_LIBRARY_PATH
18239   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18240   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18241   ;;
18242
18243 rdos*)
18244   dynamic_linker=no
18245   ;;
18246
18247 solaris*)
18248   version_type=linux
18249   need_lib_prefix=no
18250   need_version=no
18251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252   soname_spec='${libname}${release}${shared_ext}$major'
18253   shlibpath_var=LD_LIBRARY_PATH
18254   shlibpath_overrides_runpath=yes
18255   hardcode_into_libs=yes
18256   # ldd complains unless libraries are executable
18257   postinstall_cmds='chmod +x $lib'
18258   ;;
18259
18260 sunos4*)
18261   version_type=sunos
18262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18263   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18264   shlibpath_var=LD_LIBRARY_PATH
18265   shlibpath_overrides_runpath=yes
18266   if test "$with_gnu_ld" = yes; then
18267     need_lib_prefix=no
18268   fi
18269   need_version=yes
18270   ;;
18271
18272 sysv4 | sysv4.3*)
18273   version_type=linux
18274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275   soname_spec='${libname}${release}${shared_ext}$major'
18276   shlibpath_var=LD_LIBRARY_PATH
18277   case $host_vendor in
18278     sni)
18279       shlibpath_overrides_runpath=no
18280       need_lib_prefix=no
18281       export_dynamic_flag_spec='${wl}-Blargedynsym'
18282       runpath_var=LD_RUN_PATH
18283       ;;
18284     siemens)
18285       need_lib_prefix=no
18286       ;;
18287     motorola)
18288       need_lib_prefix=no
18289       need_version=no
18290       shlibpath_overrides_runpath=no
18291       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18292       ;;
18293   esac
18294   ;;
18295
18296 sysv4*MP*)
18297   if test -d /usr/nec ;then
18298     version_type=linux
18299     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18300     soname_spec='$libname${shared_ext}.$major'
18301     shlibpath_var=LD_LIBRARY_PATH
18302   fi
18303   ;;
18304
18305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18306   version_type=freebsd-elf
18307   need_lib_prefix=no
18308   need_version=no
18309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18310   soname_spec='${libname}${release}${shared_ext}$major'
18311   shlibpath_var=LD_LIBRARY_PATH
18312   hardcode_into_libs=yes
18313   if test "$with_gnu_ld" = yes; then
18314     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18315     shlibpath_overrides_runpath=no
18316   else
18317     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18318     shlibpath_overrides_runpath=yes
18319     case $host_os in
18320       sco3.2v5*)
18321         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18322         ;;
18323     esac
18324   fi
18325   sys_lib_dlsearch_path_spec='/usr/lib'
18326   ;;
18327
18328 uts4*)
18329   version_type=linux
18330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18331   soname_spec='${libname}${release}${shared_ext}$major'
18332   shlibpath_var=LD_LIBRARY_PATH
18333   ;;
18334
18335 *)
18336   dynamic_linker=no
18337   ;;
18338 esac
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18340 $as_echo "$dynamic_linker" >&6; }
18341 test "$dynamic_linker" = no && can_build_shared=no
18342
18343 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18344   $as_echo_n "(cached) " >&6
18345 else
18346   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18347 fi
18348
18349 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18350 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18351   $as_echo_n "(cached) " >&6
18352 else
18353   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18354 fi
18355
18356 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18357
18358 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18359 if test "$GCC" = yes; then
18360   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18361 fi
18362
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18364 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18365 hardcode_action_GCJ=
18366 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18367    test -n "$runpath_var_GCJ" || \
18368    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18369
18370   # We can hardcode non-existant directories.
18371   if test "$hardcode_direct_GCJ" != no &&
18372      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18373      # have to relink, otherwise we might link with an installed library
18374      # when we should be linking with a yet-to-be-installed one
18375      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18376      test "$hardcode_minus_L_GCJ" != no; then
18377     # Linking always hardcodes the temporary library directory.
18378     hardcode_action_GCJ=relink
18379   else
18380     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18381     hardcode_action_GCJ=immediate
18382   fi
18383 else
18384   # We cannot hardcode anything, or else we can only hardcode existing
18385   # directories.
18386   hardcode_action_GCJ=unsupported
18387 fi
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18389 $as_echo "$hardcode_action_GCJ" >&6; }
18390
18391 if test "$hardcode_action_GCJ" = relink; then
18392   # Fast installation is not supported
18393   enable_fast_install=no
18394 elif test "$shlibpath_overrides_runpath" = yes ||
18395      test "$enable_shared" = no; then
18396   # Fast installation is not necessary
18397   enable_fast_install=needless
18398 fi
18399
18400
18401 # The else clause should only fire when bootstrapping the
18402 # libtool distribution, otherwise you forgot to ship ltmain.sh
18403 # with your package, and you will get complaints that there are
18404 # no rules to generate ltmain.sh.
18405 if test -f "$ltmain"; then
18406   # See if we are running on zsh, and set the options which allow our commands through
18407   # without removal of \ escapes.
18408   if test -n "${ZSH_VERSION+set}" ; then
18409     setopt NO_GLOB_SUBST
18410   fi
18411   # Now quote all the things that may contain metacharacters while being
18412   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18413   # variables and quote the copies for generation of the libtool script.
18414   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18415     SED SHELL STRIP \
18416     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18417     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18418     deplibs_check_method reload_flag reload_cmds need_locks \
18419     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18420     lt_cv_sys_global_symbol_to_c_name_address \
18421     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18422     old_postinstall_cmds old_postuninstall_cmds \
18423     compiler_GCJ \
18424     CC_GCJ \
18425     LD_GCJ \
18426     lt_prog_compiler_wl_GCJ \
18427     lt_prog_compiler_pic_GCJ \
18428     lt_prog_compiler_static_GCJ \
18429     lt_prog_compiler_no_builtin_flag_GCJ \
18430     export_dynamic_flag_spec_GCJ \
18431     thread_safe_flag_spec_GCJ \
18432     whole_archive_flag_spec_GCJ \
18433     enable_shared_with_static_runtimes_GCJ \
18434     old_archive_cmds_GCJ \
18435     old_archive_from_new_cmds_GCJ \
18436     predep_objects_GCJ \
18437     postdep_objects_GCJ \
18438     predeps_GCJ \
18439     postdeps_GCJ \
18440     compiler_lib_search_path_GCJ \
18441     compiler_lib_search_dirs_GCJ \
18442     archive_cmds_GCJ \
18443     archive_expsym_cmds_GCJ \
18444     postinstall_cmds_GCJ \
18445     postuninstall_cmds_GCJ \
18446     old_archive_from_expsyms_cmds_GCJ \
18447     allow_undefined_flag_GCJ \
18448     no_undefined_flag_GCJ \
18449     export_symbols_cmds_GCJ \
18450     hardcode_libdir_flag_spec_GCJ \
18451     hardcode_libdir_flag_spec_ld_GCJ \
18452     hardcode_libdir_separator_GCJ \
18453     hardcode_automatic_GCJ \
18454     module_cmds_GCJ \
18455     module_expsym_cmds_GCJ \
18456     lt_cv_prog_compiler_c_o_GCJ \
18457     fix_srcfile_path_GCJ \
18458     exclude_expsyms_GCJ \
18459     include_expsyms_GCJ; do
18460
18461     case $var in
18462     old_archive_cmds_GCJ | \
18463     old_archive_from_new_cmds_GCJ | \
18464     archive_cmds_GCJ | \
18465     archive_expsym_cmds_GCJ | \
18466     module_cmds_GCJ | \
18467     module_expsym_cmds_GCJ | \
18468     old_archive_from_expsyms_cmds_GCJ | \
18469     export_symbols_cmds_GCJ | \
18470     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18471     postinstall_cmds | postuninstall_cmds | \
18472     old_postinstall_cmds | old_postuninstall_cmds | \
18473     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18474       # Double-quote double-evaled strings.
18475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18476       ;;
18477     *)
18478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18479       ;;
18480     esac
18481   done
18482
18483   case $lt_echo in
18484   *'\$0 --fallback-echo"')
18485     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18486     ;;
18487   esac
18488
18489 cfgfile="$ofile"
18490
18491   cat <<__EOF__ >> "$cfgfile"
18492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18493
18494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18495
18496 # Shell to use when invoking shell scripts.
18497 SHELL=$lt_SHELL
18498
18499 # Whether or not to build shared libraries.
18500 build_libtool_libs=$enable_shared
18501
18502 # Whether or not to build static libraries.
18503 build_old_libs=$enable_static
18504
18505 # Whether or not to add -lc for building shared libraries.
18506 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18507
18508 # Whether or not to disallow shared libs when runtime libs are static
18509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18510
18511 # Whether or not to optimize for fast installation.
18512 fast_install=$enable_fast_install
18513
18514 # The host system.
18515 host_alias=$host_alias
18516 host=$host
18517 host_os=$host_os
18518
18519 # The build system.
18520 build_alias=$build_alias
18521 build=$build
18522 build_os=$build_os
18523
18524 # An echo program that does not interpret backslashes.
18525 echo=$lt_echo
18526
18527 # The archiver.
18528 AR=$lt_AR
18529 AR_FLAGS=$lt_AR_FLAGS
18530
18531 # A C compiler.
18532 LTCC=$lt_LTCC
18533
18534 # LTCC compiler flags.
18535 LTCFLAGS=$lt_LTCFLAGS
18536
18537 # A language-specific compiler.
18538 CC=$lt_compiler_GCJ
18539
18540 # Is the compiler the GNU C compiler?
18541 with_gcc=$GCC_GCJ
18542
18543 # An ERE matcher.
18544 EGREP=$lt_EGREP
18545
18546 # The linker used to build libraries.
18547 LD=$lt_LD_GCJ
18548
18549 # Whether we need hard or soft links.
18550 LN_S=$lt_LN_S
18551
18552 # A BSD-compatible nm program.
18553 NM=$lt_NM
18554
18555 # A symbol stripping program
18556 STRIP=$lt_STRIP
18557
18558 # Used to examine libraries when file_magic_cmd begins "file"
18559 MAGIC_CMD=$MAGIC_CMD
18560
18561 # Used on cygwin: DLL creation program.
18562 DLLTOOL="$DLLTOOL"
18563
18564 # Used on cygwin: object dumper.
18565 OBJDUMP="$OBJDUMP"
18566
18567 # Used on cygwin: assembler.
18568 AS="$AS"
18569
18570 # The name of the directory that contains temporary libtool files.
18571 objdir=$objdir
18572
18573 # How to create reloadable object files.
18574 reload_flag=$lt_reload_flag
18575 reload_cmds=$lt_reload_cmds
18576
18577 # How to pass a linker flag through the compiler.
18578 wl=$lt_lt_prog_compiler_wl_GCJ
18579
18580 # Object file suffix (normally "o").
18581 objext="$ac_objext"
18582
18583 # Old archive suffix (normally "a").
18584 libext="$libext"
18585
18586 # Shared library suffix (normally ".so").
18587 shrext_cmds='$shrext_cmds'
18588
18589 # Executable file suffix (normally "").
18590 exeext="$exeext"
18591
18592 # Additional compiler flags for building library objects.
18593 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18594 pic_mode=$pic_mode
18595
18596 # What is the maximum length of a command?
18597 max_cmd_len=$lt_cv_sys_max_cmd_len
18598
18599 # Does compiler simultaneously support -c and -o options?
18600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18601
18602 # Must we lock files when doing compilation?
18603 need_locks=$lt_need_locks
18604
18605 # Do we need the lib prefix for modules?
18606 need_lib_prefix=$need_lib_prefix
18607
18608 # Do we need a version for libraries?
18609 need_version=$need_version
18610
18611 # Whether dlopen is supported.
18612 dlopen_support=$enable_dlopen
18613
18614 # Whether dlopen of programs is supported.
18615 dlopen_self=$enable_dlopen_self
18616
18617 # Whether dlopen of statically linked programs is supported.
18618 dlopen_self_static=$enable_dlopen_self_static
18619
18620 # Compiler flag to prevent dynamic linking.
18621 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18622
18623 # Compiler flag to turn off builtin functions.
18624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18625
18626 # Compiler flag to allow reflexive dlopens.
18627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18628
18629 # Compiler flag to generate shared objects directly from archives.
18630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18631
18632 # Compiler flag to generate thread-safe objects.
18633 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18634
18635 # Library versioning type.
18636 version_type=$version_type
18637
18638 # Format of library name prefix.
18639 libname_spec=$lt_libname_spec
18640
18641 # List of archive names.  First name is the real one, the rest are links.
18642 # The last name is the one that the linker finds with -lNAME.
18643 library_names_spec=$lt_library_names_spec
18644
18645 # The coded name of the library, if different from the real name.
18646 soname_spec=$lt_soname_spec
18647
18648 # Commands used to build and install an old-style archive.
18649 RANLIB=$lt_RANLIB
18650 old_archive_cmds=$lt_old_archive_cmds_GCJ
18651 old_postinstall_cmds=$lt_old_postinstall_cmds
18652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18653
18654 # Create an old-style archive from a shared archive.
18655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18656
18657 # Create a temporary old-style archive to link instead of a shared archive.
18658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18659
18660 # Commands used to build and install a shared archive.
18661 archive_cmds=$lt_archive_cmds_GCJ
18662 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18663 postinstall_cmds=$lt_postinstall_cmds
18664 postuninstall_cmds=$lt_postuninstall_cmds
18665
18666 # Commands used to build a loadable module (assumed same as above if empty)
18667 module_cmds=$lt_module_cmds_GCJ
18668 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18669
18670 # Commands to strip libraries.
18671 old_striplib=$lt_old_striplib
18672 striplib=$lt_striplib
18673
18674 # Dependencies to place before the objects being linked to create a
18675 # shared library.
18676 predep_objects=$lt_predep_objects_GCJ
18677
18678 # Dependencies to place after the objects being linked to create a
18679 # shared library.
18680 postdep_objects=$lt_postdep_objects_GCJ
18681
18682 # Dependencies to place before the objects being linked to create a
18683 # shared library.
18684 predeps=$lt_predeps_GCJ
18685
18686 # Dependencies to place after the objects being linked to create a
18687 # shared library.
18688 postdeps=$lt_postdeps_GCJ
18689
18690 # The directories searched by this compiler when creating a shared
18691 # library
18692 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18693
18694 # The library search path used internally by the compiler when linking
18695 # a shared library.
18696 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18697
18698 # Method to check whether dependent libraries are shared objects.
18699 deplibs_check_method=$lt_deplibs_check_method
18700
18701 # Command to use when deplibs_check_method == file_magic.
18702 file_magic_cmd=$lt_file_magic_cmd
18703
18704 # Flag that allows shared libraries with undefined symbols to be built.
18705 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18706
18707 # Flag that forces no undefined symbols.
18708 no_undefined_flag=$lt_no_undefined_flag_GCJ
18709
18710 # Commands used to finish a libtool library installation in a directory.
18711 finish_cmds=$lt_finish_cmds
18712
18713 # Same as above, but a single script fragment to be evaled but not shown.
18714 finish_eval=$lt_finish_eval
18715
18716 # Take the output of nm and produce a listing of raw symbols and C names.
18717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18718
18719 # Transform the output of nm in a proper C declaration
18720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18721
18722 # Transform the output of nm in a C name address pair
18723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18724
18725 # This is the shared library runtime path variable.
18726 runpath_var=$runpath_var
18727
18728 # This is the shared library path variable.
18729 shlibpath_var=$shlibpath_var
18730
18731 # Is shlibpath searched before the hard-coded library search path?
18732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18733
18734 # How to hardcode a shared library path into an executable.
18735 hardcode_action=$hardcode_action_GCJ
18736
18737 # Whether we should hardcode library paths into libraries.
18738 hardcode_into_libs=$hardcode_into_libs
18739
18740 # Flag to hardcode \$libdir into a binary during linking.
18741 # This must work even if \$libdir does not exist.
18742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18743
18744 # If ld is used when linking, flag to hardcode \$libdir into
18745 # a binary during linking. This must work even if \$libdir does
18746 # not exist.
18747 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18748
18749 # Whether we need a single -rpath flag with a separated argument.
18750 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18751
18752 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18753 # resulting binary.
18754 hardcode_direct=$hardcode_direct_GCJ
18755
18756 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18757 # resulting binary.
18758 hardcode_minus_L=$hardcode_minus_L_GCJ
18759
18760 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18761 # the resulting binary.
18762 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18763
18764 # Set to yes if building a shared library automatically hardcodes DIR into the library
18765 # and all subsequent libraries and executables linked against it.
18766 hardcode_automatic=$hardcode_automatic_GCJ
18767
18768 # Variables whose values should be saved in libtool wrapper scripts and
18769 # restored at relink time.
18770 variables_saved_for_relink="$variables_saved_for_relink"
18771
18772 # Whether libtool must link a program against all its dependency libraries.
18773 link_all_deplibs=$link_all_deplibs_GCJ
18774
18775 # Compile-time system search path for libraries
18776 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18777
18778 # Run-time system search path for libraries
18779 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18780
18781 # Fix the shell variable \$srcfile for the compiler.
18782 fix_srcfile_path=$lt_fix_srcfile_path
18783
18784 # Set to yes if exported symbols are required.
18785 always_export_symbols=$always_export_symbols_GCJ
18786
18787 # The commands to list exported symbols.
18788 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18789
18790 # The commands to extract the exported symbol list from a shared archive.
18791 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18792
18793 # Symbols that should not be listed in the preloaded symbols.
18794 exclude_expsyms=$lt_exclude_expsyms_GCJ
18795
18796 # Symbols that must always be exported.
18797 include_expsyms=$lt_include_expsyms_GCJ
18798
18799 # ### END LIBTOOL TAG CONFIG: $tagname
18800
18801 __EOF__
18802
18803
18804 else
18805   # If there is no Makefile yet, we rely on a make rule to execute
18806   # `config.status --recheck' to rerun these tests and create the
18807   # libtool script then.
18808   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18809   if test -f "$ltmain_in"; then
18810     test -f Makefile && make "$ltmain"
18811   fi
18812 fi
18813
18814
18815 ac_ext=c
18816 ac_cpp='$CPP $CPPFLAGS'
18817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18820
18821 CC="$lt_save_CC"
18822
18823         else
18824           tagname=""
18825         fi
18826         ;;
18827
18828       RC)
18829
18830
18831 # Source file extension for RC test sources.
18832 ac_ext=rc
18833
18834 # Object file extension for compiled RC test sources.
18835 objext=o
18836 objext_RC=$objext
18837
18838 # Code to be used in simple compile tests
18839 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18840
18841 # Code to be used in simple link tests
18842 lt_simple_link_test_code="$lt_simple_compile_test_code"
18843
18844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18845
18846 # If no C compiler was specified, use CC.
18847 LTCC=${LTCC-"$CC"}
18848
18849 # If no C compiler flags were specified, use CFLAGS.
18850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18851
18852 # Allow CC to be a program name with arguments.
18853 compiler=$CC
18854
18855
18856 # save warnings/boilerplate of simple test code
18857 ac_outfile=conftest.$ac_objext
18858 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18860 _lt_compiler_boilerplate=`cat conftest.err`
18861 $rm conftest*
18862
18863 ac_outfile=conftest.$ac_objext
18864 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18866 _lt_linker_boilerplate=`cat conftest.err`
18867 $rm -r conftest*
18868
18869
18870 # Allow CC to be a program name with arguments.
18871 lt_save_CC="$CC"
18872 CC=${RC-"windres"}
18873 compiler=$CC
18874 compiler_RC=$CC
18875 for cc_temp in $compiler""; do
18876   case $cc_temp in
18877     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18878     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18879     \-*) ;;
18880     *) break;;
18881   esac
18882 done
18883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18884
18885 lt_cv_prog_compiler_c_o_RC=yes
18886
18887 # The else clause should only fire when bootstrapping the
18888 # libtool distribution, otherwise you forgot to ship ltmain.sh
18889 # with your package, and you will get complaints that there are
18890 # no rules to generate ltmain.sh.
18891 if test -f "$ltmain"; then
18892   # See if we are running on zsh, and set the options which allow our commands through
18893   # without removal of \ escapes.
18894   if test -n "${ZSH_VERSION+set}" ; then
18895     setopt NO_GLOB_SUBST
18896   fi
18897   # Now quote all the things that may contain metacharacters while being
18898   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18899   # variables and quote the copies for generation of the libtool script.
18900   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18901     SED SHELL STRIP \
18902     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18903     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18904     deplibs_check_method reload_flag reload_cmds need_locks \
18905     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18906     lt_cv_sys_global_symbol_to_c_name_address \
18907     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18908     old_postinstall_cmds old_postuninstall_cmds \
18909     compiler_RC \
18910     CC_RC \
18911     LD_RC \
18912     lt_prog_compiler_wl_RC \
18913     lt_prog_compiler_pic_RC \
18914     lt_prog_compiler_static_RC \
18915     lt_prog_compiler_no_builtin_flag_RC \
18916     export_dynamic_flag_spec_RC \
18917     thread_safe_flag_spec_RC \
18918     whole_archive_flag_spec_RC \
18919     enable_shared_with_static_runtimes_RC \
18920     old_archive_cmds_RC \
18921     old_archive_from_new_cmds_RC \
18922     predep_objects_RC \
18923     postdep_objects_RC \
18924     predeps_RC \
18925     postdeps_RC \
18926     compiler_lib_search_path_RC \
18927     compiler_lib_search_dirs_RC \
18928     archive_cmds_RC \
18929     archive_expsym_cmds_RC \
18930     postinstall_cmds_RC \
18931     postuninstall_cmds_RC \
18932     old_archive_from_expsyms_cmds_RC \
18933     allow_undefined_flag_RC \
18934     no_undefined_flag_RC \
18935     export_symbols_cmds_RC \
18936     hardcode_libdir_flag_spec_RC \
18937     hardcode_libdir_flag_spec_ld_RC \
18938     hardcode_libdir_separator_RC \
18939     hardcode_automatic_RC \
18940     module_cmds_RC \
18941     module_expsym_cmds_RC \
18942     lt_cv_prog_compiler_c_o_RC \
18943     fix_srcfile_path_RC \
18944     exclude_expsyms_RC \
18945     include_expsyms_RC; do
18946
18947     case $var in
18948     old_archive_cmds_RC | \
18949     old_archive_from_new_cmds_RC | \
18950     archive_cmds_RC | \
18951     archive_expsym_cmds_RC | \
18952     module_cmds_RC | \
18953     module_expsym_cmds_RC | \
18954     old_archive_from_expsyms_cmds_RC | \
18955     export_symbols_cmds_RC | \
18956     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18957     postinstall_cmds | postuninstall_cmds | \
18958     old_postinstall_cmds | old_postuninstall_cmds | \
18959     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18960       # Double-quote double-evaled strings.
18961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18962       ;;
18963     *)
18964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18965       ;;
18966     esac
18967   done
18968
18969   case $lt_echo in
18970   *'\$0 --fallback-echo"')
18971     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18972     ;;
18973   esac
18974
18975 cfgfile="$ofile"
18976
18977   cat <<__EOF__ >> "$cfgfile"
18978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18979
18980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18981
18982 # Shell to use when invoking shell scripts.
18983 SHELL=$lt_SHELL
18984
18985 # Whether or not to build shared libraries.
18986 build_libtool_libs=$enable_shared
18987
18988 # Whether or not to build static libraries.
18989 build_old_libs=$enable_static
18990
18991 # Whether or not to add -lc for building shared libraries.
18992 build_libtool_need_lc=$archive_cmds_need_lc_RC
18993
18994 # Whether or not to disallow shared libs when runtime libs are static
18995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18996
18997 # Whether or not to optimize for fast installation.
18998 fast_install=$enable_fast_install
18999
19000 # The host system.
19001 host_alias=$host_alias
19002 host=$host
19003 host_os=$host_os
19004
19005 # The build system.
19006 build_alias=$build_alias
19007 build=$build
19008 build_os=$build_os
19009
19010 # An echo program that does not interpret backslashes.
19011 echo=$lt_echo
19012
19013 # The archiver.
19014 AR=$lt_AR
19015 AR_FLAGS=$lt_AR_FLAGS
19016
19017 # A C compiler.
19018 LTCC=$lt_LTCC
19019
19020 # LTCC compiler flags.
19021 LTCFLAGS=$lt_LTCFLAGS
19022
19023 # A language-specific compiler.
19024 CC=$lt_compiler_RC
19025
19026 # Is the compiler the GNU C compiler?
19027 with_gcc=$GCC_RC
19028
19029 # An ERE matcher.
19030 EGREP=$lt_EGREP
19031
19032 # The linker used to build libraries.
19033 LD=$lt_LD_RC
19034
19035 # Whether we need hard or soft links.
19036 LN_S=$lt_LN_S
19037
19038 # A BSD-compatible nm program.
19039 NM=$lt_NM
19040
19041 # A symbol stripping program
19042 STRIP=$lt_STRIP
19043
19044 # Used to examine libraries when file_magic_cmd begins "file"
19045 MAGIC_CMD=$MAGIC_CMD
19046
19047 # Used on cygwin: DLL creation program.
19048 DLLTOOL="$DLLTOOL"
19049
19050 # Used on cygwin: object dumper.
19051 OBJDUMP="$OBJDUMP"
19052
19053 # Used on cygwin: assembler.
19054 AS="$AS"
19055
19056 # The name of the directory that contains temporary libtool files.
19057 objdir=$objdir
19058
19059 # How to create reloadable object files.
19060 reload_flag=$lt_reload_flag
19061 reload_cmds=$lt_reload_cmds
19062
19063 # How to pass a linker flag through the compiler.
19064 wl=$lt_lt_prog_compiler_wl_RC
19065
19066 # Object file suffix (normally "o").
19067 objext="$ac_objext"
19068
19069 # Old archive suffix (normally "a").
19070 libext="$libext"
19071
19072 # Shared library suffix (normally ".so").
19073 shrext_cmds='$shrext_cmds'
19074
19075 # Executable file suffix (normally "").
19076 exeext="$exeext"
19077
19078 # Additional compiler flags for building library objects.
19079 pic_flag=$lt_lt_prog_compiler_pic_RC
19080 pic_mode=$pic_mode
19081
19082 # What is the maximum length of a command?
19083 max_cmd_len=$lt_cv_sys_max_cmd_len
19084
19085 # Does compiler simultaneously support -c and -o options?
19086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19087
19088 # Must we lock files when doing compilation?
19089 need_locks=$lt_need_locks
19090
19091 # Do we need the lib prefix for modules?
19092 need_lib_prefix=$need_lib_prefix
19093
19094 # Do we need a version for libraries?
19095 need_version=$need_version
19096
19097 # Whether dlopen is supported.
19098 dlopen_support=$enable_dlopen
19099
19100 # Whether dlopen of programs is supported.
19101 dlopen_self=$enable_dlopen_self
19102
19103 # Whether dlopen of statically linked programs is supported.
19104 dlopen_self_static=$enable_dlopen_self_static
19105
19106 # Compiler flag to prevent dynamic linking.
19107 link_static_flag=$lt_lt_prog_compiler_static_RC
19108
19109 # Compiler flag to turn off builtin functions.
19110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19111
19112 # Compiler flag to allow reflexive dlopens.
19113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19114
19115 # Compiler flag to generate shared objects directly from archives.
19116 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19117
19118 # Compiler flag to generate thread-safe objects.
19119 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19120
19121 # Library versioning type.
19122 version_type=$version_type
19123
19124 # Format of library name prefix.
19125 libname_spec=$lt_libname_spec
19126
19127 # List of archive names.  First name is the real one, the rest are links.
19128 # The last name is the one that the linker finds with -lNAME.
19129 library_names_spec=$lt_library_names_spec
19130
19131 # The coded name of the library, if different from the real name.
19132 soname_spec=$lt_soname_spec
19133
19134 # Commands used to build and install an old-style archive.
19135 RANLIB=$lt_RANLIB
19136 old_archive_cmds=$lt_old_archive_cmds_RC
19137 old_postinstall_cmds=$lt_old_postinstall_cmds
19138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19139
19140 # Create an old-style archive from a shared archive.
19141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19142
19143 # Create a temporary old-style archive to link instead of a shared archive.
19144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19145
19146 # Commands used to build and install a shared archive.
19147 archive_cmds=$lt_archive_cmds_RC
19148 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19149 postinstall_cmds=$lt_postinstall_cmds
19150 postuninstall_cmds=$lt_postuninstall_cmds
19151
19152 # Commands used to build a loadable module (assumed same as above if empty)
19153 module_cmds=$lt_module_cmds_RC
19154 module_expsym_cmds=$lt_module_expsym_cmds_RC
19155
19156 # Commands to strip libraries.
19157 old_striplib=$lt_old_striplib
19158 striplib=$lt_striplib
19159
19160 # Dependencies to place before the objects being linked to create a
19161 # shared library.
19162 predep_objects=$lt_predep_objects_RC
19163
19164 # Dependencies to place after the objects being linked to create a
19165 # shared library.
19166 postdep_objects=$lt_postdep_objects_RC
19167
19168 # Dependencies to place before the objects being linked to create a
19169 # shared library.
19170 predeps=$lt_predeps_RC
19171
19172 # Dependencies to place after the objects being linked to create a
19173 # shared library.
19174 postdeps=$lt_postdeps_RC
19175
19176 # The directories searched by this compiler when creating a shared
19177 # library
19178 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19179
19180 # The library search path used internally by the compiler when linking
19181 # a shared library.
19182 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19183
19184 # Method to check whether dependent libraries are shared objects.
19185 deplibs_check_method=$lt_deplibs_check_method
19186
19187 # Command to use when deplibs_check_method == file_magic.
19188 file_magic_cmd=$lt_file_magic_cmd
19189
19190 # Flag that allows shared libraries with undefined symbols to be built.
19191 allow_undefined_flag=$lt_allow_undefined_flag_RC
19192
19193 # Flag that forces no undefined symbols.
19194 no_undefined_flag=$lt_no_undefined_flag_RC
19195
19196 # Commands used to finish a libtool library installation in a directory.
19197 finish_cmds=$lt_finish_cmds
19198
19199 # Same as above, but a single script fragment to be evaled but not shown.
19200 finish_eval=$lt_finish_eval
19201
19202 # Take the output of nm and produce a listing of raw symbols and C names.
19203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19204
19205 # Transform the output of nm in a proper C declaration
19206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19207
19208 # Transform the output of nm in a C name address pair
19209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19210
19211 # This is the shared library runtime path variable.
19212 runpath_var=$runpath_var
19213
19214 # This is the shared library path variable.
19215 shlibpath_var=$shlibpath_var
19216
19217 # Is shlibpath searched before the hard-coded library search path?
19218 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19219
19220 # How to hardcode a shared library path into an executable.
19221 hardcode_action=$hardcode_action_RC
19222
19223 # Whether we should hardcode library paths into libraries.
19224 hardcode_into_libs=$hardcode_into_libs
19225
19226 # Flag to hardcode \$libdir into a binary during linking.
19227 # This must work even if \$libdir does not exist.
19228 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19229
19230 # If ld is used when linking, flag to hardcode \$libdir into
19231 # a binary during linking. This must work even if \$libdir does
19232 # not exist.
19233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19234
19235 # Whether we need a single -rpath flag with a separated argument.
19236 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19237
19238 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19239 # resulting binary.
19240 hardcode_direct=$hardcode_direct_RC
19241
19242 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19243 # resulting binary.
19244 hardcode_minus_L=$hardcode_minus_L_RC
19245
19246 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19247 # the resulting binary.
19248 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19249
19250 # Set to yes if building a shared library automatically hardcodes DIR into the library
19251 # and all subsequent libraries and executables linked against it.
19252 hardcode_automatic=$hardcode_automatic_RC
19253
19254 # Variables whose values should be saved in libtool wrapper scripts and
19255 # restored at relink time.
19256 variables_saved_for_relink="$variables_saved_for_relink"
19257
19258 # Whether libtool must link a program against all its dependency libraries.
19259 link_all_deplibs=$link_all_deplibs_RC
19260
19261 # Compile-time system search path for libraries
19262 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19263
19264 # Run-time system search path for libraries
19265 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19266
19267 # Fix the shell variable \$srcfile for the compiler.
19268 fix_srcfile_path=$lt_fix_srcfile_path
19269
19270 # Set to yes if exported symbols are required.
19271 always_export_symbols=$always_export_symbols_RC
19272
19273 # The commands to list exported symbols.
19274 export_symbols_cmds=$lt_export_symbols_cmds_RC
19275
19276 # The commands to extract the exported symbol list from a shared archive.
19277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19278
19279 # Symbols that should not be listed in the preloaded symbols.
19280 exclude_expsyms=$lt_exclude_expsyms_RC
19281
19282 # Symbols that must always be exported.
19283 include_expsyms=$lt_include_expsyms_RC
19284
19285 # ### END LIBTOOL TAG CONFIG: $tagname
19286
19287 __EOF__
19288
19289
19290 else
19291   # If there is no Makefile yet, we rely on a make rule to execute
19292   # `config.status --recheck' to rerun these tests and create the
19293   # libtool script then.
19294   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19295   if test -f "$ltmain_in"; then
19296     test -f Makefile && make "$ltmain"
19297   fi
19298 fi
19299
19300
19301 ac_ext=c
19302 ac_cpp='$CPP $CPPFLAGS'
19303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19306
19307 CC="$lt_save_CC"
19308
19309         ;;
19310
19311       *)
19312         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19313         ;;
19314       esac
19315
19316       # Append the new tag name to the list of available tags.
19317       if test -n "$tagname" ; then
19318       available_tags="$available_tags $tagname"
19319     fi
19320     fi
19321   done
19322   IFS="$lt_save_ifs"
19323
19324   # Now substitute the updated list of available tags.
19325   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19326     mv "${ofile}T" "$ofile"
19327     chmod +x "$ofile"
19328   else
19329     rm -f "${ofile}T"
19330     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19331   fi
19332 fi
19333
19334
19335
19336 # This can be used to rebuild libtool when needed
19337 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19338
19339 # Always use our own libtool.
19340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19341
19342 # Prevent multiple expansion
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355 # Check whether --with-system-libtool was given.
19356 if test "${with_system_libtool+set}" = set; then :
19357   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19358 set dummy libtool; ac_word=$2
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19360 $as_echo_n "checking for $ac_word... " >&6; }
19361 if ${ac_cv_path_LIBTOOL+:} false; then :
19362   $as_echo_n "(cached) " >&6
19363 else
19364   case $LIBTOOL in
19365   [\\/]* | ?:[\\/]*)
19366   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19367   ;;
19368   *)
19369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19370 as_dummy="$PATH:/usr/local/bin"
19371 for as_dir in $as_dummy
19372 do
19373   IFS=$as_save_IFS
19374   test -z "$as_dir" && as_dir=.
19375     for ac_exec_ext in '' $ac_executable_extensions; do
19376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19377     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19379     break 2
19380   fi
19381 done
19382   done
19383 IFS=$as_save_IFS
19384
19385   ;;
19386 esac
19387 fi
19388 LIBTOOL=$ac_cv_path_LIBTOOL
19389 if test -n "$LIBTOOL"; then
19390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19391 $as_echo "$LIBTOOL" >&6; }
19392 else
19393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19394 $as_echo "no" >&6; }
19395 fi
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408 else
19409
19410   LIBTOOL="`pwd`/libtool"
19411
19412
19413
19414
19415
19416
19417 fi
19418
19419
19420
19421
19422 # Check whether --enable-strict-dependencies was given.
19423 if test "${enable_strict_dependencies+set}" = set; then :
19424   enableval=$enable_strict_dependencies;
19425 fi
19426
19427
19428 docdir='${datadir}/doc/freeradius'
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19430 $as_echo_n "checking docdir... " >&6; }
19431
19432 # Check whether --with-docdir was given.
19433 if test "${with_docdir+set}" = set; then :
19434   withval=$with_docdir;  case "$withval" in
19435     no)
19436         docdir=no
19437         ;;
19438     yes)
19439         ;;
19440     [\\/$]* | ?:[\\/]* )
19441         docdir="$withval"
19442         ;;
19443     *)
19444         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19445         ;;
19446   esac
19447
19448 fi
19449
19450
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19452 $as_echo "$docdir" >&6; }
19453 if test "x$docdir" = xno; then
19454         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19455 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19456 fi
19457
19458 logdir='${localstatedir}/log/radius'
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19460 $as_echo_n "checking logdir... " >&6; }
19461
19462 # Check whether --with-logdir was given.
19463 if test "${with_logdir+set}" = set; then :
19464   withval=$with_logdir;  case "$withval" in
19465     no)
19466         as_fn_error $? "Need logdir" "$LINENO" 5
19467         ;;
19468     yes)
19469         ;;
19470     [\\/$]* | ?:[\\/]* )
19471         logdir="$withval"
19472         ;;
19473     *)
19474         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19475         ;;
19476   esac
19477
19478 fi
19479
19480
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19482 $as_echo "$logdir" >&6; }
19483
19484 radacctdir='${logdir}/radacct'
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19486 $as_echo_n "checking radacctdir... " >&6; }
19487
19488 # Check whether --with-radacctdir was given.
19489 if test "${with_radacctdir+set}" = set; then :
19490   withval=$with_radacctdir;  case "$withval" in
19491     no)
19492         as_fn_error $? "Need radacctdir" "$LINENO" 5
19493         ;;
19494     yes)
19495         ;;
19496     [\\/$]* | ?:[\\/]* )
19497         radacctdir="$withval"
19498         ;;
19499     *)
19500         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19501         ;;
19502   esac
19503
19504 fi
19505
19506
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19508 $as_echo "$radacctdir" >&6; }
19509
19510 raddbdir='${sysconfdir}/raddb'
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19512 $as_echo_n "checking raddbdir... " >&6; }
19513
19514 # Check whether --with-raddbdir was given.
19515 if test "${with_raddbdir+set}" = set; then :
19516   withval=$with_raddbdir;  case "$withval" in
19517     no)
19518         as_fn_error $? "Need raddbdir" "$LINENO" 5
19519         ;;
19520     yes)
19521         ;;
19522     [\\/$]* | ?:[\\/]* )
19523         raddbdir="$withval"
19524         ;;
19525     *)
19526         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19527         ;;
19528   esac
19529
19530 fi
19531
19532
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19534 $as_echo "$raddbdir" >&6; }
19535
19536 ASCEND_BINARY=yes
19537
19538 # Check whether --with-ascend-binary was given.
19539 if test "${with_ascend_binary+set}" = set; then :
19540   withval=$with_ascend_binary;  case "$withval" in
19541     yes)
19542         ;;
19543     *)
19544         ASCEND_BINARY=""
19545   esac
19546
19547 fi
19548
19549 if test "X$ASCEND_BINARY" = "Xyes"; then
19550
19551 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19552
19553 fi
19554
19555 WITH_THREADS=yes
19556
19557 # Check whether --with-threads was given.
19558 if test "${with_threads+set}" = set; then :
19559   withval=$with_threads;  case "$withval" in
19560     yes)
19561         ;;
19562     *)
19563         WITH_THREADS=""
19564   esac
19565
19566 fi
19567
19568
19569 WITH_VMPS=yes
19570
19571 # Check whether --with-vmps was given.
19572 if test "${with_vmps+set}" = set; then :
19573   withval=$with_vmps;  case "$withval" in
19574     yes)
19575         ;;
19576     *)
19577         WITH_VMPS=no
19578   esac
19579
19580 fi
19581
19582 if test "x$WITH_VMPS" = "xyes"; then
19583
19584 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19585
19586 fi
19587
19588 WITH_DHCP=yes
19589
19590 # Check whether --with-dhcp was given.
19591 if test "${with_dhcp+set}" = set; then :
19592   withval=$with_dhcp;  case "$withval" in
19593     yes)
19594         ;;
19595     *)
19596         WITH_DHCP=no
19597   esac
19598
19599 fi
19600
19601 if test "x$WITH_DHCP" = "xyes"; then
19602
19603 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19604
19605 fi
19606
19607
19608 WITH_POST_PROXY_AUTHORIZE=
19609
19610 # Check whether --with-post-proxy-authorize was given.
19611 if test "${with_post_proxy_authorize+set}" = set; then :
19612   withval=$with_post_proxy_authorize;  case "$withval" in
19613     yes)
19614         WITH_POST_PROXY_AUTHORIZE=""
19615         ;;
19616     *)
19617         ;;
19618   esac
19619
19620 fi
19621
19622
19623 STATIC_MODULES=
19624
19625 # Check whether --with-static_modules was given.
19626 if test "${with_static_modules+set}" = set; then :
19627   withval=$with_static_modules;
19628   for i in $withval; do
19629     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19630   done
19631
19632 fi
19633
19634
19635 MODULES=
19636
19637 # Check whether --with-modules was given.
19638 if test "${with_modules+set}" = set; then :
19639   withval=$with_modules;
19640  for i in $withval; do
19641    MODULES="$MODULES $i"
19642  done
19643
19644 fi
19645
19646
19647 # Check whether --enable-developer was given.
19648 if test "${enable_developer+set}" = set; then :
19649   enableval=$enable_developer;  case "$enableval" in
19650     no)
19651         developer=no
19652         ;;
19653     *)
19654         developer=yes
19655   esac
19656
19657 fi
19658
19659
19660 if test -d $srcdir/.git; then
19661   if test "x$developer" != "xno"; then
19662         developer="yes"
19663   fi
19664
19665     if test $GIT = yes; then
19666         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19667   fi
19668 fi
19669
19670 EXPERIMENTAL=
19671
19672 # Check whether --with-experimental-modules was given.
19673 if test "${with_experimental_modules+set}" = set; then :
19674   withval=$with_experimental_modules;  case "$withval" in
19675     yes)
19676         EXPERIMENTAL=yes
19677         ;;
19678     *)
19679   esac
19680
19681 fi
19682
19683
19684 WITH_OPENSSL=yes
19685
19686 # Check whether --with-openssl was given.
19687 if test "${with_openssl+set}" = set; then :
19688   withval=$with_openssl;  case "$withval" in
19689     no)
19690         WITH_OPENSSL=no
19691         ;;
19692     *)
19693         WITH_OPENSSL=yes
19694         ;;
19695   esac
19696
19697 fi
19698
19699
19700 OPENSSL_INCLUDE_DIR=
19701
19702 # Check whether --with-openssl-includes was given.
19703 if test "${with_openssl_includes+set}" = set; then :
19704   withval=$with_openssl_includes;  case "$withval" in
19705     *) OPENSSL_INCLUDE_DIR="$withval"
19706         ;;
19707   esac
19708
19709 fi
19710
19711
19712 OPENSSL_LIB_DIR=
19713
19714 # Check whether --with-openssl-libraries was given.
19715 if test "${with_openssl_libraries+set}" = set; then :
19716   withval=$with_openssl_libraries;  case "$withval" in
19717     *) OPENSSL_LIB_DIR="$withval"
19718         ;;
19719   esac
19720
19721 fi
19722
19723
19724
19725
19726 # Check whether --with-rlm-FOO-lib-dir was given.
19727 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19728   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19729     *)
19730         ;;
19731   esac
19732
19733 fi
19734
19735
19736
19737 # Check whether --with-rlm-FOO-include-dir was given.
19738 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19739   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19740     *)
19741         ;;
19742   esac
19743
19744 fi
19745
19746
19747
19748 WITH_UDPFROMTO=no
19749
19750 # Check whether --with-udpfromto was given.
19751 if test "${with_udpfromto+set}" = set; then :
19752   withval=$with_udpfromto;  case "$withval" in
19753     yes)
19754         WITH_UDPFROMTO=yes
19755         ;;
19756     *)
19757         WITH_UDPFROMTO=no
19758   esac
19759
19760 fi
19761
19762
19763 if test "x$WITH_UDPFROMTO" = "xyes"; then
19764
19765 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19766
19767 fi
19768
19769
19770 CHECKRAD=checkrad.pl
19771 # Extract the first word of "perl", so it can be a program name with args.
19772 set dummy perl; ac_word=$2
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19774 $as_echo_n "checking for $ac_word... " >&6; }
19775 if ${ac_cv_path_PERL+:} false; then :
19776   $as_echo_n "(cached) " >&6
19777 else
19778   case $PERL in
19779   [\\/]* | ?:[\\/]*)
19780   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19781   ;;
19782   *)
19783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 for as_dir in $PATH
19785 do
19786   IFS=$as_save_IFS
19787   test -z "$as_dir" && as_dir=.
19788     for ac_exec_ext in '' $ac_executable_extensions; do
19789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19790     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19792     break 2
19793   fi
19794 done
19795   done
19796 IFS=$as_save_IFS
19797
19798   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19799   ;;
19800 esac
19801 fi
19802 PERL=$ac_cv_path_PERL
19803 if test -n "$PERL"; then
19804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19805 $as_echo "$PERL" >&6; }
19806 else
19807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19808 $as_echo "no" >&6; }
19809 fi
19810
19811
19812 if test "x$ac_cv_path_PERL" = "x"; then
19813   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19814 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19815 fi
19816 # Extract the first word of "snmpget", so it can be a program name with args.
19817 set dummy snmpget; ac_word=$2
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19819 $as_echo_n "checking for $ac_word... " >&6; }
19820 if ${ac_cv_path_SNMPGET+:} false; then :
19821   $as_echo_n "(cached) " >&6
19822 else
19823   case $SNMPGET in
19824   [\\/]* | ?:[\\/]*)
19825   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19826   ;;
19827   *)
19828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19829 for as_dir in $PATH
19830 do
19831   IFS=$as_save_IFS
19832   test -z "$as_dir" && as_dir=.
19833     for ac_exec_ext in '' $ac_executable_extensions; do
19834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19835     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19837     break 2
19838   fi
19839 done
19840   done
19841 IFS=$as_save_IFS
19842
19843   ;;
19844 esac
19845 fi
19846 SNMPGET=$ac_cv_path_SNMPGET
19847 if test -n "$SNMPGET"; then
19848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19849 $as_echo "$SNMPGET" >&6; }
19850 else
19851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19852 $as_echo "no" >&6; }
19853 fi
19854
19855
19856 if test "x$ac_cv_path_SNMPGET" = "x"; then
19857   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19858 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19859 fi
19860
19861 # Extract the first word of "snmpwalk", so it can be a program name with args.
19862 set dummy snmpwalk; ac_word=$2
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19864 $as_echo_n "checking for $ac_word... " >&6; }
19865 if ${ac_cv_path_SNMPWALK+:} false; then :
19866   $as_echo_n "(cached) " >&6
19867 else
19868   case $SNMPWALK in
19869   [\\/]* | ?:[\\/]*)
19870   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19871   ;;
19872   *)
19873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19874 for as_dir in $PATH
19875 do
19876   IFS=$as_save_IFS
19877   test -z "$as_dir" && as_dir=.
19878     for ac_exec_ext in '' $ac_executable_extensions; do
19879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19880     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19882     break 2
19883   fi
19884 done
19885   done
19886 IFS=$as_save_IFS
19887
19888   ;;
19889 esac
19890 fi
19891 SNMPWALK=$ac_cv_path_SNMPWALK
19892 if test -n "$SNMPWALK"; then
19893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19894 $as_echo "$SNMPWALK" >&6; }
19895 else
19896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897 $as_echo "no" >&6; }
19898 fi
19899
19900
19901 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19903 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19904 fi
19905
19906 # Extract the first word of "rusers", so it can be a program name with args.
19907 set dummy rusers; ac_word=$2
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19909 $as_echo_n "checking for $ac_word... " >&6; }
19910 if ${ac_cv_path_RUSERS+:} false; then :
19911   $as_echo_n "(cached) " >&6
19912 else
19913   case $RUSERS in
19914   [\\/]* | ?:[\\/]*)
19915   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19916   ;;
19917   *)
19918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19919 for as_dir in $PATH
19920 do
19921   IFS=$as_save_IFS
19922   test -z "$as_dir" && as_dir=.
19923     for ac_exec_ext in '' $ac_executable_extensions; do
19924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19925     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19927     break 2
19928   fi
19929 done
19930   done
19931 IFS=$as_save_IFS
19932
19933   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19934   ;;
19935 esac
19936 fi
19937 RUSERS=$ac_cv_path_RUSERS
19938 if test -n "$RUSERS"; then
19939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
19940 $as_echo "$RUSERS" >&6; }
19941 else
19942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19943 $as_echo "no" >&6; }
19944 fi
19945
19946
19947
19948 missing_dir=`cd $ac_aux_dir && pwd`
19949 # expand $ac_aux_dir to an absolute path
19950 am_aux_dir=`cd $ac_aux_dir && pwd`
19951
19952 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19953 # Use eval to expand $SHELL
19954 if eval "$MISSING --run true"; then
19955   am_missing_run="$MISSING --run "
19956 else
19957   am_missing_run=
19958   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19959 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19960 fi
19961
19962
19963 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19964
19965
19966 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19967
19968
19969 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19970
19971
19972 # Extract the first word of "locate", so it can be a program name with args.
19973 set dummy locate; ac_word=$2
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19975 $as_echo_n "checking for $ac_word... " >&6; }
19976 if ${ac_cv_path_LOCATE+:} false; then :
19977   $as_echo_n "(cached) " >&6
19978 else
19979   case $LOCATE in
19980   [\\/]* | ?:[\\/]*)
19981   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19982   ;;
19983   *)
19984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19985 for as_dir in $PATH
19986 do
19987   IFS=$as_save_IFS
19988   test -z "$as_dir" && as_dir=.
19989     for ac_exec_ext in '' $ac_executable_extensions; do
19990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19991     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19993     break 2
19994   fi
19995 done
19996   done
19997 IFS=$as_save_IFS
19998
19999   ;;
20000 esac
20001 fi
20002 LOCATE=$ac_cv_path_LOCATE
20003 if test -n "$LOCATE"; then
20004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20005 $as_echo "$LOCATE" >&6; }
20006 else
20007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20008 $as_echo "no" >&6; }
20009 fi
20010
20011
20012 # Extract the first word of "dirname", so it can be a program name with args.
20013 set dummy dirname; ac_word=$2
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20015 $as_echo_n "checking for $ac_word... " >&6; }
20016 if ${ac_cv_path_DIRNAME+:} false; then :
20017   $as_echo_n "(cached) " >&6
20018 else
20019   case $DIRNAME in
20020   [\\/]* | ?:[\\/]*)
20021   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20022   ;;
20023   *)
20024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20025 for as_dir in $PATH
20026 do
20027   IFS=$as_save_IFS
20028   test -z "$as_dir" && as_dir=.
20029     for ac_exec_ext in '' $ac_executable_extensions; do
20030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20031     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20033     break 2
20034   fi
20035 done
20036   done
20037 IFS=$as_save_IFS
20038
20039   ;;
20040 esac
20041 fi
20042 DIRNAME=$ac_cv_path_DIRNAME
20043 if test -n "$DIRNAME"; then
20044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20045 $as_echo "$DIRNAME" >&6; }
20046 else
20047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 $as_echo "no" >&6; }
20049 fi
20050
20051
20052 # Extract the first word of "grep", so it can be a program name with args.
20053 set dummy grep; ac_word=$2
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20055 $as_echo_n "checking for $ac_word... " >&6; }
20056 if ${ac_cv_path_GREP+:} false; then :
20057   $as_echo_n "(cached) " >&6
20058 else
20059   case $GREP in
20060   [\\/]* | ?:[\\/]*)
20061   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20062   ;;
20063   *)
20064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20065 for as_dir in $PATH
20066 do
20067   IFS=$as_save_IFS
20068   test -z "$as_dir" && as_dir=.
20069     for ac_exec_ext in '' $ac_executable_extensions; do
20070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20071     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20073     break 2
20074   fi
20075 done
20076   done
20077 IFS=$as_save_IFS
20078
20079   ;;
20080 esac
20081 fi
20082 GREP=$ac_cv_path_GREP
20083 if test -n "$GREP"; then
20084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20085 $as_echo "$GREP" >&6; }
20086 else
20087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20088 $as_echo "no" >&6; }
20089 fi
20090
20091
20092
20093
20094 old_CFLAGS=$CFLAGS
20095 if test "x$WITH_THREADS" = "xyes"; then
20096   if test $ac_cv_prog_suncc = "yes"; then
20097     CFLAGS="$CFLAGS -mt"
20098   fi
20099
20100   for ac_header in pthread.h
20101 do :
20102   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20103 if test "x$ac_cv_header_pthread_h" = xyes; then :
20104   cat >>confdefs.h <<_ACEOF
20105 #define HAVE_PTHREAD_H 1
20106 _ACEOF
20107
20108 else
20109    WITH_THREADS="no"
20110 fi
20111
20112 done
20113
20114
20115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20116 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20117 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20118   $as_echo_n "(cached) " >&6
20119 else
20120   ac_check_lib_save_LIBS=$LIBS
20121 LIBS="-lpthread  $LIBS"
20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20123 /* end confdefs.h.  */
20124
20125 /* Override any GCC internal prototype to avoid an error.
20126    Use char because int might match the return type of a GCC
20127    builtin and then its argument prototype would still apply.  */
20128 #ifdef __cplusplus
20129 extern "C"
20130 #endif
20131 char pthread_create ();
20132 int
20133 main ()
20134 {
20135 return pthread_create ();
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 if ac_fn_c_try_link "$LINENO"; then :
20141   ac_cv_lib_pthread_pthread_create=yes
20142 else
20143   ac_cv_lib_pthread_pthread_create=no
20144 fi
20145 rm -f core conftest.err conftest.$ac_objext \
20146     conftest$ac_exeext conftest.$ac_ext
20147 LIBS=$ac_check_lib_save_LIBS
20148 fi
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20150 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20151 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20152    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20153                   LIBS="-lpthread $LIBS"
20154 else
20155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20156 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20157 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20158   $as_echo_n "(cached) " >&6
20159 else
20160   ac_check_lib_save_LIBS=$LIBS
20161 LIBS="-lc_r  $LIBS"
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h.  */
20164
20165 /* Override any GCC internal prototype to avoid an error.
20166    Use char because int might match the return type of a GCC
20167    builtin and then its argument prototype would still apply.  */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char pthread_create ();
20172 int
20173 main ()
20174 {
20175 return pthread_create ();
20176   ;
20177   return 0;
20178 }
20179 _ACEOF
20180 if ac_fn_c_try_link "$LINENO"; then :
20181   ac_cv_lib_c_r_pthread_create=yes
20182 else
20183   ac_cv_lib_c_r_pthread_create=no
20184 fi
20185 rm -f core conftest.err conftest.$ac_objext \
20186     conftest$ac_exeext conftest.$ac_ext
20187 LIBS=$ac_check_lib_save_LIBS
20188 fi
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20190 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20191 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20192    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20193 else
20194    WITH_THREADS="no"
20195
20196 fi
20197
20198
20199 fi
20200
20201 fi
20202
20203 if test "x$WITH_THREADS" != "xyes"; then
20204   CFLAGS=$old_CFLAGS
20205   ac_cv_header_pthread_h="no"
20206   WITH_THREADS=no
20207 else
20208
20209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20210 $as_echo_n "checking for library containing sem_init... " >&6; }
20211 if ${ac_cv_search_sem_init+:} false; then :
20212   $as_echo_n "(cached) " >&6
20213 else
20214   ac_func_search_save_LIBS=$LIBS
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h.  */
20217
20218 /* Override any GCC internal prototype to avoid an error.
20219    Use char because int might match the return type of a GCC
20220    builtin and then its argument prototype would still apply.  */
20221 #ifdef __cplusplus
20222 extern "C"
20223 #endif
20224 char sem_init ();
20225 int
20226 main ()
20227 {
20228 return sem_init ();
20229   ;
20230   return 0;
20231 }
20232 _ACEOF
20233 for ac_lib in '' pthread sem posix4 rt semaphore; do
20234   if test -z "$ac_lib"; then
20235     ac_res="none required"
20236   else
20237     ac_res=-l$ac_lib
20238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20239   fi
20240   if ac_fn_c_try_link "$LINENO"; then :
20241   ac_cv_search_sem_init=$ac_res
20242 fi
20243 rm -f core conftest.err conftest.$ac_objext \
20244     conftest$ac_exeext
20245   if ${ac_cv_search_sem_init+:} false; then :
20246   break
20247 fi
20248 done
20249 if ${ac_cv_search_sem_init+:} false; then :
20250
20251 else
20252   ac_cv_search_sem_init=no
20253 fi
20254 rm conftest.$ac_ext
20255 LIBS=$ac_func_search_save_LIBS
20256 fi
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20258 $as_echo "$ac_cv_search_sem_init" >&6; }
20259 ac_res=$ac_cv_search_sem_init
20260 if test "$ac_res" != no; then :
20261   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20262
20263 else
20264   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
20265
20266 fi
20267
20268 fi
20269
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20271 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20272 if ${ac_cv_lib_socket_getsockname+:} false; then :
20273   $as_echo_n "(cached) " >&6
20274 else
20275   ac_check_lib_save_LIBS=$LIBS
20276 LIBS="-lsocket  $LIBS"
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h.  */
20279
20280 /* Override any GCC internal prototype to avoid an error.
20281    Use char because int might match the return type of a GCC
20282    builtin and then its argument prototype would still apply.  */
20283 #ifdef __cplusplus
20284 extern "C"
20285 #endif
20286 char getsockname ();
20287 int
20288 main ()
20289 {
20290 return getsockname ();
20291   ;
20292   return 0;
20293 }
20294 _ACEOF
20295 if ac_fn_c_try_link "$LINENO"; then :
20296   ac_cv_lib_socket_getsockname=yes
20297 else
20298   ac_cv_lib_socket_getsockname=no
20299 fi
20300 rm -f core conftest.err conftest.$ac_objext \
20301     conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20303 fi
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20305 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20306 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20307   cat >>confdefs.h <<_ACEOF
20308 #define HAVE_LIBSOCKET 1
20309 _ACEOF
20310
20311   LIBS="-lsocket $LIBS"
20312
20313 fi
20314
20315
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20317 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20318 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20319   $as_echo_n "(cached) " >&6
20320 else
20321   ac_check_lib_save_LIBS=$LIBS
20322 LIBS="-lresolv  $LIBS"
20323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20324 /* end confdefs.h.  */
20325
20326 /* Override any GCC internal prototype to avoid an error.
20327    Use char because int might match the return type of a GCC
20328    builtin and then its argument prototype would still apply.  */
20329 #ifdef __cplusplus
20330 extern "C"
20331 #endif
20332 char inet_aton ();
20333 int
20334 main ()
20335 {
20336 return inet_aton ();
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 if ac_fn_c_try_link "$LINENO"; then :
20342   ac_cv_lib_resolv_inet_aton=yes
20343 else
20344   ac_cv_lib_resolv_inet_aton=no
20345 fi
20346 rm -f core conftest.err conftest.$ac_objext \
20347     conftest$ac_exeext conftest.$ac_ext
20348 LIBS=$ac_check_lib_save_LIBS
20349 fi
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20351 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20352 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20353   cat >>confdefs.h <<_ACEOF
20354 #define HAVE_LIBRESOLV 1
20355 _ACEOF
20356
20357   LIBS="-lresolv $LIBS"
20358
20359 fi
20360
20361
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20363 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20364 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20365   $as_echo_n "(cached) " >&6
20366 else
20367   ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-lnsl  $LIBS"
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h.  */
20371
20372 /* Override any GCC internal prototype to avoid an error.
20373    Use char because int might match the return type of a GCC
20374    builtin and then its argument prototype would still apply.  */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char inet_ntoa ();
20379 int
20380 main ()
20381 {
20382 return inet_ntoa ();
20383   ;
20384   return 0;
20385 }
20386 _ACEOF
20387 if ac_fn_c_try_link "$LINENO"; then :
20388   ac_cv_lib_nsl_inet_ntoa=yes
20389 else
20390   ac_cv_lib_nsl_inet_ntoa=no
20391 fi
20392 rm -f core conftest.err conftest.$ac_objext \
20393     conftest$ac_exeext conftest.$ac_ext
20394 LIBS=$ac_check_lib_save_LIBS
20395 fi
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20397 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20398 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20399   cat >>confdefs.h <<_ACEOF
20400 #define HAVE_LIBNSL 1
20401 _ACEOF
20402
20403   LIBS="-lnsl $LIBS"
20404
20405 fi
20406
20407
20408 OPENSSL_LIBS=
20409 if test "x$WITH_OPENSSL" = xyes; then
20410   old_LIBS=$LIBS
20411   old_LDFLAGS="$LDFLAGS"
20412   if test "x$OPENSSL_LIB_DIR" != "x"; then
20413     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
20414   fi
20415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20416 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20417 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20418   $as_echo_n "(cached) " >&6
20419 else
20420   ac_check_lib_save_LIBS=$LIBS
20421 LIBS="-lcrypto  $LIBS"
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h.  */
20424
20425 /* Override any GCC internal prototype to avoid an error.
20426    Use char because int might match the return type of a GCC
20427    builtin and then its argument prototype would still apply.  */
20428 #ifdef __cplusplus
20429 extern "C"
20430 #endif
20431 char DH_new ();
20432 int
20433 main ()
20434 {
20435 return DH_new ();
20436   ;
20437   return 0;
20438 }
20439 _ACEOF
20440 if ac_fn_c_try_link "$LINENO"; then :
20441   ac_cv_lib_crypto_DH_new=yes
20442 else
20443   ac_cv_lib_crypto_DH_new=no
20444 fi
20445 rm -f core conftest.err conftest.$ac_objext \
20446     conftest$ac_exeext conftest.$ac_ext
20447 LIBS=$ac_check_lib_save_LIBS
20448 fi
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20450 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20451 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20452
20453         LIBS="-lcrypto $LIBS"
20454
20455 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20456
20457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20458 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20459 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20460   $as_echo_n "(cached) " >&6
20461 else
20462   ac_check_lib_save_LIBS=$LIBS
20463 LIBS="-lssl  $LIBS"
20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h.  */
20466
20467 /* Override any GCC internal prototype to avoid an error.
20468    Use char because int might match the return type of a GCC
20469    builtin and then its argument prototype would still apply.  */
20470 #ifdef __cplusplus
20471 extern "C"
20472 #endif
20473 char SSL_new ();
20474 int
20475 main ()
20476 {
20477 return SSL_new ();
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 if ac_fn_c_try_link "$LINENO"; then :
20483   ac_cv_lib_ssl_SSL_new=yes
20484 else
20485   ac_cv_lib_ssl_SSL_new=no
20486 fi
20487 rm -f core conftest.err conftest.$ac_objext \
20488     conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20490 fi
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20492 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20493 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20494
20495
20496 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20497
20498                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20499                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20500                 fi
20501                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20502
20503 fi
20504
20505
20506 fi
20507
20508   LIBS=$old_LIBS
20509   LDFLAGS="$old_LDFLAGS"
20510 fi
20511
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20513 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20514 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20515   $as_echo_n "(cached) " >&6
20516 else
20517   ac_check_lib_save_LIBS=$LIBS
20518 LIBS="-lws2_32  $LIBS"
20519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20520 /* end confdefs.h.  */
20521
20522 /* Override any GCC internal prototype to avoid an error.
20523    Use char because int might match the return type of a GCC
20524    builtin and then its argument prototype would still apply.  */
20525 #ifdef __cplusplus
20526 extern "C"
20527 #endif
20528 char htonl ();
20529 int
20530 main ()
20531 {
20532 return htonl ();
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 if ac_fn_c_try_link "$LINENO"; then :
20538   ac_cv_lib_ws2_32_htonl=yes
20539 else
20540   ac_cv_lib_ws2_32_htonl=no
20541 fi
20542 rm -f core conftest.err conftest.$ac_objext \
20543     conftest$ac_exeext conftest.$ac_ext
20544 LIBS=$ac_check_lib_save_LIBS
20545 fi
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20547 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20548 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20549   cat >>confdefs.h <<_ACEOF
20550 #define HAVE_LIBWS2_32 1
20551 _ACEOF
20552
20553   LIBS="-lws2_32 $LIBS"
20554
20555 fi
20556
20557
20558 PCAP_LIBS=
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20560 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20561 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20562   $as_echo_n "(cached) " >&6
20563 else
20564   ac_check_lib_save_LIBS=$LIBS
20565 LIBS="-lpcap  $LIBS"
20566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20567 /* end confdefs.h.  */
20568
20569 /* Override any GCC internal prototype to avoid an error.
20570    Use char because int might match the return type of a GCC
20571    builtin and then its argument prototype would still apply.  */
20572 #ifdef __cplusplus
20573 extern "C"
20574 #endif
20575 char pcap_open_live ();
20576 int
20577 main ()
20578 {
20579 return pcap_open_live ();
20580   ;
20581   return 0;
20582 }
20583 _ACEOF
20584 if ac_fn_c_try_link "$LINENO"; then :
20585   ac_cv_lib_pcap_pcap_open_live=yes
20586 else
20587   ac_cv_lib_pcap_pcap_open_live=no
20588 fi
20589 rm -f core conftest.err conftest.$ac_objext \
20590     conftest$ac_exeext conftest.$ac_ext
20591 LIBS=$ac_check_lib_save_LIBS
20592 fi
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20594 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20595 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20596    PCAP_LIBS="-lpcap"
20597
20598 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20599
20600
20601 else
20602    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20603 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20604 fi
20605
20606
20607
20608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20609 $as_echo_n "checking for a readline compatible library... " >&6; }
20610 if ${ac_cv_lib_readline+:} false; then :
20611   $as_echo_n "(cached) " >&6
20612 else
20613
20614     ORIG_LIBS=$LIBS
20615     for readline_lib in readline edit editline; do
20616       for termcap_lib in "" termcap curses ncurses; do
20617         if test -z "$termcap_lib"; then
20618           TRY_LIB="-l$readline_lib"
20619         else
20620           TRY_LIB="-l$readline_lib -l$termcap_lib"
20621         fi
20622         LIBS="$ORIG_LIBS $TRY_LIB"
20623         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624 /* end confdefs.h.  */
20625
20626 /* Override any GCC internal prototype to avoid an error.
20627    Use char because int might match the return type of a GCC
20628    builtin and then its argument prototype would still apply.  */
20629 #ifdef __cplusplus
20630 extern "C"
20631 #endif
20632 char readline ();
20633 int
20634 main ()
20635 {
20636 return readline ();
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 if ac_fn_c_try_link "$LINENO"; then :
20642   ac_cv_lib_readline="$TRY_LIB"
20643 fi
20644 rm -f core conftest.err conftest.$ac_objext \
20645     conftest$ac_exeext conftest.$ac_ext
20646         if test -n "$ac_cv_lib_readline"; then
20647           LIBREADLINE="$TRY_LIB"
20648
20649           break
20650         fi
20651       done
20652       if test -n "$ac_cv_lib_readline"; then
20653         break
20654       fi
20655     done
20656     if test -z "$ac_cv_lib_readline"; then
20657       ac_cv_lib_readline="no"
20658     fi
20659     LIBS=$ORIG_LIBS
20660
20661 fi
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20663 $as_echo "$ac_cv_lib_readline" >&6; }
20664
20665   if test "$ac_cv_lib_readline" != "no"; then
20666
20667 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20668
20669     for ac_header in readline.h readline/readline.h
20670 do :
20671   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20672 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20673 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20674   cat >>confdefs.h <<_ACEOF
20675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20676 _ACEOF
20677
20678 fi
20679
20680 done
20681
20682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20683 $as_echo_n "checking whether readline supports history... " >&6; }
20684 if ${ac_cv_lib_readline_history+:} false; then :
20685   $as_echo_n "(cached) " >&6
20686 else
20687
20688       ac_cv_lib_readline_history="no"
20689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690 /* end confdefs.h.  */
20691
20692 /* Override any GCC internal prototype to avoid an error.
20693    Use char because int might match the return type of a GCC
20694    builtin and then its argument prototype would still apply.  */
20695 #ifdef __cplusplus
20696 extern "C"
20697 #endif
20698 char add_history ();
20699 int
20700 main ()
20701 {
20702 return add_history ();
20703   ;
20704   return 0;
20705 }
20706 _ACEOF
20707 if ac_fn_c_try_link "$LINENO"; then :
20708   ac_cv_lib_readline_history="yes"
20709 fi
20710 rm -f core conftest.err conftest.$ac_objext \
20711     conftest$ac_exeext conftest.$ac_ext
20712
20713 fi
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20715 $as_echo "$ac_cv_lib_readline_history" >&6; }
20716     if test "$ac_cv_lib_readline_history" = "yes"; then
20717
20718 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20719
20720       for ac_header in history.h readline/history.h
20721 do :
20722   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20723 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20725   cat >>confdefs.h <<_ACEOF
20726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20727 _ACEOF
20728
20729 fi
20730
20731 done
20732
20733     fi
20734   fi
20735
20736
20737
20738 case "$host" in
20739 *-interix*)
20740         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20741         ;;
20742 *-darwin*)
20743         CFLAGS="$CFLAGS -DDARWIN"
20744         LIBS="-framework DirectoryService $LIBS"
20745         ;;
20746 esac
20747
20748 ac_header_dirent=no
20749 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20750   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20752 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20753 if eval \${$as_ac_Header+:} false; then :
20754   $as_echo_n "(cached) " >&6
20755 else
20756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 /* end confdefs.h.  */
20758 #include <sys/types.h>
20759 #include <$ac_hdr>
20760
20761 int
20762 main ()
20763 {
20764 if ((DIR *) 0)
20765 return 0;
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 if ac_fn_c_try_compile "$LINENO"; then :
20771   eval "$as_ac_Header=yes"
20772 else
20773   eval "$as_ac_Header=no"
20774 fi
20775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20776 fi
20777 eval ac_res=\$$as_ac_Header
20778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20779 $as_echo "$ac_res" >&6; }
20780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20781   cat >>confdefs.h <<_ACEOF
20782 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20783 _ACEOF
20784
20785 ac_header_dirent=$ac_hdr; break
20786 fi
20787
20788 done
20789 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20790 if test $ac_header_dirent = dirent.h; then
20791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20792 $as_echo_n "checking for library containing opendir... " >&6; }
20793 if ${ac_cv_search_opendir+:} false; then :
20794   $as_echo_n "(cached) " >&6
20795 else
20796   ac_func_search_save_LIBS=$LIBS
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h.  */
20799
20800 /* Override any GCC internal prototype to avoid an error.
20801    Use char because int might match the return type of a GCC
20802    builtin and then its argument prototype would still apply.  */
20803 #ifdef __cplusplus
20804 extern "C"
20805 #endif
20806 char opendir ();
20807 int
20808 main ()
20809 {
20810 return opendir ();
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 for ac_lib in '' dir; do
20816   if test -z "$ac_lib"; then
20817     ac_res="none required"
20818   else
20819     ac_res=-l$ac_lib
20820     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20821   fi
20822   if ac_fn_c_try_link "$LINENO"; then :
20823   ac_cv_search_opendir=$ac_res
20824 fi
20825 rm -f core conftest.err conftest.$ac_objext \
20826     conftest$ac_exeext
20827   if ${ac_cv_search_opendir+:} false; then :
20828   break
20829 fi
20830 done
20831 if ${ac_cv_search_opendir+:} false; then :
20832
20833 else
20834   ac_cv_search_opendir=no
20835 fi
20836 rm conftest.$ac_ext
20837 LIBS=$ac_func_search_save_LIBS
20838 fi
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20840 $as_echo "$ac_cv_search_opendir" >&6; }
20841 ac_res=$ac_cv_search_opendir
20842 if test "$ac_res" != no; then :
20843   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20844
20845 fi
20846
20847 else
20848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20849 $as_echo_n "checking for library containing opendir... " >&6; }
20850 if ${ac_cv_search_opendir+:} false; then :
20851   $as_echo_n "(cached) " >&6
20852 else
20853   ac_func_search_save_LIBS=$LIBS
20854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855 /* end confdefs.h.  */
20856
20857 /* Override any GCC internal prototype to avoid an error.
20858    Use char because int might match the return type of a GCC
20859    builtin and then its argument prototype would still apply.  */
20860 #ifdef __cplusplus
20861 extern "C"
20862 #endif
20863 char opendir ();
20864 int
20865 main ()
20866 {
20867 return opendir ();
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 for ac_lib in '' x; do
20873   if test -z "$ac_lib"; then
20874     ac_res="none required"
20875   else
20876     ac_res=-l$ac_lib
20877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20878   fi
20879   if ac_fn_c_try_link "$LINENO"; then :
20880   ac_cv_search_opendir=$ac_res
20881 fi
20882 rm -f core conftest.err conftest.$ac_objext \
20883     conftest$ac_exeext
20884   if ${ac_cv_search_opendir+:} false; then :
20885   break
20886 fi
20887 done
20888 if ${ac_cv_search_opendir+:} false; then :
20889
20890 else
20891   ac_cv_search_opendir=no
20892 fi
20893 rm conftest.$ac_ext
20894 LIBS=$ac_func_search_save_LIBS
20895 fi
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20897 $as_echo "$ac_cv_search_opendir" >&6; }
20898 ac_res=$ac_cv_search_opendir
20899 if test "$ac_res" != no; then :
20900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20901
20902 fi
20903
20904 fi
20905
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20907 $as_echo_n "checking for ANSI C header files... " >&6; }
20908 if ${ac_cv_header_stdc+:} false; then :
20909   $as_echo_n "(cached) " >&6
20910 else
20911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20912 /* end confdefs.h.  */
20913 #include <stdlib.h>
20914 #include <stdarg.h>
20915 #include <string.h>
20916 #include <float.h>
20917
20918 int
20919 main ()
20920 {
20921
20922   ;
20923   return 0;
20924 }
20925 _ACEOF
20926 if ac_fn_c_try_compile "$LINENO"; then :
20927   ac_cv_header_stdc=yes
20928 else
20929   ac_cv_header_stdc=no
20930 fi
20931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932
20933 if test $ac_cv_header_stdc = yes; then
20934   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h.  */
20937 #include <string.h>
20938
20939 _ACEOF
20940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20941   $EGREP "memchr" >/dev/null 2>&1; then :
20942
20943 else
20944   ac_cv_header_stdc=no
20945 fi
20946 rm -f conftest*
20947
20948 fi
20949
20950 if test $ac_cv_header_stdc = yes; then
20951   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953 /* end confdefs.h.  */
20954 #include <stdlib.h>
20955
20956 _ACEOF
20957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20958   $EGREP "free" >/dev/null 2>&1; then :
20959
20960 else
20961   ac_cv_header_stdc=no
20962 fi
20963 rm -f conftest*
20964
20965 fi
20966
20967 if test $ac_cv_header_stdc = yes; then
20968   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20969   if test "$cross_compiling" = yes; then :
20970   :
20971 else
20972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h.  */
20974 #include <ctype.h>
20975 #include <stdlib.h>
20976 #if ((' ' & 0x0FF) == 0x020)
20977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20979 #else
20980 # define ISLOWER(c) \
20981                    (('a' <= (c) && (c) <= 'i') \
20982                      || ('j' <= (c) && (c) <= 'r') \
20983                      || ('s' <= (c) && (c) <= 'z'))
20984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20985 #endif
20986
20987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20988 int
20989 main ()
20990 {
20991   int i;
20992   for (i = 0; i < 256; i++)
20993     if (XOR (islower (i), ISLOWER (i))
20994         || toupper (i) != TOUPPER (i))
20995       return 2;
20996   return 0;
20997 }
20998 _ACEOF
20999 if ac_fn_c_try_run "$LINENO"; then :
21000
21001 else
21002   ac_cv_header_stdc=no
21003 fi
21004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21005   conftest.$ac_objext conftest.beam conftest.$ac_ext
21006 fi
21007
21008 fi
21009 fi
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21011 $as_echo "$ac_cv_header_stdc" >&6; }
21012 if test $ac_cv_header_stdc = yes; then
21013
21014 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21015
21016 fi
21017
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21019 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21020 if ${ac_cv_header_time+:} false; then :
21021   $as_echo_n "(cached) " >&6
21022 else
21023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21024 /* end confdefs.h.  */
21025 #include <sys/types.h>
21026 #include <sys/time.h>
21027 #include <time.h>
21028
21029 int
21030 main ()
21031 {
21032 if ((struct tm *) 0)
21033 return 0;
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 if ac_fn_c_try_compile "$LINENO"; then :
21039   ac_cv_header_time=yes
21040 else
21041   ac_cv_header_time=no
21042 fi
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044 fi
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21046 $as_echo "$ac_cv_header_time" >&6; }
21047 if test $ac_cv_header_time = yes; then
21048
21049 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21050
21051 fi
21052
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21054 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21055 if ${ac_cv_header_sys_wait_h+:} false; then :
21056   $as_echo_n "(cached) " >&6
21057 else
21058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h.  */
21060 #include <sys/types.h>
21061 #include <sys/wait.h>
21062 #ifndef WEXITSTATUS
21063 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21064 #endif
21065 #ifndef WIFEXITED
21066 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21067 #endif
21068
21069 int
21070 main ()
21071 {
21072   int s;
21073   wait (&s);
21074   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21075   ;
21076   return 0;
21077 }
21078 _ACEOF
21079 if ac_fn_c_try_compile "$LINENO"; then :
21080   ac_cv_header_sys_wait_h=yes
21081 else
21082   ac_cv_header_sys_wait_h=no
21083 fi
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085 fi
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21087 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21088 if test $ac_cv_header_sys_wait_h = yes; then
21089
21090 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21091
21092 fi
21093
21094
21095 for ac_header in \
21096         unistd.h \
21097         crypt.h \
21098         errno.h \
21099         resource.h \
21100         sys/resource.h \
21101         getopt.h \
21102         malloc.h \
21103         utmp.h \
21104         utmpx.h \
21105         signal.h \
21106         sys/select.h \
21107         syslog.h \
21108         inttypes.h \
21109         stdint.h \
21110         stdio.h \
21111         netdb.h \
21112         semaphore.h \
21113         arpa/inet.h \
21114         netinet/in.h \
21115         sys/types.h \
21116         sys/socket.h \
21117         winsock.h \
21118         sys/time.h \
21119         sys/wait.h \
21120         sys/security.h \
21121         fcntl.h \
21122         sys/fcntl.h \
21123         sys/prctl.h \
21124         sys/un.h \
21125         glob.h \
21126         prot.h \
21127         pwd.h \
21128         grp.h \
21129         stddef.h \
21130         fnmatch.h \
21131         sia.h \
21132         siad.h
21133
21134 do :
21135   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21136 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21138   cat >>confdefs.h <<_ACEOF
21139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21140 _ACEOF
21141
21142 fi
21143
21144 done
21145
21146
21147 for ac_header in net/if.h
21148 do :
21149   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21150 # include <sys/socket.h>
21151 # endif
21152
21153 "
21154 if test "x$ac_cv_header_net_if_h" = xyes; then :
21155   cat >>confdefs.h <<_ACEOF
21156 #define HAVE_NET_IF_H 1
21157 _ACEOF
21158
21159 fi
21160
21161 done
21162
21163
21164 REGEX=no
21165 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21166 if test "x$ac_cv_header_regex_h" = xyes; then :
21167
21168 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21169
21170 fi
21171
21172
21173 if test "x$ac_cv_header_regex_h" = "xyes"; then
21174   REGEX_EXTENDED=no
21175   REGEX=yes
21176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h.  */
21178 #include <regex.h>
21179      #ifdef REG_EXTENDED
21180        yes
21181      #endif
21182
21183 _ACEOF
21184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21185   $EGREP "yes" >/dev/null 2>&1; then :
21186
21187 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21188  REGEX_EXTENDED=yes
21189 fi
21190 rm -f conftest*
21191
21192 fi
21193
21194
21195
21196 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21197 then
21198
21199 $as_echo "#define OSFC2 /**/" >>confdefs.h
21200
21201 fi
21202
21203 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21204 then
21205
21206 $as_echo "#define OSFSIA /**/" >>confdefs.h
21207
21208 fi
21209
21210 OPENSSL_INCLUDE="-DNO_OPENSSL"
21211 if test "x$WITH_OPENSSL" = xyes; then
21212   if test "x$OPENSSL_LIBS" = "x"; then
21213     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
21214 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21215   else
21216     old_CPPFLAGS=$CPPFLAGS
21217     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21218         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21219     fi
21220         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21221     for ac_header in \
21222         openssl/ssl.h \
21223         openssl/crypto.h \
21224         openssl/err.h \
21225         openssl/evp.h \
21226         openssl/ocsp.h \
21227         openssl/engine.h
21228 do :
21229   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21230 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21232   cat >>confdefs.h <<_ACEOF
21233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21234 _ACEOF
21235
21236 else
21237   OPENSSL_LIBS=
21238
21239 fi
21240
21241 done
21242
21243     if test "x$OPENSSL_LIBS" != "x"; then
21244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21245 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21246         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h.  */
21248 #include <openssl/crypto.h>
21249              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21250              yes
21251              #endif
21252
21253 _ACEOF
21254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21255   $EGREP "yes" >/dev/null 2>&1; then :
21256   goodssl="yes"
21257 fi
21258 rm -f conftest*
21259
21260         if test "x$goodssl" != "xyes"; then
21261             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21262 $as_echo "no" >&6; }
21263             OPENSSL_LIBS=
21264         else
21265             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21266 $as_echo "yes" >&6; }
21267             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21268                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21269             else
21270                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21271             fi
21272         fi
21273     fi
21274     CPPFLAGS=$old_CPPFLAGS
21275   fi
21276 fi
21277
21278
21279 export OPENSSL_LIBS
21280
21281 if test "x$PCAP_LIBS" = x; then
21282     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21283 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21284 else
21285     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21286 if test "x$ac_cv_header_pcap_h" = xyes; then :
21287
21288 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21289
21290 else
21291    PCAP_LIBS=
21292         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21293 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21294
21295 fi
21296
21297
21298
21299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21300 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21301 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21302   $as_echo_n "(cached) " >&6
21303 else
21304   ac_check_lib_save_LIBS=$LIBS
21305 LIBS="-lpcap  $LIBS"
21306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21307 /* end confdefs.h.  */
21308
21309 /* Override any GCC internal prototype to avoid an error.
21310    Use char because int might match the return type of a GCC
21311    builtin and then its argument prototype would still apply.  */
21312 #ifdef __cplusplus
21313 extern "C"
21314 #endif
21315 char pcap_fopen_offline ();
21316 int
21317 main ()
21318 {
21319 return pcap_fopen_offline ();
21320   ;
21321   return 0;
21322 }
21323 _ACEOF
21324 if ac_fn_c_try_link "$LINENO"; then :
21325   ac_cv_lib_pcap_pcap_fopen_offline=yes
21326 else
21327   ac_cv_lib_pcap_pcap_fopen_offline=no
21328 fi
21329 rm -f core conftest.err conftest.$ac_objext \
21330     conftest$ac_exeext conftest.$ac_ext
21331 LIBS=$ac_check_lib_save_LIBS
21332 fi
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21334 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21335 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21336
21337 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21338
21339
21340 fi
21341
21342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21343 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21344 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21345   $as_echo_n "(cached) " >&6
21346 else
21347   ac_check_lib_save_LIBS=$LIBS
21348 LIBS="-lpcap  $LIBS"
21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350 /* end confdefs.h.  */
21351
21352 /* Override any GCC internal prototype to avoid an error.
21353    Use char because int might match the return type of a GCC
21354    builtin and then its argument prototype would still apply.  */
21355 #ifdef __cplusplus
21356 extern "C"
21357 #endif
21358 char pcap_dump_fopen ();
21359 int
21360 main ()
21361 {
21362 return pcap_dump_fopen ();
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 if ac_fn_c_try_link "$LINENO"; then :
21368   ac_cv_lib_pcap_pcap_dump_fopen=yes
21369 else
21370   ac_cv_lib_pcap_pcap_dump_fopen=no
21371 fi
21372 rm -f core conftest.err conftest.$ac_objext \
21373     conftest$ac_exeext conftest.$ac_ext
21374 LIBS=$ac_check_lib_save_LIBS
21375 fi
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21377 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21378 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21379
21380 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21381
21382
21383 fi
21384
21385 fi
21386
21387
21388
21389 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21390 if test "x$ac_cv_type_off_t" = xyes; then :
21391
21392 else
21393
21394 cat >>confdefs.h <<_ACEOF
21395 #define off_t long int
21396 _ACEOF
21397
21398 fi
21399
21400 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21401 if test "x$ac_cv_type_pid_t" = xyes; then :
21402
21403 else
21404
21405 cat >>confdefs.h <<_ACEOF
21406 #define pid_t int
21407 _ACEOF
21408
21409 fi
21410
21411 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21412 if test "x$ac_cv_type_size_t" = xyes; then :
21413
21414 else
21415
21416 cat >>confdefs.h <<_ACEOF
21417 #define size_t unsigned int
21418 _ACEOF
21419
21420 fi
21421
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21423 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21424 if ${ac_cv_type_uid_t+:} false; then :
21425   $as_echo_n "(cached) " >&6
21426 else
21427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21428 /* end confdefs.h.  */
21429 #include <sys/types.h>
21430
21431 _ACEOF
21432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21433   $EGREP "uid_t" >/dev/null 2>&1; then :
21434   ac_cv_type_uid_t=yes
21435 else
21436   ac_cv_type_uid_t=no
21437 fi
21438 rm -f conftest*
21439
21440 fi
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21442 $as_echo "$ac_cv_type_uid_t" >&6; }
21443 if test $ac_cv_type_uid_t = no; then
21444
21445 $as_echo "#define uid_t int" >>confdefs.h
21446
21447
21448 $as_echo "#define gid_t int" >>confdefs.h
21449
21450 fi
21451
21452
21453
21454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21455 $as_echo_n "checking for socklen_t... " >&6; }
21456 if ${ac_cv_type_socklen_t+:} false; then :
21457   $as_echo_n "(cached) " >&6
21458 else
21459    ac_cv_type_socklen_t=no
21460       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h.  */
21462 #ifdef HAVE_SYS_TYPES_H
21463 #include <sys/types.h>
21464 #endif
21465 #ifdef HAVE_SYS_SOCKET_H
21466 #include <sys/socket.h>
21467 #endif
21468
21469 int
21470 main ()
21471 {
21472 socklen_t foo
21473   ;
21474   return 0;
21475 }
21476 _ACEOF
21477 if ac_fn_c_try_compile "$LINENO"; then :
21478   ac_cv_type_socklen_t=yes
21479 fi
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481
21482
21483 fi
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21485 $as_echo "$ac_cv_type_socklen_t" >&6; }
21486
21487   if test "$ac_cv_type_socklen_t" != "yes"; then
21488
21489 $as_echo "#define socklen_t int" >>confdefs.h
21490
21491   fi
21492
21493
21494
21495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21496 $as_echo_n "checking for uint8_t... " >&6; }
21497 if ${ac_cv_type_uint8_t+:} false; then :
21498   $as_echo_n "(cached) " >&6
21499 else
21500    ac_cv_type_uint8_t=no
21501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21502 /* end confdefs.h.  */
21503 #ifdef HAVE_INTTYPES_H
21504 #include <inttypes.h>
21505 #endif
21506 #ifdef HAVE_STDINT_H
21507 #include <stdint.h>
21508 #endif
21509
21510 int
21511 main ()
21512 {
21513 uint8_t foo
21514   ;
21515   return 0;
21516 }
21517 _ACEOF
21518 if ac_fn_c_try_compile "$LINENO"; then :
21519   ac_cv_type_uint8_t=yes
21520 fi
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21522
21523
21524 fi
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21526 $as_echo "$ac_cv_type_uint8_t" >&6; }
21527
21528   if test "$ac_cv_type_uint8_t" != "yes"; then
21529
21530 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21531
21532   fi
21533
21534
21535
21536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21537 $as_echo_n "checking for uint16_t... " >&6; }
21538 if ${ac_cv_type_uint16_t+:} false; then :
21539   $as_echo_n "(cached) " >&6
21540 else
21541    ac_cv_type_uint16_t=no
21542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h.  */
21544 #ifdef HAVE_INTTYPES_H
21545 #include <inttypes.h>
21546 #endif
21547 #ifdef HAVE_STDINT_H
21548 #include <stdint.h>
21549 #endif
21550
21551 int
21552 main ()
21553 {
21554 uint16_t foo
21555   ;
21556   return 0;
21557 }
21558 _ACEOF
21559 if ac_fn_c_try_compile "$LINENO"; then :
21560   ac_cv_type_uint16_t=yes
21561 fi
21562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563
21564
21565 fi
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21567 $as_echo "$ac_cv_type_uint16_t" >&6; }
21568
21569   if test "$ac_cv_type_uint16_t" != "yes"; then
21570
21571 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21572
21573   fi
21574
21575
21576
21577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21578 $as_echo_n "checking for uint32_t... " >&6; }
21579 if ${ac_cv_type_uint32_t+:} false; then :
21580   $as_echo_n "(cached) " >&6
21581 else
21582    ac_cv_type_uint32_t=no
21583       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21584 /* end confdefs.h.  */
21585 #ifdef HAVE_INTTYPES_H
21586 #include <inttypes.h>
21587 #endif
21588 #ifdef HAVE_STDINT_H
21589 #include <stdint.h>
21590 #endif
21591
21592 int
21593 main ()
21594 {
21595 uint32_t foo
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 if ac_fn_c_try_compile "$LINENO"; then :
21601   ac_cv_type_uint32_t=yes
21602 fi
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604
21605
21606 fi
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21608 $as_echo "$ac_cv_type_uint32_t" >&6; }
21609
21610   if test "$ac_cv_type_uint32_t" != "yes"; then
21611
21612 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21613
21614   fi
21615
21616
21617 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21618 #ifdef HAVE_NETINET_IN_H
21619 #include <netinet/in.h>
21620 #endif
21621
21622 "
21623 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21624
21625 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21626
21627 fi
21628
21629
21630 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21631 #ifdef HAVE_NETINET_IN_H
21632 #include <netinet/in.h>
21633 #endif
21634 #ifdef HAVE_SYS_SOCKET_H
21635 #include <sys/socket.h>
21636 #endif
21637
21638 "
21639 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21640
21641 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21642
21643 fi
21644
21645
21646 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21647 #ifdef HAVE_NETINET_IN_H
21648 #include <netinet/in.h>
21649 #endif
21650
21651 "
21652 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21653
21654 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21655
21656 fi
21657
21658
21659 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21660 #ifdef HAVE_SYS_TYPES_H
21661 #include <sys/types.h>
21662 #endif
21663 #ifdef HAVE_SYS_SOCKET_H
21664 #include <sys/socket.h>
21665 #endif
21666 #ifdef HAVE_NETDB_H
21667 #include <netdb.h>
21668 #endif
21669
21670 "
21671 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21672
21673 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21674
21675 fi
21676
21677
21678 for ac_func in \
21679         getopt_long \
21680         lockf \
21681         strsignal \
21682         sigaction \
21683         sigprocmask \
21684         pthread_sigmask \
21685         snprintf \
21686         vsnprintf \
21687         setsid \
21688         strncasecmp \
21689         strcasecmp \
21690         localtime_r \
21691         ctime_r \
21692         gmtime_r \
21693         strsep \
21694         inet_aton \
21695         inet_pton \
21696         inet_ntop \
21697         setlinebuf \
21698         setvbuf \
21699         getusershell \
21700         initgroups \
21701         getaddrinfo \
21702         getnameinfo \
21703         closefrom \
21704         gettimeofday \
21705         getpeereid \
21706         setuid \
21707         setresuid \
21708         getresuid \
21709         strlcat \
21710         strlcpy
21711
21712 do :
21713   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21714 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21715 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21716   cat >>confdefs.h <<_ACEOF
21717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21718 _ACEOF
21719
21720 fi
21721 done
21722
21723 for ac_func in \
21724         crypt \
21725         strncasecmp \
21726         strcasecmp \
21727         inet_aton \
21728         setlinebuf \
21729         getusershell \
21730         endusershell
21731
21732 do
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21734 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21735 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21736   $as_echo_n "(cached) " >&6
21737 else
21738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21739 /* end confdefs.h.  */
21740
21741 #include <stdio.h>
21742 #include <string.h>
21743 #ifdef HAVE_UNISTD_H
21744 #include <unistd.h>
21745 #endif
21746 #ifdef HAVE_CRYPT_H
21747 #include <crypt.h>
21748 #endif
21749 #ifdef HAVE_ERRNO_H
21750 #include <errno.h>
21751 #endif
21752 #ifdef HAVE_RESOURCE_H
21753 #include <resource.h>
21754 #endif
21755 #ifdef HAVE_GETOPT_H
21756 #include <getopt.h>
21757 #endif
21758 #ifdef HAVE_MALLOC_H
21759 #include <malloc.h>
21760 #endif
21761 #ifdef HAVE_UTMP_H
21762 #include <utmp.h>
21763 #endif
21764 #ifdef HAVE_UTMPX_H
21765 #include <utmpx.h>
21766 #endif
21767 #ifdef HAVE_SYS_SELECT_H
21768 #include <sys/select.h>
21769 #endif
21770 #ifdef HAVE_DLFCN_H
21771 #include <dlfcn.h>
21772 #endif
21773 #ifdef HAVE_REGEX_H
21774 #include <regex.h>
21775 #endif
21776 #ifdef HAVE_SYSLOG_H
21777 #include <syslog.h>
21778 #endif
21779 #ifdef HAVE_INTTYPES_H
21780 #include <inttypes.h>
21781 #endif
21782 #ifdef HAVE_STDINT_H
21783 #include <stdint.h>
21784 #endif
21785 #ifdef HAVE_ARPA_INET_H
21786 #include <arpa/inet.h>
21787 #endif
21788
21789 int
21790 main ()
21791 {
21792 char *(*pfn) = (char *(*)) $ac_func
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 if ac_fn_c_try_compile "$LINENO"; then :
21798   eval "radius_cv_decl_needed_$ac_func=no"
21799 else
21800   eval "radius_cv_decl_needed_$ac_func=yes"
21801 fi
21802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21803 fi
21804
21805 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21807 $as_echo "yes" >&6; }
21808   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21809   cat >>confdefs.h <<_ACEOF
21810 #define $radius_tr_decl 1
21811 _ACEOF
21812
21813 else
21814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815 $as_echo "no" >&6; }
21816 fi
21817
21818 done
21819
21820
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21822 $as_echo_n "checking return type of signal handlers... " >&6; }
21823 if ${ac_cv_type_signal+:} false; then :
21824   $as_echo_n "(cached) " >&6
21825 else
21826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21827 /* end confdefs.h.  */
21828 #include <sys/types.h>
21829 #include <signal.h>
21830
21831 int
21832 main ()
21833 {
21834 return *(signal (0, 0)) (0) == 1;
21835   ;
21836   return 0;
21837 }
21838 _ACEOF
21839 if ac_fn_c_try_compile "$LINENO"; then :
21840   ac_cv_type_signal=int
21841 else
21842   ac_cv_type_signal=void
21843 fi
21844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21845 fi
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21847 $as_echo "$ac_cv_type_signal" >&6; }
21848
21849 cat >>confdefs.h <<_ACEOF
21850 #define RETSIGTYPE $ac_cv_type_signal
21851 _ACEOF
21852
21853
21854
21855 if test "x$ac_cv_header_utmpx_h" = "xyes"
21856 then
21857
21858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
21859 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
21860
21861
21862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21863 /* end confdefs.h.  */
21864
21865 #include <utmpx.h>
21866 #ifdef HAVE_STDDEF_H
21867 #include <stddef.h>
21868 #endif
21869 #ifndef offsetof
21870 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21871 #endif
21872
21873 int
21874 main ()
21875 {
21876  int foo = offsetof(struct utmpx, ut_xtime)
21877   ;
21878   return 0;
21879 }
21880 _ACEOF
21881 if ac_fn_c_try_compile "$LINENO"; then :
21882   has_element=" "
21883 else
21884   has_element=
21885 fi
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887
21888   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21889   if test "x$has_element" != "x"; then
21890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21891 $as_echo "yes" >&6; }
21892     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21893   else
21894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21895 $as_echo "no" >&6; }
21896     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21897  fi
21898
21899  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21900  then
21901
21902 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
21903
21904  fi
21905 fi
21906
21907
21908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
21909 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
21910
21911
21912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h.  */
21914
21915 #include <netinet/in.h>
21916 #ifdef HAVE_STDDEF_H
21917 #include <stddef.h>
21918 #endif
21919 #ifndef offsetof
21920 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21921 #endif
21922
21923 int
21924 main ()
21925 {
21926  int foo = offsetof(struct in_pktinfo, ipi_addr)
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 if ac_fn_c_try_compile "$LINENO"; then :
21932   has_element=" "
21933 else
21934   has_element=
21935 fi
21936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21937
21938   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
21939   if test "x$has_element" != "x"; then
21940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21941 $as_echo "yes" >&6; }
21942     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
21943   else
21944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21945 $as_echo "no" >&6; }
21946     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
21947  fi
21948
21949 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
21950 then
21951
21952 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
21953
21954 fi
21955
21956
21957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
21958 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
21959
21960
21961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962 /* end confdefs.h.  */
21963
21964 #include <netinet/in.h>
21965 #ifdef HAVE_STDDEF_H
21966 #include <stddef.h>
21967 #endif
21968 #ifndef offsetof
21969 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21970 #endif
21971
21972 int
21973 main ()
21974 {
21975  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
21976   ;
21977   return 0;
21978 }
21979 _ACEOF
21980 if ac_fn_c_try_compile "$LINENO"; then :
21981   has_element=" "
21982 else
21983   has_element=
21984 fi
21985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986
21987   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
21988   if test "x$has_element" != "x"; then
21989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21990 $as_echo "yes" >&6; }
21991     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
21992   else
21993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21994 $as_echo "no" >&6; }
21995     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
21996  fi
21997
21998 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
21999 then
22000
22001 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22002
22003 fi
22004
22005
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22007 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22008 if ${ac_cv_c_const+:} false; then :
22009   $as_echo_n "(cached) " >&6
22010 else
22011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h.  */
22013
22014 int
22015 main ()
22016 {
22017
22018 #ifndef __cplusplus
22019   /* Ultrix mips cc rejects this sort of thing.  */
22020   typedef int charset[2];
22021   const charset cs = { 0, 0 };
22022   /* SunOS 4.1.1 cc rejects this.  */
22023   char const *const *pcpcc;
22024   char **ppc;
22025   /* NEC SVR4.0.2 mips cc rejects this.  */
22026   struct point {int x, y;};
22027   static struct point const zero = {0,0};
22028   /* AIX XL C 1.02.0.0 rejects this.
22029      It does not let you subtract one const X* pointer from another in
22030      an arm of an if-expression whose if-part is not a constant
22031      expression */
22032   const char *g = "string";
22033   pcpcc = &g + (g ? g-g : 0);
22034   /* HPUX 7.0 cc rejects these. */
22035   ++pcpcc;
22036   ppc = (char**) pcpcc;
22037   pcpcc = (char const *const *) ppc;
22038   { /* SCO 3.2v4 cc rejects this sort of thing.  */
22039     char tx;
22040     char *t = &tx;
22041     char const *s = 0 ? (char *) 0 : (char const *) 0;
22042
22043     *t++ = 0;
22044     if (s) return 0;
22045   }
22046   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22047     int x[] = {25, 17};
22048     const int *foo = &x[0];
22049     ++foo;
22050   }
22051   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22052     typedef const int *iptr;
22053     iptr p = 0;
22054     ++p;
22055   }
22056   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22057        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22058     struct s { int j; const int *ap[3]; } bx;
22059     struct s *b = &bx; b->j = 5;
22060   }
22061   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22062     const int foo = 10;
22063     if (!foo) return 0;
22064   }
22065   return !cs[0] && !zero.x;
22066 #endif
22067
22068   ;
22069   return 0;
22070 }
22071 _ACEOF
22072 if ac_fn_c_try_compile "$LINENO"; then :
22073   ac_cv_c_const=yes
22074 else
22075   ac_cv_c_const=no
22076 fi
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 fi
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22080 $as_echo "$ac_cv_c_const" >&6; }
22081 if test $ac_cv_c_const = no; then
22082
22083 $as_echo "#define const /**/" >>confdefs.h
22084
22085 fi
22086
22087
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22089 $as_echo_n "checking type of OS... " >&6; }
22090 OS=`uname -s`
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22092 $as_echo "$OS" >&6; }
22093 if test "$OS" = "OS/2"; then
22094         LIBPREFIX=
22095 else
22096         LIBPREFIX=lib
22097 fi
22098
22099
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22101 $as_echo_n "checking for developer gcc flags... " >&6; }
22102 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22103   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22104   CFLAGS="$CFLAGS $devflags"
22105   INSTALLSTRIP=""
22106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
22107 $as_echo "yes.  Using $devflags" >&6; }
22108 else
22109   devflags=""
22110   CFLAGS="$CFLAGS -DNDEBUG"
22111   INSTALLSTRIP=""
22112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22113 $as_echo "no." >&6; }
22114 fi
22115
22116
22117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22118 $as_echo_n "checking for TLS... " >&6; }
22119     if test "$cross_compiling" = yes; then :
22120   have_tls=no
22121 else
22122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h.  */
22124  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22125 _ACEOF
22126 if ac_fn_c_try_run "$LINENO"; then :
22127   have_tls=yes
22128 else
22129   have_tls=no
22130 fi
22131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22132   conftest.$ac_objext conftest.beam conftest.$ac_ext
22133 fi
22134
22135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22136 $as_echo "$have_tls" >&6; }
22137     if test "$have_tls" = "yes"; then
22138
22139 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22140
22141     fi
22142
22143
22144
22145 old_LIBS="$LIBS"
22146 LIBS="$LIBS $LIBLTDL"
22147 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22148 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22149
22150 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22151
22152 fi
22153
22154 LIBS="$old_LIBS"
22155
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22157 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22158 if ${ac_cv_lib_crypt_crypt+:} false; then :
22159   $as_echo_n "(cached) " >&6
22160 else
22161   ac_check_lib_save_LIBS=$LIBS
22162 LIBS="-lcrypt  $LIBS"
22163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h.  */
22165
22166 /* Override any GCC internal prototype to avoid an error.
22167    Use char because int might match the return type of a GCC
22168    builtin and then its argument prototype would still apply.  */
22169 #ifdef __cplusplus
22170 extern "C"
22171 #endif
22172 char crypt ();
22173 int
22174 main ()
22175 {
22176 return crypt ();
22177   ;
22178   return 0;
22179 }
22180 _ACEOF
22181 if ac_fn_c_try_link "$LINENO"; then :
22182   ac_cv_lib_crypt_crypt=yes
22183 else
22184   ac_cv_lib_crypt_crypt=no
22185 fi
22186 rm -f core conftest.err conftest.$ac_objext \
22187     conftest$ac_exeext conftest.$ac_ext
22188 LIBS=$ac_check_lib_save_LIBS
22189 fi
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22191 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22192 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22193   CRYPTLIB="-lcrypt"
22194
22195 fi
22196
22197 if test "$CRYPTLIB" != ""; then
22198
22199 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22200
22201 else
22202   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22203 if test "x$ac_cv_func_crypt" = xyes; then :
22204
22205 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22206
22207 fi
22208
22209 fi
22210
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22212 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22213 if ${ac_cv_lib_cipher_setkey+:} false; then :
22214   $as_echo_n "(cached) " >&6
22215 else
22216   ac_check_lib_save_LIBS=$LIBS
22217 LIBS="-lcipher  $LIBS"
22218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219 /* end confdefs.h.  */
22220
22221 /* Override any GCC internal prototype to avoid an error.
22222    Use char because int might match the return type of a GCC
22223    builtin and then its argument prototype would still apply.  */
22224 #ifdef __cplusplus
22225 extern "C"
22226 #endif
22227 char setkey ();
22228 int
22229 main ()
22230 {
22231 return setkey ();
22232   ;
22233   return 0;
22234 }
22235 _ACEOF
22236 if ac_fn_c_try_link "$LINENO"; then :
22237   ac_cv_lib_cipher_setkey=yes
22238 else
22239   ac_cv_lib_cipher_setkey=no
22240 fi
22241 rm -f core conftest.err conftest.$ac_objext \
22242     conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22244 fi
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22246 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22247 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22248   CRYPTLIB="${CRYPTLIB} -lcipher"
22249
22250 fi
22251
22252
22253
22254
22255 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22256
22257
22258 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22259
22260
22261 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22262
22263 gethostbyaddrrstyle=""
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22265 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22266 case "$host" in
22267 *-freebsd*)
22268         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22269 #ifdef HAVE_NETDB_H
22270 #include <netdb.h>
22271 #endif
22272
22273 "
22274 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22275   ac_have_decl=1
22276 else
22277   ac_have_decl=0
22278 fi
22279
22280 cat >>confdefs.h <<_ACEOF
22281 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22282 _ACEOF
22283 if test $ac_have_decl = 1; then :
22284
22285 else
22286
22287
22288 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22289
22290                 gethostbyaddrrstyle=BSD
22291                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22292 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22293
22294 fi
22295
22296         ;;
22297 esac
22298 if test "x$gethostbyaddrrstyle" = "x"; then
22299         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h.  */
22301
22302 #include <stdio.h>
22303 #include <netdb.h>
22304
22305 int
22306 main ()
22307 {
22308  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22309   ;
22310   return 0;
22311 }
22312 _ACEOF
22313 if ac_fn_c_try_link "$LINENO"; then :
22314
22315
22316 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22317
22318         gethostbyaddrrstyle=GNU
22319
22320 fi
22321 rm -f core conftest.err conftest.$ac_objext \
22322     conftest$ac_exeext conftest.$ac_ext
22323 fi
22324 if test "x$gethostbyaddrrstyle" = "x"; then
22325         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22326 /* end confdefs.h.  */
22327
22328 #include <stdio.h>
22329 #include <netdb.h>
22330
22331 int
22332 main ()
22333 {
22334  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 if ac_fn_c_try_link "$LINENO"; then :
22340
22341
22342 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22343
22344                 gethostbyaddrrstyle=SYSV
22345
22346 fi
22347 rm -f core conftest.err conftest.$ac_objext \
22348     conftest$ac_exeext conftest.$ac_ext
22349 fi
22350 if test "x$gethostbyaddrrstyle" = "x"; then
22351         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22352 /* end confdefs.h.  */
22353
22354 #include <stdio.h>
22355 #include <netdb.h>
22356
22357 int
22358 main ()
22359 {
22360  gethostbyaddr(NULL, 0, 0)
22361   ;
22362   return 0;
22363 }
22364 _ACEOF
22365 if ac_fn_c_try_link "$LINENO"; then :
22366
22367
22368 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22369
22370                 gethostbyaddrrstyle=BSD
22371
22372 fi
22373 rm -f core conftest.err conftest.$ac_objext \
22374     conftest$ac_exeext conftest.$ac_ext
22375 fi
22376
22377 if test "x$gethostbyaddrrstyle" = "x"; then
22378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22379 $as_echo "none!  It must not exist, here." >&6; }
22380 else
22381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22382 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22383 fi
22384
22385 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22386         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22387 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22388 fi
22389
22390 gethostbynamerstyle=""
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22392 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h.  */
22395
22396 #include <stdio.h>
22397 #include <netdb.h>
22398
22399 int
22400 main ()
22401 {
22402  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22403   ;
22404   return 0;
22405 }
22406 _ACEOF
22407 if ac_fn_c_try_link "$LINENO"; then :
22408
22409
22410 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22411
22412         gethostbynamerstyle=GNU
22413
22414 fi
22415 rm -f core conftest.err conftest.$ac_objext \
22416     conftest$ac_exeext conftest.$ac_ext
22417 if test "x$gethostbynamerstyle" = "x"; then
22418         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419 /* end confdefs.h.  */
22420
22421 #include <stdio.h>
22422 #include <netdb.h>
22423
22424 int
22425 main ()
22426 {
22427  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22428   ;
22429   return 0;
22430 }
22431 _ACEOF
22432 if ac_fn_c_try_link "$LINENO"; then :
22433
22434
22435 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22436
22437                 gethostbynamerstyle=SYSV
22438
22439 fi
22440 rm -f core conftest.err conftest.$ac_objext \
22441     conftest$ac_exeext conftest.$ac_ext
22442 fi
22443 if test "x$gethostbynamerstyle" = "x"; then
22444         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22445 /* end confdefs.h.  */
22446
22447 #include <stdio.h>
22448 #include <netdb.h>
22449
22450 int
22451 main ()
22452 {
22453  gethostbyname(NULL)
22454   ;
22455   return 0;
22456 }
22457 _ACEOF
22458 if ac_fn_c_try_link "$LINENO"; then :
22459
22460
22461 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22462
22463                 gethostbynamerstyle=BSD
22464
22465 fi
22466 rm -f core conftest.err conftest.$ac_objext \
22467     conftest$ac_exeext conftest.$ac_ext
22468 fi
22469
22470 if test "x$gethostbynamerstyle" = "x"; then
22471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22472 $as_echo "none!  It must not exist, here." >&6; }
22473 else
22474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22475 $as_echo "${gethostbynamerstyle}-style" >&6; }
22476 fi
22477
22478 if test "x$gethostbynamerstyle" = "xBSD"; then
22479         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22480 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22481 fi
22482
22483
22484 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22485
22486
22487 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22488
22489 ctimerstyle=""
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22491 $as_echo_n "checking ctime_r() syntax... " >&6; }
22492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22493 /* end confdefs.h.  */
22494
22495 #include <time.h>
22496
22497 int
22498 main ()
22499 {
22500  ctime_r(NULL, NULL, 0)
22501   ;
22502   return 0;
22503 }
22504 _ACEOF
22505 if ac_fn_c_try_link "$LINENO"; then :
22506
22507
22508 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22509
22510         ctimerstyle="SOLARIS"
22511
22512 fi
22513 rm -f core conftest.err conftest.$ac_objext \
22514     conftest$ac_exeext conftest.$ac_ext
22515 if test "x$ctimerstyle" = "x"; then
22516         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22517 /* end confdefs.h.  */
22518
22519 #include <time.h>
22520
22521 int
22522 main ()
22523 {
22524  ctime_r(NULL, NULL)
22525   ;
22526   return 0;
22527 }
22528 _ACEOF
22529 if ac_fn_c_try_link "$LINENO"; then :
22530
22531
22532 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22533
22534                 ctimerstyle="POSIX"
22535
22536 fi
22537 rm -f core conftest.err conftest.$ac_objext \
22538     conftest$ac_exeext conftest.$ac_ext
22539 fi
22540
22541 if test "x$ctimerstyle" = "x"; then
22542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22543 $as_echo "none!  It must not exist, here." >&6; }
22544 else
22545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22546 $as_echo "${ctimerstyle}-style" >&6; }
22547 fi
22548
22549 HOSTINFO=$host
22550
22551
22552 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22553
22554 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22555
22556 fi
22557
22558
22559 top_builddir=`pwd`
22560 export top_builddir
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22562 $as_echo "top_builddir=$top_builddir" >&6; }
22563
22564
22565
22566
22567
22568 mysubdirs="$LIBLTDLPATH"
22569 if test "x$EXPERIMENTAL" = "xyes"; then
22570   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22571     mysubdirs=`echo $mysubdirs $bar`
22572 else
22573         for bar in `cat "${srcdir}"/src/modules/stable`; do
22574     if test -f "${srcdir}"/src/modules/$bar/configure; then
22575       mysubdirs="$mysubdirs src/modules/$bar"
22576     fi
22577   done
22578 fi
22579
22580 if test "x$EXPERIMENTAL" = "xyes"; then
22581   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22582     MODULES="$MODULES $foo"
22583   done
22584 else
22585             for foo in `cat "${srcdir}"/src/modules/stable`; do
22586     MODULES="$MODULES $foo"
22587    done
22588 fi
22589
22590
22591
22592 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22593
22594
22595
22596
22597 ac_config_commands="$ac_config_commands stamp-h"
22598
22599 ac_config_commands="$ac_config_commands build-radpaths-h"
22600
22601 ac_config_commands="$ac_config_commands main-chmod"
22602
22603 ac_config_commands="$ac_config_commands scripts-chmod"
22604
22605
22606
22607
22608
22609 USE_SHARED_LIBS=$enable_shared
22610
22611 USE_STATIC_LIBS=$enable_static
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622   unset ac_cv_env_LIBS_set
22623   unset ac_cv_env_LIBS_value
22624
22625   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
22626
22627 cat >confcache <<\_ACEOF
22628 # This file is a shell script that caches the results of configure
22629 # tests run on this system so they can be shared between configure
22630 # scripts and configure runs, see configure's option --config-cache.
22631 # It is not useful on other systems.  If it contains results you don't
22632 # want to keep, you may remove or edit it.
22633 #
22634 # config.status only pays attention to the cache file if you give it
22635 # the --recheck option to rerun configure.
22636 #
22637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22639 # following values.
22640
22641 _ACEOF
22642
22643 # The following way of writing the cache mishandles newlines in values,
22644 # but we know of no workaround that is simple, portable, and efficient.
22645 # So, we kill variables containing newlines.
22646 # Ultrix sh set writes to stderr and can't be redirected directly,
22647 # and sets the high bit in the cache file unless we assign to the vars.
22648 (
22649   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22650     eval ac_val=\$$ac_var
22651     case $ac_val in #(
22652     *${as_nl}*)
22653       case $ac_var in #(
22654       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22656       esac
22657       case $ac_var in #(
22658       _ | IFS | as_nl) ;; #(
22659       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22660       *) { eval $ac_var=; unset $ac_var;} ;;
22661       esac ;;
22662     esac
22663   done
22664
22665   (set) 2>&1 |
22666     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22667     *${as_nl}ac_space=\ *)
22668       # `set' does not quote correctly, so add quotes: double-quote
22669       # substitution turns \\\\ into \\, and sed turns \\ into \.
22670       sed -n \
22671         "s/'/'\\\\''/g;
22672           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22673       ;; #(
22674     *)
22675       # `set' quotes correctly as required by POSIX, so do not add quotes.
22676       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22677       ;;
22678     esac |
22679     sort
22680 ) |
22681   sed '
22682      /^ac_cv_env_/b end
22683      t clear
22684      :clear
22685      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22686      t end
22687      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22688      :end' >>confcache
22689 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22690   if test -w "$cache_file"; then
22691     if test "x$cache_file" != "x/dev/null"; then
22692       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22693 $as_echo "$as_me: updating cache $cache_file" >&6;}
22694       if test ! -f "$cache_file" || test -h "$cache_file"; then
22695         cat confcache >"$cache_file"
22696       else
22697         case $cache_file in #(
22698         */* | ?:*)
22699           mv -f confcache "$cache_file"$$ &&
22700           mv -f "$cache_file"$$ "$cache_file" ;; #(
22701         *)
22702           mv -f confcache "$cache_file" ;;
22703         esac
22704       fi
22705     fi
22706   else
22707     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22708 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22709   fi
22710 fi
22711 rm -f confcache
22712
22713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22714 # Let make expand exec_prefix.
22715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22716
22717 DEFS=-DHAVE_CONFIG_H
22718
22719 ac_libobjs=
22720 ac_ltlibobjs=
22721 U=
22722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22723   # 1. Remove the extension, and $U if already installed.
22724   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22725   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22726   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22727   #    will be set to the directory where LIBOBJS objects are built.
22728   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22729   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22730 done
22731 LIBOBJS=$ac_libobjs
22732
22733 LTLIBOBJS=$ac_ltlibobjs
22734
22735
22736
22737
22738 : "${CONFIG_STATUS=./config.status}"
22739 ac_write_fail=0
22740 ac_clean_files_save=$ac_clean_files
22741 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22743 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22744 as_write_fail=0
22745 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22746 #! $SHELL
22747 # Generated by $as_me.
22748 # Run this file to recreate the current configuration.
22749 # Compiler output produced by configure, useful for debugging
22750 # configure, is in config.log if it exists.
22751
22752 debug=false
22753 ac_cs_recheck=false
22754 ac_cs_silent=false
22755
22756 SHELL=\${CONFIG_SHELL-$SHELL}
22757 export SHELL
22758 _ASEOF
22759 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22760 ## -------------------- ##
22761 ## M4sh Initialization. ##
22762 ## -------------------- ##
22763
22764 # Be more Bourne compatible
22765 DUALCASE=1; export DUALCASE # for MKS sh
22766 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22767   emulate sh
22768   NULLCMD=:
22769   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22770   # is contrary to our usage.  Disable this feature.
22771   alias -g '${1+"$@"}'='"$@"'
22772   setopt NO_GLOB_SUBST
22773 else
22774   case `(set -o) 2>/dev/null` in #(
22775   *posix*) :
22776     set -o posix ;; #(
22777   *) :
22778      ;;
22779 esac
22780 fi
22781
22782
22783 as_nl='
22784 '
22785 export as_nl
22786 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22787 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22788 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22789 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22790 # Prefer a ksh shell builtin over an external printf program on Solaris,
22791 # but without wasting forks for bash or zsh.
22792 if test -z "$BASH_VERSION$ZSH_VERSION" \
22793     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22794   as_echo='print -r --'
22795   as_echo_n='print -rn --'
22796 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22797   as_echo='printf %s\n'
22798   as_echo_n='printf %s'
22799 else
22800   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22801     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22802     as_echo_n='/usr/ucb/echo -n'
22803   else
22804     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22805     as_echo_n_body='eval
22806       arg=$1;
22807       case $arg in #(
22808       *"$as_nl"*)
22809         expr "X$arg" : "X\\(.*\\)$as_nl";
22810         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22811       esac;
22812       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22813     '
22814     export as_echo_n_body
22815     as_echo_n='sh -c $as_echo_n_body as_echo'
22816   fi
22817   export as_echo_body
22818   as_echo='sh -c $as_echo_body as_echo'
22819 fi
22820
22821 # The user is always right.
22822 if test "${PATH_SEPARATOR+set}" != set; then
22823   PATH_SEPARATOR=:
22824   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22825     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22826       PATH_SEPARATOR=';'
22827   }
22828 fi
22829
22830
22831 # IFS
22832 # We need space, tab and new line, in precisely that order.  Quoting is
22833 # there to prevent editors from complaining about space-tab.
22834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22835 # splitting by setting IFS to empty value.)
22836 IFS=" ""        $as_nl"
22837
22838 # Find who we are.  Look in the path if we contain no directory separator.
22839 as_myself=
22840 case $0 in #((
22841   *[\\/]* ) as_myself=$0 ;;
22842   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22843 for as_dir in $PATH
22844 do
22845   IFS=$as_save_IFS
22846   test -z "$as_dir" && as_dir=.
22847     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22848   done
22849 IFS=$as_save_IFS
22850
22851      ;;
22852 esac
22853 # We did not find ourselves, most probably we were run as `sh COMMAND'
22854 # in which case we are not to be found in the path.
22855 if test "x$as_myself" = x; then
22856   as_myself=$0
22857 fi
22858 if test ! -f "$as_myself"; then
22859   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22860   exit 1
22861 fi
22862
22863 # Unset variables that we do not need and which cause bugs (e.g. in
22864 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22865 # suppresses any "Segmentation fault" message there.  '((' could
22866 # trigger a bug in pdksh 5.2.14.
22867 for as_var in BASH_ENV ENV MAIL MAILPATH
22868 do eval test x\${$as_var+set} = xset \
22869   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22870 done
22871 PS1='$ '
22872 PS2='> '
22873 PS4='+ '
22874
22875 # NLS nuisances.
22876 LC_ALL=C
22877 export LC_ALL
22878 LANGUAGE=C
22879 export LANGUAGE
22880
22881 # CDPATH.
22882 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22883
22884
22885 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22886 # ----------------------------------------
22887 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22888 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22889 # script with STATUS, using 1 if that was 0.
22890 as_fn_error ()
22891 {
22892   as_status=$1; test $as_status -eq 0 && as_status=1
22893   if test "$4"; then
22894     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22895     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22896   fi
22897   $as_echo "$as_me: error: $2" >&2
22898   as_fn_exit $as_status
22899 } # as_fn_error
22900
22901
22902 # as_fn_set_status STATUS
22903 # -----------------------
22904 # Set $? to STATUS, without forking.
22905 as_fn_set_status ()
22906 {
22907   return $1
22908 } # as_fn_set_status
22909
22910 # as_fn_exit STATUS
22911 # -----------------
22912 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22913 as_fn_exit ()
22914 {
22915   set +e
22916   as_fn_set_status $1
22917   exit $1
22918 } # as_fn_exit
22919
22920 # as_fn_unset VAR
22921 # ---------------
22922 # Portably unset VAR.
22923 as_fn_unset ()
22924 {
22925   { eval $1=; unset $1;}
22926 }
22927 as_unset=as_fn_unset
22928 # as_fn_append VAR VALUE
22929 # ----------------------
22930 # Append the text in VALUE to the end of the definition contained in VAR. Take
22931 # advantage of any shell optimizations that allow amortized linear growth over
22932 # repeated appends, instead of the typical quadratic growth present in naive
22933 # implementations.
22934 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22935   eval 'as_fn_append ()
22936   {
22937     eval $1+=\$2
22938   }'
22939 else
22940   as_fn_append ()
22941   {
22942     eval $1=\$$1\$2
22943   }
22944 fi # as_fn_append
22945
22946 # as_fn_arith ARG...
22947 # ------------------
22948 # Perform arithmetic evaluation on the ARGs, and store the result in the
22949 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22950 # must be portable across $(()) and expr.
22951 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22952   eval 'as_fn_arith ()
22953   {
22954     as_val=$(( $* ))
22955   }'
22956 else
22957   as_fn_arith ()
22958   {
22959     as_val=`expr "$@" || test $? -eq 1`
22960   }
22961 fi # as_fn_arith
22962
22963
22964 if expr a : '\(a\)' >/dev/null 2>&1 &&
22965    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22966   as_expr=expr
22967 else
22968   as_expr=false
22969 fi
22970
22971 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22972   as_basename=basename
22973 else
22974   as_basename=false
22975 fi
22976
22977 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22978   as_dirname=dirname
22979 else
22980   as_dirname=false
22981 fi
22982
22983 as_me=`$as_basename -- "$0" ||
22984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22985          X"$0" : 'X\(//\)$' \| \
22986          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22987 $as_echo X/"$0" |
22988     sed '/^.*\/\([^/][^/]*\)\/*$/{
22989             s//\1/
22990             q
22991           }
22992           /^X\/\(\/\/\)$/{
22993             s//\1/
22994             q
22995           }
22996           /^X\/\(\/\).*/{
22997             s//\1/
22998             q
22999           }
23000           s/.*/./; q'`
23001
23002 # Avoid depending upon Character Ranges.
23003 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23004 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23005 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23006 as_cr_digits='0123456789'
23007 as_cr_alnum=$as_cr_Letters$as_cr_digits
23008
23009 ECHO_C= ECHO_N= ECHO_T=
23010 case `echo -n x` in #(((((
23011 -n*)
23012   case `echo 'xy\c'` in
23013   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23014   xy)  ECHO_C='\c';;
23015   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23016        ECHO_T=' ';;
23017   esac;;
23018 *)
23019   ECHO_N='-n';;
23020 esac
23021
23022 rm -f conf$$ conf$$.exe conf$$.file
23023 if test -d conf$$.dir; then
23024   rm -f conf$$.dir/conf$$.file
23025 else
23026   rm -f conf$$.dir
23027   mkdir conf$$.dir 2>/dev/null
23028 fi
23029 if (echo >conf$$.file) 2>/dev/null; then
23030   if ln -s conf$$.file conf$$ 2>/dev/null; then
23031     as_ln_s='ln -s'
23032     # ... but there are two gotchas:
23033     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23034     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23035     # In both cases, we have to default to `cp -pR'.
23036     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23037       as_ln_s='cp -pR'
23038   elif ln conf$$.file conf$$ 2>/dev/null; then
23039     as_ln_s=ln
23040   else
23041     as_ln_s='cp -pR'
23042   fi
23043 else
23044   as_ln_s='cp -pR'
23045 fi
23046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23047 rmdir conf$$.dir 2>/dev/null
23048
23049
23050 # as_fn_mkdir_p
23051 # -------------
23052 # Create "$as_dir" as a directory, including parents if necessary.
23053 as_fn_mkdir_p ()
23054 {
23055
23056   case $as_dir in #(
23057   -*) as_dir=./$as_dir;;
23058   esac
23059   test -d "$as_dir" || eval $as_mkdir_p || {
23060     as_dirs=
23061     while :; do
23062       case $as_dir in #(
23063       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23064       *) as_qdir=$as_dir;;
23065       esac
23066       as_dirs="'$as_qdir' $as_dirs"
23067       as_dir=`$as_dirname -- "$as_dir" ||
23068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23069          X"$as_dir" : 'X\(//\)[^/]' \| \
23070          X"$as_dir" : 'X\(//\)$' \| \
23071          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23072 $as_echo X"$as_dir" |
23073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23074             s//\1/
23075             q
23076           }
23077           /^X\(\/\/\)[^/].*/{
23078             s//\1/
23079             q
23080           }
23081           /^X\(\/\/\)$/{
23082             s//\1/
23083             q
23084           }
23085           /^X\(\/\).*/{
23086             s//\1/
23087             q
23088           }
23089           s/.*/./; q'`
23090       test -d "$as_dir" && break
23091     done
23092     test -z "$as_dirs" || eval "mkdir $as_dirs"
23093   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23094
23095
23096 } # as_fn_mkdir_p
23097 if mkdir -p . 2>/dev/null; then
23098   as_mkdir_p='mkdir -p "$as_dir"'
23099 else
23100   test -d ./-p && rmdir ./-p
23101   as_mkdir_p=false
23102 fi
23103
23104
23105 # as_fn_executable_p FILE
23106 # -----------------------
23107 # Test if FILE is an executable regular file.
23108 as_fn_executable_p ()
23109 {
23110   test -f "$1" && test -x "$1"
23111 } # as_fn_executable_p
23112 as_test_x='test -x'
23113 as_executable_p=as_fn_executable_p
23114
23115 # Sed expression to map a string onto a valid CPP name.
23116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23117
23118 # Sed expression to map a string onto a valid variable name.
23119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23120
23121
23122 exec 6>&1
23123 ## ----------------------------------- ##
23124 ## Main body of $CONFIG_STATUS script. ##
23125 ## ----------------------------------- ##
23126 _ASEOF
23127 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23128
23129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23130 # Save the log message, to keep $0 and so on meaningful, and to
23131 # report actual input values of CONFIG_FILES etc. instead of their
23132 # values after options handling.
23133 ac_log="
23134 This file was extended by freeradius $as_me $Id$, which was
23135 generated by GNU Autoconf 2.69.  Invocation command line was
23136
23137   CONFIG_FILES    = $CONFIG_FILES
23138   CONFIG_HEADERS  = $CONFIG_HEADERS
23139   CONFIG_LINKS    = $CONFIG_LINKS
23140   CONFIG_COMMANDS = $CONFIG_COMMANDS
23141   $ $0 $@
23142
23143 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23144 "
23145
23146 _ACEOF
23147
23148 case $ac_config_files in *"
23149 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23150 esac
23151
23152 case $ac_config_headers in *"
23153 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23154 esac
23155
23156
23157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23158 # Files that config.status was made for.
23159 config_files="$ac_config_files"
23160 config_headers="$ac_config_headers"
23161 config_commands="$ac_config_commands"
23162
23163 _ACEOF
23164
23165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23166 ac_cs_usage="\
23167 \`$as_me' instantiates files and other configuration actions
23168 from templates according to the current configuration.  Unless the files
23169 and actions are specified as TAGs, all are instantiated by default.
23170
23171 Usage: $0 [OPTION]... [TAG]...
23172
23173   -h, --help       print this help, then exit
23174   -V, --version    print version number and configuration settings, then exit
23175       --config     print configuration, then exit
23176   -q, --quiet, --silent
23177                    do not print progress messages
23178   -d, --debug      don't remove temporary files
23179       --recheck    update $as_me by reconfiguring in the same conditions
23180       --file=FILE[:TEMPLATE]
23181                    instantiate the configuration file FILE
23182       --header=FILE[:TEMPLATE]
23183                    instantiate the configuration header FILE
23184
23185 Configuration files:
23186 $config_files
23187
23188 Configuration headers:
23189 $config_headers
23190
23191 Configuration commands:
23192 $config_commands
23193
23194 Report bugs to <http://bugs.freeradius.org>.
23195 freeradius home page: <http://www.freeradius.org>."
23196
23197 _ACEOF
23198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23199 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23200 ac_cs_version="\\
23201 freeradius config.status $Id$
23202 configured by $0, generated by GNU Autoconf 2.69,
23203   with options \\"\$ac_cs_config\\"
23204
23205 Copyright (C) 2012 Free Software Foundation, Inc.
23206 This config.status script is free software; the Free Software Foundation
23207 gives unlimited permission to copy, distribute and modify it."
23208
23209 ac_pwd='$ac_pwd'
23210 srcdir='$srcdir'
23211 test -n "\$AWK" || AWK=awk
23212 _ACEOF
23213
23214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23215 # The default lists apply if the user does not specify any file.
23216 ac_need_defaults=:
23217 while test $# != 0
23218 do
23219   case $1 in
23220   --*=?*)
23221     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23222     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23223     ac_shift=:
23224     ;;
23225   --*=)
23226     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23227     ac_optarg=
23228     ac_shift=:
23229     ;;
23230   *)
23231     ac_option=$1
23232     ac_optarg=$2
23233     ac_shift=shift
23234     ;;
23235   esac
23236
23237   case $ac_option in
23238   # Handling of the options.
23239   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23240     ac_cs_recheck=: ;;
23241   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23242     $as_echo "$ac_cs_version"; exit ;;
23243   --config | --confi | --conf | --con | --co | --c )
23244     $as_echo "$ac_cs_config"; exit ;;
23245   --debug | --debu | --deb | --de | --d | -d )
23246     debug=: ;;
23247   --file | --fil | --fi | --f )
23248     $ac_shift
23249     case $ac_optarg in
23250     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23251     '') as_fn_error $? "missing file argument" ;;
23252     esac
23253     as_fn_append CONFIG_FILES " '$ac_optarg'"
23254     ac_need_defaults=false;;
23255   --header | --heade | --head | --hea )
23256     $ac_shift
23257     case $ac_optarg in
23258     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23259     esac
23260     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23261     ac_need_defaults=false;;
23262   --he | --h)
23263     # Conflict between --help and --header
23264     as_fn_error $? "ambiguous option: \`$1'
23265 Try \`$0 --help' for more information.";;
23266   --help | --hel | -h )
23267     $as_echo "$ac_cs_usage"; exit ;;
23268   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23269   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23270     ac_cs_silent=: ;;
23271
23272   # This is an error.
23273   -*) as_fn_error $? "unrecognized option: \`$1'
23274 Try \`$0 --help' for more information." ;;
23275
23276   *) as_fn_append ac_config_targets " $1"
23277      ac_need_defaults=false ;;
23278
23279   esac
23280   shift
23281 done
23282
23283 ac_configure_extra_args=
23284
23285 if $ac_cs_silent; then
23286   exec 6>/dev/null
23287   ac_configure_extra_args="$ac_configure_extra_args --silent"
23288 fi
23289
23290 _ACEOF
23291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23292 if \$ac_cs_recheck; then
23293   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23294   shift
23295   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23296   CONFIG_SHELL='$SHELL'
23297   export CONFIG_SHELL
23298   exec "\$@"
23299 fi
23300
23301 _ACEOF
23302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23303 exec 5>>config.log
23304 {
23305   echo
23306   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23307 ## Running $as_me. ##
23308 _ASBOX
23309   $as_echo "$ac_log"
23310 } >&5
23311
23312 _ACEOF
23313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23314 _ACEOF
23315
23316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23317
23318 # Handling of arguments.
23319 for ac_config_target in $ac_config_targets
23320 do
23321   case $ac_config_target in
23322     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23323     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23324     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23325     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23326     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23327     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23328     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23329     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23330     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23331     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23332     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23333     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23334     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23335     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23336     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23337     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23338     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23339     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23340     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23341
23342   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23343   esac
23344 done
23345
23346
23347 # If the user did not use the arguments to specify the items to instantiate,
23348 # then the envvar interface is used.  Set only those that are not.
23349 # We use the long form for the default assignment because of an extremely
23350 # bizarre bug on SunOS 4.1.3.
23351 if $ac_need_defaults; then
23352   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23353   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23354   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23355 fi
23356
23357 # Have a temporary directory for convenience.  Make it in the build tree
23358 # simply because there is no reason against having it here, and in addition,
23359 # creating and moving files from /tmp can sometimes cause problems.
23360 # Hook for its removal unless debugging.
23361 # Note that there is a small window in which the directory will not be cleaned:
23362 # after its creation but before its name has been assigned to `$tmp'.
23363 $debug ||
23364 {
23365   tmp= ac_tmp=
23366   trap 'exit_status=$?
23367   : "${ac_tmp:=$tmp}"
23368   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23369 ' 0
23370   trap 'as_fn_exit 1' 1 2 13 15
23371 }
23372 # Create a (secure) tmp directory for tmp files.
23373
23374 {
23375   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23376   test -d "$tmp"
23377 }  ||
23378 {
23379   tmp=./conf$$-$RANDOM
23380   (umask 077 && mkdir "$tmp")
23381 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23382 ac_tmp=$tmp
23383
23384 # Set up the scripts for CONFIG_FILES section.
23385 # No need to generate them if there are no CONFIG_FILES.
23386 # This happens for instance with `./config.status config.h'.
23387 if test -n "$CONFIG_FILES"; then
23388
23389
23390 ac_cr=`echo X | tr X '\015'`
23391 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23392 # But we know of no other shell where ac_cr would be empty at this
23393 # point, so we can use a bashism as a fallback.
23394 if test "x$ac_cr" = x; then
23395   eval ac_cr=\$\'\\r\'
23396 fi
23397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23399   ac_cs_awk_cr='\\r'
23400 else
23401   ac_cs_awk_cr=$ac_cr
23402 fi
23403
23404 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23405 _ACEOF
23406
23407
23408 {
23409   echo "cat >conf$$subs.awk <<_ACEOF" &&
23410   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23411   echo "_ACEOF"
23412 } >conf$$subs.sh ||
23413   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23415 ac_delim='%!_!# '
23416 for ac_last_try in false false false false false :; do
23417   . ./conf$$subs.sh ||
23418     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23419
23420   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23421   if test $ac_delim_n = $ac_delim_num; then
23422     break
23423   elif $ac_last_try; then
23424     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23425   else
23426     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23427   fi
23428 done
23429 rm -f conf$$subs.sh
23430
23431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23432 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23433 _ACEOF
23434 sed -n '
23435 h
23436 s/^/S["/; s/!.*/"]=/
23437 p
23438 g
23439 s/^[^!]*!//
23440 :repl
23441 t repl
23442 s/'"$ac_delim"'$//
23443 t delim
23444 :nl
23445 h
23446 s/\(.\{148\}\)..*/\1/
23447 t more1
23448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23449 p
23450 n
23451 b repl
23452 :more1
23453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23454 p
23455 g
23456 s/.\{148\}//
23457 t nl
23458 :delim
23459 h
23460 s/\(.\{148\}\)..*/\1/
23461 t more2
23462 s/["\\]/\\&/g; s/^/"/; s/$/"/
23463 p
23464 b
23465 :more2
23466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23467 p
23468 g
23469 s/.\{148\}//
23470 t delim
23471 ' <conf$$subs.awk | sed '
23472 /^[^""]/{
23473   N
23474   s/\n//
23475 }
23476 ' >>$CONFIG_STATUS || ac_write_fail=1
23477 rm -f conf$$subs.awk
23478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23479 _ACAWK
23480 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23481   for (key in S) S_is_set[key] = 1
23482   FS = "\a"
23483
23484 }
23485 {
23486   line = $ 0
23487   nfields = split(line, field, "@")
23488   substed = 0
23489   len = length(field[1])
23490   for (i = 2; i < nfields; i++) {
23491     key = field[i]
23492     keylen = length(key)
23493     if (S_is_set[key]) {
23494       value = S[key]
23495       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23496       len += length(value) + length(field[++i])
23497       substed = 1
23498     } else
23499       len += 1 + keylen
23500   }
23501
23502   print line
23503 }
23504
23505 _ACAWK
23506 _ACEOF
23507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23508 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23509   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23510 else
23511   cat
23512 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23513   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23514 _ACEOF
23515
23516 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23517 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23518 # trailing colons and then remove the whole line if VPATH becomes empty
23519 # (actually we leave an empty line to preserve line numbers).
23520 if test "x$srcdir" = x.; then
23521   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23522 h
23523 s///
23524 s/^/:/
23525 s/[      ]*$/:/
23526 s/:\$(srcdir):/:/g
23527 s/:\${srcdir}:/:/g
23528 s/:@srcdir@:/:/g
23529 s/^:*//
23530 s/:*$//
23531 x
23532 s/\(=[   ]*\).*/\1/
23533 G
23534 s/\n//
23535 s/^[^=]*=[       ]*$//
23536 }'
23537 fi
23538
23539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23540 fi # test -n "$CONFIG_FILES"
23541
23542 # Set up the scripts for CONFIG_HEADERS section.
23543 # No need to generate them if there are no CONFIG_HEADERS.
23544 # This happens for instance with `./config.status Makefile'.
23545 if test -n "$CONFIG_HEADERS"; then
23546 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23547 BEGIN {
23548 _ACEOF
23549
23550 # Transform confdefs.h into an awk script `defines.awk', embedded as
23551 # here-document in config.status, that substitutes the proper values into
23552 # config.h.in to produce config.h.
23553
23554 # Create a delimiter string that does not exist in confdefs.h, to ease
23555 # handling of long lines.
23556 ac_delim='%!_!# '
23557 for ac_last_try in false false :; do
23558   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23559   if test -z "$ac_tt"; then
23560     break
23561   elif $ac_last_try; then
23562     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23563   else
23564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23565   fi
23566 done
23567
23568 # For the awk script, D is an array of macro values keyed by name,
23569 # likewise P contains macro parameters if any.  Preserve backslash
23570 # newline sequences.
23571
23572 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23573 sed -n '
23574 s/.\{148\}/&'"$ac_delim"'/g
23575 t rset
23576 :rset
23577 s/^[     ]*#[    ]*define[       ][      ]*/ /
23578 t def
23579 d
23580 :def
23581 s/\\$//
23582 t bsnl
23583 s/["\\]/\\&/g
23584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23585 D["\1"]=" \3"/p
23586 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23587 d
23588 :bsnl
23589 s/["\\]/\\&/g
23590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23591 D["\1"]=" \3\\\\\\n"\\/p
23592 t cont
23593 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23594 t cont
23595 d
23596 :cont
23597 n
23598 s/.\{148\}/&'"$ac_delim"'/g
23599 t clear
23600 :clear
23601 s/\\$//
23602 t bsnlc
23603 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23604 d
23605 :bsnlc
23606 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23607 b cont
23608 ' <confdefs.h | sed '
23609 s/'"$ac_delim"'/"\\\
23610 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23611
23612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23613   for (key in D) D_is_set[key] = 1
23614   FS = "\a"
23615 }
23616 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23617   line = \$ 0
23618   split(line, arg, " ")
23619   if (arg[1] == "#") {
23620     defundef = arg[2]
23621     mac1 = arg[3]
23622   } else {
23623     defundef = substr(arg[1], 2)
23624     mac1 = arg[2]
23625   }
23626   split(mac1, mac2, "(") #)
23627   macro = mac2[1]
23628   prefix = substr(line, 1, index(line, defundef) - 1)
23629   if (D_is_set[macro]) {
23630     # Preserve the white space surrounding the "#".
23631     print prefix "define", macro P[macro] D[macro]
23632     next
23633   } else {
23634     # Replace #undef with comments.  This is necessary, for example,
23635     # in the case of _POSIX_SOURCE, which is predefined and required
23636     # on some systems where configure will not decide to define it.
23637     if (defundef == "undef") {
23638       print "/*", prefix defundef, macro, "*/"
23639       next
23640     }
23641   }
23642 }
23643 { print }
23644 _ACAWK
23645 _ACEOF
23646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23647   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23648 fi # test -n "$CONFIG_HEADERS"
23649
23650
23651 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23652 shift
23653 for ac_tag
23654 do
23655   case $ac_tag in
23656   :[FHLC]) ac_mode=$ac_tag; continue;;
23657   esac
23658   case $ac_mode$ac_tag in
23659   :[FHL]*:*);;
23660   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23661   :[FH]-) ac_tag=-:-;;
23662   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23663   esac
23664   ac_save_IFS=$IFS
23665   IFS=:
23666   set x $ac_tag
23667   IFS=$ac_save_IFS
23668   shift
23669   ac_file=$1
23670   shift
23671
23672   case $ac_mode in
23673   :L) ac_source=$1;;
23674   :[FH])
23675     ac_file_inputs=
23676     for ac_f
23677     do
23678       case $ac_f in
23679       -) ac_f="$ac_tmp/stdin";;
23680       *) # Look for the file first in the build tree, then in the source tree
23681          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23682          # because $ac_f cannot contain `:'.
23683          test -f "$ac_f" ||
23684            case $ac_f in
23685            [\\/$]*) false;;
23686            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23687            esac ||
23688            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23689       esac
23690       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23691       as_fn_append ac_file_inputs " '$ac_f'"
23692     done
23693
23694     # Let's still pretend it is `configure' which instantiates (i.e., don't
23695     # use $as_me), people would be surprised to read:
23696     #    /* config.h.  Generated by config.status.  */
23697     configure_input='Generated from '`
23698           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23699         `' by configure.'
23700     if test x"$ac_file" != x-; then
23701       configure_input="$ac_file.  $configure_input"
23702       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23703 $as_echo "$as_me: creating $ac_file" >&6;}
23704     fi
23705     # Neutralize special characters interpreted by sed in replacement strings.
23706     case $configure_input in #(
23707     *\&* | *\|* | *\\* )
23708        ac_sed_conf_input=`$as_echo "$configure_input" |
23709        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23710     *) ac_sed_conf_input=$configure_input;;
23711     esac
23712
23713     case $ac_tag in
23714     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23715       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23716     esac
23717     ;;
23718   esac
23719
23720   ac_dir=`$as_dirname -- "$ac_file" ||
23721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23722          X"$ac_file" : 'X\(//\)[^/]' \| \
23723          X"$ac_file" : 'X\(//\)$' \| \
23724          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23725 $as_echo X"$ac_file" |
23726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23727             s//\1/
23728             q
23729           }
23730           /^X\(\/\/\)[^/].*/{
23731             s//\1/
23732             q
23733           }
23734           /^X\(\/\/\)$/{
23735             s//\1/
23736             q
23737           }
23738           /^X\(\/\).*/{
23739             s//\1/
23740             q
23741           }
23742           s/.*/./; q'`
23743   as_dir="$ac_dir"; as_fn_mkdir_p
23744   ac_builddir=.
23745
23746 case "$ac_dir" in
23747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23748 *)
23749   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23750   # A ".." for each directory in $ac_dir_suffix.
23751   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23752   case $ac_top_builddir_sub in
23753   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23754   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23755   esac ;;
23756 esac
23757 ac_abs_top_builddir=$ac_pwd
23758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23759 # for backward compatibility:
23760 ac_top_builddir=$ac_top_build_prefix
23761
23762 case $srcdir in
23763   .)  # We are building in place.
23764     ac_srcdir=.
23765     ac_top_srcdir=$ac_top_builddir_sub
23766     ac_abs_top_srcdir=$ac_pwd ;;
23767   [\\/]* | ?:[\\/]* )  # Absolute name.
23768     ac_srcdir=$srcdir$ac_dir_suffix;
23769     ac_top_srcdir=$srcdir
23770     ac_abs_top_srcdir=$srcdir ;;
23771   *) # Relative name.
23772     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23773     ac_top_srcdir=$ac_top_build_prefix$srcdir
23774     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23775 esac
23776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23777
23778
23779   case $ac_mode in
23780   :F)
23781   #
23782   # CONFIG_FILE
23783   #
23784
23785 _ACEOF
23786
23787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23788 # If the template does not know about datarootdir, expand it.
23789 # FIXME: This hack should be removed a few years after 2.60.
23790 ac_datarootdir_hack=; ac_datarootdir_seen=
23791 ac_sed_dataroot='
23792 /datarootdir/ {
23793   p
23794   q
23795 }
23796 /@datadir@/p
23797 /@docdir@/p
23798 /@infodir@/p
23799 /@localedir@/p
23800 /@mandir@/p'
23801 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23802 *datarootdir*) ac_datarootdir_seen=yes;;
23803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23804   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23805 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23806 _ACEOF
23807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23808   ac_datarootdir_hack='
23809   s&@datadir@&$datadir&g
23810   s&@docdir@&$docdir&g
23811   s&@infodir@&$infodir&g
23812   s&@localedir@&$localedir&g
23813   s&@mandir@&$mandir&g
23814   s&\\\${datarootdir}&$datarootdir&g' ;;
23815 esac
23816 _ACEOF
23817
23818 # Neutralize VPATH when `$srcdir' = `.'.
23819 # Shell code in configure.ac might set extrasub.
23820 # FIXME: do we really want to maintain this feature?
23821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23822 ac_sed_extra="$ac_vpsub
23823 $extrasub
23824 _ACEOF
23825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23826 :t
23827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23828 s|@configure_input@|$ac_sed_conf_input|;t t
23829 s&@top_builddir@&$ac_top_builddir_sub&;t t
23830 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23831 s&@srcdir@&$ac_srcdir&;t t
23832 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23833 s&@top_srcdir@&$ac_top_srcdir&;t t
23834 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23835 s&@builddir@&$ac_builddir&;t t
23836 s&@abs_builddir@&$ac_abs_builddir&;t t
23837 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23838 $ac_datarootdir_hack
23839 "
23840 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23841   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23842
23843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23844   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23845   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23846       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23847   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23848 which seems to be undefined.  Please make sure it is defined" >&5
23849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23850 which seems to be undefined.  Please make sure it is defined" >&2;}
23851
23852   rm -f "$ac_tmp/stdin"
23853   case $ac_file in
23854   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23855   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23856   esac \
23857   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23858  ;;
23859   :H)
23860   #
23861   # CONFIG_HEADER
23862   #
23863   if test x"$ac_file" != x-; then
23864     {
23865       $as_echo "/* $configure_input  */" \
23866       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23867     } >"$ac_tmp/config.h" \
23868       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23869     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23870       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23871 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23872     else
23873       rm -f "$ac_file"
23874       mv "$ac_tmp/config.h" "$ac_file" \
23875         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23876     fi
23877   else
23878     $as_echo "/* $configure_input  */" \
23879       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23880       || as_fn_error $? "could not create -" "$LINENO" 5
23881   fi
23882  ;;
23883
23884   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23885 $as_echo "$as_me: executing $ac_file commands" >&6;}
23886  ;;
23887   esac
23888
23889
23890   case $ac_file$ac_mode in
23891     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
23892     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
23893     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
23894     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
23895
23896   esac
23897 done # for ac_tag
23898
23899
23900 as_fn_exit 0
23901 _ACEOF
23902 ac_clean_files=$ac_clean_files_save
23903
23904 test $ac_write_fail = 0 ||
23905   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23906
23907
23908 # configure is writing to config.log, and then calls config.status.
23909 # config.status does its own redirection, appending to config.log.
23910 # Unfortunately, on DOS this fails, as config.log is still kept open
23911 # by configure, so config.status won't be able to write to it; its
23912 # output is simply discarded.  So we exec the FD to /dev/null,
23913 # effectively closing config.log, so it can be properly (re)opened and
23914 # appended to by config.status.  When coming back to configure, we
23915 # need to make the FD available again.
23916 if test "$no_create" != yes; then
23917   ac_cs_success=:
23918   ac_config_status_args=
23919   test "$silent" = yes &&
23920     ac_config_status_args="$ac_config_status_args --quiet"
23921   exec 5>/dev/null
23922   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23923   exec 5>>config.log
23924   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23925   # would make configure fail if this is the last instruction.
23926   $ac_cs_success || as_fn_exit 1
23927 fi
23928
23929 #
23930 # CONFIG_SUBDIRS section.
23931 #
23932 if test "$no_recursion" != yes; then
23933
23934   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23935   # so they do not pile up.
23936   ac_sub_configure_args=
23937   ac_prev=
23938   eval "set x $ac_configure_args"
23939   shift
23940   for ac_arg
23941   do
23942     if test -n "$ac_prev"; then
23943       ac_prev=
23944       continue
23945     fi
23946     case $ac_arg in
23947     -cache-file | --cache-file | --cache-fil | --cache-fi \
23948     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23949       ac_prev=cache_file ;;
23950     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23951     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23952     | --c=*)
23953       ;;
23954     --config-cache | -C)
23955       ;;
23956     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23957       ac_prev=srcdir ;;
23958     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23959       ;;
23960     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23961       ac_prev=prefix ;;
23962     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23963       ;;
23964     --disable-option-checking)
23965       ;;
23966     *)
23967       case $ac_arg in
23968       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23969       esac
23970       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23971     esac
23972   done
23973
23974   # Always prepend --prefix to ensure using the same prefix
23975   # in subdir configurations.
23976   ac_arg="--prefix=$prefix"
23977   case $ac_arg in
23978   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23979   esac
23980   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23981
23982   # Pass --silent
23983   if test "$silent" = yes; then
23984     ac_sub_configure_args="--silent $ac_sub_configure_args"
23985   fi
23986
23987   # Always prepend --disable-option-checking to silence warnings, since
23988   # different subdirs can have different --enable and --with options.
23989   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23990
23991   ac_popdir=`pwd`
23992   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23993
23994     # Do not complain, so a configure script can configure whichever
23995     # parts of a large source tree are present.
23996     test -d "$srcdir/$ac_dir" || continue
23997
23998     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23999     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24000     $as_echo "$ac_msg" >&6
24001     as_dir="$ac_dir"; as_fn_mkdir_p
24002     ac_builddir=.
24003
24004 case "$ac_dir" in
24005 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24006 *)
24007   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24008   # A ".." for each directory in $ac_dir_suffix.
24009   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24010   case $ac_top_builddir_sub in
24011   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24012   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24013   esac ;;
24014 esac
24015 ac_abs_top_builddir=$ac_pwd
24016 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24017 # for backward compatibility:
24018 ac_top_builddir=$ac_top_build_prefix
24019
24020 case $srcdir in
24021   .)  # We are building in place.
24022     ac_srcdir=.
24023     ac_top_srcdir=$ac_top_builddir_sub
24024     ac_abs_top_srcdir=$ac_pwd ;;
24025   [\\/]* | ?:[\\/]* )  # Absolute name.
24026     ac_srcdir=$srcdir$ac_dir_suffix;
24027     ac_top_srcdir=$srcdir
24028     ac_abs_top_srcdir=$srcdir ;;
24029   *) # Relative name.
24030     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24031     ac_top_srcdir=$ac_top_build_prefix$srcdir
24032     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24033 esac
24034 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24035
24036
24037     cd "$ac_dir"
24038
24039     # Check for guested configure; otherwise get Cygnus style configure.
24040     if test -f "$ac_srcdir/configure.gnu"; then
24041       ac_sub_configure=$ac_srcdir/configure.gnu
24042     elif test -f "$ac_srcdir/configure"; then
24043       ac_sub_configure=$ac_srcdir/configure
24044     elif test -f "$ac_srcdir/configure.in"; then
24045       # This should be Cygnus configure.
24046       ac_sub_configure=$ac_aux_dir/configure
24047     else
24048       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24049 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24050       ac_sub_configure=
24051     fi
24052
24053     # The recursion is here.
24054     if test -n "$ac_sub_configure"; then
24055       # Make the cache file name correct relative to the subdirectory.
24056       case $cache_file in
24057       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24058       *) # Relative name.
24059         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24060       esac
24061
24062       { $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
24063 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24064       # The eval makes quoting arguments work.
24065       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24066            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24067         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24068     fi
24069
24070     cd "$ac_popdir"
24071   done
24072 fi
24073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24074   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24076 fi
24077
24078