Note recent changes
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 case X$ECHO in
562 X*--fallback-echo)
563   # Remove one level of quotation (which was required for Make).
564   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565   ;;
566 esac
567
568 echo=${ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570   # Discard the --no-reexec flag, and continue.
571   shift
572 elif test "X$1" = X--fallback-echo; then
573   # Avoid inline document here, it may be left over
574   :
575 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
576   # Yippee, $echo works!
577   :
578 else
579   # Restart under the correct shell.
580   exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584   # used as fallback echo
585   shift
586   cat <<EOF
587 $*
588 EOF
589   exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
602        echo_test_string=`eval $cmd` &&
603        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
604     then
605       break
606     fi
607   done
608 fi
609
610 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
611    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
612    test "X$echo_testing_string" = "X$echo_test_string"; then
613   :
614 else
615   # The Solaris, AIX, and Digital Unix default echo programs unquote
616   # backslashes.  This makes it impossible to quote backslashes using
617   #   echo "$something" | sed 's/\\/\\\\/g'
618   #
619   # So, first we look for a working echo in the user's PATH.
620
621   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
622   for dir in $PATH /usr/ucb; do
623     IFS="$lt_save_ifs"
624     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
625        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
626        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
627        test "X$echo_testing_string" = "X$echo_test_string"; then
628       echo="$dir/echo"
629       break
630     fi
631   done
632   IFS="$lt_save_ifs"
633
634   if test "X$echo" = Xecho; then
635     # We didn't find a better echo, so look for alternatives.
636     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
637        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
638        test "X$echo_testing_string" = "X$echo_test_string"; then
639       # This shell has a builtin print -r that does the trick.
640       echo='print -r'
641     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
642          test "X$CONFIG_SHELL" != X/bin/ksh; then
643       # If we have ksh, try running configure again with it.
644       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
645       export ORIGINAL_CONFIG_SHELL
646       CONFIG_SHELL=/bin/ksh
647       export CONFIG_SHELL
648       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649     else
650       # Try using printf.
651       echo='printf %s\n'
652       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # Cool, printf works
656         :
657       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658            test "X$echo_testing_string" = 'X\t' &&
659            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660            test "X$echo_testing_string" = "X$echo_test_string"; then
661         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662         export CONFIG_SHELL
663         SHELL="$CONFIG_SHELL"
664         export SHELL
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
667            test "X$echo_testing_string" = 'X\t' &&
668            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
669            test "X$echo_testing_string" = "X$echo_test_string"; then
670         echo="$CONFIG_SHELL $0 --fallback-echo"
671       else
672         # maybe with a smaller string...
673         prev=:
674
675         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
676           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
677           then
678             break
679           fi
680           prev="$cmd"
681         done
682
683         if test "$prev" != 'sed 50q "$0"'; then
684           echo_test_string=`eval $prev`
685           export echo_test_string
686           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687         else
688           # Oops.  We lost completely, so just stick with echo.
689           echo=echo
690         fi
691       fi
692     fi
693   fi
694 fi
695 fi
696
697 # Copy echo and quote the copy suitably for passing to libtool from
698 # the Makefile, instead of quoting the original, which is used later.
699 ECHO=$echo
700 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
701    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 fi
703
704
705
706
707 tagnames=${tagnames+${tagnames},}CXX
708
709 tagnames=${tagnames+${tagnames},}F77
710
711 test -n "$DJDIR" || exec 7<&0 </dev/null
712 exec 6>&1
713
714 # Name of the host.
715 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
719 #
720 # Initializations.
721 #
722 ac_default_prefix=/usr/local
723 ac_clean_files=
724 ac_config_libobj_dir=.
725 LIBOBJS=
726 cross_compiling=no
727 subdirs=
728 MFLAGS=
729 MAKEFLAGS=
730
731 # Identity of this package.
732 PACKAGE_NAME=
733 PACKAGE_TARNAME=
734 PACKAGE_VERSION=
735 PACKAGE_STRING=
736 PACKAGE_BUGREPORT=
737 PACKAGE_URL=
738
739 ac_unique_file="src/main/radiusd.c"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
742 #include <stdio.h>
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
745 #endif
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
748 #endif
749 #ifdef STDC_HEADERS
750 # include <stdlib.h>
751 # include <stddef.h>
752 #else
753 # ifdef HAVE_STDLIB_H
754 #  include <stdlib.h>
755 # endif
756 #endif
757 #ifdef HAVE_STRING_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #  include <memory.h>
760 # endif
761 # include <string.h>
762 #endif
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
765 #endif
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
768 #endif
769 #ifdef HAVE_STDINT_H
770 # include <stdint.h>
771 #endif
772 #ifdef HAVE_UNISTD_H
773 # include <unistd.h>
774 #endif"
775
776 enable_option_checking=no
777 ac_subst_vars='LTLIBOBJS
778 LIBOBJS
779 RADIUSD_VERSION_COMMIT
780 RADIUSD_VERSION_STRING
781 RADIUSD_VERSION
782 RADIUSD_INCRM_VERSION
783 RADIUSD_MINOR_VERSION
784 RADIUSD_MAJOR_VERSION
785 STATIC_MODULES
786 USE_STATIC_LIBS
787 USE_SHARED_LIBS
788 INSTALLSTRIP
789 MODULES
790 subdirs
791 INCLTDL
792 LIBLTDL
793 HOSTINFO
794 CRYPTLIB
795 LIBPREFIX
796 PCAP_LIBS
797 OPENSSL_LIBS
798 OPENSSL_INCLUDE
799 REGEX_EXTENDED
800 REGEX
801 LIBREADLINE
802 DIRNAME
803 LOCATE
804 AUTOHEADER
805 AUTOCONF
806 ACLOCAL
807 RUSERS
808 SNMPWALK
809 SNMPGET
810 PERL
811 raddbdir
812 radacctdir
813 logdir
814 ac_ct_F77
815 FFLAGS
816 F77
817 CXXCPP
818 NMEDIT
819 DSYMUTIL
820 STRIP
821 AR
822 ECHO
823 LN_S
824 SED
825 host_os
826 host_vendor
827 host_cpu
828 host
829 build_os
830 build_vendor
831 build_cpu
832 build
833 LIBTOOL
834 LTDL_SUBDIRS
835 GIT
836 MAKE
837 GMAKE
838 RANLIB
839 EGREP
840 GREP
841 CPP
842 ac_ct_CXX
843 CXXFLAGS
844 CXX
845 OBJEXT
846 EXEEXT
847 ac_ct_CC
848 CPPFLAGS
849 LDFLAGS
850 CFLAGS
851 CC
852 target_alias
853 host_alias
854 build_alias
855 LIBS
856 ECHO_T
857 ECHO_N
858 ECHO_C
859 DEFS
860 mandir
861 localedir
862 libdir
863 psdir
864 pdfdir
865 dvidir
866 htmldir
867 infodir
868 docdir
869 oldincludedir
870 includedir
871 localstatedir
872 sharedstatedir
873 sysconfdir
874 datadir
875 datarootdir
876 libexecdir
877 sbindir
878 bindir
879 program_transform_name
880 prefix
881 exec_prefix
882 PACKAGE_URL
883 PACKAGE_BUGREPORT
884 PACKAGE_STRING
885 PACKAGE_VERSION
886 PACKAGE_TARNAME
887 PACKAGE_NAME
888 PATH_SEPARATOR
889 SHELL'
890 ac_subst_files=''
891 ac_user_opts='
892 enable_option_checking
893 enable_largefile
894 with_system_libltdl
895 with_system_libtool
896 enable_shared
897 enable_static
898 enable_fast_install
899 with_gnu_ld
900 enable_libtool_lock
901 with_pic
902 with_tags
903 enable_strict_dependencies
904 with_docdir
905 with_logdir
906 with_radacctdir
907 with_raddbdir
908 with_ascend_binary
909 with_threads
910 with_vmps
911 with_dhcp
912 with_post_proxy_authorize
913 with_static_modules
914 with_modules
915 enable_developer
916 with_experimental_modules
917 with_openssl
918 with_openssl_includes
919 with_openssl_libraries
920 with_rlm_FOO_lib_dir
921 with_rlm_FOO_include_dir
922 with_udpfromto
923 '
924       ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CXX
933 CXXFLAGS
934 CCC
935 CPP
936 CXXCPP
937 F77
938 FFLAGS'
939 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *=)   ac_optarg= ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       as_fn_error $? "invalid feature name: $ac_useropt"
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       as_fn_error $? "invalid feature name: $ac_useropt"
1075     ac_useropt_orig=$ac_useropt
1076     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077     case $ac_user_opts in
1078       *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082          ac_unrecognized_sep=', ';;
1083     esac
1084     eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088   | --exec | --exe | --ex)
1089     ac_prev=exec_prefix ;;
1090   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092   | --exec=* | --exe=* | --ex=*)
1093     exec_prefix=$ac_optarg ;;
1094
1095   -gas | --gas | --ga | --g)
1096     # Obsolete; use --with-gas.
1097     with_gas=yes ;;
1098
1099   -help | --help | --hel | --he | -h)
1100     ac_init_help=long ;;
1101   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102     ac_init_help=recursive ;;
1103   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104     ac_init_help=short ;;
1105
1106   -host | --host | --hos | --ho)
1107     ac_prev=host_alias ;;
1108   -host=* | --host=* | --hos=* | --ho=*)
1109     host_alias=$ac_optarg ;;
1110
1111   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112     ac_prev=htmldir ;;
1113   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114   | --ht=*)
1115     htmldir=$ac_optarg ;;
1116
1117   -includedir | --includedir | --includedi | --included | --include \
1118   | --includ | --inclu | --incl | --inc)
1119     ac_prev=includedir ;;
1120   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121   | --includ=* | --inclu=* | --incl=* | --inc=*)
1122     includedir=$ac_optarg ;;
1123
1124   -infodir | --infodir | --infodi | --infod | --info | --inf)
1125     ac_prev=infodir ;;
1126   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127     infodir=$ac_optarg ;;
1128
1129   -libdir | --libdir | --libdi | --libd)
1130     ac_prev=libdir ;;
1131   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132     libdir=$ac_optarg ;;
1133
1134   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135   | --libexe | --libex | --libe)
1136     ac_prev=libexecdir ;;
1137   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138   | --libexe=* | --libex=* | --libe=*)
1139     libexecdir=$ac_optarg ;;
1140
1141   -localedir | --localedir | --localedi | --localed | --locale)
1142     ac_prev=localedir ;;
1143   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144     localedir=$ac_optarg ;;
1145
1146   -localstatedir | --localstatedir | --localstatedi | --localstated \
1147   | --localstate | --localstat | --localsta | --localst | --locals)
1148     ac_prev=localstatedir ;;
1149   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151     localstatedir=$ac_optarg ;;
1152
1153   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154     ac_prev=mandir ;;
1155   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156     mandir=$ac_optarg ;;
1157
1158   -nfp | --nfp | --nf)
1159     # Obsolete; use --without-fp.
1160     with_fp=no ;;
1161
1162   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163   | --no-cr | --no-c | -n)
1164     no_create=yes ;;
1165
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     no_recursion=yes ;;
1169
1170   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172   | --oldin | --oldi | --old | --ol | --o)
1173     ac_prev=oldincludedir ;;
1174   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177     oldincludedir=$ac_optarg ;;
1178
1179   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180     ac_prev=prefix ;;
1181   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182     prefix=$ac_optarg ;;
1183
1184   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185   | --program-pre | --program-pr | --program-p)
1186     ac_prev=program_prefix ;;
1187   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189     program_prefix=$ac_optarg ;;
1190
1191   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192   | --program-suf | --program-su | --program-s)
1193     ac_prev=program_suffix ;;
1194   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196     program_suffix=$ac_optarg ;;
1197
1198   -program-transform-name | --program-transform-name \
1199   | --program-transform-nam | --program-transform-na \
1200   | --program-transform-n | --program-transform- \
1201   | --program-transform | --program-transfor \
1202   | --program-transfo | --program-transf \
1203   | --program-trans | --program-tran \
1204   | --progr-tra | --program-tr | --program-t)
1205     ac_prev=program_transform_name ;;
1206   -program-transform-name=* | --program-transform-name=* \
1207   | --program-transform-nam=* | --program-transform-na=* \
1208   | --program-transform-n=* | --program-transform-=* \
1209   | --program-transform=* | --program-transfor=* \
1210   | --program-transfo=* | --program-transf=* \
1211   | --program-trans=* | --program-tran=* \
1212   | --progr-tra=* | --program-tr=* | --program-t=*)
1213     program_transform_name=$ac_optarg ;;
1214
1215   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216     ac_prev=pdfdir ;;
1217   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218     pdfdir=$ac_optarg ;;
1219
1220   -psdir | --psdir | --psdi | --psd | --ps)
1221     ac_prev=psdir ;;
1222   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223     psdir=$ac_optarg ;;
1224
1225   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226   | -silent | --silent | --silen | --sile | --sil)
1227     silent=yes ;;
1228
1229   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230     ac_prev=sbindir ;;
1231   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232   | --sbi=* | --sb=*)
1233     sbindir=$ac_optarg ;;
1234
1235   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237   | --sharedst | --shareds | --shared | --share | --shar \
1238   | --sha | --sh)
1239     ac_prev=sharedstatedir ;;
1240   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243   | --sha=* | --sh=*)
1244     sharedstatedir=$ac_optarg ;;
1245
1246   -site | --site | --sit)
1247     ac_prev=site ;;
1248   -site=* | --site=* | --sit=*)
1249     site=$ac_optarg ;;
1250
1251   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252     ac_prev=srcdir ;;
1253   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254     srcdir=$ac_optarg ;;
1255
1256   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257   | --syscon | --sysco | --sysc | --sys | --sy)
1258     ac_prev=sysconfdir ;;
1259   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261     sysconfdir=$ac_optarg ;;
1262
1263   -target | --target | --targe | --targ | --tar | --ta | --t)
1264     ac_prev=target_alias ;;
1265   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266     target_alias=$ac_optarg ;;
1267
1268   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269     verbose=yes ;;
1270
1271   -version | --version | --versio | --versi | --vers | -V)
1272     ac_init_version=: ;;
1273
1274   -with-* | --with-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error $? "invalid package name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294       as_fn_error $? "invalid package name: $ac_useropt"
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information"
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     case $ac_envvar in #(
1332       '' | [0-9]* | *[!_$as_cr_alnum]* )
1333       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1334     esac
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   as_fn_error $? "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355   case $enable_option_checking in
1356     no) ;;
1357     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1358     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359   esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   # Remove trailing slashes.
1370   case $ac_val in
1371     */ )
1372       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373       eval $ac_var=\$ac_val;;
1374   esac
1375   # Be sure to have absolute directory names.
1376   case $ac_val in
1377     [\\/$]* | ?:[\\/]* )  continue;;
1378     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379   esac
1380   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392   if test "x$build_alias" = x; then
1393     cross_compiling=maybe
1394   elif test "x$build_alias" != "x$host_alias"; then
1395     cross_compiling=yes
1396   fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408   as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410   as_fn_error $? "pwd does not report name of working directory"
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415   ac_srcdir_defaulted=yes
1416   # Try the directory containing this script, then the parent directory.
1417   ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419          X"$as_myself" : 'X\(//\)[^/]' \| \
1420          X"$as_myself" : 'X\(//\)$' \| \
1421          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)[^/].*/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)$/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\).*/{
1436             s//\1/
1437             q
1438           }
1439           s/.*/./; q'`
1440   srcdir=$ac_confdir
1441   if test ! -r "$srcdir/$ac_unique_file"; then
1442     srcdir=..
1443   fi
1444 else
1445   ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1450 fi
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1454         pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457   srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_env_${ac_var}_value=\$${ac_var}
1468   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476   # Omit some internal or obsolete options to make the list less imposing.
1477   # This message is too long to be a string in the A/UX 3.1 sh.
1478   cat <<_ACEOF
1479 \`configure' configures this package to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489   -h, --help              display this help and exit
1490       --help=short        display options specific to this package
1491       --help=recursive    display the short help of all the included packages
1492   -V, --version           display version information and exit
1493   -q, --quiet, --silent   do not print \`checking ...' messages
1494       --cache-file=FILE   cache test results in FILE [disabled]
1495   -C, --config-cache      alias for \`--cache-file=config.cache'
1496   -n, --no-create         do not create output files
1497       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500   --prefix=PREFIX         install architecture-independent files in PREFIX
1501                           [$ac_default_prefix]
1502   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503                           [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513   --bindir=DIR            user executables [EPREFIX/bin]
1514   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1515   --libexecdir=DIR        program executables [EPREFIX/libexec]
1516   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1517   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1518   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1519   --libdir=DIR            object code libraries [EPREFIX/lib]
1520   --includedir=DIR        C header files [PREFIX/include]
1521   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1522   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1523   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1524   --infodir=DIR           info documentation [DATAROOTDIR/info]
1525   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1526   --mandir=DIR            man documentation [DATAROOTDIR/man]
1527   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1528   --htmldir=DIR           html documentation [DOCDIR]
1529   --dvidir=DIR            dvi documentation [DOCDIR]
1530   --pdfdir=DIR            pdf documentation [DOCDIR]
1531   --psdir=DIR             ps documentation [DOCDIR]
1532 _ACEOF
1533
1534   cat <<\_ACEOF
1535
1536 System types:
1537   --build=BUILD     configure for building on BUILD [guessed]
1538   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1539 _ACEOF
1540 fi
1541
1542 if test -n "$ac_init_help"; then
1543
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-option-checking  ignore unrecognized --enable/--with options
1548   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1549   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1550   --disable-largefile     omit support for large files
1551   --enable-shared[=PKGS]  build shared libraries [default=yes]
1552   --enable-static[=PKGS]  build static libraries [default=yes]
1553   --enable-fast-install[=PKGS]
1554                           optimize for fast installation [default=yes]
1555   --disable-libtool-lock  avoid locking (might break parallel builds)
1556   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1557   --enable-developer               Enables features of interest to developers.
1558
1559 Optional Packages:
1560   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1561   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1562   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1563   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1564   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565   --with-pic              try to use only PIC/non-PIC objects [default=use
1566                           both]
1567   --with-tags[=TAGS]      include additional configurations [automatic]
1568   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1569   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1570   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1571   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1572   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1573   --with-threads          Use threads, if available.  (default=yes)
1574   --with-vmps             Compile in VMPS support. (default=yes)
1575   --with-dhcp             Compile in DHCP support. (default=yes)
1576   --with-post-proxy-authorize  1.x compatibility  (default=no)
1577   --with-static-modules=QUOTED-MODULE-LIST
1578  --with-modules=QUOTED-MODULE-LIST
1579   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1580   --with-openssl                   Use OpenSSL. (default=yes)
1581   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1582   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1583   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1584   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1585   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1586
1587 Some influential environment variables:
1588   CC          C compiler command
1589   CFLAGS      C compiler flags
1590   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1591               nonstandard directory <lib dir>
1592   LIBS        libraries to pass to the linker, e.g. -l<library>
1593   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1594               you have headers in a nonstandard directory <include dir>
1595   CXX         C++ compiler command
1596   CXXFLAGS    C++ compiler flags
1597   CPP         C preprocessor
1598   CXXCPP      C++ preprocessor
1599   F77         Fortran 77 compiler command
1600   FFLAGS      Fortran 77 compiler flags
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to the package provider.
1606 _ACEOF
1607 ac_status=$?
1608 fi
1609
1610 if test "$ac_init_help" = "recursive"; then
1611   # If there are subdirs, report their specific --help.
1612   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613     test -d "$ac_dir" ||
1614       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615       continue
1616     ac_builddir=.
1617
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *)
1621   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622   # A ".." for each directory in $ac_dir_suffix.
1623   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624   case $ac_top_builddir_sub in
1625   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627   esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1633
1634 case $srcdir in
1635   .)  # We are building in place.
1636     ac_srcdir=.
1637     ac_top_srcdir=$ac_top_builddir_sub
1638     ac_abs_top_srcdir=$ac_pwd ;;
1639   [\\/]* | ?:[\\/]* )  # Absolute name.
1640     ac_srcdir=$srcdir$ac_dir_suffix;
1641     ac_top_srcdir=$srcdir
1642     ac_abs_top_srcdir=$srcdir ;;
1643   *) # Relative name.
1644     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645     ac_top_srcdir=$ac_top_build_prefix$srcdir
1646     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650     cd "$ac_dir" || { ac_status=$?; continue; }
1651     # Check for guested configure.
1652     if test -f "$ac_srcdir/configure.gnu"; then
1653       echo &&
1654       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655     elif test -f "$ac_srcdir/configure"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure" --help=recursive
1658     else
1659       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660     fi || ac_status=$?
1661     cd "$ac_pwd" || { ac_status=$?; break; }
1662   done
1663 fi
1664
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667   cat <<\_ACEOF
1668 configure
1669 generated by GNU Autoconf 2.69
1670
1671 Copyright (C) 2012 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675   exit
1676 fi
1677
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1681
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1686 {
1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688   rm -f conftest.$ac_objext
1689   if { { ac_try="$ac_compile"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_compile") 2>conftest.err
1697   ac_status=$?
1698   if test -s conftest.err; then
1699     grep -v '^ *+' conftest.err >conftest.er1
1700     cat conftest.er1 >&5
1701     mv -f conftest.er1 conftest.err
1702   fi
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; } && {
1705          test -z "$ac_c_werror_flag" ||
1706          test ! -s conftest.err
1707        } && test -s conftest.$ac_objext; then :
1708   ac_retval=0
1709 else
1710   $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713         ac_retval=1
1714 fi
1715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716   as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_compile
1719
1720 # ac_fn_cxx_try_compile LINENO
1721 # ----------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_cxx_try_compile ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   rm -f conftest.$ac_objext
1727   if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_compile") 2>conftest.err
1735   ac_status=$?
1736   if test -s conftest.err; then
1737     grep -v '^ *+' conftest.err >conftest.er1
1738     cat conftest.er1 >&5
1739     mv -f conftest.er1 conftest.err
1740   fi
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; } && {
1743          test -z "$ac_cxx_werror_flag" ||
1744          test ! -s conftest.err
1745        } && test -s conftest.$ac_objext; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751         ac_retval=1
1752 fi
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_cxx_try_compile
1757
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_cpp ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772   ac_status=$?
1773   if test -s conftest.err; then
1774     grep -v '^ *+' conftest.err >conftest.er1
1775     cat conftest.er1 >&5
1776     mv -f conftest.er1 conftest.err
1777   fi
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } > conftest.i && {
1780          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781          test ! -s conftest.err
1782        }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788     ac_retval=1
1789 fi
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_cpp
1794
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1799 # accordingly.
1800 ac_fn_c_check_header_mongrel ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   if eval \${$3+:} false; then :
1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807   $as_echo_n "(cached) " >&6
1808 fi
1809 eval ac_res=\$$3
1810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 else
1813   # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   ac_header_compiler=yes
1823 else
1824   ac_header_compiler=no
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1829
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838   ac_header_preproc=yes
1839 else
1840   ac_header_preproc=no
1841 fi
1842 rm -f conftest.err conftest.i conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1845
1846 # So?  What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848   yes:no: )
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853     ;;
1854   no:yes:* )
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865     ;;
1866 esac
1867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870   $as_echo_n "(cached) " >&6
1871 else
1872   eval "$3=\$ac_header_compiler"
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 fi
1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_header_mongrel
1881
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1886 ac_fn_c_try_run ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_link") 2>&5
1897   ac_status=$?
1898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1907   ac_status=$?
1908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909   test $ac_status = 0; }; }; then :
1910   ac_retval=0
1911 else
1912   $as_echo "$as_me: program exited with status $ac_status" >&5
1913        $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916        ac_retval=$ac_status
1917 fi
1918   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920   as_fn_set_status $ac_retval
1921
1922 } # ac_fn_c_try_run
1923
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934   $as_echo_n "(cached) " >&6
1935 else
1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 $4
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942   eval "$3=yes"
1943 else
1944   eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952
1953 } # ac_fn_c_check_header_compile
1954
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_c_try_link ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   rm -f conftest.$ac_objext conftest$ac_exeext
1962   if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965   *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969   (eval "$ac_link") 2>conftest.err
1970   ac_status=$?
1971   if test -s conftest.err; then
1972     grep -v '^ *+' conftest.err >conftest.er1
1973     cat conftest.er1 >&5
1974     mv -f conftest.er1 conftest.err
1975   fi
1976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977   test $ac_status = 0; } && {
1978          test -z "$ac_c_werror_flag" ||
1979          test ! -s conftest.err
1980        } && test -s conftest$ac_exeext && {
1981          test "$cross_compiling" = yes ||
1982          test -x conftest$ac_exeext
1983        }; then :
1984   ac_retval=0
1985 else
1986   $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989         ac_retval=1
1990 fi
1991   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993   # interfere with the next link command; also delete a directory that is
1994   # left behind by Apple's compiler.  We do this before executing the actions.
1995   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997   as_fn_set_status $ac_retval
1998
1999 } # ac_fn_c_try_link
2000
2001 # ac_fn_c_check_func LINENO FUNC VAR
2002 # ----------------------------------
2003 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2004 ac_fn_c_check_func ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010   $as_echo_n "(cached) " >&6
2011 else
2012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h.  */
2014 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2016 #define $2 innocuous_$2
2017
2018 /* System header to define __stub macros and hopefully few prototypes,
2019     which can conflict with char $2 (); below.
2020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021     <limits.h> exists even on freestanding compilers.  */
2022
2023 #ifdef __STDC__
2024 # include <limits.h>
2025 #else
2026 # include <assert.h>
2027 #endif
2028
2029 #undef $2
2030
2031 /* Override any GCC internal prototype to avoid an error.
2032    Use char because int might match the return type of a GCC
2033    builtin and then its argument prototype would still apply.  */
2034 #ifdef __cplusplus
2035 extern "C"
2036 #endif
2037 char $2 ();
2038 /* The GNU C library defines this for functions which it implements
2039     to always fail with ENOSYS.  Some functions are actually named
2040     something starting with __ and the normal name is an alias.  */
2041 #if defined __stub_$2 || defined __stub___$2
2042 choke me
2043 #endif
2044
2045 int
2046 main ()
2047 {
2048 return $2 ();
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_link "$LINENO"; then :
2054   eval "$3=yes"
2055 else
2056   eval "$3=no"
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext \
2059     conftest$ac_exeext conftest.$ac_ext
2060 fi
2061 eval ac_res=\$$3
2062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066 } # ac_fn_c_check_func
2067
2068 # ac_fn_cxx_try_cpp LINENO
2069 # ------------------------
2070 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2071 ac_fn_cxx_try_cpp ()
2072 {
2073   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074   if { { ac_try="$ac_cpp conftest.$ac_ext"
2075 case "(($ac_try" in
2076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077   *) ac_try_echo=$ac_try;;
2078 esac
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2082   ac_status=$?
2083   if test -s conftest.err; then
2084     grep -v '^ *+' conftest.err >conftest.er1
2085     cat conftest.er1 >&5
2086     mv -f conftest.er1 conftest.err
2087   fi
2088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089   test $ac_status = 0; } > conftest.i && {
2090          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2091          test ! -s conftest.err
2092        }; then :
2093   ac_retval=0
2094 else
2095   $as_echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098     ac_retval=1
2099 fi
2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101   as_fn_set_status $ac_retval
2102
2103 } # ac_fn_cxx_try_cpp
2104
2105 # ac_fn_cxx_try_link LINENO
2106 # -------------------------
2107 # Try to link conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_cxx_try_link ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   rm -f conftest.$ac_objext conftest$ac_exeext
2112   if { { ac_try="$ac_link"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119   (eval "$ac_link") 2>conftest.err
2120   ac_status=$?
2121   if test -s conftest.err; then
2122     grep -v '^ *+' conftest.err >conftest.er1
2123     cat conftest.er1 >&5
2124     mv -f conftest.er1 conftest.err
2125   fi
2126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127   test $ac_status = 0; } && {
2128          test -z "$ac_cxx_werror_flag" ||
2129          test ! -s conftest.err
2130        } && test -s conftest$ac_exeext && {
2131          test "$cross_compiling" = yes ||
2132          test -x conftest$ac_exeext
2133        }; then :
2134   ac_retval=0
2135 else
2136   $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2138
2139         ac_retval=1
2140 fi
2141   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2142   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2143   # interfere with the next link command; also delete a directory that is
2144   # left behind by Apple's compiler.  We do this before executing the actions.
2145   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2146   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147   as_fn_set_status $ac_retval
2148
2149 } # ac_fn_cxx_try_link
2150
2151 # ac_fn_f77_try_compile LINENO
2152 # ----------------------------
2153 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2154 ac_fn_f77_try_compile ()
2155 {
2156   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157   rm -f conftest.$ac_objext
2158   if { { ac_try="$ac_compile"
2159 case "(($ac_try" in
2160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161   *) ac_try_echo=$ac_try;;
2162 esac
2163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164 $as_echo "$ac_try_echo"; } >&5
2165   (eval "$ac_compile") 2>conftest.err
2166   ac_status=$?
2167   if test -s conftest.err; then
2168     grep -v '^ *+' conftest.err >conftest.er1
2169     cat conftest.er1 >&5
2170     mv -f conftest.er1 conftest.err
2171   fi
2172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2173   test $ac_status = 0; } && {
2174          test -z "$ac_f77_werror_flag" ||
2175          test ! -s conftest.err
2176        } && test -s conftest.$ac_objext; then :
2177   ac_retval=0
2178 else
2179   $as_echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2181
2182         ac_retval=1
2183 fi
2184   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185   as_fn_set_status $ac_retval
2186
2187 } # ac_fn_f77_try_compile
2188
2189 # ac_fn_f77_try_link LINENO
2190 # -------------------------
2191 # Try to link conftest.$ac_ext, and return whether this succeeded.
2192 ac_fn_f77_try_link ()
2193 {
2194   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195   rm -f conftest.$ac_objext conftest$ac_exeext
2196   if { { ac_try="$ac_link"
2197 case "(($ac_try" in
2198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199   *) ac_try_echo=$ac_try;;
2200 esac
2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202 $as_echo "$ac_try_echo"; } >&5
2203   (eval "$ac_link") 2>conftest.err
2204   ac_status=$?
2205   if test -s conftest.err; then
2206     grep -v '^ *+' conftest.err >conftest.er1
2207     cat conftest.er1 >&5
2208     mv -f conftest.er1 conftest.err
2209   fi
2210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211   test $ac_status = 0; } && {
2212          test -z "$ac_f77_werror_flag" ||
2213          test ! -s conftest.err
2214        } && test -s conftest$ac_exeext && {
2215          test "$cross_compiling" = yes ||
2216          test -x conftest$ac_exeext
2217        }; then :
2218   ac_retval=0
2219 else
2220   $as_echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223         ac_retval=1
2224 fi
2225   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2226   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2227   # interfere with the next link command; also delete a directory that is
2228   # left behind by Apple's compiler.  We do this before executing the actions.
2229   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2230   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231   as_fn_set_status $ac_retval
2232
2233 } # ac_fn_f77_try_link
2234
2235 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2236 # -------------------------------------------
2237 # Tests whether TYPE exists after having included INCLUDES, setting cache
2238 # variable VAR accordingly.
2239 ac_fn_c_check_type ()
2240 {
2241   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval \${$3+:} false; then :
2245   $as_echo_n "(cached) " >&6
2246 else
2247   eval "$3=no"
2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $4
2251 int
2252 main ()
2253 {
2254 if (sizeof ($2))
2255          return 0;
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h.  */
2263 $4
2264 int
2265 main ()
2266 {
2267 if (sizeof (($2)))
2268             return 0;
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_c_try_compile "$LINENO"; then :
2274
2275 else
2276   eval "$3=yes"
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 fi
2282 eval ac_res=\$$3
2283                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286
2287 } # ac_fn_c_check_type
2288
2289 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2290 # ---------------------------------------------
2291 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2292 # accordingly.
2293 ac_fn_c_check_decl ()
2294 {
2295   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296   as_decl_name=`echo $2|sed 's/ *(.*//'`
2297   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2299 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2300 if eval \${$3+:} false; then :
2301   $as_echo_n "(cached) " >&6
2302 else
2303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 $4
2306 int
2307 main ()
2308 {
2309 #ifndef $as_decl_name
2310 #ifdef __cplusplus
2311   (void) $as_decl_use;
2312 #else
2313   (void) $as_decl_name;
2314 #endif
2315 #endif
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322   eval "$3=yes"
2323 else
2324   eval "$3=no"
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 fi
2328 eval ac_res=\$$3
2329                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332
2333 } # ac_fn_c_check_decl
2334 cat >config.log <<_ACEOF
2335 This file contains any messages produced by compilers while
2336 running configure, to aid debugging if configure makes a mistake.
2337
2338 It was created by $as_me, which was
2339 generated by GNU Autoconf 2.69.  Invocation command line was
2340
2341   $ $0 $@
2342
2343 _ACEOF
2344 exec 5>>config.log
2345 {
2346 cat <<_ASUNAME
2347 ## --------- ##
2348 ## Platform. ##
2349 ## --------- ##
2350
2351 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2352 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2353 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2354 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2355 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2356
2357 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2358 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2359
2360 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2361 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2362 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2363 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2364 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2365 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2366 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2367
2368 _ASUNAME
2369
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375     $as_echo "PATH: $as_dir"
2376   done
2377 IFS=$as_save_IFS
2378
2379 } >&5
2380
2381 cat >&5 <<_ACEOF
2382
2383
2384 ## ----------- ##
2385 ## Core tests. ##
2386 ## ----------- ##
2387
2388 _ACEOF
2389
2390
2391 # Keep a trace of the command line.
2392 # Strip out --no-create and --no-recursion so they do not pile up.
2393 # Strip out --silent because we don't want to record it for future runs.
2394 # Also quote any args containing shell meta-characters.
2395 # Make two passes to allow for proper duplicate-argument suppression.
2396 ac_configure_args=
2397 ac_configure_args0=
2398 ac_configure_args1=
2399 ac_must_keep_next=false
2400 for ac_pass in 1 2
2401 do
2402   for ac_arg
2403   do
2404     case $ac_arg in
2405     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2406     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2407     | -silent | --silent | --silen | --sile | --sil)
2408       continue ;;
2409     *\'*)
2410       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2411     esac
2412     case $ac_pass in
2413     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2414     2)
2415       as_fn_append ac_configure_args1 " '$ac_arg'"
2416       if test $ac_must_keep_next = true; then
2417         ac_must_keep_next=false # Got value, back to normal.
2418       else
2419         case $ac_arg in
2420           *=* | --config-cache | -C | -disable-* | --disable-* \
2421           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2422           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2423           | -with-* | --with-* | -without-* | --without-* | --x)
2424             case "$ac_configure_args0 " in
2425               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2426             esac
2427             ;;
2428           -* ) ac_must_keep_next=true ;;
2429         esac
2430       fi
2431       as_fn_append ac_configure_args " '$ac_arg'"
2432       ;;
2433     esac
2434   done
2435 done
2436 { ac_configure_args0=; unset ac_configure_args0;}
2437 { ac_configure_args1=; unset ac_configure_args1;}
2438
2439 # When interrupted or exit'd, cleanup temporary files, and complete
2440 # config.log.  We remove comments because anyway the quotes in there
2441 # would cause problems or look ugly.
2442 # WARNING: Use '\'' to represent an apostrophe within the trap.
2443 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2444 trap 'exit_status=$?
2445   # Save into config.log some information that might help in debugging.
2446   {
2447     echo
2448
2449     $as_echo "## ---------------- ##
2450 ## Cache variables. ##
2451 ## ---------------- ##"
2452     echo
2453     # The following way of writing the cache mishandles newlines in values,
2454 (
2455   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2456     eval ac_val=\$$ac_var
2457     case $ac_val in #(
2458     *${as_nl}*)
2459       case $ac_var in #(
2460       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2462       esac
2463       case $ac_var in #(
2464       _ | IFS | as_nl) ;; #(
2465       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2466       *) { eval $ac_var=; unset $ac_var;} ;;
2467       esac ;;
2468     esac
2469   done
2470   (set) 2>&1 |
2471     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2472     *${as_nl}ac_space=\ *)
2473       sed -n \
2474         "s/'\''/'\''\\\\'\'''\''/g;
2475           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2476       ;; #(
2477     *)
2478       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2479       ;;
2480     esac |
2481     sort
2482 )
2483     echo
2484
2485     $as_echo "## ----------------- ##
2486 ## Output variables. ##
2487 ## ----------------- ##"
2488     echo
2489     for ac_var in $ac_subst_vars
2490     do
2491       eval ac_val=\$$ac_var
2492       case $ac_val in
2493       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494       esac
2495       $as_echo "$ac_var='\''$ac_val'\''"
2496     done | sort
2497     echo
2498
2499     if test -n "$ac_subst_files"; then
2500       $as_echo "## ------------------- ##
2501 ## File substitutions. ##
2502 ## ------------------- ##"
2503       echo
2504       for ac_var in $ac_subst_files
2505       do
2506         eval ac_val=\$$ac_var
2507         case $ac_val in
2508         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509         esac
2510         $as_echo "$ac_var='\''$ac_val'\''"
2511       done | sort
2512       echo
2513     fi
2514
2515     if test -s confdefs.h; then
2516       $as_echo "## ----------- ##
2517 ## confdefs.h. ##
2518 ## ----------- ##"
2519       echo
2520       cat confdefs.h
2521       echo
2522     fi
2523     test "$ac_signal" != 0 &&
2524       $as_echo "$as_me: caught signal $ac_signal"
2525     $as_echo "$as_me: exit $exit_status"
2526   } >&5
2527   rm -f core *.core core.conftest.* &&
2528     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2529     exit $exit_status
2530 ' 0
2531 for ac_signal in 1 2 13 15; do
2532   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2533 done
2534 ac_signal=0
2535
2536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2537 rm -f -r conftest* confdefs.h
2538
2539 $as_echo "/* confdefs.h */" > confdefs.h
2540
2541 # Predefined preprocessor variables.
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_NAME "$PACKAGE_NAME"
2545 _ACEOF
2546
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2549 _ACEOF
2550
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2553 _ACEOF
2554
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_STRING "$PACKAGE_STRING"
2557 _ACEOF
2558
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2561 _ACEOF
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_URL "$PACKAGE_URL"
2565 _ACEOF
2566
2567
2568 # Let the site file select an alternate cache file if it wants to.
2569 # Prefer an explicitly selected file to automatically selected ones.
2570 ac_site_file1=NONE
2571 ac_site_file2=NONE
2572 if test -n "$CONFIG_SITE"; then
2573   # We do not want a PATH search for config.site.
2574   case $CONFIG_SITE in #((
2575     -*)  ac_site_file1=./$CONFIG_SITE;;
2576     */*) ac_site_file1=$CONFIG_SITE;;
2577     *)   ac_site_file1=./$CONFIG_SITE;;
2578   esac
2579 elif test "x$prefix" != xNONE; then
2580   ac_site_file1=$prefix/share/config.site
2581   ac_site_file2=$prefix/etc/config.site
2582 else
2583   ac_site_file1=$ac_default_prefix/share/config.site
2584   ac_site_file2=$ac_default_prefix/etc/config.site
2585 fi
2586 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2587 do
2588   test "x$ac_site_file" = xNONE && continue
2589   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2590     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2591 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2592     sed 's/^/| /' "$ac_site_file" >&5
2593     . "$ac_site_file" \
2594       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 as_fn_error $? "failed to load site script $ac_site_file
2597 See \`config.log' for more details" "$LINENO" 5; }
2598   fi
2599 done
2600
2601 if test -r "$cache_file"; then
2602   # Some versions of bash will fail to source /dev/null (special files
2603   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2604   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2605     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2606 $as_echo "$as_me: loading cache $cache_file" >&6;}
2607     case $cache_file in
2608       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2609       *)                      . "./$cache_file";;
2610     esac
2611   fi
2612 else
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2614 $as_echo "$as_me: creating cache $cache_file" >&6;}
2615   >$cache_file
2616 fi
2617
2618 # Check that the precious variables saved in the cache have kept the same
2619 # value.
2620 ac_cache_corrupted=false
2621 for ac_var in $ac_precious_vars; do
2622   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2623   eval ac_new_set=\$ac_env_${ac_var}_set
2624   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2625   eval ac_new_val=\$ac_env_${ac_var}_value
2626   case $ac_old_set,$ac_new_set in
2627     set,)
2628       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2629 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2630       ac_cache_corrupted=: ;;
2631     ,set)
2632       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2633 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2634       ac_cache_corrupted=: ;;
2635     ,);;
2636     *)
2637       if test "x$ac_old_val" != "x$ac_new_val"; then
2638         # differences in whitespace do not lead to failure.
2639         ac_old_val_w=`echo x $ac_old_val`
2640         ac_new_val_w=`echo x $ac_new_val`
2641         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2642           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2643 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2644           ac_cache_corrupted=:
2645         else
2646           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2647 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2648           eval $ac_var=\$ac_old_val
2649         fi
2650         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2651 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2652         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2653 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2654       fi;;
2655   esac
2656   # Pass precious variables to config.status.
2657   if test "$ac_new_set" = set; then
2658     case $ac_new_val in
2659     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2660     *) ac_arg=$ac_var=$ac_new_val ;;
2661     esac
2662     case " $ac_configure_args " in
2663       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2664       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2665     esac
2666   fi
2667 done
2668 if $ac_cache_corrupted; then
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2672 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2673   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2674 fi
2675 ## -------------------- ##
2676 ## Main body of script. ##
2677 ## -------------------- ##
2678
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684
2685
2686 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2687
2688
2689
2690 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2691 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2692 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2693
2694 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2695 -v minor="$RADIUSD_MINOR_VERSION" \
2696 -v incrm="$RADIUSD_INCRM_VERSION" \
2697 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2698
2699 RADIUSD_VERSION_STRING=`cat VERSION`
2700 PACKAGE=freeradius
2701
2702
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_CC+:} false; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   if test -n "$CC"; then
2717   ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722   IFS=$as_save_IFS
2723   test -z "$as_dir" && as_dir=.
2724     for ac_exec_ext in '' $ac_executable_extensions; do
2725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728     break 2
2729   fi
2730 done
2731   done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2740 else
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746 fi
2747 if test -z "$ac_cv_prog_CC"; then
2748   ac_ct_CC=$CC
2749   # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   if test -n "$ac_ct_CC"; then
2757   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764     for ac_exec_ext in '' $ac_executable_extensions; do
2765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766     ac_cv_prog_ac_ct_CC="gcc"
2767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768     break 2
2769   fi
2770 done
2771   done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2779 $as_echo "$ac_ct_CC" >&6; }
2780 else
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785   if test "x$ac_ct_CC" = x; then
2786     CC=""
2787   else
2788     case $cross_compiling:$ac_tool_warned in
2789 yes:)
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792 ac_tool_warned=yes ;;
2793 esac
2794     CC=$ac_ct_CC
2795   fi
2796 else
2797   CC="$ac_cv_prog_CC"
2798 fi
2799
2800 if test -z "$CC"; then
2801           if test -n "$ac_tool_prefix"; then
2802     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2803 set dummy ${ac_tool_prefix}cc; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_CC+:} false; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   if test -n "$CC"; then
2810   ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817     for ac_exec_ext in '' $ac_executable_extensions; do
2818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819     ac_cv_prog_CC="${ac_tool_prefix}cc"
2820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824   done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832 $as_echo "$CC" >&6; }
2833 else
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839   fi
2840 fi
2841 if test -z "$CC"; then
2842   # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_CC+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$CC"; then
2850   ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852   ac_prog_rejected=no
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858     for ac_exec_ext in '' $ac_executable_extensions; do
2859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2861        ac_prog_rejected=yes
2862        continue
2863      fi
2864     ac_cv_prog_CC="cc"
2865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866     break 2
2867   fi
2868 done
2869   done
2870 IFS=$as_save_IFS
2871
2872 if test $ac_prog_rejected = yes; then
2873   # We found a bogon in the path, so make sure we never use it.
2874   set dummy $ac_cv_prog_CC
2875   shift
2876   if test $# != 0; then
2877     # We chose a different compiler from the bogus one.
2878     # However, it has the same basename, so the bogon will be chosen
2879     # first if we set CC to just the basename; use the full file name.
2880     shift
2881     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2882   fi
2883 fi
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 fi
2897 if test -z "$CC"; then
2898   if test -n "$ac_tool_prefix"; then
2899   for ac_prog in cl.exe
2900   do
2901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906   $as_echo_n "(cached) " >&6
2907 else
2908   if test -n "$CC"; then
2909   ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
2915   test -z "$as_dir" && as_dir=.
2916     for ac_exec_ext in '' $ac_executable_extensions; do
2917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920     break 2
2921   fi
2922 done
2923   done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938     test -n "$CC" && break
2939   done
2940 fi
2941 if test -z "$CC"; then
2942   ac_ct_CC=$CC
2943   for ac_prog in cl.exe
2944 do
2945   # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   if test -n "$ac_ct_CC"; then
2953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960     for ac_exec_ext in '' $ac_executable_extensions; do
2961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962     ac_cv_prog_ac_ct_CC="$ac_prog"
2963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964     break 2
2965   fi
2966 done
2967   done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973 if test -n "$ac_ct_CC"; then
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2975 $as_echo "$ac_ct_CC" >&6; }
2976 else
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982   test -n "$ac_ct_CC" && break
2983 done
2984
2985   if test "x$ac_ct_CC" = x; then
2986     CC=""
2987   else
2988     case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994     CC=$ac_ct_CC
2995   fi
2996 fi
2997
2998 fi
2999
3000
3001 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003 as_fn_error $? "no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details" "$LINENO" 5; }
3005
3006 # Provide some information about the compiler.
3007 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3008 set X $ac_compile
3009 ac_compiler=$2
3010 for ac_option in --version -v -V -qversion; do
3011   { { ac_try="$ac_compiler $ac_option >&5"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017 $as_echo "$ac_try_echo"; } >&5
3018   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3019   ac_status=$?
3020   if test -s conftest.err; then
3021     sed '10a\
3022 ... rest of stderr output deleted ...
3023          10q' conftest.err >conftest.er1
3024     cat conftest.er1 >&5
3025   fi
3026   rm -f conftest.er1 conftest.err
3027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028   test $ac_status = 0; }
3029 done
3030
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h.  */
3033
3034 int
3035 main ()
3036 {
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 ac_clean_files_save=$ac_clean_files
3043 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3044 # Try to create an executable without -o first, disregard a.out.
3045 # It will help us diagnose broken compilers, and finding out an intuition
3046 # of exeext.
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3048 $as_echo_n "checking whether the C compiler works... " >&6; }
3049 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3050
3051 # The possible output files:
3052 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3053
3054 ac_rmfiles=
3055 for ac_file in $ac_files
3056 do
3057   case $ac_file in
3058     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3060   esac
3061 done
3062 rm -f $ac_rmfiles
3063
3064 if { { ac_try="$ac_link_default"
3065 case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071   (eval "$ac_link_default") 2>&5
3072   ac_status=$?
3073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074   test $ac_status = 0; }; then :
3075   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3076 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3077 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3078 # so that the user can short-circuit this test for compilers unknown to
3079 # Autoconf.
3080 for ac_file in $ac_files ''
3081 do
3082   test -f "$ac_file" || continue
3083   case $ac_file in
3084     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3085         ;;
3086     [ab].out )
3087         # We found the default executable, but exeext='' is most
3088         # certainly right.
3089         break;;
3090     *.* )
3091         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3092         then :; else
3093            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3094         fi
3095         # We set ac_cv_exeext here because the later test for it is not
3096         # safe: cross compilers may not add the suffix if given an `-o'
3097         # argument, so we may need to know it at that point already.
3098         # Even if this section looks crufty: it has the advantage of
3099         # actually working.
3100         break;;
3101     * )
3102         break;;
3103   esac
3104 done
3105 test "$ac_cv_exeext" = no && ac_cv_exeext=
3106
3107 else
3108   ac_file=''
3109 fi
3110 if test -z "$ac_file"; then :
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 $as_echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 as_fn_error 77 "C compiler cannot create executables
3119 See \`config.log' for more details" "$LINENO" 5; }
3120 else
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 $as_echo "yes" >&6; }
3123 fi
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3125 $as_echo_n "checking for C compiler default output file name... " >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3127 $as_echo "$ac_file" >&6; }
3128 ac_exeext=$ac_cv_exeext
3129
3130 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3131 ac_clean_files=$ac_clean_files_save
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3133 $as_echo_n "checking for suffix of executables... " >&6; }
3134 if { { ac_try="$ac_link"
3135 case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141   (eval "$ac_link") 2>&5
3142   ac_status=$?
3143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144   test $ac_status = 0; }; then :
3145   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3146 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3147 # work properly (i.e., refer to `conftest.exe'), while it won't with
3148 # `rm'.
3149 for ac_file in conftest.exe conftest conftest.*; do
3150   test -f "$ac_file" || continue
3151   case $ac_file in
3152     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3153     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154           break;;
3155     * ) break;;
3156   esac
3157 done
3158 else
3159   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3162 See \`config.log' for more details" "$LINENO" 5; }
3163 fi
3164 rm -f conftest conftest$ac_cv_exeext
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3166 $as_echo "$ac_cv_exeext" >&6; }
3167
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h.  */
3173 #include <stdio.h>
3174 int
3175 main ()
3176 {
3177 FILE *f = fopen ("conftest.out", "w");
3178  return ferror (f) || fclose (f) != 0;
3179
3180   ;
3181   return 0;
3182 }
3183 _ACEOF
3184 ac_clean_files="$ac_clean_files conftest.out"
3185 # Check that the compiler produces executables we can run.  If not, either
3186 # the compiler is broken, or we cross compile.
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3188 $as_echo_n "checking whether we are cross compiling... " >&6; }
3189 if test "$cross_compiling" != yes; then
3190   { { ac_try="$ac_link"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197   (eval "$ac_link") 2>&5
3198   ac_status=$?
3199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200   test $ac_status = 0; }
3201   if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3209   ac_status=$?
3210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211   test $ac_status = 0; }; }; then
3212     cross_compiling=no
3213   else
3214     if test "$cross_compiling" = maybe; then
3215         cross_compiling=yes
3216     else
3217         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error $? "cannot run C compiled programs.
3220 If you meant to cross compile, use \`--host'.
3221 See \`config.log' for more details" "$LINENO" 5; }
3222     fi
3223   fi
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3226 $as_echo "$cross_compiling" >&6; }
3227
3228 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3229 ac_clean_files=$ac_clean_files_save
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3231 $as_echo_n "checking for suffix of object files... " >&6; }
3232 if ${ac_cv_objext+:} false; then :
3233   $as_echo_n "(cached) " >&6
3234 else
3235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h.  */
3237
3238 int
3239 main ()
3240 {
3241
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 rm -f conftest.o conftest.obj
3247 if { { ac_try="$ac_compile"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254   (eval "$ac_compile") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257   test $ac_status = 0; }; then :
3258   for ac_file in conftest.o conftest.obj conftest.*; do
3259   test -f "$ac_file" || continue;
3260   case $ac_file in
3261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3262     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3263        break;;
3264   esac
3265 done
3266 else
3267   $as_echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $? "cannot compute suffix of object files: cannot compile
3273 See \`config.log' for more details" "$LINENO" 5; }
3274 fi
3275 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3278 $as_echo "$ac_cv_objext" >&6; }
3279 OBJEXT=$ac_cv_objext
3280 ac_objext=$OBJEXT
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3282 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3283 if ${ac_cv_c_compiler_gnu+:} false; then :
3284   $as_echo_n "(cached) " >&6
3285 else
3286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h.  */
3288
3289 int
3290 main ()
3291 {
3292 #ifndef __GNUC__
3293        choke me
3294 #endif
3295
3296   ;
3297   return 0;
3298 }
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"; then :
3301   ac_compiler_gnu=yes
3302 else
3303   ac_compiler_gnu=no
3304 fi
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3307
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3310 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3311 if test $ac_compiler_gnu = yes; then
3312   GCC=yes
3313 else
3314   GCC=
3315 fi
3316 ac_test_CFLAGS=${CFLAGS+set}
3317 ac_save_CFLAGS=$CFLAGS
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3319 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3320 if ${ac_cv_prog_cc_g+:} false; then :
3321   $as_echo_n "(cached) " >&6
3322 else
3323   ac_save_c_werror_flag=$ac_c_werror_flag
3324    ac_c_werror_flag=yes
3325    ac_cv_prog_cc_g=no
3326    CFLAGS="-g"
3327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h.  */
3329
3330 int
3331 main ()
3332 {
3333
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 if ac_fn_c_try_compile "$LINENO"; then :
3339   ac_cv_prog_cc_g=yes
3340 else
3341   CFLAGS=""
3342       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h.  */
3344
3345 int
3346 main ()
3347 {
3348
3349   ;
3350   return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_c_try_compile "$LINENO"; then :
3354
3355 else
3356   ac_c_werror_flag=$ac_save_c_werror_flag
3357          CFLAGS="-g"
3358          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h.  */
3360
3361 int
3362 main ()
3363 {
3364
3365   ;
3366   return 0;
3367 }
3368 _ACEOF
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370   ac_cv_prog_cc_g=yes
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 fi
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 fi
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377    ac_c_werror_flag=$ac_save_c_werror_flag
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3380 $as_echo "$ac_cv_prog_cc_g" >&6; }
3381 if test "$ac_test_CFLAGS" = set; then
3382   CFLAGS=$ac_save_CFLAGS
3383 elif test $ac_cv_prog_cc_g = yes; then
3384   if test "$GCC" = yes; then
3385     CFLAGS="-g -O2"
3386   else
3387     CFLAGS="-g"
3388   fi
3389 else
3390   if test "$GCC" = yes; then
3391     CFLAGS="-O2"
3392   else
3393     CFLAGS=
3394   fi
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3397 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3398 if ${ac_cv_prog_cc_c89+:} false; then :
3399   $as_echo_n "(cached) " >&6
3400 else
3401   ac_cv_prog_cc_c89=no
3402 ac_save_CC=$CC
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h.  */
3405 #include <stdarg.h>
3406 #include <stdio.h>
3407 struct stat;
3408 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3409 struct buf { int x; };
3410 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3411 static char *e (p, i)
3412      char **p;
3413      int i;
3414 {
3415   return p[i];
3416 }
3417 static char *f (char * (*g) (char **, int), char **p, ...)
3418 {
3419   char *s;
3420   va_list v;
3421   va_start (v,p);
3422   s = g (p, va_arg (v,int));
3423   va_end (v);
3424   return s;
3425 }
3426
3427 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3428    function prototypes and stuff, but not '\xHH' hex character constants.
3429    These don't provoke an error unfortunately, instead are silently treated
3430    as 'x'.  The following induces an error, until -std is added to get
3431    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3432    array size at least.  It's necessary to write '\x00'==0 to get something
3433    that's true only with -std.  */
3434 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3435
3436 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3437    inside strings and character constants.  */
3438 #define FOO(x) 'x'
3439 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3440
3441 int test (int i, double x);
3442 struct s1 {int (*f) (int a);};
3443 struct s2 {int (*f) (double a);};
3444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3445 int argc;
3446 char **argv;
3447 int
3448 main ()
3449 {
3450 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3451   ;
3452   return 0;
3453 }
3454 _ACEOF
3455 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3456         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3457 do
3458   CC="$ac_save_CC $ac_arg"
3459   if ac_fn_c_try_compile "$LINENO"; then :
3460   ac_cv_prog_cc_c89=$ac_arg
3461 fi
3462 rm -f core conftest.err conftest.$ac_objext
3463   test "x$ac_cv_prog_cc_c89" != "xno" && break
3464 done
3465 rm -f conftest.$ac_ext
3466 CC=$ac_save_CC
3467
3468 fi
3469 # AC_CACHE_VAL
3470 case "x$ac_cv_prog_cc_c89" in
3471   x)
3472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3473 $as_echo "none needed" >&6; } ;;
3474   xno)
3475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3476 $as_echo "unsupported" >&6; } ;;
3477   *)
3478     CC="$CC $ac_cv_prog_cc_c89"
3479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3480 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3481 esac
3482 if test "x$ac_cv_prog_cc_c89" != xno; then :
3483
3484 fi
3485
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491
3492 ac_ext=cpp
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3497 if test -z "$CXX"; then
3498   if test -n "$CCC"; then
3499     CXX=$CCC
3500   else
3501     if test -n "$ac_tool_prefix"; then
3502   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3503   do
3504     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 $as_echo_n "checking for $ac_word... " >&6; }
3508 if ${ac_cv_prog_CXX+:} false; then :
3509   $as_echo_n "(cached) " >&6
3510 else
3511   if test -n "$CXX"; then
3512   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517   IFS=$as_save_IFS
3518   test -z "$as_dir" && as_dir=.
3519     for ac_exec_ext in '' $ac_executable_extensions; do
3520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523     break 2
3524   fi
3525 done
3526   done
3527 IFS=$as_save_IFS
3528
3529 fi
3530 fi
3531 CXX=$ac_cv_prog_CXX
3532 if test -n "$CXX"; then
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3534 $as_echo "$CXX" >&6; }
3535 else
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 fi
3539
3540
3541     test -n "$CXX" && break
3542   done
3543 fi
3544 if test -z "$CXX"; then
3545   ac_ct_CXX=$CXX
3546   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3547 do
3548   # Extract the first word of "$ac_prog", so it can be a program name with args.
3549 set dummy $ac_prog; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3553   $as_echo_n "(cached) " >&6
3554 else
3555   if test -n "$ac_ct_CXX"; then
3556   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563     for ac_exec_ext in '' $ac_executable_extensions; do
3564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565     ac_cv_prog_ac_ct_CXX="$ac_prog"
3566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570   done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3576 if test -n "$ac_ct_CXX"; then
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3578 $as_echo "$ac_ct_CXX" >&6; }
3579 else
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584
3585   test -n "$ac_ct_CXX" && break
3586 done
3587
3588   if test "x$ac_ct_CXX" = x; then
3589     CXX="g++"
3590   else
3591     case $cross_compiling:$ac_tool_warned in
3592 yes:)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned=yes ;;
3596 esac
3597     CXX=$ac_ct_CXX
3598   fi
3599 fi
3600
3601   fi
3602 fi
3603 # Provide some information about the compiler.
3604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3605 set X $ac_compile
3606 ac_compiler=$2
3607 for ac_option in --version -v -V -qversion; do
3608   { { ac_try="$ac_compiler $ac_option >&5"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3616   ac_status=$?
3617   if test -s conftest.err; then
3618     sed '10a\
3619 ... rest of stderr output deleted ...
3620          10q' conftest.err >conftest.er1
3621     cat conftest.er1 >&5
3622   fi
3623   rm -f conftest.er1 conftest.err
3624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625   test $ac_status = 0; }
3626 done
3627
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3629 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3630 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3631   $as_echo_n "(cached) " >&6
3632 else
3633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639 #ifndef __GNUC__
3640        choke me
3641 #endif
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 if ac_fn_cxx_try_compile "$LINENO"; then :
3648   ac_compiler_gnu=yes
3649 else
3650   ac_compiler_gnu=no
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3654
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3657 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3658 if test $ac_compiler_gnu = yes; then
3659   GXX=yes
3660 else
3661   GXX=
3662 fi
3663 ac_test_CXXFLAGS=${CXXFLAGS+set}
3664 ac_save_CXXFLAGS=$CXXFLAGS
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3666 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3667 if ${ac_cv_prog_cxx_g+:} false; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3671    ac_cxx_werror_flag=yes
3672    ac_cv_prog_cxx_g=no
3673    CXXFLAGS="-g"
3674    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h.  */
3676
3677 int
3678 main ()
3679 {
3680
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 if ac_fn_cxx_try_compile "$LINENO"; then :
3686   ac_cv_prog_cxx_g=yes
3687 else
3688   CXXFLAGS=""
3689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691
3692 int
3693 main ()
3694 {
3695
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_cxx_try_compile "$LINENO"; then :
3701
3702 else
3703   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3704          CXXFLAGS="-g"
3705          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h.  */
3707
3708 int
3709 main ()
3710 {
3711
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_cxx_try_compile "$LINENO"; then :
3717   ac_cv_prog_cxx_g=yes
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3727 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3728 if test "$ac_test_CXXFLAGS" = set; then
3729   CXXFLAGS=$ac_save_CXXFLAGS
3730 elif test $ac_cv_prog_cxx_g = yes; then
3731   if test "$GXX" = yes; then
3732     CXXFLAGS="-g -O2"
3733   else
3734     CXXFLAGS="-g"
3735   fi
3736 else
3737   if test "$GXX" = yes; then
3738     CXXFLAGS="-O2"
3739   else
3740     CXXFLAGS=
3741   fi
3742 fi
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750
3751 ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3757 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3758 # On Suns, sometimes $CPP names a directory.
3759 if test -n "$CPP" && test -d "$CPP"; then
3760   CPP=
3761 fi
3762 if test -z "$CPP"; then
3763   if ${ac_cv_prog_CPP+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766       # Double quotes because CPP needs to be expanded
3767     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3768     do
3769       ac_preproc_ok=false
3770 for ac_c_preproc_warn_flag in '' yes
3771 do
3772   # Use a header file that comes with gcc, so configuring glibc
3773   # with a fresh cross-compiler works.
3774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775   # <limits.h> exists even on freestanding compilers.
3776   # On the NeXT, cc -E runs the code through the compiler's parser,
3777   # not just through cpp. "Syntax error" is here to catch this case.
3778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h.  */
3780 #ifdef __STDC__
3781 # include <limits.h>
3782 #else
3783 # include <assert.h>
3784 #endif
3785                      Syntax error
3786 _ACEOF
3787 if ac_fn_c_try_cpp "$LINENO"; then :
3788
3789 else
3790   # Broken: fails on valid input.
3791 continue
3792 fi
3793 rm -f conftest.err conftest.i conftest.$ac_ext
3794
3795   # OK, works on sane cases.  Now check whether nonexistent headers
3796   # can be detected and how.
3797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799 #include <ac_nonexistent.h>
3800 _ACEOF
3801 if ac_fn_c_try_cpp "$LINENO"; then :
3802   # Broken: success on invalid input.
3803 continue
3804 else
3805   # Passes both tests.
3806 ac_preproc_ok=:
3807 break
3808 fi
3809 rm -f conftest.err conftest.i conftest.$ac_ext
3810
3811 done
3812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3813 rm -f conftest.i conftest.err conftest.$ac_ext
3814 if $ac_preproc_ok; then :
3815   break
3816 fi
3817
3818     done
3819     ac_cv_prog_CPP=$CPP
3820
3821 fi
3822   CPP=$ac_cv_prog_CPP
3823 else
3824   ac_cv_prog_CPP=$CPP
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3827 $as_echo "$CPP" >&6; }
3828 ac_preproc_ok=false
3829 for ac_c_preproc_warn_flag in '' yes
3830 do
3831   # Use a header file that comes with gcc, so configuring glibc
3832   # with a fresh cross-compiler works.
3833   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3834   # <limits.h> exists even on freestanding compilers.
3835   # On the NeXT, cc -E runs the code through the compiler's parser,
3836   # not just through cpp. "Syntax error" is here to catch this case.
3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h.  */
3839 #ifdef __STDC__
3840 # include <limits.h>
3841 #else
3842 # include <assert.h>
3843 #endif
3844                      Syntax error
3845 _ACEOF
3846 if ac_fn_c_try_cpp "$LINENO"; then :
3847
3848 else
3849   # Broken: fails on valid input.
3850 continue
3851 fi
3852 rm -f conftest.err conftest.i conftest.$ac_ext
3853
3854   # OK, works on sane cases.  Now check whether nonexistent headers
3855   # can be detected and how.
3856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h.  */
3858 #include <ac_nonexistent.h>
3859 _ACEOF
3860 if ac_fn_c_try_cpp "$LINENO"; then :
3861   # Broken: success on invalid input.
3862 continue
3863 else
3864   # Passes both tests.
3865 ac_preproc_ok=:
3866 break
3867 fi
3868 rm -f conftest.err conftest.i conftest.$ac_ext
3869
3870 done
3871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872 rm -f conftest.i conftest.err conftest.$ac_ext
3873 if $ac_preproc_ok; then :
3874
3875 else
3876   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details" "$LINENO" 5; }
3880 fi
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3890 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3891 if ${ac_cv_path_GREP+:} false; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   if test -z "$GREP"; then
3895   ac_path_GREP_found=false
3896   # Loop through the user's path and test for each of PROGNAME-LIST
3897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902     for ac_prog in grep ggrep; do
3903     for ac_exec_ext in '' $ac_executable_extensions; do
3904       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3905       as_fn_executable_p "$ac_path_GREP" || continue
3906 # Check for GNU ac_path_GREP and select it if it is found.
3907   # Check for GNU $ac_path_GREP
3908 case `"$ac_path_GREP" --version 2>&1` in
3909 *GNU*)
3910   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3911 *)
3912   ac_count=0
3913   $as_echo_n 0123456789 >"conftest.in"
3914   while :
3915   do
3916     cat "conftest.in" "conftest.in" >"conftest.tmp"
3917     mv "conftest.tmp" "conftest.in"
3918     cp "conftest.in" "conftest.nl"
3919     $as_echo 'GREP' >> "conftest.nl"
3920     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922     as_fn_arith $ac_count + 1 && ac_count=$as_val
3923     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3924       # Best one so far, save it but keep looking for a better one
3925       ac_cv_path_GREP="$ac_path_GREP"
3926       ac_path_GREP_max=$ac_count
3927     fi
3928     # 10*(2^10) chars as input seems more than enough
3929     test $ac_count -gt 10 && break
3930   done
3931   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932 esac
3933
3934       $ac_path_GREP_found && break 3
3935     done
3936   done
3937   done
3938 IFS=$as_save_IFS
3939   if test -z "$ac_cv_path_GREP"; then
3940     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3941   fi
3942 else
3943   ac_cv_path_GREP=$GREP
3944 fi
3945
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3948 $as_echo "$ac_cv_path_GREP" >&6; }
3949  GREP="$ac_cv_path_GREP"
3950
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3953 $as_echo_n "checking for egrep... " >&6; }
3954 if ${ac_cv_path_EGREP+:} false; then :
3955   $as_echo_n "(cached) " >&6
3956 else
3957   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958    then ac_cv_path_EGREP="$GREP -E"
3959    else
3960      if test -z "$EGREP"; then
3961   ac_path_EGREP_found=false
3962   # Loop through the user's path and test for each of PROGNAME-LIST
3963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968     for ac_prog in egrep; do
3969     for ac_exec_ext in '' $ac_executable_extensions; do
3970       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3971       as_fn_executable_p "$ac_path_EGREP" || continue
3972 # Check for GNU ac_path_EGREP and select it if it is found.
3973   # Check for GNU $ac_path_EGREP
3974 case `"$ac_path_EGREP" --version 2>&1` in
3975 *GNU*)
3976   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3977 *)
3978   ac_count=0
3979   $as_echo_n 0123456789 >"conftest.in"
3980   while :
3981   do
3982     cat "conftest.in" "conftest.in" >"conftest.tmp"
3983     mv "conftest.tmp" "conftest.in"
3984     cp "conftest.in" "conftest.nl"
3985     $as_echo 'EGREP' >> "conftest.nl"
3986     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988     as_fn_arith $ac_count + 1 && ac_count=$as_val
3989     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3990       # Best one so far, save it but keep looking for a better one
3991       ac_cv_path_EGREP="$ac_path_EGREP"
3992       ac_path_EGREP_max=$ac_count
3993     fi
3994     # 10*(2^10) chars as input seems more than enough
3995     test $ac_count -gt 10 && break
3996   done
3997   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998 esac
3999
4000       $ac_path_EGREP_found && break 3
4001     done
4002   done
4003   done
4004 IFS=$as_save_IFS
4005   if test -z "$ac_cv_path_EGREP"; then
4006     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4007   fi
4008 else
4009   ac_cv_path_EGREP=$EGREP
4010 fi
4011
4012    fi
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4015 $as_echo "$ac_cv_path_EGREP" >&6; }
4016  EGREP="$ac_cv_path_EGREP"
4017
4018
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4020 $as_echo_n "checking for ANSI C header files... " >&6; }
4021 if ${ac_cv_header_stdc+:} false; then :
4022   $as_echo_n "(cached) " >&6
4023 else
4024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026 #include <stdlib.h>
4027 #include <stdarg.h>
4028 #include <string.h>
4029 #include <float.h>
4030
4031 int
4032 main ()
4033 {
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040   ac_cv_header_stdc=yes
4041 else
4042   ac_cv_header_stdc=no
4043 fi
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045
4046 if test $ac_cv_header_stdc = yes; then
4047   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h.  */
4050 #include <string.h>
4051
4052 _ACEOF
4053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4054   $EGREP "memchr" >/dev/null 2>&1; then :
4055
4056 else
4057   ac_cv_header_stdc=no
4058 fi
4059 rm -f conftest*
4060
4061 fi
4062
4063 if test $ac_cv_header_stdc = yes; then
4064   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067 #include <stdlib.h>
4068
4069 _ACEOF
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071   $EGREP "free" >/dev/null 2>&1; then :
4072
4073 else
4074   ac_cv_header_stdc=no
4075 fi
4076 rm -f conftest*
4077
4078 fi
4079
4080 if test $ac_cv_header_stdc = yes; then
4081   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4082   if test "$cross_compiling" = yes; then :
4083   :
4084 else
4085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h.  */
4087 #include <ctype.h>
4088 #include <stdlib.h>
4089 #if ((' ' & 0x0FF) == 0x020)
4090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4092 #else
4093 # define ISLOWER(c) \
4094                    (('a' <= (c) && (c) <= 'i') \
4095                      || ('j' <= (c) && (c) <= 'r') \
4096                      || ('s' <= (c) && (c) <= 'z'))
4097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4098 #endif
4099
4100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4101 int
4102 main ()
4103 {
4104   int i;
4105   for (i = 0; i < 256; i++)
4106     if (XOR (islower (i), ISLOWER (i))
4107         || toupper (i) != TOUPPER (i))
4108       return 2;
4109   return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_run "$LINENO"; then :
4113
4114 else
4115   ac_cv_header_stdc=no
4116 fi
4117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4118   conftest.$ac_objext conftest.beam conftest.$ac_ext
4119 fi
4120
4121 fi
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4124 $as_echo "$ac_cv_header_stdc" >&6; }
4125 if test $ac_cv_header_stdc = yes; then
4126
4127 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4128
4129 fi
4130
4131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4132 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4133                   inttypes.h stdint.h unistd.h
4134 do :
4135   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4137 "
4138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4139   cat >>confdefs.h <<_ACEOF
4140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 _ACEOF
4142
4143 fi
4144
4145 done
4146
4147
4148
4149   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4150 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4151   MINIX=yes
4152 else
4153   MINIX=
4154 fi
4155
4156
4157   if test "$MINIX" = yes; then
4158
4159 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4160
4161
4162 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4163
4164
4165 $as_echo "#define _MINIX 1" >>confdefs.h
4166
4167   fi
4168
4169
4170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4171 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4172 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h.  */
4177
4178 #         define __EXTENSIONS__ 1
4179           $ac_includes_default
4180 int
4181 main ()
4182 {
4183
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189   ac_cv_safe_to_define___extensions__=yes
4190 else
4191   ac_cv_safe_to_define___extensions__=no
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4196 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4197   test $ac_cv_safe_to_define___extensions__ = yes &&
4198     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4199
4200   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4201
4202   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4203
4204   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4205
4206   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4207
4208
4209
4210
4211 if test $ac_cv_c_compiler_gnu = yes; then
4212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4213 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4214 if ${ac_cv_prog_gcc_traditional+:} false; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217     ac_pattern="Autoconf.*'x'"
4218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h.  */
4220 #include <sgtty.h>
4221 Autoconf TIOCGETP
4222 _ACEOF
4223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4225   ac_cv_prog_gcc_traditional=yes
4226 else
4227   ac_cv_prog_gcc_traditional=no
4228 fi
4229 rm -f conftest*
4230
4231
4232   if test $ac_cv_prog_gcc_traditional = no; then
4233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h.  */
4235 #include <termio.h>
4236 Autoconf TCGETA
4237 _ACEOF
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4240   ac_cv_prog_gcc_traditional=yes
4241 fi
4242 rm -f conftest*
4243
4244   fi
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4247 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4248   if test $ac_cv_prog_gcc_traditional = yes; then
4249     CC="$CC -traditional"
4250   fi
4251 fi
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4254 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4255 if ${ac_cv_prog_suncc+:} false; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258   cat > conftest.c <<EOF
4259 #ifdef __SUNPRO_C
4260   yes;
4261 #endif
4262 EOF
4263 if { ac_try='${CC-cc} -E conftest.c'
4264   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4269   ac_cv_prog_suncc=yes
4270 else
4271   ac_cv_prog_suncc=no
4272 fi
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4275 $as_echo "$ac_cv_prog_suncc" >&6; }
4276 if test -n "$ac_tool_prefix"; then
4277   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_RANLIB+:} false; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -n "$RANLIB"; then
4285   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292     for ac_exec_ext in '' $ac_executable_extensions; do
4293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299   done
4300 IFS=$as_save_IFS
4301
4302 fi
4303 fi
4304 RANLIB=$ac_cv_prog_RANLIB
4305 if test -n "$RANLIB"; then
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4307 $as_echo "$RANLIB" >&6; }
4308 else
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314 fi
4315 if test -z "$ac_cv_prog_RANLIB"; then
4316   ac_ct_RANLIB=$RANLIB
4317   # Extract the first word of "ranlib", so it can be a program name with args.
4318 set dummy ranlib; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   if test -n "$ac_ct_RANLIB"; then
4325   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330   IFS=$as_save_IFS
4331   test -z "$as_dir" && as_dir=.
4332     for ac_exec_ext in '' $ac_executable_extensions; do
4333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334     ac_cv_prog_ac_ct_RANLIB="ranlib"
4335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336     break 2
4337   fi
4338 done
4339   done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4345 if test -n "$ac_ct_RANLIB"; then
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4347 $as_echo "$ac_ct_RANLIB" >&6; }
4348 else
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353   if test "x$ac_ct_RANLIB" = x; then
4354     RANLIB=":"
4355   else
4356     case $cross_compiling:$ac_tool_warned in
4357 yes:)
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4360 ac_tool_warned=yes ;;
4361 esac
4362     RANLIB=$ac_ct_RANLIB
4363   fi
4364 else
4365   RANLIB="$ac_cv_prog_RANLIB"
4366 fi
4367
4368
4369 if test "x$GCC" = "xyes"; then
4370     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4371 fi
4372
4373 # Check whether --enable-largefile was given.
4374 if test "${enable_largefile+set}" = set; then :
4375   enableval=$enable_largefile;
4376 fi
4377
4378 if test "$enable_largefile" != no; then
4379
4380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4382 if ${ac_cv_sys_largefile_CC+:} false; then :
4383   $as_echo_n "(cached) " >&6
4384 else
4385   ac_cv_sys_largefile_CC=no
4386      if test "$GCC" != yes; then
4387        ac_save_CC=$CC
4388        while :; do
4389          # IRIX 6.2 and later do not support large files by default,
4390          # so use the C compiler's -n32 option if that helps.
4391          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393 #include <sys/types.h>
4394  /* Check that off_t can represent 2**63 - 1 correctly.
4395     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4396     since some C++ compilers masquerading as C compilers
4397     incorrectly reject 9223372036854775807.  */
4398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4399   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4400                        && LARGE_OFF_T % 2147483647 == 1)
4401                       ? 1 : -1];
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410          if ac_fn_c_try_compile "$LINENO"; then :
4411   break
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext
4414          CC="$CC -n32"
4415          if ac_fn_c_try_compile "$LINENO"; then :
4416   ac_cv_sys_largefile_CC=' -n32'; break
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext
4419          break
4420        done
4421        CC=$ac_save_CC
4422        rm -f conftest.$ac_ext
4423     fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4426 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4427   if test "$ac_cv_sys_largefile_CC" != no; then
4428     CC=$CC$ac_cv_sys_largefile_CC
4429   fi
4430
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4432 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4433 if ${ac_cv_sys_file_offset_bits+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   while :; do
4437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439 #include <sys/types.h>
4440  /* Check that off_t can represent 2**63 - 1 correctly.
4441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442     since some C++ compilers masquerading as C compilers
4443     incorrectly reject 9223372036854775807.  */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446                        && LARGE_OFF_T % 2147483647 == 1)
4447                       ? 1 : -1];
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457   ac_cv_sys_file_offset_bits=no; break
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h.  */
4462 #define _FILE_OFFSET_BITS 64
4463 #include <sys/types.h>
4464  /* Check that off_t can represent 2**63 - 1 correctly.
4465     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4466     since some C++ compilers masquerading as C compilers
4467     incorrectly reject 9223372036854775807.  */
4468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4469   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4470                        && LARGE_OFF_T % 2147483647 == 1)
4471                       ? 1 : -1];
4472 int
4473 main ()
4474 {
4475
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481   ac_cv_sys_file_offset_bits=64; break
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484   ac_cv_sys_file_offset_bits=unknown
4485   break
4486 done
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4490 case $ac_cv_sys_file_offset_bits in #(
4491   no | unknown) ;;
4492   *)
4493 cat >>confdefs.h <<_ACEOF
4494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4495 _ACEOF
4496 ;;
4497 esac
4498 rm -rf conftest*
4499   if test $ac_cv_sys_file_offset_bits = unknown; then
4500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4502 if ${ac_cv_sys_large_files+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   while :; do
4506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h.  */
4508 #include <sys/types.h>
4509  /* Check that off_t can represent 2**63 - 1 correctly.
4510     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511     since some C++ compilers masquerading as C compilers
4512     incorrectly reject 9223372036854775807.  */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515                        && LARGE_OFF_T % 2147483647 == 1)
4516                       ? 1 : -1];
4517 int
4518 main ()
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526   ac_cv_sys_large_files=no; break
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531 #define _LARGE_FILES 1
4532 #include <sys/types.h>
4533  /* Check that off_t can represent 2**63 - 1 correctly.
4534     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4535     since some C++ compilers masquerading as C compilers
4536     incorrectly reject 9223372036854775807.  */
4537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4538   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4539                        && LARGE_OFF_T % 2147483647 == 1)
4540                       ? 1 : -1];
4541 int
4542 main ()
4543 {
4544
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550   ac_cv_sys_large_files=1; break
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553   ac_cv_sys_large_files=unknown
4554   break
4555 done
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4558 $as_echo "$ac_cv_sys_large_files" >&6; }
4559 case $ac_cv_sys_large_files in #(
4560   no | unknown) ;;
4561   *)
4562 cat >>confdefs.h <<_ACEOF
4563 #define _LARGE_FILES $ac_cv_sys_large_files
4564 _ACEOF
4565 ;;
4566 esac
4567 rm -rf conftest*
4568   fi
4569
4570
4571 fi
4572
4573
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4575 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4576 if ${ac_cv_c_bigendian+:} false; then :
4577   $as_echo_n "(cached) " >&6
4578 else
4579   ac_cv_c_bigendian=unknown
4580     # See if we're dealing with a universal compiler.
4581     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583 #ifndef __APPLE_CC__
4584                not a universal capable compiler
4585              #endif
4586              typedef int dummy;
4587
4588 _ACEOF
4589 if ac_fn_c_try_compile "$LINENO"; then :
4590
4591         # Check for potential -arch flags.  It is not universal unless
4592         # there are at least two -arch flags with different values.
4593         ac_arch=
4594         ac_prev=
4595         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4596          if test -n "$ac_prev"; then
4597            case $ac_word in
4598              i?86 | x86_64 | ppc | ppc64)
4599                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4600                  ac_arch=$ac_word
4601                else
4602                  ac_cv_c_bigendian=universal
4603                  break
4604                fi
4605                ;;
4606            esac
4607            ac_prev=
4608          elif test "x$ac_word" = "x-arch"; then
4609            ac_prev=arch
4610          fi
4611        done
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614     if test $ac_cv_c_bigendian = unknown; then
4615       # See if sys/param.h defines the BYTE_ORDER macro.
4616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618 #include <sys/types.h>
4619              #include <sys/param.h>
4620
4621 int
4622 main ()
4623 {
4624 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4625                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4626                      && LITTLE_ENDIAN)
4627               bogus endian macros
4628              #endif
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635   # It does; now see whether it defined to BIG_ENDIAN or not.
4636          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638 #include <sys/types.h>
4639                 #include <sys/param.h>
4640
4641 int
4642 main ()
4643 {
4644 #if BYTE_ORDER != BIG_ENDIAN
4645                  not big endian
4646                 #endif
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653   ac_cv_c_bigendian=yes
4654 else
4655   ac_cv_c_bigendian=no
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660     fi
4661     if test $ac_cv_c_bigendian = unknown; then
4662       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h.  */
4665 #include <limits.h>
4666
4667 int
4668 main ()
4669 {
4670 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4671               bogus endian macros
4672              #endif
4673
4674   ;
4675   return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679   # It does; now see whether it defined to _BIG_ENDIAN or not.
4680          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682 #include <limits.h>
4683
4684 int
4685 main ()
4686 {
4687 #ifndef _BIG_ENDIAN
4688                  not big endian
4689                 #endif
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696   ac_cv_c_bigendian=yes
4697 else
4698   ac_cv_c_bigendian=no
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703     fi
4704     if test $ac_cv_c_bigendian = unknown; then
4705       # Compile a test program.
4706       if test "$cross_compiling" = yes; then :
4707   # Try to guess by grepping values from an object file.
4708          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h.  */
4710 short int ascii_mm[] =
4711                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4712                 short int ascii_ii[] =
4713                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4714                 int use_ascii (int i) {
4715                   return ascii_mm[i] + ascii_ii[i];
4716                 }
4717                 short int ebcdic_ii[] =
4718                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4719                 short int ebcdic_mm[] =
4720                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4721                 int use_ebcdic (int i) {
4722                   return ebcdic_mm[i] + ebcdic_ii[i];
4723                 }
4724                 extern int foo;
4725
4726 int
4727 main ()
4728 {
4729 return use_ascii (foo) == use_ebcdic (foo);
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4736               ac_cv_c_bigendian=yes
4737             fi
4738             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4739               if test "$ac_cv_c_bigendian" = unknown; then
4740                 ac_cv_c_bigendian=no
4741               else
4742                 # finding both strings is unlikely to happen, but who knows?
4743                 ac_cv_c_bigendian=unknown
4744               fi
4745             fi
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 else
4749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h.  */
4751 $ac_includes_default
4752 int
4753 main ()
4754 {
4755
4756              /* Are we little or big endian?  From Harbison&Steele.  */
4757              union
4758              {
4759                long int l;
4760                char c[sizeof (long int)];
4761              } u;
4762              u.l = 1;
4763              return u.c[sizeof (long int) - 1] == 1;
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_run "$LINENO"; then :
4770   ac_cv_c_bigendian=no
4771 else
4772   ac_cv_c_bigendian=yes
4773 fi
4774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4775   conftest.$ac_objext conftest.beam conftest.$ac_ext
4776 fi
4777
4778     fi
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4781 $as_echo "$ac_cv_c_bigendian" >&6; }
4782  case $ac_cv_c_bigendian in #(
4783    yes)
4784      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4785 ;; #(
4786    no)
4787       ;; #(
4788    universal)
4789
4790 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4791
4792      ;; #(
4793    *)
4794      as_fn_error $? "unknown endianness
4795  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4796  esac
4797
4798
4799 # Extract the first word of "gmake", so it can be a program name with args.
4800 set dummy gmake; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if ${ac_cv_prog_GMAKE+:} false; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   if test -n "$GMAKE"; then
4807   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814     for ac_exec_ext in '' $ac_executable_extensions; do
4815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816     ac_cv_prog_GMAKE="yes"
4817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821   done
4822 IFS=$as_save_IFS
4823
4824   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4825 fi
4826 fi
4827 GMAKE=$ac_cv_prog_GMAKE
4828 if test -n "$GMAKE"; then
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4830 $as_echo "$GMAKE" >&6; }
4831 else
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 fi
4835
4836
4837 if test $GMAKE = no; then
4838   # Extract the first word of "make", so it can be a program name with args.
4839 set dummy make; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_path_MAKE+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   case $MAKE in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862   done
4863 IFS=$as_save_IFS
4864
4865   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4866   ;;
4867 esac
4868 fi
4869 MAKE=$ac_cv_path_MAKE
4870 if test -n "$MAKE"; then
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4872 $as_echo "$MAKE" >&6; }
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878
4879 else
4880   # Extract the first word of "gmake", so it can be a program name with args.
4881 set dummy gmake; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_path_MAKE+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   case $MAKE in
4888   [\\/]* | ?:[\\/]*)
4889   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4890   ;;
4891   *)
4892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897     for ac_exec_ext in '' $ac_executable_extensions; do
4898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904   done
4905 IFS=$as_save_IFS
4906
4907   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4908   ;;
4909 esac
4910 fi
4911 MAKE=$ac_cv_path_MAKE
4912 if test -n "$MAKE"; then
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4914 $as_echo "$MAKE" >&6; }
4915 else
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 fi
4922 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4923 if test -z "$makever"; then
4924   as_fn_error $? "GNU Make is not installed.  Please download and install it
4925                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4926 fi
4927
4928 # Extract the first word of "git", so it can be a program name with args.
4929 set dummy git; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_GIT+:} false; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   if test -n "$GIT"; then
4936   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943     for ac_exec_ext in '' $ac_executable_extensions; do
4944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945     ac_cv_prog_GIT="yes"
4946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950   done
4951 IFS=$as_save_IFS
4952
4953   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4954 fi
4955 fi
4956 GIT=$ac_cv_prog_GIT
4957 if test -n "$GIT"; then
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4959 $as_echo "$GIT" >&6; }
4960 else
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966
4967
4968 # Check whether --with-system-libltdl was given.
4969 if test "${with_system_libltdl+set}" = set; then :
4970   withval=$with_system_libltdl;
4971 LIBLTDL="-lltdl"
4972 INCLTDL=-DWITH_SYSTEM_LTDL
4973 LTDL_SUBDIRS=
4974
4975 else
4976
4977 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
4979 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
4980 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   ac_check_lib_save_LIBS=$LIBS
4984 LIBS="-lltdl  $LIBS"
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h.  */
4987
4988 /* Override any GCC internal prototype to avoid an error.
4989    Use char because int might match the return type of a GCC
4990    builtin and then its argument prototype would still apply.  */
4991 #ifdef __cplusplus
4992 extern "C"
4993 #endif
4994 char lt_dlinit ();
4995 int
4996 main ()
4997 {
4998 return lt_dlinit ();
4999   ;
5000   return 0;
5001 }
5002 _ACEOF
5003 if ac_fn_c_try_link "$LINENO"; then :
5004   ac_cv_lib_ltdl_lt_dlinit=yes
5005 else
5006   ac_cv_lib_ltdl_lt_dlinit=no
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext \
5009     conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5013 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5014 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5015   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5016 else
5017   if test x"$enable_ltdl_install" = xno; then
5018      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5019 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5020    else
5021      enable_ltdl_install=yes
5022    fi
5023
5024 fi
5025
5026   if test x"$enable_ltdl_install" = x"yes"; then
5027     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5028     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5029     LTDLINCL='-I${top_srcdir}/''libltdl'
5030   else
5031     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5032     LIBLTDL="-lltdl"
5033     LTDLINCL=
5034   fi
5035   # For backwards non-gettext consistent compatibility...
5036   INCLTDL="$LTDLINCL"
5037
5038
5039 if test x"$enable_ltdl_install" = x"yes"; then
5040   LTDL_SUBDIRS=libltdl
5041 fi
5042
5043 fi
5044
5045
5046
5047 # Check whether --enable-shared was given.
5048 if test "${enable_shared+set}" = set; then :
5049   enableval=$enable_shared; p=${PACKAGE-default}
5050     case $enableval in
5051     yes) enable_shared=yes ;;
5052     no) enable_shared=no ;;
5053     *)
5054       enable_shared=no
5055       # Look at the argument we got.  We use all the common list separators.
5056       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5057       for pkg in $enableval; do
5058         IFS="$lt_save_ifs"
5059         if test "X$pkg" = "X$p"; then
5060           enable_shared=yes
5061         fi
5062       done
5063       IFS="$lt_save_ifs"
5064       ;;
5065     esac
5066 else
5067   enable_shared=yes
5068 fi
5069
5070
5071 # Check whether --enable-static was given.
5072 if test "${enable_static+set}" = set; then :
5073   enableval=$enable_static; p=${PACKAGE-default}
5074     case $enableval in
5075     yes) enable_static=yes ;;
5076     no) enable_static=no ;;
5077     *)
5078      enable_static=no
5079       # Look at the argument we got.  We use all the common list separators.
5080       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5081       for pkg in $enableval; do
5082         IFS="$lt_save_ifs"
5083         if test "X$pkg" = "X$p"; then
5084           enable_static=yes
5085         fi
5086       done
5087       IFS="$lt_save_ifs"
5088       ;;
5089     esac
5090 else
5091   enable_static=yes
5092 fi
5093
5094
5095 # Check whether --enable-fast-install was given.
5096 if test "${enable_fast_install+set}" = set; then :
5097   enableval=$enable_fast_install; p=${PACKAGE-default}
5098     case $enableval in
5099     yes) enable_fast_install=yes ;;
5100     no) enable_fast_install=no ;;
5101     *)
5102       enable_fast_install=no
5103       # Look at the argument we got.  We use all the common list separators.
5104       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5105       for pkg in $enableval; do
5106         IFS="$lt_save_ifs"
5107         if test "X$pkg" = "X$p"; then
5108           enable_fast_install=yes
5109         fi
5110       done
5111       IFS="$lt_save_ifs"
5112       ;;
5113     esac
5114 else
5115   enable_fast_install=yes
5116 fi
5117
5118
5119 ac_aux_dir=
5120 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5121   if test -f "$ac_dir/install-sh"; then
5122     ac_aux_dir=$ac_dir
5123     ac_install_sh="$ac_aux_dir/install-sh -c"
5124     break
5125   elif test -f "$ac_dir/install.sh"; then
5126     ac_aux_dir=$ac_dir
5127     ac_install_sh="$ac_aux_dir/install.sh -c"
5128     break
5129   elif test -f "$ac_dir/shtool"; then
5130     ac_aux_dir=$ac_dir
5131     ac_install_sh="$ac_aux_dir/shtool install -c"
5132     break
5133   fi
5134 done
5135 if test -z "$ac_aux_dir"; then
5136   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5137 fi
5138
5139 # These three variables are undocumented and unsupported,
5140 # and are intended to be withdrawn in a future Autoconf release.
5141 # They can cause serious problems if a builder's source tree is in a directory
5142 # whose full name contains unusual characters.
5143 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5144 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5145 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5146
5147
5148 # Make sure we can run config.sub.
5149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5150   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5153 $as_echo_n "checking build system type... " >&6; }
5154 if ${ac_cv_build+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   ac_build_alias=$build_alias
5158 test "x$ac_build_alias" = x &&
5159   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5160 test "x$ac_build_alias" = x &&
5161   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5163   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5164
5165 fi
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5167 $as_echo "$ac_cv_build" >&6; }
5168 case $ac_cv_build in
5169 *-*-*) ;;
5170 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5171 esac
5172 build=$ac_cv_build
5173 ac_save_IFS=$IFS; IFS='-'
5174 set x $ac_cv_build
5175 shift
5176 build_cpu=$1
5177 build_vendor=$2
5178 shift; shift
5179 # Remember, the first character of IFS is used to create $*,
5180 # except with old shells:
5181 build_os=$*
5182 IFS=$ac_save_IFS
5183 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5184
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5187 $as_echo_n "checking host system type... " >&6; }
5188 if ${ac_cv_host+:} false; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   if test "x$host_alias" = x; then
5192   ac_cv_host=$ac_cv_build
5193 else
5194   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5195     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5196 fi
5197
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5200 $as_echo "$ac_cv_host" >&6; }
5201 case $ac_cv_host in
5202 *-*-*) ;;
5203 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5204 esac
5205 host=$ac_cv_host
5206 ac_save_IFS=$IFS; IFS='-'
5207 set x $ac_cv_host
5208 shift
5209 host_cpu=$1
5210 host_vendor=$2
5211 shift; shift
5212 # Remember, the first character of IFS is used to create $*,
5213 # except with old shells:
5214 host_os=$*
5215 IFS=$ac_save_IFS
5216 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5217
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5220 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5221 if ${lt_cv_path_SED+:} false; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   # Loop through the user's path and test for sed and gsed.
5225 # Then use that list of sed's as ones to test for truncation.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231   for lt_ac_prog in sed gsed; do
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233       if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5234         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5235       fi
5236     done
5237   done
5238 done
5239 IFS=$as_save_IFS
5240 lt_ac_max=0
5241 lt_ac_count=0
5242 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5243 # along with /bin/sed that truncates output.
5244 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5245   test ! -f $lt_ac_sed && continue
5246   cat /dev/null > conftest.in
5247   lt_ac_count=0
5248   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5249   # Check for GNU sed and select it if it is found.
5250   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5251     lt_cv_path_SED=$lt_ac_sed
5252     break
5253   fi
5254   while true; do
5255     cat conftest.in conftest.in >conftest.tmp
5256     mv conftest.tmp conftest.in
5257     cp conftest.in conftest.nl
5258     echo >>conftest.nl
5259     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5260     cmp -s conftest.out conftest.nl || break
5261     # 10000 chars as input seems more than enough
5262     test $lt_ac_count -gt 10 && break
5263     lt_ac_count=`expr $lt_ac_count + 1`
5264     if test $lt_ac_count -gt $lt_ac_max; then
5265       lt_ac_max=$lt_ac_count
5266       lt_cv_path_SED=$lt_ac_sed
5267     fi
5268   done
5269 done
5270
5271 fi
5272
5273 SED=$lt_cv_path_SED
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5276 $as_echo "$SED" >&6; }
5277
5278
5279 # Check whether --with-gnu-ld was given.
5280 if test "${with_gnu_ld+set}" = set; then :
5281   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5282 else
5283   with_gnu_ld=no
5284 fi
5285
5286 ac_prog=ld
5287 if test "$GCC" = yes; then
5288   # Check if gcc -print-prog-name=ld gives a path.
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5290 $as_echo_n "checking for ld used by $CC... " >&6; }
5291   case $host in
5292   *-*-mingw*)
5293     # gcc leaves a trailing carriage return which upsets mingw
5294     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5295   *)
5296     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5297   esac
5298   case $ac_prog in
5299     # Accept absolute paths.
5300     [\\/]* | ?:[\\/]*)
5301       re_direlt='/[^/][^/]*/\.\./'
5302       # Canonicalize the pathname of ld
5303       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5304       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5305         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5306       done
5307       test -z "$LD" && LD="$ac_prog"
5308       ;;
5309   "")
5310     # If it fails, then pretend we aren't using GCC.
5311     ac_prog=ld
5312     ;;
5313   *)
5314     # If it is relative, then search for the first ld in PATH.
5315     with_gnu_ld=unknown
5316     ;;
5317   esac
5318 elif test "$with_gnu_ld" = yes; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5320 $as_echo_n "checking for GNU ld... " >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5323 $as_echo_n "checking for non-GNU ld... " >&6; }
5324 fi
5325 if ${lt_cv_path_LD+:} false; then :
5326   $as_echo_n "(cached) " >&6
5327 else
5328   if test -z "$LD"; then
5329   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5330   for ac_dir in $PATH; do
5331     IFS="$lt_save_ifs"
5332     test -z "$ac_dir" && ac_dir=.
5333     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5334       lt_cv_path_LD="$ac_dir/$ac_prog"
5335       # Check to see if the program is GNU ld.  I'd rather use --version,
5336       # but apparently some variants of GNU ld only accept -v.
5337       # Break only if it was the GNU/non-GNU ld that we prefer.
5338       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5339       *GNU* | *'with BFD'*)
5340         test "$with_gnu_ld" != no && break
5341         ;;
5342       *)
5343         test "$with_gnu_ld" != yes && break
5344         ;;
5345       esac
5346     fi
5347   done
5348   IFS="$lt_save_ifs"
5349 else
5350   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5351 fi
5352 fi
5353
5354 LD="$lt_cv_path_LD"
5355 if test -n "$LD"; then
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5357 $as_echo "$LD" >&6; }
5358 else
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5364 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5365 if ${lt_cv_prog_gnu_ld+:} false; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5369 case `$LD -v 2>&1 </dev/null` in
5370 *GNU* | *'with BFD'*)
5371   lt_cv_prog_gnu_ld=yes
5372   ;;
5373 *)
5374   lt_cv_prog_gnu_ld=no
5375   ;;
5376 esac
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5379 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5380 with_gnu_ld=$lt_cv_prog_gnu_ld
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5384 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5385 if ${lt_cv_ld_reload_flag+:} false; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   lt_cv_ld_reload_flag='-r'
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5391 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5392 reload_flag=$lt_cv_ld_reload_flag
5393 case $reload_flag in
5394 "" | " "*) ;;
5395 *) reload_flag=" $reload_flag" ;;
5396 esac
5397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398 case $host_os in
5399   darwin*)
5400     if test "$GCC" = yes; then
5401       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5402     else
5403       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404     fi
5405     ;;
5406 esac
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5409 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5410 if ${lt_cv_path_NM+:} false; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   if test -n "$NM"; then
5414   # Let the user override the test.
5415   lt_cv_path_NM="$NM"
5416 else
5417   lt_nm_to_check="${ac_tool_prefix}nm"
5418   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5419     lt_nm_to_check="$lt_nm_to_check nm"
5420   fi
5421   for lt_tmp_nm in $lt_nm_to_check; do
5422     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5424       IFS="$lt_save_ifs"
5425       test -z "$ac_dir" && ac_dir=.
5426       tmp_nm="$ac_dir/$lt_tmp_nm"
5427       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428         # Check to see if the nm accepts a BSD-compat flag.
5429         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430         #   nm: unknown option "B" ignored
5431         # Tru64's nm complains that /dev/null is an invalid object file
5432         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433         */dev/null* | *'Invalid file or object type'*)
5434           lt_cv_path_NM="$tmp_nm -B"
5435           break
5436           ;;
5437         *)
5438           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439           */dev/null*)
5440             lt_cv_path_NM="$tmp_nm -p"
5441             break
5442             ;;
5443           *)
5444             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445             continue # so that we can try to find one that supports BSD flags
5446             ;;
5447           esac
5448           ;;
5449         esac
5450       fi
5451     done
5452     IFS="$lt_save_ifs"
5453   done
5454   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5455 fi
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5458 $as_echo "$lt_cv_path_NM" >&6; }
5459 NM="$lt_cv_path_NM"
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5462 $as_echo_n "checking whether ln -s works... " >&6; }
5463 LN_S=$as_ln_s
5464 if test "$LN_S" = "ln -s"; then
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466 $as_echo "yes" >&6; }
5467 else
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5469 $as_echo "no, using $LN_S" >&6; }
5470 fi
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5473 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5474 if ${lt_cv_deplibs_check_method+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   lt_cv_file_magic_cmd='$MAGIC_CMD'
5478 lt_cv_file_magic_test_file=
5479 lt_cv_deplibs_check_method='unknown'
5480 # Need to set the preceding variable on all platforms that support
5481 # interlibrary dependencies.
5482 # 'none' -- dependencies not supported.
5483 # `unknown' -- same as none, but documents that we really don't know.
5484 # 'pass_all' -- all dependencies passed with no checks.
5485 # 'test_compile' -- check by making test program.
5486 # 'file_magic [[regex]]' -- check by looking for files in library path
5487 # which responds to the $file_magic_cmd with a given extended regex.
5488 # If you have `file' or equivalent on your system and you're not sure
5489 # whether `pass_all' will *always* work, you probably want this one.
5490
5491 case $host_os in
5492 aix[4-9]*)
5493   lt_cv_deplibs_check_method=pass_all
5494   ;;
5495
5496 beos*)
5497   lt_cv_deplibs_check_method=pass_all
5498   ;;
5499
5500 bsdi[45]*)
5501   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5502   lt_cv_file_magic_cmd='/usr/bin/file -L'
5503   lt_cv_file_magic_test_file=/shlib/libc.so
5504   ;;
5505
5506 cygwin*)
5507   # func_win32_libid is a shell function defined in ltmain.sh
5508   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5509   lt_cv_file_magic_cmd='func_win32_libid'
5510   ;;
5511
5512 mingw* | pw32*)
5513   # Base MSYS/MinGW do not provide the 'file' command needed by
5514   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5515   # unless we find 'file', for example because we are cross-compiling.
5516   if ( file / ) >/dev/null 2>&1; then
5517     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5518     lt_cv_file_magic_cmd='func_win32_libid'
5519   else
5520     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5521     lt_cv_file_magic_cmd='$OBJDUMP -f'
5522   fi
5523   ;;
5524
5525 darwin* | rhapsody*)
5526   lt_cv_deplibs_check_method=pass_all
5527   ;;
5528
5529 freebsd* | dragonfly*)
5530   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5531     case $host_cpu in
5532     i*86 )
5533       # Not sure whether the presence of OpenBSD here was a mistake.
5534       # Let's accept both of them until this is cleared up.
5535       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5536       lt_cv_file_magic_cmd=/usr/bin/file
5537       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5538       ;;
5539     esac
5540   else
5541     lt_cv_deplibs_check_method=pass_all
5542   fi
5543   ;;
5544
5545 gnu*)
5546   lt_cv_deplibs_check_method=pass_all
5547   ;;
5548
5549 hpux10.20* | hpux11*)
5550   lt_cv_file_magic_cmd=/usr/bin/file
5551   case $host_cpu in
5552   ia64*)
5553     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5554     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5555     ;;
5556   hppa*64*)
5557     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]'
5558     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5559     ;;
5560   *)
5561     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5562     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5563     ;;
5564   esac
5565   ;;
5566
5567 interix[3-9]*)
5568   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5569   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5570   ;;
5571
5572 irix5* | irix6* | nonstopux*)
5573   case $LD in
5574   *-32|*"-32 ") libmagic=32-bit;;
5575   *-n32|*"-n32 ") libmagic=N32;;
5576   *-64|*"-64 ") libmagic=64-bit;;
5577   *) libmagic=never-match;;
5578   esac
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581
5582 # This must be Linux ELF.
5583 linux* | k*bsd*-gnu)
5584   lt_cv_deplibs_check_method=pass_all
5585   ;;
5586
5587 netbsd* | netbsdelf*-gnu)
5588   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5589     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5590   else
5591     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5592   fi
5593   ;;
5594
5595 newos6*)
5596   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5597   lt_cv_file_magic_cmd=/usr/bin/file
5598   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5599   ;;
5600
5601 nto-qnx*)
5602   lt_cv_deplibs_check_method=unknown
5603   ;;
5604
5605 openbsd*)
5606   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5607     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5608   else
5609     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5610   fi
5611   ;;
5612
5613 osf3* | osf4* | osf5*)
5614   lt_cv_deplibs_check_method=pass_all
5615   ;;
5616
5617 rdos*)
5618   lt_cv_deplibs_check_method=pass_all
5619   ;;
5620
5621 solaris*)
5622   lt_cv_deplibs_check_method=pass_all
5623   ;;
5624
5625 sysv4 | sysv4.3*)
5626   case $host_vendor in
5627   motorola)
5628     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]'
5629     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5630     ;;
5631   ncr)
5632     lt_cv_deplibs_check_method=pass_all
5633     ;;
5634   sequent)
5635     lt_cv_file_magic_cmd='/bin/file'
5636     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5637     ;;
5638   sni)
5639     lt_cv_file_magic_cmd='/bin/file'
5640     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5641     lt_cv_file_magic_test_file=/lib/libc.so
5642     ;;
5643   siemens)
5644     lt_cv_deplibs_check_method=pass_all
5645     ;;
5646   pc)
5647     lt_cv_deplibs_check_method=pass_all
5648     ;;
5649   esac
5650   ;;
5651
5652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5653   lt_cv_deplibs_check_method=pass_all
5654   ;;
5655 esac
5656
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5659 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5660 file_magic_cmd=$lt_cv_file_magic_cmd
5661 deplibs_check_method=$lt_cv_deplibs_check_method
5662 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5663
5664
5665
5666
5667 # If no C compiler was specified, use CC.
5668 LTCC=${LTCC-"$CC"}
5669
5670 # If no C compiler flags were specified, use CFLAGS.
5671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5672
5673 # Allow CC to be a program name with arguments.
5674 compiler=$CC
5675
5676 # Check whether --enable-libtool-lock was given.
5677 if test "${enable_libtool_lock+set}" = set; then :
5678   enableval=$enable_libtool_lock;
5679 fi
5680
5681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5682
5683 # Some flags need to be propagated to the compiler or linker for good
5684 # libtool support.
5685 case $host in
5686 ia64-*-hpux*)
5687   # Find out which ABI we are using.
5688   echo 'int i;' > conftest.$ac_ext
5689   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5690   (eval $ac_compile) 2>&5
5691   ac_status=$?
5692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693   test $ac_status = 0; }; then
5694     case `/usr/bin/file conftest.$ac_objext` in
5695     *ELF-32*)
5696       HPUX_IA64_MODE="32"
5697       ;;
5698     *ELF-64*)
5699       HPUX_IA64_MODE="64"
5700       ;;
5701     esac
5702   fi
5703   rm -rf conftest*
5704   ;;
5705 *-*-irix6*)
5706   # Find out which ABI we are using.
5707   echo '#line 5707 "configure"' > conftest.$ac_ext
5708   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709   (eval $ac_compile) 2>&5
5710   ac_status=$?
5711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712   test $ac_status = 0; }; then
5713    if test "$lt_cv_prog_gnu_ld" = yes; then
5714     case `/usr/bin/file conftest.$ac_objext` in
5715     *32-bit*)
5716       LD="${LD-ld} -melf32bsmip"
5717       ;;
5718     *N32*)
5719       LD="${LD-ld} -melf32bmipn32"
5720       ;;
5721     *64-bit*)
5722       LD="${LD-ld} -melf64bmip"
5723       ;;
5724     esac
5725    else
5726     case `/usr/bin/file conftest.$ac_objext` in
5727     *32-bit*)
5728       LD="${LD-ld} -32"
5729       ;;
5730     *N32*)
5731       LD="${LD-ld} -n32"
5732       ;;
5733     *64-bit*)
5734       LD="${LD-ld} -64"
5735       ;;
5736     esac
5737    fi
5738   fi
5739   rm -rf conftest*
5740   ;;
5741
5742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5743 s390*-*linux*|sparc*-*linux*)
5744   # Find out which ABI we are using.
5745   echo 'int i;' > conftest.$ac_ext
5746   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747   (eval $ac_compile) 2>&5
5748   ac_status=$?
5749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750   test $ac_status = 0; }; then
5751     case `/usr/bin/file conftest.o` in
5752     *32-bit*)
5753       case $host in
5754         x86_64-*kfreebsd*-gnu)
5755           LD="${LD-ld} -m elf_i386_fbsd"
5756           ;;
5757         x86_64-*linux*)
5758           LD="${LD-ld} -m elf_i386"
5759           ;;
5760         ppc64-*linux*|powerpc64-*linux*)
5761           LD="${LD-ld} -m elf32ppclinux"
5762           ;;
5763         s390x-*linux*)
5764           LD="${LD-ld} -m elf_s390"
5765           ;;
5766         sparc64-*linux*)
5767           LD="${LD-ld} -m elf32_sparc"
5768           ;;
5769       esac
5770       ;;
5771     *64-bit*)
5772       case $host in
5773         x86_64-*kfreebsd*-gnu)
5774           LD="${LD-ld} -m elf_x86_64_fbsd"
5775           ;;
5776         x86_64-*linux*)
5777           LD="${LD-ld} -m elf_x86_64"
5778           ;;
5779         ppc*-*linux*|powerpc*-*linux*)
5780           LD="${LD-ld} -m elf64ppc"
5781           ;;
5782         s390*-*linux*)
5783           LD="${LD-ld} -m elf64_s390"
5784           ;;
5785         sparc*-*linux*)
5786           LD="${LD-ld} -m elf64_sparc"
5787           ;;
5788       esac
5789       ;;
5790     esac
5791   fi
5792   rm -rf conftest*
5793   ;;
5794
5795 *-*-sco3.2v5*)
5796   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5797   SAVE_CFLAGS="$CFLAGS"
5798   CFLAGS="$CFLAGS -belf"
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5800 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5801 if ${lt_cv_cc_needs_belf+:} false; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804   ac_ext=c
5805 ac_cpp='$CPP $CPPFLAGS'
5806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5809
5810      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h.  */
5812
5813 int
5814 main ()
5815 {
5816
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 if ac_fn_c_try_link "$LINENO"; then :
5822   lt_cv_cc_needs_belf=yes
5823 else
5824   lt_cv_cc_needs_belf=no
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext \
5827     conftest$ac_exeext conftest.$ac_ext
5828      ac_ext=c
5829 ac_cpp='$CPP $CPPFLAGS'
5830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5833
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5836 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5837   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5838     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5839     CFLAGS="$SAVE_CFLAGS"
5840   fi
5841   ;;
5842 sparc*-*solaris*)
5843   # Find out which ABI we are using.
5844   echo 'int i;' > conftest.$ac_ext
5845   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5846   (eval $ac_compile) 2>&5
5847   ac_status=$?
5848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5849   test $ac_status = 0; }; then
5850     case `/usr/bin/file conftest.o` in
5851     *64-bit*)
5852       case $lt_cv_prog_gnu_ld in
5853       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5854       *)
5855         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5856           LD="${LD-ld} -64"
5857         fi
5858         ;;
5859       esac
5860       ;;
5861     esac
5862   fi
5863   rm -rf conftest*
5864   ;;
5865
5866
5867 esac
5868
5869 need_locks="$enable_libtool_lock"
5870
5871
5872 for ac_header in dlfcn.h
5873 do :
5874   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5875 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5876   cat >>confdefs.h <<_ACEOF
5877 #define HAVE_DLFCN_H 1
5878 _ACEOF
5879
5880 fi
5881
5882 done
5883
5884
5885
5886 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5887     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5888     (test "X$CXX" != "Xg++"))) ; then
5889   ac_ext=cpp
5890 ac_cpp='$CXXCPP $CPPFLAGS'
5891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5895 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5896 if test -z "$CXXCPP"; then
5897   if ${ac_cv_prog_CXXCPP+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900       # Double quotes because CXXCPP needs to be expanded
5901     for CXXCPP in "$CXX -E" "/lib/cpp"
5902     do
5903       ac_preproc_ok=false
5904 for ac_cxx_preproc_warn_flag in '' yes
5905 do
5906   # Use a header file that comes with gcc, so configuring glibc
5907   # with a fresh cross-compiler works.
5908   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909   # <limits.h> exists even on freestanding compilers.
5910   # On the NeXT, cc -E runs the code through the compiler's parser,
5911   # not just through cpp. "Syntax error" is here to catch this case.
5912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h.  */
5914 #ifdef __STDC__
5915 # include <limits.h>
5916 #else
5917 # include <assert.h>
5918 #endif
5919                      Syntax error
5920 _ACEOF
5921 if ac_fn_cxx_try_cpp "$LINENO"; then :
5922
5923 else
5924   # Broken: fails on valid input.
5925 continue
5926 fi
5927 rm -f conftest.err conftest.i conftest.$ac_ext
5928
5929   # OK, works on sane cases.  Now check whether nonexistent headers
5930   # can be detected and how.
5931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h.  */
5933 #include <ac_nonexistent.h>
5934 _ACEOF
5935 if ac_fn_cxx_try_cpp "$LINENO"; then :
5936   # Broken: success on invalid input.
5937 continue
5938 else
5939   # Passes both tests.
5940 ac_preproc_ok=:
5941 break
5942 fi
5943 rm -f conftest.err conftest.i conftest.$ac_ext
5944
5945 done
5946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947 rm -f conftest.i conftest.err conftest.$ac_ext
5948 if $ac_preproc_ok; then :
5949   break
5950 fi
5951
5952     done
5953     ac_cv_prog_CXXCPP=$CXXCPP
5954
5955 fi
5956   CXXCPP=$ac_cv_prog_CXXCPP
5957 else
5958   ac_cv_prog_CXXCPP=$CXXCPP
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5961 $as_echo "$CXXCPP" >&6; }
5962 ac_preproc_ok=false
5963 for ac_cxx_preproc_warn_flag in '' yes
5964 do
5965   # Use a header file that comes with gcc, so configuring glibc
5966   # with a fresh cross-compiler works.
5967   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968   # <limits.h> exists even on freestanding compilers.
5969   # On the NeXT, cc -E runs the code through the compiler's parser,
5970   # not just through cpp. "Syntax error" is here to catch this case.
5971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h.  */
5973 #ifdef __STDC__
5974 # include <limits.h>
5975 #else
5976 # include <assert.h>
5977 #endif
5978                      Syntax error
5979 _ACEOF
5980 if ac_fn_cxx_try_cpp "$LINENO"; then :
5981
5982 else
5983   # Broken: fails on valid input.
5984 continue
5985 fi
5986 rm -f conftest.err conftest.i conftest.$ac_ext
5987
5988   # OK, works on sane cases.  Now check whether nonexistent headers
5989   # can be detected and how.
5990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h.  */
5992 #include <ac_nonexistent.h>
5993 _ACEOF
5994 if ac_fn_cxx_try_cpp "$LINENO"; then :
5995   # Broken: success on invalid input.
5996 continue
5997 else
5998   # Passes both tests.
5999 ac_preproc_ok=:
6000 break
6001 fi
6002 rm -f conftest.err conftest.i conftest.$ac_ext
6003
6004 done
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.i conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then :
6008
6009 else
6010   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6013 See \`config.log' for more details" "$LINENO" 5; }
6014 fi
6015
6016 ac_ext=cpp
6017 ac_cpp='$CXXCPP $CPPFLAGS'
6018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6021
6022 fi
6023
6024
6025 ac_ext=f
6026 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6027 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6029 if test -n "$ac_tool_prefix"; then
6030   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
6031   do
6032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_F77+:} false; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039   if test -n "$F77"; then
6040   ac_cv_prog_F77="$F77" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047     for ac_exec_ext in '' $ac_executable_extensions; do
6048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054   done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 F77=$ac_cv_prog_F77
6060 if test -n "$F77"; then
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6062 $as_echo "$F77" >&6; }
6063 else
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068
6069     test -n "$F77" && break
6070   done
6071 fi
6072 if test -z "$F77"; then
6073   ac_ct_F77=$F77
6074   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
6075 do
6076   # Extract the first word of "$ac_prog", so it can be a program name with args.
6077 set dummy $ac_prog; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   if test -n "$ac_ct_F77"; then
6084   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091     for ac_exec_ext in '' $ac_executable_extensions; do
6092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093     ac_cv_prog_ac_ct_F77="$ac_prog"
6094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095     break 2
6096   fi
6097 done
6098   done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6104 if test -n "$ac_ct_F77"; then
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6106 $as_echo "$ac_ct_F77" >&6; }
6107 else
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 fi
6111
6112
6113   test -n "$ac_ct_F77" && break
6114 done
6115
6116   if test "x$ac_ct_F77" = x; then
6117     F77=""
6118   else
6119     case $cross_compiling:$ac_tool_warned in
6120 yes:)
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6123 ac_tool_warned=yes ;;
6124 esac
6125     F77=$ac_ct_F77
6126   fi
6127 fi
6128
6129
6130 # Provide some information about the compiler.
6131 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6132 set X $ac_compile
6133 ac_compiler=$2
6134 for ac_option in --version -v -V -qversion; do
6135   { { ac_try="$ac_compiler $ac_option >&5"
6136 case "(($ac_try" in
6137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138   *) ac_try_echo=$ac_try;;
6139 esac
6140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6141 $as_echo "$ac_try_echo"; } >&5
6142   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6143   ac_status=$?
6144   if test -s conftest.err; then
6145     sed '10a\
6146 ... rest of stderr output deleted ...
6147          10q' conftest.err >conftest.er1
6148     cat conftest.er1 >&5
6149   fi
6150   rm -f conftest.er1 conftest.err
6151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152   test $ac_status = 0; }
6153 done
6154 rm -f a.out
6155
6156 # If we don't use `.F' as extension, the preprocessor is not run on the
6157 # input file.  (Note that this only needs to work for GNU compilers.)
6158 ac_save_ext=$ac_ext
6159 ac_ext=F
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6161 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6162 if ${ac_cv_f77_compiler_gnu+:} false; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   cat > conftest.$ac_ext <<_ACEOF
6166       program main
6167 #ifndef __GNUC__
6168        choke me
6169 #endif
6170
6171       end
6172 _ACEOF
6173 if ac_fn_f77_try_compile "$LINENO"; then :
6174   ac_compiler_gnu=yes
6175 else
6176   ac_compiler_gnu=no
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6183 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6184 ac_ext=$ac_save_ext
6185 ac_test_FFLAGS=${FFLAGS+set}
6186 ac_save_FFLAGS=$FFLAGS
6187 FFLAGS=
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6189 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6190 if ${ac_cv_prog_f77_g+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   FFLAGS=-g
6194 cat > conftest.$ac_ext <<_ACEOF
6195       program main
6196
6197       end
6198 _ACEOF
6199 if ac_fn_f77_try_compile "$LINENO"; then :
6200   ac_cv_prog_f77_g=yes
6201 else
6202   ac_cv_prog_f77_g=no
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6208 $as_echo "$ac_cv_prog_f77_g" >&6; }
6209 if test "$ac_test_FFLAGS" = set; then
6210   FFLAGS=$ac_save_FFLAGS
6211 elif test $ac_cv_prog_f77_g = yes; then
6212   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6213     FFLAGS="-g -O2"
6214   else
6215     FFLAGS="-g"
6216   fi
6217 else
6218   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6219     FFLAGS="-O2"
6220   else
6221     FFLAGS=
6222   fi
6223 fi
6224
6225 if test $ac_compiler_gnu = yes; then
6226   G77=yes
6227 else
6228   G77=
6229 fi
6230 ac_ext=c
6231 ac_cpp='$CPP $CPPFLAGS'
6232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235
6236
6237
6238 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6239 # find the maximum length of command line arguments
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6241 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6242 if ${lt_cv_sys_max_cmd_len+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245     i=0
6246   teststring="ABCD"
6247
6248   case $build_os in
6249   msdosdjgpp*)
6250     # On DJGPP, this test can blow up pretty badly due to problems in libc
6251     # (any single argument exceeding 2000 bytes causes a buffer overrun
6252     # during glob expansion).  Even if it were fixed, the result of this
6253     # check would be larger than it should be.
6254     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6255     ;;
6256
6257   gnu*)
6258     # Under GNU Hurd, this test is not required because there is
6259     # no limit to the length of command line arguments.
6260     # Libtool will interpret -1 as no limit whatsoever
6261     lt_cv_sys_max_cmd_len=-1;
6262     ;;
6263
6264   cygwin* | mingw*)
6265     # On Win9x/ME, this test blows up -- it succeeds, but takes
6266     # about 5 minutes as the teststring grows exponentially.
6267     # Worse, since 9x/ME are not pre-emptively multitasking,
6268     # you end up with a "frozen" computer, even though with patience
6269     # the test eventually succeeds (with a max line length of 256k).
6270     # Instead, let's just punt: use the minimum linelength reported by
6271     # all of the supported platforms: 8192 (on NT/2K/XP).
6272     lt_cv_sys_max_cmd_len=8192;
6273     ;;
6274
6275   amigaos*)
6276     # On AmigaOS with pdksh, this test takes hours, literally.
6277     # So we just punt and use a minimum line length of 8192.
6278     lt_cv_sys_max_cmd_len=8192;
6279     ;;
6280
6281   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6282     # This has been around since 386BSD, at least.  Likely further.
6283     if test -x /sbin/sysctl; then
6284       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6285     elif test -x /usr/sbin/sysctl; then
6286       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6287     else
6288       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6289     fi
6290     # And add a safety zone
6291     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6292     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6293     ;;
6294
6295   interix*)
6296     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6297     lt_cv_sys_max_cmd_len=196608
6298     ;;
6299
6300   osf*)
6301     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6302     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6303     # nice to cause kernel panics so lets avoid the loop below.
6304     # First set a reasonable default.
6305     lt_cv_sys_max_cmd_len=16384
6306     #
6307     if test -x /sbin/sysconfig; then
6308       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6309         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6310       esac
6311     fi
6312     ;;
6313   sco3.2v5*)
6314     lt_cv_sys_max_cmd_len=102400
6315     ;;
6316   sysv5* | sco5v6* | sysv4.2uw2*)
6317     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6318     if test -n "$kargmax"; then
6319       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6320     else
6321       lt_cv_sys_max_cmd_len=32768
6322     fi
6323     ;;
6324   *)
6325     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6326     if test -n "$lt_cv_sys_max_cmd_len"; then
6327       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6328       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6329     else
6330       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6331       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6332                = "XX$teststring") >/dev/null 2>&1 &&
6333               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6334               lt_cv_sys_max_cmd_len=$new_result &&
6335               test $i != 17 # 1/2 MB should be enough
6336       do
6337         i=`expr $i + 1`
6338         teststring=$teststring$teststring
6339       done
6340       teststring=
6341       # Add a significant safety factor because C++ compilers can tack on massive
6342       # amounts of additional arguments before passing them to the linker.
6343       # It appears as though 1/2 is a usable value.
6344       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6345     fi
6346     ;;
6347   esac
6348
6349 fi
6350
6351 if test -n $lt_cv_sys_max_cmd_len ; then
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6353 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6354 else
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6356 $as_echo "none" >&6; }
6357 fi
6358
6359
6360
6361
6362
6363 # Check for command to grab the raw symbol name followed by C symbol from nm.
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6365 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6366 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369
6370 # These are sane defaults that work on at least a few old systems.
6371 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6372
6373 # Character class describing NM global symbol codes.
6374 symcode='[BCDEGRST]'
6375
6376 # Regexp to match symbols that can be accessed directly from C.
6377 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6378
6379 # Transform an extracted symbol line into a proper C declaration
6380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6381
6382 # Transform an extracted symbol line into symbol name and symbol address
6383 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'"
6384
6385 # Define system-specific variables.
6386 case $host_os in
6387 aix*)
6388   symcode='[BCDT]'
6389   ;;
6390 cygwin* | mingw* | pw32*)
6391   symcode='[ABCDGISTW]'
6392   ;;
6393 hpux*) # Its linker distinguishes data from code symbols
6394   if test "$host_cpu" = ia64; then
6395     symcode='[ABCDEGRST]'
6396   fi
6397   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6398   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'"
6399   ;;
6400 linux* | k*bsd*-gnu)
6401   if test "$host_cpu" = ia64; then
6402     symcode='[ABCDGIRSTW]'
6403     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6404     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'"
6405   fi
6406   ;;
6407 irix* | nonstopux*)
6408   symcode='[BCDEGRST]'
6409   ;;
6410 osf*)
6411   symcode='[BCDEGQRST]'
6412   ;;
6413 solaris*)
6414   symcode='[BDRT]'
6415   ;;
6416 sco3.2v5*)
6417   symcode='[DT]'
6418   ;;
6419 sysv4.2uw2*)
6420   symcode='[DT]'
6421   ;;
6422 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6423   symcode='[ABDT]'
6424   ;;
6425 sysv4)
6426   symcode='[DFNSTU]'
6427   ;;
6428 esac
6429
6430 # Handle CRLF in mingw tool chain
6431 opt_cr=
6432 case $build_os in
6433 mingw*)
6434   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6435   ;;
6436 esac
6437
6438 # If we're using GNU nm, then use its standard symbol codes.
6439 case `$NM -V 2>&1` in
6440 *GNU* | *'with BFD'*)
6441   symcode='[ABCDGIRSTW]' ;;
6442 esac
6443
6444 # Try without a prefix undercore, then with it.
6445 for ac_symprfx in "" "_"; do
6446
6447   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6448   symxfrm="\\1 $ac_symprfx\\2 \\2"
6449
6450   # Write the raw and C identifiers.
6451   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6452
6453   # Check to see that the pipe works correctly.
6454   pipe_works=no
6455
6456   rm -f conftest*
6457   cat > conftest.$ac_ext <<EOF
6458 #ifdef __cplusplus
6459 extern "C" {
6460 #endif
6461 char nm_test_var;
6462 void nm_test_func(){}
6463 #ifdef __cplusplus
6464 }
6465 #endif
6466 int main(){nm_test_var='a';nm_test_func();return(0);}
6467 EOF
6468
6469   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6470   (eval $ac_compile) 2>&5
6471   ac_status=$?
6472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473   test $ac_status = 0; }; then
6474     # Now try to grab the symbols.
6475     nlist=conftest.nm
6476     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6477   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6478   ac_status=$?
6479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480   test $ac_status = 0; } && test -s "$nlist"; then
6481       # Try sorting and uniquifying the output.
6482       if sort "$nlist" | uniq > "$nlist"T; then
6483         mv -f "$nlist"T "$nlist"
6484       else
6485         rm -f "$nlist"T
6486       fi
6487
6488       # Make sure that we snagged all the symbols we need.
6489       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6490         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6491           cat <<EOF > conftest.$ac_ext
6492 #ifdef __cplusplus
6493 extern "C" {
6494 #endif
6495
6496 EOF
6497           # Now generate the symbol file.
6498           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6499
6500           cat <<EOF >> conftest.$ac_ext
6501 #if defined (__STDC__) && __STDC__
6502 # define lt_ptr_t void *
6503 #else
6504 # define lt_ptr_t char *
6505 # define const
6506 #endif
6507
6508 /* The mapping between symbol names and symbols. */
6509 const struct {
6510   const char *name;
6511   lt_ptr_t address;
6512 }
6513 lt_preloaded_symbols[] =
6514 {
6515 EOF
6516           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6517           cat <<\EOF >> conftest.$ac_ext
6518   {0, (lt_ptr_t) 0}
6519 };
6520
6521 #ifdef __cplusplus
6522 }
6523 #endif
6524 EOF
6525           # Now try linking the two files.
6526           mv conftest.$ac_objext conftstm.$ac_objext
6527           lt_save_LIBS="$LIBS"
6528           lt_save_CFLAGS="$CFLAGS"
6529           LIBS="conftstm.$ac_objext"
6530           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6531           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6532   (eval $ac_link) 2>&5
6533   ac_status=$?
6534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6536             pipe_works=yes
6537           fi
6538           LIBS="$lt_save_LIBS"
6539           CFLAGS="$lt_save_CFLAGS"
6540         else
6541           echo "cannot find nm_test_func in $nlist" >&5
6542         fi
6543       else
6544         echo "cannot find nm_test_var in $nlist" >&5
6545       fi
6546     else
6547       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6548     fi
6549   else
6550     echo "$progname: failed program was:" >&5
6551     cat conftest.$ac_ext >&5
6552   fi
6553   rm -rf conftest* conftst*
6554
6555   # Do not use the global_symbol_pipe unless it works.
6556   if test "$pipe_works" = yes; then
6557     break
6558   else
6559     lt_cv_sys_global_symbol_pipe=
6560   fi
6561 done
6562
6563 fi
6564
6565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6566   lt_cv_sys_global_symbol_to_cdecl=
6567 fi
6568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6570 $as_echo "failed" >&6; }
6571 else
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6573 $as_echo "ok" >&6; }
6574 fi
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6577 $as_echo_n "checking for objdir... " >&6; }
6578 if ${lt_cv_objdir+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   rm -f .libs 2>/dev/null
6582 mkdir .libs 2>/dev/null
6583 if test -d .libs; then
6584   lt_cv_objdir=.libs
6585 else
6586   # MS-DOS does not allow filenames that begin with a dot.
6587   lt_cv_objdir=_libs
6588 fi
6589 rmdir .libs 2>/dev/null
6590 fi
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6592 $as_echo "$lt_cv_objdir" >&6; }
6593 objdir=$lt_cv_objdir
6594
6595
6596
6597
6598
6599 case $host_os in
6600 aix3*)
6601   # AIX sometimes has problems with the GCC collect2 program.  For some
6602   # reason, if we set the COLLECT_NAMES environment variable, the problems
6603   # vanish in a puff of smoke.
6604   if test "X${COLLECT_NAMES+set}" != Xset; then
6605     COLLECT_NAMES=
6606     export COLLECT_NAMES
6607   fi
6608   ;;
6609 esac
6610
6611 # Sed substitution that helps us do robust quoting.  It backslashifies
6612 # metacharacters that are still active within double-quoted strings.
6613 Xsed='sed -e 1s/^X//'
6614 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6615
6616 # Same as above, but do not quote variable references.
6617 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6618
6619 # Sed substitution to delay expansion of an escaped shell variable in a
6620 # double_quote_subst'ed string.
6621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6622
6623 # Sed substitution to avoid accidental globbing in evaled expressions
6624 no_glob_subst='s/\*/\\\*/g'
6625
6626 # Constants:
6627 rm="rm -f"
6628
6629 # Global variables:
6630 default_ofile=libtool
6631 can_build_shared=yes
6632
6633 # All known linkers require a `.a' archive for static linking (except MSVC,
6634 # which needs '.lib').
6635 libext=a
6636 ltmain="$ac_aux_dir/ltmain.sh"
6637 ofile="$default_ofile"
6638 with_gnu_ld="$lt_cv_prog_gnu_ld"
6639
6640 if test -n "$ac_tool_prefix"; then
6641   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}ar; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_AR+:} false; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648   if test -n "$AR"; then
6649   ac_cv_prog_AR="$AR" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656     for ac_exec_ext in '' $ac_executable_extensions; do
6657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658     ac_cv_prog_AR="${ac_tool_prefix}ar"
6659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663   done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 AR=$ac_cv_prog_AR
6669 if test -n "$AR"; then
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6671 $as_echo "$AR" >&6; }
6672 else
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677
6678 fi
6679 if test -z "$ac_cv_prog_AR"; then
6680   ac_ct_AR=$AR
6681   # Extract the first word of "ar", so it can be a program name with args.
6682 set dummy ar; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6686   $as_echo_n "(cached) " >&6
6687 else
6688   if test -n "$ac_ct_AR"; then
6689   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696     for ac_exec_ext in '' $ac_executable_extensions; do
6697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698     ac_cv_prog_ac_ct_AR="ar"
6699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703   done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6709 if test -n "$ac_ct_AR"; then
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6711 $as_echo "$ac_ct_AR" >&6; }
6712 else
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717   if test "x$ac_ct_AR" = x; then
6718     AR="false"
6719   else
6720     case $cross_compiling:$ac_tool_warned in
6721 yes:)
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724 ac_tool_warned=yes ;;
6725 esac
6726     AR=$ac_ct_AR
6727   fi
6728 else
6729   AR="$ac_cv_prog_AR"
6730 fi
6731
6732 if test -n "$ac_tool_prefix"; then
6733   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_RANLIB+:} false; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   if test -n "$RANLIB"; then
6741   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748     for ac_exec_ext in '' $ac_executable_extensions; do
6749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755   done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 RANLIB=$ac_cv_prog_RANLIB
6761 if test -n "$RANLIB"; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6763 $as_echo "$RANLIB" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769
6770 fi
6771 if test -z "$ac_cv_prog_RANLIB"; then
6772   ac_ct_RANLIB=$RANLIB
6773   # Extract the first word of "ranlib", so it can be a program name with args.
6774 set dummy ranlib; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   if test -n "$ac_ct_RANLIB"; then
6781   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790     ac_cv_prog_ac_ct_RANLIB="ranlib"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6801 if test -n "$ac_ct_RANLIB"; then
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6803 $as_echo "$ac_ct_RANLIB" >&6; }
6804 else
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809   if test "x$ac_ct_RANLIB" = x; then
6810     RANLIB=":"
6811   else
6812     case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818     RANLIB=$ac_ct_RANLIB
6819   fi
6820 else
6821   RANLIB="$ac_cv_prog_RANLIB"
6822 fi
6823
6824 if test -n "$ac_tool_prefix"; then
6825   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}strip; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_STRIP+:} false; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   if test -n "$STRIP"; then
6833   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840     for ac_exec_ext in '' $ac_executable_extensions; do
6841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847   done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 STRIP=$ac_cv_prog_STRIP
6853 if test -n "$STRIP"; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6855 $as_echo "$STRIP" >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_STRIP"; then
6864   ac_ct_STRIP=$STRIP
6865   # Extract the first word of "strip", so it can be a program name with args.
6866 set dummy strip; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   if test -n "$ac_ct_STRIP"; then
6873   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_exec_ext in '' $ac_executable_extensions; do
6881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882     ac_cv_prog_ac_ct_STRIP="strip"
6883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887   done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6893 if test -n "$ac_ct_STRIP"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6895 $as_echo "$ac_ct_STRIP" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901   if test "x$ac_ct_STRIP" = x; then
6902     STRIP=":"
6903   else
6904     case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910     STRIP=$ac_ct_STRIP
6911   fi
6912 else
6913   STRIP="$ac_cv_prog_STRIP"
6914 fi
6915
6916
6917 old_CC="$CC"
6918 old_CFLAGS="$CFLAGS"
6919
6920 # Set sane defaults for various variables
6921 test -z "$AR" && AR=ar
6922 test -z "$AR_FLAGS" && AR_FLAGS=cru
6923 test -z "$AS" && AS=as
6924 test -z "$CC" && CC=cc
6925 test -z "$LTCC" && LTCC=$CC
6926 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6927 test -z "$DLLTOOL" && DLLTOOL=dlltool
6928 test -z "$LD" && LD=ld
6929 test -z "$LN_S" && LN_S="ln -s"
6930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6931 test -z "$NM" && NM=nm
6932 test -z "$SED" && SED=sed
6933 test -z "$OBJDUMP" && OBJDUMP=objdump
6934 test -z "$RANLIB" && RANLIB=:
6935 test -z "$STRIP" && STRIP=:
6936 test -z "$ac_objext" && ac_objext=o
6937
6938 # Determine commands to create old-style static archives.
6939 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6940 old_postinstall_cmds='chmod 644 $oldlib'
6941 old_postuninstall_cmds=
6942
6943 if test -n "$RANLIB"; then
6944   case $host_os in
6945   openbsd*)
6946     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6947     ;;
6948   *)
6949     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6950     ;;
6951   esac
6952   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6953 fi
6954
6955 for cc_temp in $compiler""; do
6956   case $cc_temp in
6957     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6958     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6959     \-*) ;;
6960     *) break;;
6961   esac
6962 done
6963 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6964
6965
6966 # Only perform the check for file, if the check method requires it
6967 case $deplibs_check_method in
6968 file_magic*)
6969   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6972 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6973   $as_echo_n "(cached) " >&6
6974 else
6975   case $MAGIC_CMD in
6976 [\\/*] |  ?:[\\/]*)
6977   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6978   ;;
6979 *)
6980   lt_save_MAGIC_CMD="$MAGIC_CMD"
6981   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6982   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6983   for ac_dir in $ac_dummy; do
6984     IFS="$lt_save_ifs"
6985     test -z "$ac_dir" && ac_dir=.
6986     if test -f $ac_dir/${ac_tool_prefix}file; then
6987       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6988       if test -n "$file_magic_test_file"; then
6989         case $deplibs_check_method in
6990         "file_magic "*)
6991           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6992           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6993           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6994             $EGREP "$file_magic_regex" > /dev/null; then
6995             :
6996           else
6997             cat <<EOF 1>&2
6998
6999 *** Warning: the command libtool uses to detect shared libraries,
7000 *** $file_magic_cmd, produces output that libtool cannot recognize.
7001 *** The result is that libtool may fail to recognize shared libraries
7002 *** as such.  This will affect the creation of libtool libraries that
7003 *** depend on shared libraries, but programs linked with such libtool
7004 *** libraries will work regardless of this problem.  Nevertheless, you
7005 *** may want to report the problem to your system manager and/or to
7006 *** bug-libtool@gnu.org
7007
7008 EOF
7009           fi ;;
7010         esac
7011       fi
7012       break
7013     fi
7014   done
7015   IFS="$lt_save_ifs"
7016   MAGIC_CMD="$lt_save_MAGIC_CMD"
7017   ;;
7018 esac
7019 fi
7020
7021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7022 if test -n "$MAGIC_CMD"; then
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7024 $as_echo "$MAGIC_CMD" >&6; }
7025 else
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030 if test -z "$lt_cv_path_MAGIC_CMD"; then
7031   if test -n "$ac_tool_prefix"; then
7032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7033 $as_echo_n "checking for file... " >&6; }
7034 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   case $MAGIC_CMD in
7038 [\\/*] |  ?:[\\/]*)
7039   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7040   ;;
7041 *)
7042   lt_save_MAGIC_CMD="$MAGIC_CMD"
7043   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7044   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7045   for ac_dir in $ac_dummy; do
7046     IFS="$lt_save_ifs"
7047     test -z "$ac_dir" && ac_dir=.
7048     if test -f $ac_dir/file; then
7049       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7050       if test -n "$file_magic_test_file"; then
7051         case $deplibs_check_method in
7052         "file_magic "*)
7053           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7054           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7055           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7056             $EGREP "$file_magic_regex" > /dev/null; then
7057             :
7058           else
7059             cat <<EOF 1>&2
7060
7061 *** Warning: the command libtool uses to detect shared libraries,
7062 *** $file_magic_cmd, produces output that libtool cannot recognize.
7063 *** The result is that libtool may fail to recognize shared libraries
7064 *** as such.  This will affect the creation of libtool libraries that
7065 *** depend on shared libraries, but programs linked with such libtool
7066 *** libraries will work regardless of this problem.  Nevertheless, you
7067 *** may want to report the problem to your system manager and/or to
7068 *** bug-libtool@gnu.org
7069
7070 EOF
7071           fi ;;
7072         esac
7073       fi
7074       break
7075     fi
7076   done
7077   IFS="$lt_save_ifs"
7078   MAGIC_CMD="$lt_save_MAGIC_CMD"
7079   ;;
7080 esac
7081 fi
7082
7083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7084 if test -n "$MAGIC_CMD"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7086 $as_echo "$MAGIC_CMD" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092   else
7093     MAGIC_CMD=:
7094   fi
7095 fi
7096
7097   fi
7098   ;;
7099 esac
7100
7101
7102   case $host_os in
7103     rhapsody* | darwin*)
7104     if test -n "$ac_tool_prefix"; then
7105   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7106 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   if test -n "$DSYMUTIL"; then
7113   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120     for ac_exec_ext in '' $ac_executable_extensions; do
7121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127   done
7128 IFS=$as_save_IFS
7129
7130 fi
7131 fi
7132 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7133 if test -n "$DSYMUTIL"; then
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7135 $as_echo "$DSYMUTIL" >&6; }
7136 else
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141
7142 fi
7143 if test -z "$ac_cv_prog_DSYMUTIL"; then
7144   ac_ct_DSYMUTIL=$DSYMUTIL
7145   # Extract the first word of "dsymutil", so it can be a program name with args.
7146 set dummy dsymutil; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7150   $as_echo_n "(cached) " >&6
7151 else
7152   if test -n "$ac_ct_DSYMUTIL"; then
7153   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160     for ac_exec_ext in '' $ac_executable_extensions; do
7161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167   done
7168 IFS=$as_save_IFS
7169
7170 fi
7171 fi
7172 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7173 if test -n "$ac_ct_DSYMUTIL"; then
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7175 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7176 else
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7179 fi
7180
7181   if test "x$ac_ct_DSYMUTIL" = x; then
7182     DSYMUTIL=":"
7183   else
7184     case $cross_compiling:$ac_tool_warned in
7185 yes:)
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188 ac_tool_warned=yes ;;
7189 esac
7190     DSYMUTIL=$ac_ct_DSYMUTIL
7191   fi
7192 else
7193   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7194 fi
7195
7196     if test -n "$ac_tool_prefix"; then
7197   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_NMEDIT+:} false; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   if test -n "$NMEDIT"; then
7205   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212     for ac_exec_ext in '' $ac_executable_extensions; do
7213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219   done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 NMEDIT=$ac_cv_prog_NMEDIT
7225 if test -n "$NMEDIT"; then
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7227 $as_echo "$NMEDIT" >&6; }
7228 else
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233
7234 fi
7235 if test -z "$ac_cv_prog_NMEDIT"; then
7236   ac_ct_NMEDIT=$NMEDIT
7237   # Extract the first word of "nmedit", so it can be a program name with args.
7238 set dummy nmedit; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7242   $as_echo_n "(cached) " >&6
7243 else
7244   if test -n "$ac_ct_NMEDIT"; then
7245   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252     for ac_exec_ext in '' $ac_executable_extensions; do
7253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259   done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7265 if test -n "$ac_ct_NMEDIT"; then
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7267 $as_echo "$ac_ct_NMEDIT" >&6; }
7268 else
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273   if test "x$ac_ct_NMEDIT" = x; then
7274     NMEDIT=":"
7275   else
7276     case $cross_compiling:$ac_tool_warned in
7277 yes:)
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280 ac_tool_warned=yes ;;
7281 esac
7282     NMEDIT=$ac_ct_NMEDIT
7283   fi
7284 else
7285   NMEDIT="$ac_cv_prog_NMEDIT"
7286 fi
7287
7288
7289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7290 $as_echo_n "checking for -single_module linker flag... " >&6; }
7291 if ${lt_cv_apple_cc_single_mod+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   lt_cv_apple_cc_single_mod=no
7295       if test -z "${LT_MULTI_MODULE}"; then
7296    # By default we will add the -single_module flag. You can override
7297    # by either setting the environment variable LT_MULTI_MODULE
7298    # non-empty at configure time, or by adding -multi_module to the
7299    # link flags.
7300    echo "int foo(void){return 1;}" > conftest.c
7301    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7302      -dynamiclib ${wl}-single_module conftest.c
7303    if test -f libconftest.dylib; then
7304      lt_cv_apple_cc_single_mod=yes
7305      rm -rf libconftest.dylib*
7306    fi
7307    rm conftest.c
7308       fi
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7311 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7313 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7314 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 else
7317   lt_cv_ld_exported_symbols_list=no
7318       save_LDFLAGS=$LDFLAGS
7319       echo "_main" > conftest.sym
7320       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7321       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h.  */
7323
7324 int
7325 main ()
7326 {
7327
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 if ac_fn_c_try_link "$LINENO"; then :
7333   lt_cv_ld_exported_symbols_list=yes
7334 else
7335   lt_cv_ld_exported_symbols_list=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext \
7338     conftest$ac_exeext conftest.$ac_ext
7339    LDFLAGS="$save_LDFLAGS"
7340
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7343 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7344     case $host_os in
7345     rhapsody* | darwin1.[0123])
7346       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7347     darwin1.*)
7348      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7349     darwin*)
7350       # if running on 10.5 or later, the deployment target defaults
7351       # to the OS version, if on x86, and 10.4, the deployment
7352       # target defaults to 10.4. Don't you love it?
7353       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7354    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7355      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7356    10.[012]*)
7357      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7358    10.*)
7359      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7360       esac
7361     ;;
7362   esac
7363     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7364       _lt_dar_single_mod='$single_module'
7365     fi
7366     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7367       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7368     else
7369       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7370     fi
7371     if test "$DSYMUTIL" != ":"; then
7372       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7373     else
7374       _lt_dsymutil=
7375     fi
7376     ;;
7377   esac
7378
7379
7380 enable_dlopen=yes
7381 enable_win32_dll=no
7382
7383 # Check whether --enable-libtool-lock was given.
7384 if test "${enable_libtool_lock+set}" = set; then :
7385   enableval=$enable_libtool_lock;
7386 fi
7387
7388 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7389
7390
7391 # Check whether --with-pic was given.
7392 if test "${with_pic+set}" = set; then :
7393   withval=$with_pic; pic_mode="$withval"
7394 else
7395   pic_mode=default
7396 fi
7397
7398 test -z "$pic_mode" && pic_mode=default
7399
7400 # Use C for the default configuration in the libtool script
7401 tagname=
7402 lt_save_CC="$CC"
7403 ac_ext=c
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409
7410 # Source file extension for C test sources.
7411 ac_ext=c
7412
7413 # Object file extension for compiled C test sources.
7414 objext=o
7415 objext=$objext
7416
7417 # Code to be used in simple compile tests
7418 lt_simple_compile_test_code="int some_variable = 0;"
7419
7420 # Code to be used in simple link tests
7421 lt_simple_link_test_code='int main(){return(0);}'
7422
7423
7424 # If no C compiler was specified, use CC.
7425 LTCC=${LTCC-"$CC"}
7426
7427 # If no C compiler flags were specified, use CFLAGS.
7428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7429
7430 # Allow CC to be a program name with arguments.
7431 compiler=$CC
7432
7433
7434 # save warnings/boilerplate of simple test code
7435 ac_outfile=conftest.$ac_objext
7436 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7438 _lt_compiler_boilerplate=`cat conftest.err`
7439 $rm conftest*
7440
7441 ac_outfile=conftest.$ac_objext
7442 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7444 _lt_linker_boilerplate=`cat conftest.err`
7445 $rm -r conftest*
7446
7447
7448
7449 lt_prog_compiler_no_builtin_flag=
7450
7451 if test "$GCC" = yes; then
7452   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7453
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7456 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7457 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   lt_cv_prog_compiler_rtti_exceptions=no
7461   ac_outfile=conftest.$ac_objext
7462    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7463    lt_compiler_flag="-fno-rtti -fno-exceptions"
7464    # Insert the option either (1) after the last *FLAGS variable, or
7465    # (2) before a word containing "conftest.", or (3) at the end.
7466    # Note that $ac_compile itself does not contain backslashes and begins
7467    # with a dollar sign (not a hyphen), so the echo should work correctly.
7468    # The option is referenced via a variable to avoid confusing sed.
7469    lt_compile=`echo "$ac_compile" | $SED \
7470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7472    -e 's:$: $lt_compiler_flag:'`
7473    (eval echo "\"\$as_me:7473: $lt_compile\"" >&5)
7474    (eval "$lt_compile" 2>conftest.err)
7475    ac_status=$?
7476    cat conftest.err >&5
7477    echo "$as_me:7477: \$? = $ac_status" >&5
7478    if (exit $ac_status) && test -s "$ac_outfile"; then
7479      # The compiler can only warn and ignore the option if not recognized
7480      # So say no if there are warnings other than the usual output.
7481      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7482      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7483      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7484        lt_cv_prog_compiler_rtti_exceptions=yes
7485      fi
7486    fi
7487    $rm conftest*
7488
7489 fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7491 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7492
7493 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7494     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7495 else
7496     :
7497 fi
7498
7499 fi
7500
7501 lt_prog_compiler_wl=
7502 lt_prog_compiler_pic=
7503 lt_prog_compiler_static=
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7506 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7507
7508   if test "$GCC" = yes; then
7509     lt_prog_compiler_wl='-Wl,'
7510     lt_prog_compiler_static='-static'
7511
7512     case $host_os in
7513       aix*)
7514       # All AIX code is PIC.
7515       if test "$host_cpu" = ia64; then
7516         # AIX 5 now supports IA64 processor
7517         lt_prog_compiler_static='-Bstatic'
7518       fi
7519       ;;
7520
7521     amigaos*)
7522       # FIXME: we need at least 68020 code to build shared libraries, but
7523       # adding the `-m68020' flag to GCC prevents building anything better,
7524       # like `-m68040'.
7525       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7526       ;;
7527
7528     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7529       # PIC is the default for these OSes.
7530       ;;
7531
7532     mingw* | cygwin* | pw32* | os2*)
7533       # This hack is so that the source file can tell whether it is being
7534       # built for inclusion in a dll (and should export symbols for example).
7535       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7536       # (--disable-auto-import) libraries
7537       lt_prog_compiler_pic='-DDLL_EXPORT'
7538       ;;
7539
7540     darwin* | rhapsody*)
7541       # PIC is the default on this platform
7542       # Common symbols not allowed in MH_DYLIB files
7543       lt_prog_compiler_pic='-fno-common'
7544       ;;
7545
7546     interix[3-9]*)
7547       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7548       # Instead, we relocate shared libraries at runtime.
7549       ;;
7550
7551     msdosdjgpp*)
7552       # Just because we use GCC doesn't mean we suddenly get shared libraries
7553       # on systems that don't support them.
7554       lt_prog_compiler_can_build_shared=no
7555       enable_shared=no
7556       ;;
7557
7558     sysv4*MP*)
7559       if test -d /usr/nec; then
7560         lt_prog_compiler_pic=-Kconform_pic
7561       fi
7562       ;;
7563
7564     hpux*)
7565       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7566       # not for PA HP-UX.
7567       case $host_cpu in
7568       hppa*64*|ia64*)
7569         # +Z the default
7570         ;;
7571       *)
7572         lt_prog_compiler_pic='-fPIC'
7573         ;;
7574       esac
7575       ;;
7576
7577     *)
7578       lt_prog_compiler_pic='-fPIC'
7579       ;;
7580     esac
7581   else
7582     # PORTME Check for flag to pass linker flags through the system compiler.
7583     case $host_os in
7584     aix*)
7585       lt_prog_compiler_wl='-Wl,'
7586       if test "$host_cpu" = ia64; then
7587         # AIX 5 now supports IA64 processor
7588         lt_prog_compiler_static='-Bstatic'
7589       else
7590         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7591       fi
7592       ;;
7593       darwin*)
7594         # PIC is the default on this platform
7595         # Common symbols not allowed in MH_DYLIB files
7596        case $cc_basename in
7597          xlc*)
7598          lt_prog_compiler_pic='-qnocommon'
7599          lt_prog_compiler_wl='-Wl,'
7600          ;;
7601        esac
7602        ;;
7603
7604     mingw* | cygwin* | pw32* | os2*)
7605       # This hack is so that the source file can tell whether it is being
7606       # built for inclusion in a dll (and should export symbols for example).
7607       lt_prog_compiler_pic='-DDLL_EXPORT'
7608       ;;
7609
7610     hpux9* | hpux10* | hpux11*)
7611       lt_prog_compiler_wl='-Wl,'
7612       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7613       # not for PA HP-UX.
7614       case $host_cpu in
7615       hppa*64*|ia64*)
7616         # +Z the default
7617         ;;
7618       *)
7619         lt_prog_compiler_pic='+Z'
7620         ;;
7621       esac
7622       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7623       lt_prog_compiler_static='${wl}-a ${wl}archive'
7624       ;;
7625
7626     irix5* | irix6* | nonstopux*)
7627       lt_prog_compiler_wl='-Wl,'
7628       # PIC (with -KPIC) is the default.
7629       lt_prog_compiler_static='-non_shared'
7630       ;;
7631
7632     newsos6)
7633       lt_prog_compiler_pic='-KPIC'
7634       lt_prog_compiler_static='-Bstatic'
7635       ;;
7636
7637     linux* | k*bsd*-gnu)
7638       case $cc_basename in
7639       icc* | ecc*)
7640         lt_prog_compiler_wl='-Wl,'
7641         lt_prog_compiler_pic='-KPIC'
7642         lt_prog_compiler_static='-static'
7643         ;;
7644       pgcc* | pgf77* | pgf90* | pgf95*)
7645         # Portland Group compilers (*not* the Pentium gcc compiler,
7646         # which looks to be a dead project)
7647         lt_prog_compiler_wl='-Wl,'
7648         lt_prog_compiler_pic='-fpic'
7649         lt_prog_compiler_static='-Bstatic'
7650         ;;
7651       ccc*)
7652         lt_prog_compiler_wl='-Wl,'
7653         # All Alpha code is PIC.
7654         lt_prog_compiler_static='-non_shared'
7655         ;;
7656       *)
7657         case `$CC -V 2>&1 | sed 5q` in
7658         *Sun\ C*)
7659           # Sun C 5.9
7660           lt_prog_compiler_pic='-KPIC'
7661           lt_prog_compiler_static='-Bstatic'
7662           lt_prog_compiler_wl='-Wl,'
7663           ;;
7664         *Sun\ F*)
7665           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7666           lt_prog_compiler_pic='-KPIC'
7667           lt_prog_compiler_static='-Bstatic'
7668           lt_prog_compiler_wl=''
7669           ;;
7670         esac
7671         ;;
7672       esac
7673       ;;
7674
7675     osf3* | osf4* | osf5*)
7676       lt_prog_compiler_wl='-Wl,'
7677       # All OSF/1 code is PIC.
7678       lt_prog_compiler_static='-non_shared'
7679       ;;
7680
7681     rdos*)
7682       lt_prog_compiler_static='-non_shared'
7683       ;;
7684
7685     solaris*)
7686       lt_prog_compiler_pic='-KPIC'
7687       lt_prog_compiler_static='-Bstatic'
7688       case $cc_basename in
7689       f77* | f90* | f95*)
7690         lt_prog_compiler_wl='-Qoption ld ';;
7691       *)
7692         lt_prog_compiler_wl='-Wl,';;
7693       esac
7694       ;;
7695
7696     sunos4*)
7697       lt_prog_compiler_wl='-Qoption ld '
7698       lt_prog_compiler_pic='-PIC'
7699       lt_prog_compiler_static='-Bstatic'
7700       ;;
7701
7702     sysv4 | sysv4.2uw2* | sysv4.3*)
7703       lt_prog_compiler_wl='-Wl,'
7704       lt_prog_compiler_pic='-KPIC'
7705       lt_prog_compiler_static='-Bstatic'
7706       ;;
7707
7708     sysv4*MP*)
7709       if test -d /usr/nec ;then
7710         lt_prog_compiler_pic='-Kconform_pic'
7711         lt_prog_compiler_static='-Bstatic'
7712       fi
7713       ;;
7714
7715     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7716       lt_prog_compiler_wl='-Wl,'
7717       lt_prog_compiler_pic='-KPIC'
7718       lt_prog_compiler_static='-Bstatic'
7719       ;;
7720
7721     unicos*)
7722       lt_prog_compiler_wl='-Wl,'
7723       lt_prog_compiler_can_build_shared=no
7724       ;;
7725
7726     uts4*)
7727       lt_prog_compiler_pic='-pic'
7728       lt_prog_compiler_static='-Bstatic'
7729       ;;
7730
7731     *)
7732       lt_prog_compiler_can_build_shared=no
7733       ;;
7734     esac
7735   fi
7736
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7738 $as_echo "$lt_prog_compiler_pic" >&6; }
7739
7740 #
7741 # Check to make sure the PIC flag actually works.
7742 #
7743 if test -n "$lt_prog_compiler_pic"; then
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7746 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7747 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750   lt_cv_prog_compiler_pic_works=no
7751   ac_outfile=conftest.$ac_objext
7752    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7754    # Insert the option either (1) after the last *FLAGS variable, or
7755    # (2) before a word containing "conftest.", or (3) at the end.
7756    # Note that $ac_compile itself does not contain backslashes and begins
7757    # with a dollar sign (not a hyphen), so the echo should work correctly.
7758    # The option is referenced via a variable to avoid confusing sed.
7759    lt_compile=`echo "$ac_compile" | $SED \
7760    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762    -e 's:$: $lt_compiler_flag:'`
7763    (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764    (eval "$lt_compile" 2>conftest.err)
7765    ac_status=$?
7766    cat conftest.err >&5
7767    echo "$as_me:7767: \$? = $ac_status" >&5
7768    if (exit $ac_status) && test -s "$ac_outfile"; then
7769      # The compiler can only warn and ignore the option if not recognized
7770      # So say no if there are warnings other than the usual output.
7771      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7772      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774        lt_cv_prog_compiler_pic_works=yes
7775      fi
7776    fi
7777    $rm conftest*
7778
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7781 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7782
7783 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7784     case $lt_prog_compiler_pic in
7785      "" | " "*) ;;
7786      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7787      esac
7788 else
7789     lt_prog_compiler_pic=
7790      lt_prog_compiler_can_build_shared=no
7791 fi
7792
7793 fi
7794 case $host_os in
7795   # For platforms which do not support PIC, -DPIC is meaningless:
7796   *djgpp*)
7797     lt_prog_compiler_pic=
7798     ;;
7799   *)
7800     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7801     ;;
7802 esac
7803
7804 #
7805 # Check to make sure the static flag actually works.
7806 #
7807 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7809 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7810 if ${lt_cv_prog_compiler_static_works+:} false; then :
7811   $as_echo_n "(cached) " >&6
7812 else
7813   lt_cv_prog_compiler_static_works=no
7814    save_LDFLAGS="$LDFLAGS"
7815    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7816    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7817    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7818      # The linker can only warn and ignore the option if not recognized
7819      # So say no if there are warnings
7820      if test -s conftest.err; then
7821        # Append any errors to the config.log.
7822        cat conftest.err 1>&5
7823        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7824        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7825        if diff conftest.exp conftest.er2 >/dev/null; then
7826          lt_cv_prog_compiler_static_works=yes
7827        fi
7828      else
7829        lt_cv_prog_compiler_static_works=yes
7830      fi
7831    fi
7832    $rm -r conftest*
7833    LDFLAGS="$save_LDFLAGS"
7834
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7837 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7838
7839 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7840     :
7841 else
7842     lt_prog_compiler_static=
7843 fi
7844
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7848 if ${lt_cv_prog_compiler_c_o+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   lt_cv_prog_compiler_c_o=no
7852    $rm -r conftest 2>/dev/null
7853    mkdir conftest
7854    cd conftest
7855    mkdir out
7856    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7857
7858    lt_compiler_flag="-o out/conftest2.$ac_objext"
7859    # Insert the option either (1) after the last *FLAGS variable, or
7860    # (2) before a word containing "conftest.", or (3) at the end.
7861    # Note that $ac_compile itself does not contain backslashes and begins
7862    # with a dollar sign (not a hyphen), so the echo should work correctly.
7863    lt_compile=`echo "$ac_compile" | $SED \
7864    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7865    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7866    -e 's:$: $lt_compiler_flag:'`
7867    (eval echo "\"\$as_me:7867: $lt_compile\"" >&5)
7868    (eval "$lt_compile" 2>out/conftest.err)
7869    ac_status=$?
7870    cat out/conftest.err >&5
7871    echo "$as_me:7871: \$? = $ac_status" >&5
7872    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7873    then
7874      # The compiler can only warn and ignore the option if not recognized
7875      # So say no if there are warnings
7876      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7877      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7878      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7879        lt_cv_prog_compiler_c_o=yes
7880      fi
7881    fi
7882    chmod u+w . 2>&5
7883    $rm conftest*
7884    # SGI C++ compiler will create directory out/ii_files/ for
7885    # template instantiation
7886    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7887    $rm out/* && rmdir out
7888    cd ..
7889    rmdir conftest
7890    $rm conftest*
7891
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7894 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7895
7896
7897 hard_links="nottested"
7898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7899   # do not overwrite the value of need_locks provided by the user
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7901 $as_echo_n "checking if we can lock with hard links... " >&6; }
7902   hard_links=yes
7903   $rm conftest*
7904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7905   touch conftest.a
7906   ln conftest.a conftest.b 2>&5 || hard_links=no
7907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7909 $as_echo "$hard_links" >&6; }
7910   if test "$hard_links" = no; then
7911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7913     need_locks=warn
7914   fi
7915 else
7916   need_locks=no
7917 fi
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7920 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7921
7922   runpath_var=
7923   allow_undefined_flag=
7924   enable_shared_with_static_runtimes=no
7925   archive_cmds=
7926   archive_expsym_cmds=
7927   old_archive_From_new_cmds=
7928   old_archive_from_expsyms_cmds=
7929   export_dynamic_flag_spec=
7930   whole_archive_flag_spec=
7931   thread_safe_flag_spec=
7932   hardcode_libdir_flag_spec=
7933   hardcode_libdir_flag_spec_ld=
7934   hardcode_libdir_separator=
7935   hardcode_direct=no
7936   hardcode_minus_L=no
7937   hardcode_shlibpath_var=unsupported
7938   link_all_deplibs=unknown
7939   hardcode_automatic=no
7940   module_cmds=
7941   module_expsym_cmds=
7942   always_export_symbols=no
7943   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7944   # include_expsyms should be a list of space-separated symbols to be *always*
7945   # included in the symbol list
7946   include_expsyms=
7947   # exclude_expsyms can be an extended regexp of symbols to exclude
7948   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7949   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7950   # as well as any symbol that contains `d'.
7951   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7952   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7953   # platforms (ab)use it in PIC code, but their linkers get confused if
7954   # the symbol is explicitly referenced.  Since portable code cannot
7955   # rely on this symbol name, it's probably fine to never include it in
7956   # preloaded symbol tables.
7957   # Exclude shared library initialization/finalization symbols.
7958   extract_expsyms_cmds=
7959   # Just being paranoid about ensuring that cc_basename is set.
7960   for cc_temp in $compiler""; do
7961   case $cc_temp in
7962     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7963     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7964     \-*) ;;
7965     *) break;;
7966   esac
7967 done
7968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7969
7970   case $host_os in
7971   cygwin* | mingw* | pw32*)
7972     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7973     # When not using gcc, we currently assume that we are using
7974     # Microsoft Visual C++.
7975     if test "$GCC" != yes; then
7976       with_gnu_ld=no
7977     fi
7978     ;;
7979   interix*)
7980     # we just hope/assume this is gcc and not c89 (= MSVC++)
7981     with_gnu_ld=yes
7982     ;;
7983   openbsd*)
7984     with_gnu_ld=no
7985     ;;
7986   esac
7987
7988   ld_shlibs=yes
7989   if test "$with_gnu_ld" = yes; then
7990     # If archive_cmds runs LD, not CC, wlarc should be empty
7991     wlarc='${wl}'
7992
7993     # Set some defaults for GNU ld with shared library support. These
7994     # are reset later if shared libraries are not supported. Putting them
7995     # here allows them to be overridden if necessary.
7996     runpath_var=LD_RUN_PATH
7997     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7998     export_dynamic_flag_spec='${wl}--export-dynamic'
7999     # ancient GNU ld didn't support --whole-archive et. al.
8000     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8001         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8002       else
8003         whole_archive_flag_spec=
8004     fi
8005     supports_anon_versioning=no
8006     case `$LD -v 2>/dev/null` in
8007       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8008       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8009       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8010       *\ 2.11.*) ;; # other 2.11 versions
8011       *) supports_anon_versioning=yes ;;
8012     esac
8013
8014     # See if GNU ld supports shared libraries.
8015     case $host_os in
8016     aix[3-9]*)
8017       # On AIX/PPC, the GNU linker is very broken
8018       if test "$host_cpu" != ia64; then
8019         ld_shlibs=no
8020         cat <<EOF 1>&2
8021
8022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8023 *** to be unable to reliably create shared libraries on AIX.
8024 *** Therefore, libtool is disabling shared libraries support.  If you
8025 *** really care for shared libraries, you may want to modify your PATH
8026 *** so that a non-GNU linker is found, and then restart.
8027
8028 EOF
8029       fi
8030       ;;
8031
8032     amigaos*)
8033       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)'
8034       hardcode_libdir_flag_spec='-L$libdir'
8035       hardcode_minus_L=yes
8036
8037       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8038       # that the semantics of dynamic libraries on AmigaOS, at least up
8039       # to version 4, is to share data among multiple programs linked
8040       # with the same dynamic library.  Since this doesn't match the
8041       # behavior of shared libraries on other platforms, we can't use
8042       # them.
8043       ld_shlibs=no
8044       ;;
8045
8046     beos*)
8047       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8048         allow_undefined_flag=unsupported
8049         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8050         # support --undefined.  This deserves some investigation.  FIXME
8051         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052       else
8053         ld_shlibs=no
8054       fi
8055       ;;
8056
8057     cygwin* | mingw* | pw32*)
8058       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8059       # as there is no search path for DLLs.
8060       hardcode_libdir_flag_spec='-L$libdir'
8061       allow_undefined_flag=unsupported
8062       always_export_symbols=no
8063       enable_shared_with_static_runtimes=yes
8064       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8065
8066       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8067         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8068         # If the export-symbols file already is a .def file (1st line
8069         # is EXPORTS), use it as is; otherwise, prepend...
8070         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8071           cp $export_symbols $output_objdir/$soname.def;
8072         else
8073           echo EXPORTS > $output_objdir/$soname.def;
8074           cat $export_symbols >> $output_objdir/$soname.def;
8075         fi~
8076         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8077       else
8078         ld_shlibs=no
8079       fi
8080       ;;
8081
8082     interix[3-9]*)
8083       hardcode_direct=no
8084       hardcode_shlibpath_var=no
8085       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8086       export_dynamic_flag_spec='${wl}-E'
8087       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8088       # Instead, shared libraries are loaded at an image base (0x10000000 by
8089       # default) and relocated if they conflict, which is a slow very memory
8090       # consuming and fragmenting process.  To avoid this, we pick a random,
8091       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8092       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8093       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8094       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'
8095       ;;
8096
8097     gnu* | linux* | k*bsd*-gnu)
8098       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8099         tmp_addflag=
8100         case $cc_basename,$host_cpu in
8101         pgcc*)                          # Portland Group C compiler
8102           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'
8103           tmp_addflag=' $pic_flag'
8104           ;;
8105         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8106           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'
8107           tmp_addflag=' $pic_flag -Mnomain' ;;
8108         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8109           tmp_addflag=' -i_dynamic' ;;
8110         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8111           tmp_addflag=' -i_dynamic -nofor_main' ;;
8112         ifc* | ifort*)                  # Intel Fortran compiler
8113           tmp_addflag=' -nofor_main' ;;
8114         esac
8115         case `$CC -V 2>&1 | sed 5q` in
8116         *Sun\ C*)                       # Sun C 5.9
8117           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'
8118           tmp_sharedflag='-G' ;;
8119         *Sun\ F*)                       # Sun Fortran 8.3
8120           tmp_sharedflag='-G' ;;
8121         *)
8122           tmp_sharedflag='-shared' ;;
8123         esac
8124         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8125
8126         if test $supports_anon_versioning = yes; then
8127           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8128   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8129   $echo "local: *; };" >> $output_objdir/$libname.ver~
8130           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8131         fi
8132         link_all_deplibs=no
8133       else
8134         ld_shlibs=no
8135       fi
8136       ;;
8137
8138     netbsd* | netbsdelf*-gnu)
8139       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8140         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8141         wlarc=
8142       else
8143         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8145       fi
8146       ;;
8147
8148     solaris*)
8149       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8150         ld_shlibs=no
8151         cat <<EOF 1>&2
8152
8153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8154 *** create shared libraries on Solaris systems.  Therefore, libtool
8155 *** is disabling shared libraries support.  We urge you to upgrade GNU
8156 *** binutils to release 2.9.1 or newer.  Another option is to modify
8157 *** your PATH or compiler configuration so that the native linker is
8158 *** used, and then restart.
8159
8160 EOF
8161       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8162         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8164       else
8165         ld_shlibs=no
8166       fi
8167       ;;
8168
8169     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8170       case `$LD -v 2>&1` in
8171         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8172         ld_shlibs=no
8173         cat <<_LT_EOF 1>&2
8174
8175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8176 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8177 *** is disabling shared libraries support.  We urge you to upgrade GNU
8178 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8179 *** your PATH or compiler configuration so that the native linker is
8180 *** used, and then restart.
8181
8182 _LT_EOF
8183         ;;
8184         *)
8185           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8186             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8187             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8188             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8189           else
8190             ld_shlibs=no
8191           fi
8192         ;;
8193       esac
8194       ;;
8195
8196     sunos4*)
8197       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8198       wlarc=
8199       hardcode_direct=yes
8200       hardcode_shlibpath_var=no
8201       ;;
8202
8203     *)
8204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8207       else
8208         ld_shlibs=no
8209       fi
8210       ;;
8211     esac
8212
8213     if test "$ld_shlibs" = no; then
8214       runpath_var=
8215       hardcode_libdir_flag_spec=
8216       export_dynamic_flag_spec=
8217       whole_archive_flag_spec=
8218     fi
8219   else
8220     # PORTME fill in a description of your system's linker (not GNU ld)
8221     case $host_os in
8222     aix3*)
8223       allow_undefined_flag=unsupported
8224       always_export_symbols=yes
8225       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'
8226       # Note: this linker hardcodes the directories in LIBPATH if there
8227       # are no directories specified by -L.
8228       hardcode_minus_L=yes
8229       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8230         # Neither direct hardcoding nor static linking is supported with a
8231         # broken collect2.
8232         hardcode_direct=unsupported
8233       fi
8234       ;;
8235
8236     aix[4-9]*)
8237       if test "$host_cpu" = ia64; then
8238         # On IA64, the linker does run time linking by default, so we don't
8239         # have to do anything special.
8240         aix_use_runtimelinking=no
8241         exp_sym_flag='-Bexport'
8242         no_entry_flag=""
8243       else
8244         # If we're using GNU nm, then we don't want the "-C" option.
8245         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8246         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8247           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'
8248         else
8249           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'
8250         fi
8251         aix_use_runtimelinking=no
8252
8253         # Test if we are trying to use run time linking or normal
8254         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8255         # need to do runtime linking.
8256         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8257           for ld_flag in $LDFLAGS; do
8258           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8259             aix_use_runtimelinking=yes
8260             break
8261           fi
8262           done
8263           ;;
8264         esac
8265
8266         exp_sym_flag='-bexport'
8267         no_entry_flag='-bnoentry'
8268       fi
8269
8270       # When large executables or shared objects are built, AIX ld can
8271       # have problems creating the table of contents.  If linking a library
8272       # or program results in "error TOC overflow" add -mminimal-toc to
8273       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8274       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8275
8276       archive_cmds=''
8277       hardcode_direct=yes
8278       hardcode_libdir_separator=':'
8279       link_all_deplibs=yes
8280
8281       if test "$GCC" = yes; then
8282         case $host_os in aix4.[012]|aix4.[012].*)
8283         # We only want to do this on AIX 4.2 and lower, the check
8284         # below for broken collect2 doesn't work under 4.3+
8285           collect2name=`${CC} -print-prog-name=collect2`
8286           if test -f "$collect2name" && \
8287            strings "$collect2name" | grep resolve_lib_name >/dev/null
8288           then
8289           # We have reworked collect2
8290           :
8291           else
8292           # We have old collect2
8293           hardcode_direct=unsupported
8294           # It fails to find uninstalled libraries when the uninstalled
8295           # path is not listed in the libpath.  Setting hardcode_minus_L
8296           # to unsupported forces relinking
8297           hardcode_minus_L=yes
8298           hardcode_libdir_flag_spec='-L$libdir'
8299           hardcode_libdir_separator=
8300           fi
8301           ;;
8302         esac
8303         shared_flag='-shared'
8304         if test "$aix_use_runtimelinking" = yes; then
8305           shared_flag="$shared_flag "'${wl}-G'
8306         fi
8307       else
8308         # not using gcc
8309         if test "$host_cpu" = ia64; then
8310         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8311         # chokes on -Wl,-G. The following line is correct:
8312           shared_flag='-G'
8313         else
8314           if test "$aix_use_runtimelinking" = yes; then
8315             shared_flag='${wl}-G'
8316           else
8317             shared_flag='${wl}-bM:SRE'
8318           fi
8319         fi
8320       fi
8321
8322       # It seems that -bexpall does not export symbols beginning with
8323       # underscore (_), so it is better to generate a list of symbols to export.
8324       always_export_symbols=yes
8325       if test "$aix_use_runtimelinking" = yes; then
8326         # Warning - without using the other runtime loading flags (-brtl),
8327         # -berok will link without error, but may produce a broken library.
8328         allow_undefined_flag='-berok'
8329        # Determine the default libpath from the value encoded in an empty executable.
8330        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h.  */
8332
8333 int
8334 main ()
8335 {
8336
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 if ac_fn_c_try_link "$LINENO"; then :
8342
8343 lt_aix_libpath_sed='
8344     /Import File Strings/,/^$/ {
8345         /^0/ {
8346             s/^0  *\(.*\)$/\1/
8347             p
8348         }
8349     }'
8350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8351 # Check for a 64-bit object if we didn't find anything.
8352 if test -z "$aix_libpath"; then
8353   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8354 fi
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext \
8357     conftest$ac_exeext conftest.$ac_ext
8358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8359
8360        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8361         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"
8362        else
8363         if test "$host_cpu" = ia64; then
8364           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8365           allow_undefined_flag="-z nodefs"
8366           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"
8367         else
8368          # Determine the default libpath from the value encoded in an empty executable.
8369          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h.  */
8371
8372 int
8373 main ()
8374 {
8375
8376   ;
8377   return 0;
8378 }
8379 _ACEOF
8380 if ac_fn_c_try_link "$LINENO"; then :
8381
8382 lt_aix_libpath_sed='
8383     /Import File Strings/,/^$/ {
8384         /^0/ {
8385             s/^0  *\(.*\)$/\1/
8386             p
8387         }
8388     }'
8389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8390 # Check for a 64-bit object if we didn't find anything.
8391 if test -z "$aix_libpath"; then
8392   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8393 fi
8394 fi
8395 rm -f core conftest.err conftest.$ac_objext \
8396     conftest$ac_exeext conftest.$ac_ext
8397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8398
8399          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8400           # Warning - without using the other run time loading flags,
8401           # -berok will link without error, but may produce a broken library.
8402           no_undefined_flag=' ${wl}-bernotok'
8403           allow_undefined_flag=' ${wl}-berok'
8404           # Exported symbols can be pulled into shared objects from archives
8405           whole_archive_flag_spec='$convenience'
8406           archive_cmds_need_lc=yes
8407           # This is similar to how AIX traditionally builds its shared libraries.
8408           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'
8409         fi
8410       fi
8411       ;;
8412
8413     amigaos*)
8414       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)'
8415       hardcode_libdir_flag_spec='-L$libdir'
8416       hardcode_minus_L=yes
8417       # see comment about different semantics on the GNU ld section
8418       ld_shlibs=no
8419       ;;
8420
8421     bsdi[45]*)
8422       export_dynamic_flag_spec=-rdynamic
8423       ;;
8424
8425     cygwin* | mingw* | pw32*)
8426       # When not using gcc, we currently assume that we are using
8427       # Microsoft Visual C++.
8428       # hardcode_libdir_flag_spec is actually meaningless, as there is
8429       # no search path for DLLs.
8430       hardcode_libdir_flag_spec=' '
8431       allow_undefined_flag=unsupported
8432       # Tell ltmain to make .lib files, not .a files.
8433       libext=lib
8434       # Tell ltmain to make .dll files, not .so files.
8435       shrext_cmds=".dll"
8436       # FIXME: Setting linknames here is a bad hack.
8437       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8438       # The linker will automatically build a .lib file if we build a DLL.
8439       old_archive_From_new_cmds='true'
8440       # FIXME: Should let the user specify the lib program.
8441       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8442       fix_srcfile_path='`cygpath -w "$srcfile"`'
8443       enable_shared_with_static_runtimes=yes
8444       ;;
8445
8446     darwin* | rhapsody*)
8447       case $host_os in
8448         rhapsody* | darwin1.[012])
8449          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8450          ;;
8451        *) # Darwin 1.3 on
8452          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8453            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8454          else
8455            case ${MACOSX_DEPLOYMENT_TARGET} in
8456              10.[012])
8457                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8458                ;;
8459              10.*)
8460                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8461                ;;
8462            esac
8463          fi
8464          ;;
8465       esac
8466       archive_cmds_need_lc=no
8467       hardcode_direct=no
8468       hardcode_automatic=yes
8469       hardcode_shlibpath_var=unsupported
8470       whole_archive_flag_spec=''
8471       link_all_deplibs=yes
8472     if test "$GCC" = yes ; then
8473         output_verbose_link_cmd='echo'
8474         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8475         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8476         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}"
8477         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}"
8478     else
8479       case $cc_basename in
8480         xlc*)
8481          output_verbose_link_cmd='echo'
8482          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8483          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8484           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8485          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}'
8486           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}'
8487           ;;
8488        *)
8489          ld_shlibs=no
8490           ;;
8491       esac
8492     fi
8493       ;;
8494
8495     dgux*)
8496       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497       hardcode_libdir_flag_spec='-L$libdir'
8498       hardcode_shlibpath_var=no
8499       ;;
8500
8501     freebsd1*)
8502       ld_shlibs=no
8503       ;;
8504
8505     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8506     # support.  Future versions do this automatically, but an explicit c++rt0.o
8507     # does not break anything, and helps significantly (at the cost of a little
8508     # extra space).
8509     freebsd2.2*)
8510       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8511       hardcode_libdir_flag_spec='-R$libdir'
8512       hardcode_direct=yes
8513       hardcode_shlibpath_var=no
8514       ;;
8515
8516     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8517     freebsd2*)
8518       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8519       hardcode_direct=yes
8520       hardcode_minus_L=yes
8521       hardcode_shlibpath_var=no
8522       ;;
8523
8524     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8525     freebsd* | dragonfly*)
8526       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8527       hardcode_libdir_flag_spec='-R$libdir'
8528       hardcode_direct=yes
8529       hardcode_shlibpath_var=no
8530       ;;
8531
8532     hpux9*)
8533       if test "$GCC" = yes; then
8534         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'
8535       else
8536         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'
8537       fi
8538       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8539       hardcode_libdir_separator=:
8540       hardcode_direct=yes
8541
8542       # hardcode_minus_L: Not really in the search PATH,
8543       # but as the default location of the library.
8544       hardcode_minus_L=yes
8545       export_dynamic_flag_spec='${wl}-E'
8546       ;;
8547
8548     hpux10*)
8549       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8550         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551       else
8552         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8553       fi
8554       if test "$with_gnu_ld" = no; then
8555         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8556         hardcode_libdir_separator=:
8557
8558         hardcode_direct=yes
8559         export_dynamic_flag_spec='${wl}-E'
8560
8561         # hardcode_minus_L: Not really in the search PATH,
8562         # but as the default location of the library.
8563         hardcode_minus_L=yes
8564       fi
8565       ;;
8566
8567     hpux11*)
8568       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8569         case $host_cpu in
8570         hppa*64*)
8571           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8572           ;;
8573         ia64*)
8574           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8575           ;;
8576         *)
8577           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8578           ;;
8579         esac
8580       else
8581         case $host_cpu in
8582         hppa*64*)
8583           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584           ;;
8585         ia64*)
8586           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8587           ;;
8588         *)
8589           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8590           ;;
8591         esac
8592       fi
8593       if test "$with_gnu_ld" = no; then
8594         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8595         hardcode_libdir_separator=:
8596
8597         case $host_cpu in
8598         hppa*64*|ia64*)
8599           hardcode_libdir_flag_spec_ld='+b $libdir'
8600           hardcode_direct=no
8601           hardcode_shlibpath_var=no
8602           ;;
8603         *)
8604           hardcode_direct=yes
8605           export_dynamic_flag_spec='${wl}-E'
8606
8607           # hardcode_minus_L: Not really in the search PATH,
8608           # but as the default location of the library.
8609           hardcode_minus_L=yes
8610           ;;
8611         esac
8612       fi
8613       ;;
8614
8615     irix5* | irix6* | nonstopux*)
8616       if test "$GCC" = yes; then
8617         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'
8618       else
8619         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'
8620         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8621       fi
8622       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8623       hardcode_libdir_separator=:
8624       link_all_deplibs=yes
8625       ;;
8626
8627     netbsd* | netbsdelf*-gnu)
8628       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8629         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8630       else
8631         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8632       fi
8633       hardcode_libdir_flag_spec='-R$libdir'
8634       hardcode_direct=yes
8635       hardcode_shlibpath_var=no
8636       ;;
8637
8638     newsos6)
8639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8640       hardcode_direct=yes
8641       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642       hardcode_libdir_separator=:
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     openbsd*)
8647       if test -f /usr/libexec/ld.so; then
8648         hardcode_direct=yes
8649         hardcode_shlibpath_var=no
8650         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8651           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8652           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8653           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654           export_dynamic_flag_spec='${wl}-E'
8655         else
8656           case $host_os in
8657            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8658              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8659              hardcode_libdir_flag_spec='-R$libdir'
8660              ;;
8661            *)
8662              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8664              ;;
8665           esac
8666         fi
8667       else
8668         ld_shlibs=no
8669       fi
8670       ;;
8671
8672     os2*)
8673       hardcode_libdir_flag_spec='-L$libdir'
8674       hardcode_minus_L=yes
8675       allow_undefined_flag=unsupported
8676       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'
8677       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8678       ;;
8679
8680     osf3*)
8681       if test "$GCC" = yes; then
8682         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683         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'
8684       else
8685         allow_undefined_flag=' -expect_unresolved \*'
8686         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'
8687       fi
8688       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689       hardcode_libdir_separator=:
8690       ;;
8691
8692     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8693       if test "$GCC" = yes; then
8694         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8695         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'
8696         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697       else
8698         allow_undefined_flag=' -expect_unresolved \*'
8699         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'
8700         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8701         $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'
8702
8703         # Both c and cxx compiler support -rpath directly
8704         hardcode_libdir_flag_spec='-rpath $libdir'
8705       fi
8706       hardcode_libdir_separator=:
8707       ;;
8708
8709     solaris*)
8710       no_undefined_flag=' -z text'
8711       if test "$GCC" = yes; then
8712         wlarc='${wl}'
8713         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8715           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8716       else
8717         wlarc=''
8718         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8720         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8721       fi
8722       hardcode_libdir_flag_spec='-R$libdir'
8723       hardcode_shlibpath_var=no
8724       case $host_os in
8725       solaris2.[0-5] | solaris2.[0-5].*) ;;
8726       *)
8727         # The compiler driver will combine and reorder linker options,
8728         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8729         # but is careful enough not to reorder.
8730         # Supported since Solaris 2.6 (maybe 2.5.1?)
8731         if test "$GCC" = yes; then
8732           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8733         else
8734           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8735         fi
8736         ;;
8737       esac
8738       link_all_deplibs=yes
8739       ;;
8740
8741     sunos4*)
8742       if test "x$host_vendor" = xsequent; then
8743         # Use $CC to link under sequent, because it throws in some extra .o
8744         # files that make .init and .fini sections work.
8745         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8746       else
8747         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8748       fi
8749       hardcode_libdir_flag_spec='-L$libdir'
8750       hardcode_direct=yes
8751       hardcode_minus_L=yes
8752       hardcode_shlibpath_var=no
8753       ;;
8754
8755     sysv4)
8756       case $host_vendor in
8757         sni)
8758           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759           hardcode_direct=yes # is this really true???
8760         ;;
8761         siemens)
8762           ## LD is ld it makes a PLAMLIB
8763           ## CC just makes a GrossModule.
8764           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8765           reload_cmds='$CC -r -o $output$reload_objs'
8766           hardcode_direct=no
8767         ;;
8768         motorola)
8769           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8771         ;;
8772       esac
8773       runpath_var='LD_RUN_PATH'
8774       hardcode_shlibpath_var=no
8775       ;;
8776
8777     sysv4.3*)
8778       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779       hardcode_shlibpath_var=no
8780       export_dynamic_flag_spec='-Bexport'
8781       ;;
8782
8783     sysv4*MP*)
8784       if test -d /usr/nec; then
8785         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786         hardcode_shlibpath_var=no
8787         runpath_var=LD_RUN_PATH
8788         hardcode_runpath_var=yes
8789         ld_shlibs=yes
8790       fi
8791       ;;
8792
8793     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8794       no_undefined_flag='${wl}-z,text'
8795       archive_cmds_need_lc=no
8796       hardcode_shlibpath_var=no
8797       runpath_var='LD_RUN_PATH'
8798
8799       if test "$GCC" = yes; then
8800         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802       else
8803         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805       fi
8806       ;;
8807
8808     sysv5* | sco3.2v5* | sco5v6*)
8809       # Note: We can NOT use -z defs as we might desire, because we do not
8810       # link with -lc, and that would cause any symbols used from libc to
8811       # always be unresolved, which means just about no library would
8812       # ever link correctly.  If we're not using GNU ld we use -z text
8813       # though, which does catch some bad symbols but isn't as heavy-handed
8814       # as -z defs.
8815       no_undefined_flag='${wl}-z,text'
8816       allow_undefined_flag='${wl}-z,nodefs'
8817       archive_cmds_need_lc=no
8818       hardcode_shlibpath_var=no
8819       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8820       hardcode_libdir_separator=':'
8821       link_all_deplibs=yes
8822       export_dynamic_flag_spec='${wl}-Bexport'
8823       runpath_var='LD_RUN_PATH'
8824
8825       if test "$GCC" = yes; then
8826         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828       else
8829         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831       fi
8832       ;;
8833
8834     uts4*)
8835       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8836       hardcode_libdir_flag_spec='-L$libdir'
8837       hardcode_shlibpath_var=no
8838       ;;
8839
8840     *)
8841       ld_shlibs=no
8842       ;;
8843     esac
8844   fi
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8847 $as_echo "$ld_shlibs" >&6; }
8848 test "$ld_shlibs" = no && can_build_shared=no
8849
8850 #
8851 # Do we need to explicitly link libc?
8852 #
8853 case "x$archive_cmds_need_lc" in
8854 x|xyes)
8855   # Assume -lc should be added
8856   archive_cmds_need_lc=yes
8857
8858   if test "$enable_shared" = yes && test "$GCC" = yes; then
8859     case $archive_cmds in
8860     *'~'*)
8861       # FIXME: we may have to deal with multi-command sequences.
8862       ;;
8863     '$CC '*)
8864       # Test whether the compiler implicitly links with -lc since on some
8865       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8866       # to ld, don't add -lc before -lgcc.
8867       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8869       $rm conftest*
8870       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871
8872       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8873   (eval $ac_compile) 2>&5
8874   ac_status=$?
8875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8876   test $ac_status = 0; } 2>conftest.err; then
8877         soname=conftest
8878         lib=conftest
8879         libobjs=conftest.$ac_objext
8880         deplibs=
8881         wl=$lt_prog_compiler_wl
8882         pic_flag=$lt_prog_compiler_pic
8883         compiler_flags=-v
8884         linker_flags=-v
8885         verstring=
8886         output_objdir=.
8887         libname=conftest
8888         lt_save_allow_undefined_flag=$allow_undefined_flag
8889         allow_undefined_flag=
8890         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8891   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8892   ac_status=$?
8893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8894   test $ac_status = 0; }
8895         then
8896           archive_cmds_need_lc=no
8897         else
8898           archive_cmds_need_lc=yes
8899         fi
8900         allow_undefined_flag=$lt_save_allow_undefined_flag
8901       else
8902         cat conftest.err 1>&5
8903       fi
8904       $rm conftest*
8905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8906 $as_echo "$archive_cmds_need_lc" >&6; }
8907       ;;
8908     esac
8909   fi
8910   ;;
8911 esac
8912
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8915 library_names_spec=
8916 libname_spec='lib$name'
8917 soname_spec=
8918 shrext_cmds=".so"
8919 postinstall_cmds=
8920 postuninstall_cmds=
8921 finish_cmds=
8922 finish_eval=
8923 shlibpath_var=
8924 shlibpath_overrides_runpath=unknown
8925 version_type=none
8926 dynamic_linker="$host_os ld.so"
8927 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8928
8929 if test "$GCC" = yes; then
8930   case $host_os in
8931     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8932     *) lt_awk_arg="/^libraries:/" ;;
8933   esac
8934   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8935   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8936     # if the path contains ";" then we assume it to be the separator
8937     # otherwise default to the standard path separator (i.e. ":") - it is
8938     # assumed that no part of a normal pathname contains ";" but that should
8939     # okay in the real world where ";" in dirpaths is itself problematic.
8940     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8941   else
8942     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8943   fi
8944   # Ok, now we have the path, separated by spaces, we can step through it
8945   # and add multilib dir if necessary.
8946   lt_tmp_lt_search_path_spec=
8947   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8948   for lt_sys_path in $lt_search_path_spec; do
8949     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8950       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8951     else
8952       test -d "$lt_sys_path" && \
8953         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8954     fi
8955   done
8956   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8957 BEGIN {RS=" "; FS="/|\n";} {
8958   lt_foo="";
8959   lt_count=0;
8960   for (lt_i = NF; lt_i > 0; lt_i--) {
8961     if ($lt_i != "" && $lt_i != ".") {
8962       if ($lt_i == "..") {
8963         lt_count++;
8964       } else {
8965         if (lt_count == 0) {
8966           lt_foo="/" $lt_i lt_foo;
8967         } else {
8968           lt_count--;
8969         }
8970       }
8971     }
8972   }
8973   if (lt_foo != "") { lt_freq[lt_foo]++; }
8974   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8975 }'`
8976   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8977 else
8978   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8979 fi
8980 need_lib_prefix=unknown
8981 hardcode_into_libs=no
8982
8983 # when you set need_version to no, make sure it does not cause -set_version
8984 # flags to be left without arguments
8985 need_version=unknown
8986
8987 case $host_os in
8988 aix3*)
8989   version_type=linux
8990   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8991   shlibpath_var=LIBPATH
8992
8993   # AIX 3 has no versioning support, so we append a major version to the name.
8994   soname_spec='${libname}${release}${shared_ext}$major'
8995   ;;
8996
8997 aix[4-9]*)
8998   version_type=linux
8999   need_lib_prefix=no
9000   need_version=no
9001   hardcode_into_libs=yes
9002   if test "$host_cpu" = ia64; then
9003     # AIX 5 supports IA64
9004     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9005     shlibpath_var=LD_LIBRARY_PATH
9006   else
9007     # With GCC up to 2.95.x, collect2 would create an import file
9008     # for dependence libraries.  The import file would start with
9009     # the line `#! .'.  This would cause the generated library to
9010     # depend on `.', always an invalid library.  This was fixed in
9011     # development snapshots of GCC prior to 3.0.
9012     case $host_os in
9013       aix4 | aix4.[01] | aix4.[01].*)
9014       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9015            echo ' yes '
9016            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9017         :
9018       else
9019         can_build_shared=no
9020       fi
9021       ;;
9022     esac
9023     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9024     # soname into executable. Probably we can add versioning support to
9025     # collect2, so additional links can be useful in future.
9026     if test "$aix_use_runtimelinking" = yes; then
9027       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9028       # instead of lib<name>.a to let people know that these are not
9029       # typical AIX shared libraries.
9030       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031     else
9032       # We preserve .a as extension for shared libraries through AIX4.2
9033       # and later when we are not doing run time linking.
9034       library_names_spec='${libname}${release}.a $libname.a'
9035       soname_spec='${libname}${release}${shared_ext}$major'
9036     fi
9037     shlibpath_var=LIBPATH
9038   fi
9039   ;;
9040
9041 amigaos*)
9042   library_names_spec='$libname.ixlibrary $libname.a'
9043   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9044   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'
9045   ;;
9046
9047 beos*)
9048   library_names_spec='${libname}${shared_ext}'
9049   dynamic_linker="$host_os ld.so"
9050   shlibpath_var=LIBRARY_PATH
9051   ;;
9052
9053 bsdi[45]*)
9054   version_type=linux
9055   need_version=no
9056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057   soname_spec='${libname}${release}${shared_ext}$major'
9058   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9059   shlibpath_var=LD_LIBRARY_PATH
9060   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9061   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9062   # the default ld.so.conf also contains /usr/contrib/lib and
9063   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9064   # libtool to hard-code these into programs
9065   ;;
9066
9067 cygwin* | mingw* | pw32*)
9068   version_type=windows
9069   shrext_cmds=".dll"
9070   need_version=no
9071   need_lib_prefix=no
9072
9073   case $GCC,$host_os in
9074   yes,cygwin* | yes,mingw* | yes,pw32*)
9075     library_names_spec='$libname.dll.a'
9076     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9077     postinstall_cmds='base_file=`basename \${file}`~
9078       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9079       dldir=$destdir/`dirname \$dlpath`~
9080       test -d \$dldir || mkdir -p \$dldir~
9081       $install_prog $dir/$dlname \$dldir/$dlname~
9082       chmod a+x \$dldir/$dlname'
9083     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9084       dlpath=$dir/\$dldll~
9085        $rm \$dlpath'
9086     shlibpath_overrides_runpath=yes
9087
9088     case $host_os in
9089     cygwin*)
9090       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9091       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9092       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9093       ;;
9094     mingw*)
9095       # MinGW DLLs use traditional 'lib' prefix
9096       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9097       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9098       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9099         # It is most probably a Windows format PATH printed by
9100         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9101         # path with ; separators, and with drive letters. We can handle the
9102         # drive letters (cygwin fileutils understands them), so leave them,
9103         # especially as we might pass files found there to a mingw objdump,
9104         # which wouldn't understand a cygwinified path. Ahh.
9105         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9106       else
9107         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9108       fi
9109       ;;
9110     pw32*)
9111       # pw32 DLLs use 'pw' prefix rather than 'lib'
9112       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113       ;;
9114     esac
9115     ;;
9116
9117   *)
9118     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9119     ;;
9120   esac
9121   dynamic_linker='Win32 ld.exe'
9122   # FIXME: first we should search . and the directory the executable is in
9123   shlibpath_var=PATH
9124   ;;
9125
9126 darwin* | rhapsody*)
9127   dynamic_linker="$host_os dyld"
9128   version_type=darwin
9129   need_lib_prefix=no
9130   need_version=no
9131   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9132   soname_spec='${libname}${release}${major}$shared_ext'
9133   shlibpath_overrides_runpath=yes
9134   shlibpath_var=DYLD_LIBRARY_PATH
9135   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9136
9137   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9138   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9139   ;;
9140
9141 dgux*)
9142   version_type=linux
9143   need_lib_prefix=no
9144   need_version=no
9145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9146   soname_spec='${libname}${release}${shared_ext}$major'
9147   shlibpath_var=LD_LIBRARY_PATH
9148   ;;
9149
9150 freebsd1*)
9151   dynamic_linker=no
9152   ;;
9153
9154 freebsd* | dragonfly*)
9155   # DragonFly does not have aout.  When/if they implement a new
9156   # versioning mechanism, adjust this.
9157   if test -x /usr/bin/objformat; then
9158     objformat=`/usr/bin/objformat`
9159   else
9160     case $host_os in
9161     freebsd[123]*) objformat=aout ;;
9162     *) objformat=elf ;;
9163     esac
9164   fi
9165   version_type=freebsd-$objformat
9166   case $version_type in
9167     freebsd-elf*)
9168       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9169       need_version=no
9170       need_lib_prefix=no
9171       ;;
9172     freebsd-*)
9173       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9174       need_version=yes
9175       ;;
9176   esac
9177   shlibpath_var=LD_LIBRARY_PATH
9178   case $host_os in
9179   freebsd2*)
9180     shlibpath_overrides_runpath=yes
9181     ;;
9182   freebsd3.[01]* | freebsdelf3.[01]*)
9183     shlibpath_overrides_runpath=yes
9184     hardcode_into_libs=yes
9185     ;;
9186   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9187   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9188     shlibpath_overrides_runpath=no
9189     hardcode_into_libs=yes
9190     ;;
9191   *) # from 4.6 on, and DragonFly
9192     shlibpath_overrides_runpath=yes
9193     hardcode_into_libs=yes
9194     ;;
9195   esac
9196   ;;
9197
9198 gnu*)
9199   version_type=linux
9200   need_lib_prefix=no
9201   need_version=no
9202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9203   soname_spec='${libname}${release}${shared_ext}$major'
9204   shlibpath_var=LD_LIBRARY_PATH
9205   hardcode_into_libs=yes
9206   ;;
9207
9208 hpux9* | hpux10* | hpux11*)
9209   # Give a soname corresponding to the major version so that dld.sl refuses to
9210   # link against other versions.
9211   version_type=sunos
9212   need_lib_prefix=no
9213   need_version=no
9214   case $host_cpu in
9215   ia64*)
9216     shrext_cmds='.so'
9217     hardcode_into_libs=yes
9218     dynamic_linker="$host_os dld.so"
9219     shlibpath_var=LD_LIBRARY_PATH
9220     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222     soname_spec='${libname}${release}${shared_ext}$major'
9223     if test "X$HPUX_IA64_MODE" = X32; then
9224       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9225     else
9226       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9227     fi
9228     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9229     ;;
9230    hppa*64*)
9231      shrext_cmds='.sl'
9232      hardcode_into_libs=yes
9233      dynamic_linker="$host_os dld.sl"
9234      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9235      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9236      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237      soname_spec='${libname}${release}${shared_ext}$major'
9238      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9239      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9240      ;;
9241    *)
9242     shrext_cmds='.sl'
9243     dynamic_linker="$host_os dld.sl"
9244     shlibpath_var=SHLIB_PATH
9245     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247     soname_spec='${libname}${release}${shared_ext}$major'
9248     ;;
9249   esac
9250   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9251   postinstall_cmds='chmod 555 $lib'
9252   ;;
9253
9254 interix[3-9]*)
9255   version_type=linux
9256   need_lib_prefix=no
9257   need_version=no
9258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9259   soname_spec='${libname}${release}${shared_ext}$major'
9260   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9261   shlibpath_var=LD_LIBRARY_PATH
9262   shlibpath_overrides_runpath=no
9263   hardcode_into_libs=yes
9264   ;;
9265
9266 irix5* | irix6* | nonstopux*)
9267   case $host_os in
9268     nonstopux*) version_type=nonstopux ;;
9269     *)
9270         if test "$lt_cv_prog_gnu_ld" = yes; then
9271                 version_type=linux
9272         else
9273                 version_type=irix
9274         fi ;;
9275   esac
9276   need_lib_prefix=no
9277   need_version=no
9278   soname_spec='${libname}${release}${shared_ext}$major'
9279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9280   case $host_os in
9281   irix5* | nonstopux*)
9282     libsuff= shlibsuff=
9283     ;;
9284   *)
9285     case $LD in # libtool.m4 will add one of these switches to LD
9286     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9287       libsuff= shlibsuff= libmagic=32-bit;;
9288     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9289       libsuff=32 shlibsuff=N32 libmagic=N32;;
9290     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9291       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9292     *) libsuff= shlibsuff= libmagic=never-match;;
9293     esac
9294     ;;
9295   esac
9296   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9297   shlibpath_overrides_runpath=no
9298   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9299   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9300   hardcode_into_libs=yes
9301   ;;
9302
9303 # No shared lib support for Linux oldld, aout, or coff.
9304 linux*oldld* | linux*aout* | linux*coff*)
9305   dynamic_linker=no
9306   ;;
9307
9308 # This must be Linux ELF.
9309 linux* | k*bsd*-gnu)
9310   version_type=linux
9311   need_lib_prefix=no
9312   need_version=no
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9316   shlibpath_var=LD_LIBRARY_PATH
9317   shlibpath_overrides_runpath=no
9318   # This implies no fast_install, which is unacceptable.
9319   # Some rework will be needed to allow for fast_install
9320   # before this can be enabled.
9321   hardcode_into_libs=yes
9322
9323   # Append ld.so.conf contents to the search path
9324   if test -f /etc/ld.so.conf; then
9325     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' ' '`
9326     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9327   fi
9328
9329   # We used to test for /lib/ld.so.1 and disable shared libraries on
9330   # powerpc, because MkLinux only supported shared libraries with the
9331   # GNU dynamic linker.  Since this was broken with cross compilers,
9332   # most powerpc-linux boxes support dynamic linking these days and
9333   # people can always --disable-shared, the test was removed, and we
9334   # assume the GNU/Linux dynamic linker is in use.
9335   dynamic_linker='GNU/Linux ld.so'
9336   ;;
9337
9338 netbsdelf*-gnu)
9339   version_type=linux
9340   need_lib_prefix=no
9341   need_version=no
9342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9343   soname_spec='${libname}${release}${shared_ext}$major'
9344   shlibpath_var=LD_LIBRARY_PATH
9345   shlibpath_overrides_runpath=no
9346   hardcode_into_libs=yes
9347   dynamic_linker='NetBSD ld.elf_so'
9348   ;;
9349
9350 netbsd*)
9351   version_type=sunos
9352   need_lib_prefix=no
9353   need_version=no
9354   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9356     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9357     dynamic_linker='NetBSD (a.out) ld.so'
9358   else
9359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9360     soname_spec='${libname}${release}${shared_ext}$major'
9361     dynamic_linker='NetBSD ld.elf_so'
9362   fi
9363   shlibpath_var=LD_LIBRARY_PATH
9364   shlibpath_overrides_runpath=yes
9365   hardcode_into_libs=yes
9366   ;;
9367
9368 newsos6)
9369   version_type=linux
9370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371   shlibpath_var=LD_LIBRARY_PATH
9372   shlibpath_overrides_runpath=yes
9373   ;;
9374
9375 nto-qnx*)
9376   version_type=linux
9377   need_lib_prefix=no
9378   need_version=no
9379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9380   soname_spec='${libname}${release}${shared_ext}$major'
9381   shlibpath_var=LD_LIBRARY_PATH
9382   shlibpath_overrides_runpath=yes
9383   ;;
9384
9385 openbsd*)
9386   version_type=sunos
9387   sys_lib_dlsearch_path_spec="/usr/lib"
9388   need_lib_prefix=no
9389   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9390   case $host_os in
9391     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9392     *)                         need_version=no  ;;
9393   esac
9394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9395   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9396   shlibpath_var=LD_LIBRARY_PATH
9397   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9398     case $host_os in
9399       openbsd2.[89] | openbsd2.[89].*)
9400         shlibpath_overrides_runpath=no
9401         ;;
9402       *)
9403         shlibpath_overrides_runpath=yes
9404         ;;
9405       esac
9406   else
9407     shlibpath_overrides_runpath=yes
9408   fi
9409   ;;
9410
9411 os2*)
9412   libname_spec='$name'
9413   shrext_cmds=".dll"
9414   need_lib_prefix=no
9415   library_names_spec='$libname${shared_ext} $libname.a'
9416   dynamic_linker='OS/2 ld.exe'
9417   shlibpath_var=LIBPATH
9418   ;;
9419
9420 osf3* | osf4* | osf5*)
9421   version_type=osf
9422   need_lib_prefix=no
9423   need_version=no
9424   soname_spec='${libname}${release}${shared_ext}$major'
9425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426   shlibpath_var=LD_LIBRARY_PATH
9427   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9428   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9429   ;;
9430
9431 rdos*)
9432   dynamic_linker=no
9433   ;;
9434
9435 solaris*)
9436   version_type=linux
9437   need_lib_prefix=no
9438   need_version=no
9439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440   soname_spec='${libname}${release}${shared_ext}$major'
9441   shlibpath_var=LD_LIBRARY_PATH
9442   shlibpath_overrides_runpath=yes
9443   hardcode_into_libs=yes
9444   # ldd complains unless libraries are executable
9445   postinstall_cmds='chmod +x $lib'
9446   ;;
9447
9448 sunos4*)
9449   version_type=sunos
9450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9451   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9452   shlibpath_var=LD_LIBRARY_PATH
9453   shlibpath_overrides_runpath=yes
9454   if test "$with_gnu_ld" = yes; then
9455     need_lib_prefix=no
9456   fi
9457   need_version=yes
9458   ;;
9459
9460 sysv4 | sysv4.3*)
9461   version_type=linux
9462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463   soname_spec='${libname}${release}${shared_ext}$major'
9464   shlibpath_var=LD_LIBRARY_PATH
9465   case $host_vendor in
9466     sni)
9467       shlibpath_overrides_runpath=no
9468       need_lib_prefix=no
9469       export_dynamic_flag_spec='${wl}-Blargedynsym'
9470       runpath_var=LD_RUN_PATH
9471       ;;
9472     siemens)
9473       need_lib_prefix=no
9474       ;;
9475     motorola)
9476       need_lib_prefix=no
9477       need_version=no
9478       shlibpath_overrides_runpath=no
9479       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9480       ;;
9481   esac
9482   ;;
9483
9484 sysv4*MP*)
9485   if test -d /usr/nec ;then
9486     version_type=linux
9487     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9488     soname_spec='$libname${shared_ext}.$major'
9489     shlibpath_var=LD_LIBRARY_PATH
9490   fi
9491   ;;
9492
9493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9494   version_type=freebsd-elf
9495   need_lib_prefix=no
9496   need_version=no
9497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9498   soname_spec='${libname}${release}${shared_ext}$major'
9499   shlibpath_var=LD_LIBRARY_PATH
9500   hardcode_into_libs=yes
9501   if test "$with_gnu_ld" = yes; then
9502     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9503     shlibpath_overrides_runpath=no
9504   else
9505     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9506     shlibpath_overrides_runpath=yes
9507     case $host_os in
9508       sco3.2v5*)
9509         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9510         ;;
9511     esac
9512   fi
9513   sys_lib_dlsearch_path_spec='/usr/lib'
9514   ;;
9515
9516 uts4*)
9517   version_type=linux
9518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519   soname_spec='${libname}${release}${shared_ext}$major'
9520   shlibpath_var=LD_LIBRARY_PATH
9521   ;;
9522
9523 *)
9524   dynamic_linker=no
9525   ;;
9526 esac
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9528 $as_echo "$dynamic_linker" >&6; }
9529 test "$dynamic_linker" = no && can_build_shared=no
9530
9531 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9532   $as_echo_n "(cached) " >&6
9533 else
9534   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9535 fi
9536
9537 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9538 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9539   $as_echo_n "(cached) " >&6
9540 else
9541   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9542 fi
9543
9544 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9545
9546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9547 if test "$GCC" = yes; then
9548   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9549 fi
9550
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9552 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9553 hardcode_action=
9554 if test -n "$hardcode_libdir_flag_spec" || \
9555    test -n "$runpath_var" || \
9556    test "X$hardcode_automatic" = "Xyes" ; then
9557
9558   # We can hardcode non-existant directories.
9559   if test "$hardcode_direct" != no &&
9560      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9561      # have to relink, otherwise we might link with an installed library
9562      # when we should be linking with a yet-to-be-installed one
9563      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9564      test "$hardcode_minus_L" != no; then
9565     # Linking always hardcodes the temporary library directory.
9566     hardcode_action=relink
9567   else
9568     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9569     hardcode_action=immediate
9570   fi
9571 else
9572   # We cannot hardcode anything, or else we can only hardcode existing
9573   # directories.
9574   hardcode_action=unsupported
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9577 $as_echo "$hardcode_action" >&6; }
9578
9579 if test "$hardcode_action" = relink; then
9580   # Fast installation is not supported
9581   enable_fast_install=no
9582 elif test "$shlibpath_overrides_runpath" = yes ||
9583      test "$enable_shared" = no; then
9584   # Fast installation is not necessary
9585   enable_fast_install=needless
9586 fi
9587
9588 striplib=
9589 old_striplib=
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9591 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9592 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9593   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9594   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9596 $as_echo "yes" >&6; }
9597 else
9598 # FIXME - insert some real tests, host_os isn't really good enough
9599   case $host_os in
9600    darwin*)
9601        if test -n "$STRIP" ; then
9602          striplib="$STRIP -x"
9603          old_striplib="$STRIP -S"
9604          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9605 $as_echo "yes" >&6; }
9606        else
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9609 fi
9610        ;;
9611    *)
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9614     ;;
9615   esac
9616 fi
9617
9618 if test "x$enable_dlopen" != xyes; then
9619   enable_dlopen=unknown
9620   enable_dlopen_self=unknown
9621   enable_dlopen_self_static=unknown
9622 else
9623   lt_cv_dlopen=no
9624   lt_cv_dlopen_libs=
9625
9626   case $host_os in
9627   beos*)
9628     lt_cv_dlopen="load_add_on"
9629     lt_cv_dlopen_libs=
9630     lt_cv_dlopen_self=yes
9631     ;;
9632
9633   mingw* | pw32*)
9634     lt_cv_dlopen="LoadLibrary"
9635     lt_cv_dlopen_libs=
9636    ;;
9637
9638   cygwin*)
9639     lt_cv_dlopen="dlopen"
9640     lt_cv_dlopen_libs=
9641    ;;
9642
9643   darwin*)
9644   # if libdl is installed we need to link against it
9645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9646 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9647 if ${ac_cv_lib_dl_dlopen+:} false; then :
9648   $as_echo_n "(cached) " >&6
9649 else
9650   ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-ldl  $LIBS"
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h.  */
9654
9655 /* Override any GCC internal prototype to avoid an error.
9656    Use char because int might match the return type of a GCC
9657    builtin and then its argument prototype would still apply.  */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 char dlopen ();
9662 int
9663 main ()
9664 {
9665 return dlopen ();
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 if ac_fn_c_try_link "$LINENO"; then :
9671   ac_cv_lib_dl_dlopen=yes
9672 else
9673   ac_cv_lib_dl_dlopen=no
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext \
9676     conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9678 fi
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9680 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9681 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9682   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9683 else
9684
9685     lt_cv_dlopen="dyld"
9686     lt_cv_dlopen_libs=
9687     lt_cv_dlopen_self=yes
9688
9689 fi
9690
9691    ;;
9692
9693   *)
9694     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9695 if test "x$ac_cv_func_shl_load" = xyes; then :
9696   lt_cv_dlopen="shl_load"
9697 else
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9699 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9700 if ${ac_cv_lib_dld_shl_load+:} false; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   ac_check_lib_save_LIBS=$LIBS
9704 LIBS="-ldld  $LIBS"
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h.  */
9707
9708 /* Override any GCC internal prototype to avoid an error.
9709    Use char because int might match the return type of a GCC
9710    builtin and then its argument prototype would still apply.  */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 char shl_load ();
9715 int
9716 main ()
9717 {
9718 return shl_load ();
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 if ac_fn_c_try_link "$LINENO"; then :
9724   ac_cv_lib_dld_shl_load=yes
9725 else
9726   ac_cv_lib_dld_shl_load=no
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext \
9729     conftest$ac_exeext conftest.$ac_ext
9730 LIBS=$ac_check_lib_save_LIBS
9731 fi
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9733 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9734 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9735   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9736 else
9737   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9738 if test "x$ac_cv_func_dlopen" = xyes; then :
9739   lt_cv_dlopen="dlopen"
9740 else
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9742 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9743 if ${ac_cv_lib_dl_dlopen+:} false; then :
9744   $as_echo_n "(cached) " >&6
9745 else
9746   ac_check_lib_save_LIBS=$LIBS
9747 LIBS="-ldl  $LIBS"
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h.  */
9750
9751 /* Override any GCC internal prototype to avoid an error.
9752    Use char because int might match the return type of a GCC
9753    builtin and then its argument prototype would still apply.  */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char dlopen ();
9758 int
9759 main ()
9760 {
9761 return dlopen ();
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767   ac_cv_lib_dl_dlopen=yes
9768 else
9769   ac_cv_lib_dl_dlopen=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext \
9772     conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9774 fi
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9776 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9777 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9778   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9779 else
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9781 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9782 if ${ac_cv_lib_svld_dlopen+:} false; then :
9783   $as_echo_n "(cached) " >&6
9784 else
9785   ac_check_lib_save_LIBS=$LIBS
9786 LIBS="-lsvld  $LIBS"
9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h.  */
9789
9790 /* Override any GCC internal prototype to avoid an error.
9791    Use char because int might match the return type of a GCC
9792    builtin and then its argument prototype would still apply.  */
9793 #ifdef __cplusplus
9794 extern "C"
9795 #endif
9796 char dlopen ();
9797 int
9798 main ()
9799 {
9800 return dlopen ();
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 if ac_fn_c_try_link "$LINENO"; then :
9806   ac_cv_lib_svld_dlopen=yes
9807 else
9808   ac_cv_lib_svld_dlopen=no
9809 fi
9810 rm -f core conftest.err conftest.$ac_objext \
9811     conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9813 fi
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9815 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9816 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9817   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9818 else
9819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9820 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9821 if ${ac_cv_lib_dld_dld_link+:} false; then :
9822   $as_echo_n "(cached) " >&6
9823 else
9824   ac_check_lib_save_LIBS=$LIBS
9825 LIBS="-ldld  $LIBS"
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h.  */
9828
9829 /* Override any GCC internal prototype to avoid an error.
9830    Use char because int might match the return type of a GCC
9831    builtin and then its argument prototype would still apply.  */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char dld_link ();
9836 int
9837 main ()
9838 {
9839 return dld_link ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"; then :
9845   ac_cv_lib_dld_dld_link=yes
9846 else
9847   ac_cv_lib_dld_dld_link=no
9848 fi
9849 rm -f core conftest.err conftest.$ac_objext \
9850     conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9852 fi
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9854 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9855 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9856   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9857 fi
9858
9859
9860 fi
9861
9862
9863 fi
9864
9865
9866 fi
9867
9868
9869 fi
9870
9871
9872 fi
9873
9874     ;;
9875   esac
9876
9877   if test "x$lt_cv_dlopen" != xno; then
9878     enable_dlopen=yes
9879   else
9880     enable_dlopen=no
9881   fi
9882
9883   case $lt_cv_dlopen in
9884   dlopen)
9885     save_CPPFLAGS="$CPPFLAGS"
9886     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9887
9888     save_LDFLAGS="$LDFLAGS"
9889     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9890
9891     save_LIBS="$LIBS"
9892     LIBS="$lt_cv_dlopen_libs $LIBS"
9893
9894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9895 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9896 if ${lt_cv_dlopen_self+:} false; then :
9897   $as_echo_n "(cached) " >&6
9898 else
9899           if test "$cross_compiling" = yes; then :
9900   lt_cv_dlopen_self=cross
9901 else
9902   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9903   lt_status=$lt_dlunknown
9904   cat > conftest.$ac_ext <<EOF
9905 #line 9905 "configure"
9906 #include "confdefs.h"
9907
9908 #if HAVE_DLFCN_H
9909 #include <dlfcn.h>
9910 #endif
9911
9912 #include <stdio.h>
9913
9914 #ifdef RTLD_GLOBAL
9915 #  define LT_DLGLOBAL           RTLD_GLOBAL
9916 #else
9917 #  ifdef DL_GLOBAL
9918 #    define LT_DLGLOBAL         DL_GLOBAL
9919 #  else
9920 #    define LT_DLGLOBAL         0
9921 #  endif
9922 #endif
9923
9924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9925    find out it does not work in some platform. */
9926 #ifndef LT_DLLAZY_OR_NOW
9927 #  ifdef RTLD_LAZY
9928 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9929 #  else
9930 #    ifdef DL_LAZY
9931 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9932 #    else
9933 #      ifdef RTLD_NOW
9934 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9935 #      else
9936 #        ifdef DL_NOW
9937 #          define LT_DLLAZY_OR_NOW      DL_NOW
9938 #        else
9939 #          define LT_DLLAZY_OR_NOW      0
9940 #        endif
9941 #      endif
9942 #    endif
9943 #  endif
9944 #endif
9945
9946 #ifdef __cplusplus
9947 extern "C" void exit (int);
9948 #endif
9949
9950 void fnord() { int i=42;}
9951 int main ()
9952 {
9953   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9954   int status = $lt_dlunknown;
9955
9956   if (self)
9957     {
9958       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9959       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9960       /* dlclose (self); */
9961     }
9962   else
9963     puts (dlerror ());
9964
9965     exit (status);
9966 }
9967 EOF
9968   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9969   (eval $ac_link) 2>&5
9970   ac_status=$?
9971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9972   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9973     (./conftest; exit; ) >&5 2>/dev/null
9974     lt_status=$?
9975     case x$lt_status in
9976       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9977       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9978       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9979     esac
9980   else :
9981     # compilation failed
9982     lt_cv_dlopen_self=no
9983   fi
9984 fi
9985 rm -fr conftest*
9986
9987
9988 fi
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9990 $as_echo "$lt_cv_dlopen_self" >&6; }
9991
9992     if test "x$lt_cv_dlopen_self" = xyes; then
9993       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9994       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9995 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9996 if ${lt_cv_dlopen_self_static+:} false; then :
9997   $as_echo_n "(cached) " >&6
9998 else
9999           if test "$cross_compiling" = yes; then :
10000   lt_cv_dlopen_self_static=cross
10001 else
10002   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10003   lt_status=$lt_dlunknown
10004   cat > conftest.$ac_ext <<EOF
10005 #line 10005 "configure"
10006 #include "confdefs.h"
10007
10008 #if HAVE_DLFCN_H
10009 #include <dlfcn.h>
10010 #endif
10011
10012 #include <stdio.h>
10013
10014 #ifdef RTLD_GLOBAL
10015 #  define LT_DLGLOBAL           RTLD_GLOBAL
10016 #else
10017 #  ifdef DL_GLOBAL
10018 #    define LT_DLGLOBAL         DL_GLOBAL
10019 #  else
10020 #    define LT_DLGLOBAL         0
10021 #  endif
10022 #endif
10023
10024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10025    find out it does not work in some platform. */
10026 #ifndef LT_DLLAZY_OR_NOW
10027 #  ifdef RTLD_LAZY
10028 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10029 #  else
10030 #    ifdef DL_LAZY
10031 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10032 #    else
10033 #      ifdef RTLD_NOW
10034 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10035 #      else
10036 #        ifdef DL_NOW
10037 #          define LT_DLLAZY_OR_NOW      DL_NOW
10038 #        else
10039 #          define LT_DLLAZY_OR_NOW      0
10040 #        endif
10041 #      endif
10042 #    endif
10043 #  endif
10044 #endif
10045
10046 #ifdef __cplusplus
10047 extern "C" void exit (int);
10048 #endif
10049
10050 void fnord() { int i=42;}
10051 int main ()
10052 {
10053   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10054   int status = $lt_dlunknown;
10055
10056   if (self)
10057     {
10058       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10059       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10060       /* dlclose (self); */
10061     }
10062   else
10063     puts (dlerror ());
10064
10065     exit (status);
10066 }
10067 EOF
10068   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10069   (eval $ac_link) 2>&5
10070   ac_status=$?
10071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10072   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10073     (./conftest; exit; ) >&5 2>/dev/null
10074     lt_status=$?
10075     case x$lt_status in
10076       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10077       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10078       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10079     esac
10080   else :
10081     # compilation failed
10082     lt_cv_dlopen_self_static=no
10083   fi
10084 fi
10085 rm -fr conftest*
10086
10087
10088 fi
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10090 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10091     fi
10092
10093     CPPFLAGS="$save_CPPFLAGS"
10094     LDFLAGS="$save_LDFLAGS"
10095     LIBS="$save_LIBS"
10096     ;;
10097   esac
10098
10099   case $lt_cv_dlopen_self in
10100   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10101   *) enable_dlopen_self=unknown ;;
10102   esac
10103
10104   case $lt_cv_dlopen_self_static in
10105   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10106   *) enable_dlopen_self_static=unknown ;;
10107   esac
10108 fi
10109
10110
10111 # Report which library types will actually be built
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10113 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10115 $as_echo "$can_build_shared" >&6; }
10116
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10118 $as_echo_n "checking whether to build shared libraries... " >&6; }
10119 test "$can_build_shared" = "no" && enable_shared=no
10120
10121 # On AIX, shared libraries and static libraries use the same namespace, and
10122 # are all built from PIC.
10123 case $host_os in
10124 aix3*)
10125   test "$enable_shared" = yes && enable_static=no
10126   if test -n "$RANLIB"; then
10127     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10128     postinstall_cmds='$RANLIB $lib'
10129   fi
10130   ;;
10131
10132 aix[4-9]*)
10133   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10134     test "$enable_shared" = yes && enable_static=no
10135   fi
10136     ;;
10137 esac
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10139 $as_echo "$enable_shared" >&6; }
10140
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10142 $as_echo_n "checking whether to build static libraries... " >&6; }
10143 # Make sure either enable_shared or enable_static is yes.
10144 test "$enable_shared" = yes || enable_static=yes
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10146 $as_echo "$enable_static" >&6; }
10147
10148 # The else clause should only fire when bootstrapping the
10149 # libtool distribution, otherwise you forgot to ship ltmain.sh
10150 # with your package, and you will get complaints that there are
10151 # no rules to generate ltmain.sh.
10152 if test -f "$ltmain"; then
10153   # See if we are running on zsh, and set the options which allow our commands through
10154   # without removal of \ escapes.
10155   if test -n "${ZSH_VERSION+set}" ; then
10156     setopt NO_GLOB_SUBST
10157   fi
10158   # Now quote all the things that may contain metacharacters while being
10159   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10160   # variables and quote the copies for generation of the libtool script.
10161   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10162     SED SHELL STRIP \
10163     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10164     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10165     deplibs_check_method reload_flag reload_cmds need_locks \
10166     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10167     lt_cv_sys_global_symbol_to_c_name_address \
10168     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10169     old_postinstall_cmds old_postuninstall_cmds \
10170     compiler \
10171     CC \
10172     LD \
10173     lt_prog_compiler_wl \
10174     lt_prog_compiler_pic \
10175     lt_prog_compiler_static \
10176     lt_prog_compiler_no_builtin_flag \
10177     export_dynamic_flag_spec \
10178     thread_safe_flag_spec \
10179     whole_archive_flag_spec \
10180     enable_shared_with_static_runtimes \
10181     old_archive_cmds \
10182     old_archive_from_new_cmds \
10183     predep_objects \
10184     postdep_objects \
10185     predeps \
10186     postdeps \
10187     compiler_lib_search_path \
10188     compiler_lib_search_dirs \
10189     archive_cmds \
10190     archive_expsym_cmds \
10191     postinstall_cmds \
10192     postuninstall_cmds \
10193     old_archive_from_expsyms_cmds \
10194     allow_undefined_flag \
10195     no_undefined_flag \
10196     export_symbols_cmds \
10197     hardcode_libdir_flag_spec \
10198     hardcode_libdir_flag_spec_ld \
10199     hardcode_libdir_separator \
10200     hardcode_automatic \
10201     module_cmds \
10202     module_expsym_cmds \
10203     lt_cv_prog_compiler_c_o \
10204     fix_srcfile_path \
10205     exclude_expsyms \
10206     include_expsyms; do
10207
10208     case $var in
10209     old_archive_cmds | \
10210     old_archive_from_new_cmds | \
10211     archive_cmds | \
10212     archive_expsym_cmds | \
10213     module_cmds | \
10214     module_expsym_cmds | \
10215     old_archive_from_expsyms_cmds | \
10216     export_symbols_cmds | \
10217     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10218     postinstall_cmds | postuninstall_cmds | \
10219     old_postinstall_cmds | old_postuninstall_cmds | \
10220     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10221       # Double-quote double-evaled strings.
10222       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10223       ;;
10224     *)
10225       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10226       ;;
10227     esac
10228   done
10229
10230   case $lt_echo in
10231   *'\$0 --fallback-echo"')
10232     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10233     ;;
10234   esac
10235
10236 cfgfile="${ofile}T"
10237   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10238   $rm -f "$cfgfile"
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10240 $as_echo "$as_me: creating $ofile" >&6;}
10241
10242   cat <<__EOF__ >> "$cfgfile"
10243 #! $SHELL
10244
10245 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10246 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10248 #
10249 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10250 # Free Software Foundation, Inc.
10251 #
10252 # This file is part of GNU Libtool:
10253 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10254 #
10255 # This program is free software; you can redistribute it and/or modify
10256 # it under the terms of the GNU General Public License as published by
10257 # the Free Software Foundation; either version 2 of the License, or
10258 # (at your option) any later version.
10259 #
10260 # This program is distributed in the hope that it will be useful, but
10261 # WITHOUT ANY WARRANTY; without even the implied warranty of
10262 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10263 # General Public License for more details.
10264 #
10265 # You should have received a copy of the GNU General Public License
10266 # along with this program; if not, write to the Free Software
10267 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10268 #
10269 # As a special exception to the GNU General Public License, if you
10270 # distribute this file as part of a program that contains a
10271 # configuration script generated by Autoconf, you may include it under
10272 # the same distribution terms that you use for the rest of that program.
10273
10274 # A sed program that does not truncate output.
10275 SED=$lt_SED
10276
10277 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10278 Xsed="$SED -e 1s/^X//"
10279
10280 # The HP-UX ksh and POSIX shell print the target directory to stdout
10281 # if CDPATH is set.
10282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10283
10284 # The names of the tagged configurations supported by this script.
10285 available_tags=
10286
10287 # ### BEGIN LIBTOOL CONFIG
10288
10289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10290
10291 # Shell to use when invoking shell scripts.
10292 SHELL=$lt_SHELL
10293
10294 # Whether or not to build shared libraries.
10295 build_libtool_libs=$enable_shared
10296
10297 # Whether or not to build static libraries.
10298 build_old_libs=$enable_static
10299
10300 # Whether or not to add -lc for building shared libraries.
10301 build_libtool_need_lc=$archive_cmds_need_lc
10302
10303 # Whether or not to disallow shared libs when runtime libs are static
10304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10305
10306 # Whether or not to optimize for fast installation.
10307 fast_install=$enable_fast_install
10308
10309 # The host system.
10310 host_alias=$host_alias
10311 host=$host
10312 host_os=$host_os
10313
10314 # The build system.
10315 build_alias=$build_alias
10316 build=$build
10317 build_os=$build_os
10318
10319 # An echo program that does not interpret backslashes.
10320 echo=$lt_echo
10321
10322 # The archiver.
10323 AR=$lt_AR
10324 AR_FLAGS=$lt_AR_FLAGS
10325
10326 # A C compiler.
10327 LTCC=$lt_LTCC
10328
10329 # LTCC compiler flags.
10330 LTCFLAGS=$lt_LTCFLAGS
10331
10332 # A language-specific compiler.
10333 CC=$lt_compiler
10334
10335 # Is the compiler the GNU C compiler?
10336 with_gcc=$GCC
10337
10338 # An ERE matcher.
10339 EGREP=$lt_EGREP
10340
10341 # The linker used to build libraries.
10342 LD=$lt_LD
10343
10344 # Whether we need hard or soft links.
10345 LN_S=$lt_LN_S
10346
10347 # A BSD-compatible nm program.
10348 NM=$lt_NM
10349
10350 # A symbol stripping program
10351 STRIP=$lt_STRIP
10352
10353 # Used to examine libraries when file_magic_cmd begins "file"
10354 MAGIC_CMD=$MAGIC_CMD
10355
10356 # Used on cygwin: DLL creation program.
10357 DLLTOOL="$DLLTOOL"
10358
10359 # Used on cygwin: object dumper.
10360 OBJDUMP="$OBJDUMP"
10361
10362 # Used on cygwin: assembler.
10363 AS="$AS"
10364
10365 # The name of the directory that contains temporary libtool files.
10366 objdir=$objdir
10367
10368 # How to create reloadable object files.
10369 reload_flag=$lt_reload_flag
10370 reload_cmds=$lt_reload_cmds
10371
10372 # How to pass a linker flag through the compiler.
10373 wl=$lt_lt_prog_compiler_wl
10374
10375 # Object file suffix (normally "o").
10376 objext="$ac_objext"
10377
10378 # Old archive suffix (normally "a").
10379 libext="$libext"
10380
10381 # Shared library suffix (normally ".so").
10382 shrext_cmds='$shrext_cmds'
10383
10384 # Executable file suffix (normally "").
10385 exeext="$exeext"
10386
10387 # Additional compiler flags for building library objects.
10388 pic_flag=$lt_lt_prog_compiler_pic
10389 pic_mode=$pic_mode
10390
10391 # What is the maximum length of a command?
10392 max_cmd_len=$lt_cv_sys_max_cmd_len
10393
10394 # Does compiler simultaneously support -c and -o options?
10395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10396
10397 # Must we lock files when doing compilation?
10398 need_locks=$lt_need_locks
10399
10400 # Do we need the lib prefix for modules?
10401 need_lib_prefix=$need_lib_prefix
10402
10403 # Do we need a version for libraries?
10404 need_version=$need_version
10405
10406 # Whether dlopen is supported.
10407 dlopen_support=$enable_dlopen
10408
10409 # Whether dlopen of programs is supported.
10410 dlopen_self=$enable_dlopen_self
10411
10412 # Whether dlopen of statically linked programs is supported.
10413 dlopen_self_static=$enable_dlopen_self_static
10414
10415 # Compiler flag to prevent dynamic linking.
10416 link_static_flag=$lt_lt_prog_compiler_static
10417
10418 # Compiler flag to turn off builtin functions.
10419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10420
10421 # Compiler flag to allow reflexive dlopens.
10422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10423
10424 # Compiler flag to generate shared objects directly from archives.
10425 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10426
10427 # Compiler flag to generate thread-safe objects.
10428 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10429
10430 # Library versioning type.
10431 version_type=$version_type
10432
10433 # Format of library name prefix.
10434 libname_spec=$lt_libname_spec
10435
10436 # List of archive names.  First name is the real one, the rest are links.
10437 # The last name is the one that the linker finds with -lNAME.
10438 library_names_spec=$lt_library_names_spec
10439
10440 # The coded name of the library, if different from the real name.
10441 soname_spec=$lt_soname_spec
10442
10443 # Commands used to build and install an old-style archive.
10444 RANLIB=$lt_RANLIB
10445 old_archive_cmds=$lt_old_archive_cmds
10446 old_postinstall_cmds=$lt_old_postinstall_cmds
10447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10448
10449 # Create an old-style archive from a shared archive.
10450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10451
10452 # Create a temporary old-style archive to link instead of a shared archive.
10453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10454
10455 # Commands used to build and install a shared archive.
10456 archive_cmds=$lt_archive_cmds
10457 archive_expsym_cmds=$lt_archive_expsym_cmds
10458 postinstall_cmds=$lt_postinstall_cmds
10459 postuninstall_cmds=$lt_postuninstall_cmds
10460
10461 # Commands used to build a loadable module (assumed same as above if empty)
10462 module_cmds=$lt_module_cmds
10463 module_expsym_cmds=$lt_module_expsym_cmds
10464
10465 # Commands to strip libraries.
10466 old_striplib=$lt_old_striplib
10467 striplib=$lt_striplib
10468
10469 # Dependencies to place before the objects being linked to create a
10470 # shared library.
10471 predep_objects=$lt_predep_objects
10472
10473 # Dependencies to place after the objects being linked to create a
10474 # shared library.
10475 postdep_objects=$lt_postdep_objects
10476
10477 # Dependencies to place before the objects being linked to create a
10478 # shared library.
10479 predeps=$lt_predeps
10480
10481 # Dependencies to place after the objects being linked to create a
10482 # shared library.
10483 postdeps=$lt_postdeps
10484
10485 # The directories searched by this compiler when creating a shared
10486 # library
10487 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10488
10489 # The library search path used internally by the compiler when linking
10490 # a shared library.
10491 compiler_lib_search_path=$lt_compiler_lib_search_path
10492
10493 # Method to check whether dependent libraries are shared objects.
10494 deplibs_check_method=$lt_deplibs_check_method
10495
10496 # Command to use when deplibs_check_method == file_magic.
10497 file_magic_cmd=$lt_file_magic_cmd
10498
10499 # Flag that allows shared libraries with undefined symbols to be built.
10500 allow_undefined_flag=$lt_allow_undefined_flag
10501
10502 # Flag that forces no undefined symbols.
10503 no_undefined_flag=$lt_no_undefined_flag
10504
10505 # Commands used to finish a libtool library installation in a directory.
10506 finish_cmds=$lt_finish_cmds
10507
10508 # Same as above, but a single script fragment to be evaled but not shown.
10509 finish_eval=$lt_finish_eval
10510
10511 # Take the output of nm and produce a listing of raw symbols and C names.
10512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10513
10514 # Transform the output of nm in a proper C declaration
10515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10516
10517 # Transform the output of nm in a C name address pair
10518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10519
10520 # This is the shared library runtime path variable.
10521 runpath_var=$runpath_var
10522
10523 # This is the shared library path variable.
10524 shlibpath_var=$shlibpath_var
10525
10526 # Is shlibpath searched before the hard-coded library search path?
10527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10528
10529 # How to hardcode a shared library path into an executable.
10530 hardcode_action=$hardcode_action
10531
10532 # Whether we should hardcode library paths into libraries.
10533 hardcode_into_libs=$hardcode_into_libs
10534
10535 # Flag to hardcode \$libdir into a binary during linking.
10536 # This must work even if \$libdir does not exist.
10537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10538
10539 # If ld is used when linking, flag to hardcode \$libdir into
10540 # a binary during linking. This must work even if \$libdir does
10541 # not exist.
10542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10543
10544 # Whether we need a single -rpath flag with a separated argument.
10545 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10546
10547 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10548 # resulting binary.
10549 hardcode_direct=$hardcode_direct
10550
10551 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10552 # resulting binary.
10553 hardcode_minus_L=$hardcode_minus_L
10554
10555 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10556 # the resulting binary.
10557 hardcode_shlibpath_var=$hardcode_shlibpath_var
10558
10559 # Set to yes if building a shared library automatically hardcodes DIR into the library
10560 # and all subsequent libraries and executables linked against it.
10561 hardcode_automatic=$hardcode_automatic
10562
10563 # Variables whose values should be saved in libtool wrapper scripts and
10564 # restored at relink time.
10565 variables_saved_for_relink="$variables_saved_for_relink"
10566
10567 # Whether libtool must link a program against all its dependency libraries.
10568 link_all_deplibs=$link_all_deplibs
10569
10570 # Compile-time system search path for libraries
10571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10572
10573 # Run-time system search path for libraries
10574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10575
10576 # Fix the shell variable \$srcfile for the compiler.
10577 fix_srcfile_path=$lt_fix_srcfile_path
10578
10579 # Set to yes if exported symbols are required.
10580 always_export_symbols=$always_export_symbols
10581
10582 # The commands to list exported symbols.
10583 export_symbols_cmds=$lt_export_symbols_cmds
10584
10585 # The commands to extract the exported symbol list from a shared archive.
10586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10587
10588 # Symbols that should not be listed in the preloaded symbols.
10589 exclude_expsyms=$lt_exclude_expsyms
10590
10591 # Symbols that must always be exported.
10592 include_expsyms=$lt_include_expsyms
10593
10594 # ### END LIBTOOL CONFIG
10595
10596 __EOF__
10597
10598
10599   case $host_os in
10600   aix3*)
10601     cat <<\EOF >> "$cfgfile"
10602
10603 # AIX sometimes has problems with the GCC collect2 program.  For some
10604 # reason, if we set the COLLECT_NAMES environment variable, the problems
10605 # vanish in a puff of smoke.
10606 if test "X${COLLECT_NAMES+set}" != Xset; then
10607   COLLECT_NAMES=
10608   export COLLECT_NAMES
10609 fi
10610 EOF
10611     ;;
10612   esac
10613
10614   # We use sed instead of cat because bash on DJGPP gets confused if
10615   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10616   # text mode, it properly converts lines to CR/LF.  This bash problem
10617   # is reportedly fixed, but why not run on old versions too?
10618   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10619
10620   mv -f "$cfgfile" "$ofile" || \
10621     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10622   chmod +x "$ofile"
10623
10624 else
10625   # If there is no Makefile yet, we rely on a make rule to execute
10626   # `config.status --recheck' to rerun these tests and create the
10627   # libtool script then.
10628   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10629   if test -f "$ltmain_in"; then
10630     test -f Makefile && make "$ltmain"
10631   fi
10632 fi
10633
10634
10635 ac_ext=c
10636 ac_cpp='$CPP $CPPFLAGS'
10637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10640
10641 CC="$lt_save_CC"
10642
10643
10644 # Check whether --with-tags was given.
10645 if test "${with_tags+set}" = set; then :
10646   withval=$with_tags; tagnames="$withval"
10647 fi
10648
10649
10650 if test -f "$ltmain" && test -n "$tagnames"; then
10651   if test ! -f "${ofile}"; then
10652     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10653 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10654   fi
10655
10656   if test -z "$LTCC"; then
10657     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10658     if test -z "$LTCC"; then
10659       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10660 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10661     else
10662       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10663 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10664     fi
10665   fi
10666   if test -z "$LTCFLAGS"; then
10667     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10668   fi
10669
10670   # Extract list of available tagged configurations in $ofile.
10671   # Note that this assumes the entire list is on one line.
10672   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10673
10674   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10675   for tagname in $tagnames; do
10676     IFS="$lt_save_ifs"
10677     # Check whether tagname contains only valid characters
10678     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10679     "") ;;
10680     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10681         ;;
10682     esac
10683
10684     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10685     then
10686       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10687     fi
10688
10689     # Update the list of available tags.
10690     if test -n "$tagname"; then
10691       echo appending configuration tag \"$tagname\" to $ofile
10692
10693       case $tagname in
10694       CXX)
10695         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10696             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10697             (test "X$CXX" != "Xg++"))) ; then
10698           ac_ext=cpp
10699 ac_cpp='$CXXCPP $CPPFLAGS'
10700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10703
10704
10705
10706
10707 archive_cmds_need_lc_CXX=no
10708 allow_undefined_flag_CXX=
10709 always_export_symbols_CXX=no
10710 archive_expsym_cmds_CXX=
10711 export_dynamic_flag_spec_CXX=
10712 hardcode_direct_CXX=no
10713 hardcode_libdir_flag_spec_CXX=
10714 hardcode_libdir_flag_spec_ld_CXX=
10715 hardcode_libdir_separator_CXX=
10716 hardcode_minus_L_CXX=no
10717 hardcode_shlibpath_var_CXX=unsupported
10718 hardcode_automatic_CXX=no
10719 module_cmds_CXX=
10720 module_expsym_cmds_CXX=
10721 link_all_deplibs_CXX=unknown
10722 old_archive_cmds_CXX=$old_archive_cmds
10723 no_undefined_flag_CXX=
10724 whole_archive_flag_spec_CXX=
10725 enable_shared_with_static_runtimes_CXX=no
10726
10727 # Dependencies to place before and after the object being linked:
10728 predep_objects_CXX=
10729 postdep_objects_CXX=
10730 predeps_CXX=
10731 postdeps_CXX=
10732 compiler_lib_search_path_CXX=
10733 compiler_lib_search_dirs_CXX=
10734
10735 # Source file extension for C++ test sources.
10736 ac_ext=cpp
10737
10738 # Object file extension for compiled C++ test sources.
10739 objext=o
10740 objext_CXX=$objext
10741
10742 # Code to be used in simple compile tests
10743 lt_simple_compile_test_code="int some_variable = 0;"
10744
10745 # Code to be used in simple link tests
10746 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10747
10748 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10749
10750 # If no C compiler was specified, use CC.
10751 LTCC=${LTCC-"$CC"}
10752
10753 # If no C compiler flags were specified, use CFLAGS.
10754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10755
10756 # Allow CC to be a program name with arguments.
10757 compiler=$CC
10758
10759
10760 # save warnings/boilerplate of simple test code
10761 ac_outfile=conftest.$ac_objext
10762 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10763 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10764 _lt_compiler_boilerplate=`cat conftest.err`
10765 $rm conftest*
10766
10767 ac_outfile=conftest.$ac_objext
10768 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10769 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10770 _lt_linker_boilerplate=`cat conftest.err`
10771 $rm -r conftest*
10772
10773
10774 # Allow CC to be a program name with arguments.
10775 lt_save_CC=$CC
10776 lt_save_LD=$LD
10777 lt_save_GCC=$GCC
10778 GCC=$GXX
10779 lt_save_with_gnu_ld=$with_gnu_ld
10780 lt_save_path_LD=$lt_cv_path_LD
10781 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10782   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10783 else
10784   $as_unset lt_cv_prog_gnu_ld
10785 fi
10786 if test -n "${lt_cv_path_LDCXX+set}"; then
10787   lt_cv_path_LD=$lt_cv_path_LDCXX
10788 else
10789   $as_unset lt_cv_path_LD
10790 fi
10791 test -z "${LDCXX+set}" || LD=$LDCXX
10792 CC=${CXX-"c++"}
10793 compiler=$CC
10794 compiler_CXX=$CC
10795 for cc_temp in $compiler""; do
10796   case $cc_temp in
10797     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10798     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10799     \-*) ;;
10800     *) break;;
10801   esac
10802 done
10803 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10804
10805
10806 # We don't want -fno-exception wen compiling C++ code, so set the
10807 # no_builtin_flag separately
10808 if test "$GXX" = yes; then
10809   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10810 else
10811   lt_prog_compiler_no_builtin_flag_CXX=
10812 fi
10813
10814 if test "$GXX" = yes; then
10815   # Set up default GNU C++ configuration
10816
10817
10818 # Check whether --with-gnu-ld was given.
10819 if test "${with_gnu_ld+set}" = set; then :
10820   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10821 else
10822   with_gnu_ld=no
10823 fi
10824
10825 ac_prog=ld
10826 if test "$GCC" = yes; then
10827   # Check if gcc -print-prog-name=ld gives a path.
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10829 $as_echo_n "checking for ld used by $CC... " >&6; }
10830   case $host in
10831   *-*-mingw*)
10832     # gcc leaves a trailing carriage return which upsets mingw
10833     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10834   *)
10835     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10836   esac
10837   case $ac_prog in
10838     # Accept absolute paths.
10839     [\\/]* | ?:[\\/]*)
10840       re_direlt='/[^/][^/]*/\.\./'
10841       # Canonicalize the pathname of ld
10842       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10843       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10844         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10845       done
10846       test -z "$LD" && LD="$ac_prog"
10847       ;;
10848   "")
10849     # If it fails, then pretend we aren't using GCC.
10850     ac_prog=ld
10851     ;;
10852   *)
10853     # If it is relative, then search for the first ld in PATH.
10854     with_gnu_ld=unknown
10855     ;;
10856   esac
10857 elif test "$with_gnu_ld" = yes; then
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10859 $as_echo_n "checking for GNU ld... " >&6; }
10860 else
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10862 $as_echo_n "checking for non-GNU ld... " >&6; }
10863 fi
10864 if ${lt_cv_path_LD+:} false; then :
10865   $as_echo_n "(cached) " >&6
10866 else
10867   if test -z "$LD"; then
10868   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10869   for ac_dir in $PATH; do
10870     IFS="$lt_save_ifs"
10871     test -z "$ac_dir" && ac_dir=.
10872     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10873       lt_cv_path_LD="$ac_dir/$ac_prog"
10874       # Check to see if the program is GNU ld.  I'd rather use --version,
10875       # but apparently some variants of GNU ld only accept -v.
10876       # Break only if it was the GNU/non-GNU ld that we prefer.
10877       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10878       *GNU* | *'with BFD'*)
10879         test "$with_gnu_ld" != no && break
10880         ;;
10881       *)
10882         test "$with_gnu_ld" != yes && break
10883         ;;
10884       esac
10885     fi
10886   done
10887   IFS="$lt_save_ifs"
10888 else
10889   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10890 fi
10891 fi
10892
10893 LD="$lt_cv_path_LD"
10894 if test -n "$LD"; then
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10896 $as_echo "$LD" >&6; }
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10900 fi
10901 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10904 if ${lt_cv_prog_gnu_ld+:} false; then :
10905   $as_echo_n "(cached) " >&6
10906 else
10907   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10908 case `$LD -v 2>&1 </dev/null` in
10909 *GNU* | *'with BFD'*)
10910   lt_cv_prog_gnu_ld=yes
10911   ;;
10912 *)
10913   lt_cv_prog_gnu_ld=no
10914   ;;
10915 esac
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10918 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10919 with_gnu_ld=$lt_cv_prog_gnu_ld
10920
10921
10922
10923   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10924   # archiving commands below assume that GNU ld is being used.
10925   if test "$with_gnu_ld" = yes; then
10926     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10927     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'
10928
10929     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10930     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10931
10932     # If archive_cmds runs LD, not CC, wlarc should be empty
10933     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10934     #     investigate it a little bit more. (MM)
10935     wlarc='${wl}'
10936
10937     # ancient GNU ld didn't support --whole-archive et. al.
10938     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10939         grep 'no-whole-archive' > /dev/null; then
10940       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10941     else
10942       whole_archive_flag_spec_CXX=
10943     fi
10944   else
10945     with_gnu_ld=no
10946     wlarc=
10947
10948     # A generic and very simple default shared library creation
10949     # command for GNU C++ for the case where it uses the native
10950     # linker, instead of GNU ld.  If possible, this setting should
10951     # overridden to take advantage of the native linker features on
10952     # the platform it is being used on.
10953     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10954   fi
10955
10956   # Commands to make compiler produce verbose output that lists
10957   # what "hidden" libraries, object files and flags are used when
10958   # linking a shared library.
10959   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10960
10961 else
10962   GXX=no
10963   with_gnu_ld=no
10964   wlarc=
10965 fi
10966
10967 # PORTME: fill in a description of your system's C++ link characteristics
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10969 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10970 ld_shlibs_CXX=yes
10971 case $host_os in
10972   aix3*)
10973     # FIXME: insert proper C++ library support
10974     ld_shlibs_CXX=no
10975     ;;
10976   aix[4-9]*)
10977     if test "$host_cpu" = ia64; then
10978       # On IA64, the linker does run time linking by default, so we don't
10979       # have to do anything special.
10980       aix_use_runtimelinking=no
10981       exp_sym_flag='-Bexport'
10982       no_entry_flag=""
10983     else
10984       aix_use_runtimelinking=no
10985
10986       # Test if we are trying to use run time linking or normal
10987       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10988       # need to do runtime linking.
10989       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10990         for ld_flag in $LDFLAGS; do
10991           case $ld_flag in
10992           *-brtl*)
10993             aix_use_runtimelinking=yes
10994             break
10995             ;;
10996           esac
10997         done
10998         ;;
10999       esac
11000
11001       exp_sym_flag='-bexport'
11002       no_entry_flag='-bnoentry'
11003     fi
11004
11005     # When large executables or shared objects are built, AIX ld can
11006     # have problems creating the table of contents.  If linking a library
11007     # or program results in "error TOC overflow" add -mminimal-toc to
11008     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11009     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11010
11011     archive_cmds_CXX=''
11012     hardcode_direct_CXX=yes
11013     hardcode_libdir_separator_CXX=':'
11014     link_all_deplibs_CXX=yes
11015
11016     if test "$GXX" = yes; then
11017       case $host_os in aix4.[012]|aix4.[012].*)
11018       # We only want to do this on AIX 4.2 and lower, the check
11019       # below for broken collect2 doesn't work under 4.3+
11020         collect2name=`${CC} -print-prog-name=collect2`
11021         if test -f "$collect2name" && \
11022            strings "$collect2name" | grep resolve_lib_name >/dev/null
11023         then
11024           # We have reworked collect2
11025           :
11026         else
11027           # We have old collect2
11028           hardcode_direct_CXX=unsupported
11029           # It fails to find uninstalled libraries when the uninstalled
11030           # path is not listed in the libpath.  Setting hardcode_minus_L
11031           # to unsupported forces relinking
11032           hardcode_minus_L_CXX=yes
11033           hardcode_libdir_flag_spec_CXX='-L$libdir'
11034           hardcode_libdir_separator_CXX=
11035         fi
11036         ;;
11037       esac
11038       shared_flag='-shared'
11039       if test "$aix_use_runtimelinking" = yes; then
11040         shared_flag="$shared_flag "'${wl}-G'
11041       fi
11042     else
11043       # not using gcc
11044       if test "$host_cpu" = ia64; then
11045         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11046         # chokes on -Wl,-G. The following line is correct:
11047         shared_flag='-G'
11048       else
11049         if test "$aix_use_runtimelinking" = yes; then
11050           shared_flag='${wl}-G'
11051         else
11052           shared_flag='${wl}-bM:SRE'
11053         fi
11054       fi
11055     fi
11056
11057     # It seems that -bexpall does not export symbols beginning with
11058     # underscore (_), so it is better to generate a list of symbols to export.
11059     always_export_symbols_CXX=yes
11060     if test "$aix_use_runtimelinking" = yes; then
11061       # Warning - without using the other runtime loading flags (-brtl),
11062       # -berok will link without error, but may produce a broken library.
11063       allow_undefined_flag_CXX='-berok'
11064       # Determine the default libpath from the value encoded in an empty executable.
11065       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h.  */
11067
11068 int
11069 main ()
11070 {
11071
11072   ;
11073   return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_cxx_try_link "$LINENO"; then :
11077
11078 lt_aix_libpath_sed='
11079     /Import File Strings/,/^$/ {
11080         /^0/ {
11081             s/^0  *\(.*\)$/\1/
11082             p
11083         }
11084     }'
11085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11086 # Check for a 64-bit object if we didn't find anything.
11087 if test -z "$aix_libpath"; then
11088   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11089 fi
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext \
11092     conftest$ac_exeext conftest.$ac_ext
11093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11094
11095       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11096
11097       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"
11098      else
11099       if test "$host_cpu" = ia64; then
11100         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11101         allow_undefined_flag_CXX="-z nodefs"
11102         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"
11103       else
11104         # Determine the default libpath from the value encoded in an empty executable.
11105         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h.  */
11107
11108 int
11109 main ()
11110 {
11111
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 if ac_fn_cxx_try_link "$LINENO"; then :
11117
11118 lt_aix_libpath_sed='
11119     /Import File Strings/,/^$/ {
11120         /^0/ {
11121             s/^0  *\(.*\)$/\1/
11122             p
11123         }
11124     }'
11125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11126 # Check for a 64-bit object if we didn't find anything.
11127 if test -z "$aix_libpath"; then
11128   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11129 fi
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132     conftest$ac_exeext conftest.$ac_ext
11133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11134
11135         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11136         # Warning - without using the other run time loading flags,
11137         # -berok will link without error, but may produce a broken library.
11138         no_undefined_flag_CXX=' ${wl}-bernotok'
11139         allow_undefined_flag_CXX=' ${wl}-berok'
11140         # Exported symbols can be pulled into shared objects from archives
11141         whole_archive_flag_spec_CXX='$convenience'
11142         archive_cmds_need_lc_CXX=yes
11143         # This is similar to how AIX traditionally builds its shared libraries.
11144         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'
11145       fi
11146     fi
11147     ;;
11148
11149   beos*)
11150     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11151       allow_undefined_flag_CXX=unsupported
11152       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11153       # support --undefined.  This deserves some investigation.  FIXME
11154       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11155     else
11156       ld_shlibs_CXX=no
11157     fi
11158     ;;
11159
11160   chorus*)
11161     case $cc_basename in
11162       *)
11163         # FIXME: insert proper C++ library support
11164         ld_shlibs_CXX=no
11165         ;;
11166     esac
11167     ;;
11168
11169   cygwin* | mingw* | pw32*)
11170     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11171     # as there is no search path for DLLs.
11172     hardcode_libdir_flag_spec_CXX='-L$libdir'
11173     allow_undefined_flag_CXX=unsupported
11174     always_export_symbols_CXX=no
11175     enable_shared_with_static_runtimes_CXX=yes
11176
11177     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11178       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'
11179       # If the export-symbols file already is a .def file (1st line
11180       # is EXPORTS), use it as is; otherwise, prepend...
11181       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11182         cp $export_symbols $output_objdir/$soname.def;
11183       else
11184         echo EXPORTS > $output_objdir/$soname.def;
11185         cat $export_symbols >> $output_objdir/$soname.def;
11186       fi~
11187       $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'
11188     else
11189       ld_shlibs_CXX=no
11190     fi
11191   ;;
11192       darwin* | rhapsody*)
11193       archive_cmds_need_lc_CXX=no
11194       hardcode_direct_CXX=no
11195       hardcode_automatic_CXX=yes
11196       hardcode_shlibpath_var_CXX=unsupported
11197       whole_archive_flag_spec_CXX=''
11198       link_all_deplibs_CXX=yes
11199       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11200       if test "$GXX" = yes ; then
11201       output_verbose_link_cmd='echo'
11202       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}"
11203       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11204       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}"
11205       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}"
11206       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11207         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}"
11208         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}"
11209       fi
11210       else
11211       case $cc_basename in
11212         xlc*)
11213          output_verbose_link_cmd='echo'
11214           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'
11215           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11216           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11217           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}'
11218           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}'
11219           ;;
11220        *)
11221          ld_shlibs_CXX=no
11222           ;;
11223       esac
11224       fi
11225         ;;
11226
11227   dgux*)
11228     case $cc_basename in
11229       ec++*)
11230         # FIXME: insert proper C++ library support
11231         ld_shlibs_CXX=no
11232         ;;
11233       ghcx*)
11234         # Green Hills C++ Compiler
11235         # FIXME: insert proper C++ library support
11236         ld_shlibs_CXX=no
11237         ;;
11238       *)
11239         # FIXME: insert proper C++ library support
11240         ld_shlibs_CXX=no
11241         ;;
11242     esac
11243     ;;
11244   freebsd[12]*)
11245     # C++ shared libraries reported to be fairly broken before switch to ELF
11246     ld_shlibs_CXX=no
11247     ;;
11248   freebsd-elf*)
11249     archive_cmds_need_lc_CXX=no
11250     ;;
11251   freebsd* | dragonfly*)
11252     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11253     # conventions
11254     ld_shlibs_CXX=yes
11255     ;;
11256   gnu*)
11257     ;;
11258   hpux9*)
11259     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11260     hardcode_libdir_separator_CXX=:
11261     export_dynamic_flag_spec_CXX='${wl}-E'
11262     hardcode_direct_CXX=yes
11263     hardcode_minus_L_CXX=yes # Not in the search PATH,
11264                                 # but as the default
11265                                 # location of the library.
11266
11267     case $cc_basename in
11268     CC*)
11269       # FIXME: insert proper C++ library support
11270       ld_shlibs_CXX=no
11271       ;;
11272     aCC*)
11273       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'
11274       # Commands to make compiler produce verbose output that lists
11275       # what "hidden" libraries, object files and flags are used when
11276       # linking a shared library.
11277       #
11278       # There doesn't appear to be a way to prevent this compiler from
11279       # explicitly linking system object files so we need to strip them
11280       # from the output so that they don't get included in the library
11281       # dependencies.
11282       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'
11283       ;;
11284     *)
11285       if test "$GXX" = yes; then
11286         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'
11287       else
11288         # FIXME: insert proper C++ library support
11289         ld_shlibs_CXX=no
11290       fi
11291       ;;
11292     esac
11293     ;;
11294   hpux10*|hpux11*)
11295     if test $with_gnu_ld = no; then
11296       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11297       hardcode_libdir_separator_CXX=:
11298
11299       case $host_cpu in
11300       hppa*64*|ia64*) ;;
11301       *)
11302         export_dynamic_flag_spec_CXX='${wl}-E'
11303         ;;
11304       esac
11305     fi
11306     case $host_cpu in
11307     hppa*64*|ia64*)
11308       hardcode_direct_CXX=no
11309       hardcode_shlibpath_var_CXX=no
11310       ;;
11311     *)
11312       hardcode_direct_CXX=yes
11313       hardcode_minus_L_CXX=yes # Not in the search PATH,
11314                                               # but as the default
11315                                               # location of the library.
11316       ;;
11317     esac
11318
11319     case $cc_basename in
11320       CC*)
11321         # FIXME: insert proper C++ library support
11322         ld_shlibs_CXX=no
11323         ;;
11324       aCC*)
11325         case $host_cpu in
11326         hppa*64*)
11327           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11328           ;;
11329         ia64*)
11330           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11331           ;;
11332         *)
11333           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11334           ;;
11335         esac
11336         # Commands to make compiler produce verbose output that lists
11337         # what "hidden" libraries, object files and flags are used when
11338         # linking a shared library.
11339         #
11340         # There doesn't appear to be a way to prevent this compiler from
11341         # explicitly linking system object files so we need to strip them
11342         # from the output so that they don't get included in the library
11343         # dependencies.
11344         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'
11345         ;;
11346       *)
11347         if test "$GXX" = yes; then
11348           if test $with_gnu_ld = no; then
11349             case $host_cpu in
11350             hppa*64*)
11351               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11352               ;;
11353             ia64*)
11354               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11355               ;;
11356             *)
11357               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'
11358               ;;
11359             esac
11360           fi
11361         else
11362           # FIXME: insert proper C++ library support
11363           ld_shlibs_CXX=no
11364         fi
11365         ;;
11366     esac
11367     ;;
11368   interix[3-9]*)
11369     hardcode_direct_CXX=no
11370     hardcode_shlibpath_var_CXX=no
11371     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11372     export_dynamic_flag_spec_CXX='${wl}-E'
11373     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11374     # Instead, shared libraries are loaded at an image base (0x10000000 by
11375     # default) and relocated if they conflict, which is a slow very memory
11376     # consuming and fragmenting process.  To avoid this, we pick a random,
11377     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11378     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11379     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'
11380     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'
11381     ;;
11382   irix5* | irix6*)
11383     case $cc_basename in
11384       CC*)
11385         # SGI C++
11386         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'
11387
11388         # Archives containing C++ object files must be created using
11389         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11390         # necessary to make sure instantiated templates are included
11391         # in the archive.
11392         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11393         ;;
11394       *)
11395         if test "$GXX" = yes; then
11396           if test "$with_gnu_ld" = no; then
11397             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'
11398           else
11399             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'
11400           fi
11401         fi
11402         link_all_deplibs_CXX=yes
11403         ;;
11404     esac
11405     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11406     hardcode_libdir_separator_CXX=:
11407     ;;
11408   linux* | k*bsd*-gnu)
11409     case $cc_basename in
11410       KCC*)
11411         # Kuck and Associates, Inc. (KAI) C++ Compiler
11412
11413         # KCC will only create a shared library if the output file
11414         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11415         # to its proper name (with version) after linking.
11416         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'
11417         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'
11418         # Commands to make compiler produce verbose output that lists
11419         # what "hidden" libraries, object files and flags are used when
11420         # linking a shared library.
11421         #
11422         # There doesn't appear to be a way to prevent this compiler from
11423         # explicitly linking system object files so we need to strip them
11424         # from the output so that they don't get included in the library
11425         # dependencies.
11426         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'
11427
11428         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11429         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11430
11431         # Archives containing C++ object files must be created using
11432         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11433         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11434         ;;
11435       icpc*)
11436         # Intel C++
11437         with_gnu_ld=yes
11438         # version 8.0 and above of icpc choke on multiply defined symbols
11439         # if we add $predep_objects and $postdep_objects, however 7.1 and
11440         # earlier do not add the objects themselves.
11441         case `$CC -V 2>&1` in
11442         *"Version 7."*)
11443           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11444           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'
11445           ;;
11446         *)  # Version 8.0 or newer
11447           tmp_idyn=
11448           case $host_cpu in
11449             ia64*) tmp_idyn=' -i_dynamic';;
11450           esac
11451           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11452           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'
11453           ;;
11454         esac
11455         archive_cmds_need_lc_CXX=no
11456         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11457         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11458         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11459         ;;
11460       pgCC* | pgcpp*)
11461         # Portland Group C++ compiler
11462         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11463         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'
11464
11465         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11466         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11467         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'
11468         ;;
11469       cxx*)
11470         # Compaq C++
11471         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472         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'
11473
11474         runpath_var=LD_RUN_PATH
11475         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11476         hardcode_libdir_separator_CXX=:
11477
11478         # Commands to make compiler produce verbose output that lists
11479         # what "hidden" libraries, object files and flags are used when
11480         # linking a shared library.
11481         #
11482         # There doesn't appear to be a way to prevent this compiler from
11483         # explicitly linking system object files so we need to strip them
11484         # from the output so that they don't get included in the library
11485         # dependencies.
11486         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'
11487         ;;
11488       *)
11489         case `$CC -V 2>&1 | sed 5q` in
11490         *Sun\ C*)
11491           # Sun C++ 5.9
11492           no_undefined_flag_CXX=' -zdefs'
11493           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11494           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'
11495           hardcode_libdir_flag_spec_CXX='-R$libdir'
11496           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'
11497
11498           # Not sure whether something based on
11499           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11500           # would be better.
11501           output_verbose_link_cmd='echo'
11502
11503           # Archives containing C++ object files must be created using
11504           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11505           # necessary to make sure instantiated templates are included
11506           # in the archive.
11507           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11508           ;;
11509         esac
11510         ;;
11511     esac
11512     ;;
11513   lynxos*)
11514     # FIXME: insert proper C++ library support
11515     ld_shlibs_CXX=no
11516     ;;
11517   m88k*)
11518     # FIXME: insert proper C++ library support
11519     ld_shlibs_CXX=no
11520     ;;
11521   mvs*)
11522     case $cc_basename in
11523       cxx*)
11524         # FIXME: insert proper C++ library support
11525         ld_shlibs_CXX=no
11526         ;;
11527       *)
11528         # FIXME: insert proper C++ library support
11529         ld_shlibs_CXX=no
11530         ;;
11531     esac
11532     ;;
11533   netbsd* | netbsdelf*-gnu)
11534     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11535       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11536       wlarc=
11537       hardcode_libdir_flag_spec_CXX='-R$libdir'
11538       hardcode_direct_CXX=yes
11539       hardcode_shlibpath_var_CXX=no
11540     fi
11541     # Workaround some broken pre-1.5 toolchains
11542     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11543     ;;
11544   openbsd2*)
11545     # C++ shared libraries are fairly broken
11546     ld_shlibs_CXX=no
11547     ;;
11548   openbsd*)
11549     if test -f /usr/libexec/ld.so; then
11550       hardcode_direct_CXX=yes
11551       hardcode_shlibpath_var_CXX=no
11552       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11553       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11554       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11555         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11556         export_dynamic_flag_spec_CXX='${wl}-E'
11557         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11558       fi
11559       output_verbose_link_cmd='echo'
11560     else
11561       ld_shlibs_CXX=no
11562     fi
11563     ;;
11564   osf3*)
11565     case $cc_basename in
11566       KCC*)
11567         # Kuck and Associates, Inc. (KAI) C++ Compiler
11568
11569         # KCC will only create a shared library if the output file
11570         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11571         # to its proper name (with version) after linking.
11572         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'
11573
11574         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11575         hardcode_libdir_separator_CXX=:
11576
11577         # Archives containing C++ object files must be created using
11578         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11579         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11580
11581         ;;
11582       RCC*)
11583         # Rational C++ 2.4.1
11584         # FIXME: insert proper C++ library support
11585         ld_shlibs_CXX=no
11586         ;;
11587       cxx*)
11588         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11589         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'
11590
11591         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11592         hardcode_libdir_separator_CXX=:
11593
11594         # Commands to make compiler produce verbose output that lists
11595         # what "hidden" libraries, object files and flags are used when
11596         # linking a shared library.
11597         #
11598         # There doesn't appear to be a way to prevent this compiler from
11599         # explicitly linking system object files so we need to strip them
11600         # from the output so that they don't get included in the library
11601         # dependencies.
11602         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'
11603         ;;
11604       *)
11605         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11606           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11607           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'
11608
11609           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11610           hardcode_libdir_separator_CXX=:
11611
11612           # Commands to make compiler produce verbose output that lists
11613           # what "hidden" libraries, object files and flags are used when
11614           # linking a shared library.
11615           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11616
11617         else
11618           # FIXME: insert proper C++ library support
11619           ld_shlibs_CXX=no
11620         fi
11621         ;;
11622     esac
11623     ;;
11624   osf4* | osf5*)
11625     case $cc_basename in
11626       KCC*)
11627         # Kuck and Associates, Inc. (KAI) C++ Compiler
11628
11629         # KCC will only create a shared library if the output file
11630         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11631         # to its proper name (with version) after linking.
11632         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'
11633
11634         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11635         hardcode_libdir_separator_CXX=:
11636
11637         # Archives containing C++ object files must be created using
11638         # the KAI C++ compiler.
11639         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11640         ;;
11641       RCC*)
11642         # Rational C++ 2.4.1
11643         # FIXME: insert proper C++ library support
11644         ld_shlibs_CXX=no
11645         ;;
11646       cxx*)
11647         allow_undefined_flag_CXX=' -expect_unresolved \*'
11648         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'
11649         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11650           echo "-hidden">> $lib.exp~
11651           $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~
11652           $rm $lib.exp'
11653
11654         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11655         hardcode_libdir_separator_CXX=:
11656
11657         # Commands to make compiler produce verbose output that lists
11658         # what "hidden" libraries, object files and flags are used when
11659         # linking a shared library.
11660         #
11661         # There doesn't appear to be a way to prevent this compiler from
11662         # explicitly linking system object files so we need to strip them
11663         # from the output so that they don't get included in the library
11664         # dependencies.
11665         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'
11666         ;;
11667       *)
11668         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11669           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11670          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'
11671
11672           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11673           hardcode_libdir_separator_CXX=:
11674
11675           # Commands to make compiler produce verbose output that lists
11676           # what "hidden" libraries, object files and flags are used when
11677           # linking a shared library.
11678           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11679
11680         else
11681           # FIXME: insert proper C++ library support
11682           ld_shlibs_CXX=no
11683         fi
11684         ;;
11685     esac
11686     ;;
11687   psos*)
11688     # FIXME: insert proper C++ library support
11689     ld_shlibs_CXX=no
11690     ;;
11691   sunos4*)
11692     case $cc_basename in
11693       CC*)
11694         # Sun C++ 4.x
11695         # FIXME: insert proper C++ library support
11696         ld_shlibs_CXX=no
11697         ;;
11698       lcc*)
11699         # Lucid
11700         # FIXME: insert proper C++ library support
11701         ld_shlibs_CXX=no
11702         ;;
11703       *)
11704         # FIXME: insert proper C++ library support
11705         ld_shlibs_CXX=no
11706         ;;
11707     esac
11708     ;;
11709   solaris*)
11710     case $cc_basename in
11711       CC*)
11712         # Sun C++ 4.2, 5.x and Centerline C++
11713         archive_cmds_need_lc_CXX=yes
11714         no_undefined_flag_CXX=' -zdefs'
11715         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11716         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11717         $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'
11718
11719         hardcode_libdir_flag_spec_CXX='-R$libdir'
11720         hardcode_shlibpath_var_CXX=no
11721         case $host_os in
11722           solaris2.[0-5] | solaris2.[0-5].*) ;;
11723           *)
11724             # The compiler driver will combine and reorder linker options,
11725             # but understands `-z linker_flag'.
11726             # Supported since Solaris 2.6 (maybe 2.5.1?)
11727             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11728             ;;
11729         esac
11730         link_all_deplibs_CXX=yes
11731
11732         output_verbose_link_cmd='echo'
11733
11734         # Archives containing C++ object files must be created using
11735         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11736         # necessary to make sure instantiated templates are included
11737         # in the archive.
11738         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11739         ;;
11740       gcx*)
11741         # Green Hills C++ Compiler
11742         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11743
11744         # The C++ compiler must be used to create the archive.
11745         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11746         ;;
11747       *)
11748         # GNU C++ compiler with Solaris linker
11749         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11750           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11751           if $CC --version | grep -v '^2\.7' > /dev/null; then
11752             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11753             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11754                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11755
11756             # Commands to make compiler produce verbose output that lists
11757             # what "hidden" libraries, object files and flags are used when
11758             # linking a shared library.
11759             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11760           else
11761             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11762             # platform.
11763             archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11771           fi
11772
11773           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11774           case $host_os in
11775           solaris2.[0-5] | solaris2.[0-5].*) ;;
11776           *)
11777             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11778             ;;
11779           esac
11780         fi
11781         ;;
11782     esac
11783     ;;
11784   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11785     no_undefined_flag_CXX='${wl}-z,text'
11786     archive_cmds_need_lc_CXX=no
11787     hardcode_shlibpath_var_CXX=no
11788     runpath_var='LD_RUN_PATH'
11789
11790     case $cc_basename in
11791       CC*)
11792         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11794         ;;
11795       *)
11796         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798         ;;
11799     esac
11800     ;;
11801   sysv5* | sco3.2v5* | sco5v6*)
11802     # Note: We can NOT use -z defs as we might desire, because we do not
11803     # link with -lc, and that would cause any symbols used from libc to
11804     # always be unresolved, which means just about no library would
11805     # ever link correctly.  If we're not using GNU ld we use -z text
11806     # though, which does catch some bad symbols but isn't as heavy-handed
11807     # as -z defs.
11808     # For security reasons, it is highly recommended that you always
11809     # use absolute paths for naming shared libraries, and exclude the
11810     # DT_RUNPATH tag from executables and libraries.  But doing so
11811     # requires that you compile everything twice, which is a pain.
11812     # So that behaviour is only enabled if SCOABSPATH is set to a
11813     # non-empty value in the environment.  Most likely only useful for
11814     # creating official distributions of packages.
11815     # This is a hack until libtool officially supports absolute path
11816     # names for shared libraries.
11817     no_undefined_flag_CXX='${wl}-z,text'
11818     allow_undefined_flag_CXX='${wl}-z,nodefs'
11819     archive_cmds_need_lc_CXX=no
11820     hardcode_shlibpath_var_CXX=no
11821     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11822     hardcode_libdir_separator_CXX=':'
11823     link_all_deplibs_CXX=yes
11824     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11825     runpath_var='LD_RUN_PATH'
11826
11827     case $cc_basename in
11828       CC*)
11829         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831         ;;
11832       *)
11833         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11835         ;;
11836     esac
11837     ;;
11838   tandem*)
11839     case $cc_basename in
11840       NCC*)
11841         # NonStop-UX NCC 3.20
11842         # FIXME: insert proper C++ library support
11843         ld_shlibs_CXX=no
11844         ;;
11845       *)
11846         # FIXME: insert proper C++ library support
11847         ld_shlibs_CXX=no
11848         ;;
11849     esac
11850     ;;
11851   vxworks*)
11852     # FIXME: insert proper C++ library support
11853     ld_shlibs_CXX=no
11854     ;;
11855   *)
11856     # FIXME: insert proper C++ library support
11857     ld_shlibs_CXX=no
11858     ;;
11859 esac
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11861 $as_echo "$ld_shlibs_CXX" >&6; }
11862 test "$ld_shlibs_CXX" = no && can_build_shared=no
11863
11864 GCC_CXX="$GXX"
11865 LD_CXX="$LD"
11866
11867 cat > conftest.$ac_ext <<EOF
11868 class Foo
11869 {
11870 public:
11871   Foo (void) { a = 0; }
11872 private:
11873   int a;
11874 };
11875 EOF
11876
11877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11878   (eval $ac_compile) 2>&5
11879   ac_status=$?
11880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881   test $ac_status = 0; }; then
11882   # Parse the compiler output and extract the necessary
11883   # objects, libraries and library flags.
11884
11885   # Sentinel used to keep track of whether or not we are before
11886   # the conftest object file.
11887   pre_test_object_deps_done=no
11888
11889   # The `*' in the case matches for architectures that use `case' in
11890   # $output_verbose_cmd can trigger glob expansion during the loop
11891   # eval without this substitution.
11892   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11893
11894   for p in `eval $output_verbose_link_cmd`; do
11895     case $p in
11896
11897     -L* | -R* | -l*)
11898        # Some compilers place space between "-{L,R}" and the path.
11899        # Remove the space.
11900        if test $p = "-L" \
11901           || test $p = "-R"; then
11902          prev=$p
11903          continue
11904        else
11905          prev=
11906        fi
11907
11908        if test "$pre_test_object_deps_done" = no; then
11909          case $p in
11910          -L* | -R*)
11911            # Internal compiler library paths should come after those
11912            # provided the user.  The postdeps already come after the
11913            # user supplied libs so there is no need to process them.
11914            if test -z "$compiler_lib_search_path_CXX"; then
11915              compiler_lib_search_path_CXX="${prev}${p}"
11916            else
11917              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11918            fi
11919            ;;
11920          # The "-l" case would never come before the object being
11921          # linked, so don't bother handling this case.
11922          esac
11923        else
11924          if test -z "$postdeps_CXX"; then
11925            postdeps_CXX="${prev}${p}"
11926          else
11927            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11928          fi
11929        fi
11930        ;;
11931
11932     *.$objext)
11933        # This assumes that the test object file only shows up
11934        # once in the compiler output.
11935        if test "$p" = "conftest.$objext"; then
11936          pre_test_object_deps_done=yes
11937          continue
11938        fi
11939
11940        if test "$pre_test_object_deps_done" = no; then
11941          if test -z "$predep_objects_CXX"; then
11942            predep_objects_CXX="$p"
11943          else
11944            predep_objects_CXX="$predep_objects_CXX $p"
11945          fi
11946        else
11947          if test -z "$postdep_objects_CXX"; then
11948            postdep_objects_CXX="$p"
11949          else
11950            postdep_objects_CXX="$postdep_objects_CXX $p"
11951          fi
11952        fi
11953        ;;
11954
11955     *) ;; # Ignore the rest.
11956
11957     esac
11958   done
11959
11960   # Clean up.
11961   rm -f a.out a.exe
11962 else
11963   echo "libtool.m4: error: problem compiling CXX test program"
11964 fi
11965
11966 $rm -f confest.$objext
11967
11968 compiler_lib_search_dirs_CXX=
11969 if test -n "$compiler_lib_search_path_CXX"; then
11970   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11971 fi
11972
11973 # PORTME: override above test on systems where it is broken
11974 case $host_os in
11975 interix[3-9]*)
11976   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11977   # hack all around it, let's just trust "g++" to DTRT.
11978   predep_objects_CXX=
11979   postdep_objects_CXX=
11980   postdeps_CXX=
11981   ;;
11982
11983 linux*)
11984   case `$CC -V 2>&1 | sed 5q` in
11985   *Sun\ C*)
11986     # Sun C++ 5.9
11987     #
11988     # The more standards-conforming stlport4 library is
11989     # incompatible with the Cstd library. Avoid specifying
11990     # it if it's in CXXFLAGS. Ignore libCrun as
11991     # -library=stlport4 depends on it.
11992     case " $CXX $CXXFLAGS " in
11993     *" -library=stlport4 "*)
11994       solaris_use_stlport4=yes
11995       ;;
11996     esac
11997     if test "$solaris_use_stlport4" != yes; then
11998       postdeps_CXX='-library=Cstd -library=Crun'
11999     fi
12000     ;;
12001   esac
12002   ;;
12003
12004 solaris*)
12005   case $cc_basename in
12006   CC*)
12007     # The more standards-conforming stlport4 library is
12008     # incompatible with the Cstd library. Avoid specifying
12009     # it if it's in CXXFLAGS. Ignore libCrun as
12010     # -library=stlport4 depends on it.
12011     case " $CXX $CXXFLAGS " in
12012     *" -library=stlport4 "*)
12013       solaris_use_stlport4=yes
12014       ;;
12015     esac
12016
12017     # Adding this requires a known-good setup of shared libraries for
12018     # Sun compiler versions before 5.6, else PIC objects from an old
12019     # archive will be linked into the output, leading to subtle bugs.
12020     if test "$solaris_use_stlport4" != yes; then
12021       postdeps_CXX='-library=Cstd -library=Crun'
12022     fi
12023     ;;
12024   esac
12025   ;;
12026 esac
12027
12028 case " $postdeps_CXX " in
12029 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12030 esac
12031
12032 lt_prog_compiler_wl_CXX=
12033 lt_prog_compiler_pic_CXX=
12034 lt_prog_compiler_static_CXX=
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12037 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12038
12039   # C++ specific cases for pic, static, wl, etc.
12040   if test "$GXX" = yes; then
12041     lt_prog_compiler_wl_CXX='-Wl,'
12042     lt_prog_compiler_static_CXX='-static'
12043
12044     case $host_os in
12045     aix*)
12046       # All AIX code is PIC.
12047       if test "$host_cpu" = ia64; then
12048         # AIX 5 now supports IA64 processor
12049         lt_prog_compiler_static_CXX='-Bstatic'
12050       fi
12051       ;;
12052     amigaos*)
12053       # FIXME: we need at least 68020 code to build shared libraries, but
12054       # adding the `-m68020' flag to GCC prevents building anything better,
12055       # like `-m68040'.
12056       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12057       ;;
12058     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12059       # PIC is the default for these OSes.
12060       ;;
12061     mingw* | cygwin* | os2* | pw32*)
12062       # This hack is so that the source file can tell whether it is being
12063       # built for inclusion in a dll (and should export symbols for example).
12064       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12065       # (--disable-auto-import) libraries
12066       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12067       ;;
12068     darwin* | rhapsody*)
12069       # PIC is the default on this platform
12070       # Common symbols not allowed in MH_DYLIB files
12071       lt_prog_compiler_pic_CXX='-fno-common'
12072       ;;
12073     *djgpp*)
12074       # DJGPP does not support shared libraries at all
12075       lt_prog_compiler_pic_CXX=
12076       ;;
12077     interix[3-9]*)
12078       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079       # Instead, we relocate shared libraries at runtime.
12080       ;;
12081     sysv4*MP*)
12082       if test -d /usr/nec; then
12083         lt_prog_compiler_pic_CXX=-Kconform_pic
12084       fi
12085       ;;
12086     hpux*)
12087       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088       # not for PA HP-UX.
12089       case $host_cpu in
12090       hppa*64*|ia64*)
12091         ;;
12092       *)
12093         lt_prog_compiler_pic_CXX='-fPIC'
12094         ;;
12095       esac
12096       ;;
12097     *)
12098       lt_prog_compiler_pic_CXX='-fPIC'
12099       ;;
12100     esac
12101   else
12102     case $host_os in
12103       aix[4-9]*)
12104         # All AIX code is PIC.
12105         if test "$host_cpu" = ia64; then
12106           # AIX 5 now supports IA64 processor
12107           lt_prog_compiler_static_CXX='-Bstatic'
12108         else
12109           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12110         fi
12111         ;;
12112       chorus*)
12113         case $cc_basename in
12114         cxch68*)
12115           # Green Hills C++ Compiler
12116           # _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"
12117           ;;
12118         esac
12119         ;;
12120        darwin*)
12121          # PIC is the default on this platform
12122          # Common symbols not allowed in MH_DYLIB files
12123          case $cc_basename in
12124            xlc*)
12125            lt_prog_compiler_pic_CXX='-qnocommon'
12126            lt_prog_compiler_wl_CXX='-Wl,'
12127            ;;
12128          esac
12129        ;;
12130       dgux*)
12131         case $cc_basename in
12132           ec++*)
12133             lt_prog_compiler_pic_CXX='-KPIC'
12134             ;;
12135           ghcx*)
12136             # Green Hills C++ Compiler
12137             lt_prog_compiler_pic_CXX='-pic'
12138             ;;
12139           *)
12140             ;;
12141         esac
12142         ;;
12143       freebsd* | dragonfly*)
12144         # FreeBSD uses GNU C++
12145         ;;
12146       hpux9* | hpux10* | hpux11*)
12147         case $cc_basename in
12148           CC*)
12149             lt_prog_compiler_wl_CXX='-Wl,'
12150             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151             if test "$host_cpu" != ia64; then
12152               lt_prog_compiler_pic_CXX='+Z'
12153             fi
12154             ;;
12155           aCC*)
12156             lt_prog_compiler_wl_CXX='-Wl,'
12157             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12158             case $host_cpu in
12159             hppa*64*|ia64*)
12160               # +Z the default
12161               ;;
12162             *)
12163               lt_prog_compiler_pic_CXX='+Z'
12164               ;;
12165             esac
12166             ;;
12167           *)
12168             ;;
12169         esac
12170         ;;
12171       interix*)
12172         # This is c89, which is MS Visual C++ (no shared libs)
12173         # Anyone wants to do a port?
12174         ;;
12175       irix5* | irix6* | nonstopux*)
12176         case $cc_basename in
12177           CC*)
12178             lt_prog_compiler_wl_CXX='-Wl,'
12179             lt_prog_compiler_static_CXX='-non_shared'
12180             # CC pic flag -KPIC is the default.
12181             ;;
12182           *)
12183             ;;
12184         esac
12185         ;;
12186       linux* | k*bsd*-gnu)
12187         case $cc_basename in
12188           KCC*)
12189             # KAI C++ Compiler
12190             lt_prog_compiler_wl_CXX='--backend -Wl,'
12191             lt_prog_compiler_pic_CXX='-fPIC'
12192             ;;
12193           icpc* | ecpc*)
12194             # Intel C++
12195             lt_prog_compiler_wl_CXX='-Wl,'
12196             lt_prog_compiler_pic_CXX='-KPIC'
12197             lt_prog_compiler_static_CXX='-static'
12198             ;;
12199           pgCC* | pgcpp*)
12200             # Portland Group C++ compiler.
12201             lt_prog_compiler_wl_CXX='-Wl,'
12202             lt_prog_compiler_pic_CXX='-fpic'
12203             lt_prog_compiler_static_CXX='-Bstatic'
12204             ;;
12205           cxx*)
12206             # Compaq C++
12207             # Make sure the PIC flag is empty.  It appears that all Alpha
12208             # Linux and Compaq Tru64 Unix objects are PIC.
12209             lt_prog_compiler_pic_CXX=
12210             lt_prog_compiler_static_CXX='-non_shared'
12211             ;;
12212           *)
12213             case `$CC -V 2>&1 | sed 5q` in
12214             *Sun\ C*)
12215               # Sun C++ 5.9
12216               lt_prog_compiler_pic_CXX='-KPIC'
12217               lt_prog_compiler_static_CXX='-Bstatic'
12218               lt_prog_compiler_wl_CXX='-Qoption ld '
12219               ;;
12220             esac
12221             ;;
12222         esac
12223         ;;
12224       lynxos*)
12225         ;;
12226       m88k*)
12227         ;;
12228       mvs*)
12229         case $cc_basename in
12230           cxx*)
12231             lt_prog_compiler_pic_CXX='-W c,exportall'
12232             ;;
12233           *)
12234             ;;
12235         esac
12236         ;;
12237       netbsd* | netbsdelf*-gnu)
12238         ;;
12239       osf3* | osf4* | osf5*)
12240         case $cc_basename in
12241           KCC*)
12242             lt_prog_compiler_wl_CXX='--backend -Wl,'
12243             ;;
12244           RCC*)
12245             # Rational C++ 2.4.1
12246             lt_prog_compiler_pic_CXX='-pic'
12247             ;;
12248           cxx*)
12249             # Digital/Compaq C++
12250             lt_prog_compiler_wl_CXX='-Wl,'
12251             # Make sure the PIC flag is empty.  It appears that all Alpha
12252             # Linux and Compaq Tru64 Unix objects are PIC.
12253             lt_prog_compiler_pic_CXX=
12254             lt_prog_compiler_static_CXX='-non_shared'
12255             ;;
12256           *)
12257             ;;
12258         esac
12259         ;;
12260       psos*)
12261         ;;
12262       solaris*)
12263         case $cc_basename in
12264           CC*)
12265             # Sun C++ 4.2, 5.x and Centerline C++
12266             lt_prog_compiler_pic_CXX='-KPIC'
12267             lt_prog_compiler_static_CXX='-Bstatic'
12268             lt_prog_compiler_wl_CXX='-Qoption ld '
12269             ;;
12270           gcx*)
12271             # Green Hills C++ Compiler
12272             lt_prog_compiler_pic_CXX='-PIC'
12273             ;;
12274           *)
12275             ;;
12276         esac
12277         ;;
12278       sunos4*)
12279         case $cc_basename in
12280           CC*)
12281             # Sun C++ 4.x
12282             lt_prog_compiler_pic_CXX='-pic'
12283             lt_prog_compiler_static_CXX='-Bstatic'
12284             ;;
12285           lcc*)
12286             # Lucid
12287             lt_prog_compiler_pic_CXX='-pic'
12288             ;;
12289           *)
12290             ;;
12291         esac
12292         ;;
12293       tandem*)
12294         case $cc_basename in
12295           NCC*)
12296             # NonStop-UX NCC 3.20
12297             lt_prog_compiler_pic_CXX='-KPIC'
12298             ;;
12299           *)
12300             ;;
12301         esac
12302         ;;
12303       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12304         case $cc_basename in
12305           CC*)
12306             lt_prog_compiler_wl_CXX='-Wl,'
12307             lt_prog_compiler_pic_CXX='-KPIC'
12308             lt_prog_compiler_static_CXX='-Bstatic'
12309             ;;
12310         esac
12311         ;;
12312       vxworks*)
12313         ;;
12314       *)
12315         lt_prog_compiler_can_build_shared_CXX=no
12316         ;;
12317     esac
12318   fi
12319
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12321 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12322
12323 #
12324 # Check to make sure the PIC flag actually works.
12325 #
12326 if test -n "$lt_prog_compiler_pic_CXX"; then
12327
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12329 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12330 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12331   $as_echo_n "(cached) " >&6
12332 else
12333   lt_cv_prog_compiler_pic_works_CXX=no
12334   ac_outfile=conftest.$ac_objext
12335    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12336    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12337    # Insert the option either (1) after the last *FLAGS variable, or
12338    # (2) before a word containing "conftest.", or (3) at the end.
12339    # Note that $ac_compile itself does not contain backslashes and begins
12340    # with a dollar sign (not a hyphen), so the echo should work correctly.
12341    # The option is referenced via a variable to avoid confusing sed.
12342    lt_compile=`echo "$ac_compile" | $SED \
12343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12345    -e 's:$: $lt_compiler_flag:'`
12346    (eval echo "\"\$as_me:12346: $lt_compile\"" >&5)
12347    (eval "$lt_compile" 2>conftest.err)
12348    ac_status=$?
12349    cat conftest.err >&5
12350    echo "$as_me:12350: \$? = $ac_status" >&5
12351    if (exit $ac_status) && test -s "$ac_outfile"; then
12352      # The compiler can only warn and ignore the option if not recognized
12353      # So say no if there are warnings other than the usual output.
12354      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12355      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12356      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12357        lt_cv_prog_compiler_pic_works_CXX=yes
12358      fi
12359    fi
12360    $rm conftest*
12361
12362 fi
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12364 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12365
12366 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12367     case $lt_prog_compiler_pic_CXX in
12368      "" | " "*) ;;
12369      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12370      esac
12371 else
12372     lt_prog_compiler_pic_CXX=
12373      lt_prog_compiler_can_build_shared_CXX=no
12374 fi
12375
12376 fi
12377 case $host_os in
12378   # For platforms which do not support PIC, -DPIC is meaningless:
12379   *djgpp*)
12380     lt_prog_compiler_pic_CXX=
12381     ;;
12382   *)
12383     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12384     ;;
12385 esac
12386
12387 #
12388 # Check to make sure the static flag actually works.
12389 #
12390 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12392 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12393 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   lt_cv_prog_compiler_static_works_CXX=no
12397    save_LDFLAGS="$LDFLAGS"
12398    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12399    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12400    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12401      # The linker can only warn and ignore the option if not recognized
12402      # So say no if there are warnings
12403      if test -s conftest.err; then
12404        # Append any errors to the config.log.
12405        cat conftest.err 1>&5
12406        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12407        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12408        if diff conftest.exp conftest.er2 >/dev/null; then
12409          lt_cv_prog_compiler_static_works_CXX=yes
12410        fi
12411      else
12412        lt_cv_prog_compiler_static_works_CXX=yes
12413      fi
12414    fi
12415    $rm -r conftest*
12416    LDFLAGS="$save_LDFLAGS"
12417
12418 fi
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12420 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12421
12422 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12423     :
12424 else
12425     lt_prog_compiler_static_CXX=
12426 fi
12427
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12431 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   lt_cv_prog_compiler_c_o_CXX=no
12435    $rm -r conftest 2>/dev/null
12436    mkdir conftest
12437    cd conftest
12438    mkdir out
12439    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12440
12441    lt_compiler_flag="-o out/conftest2.$ac_objext"
12442    # Insert the option either (1) after the last *FLAGS variable, or
12443    # (2) before a word containing "conftest.", or (3) at the end.
12444    # Note that $ac_compile itself does not contain backslashes and begins
12445    # with a dollar sign (not a hyphen), so the echo should work correctly.
12446    lt_compile=`echo "$ac_compile" | $SED \
12447    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12449    -e 's:$: $lt_compiler_flag:'`
12450    (eval echo "\"\$as_me:12450: $lt_compile\"" >&5)
12451    (eval "$lt_compile" 2>out/conftest.err)
12452    ac_status=$?
12453    cat out/conftest.err >&5
12454    echo "$as_me:12454: \$? = $ac_status" >&5
12455    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12456    then
12457      # The compiler can only warn and ignore the option if not recognized
12458      # So say no if there are warnings
12459      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12460      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12461      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12462        lt_cv_prog_compiler_c_o_CXX=yes
12463      fi
12464    fi
12465    chmod u+w . 2>&5
12466    $rm conftest*
12467    # SGI C++ compiler will create directory out/ii_files/ for
12468    # template instantiation
12469    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12470    $rm out/* && rmdir out
12471    cd ..
12472    rmdir conftest
12473    $rm conftest*
12474
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12478
12479
12480 hard_links="nottested"
12481 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12482   # do not overwrite the value of need_locks provided by the user
12483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12484 $as_echo_n "checking if we can lock with hard links... " >&6; }
12485   hard_links=yes
12486   $rm conftest*
12487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12488   touch conftest.a
12489   ln conftest.a conftest.b 2>&5 || hard_links=no
12490   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12492 $as_echo "$hard_links" >&6; }
12493   if test "$hard_links" = no; then
12494     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12495 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12496     need_locks=warn
12497   fi
12498 else
12499   need_locks=no
12500 fi
12501
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12503 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12504
12505   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12506   case $host_os in
12507   aix[4-9]*)
12508     # If we're using GNU nm, then we don't want the "-C" option.
12509     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12510     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12511       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'
12512     else
12513       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'
12514     fi
12515     ;;
12516   pw32*)
12517     export_symbols_cmds_CXX="$ltdll_cmds"
12518   ;;
12519   cygwin* | mingw*)
12520     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'
12521   ;;
12522   linux* | k*bsd*-gnu)
12523     link_all_deplibs_CXX=no
12524   ;;
12525   *)
12526     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12527   ;;
12528   esac
12529   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12530
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12532 $as_echo "$ld_shlibs_CXX" >&6; }
12533 test "$ld_shlibs_CXX" = no && can_build_shared=no
12534
12535 #
12536 # Do we need to explicitly link libc?
12537 #
12538 case "x$archive_cmds_need_lc_CXX" in
12539 x|xyes)
12540   # Assume -lc should be added
12541   archive_cmds_need_lc_CXX=yes
12542
12543   if test "$enable_shared" = yes && test "$GCC" = yes; then
12544     case $archive_cmds_CXX in
12545     *'~'*)
12546       # FIXME: we may have to deal with multi-command sequences.
12547       ;;
12548     '$CC '*)
12549       # Test whether the compiler implicitly links with -lc since on some
12550       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12551       # to ld, don't add -lc before -lgcc.
12552       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12553 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12554       $rm conftest*
12555       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12556
12557       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12558   (eval $ac_compile) 2>&5
12559   ac_status=$?
12560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12561   test $ac_status = 0; } 2>conftest.err; then
12562         soname=conftest
12563         lib=conftest
12564         libobjs=conftest.$ac_objext
12565         deplibs=
12566         wl=$lt_prog_compiler_wl_CXX
12567         pic_flag=$lt_prog_compiler_pic_CXX
12568         compiler_flags=-v
12569         linker_flags=-v
12570         verstring=
12571         output_objdir=.
12572         libname=conftest
12573         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12574         allow_undefined_flag_CXX=
12575         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12576   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12577   ac_status=$?
12578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12579   test $ac_status = 0; }
12580         then
12581           archive_cmds_need_lc_CXX=no
12582         else
12583           archive_cmds_need_lc_CXX=yes
12584         fi
12585         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12586       else
12587         cat conftest.err 1>&5
12588       fi
12589       $rm conftest*
12590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12591 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12592       ;;
12593     esac
12594   fi
12595   ;;
12596 esac
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12599 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12600 library_names_spec=
12601 libname_spec='lib$name'
12602 soname_spec=
12603 shrext_cmds=".so"
12604 postinstall_cmds=
12605 postuninstall_cmds=
12606 finish_cmds=
12607 finish_eval=
12608 shlibpath_var=
12609 shlibpath_overrides_runpath=unknown
12610 version_type=none
12611 dynamic_linker="$host_os ld.so"
12612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12613
12614 need_lib_prefix=unknown
12615 hardcode_into_libs=no
12616
12617 # when you set need_version to no, make sure it does not cause -set_version
12618 # flags to be left without arguments
12619 need_version=unknown
12620
12621 case $host_os in
12622 aix3*)
12623   version_type=linux
12624   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12625   shlibpath_var=LIBPATH
12626
12627   # AIX 3 has no versioning support, so we append a major version to the name.
12628   soname_spec='${libname}${release}${shared_ext}$major'
12629   ;;
12630
12631 aix[4-9]*)
12632   version_type=linux
12633   need_lib_prefix=no
12634   need_version=no
12635   hardcode_into_libs=yes
12636   if test "$host_cpu" = ia64; then
12637     # AIX 5 supports IA64
12638     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12639     shlibpath_var=LD_LIBRARY_PATH
12640   else
12641     # With GCC up to 2.95.x, collect2 would create an import file
12642     # for dependence libraries.  The import file would start with
12643     # the line `#! .'.  This would cause the generated library to
12644     # depend on `.', always an invalid library.  This was fixed in
12645     # development snapshots of GCC prior to 3.0.
12646     case $host_os in
12647       aix4 | aix4.[01] | aix4.[01].*)
12648       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12649            echo ' yes '
12650            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12651         :
12652       else
12653         can_build_shared=no
12654       fi
12655       ;;
12656     esac
12657     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12658     # soname into executable. Probably we can add versioning support to
12659     # collect2, so additional links can be useful in future.
12660     if test "$aix_use_runtimelinking" = yes; then
12661       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12662       # instead of lib<name>.a to let people know that these are not
12663       # typical AIX shared libraries.
12664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665     else
12666       # We preserve .a as extension for shared libraries through AIX4.2
12667       # and later when we are not doing run time linking.
12668       library_names_spec='${libname}${release}.a $libname.a'
12669       soname_spec='${libname}${release}${shared_ext}$major'
12670     fi
12671     shlibpath_var=LIBPATH
12672   fi
12673   ;;
12674
12675 amigaos*)
12676   library_names_spec='$libname.ixlibrary $libname.a'
12677   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12678   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'
12679   ;;
12680
12681 beos*)
12682   library_names_spec='${libname}${shared_ext}'
12683   dynamic_linker="$host_os ld.so"
12684   shlibpath_var=LIBRARY_PATH
12685   ;;
12686
12687 bsdi[45]*)
12688   version_type=linux
12689   need_version=no
12690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12691   soname_spec='${libname}${release}${shared_ext}$major'
12692   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12693   shlibpath_var=LD_LIBRARY_PATH
12694   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12695   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12696   # the default ld.so.conf also contains /usr/contrib/lib and
12697   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12698   # libtool to hard-code these into programs
12699   ;;
12700
12701 cygwin* | mingw* | pw32*)
12702   version_type=windows
12703   shrext_cmds=".dll"
12704   need_version=no
12705   need_lib_prefix=no
12706
12707   case $GCC,$host_os in
12708   yes,cygwin* | yes,mingw* | yes,pw32*)
12709     library_names_spec='$libname.dll.a'
12710     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12711     postinstall_cmds='base_file=`basename \${file}`~
12712       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12713       dldir=$destdir/`dirname \$dlpath`~
12714       test -d \$dldir || mkdir -p \$dldir~
12715       $install_prog $dir/$dlname \$dldir/$dlname~
12716       chmod a+x \$dldir/$dlname'
12717     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12718       dlpath=$dir/\$dldll~
12719        $rm \$dlpath'
12720     shlibpath_overrides_runpath=yes
12721
12722     case $host_os in
12723     cygwin*)
12724       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12725       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12726       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12727       ;;
12728     mingw*)
12729       # MinGW DLLs use traditional 'lib' prefix
12730       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12731       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12732       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12733         # It is most probably a Windows format PATH printed by
12734         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12735         # path with ; separators, and with drive letters. We can handle the
12736         # drive letters (cygwin fileutils understands them), so leave them,
12737         # especially as we might pass files found there to a mingw objdump,
12738         # which wouldn't understand a cygwinified path. Ahh.
12739         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12740       else
12741         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12742       fi
12743       ;;
12744     pw32*)
12745       # pw32 DLLs use 'pw' prefix rather than 'lib'
12746       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12747       ;;
12748     esac
12749     ;;
12750
12751   *)
12752     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12753     ;;
12754   esac
12755   dynamic_linker='Win32 ld.exe'
12756   # FIXME: first we should search . and the directory the executable is in
12757   shlibpath_var=PATH
12758   ;;
12759
12760 darwin* | rhapsody*)
12761   dynamic_linker="$host_os dyld"
12762   version_type=darwin
12763   need_lib_prefix=no
12764   need_version=no
12765   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12766   soname_spec='${libname}${release}${major}$shared_ext'
12767   shlibpath_overrides_runpath=yes
12768   shlibpath_var=DYLD_LIBRARY_PATH
12769   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12770
12771   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12772   ;;
12773
12774 dgux*)
12775   version_type=linux
12776   need_lib_prefix=no
12777   need_version=no
12778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12779   soname_spec='${libname}${release}${shared_ext}$major'
12780   shlibpath_var=LD_LIBRARY_PATH
12781   ;;
12782
12783 freebsd1*)
12784   dynamic_linker=no
12785   ;;
12786
12787 freebsd* | dragonfly*)
12788   # DragonFly does not have aout.  When/if they implement a new
12789   # versioning mechanism, adjust this.
12790   if test -x /usr/bin/objformat; then
12791     objformat=`/usr/bin/objformat`
12792   else
12793     case $host_os in
12794     freebsd[123]*) objformat=aout ;;
12795     *) objformat=elf ;;
12796     esac
12797   fi
12798   version_type=freebsd-$objformat
12799   case $version_type in
12800     freebsd-elf*)
12801       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12802       need_version=no
12803       need_lib_prefix=no
12804       ;;
12805     freebsd-*)
12806       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12807       need_version=yes
12808       ;;
12809   esac
12810   shlibpath_var=LD_LIBRARY_PATH
12811   case $host_os in
12812   freebsd2*)
12813     shlibpath_overrides_runpath=yes
12814     ;;
12815   freebsd3.[01]* | freebsdelf3.[01]*)
12816     shlibpath_overrides_runpath=yes
12817     hardcode_into_libs=yes
12818     ;;
12819   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12820   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12821     shlibpath_overrides_runpath=no
12822     hardcode_into_libs=yes
12823     ;;
12824   *) # from 4.6 on, and DragonFly
12825     shlibpath_overrides_runpath=yes
12826     hardcode_into_libs=yes
12827     ;;
12828   esac
12829   ;;
12830
12831 gnu*)
12832   version_type=linux
12833   need_lib_prefix=no
12834   need_version=no
12835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12836   soname_spec='${libname}${release}${shared_ext}$major'
12837   shlibpath_var=LD_LIBRARY_PATH
12838   hardcode_into_libs=yes
12839   ;;
12840
12841 hpux9* | hpux10* | hpux11*)
12842   # Give a soname corresponding to the major version so that dld.sl refuses to
12843   # link against other versions.
12844   version_type=sunos
12845   need_lib_prefix=no
12846   need_version=no
12847   case $host_cpu in
12848   ia64*)
12849     shrext_cmds='.so'
12850     hardcode_into_libs=yes
12851     dynamic_linker="$host_os dld.so"
12852     shlibpath_var=LD_LIBRARY_PATH
12853     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12855     soname_spec='${libname}${release}${shared_ext}$major'
12856     if test "X$HPUX_IA64_MODE" = X32; then
12857       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12858     else
12859       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12860     fi
12861     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12862     ;;
12863    hppa*64*)
12864      shrext_cmds='.sl'
12865      hardcode_into_libs=yes
12866      dynamic_linker="$host_os dld.sl"
12867      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12868      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12869      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12870      soname_spec='${libname}${release}${shared_ext}$major'
12871      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12872      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12873      ;;
12874    *)
12875     shrext_cmds='.sl'
12876     dynamic_linker="$host_os dld.sl"
12877     shlibpath_var=SHLIB_PATH
12878     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880     soname_spec='${libname}${release}${shared_ext}$major'
12881     ;;
12882   esac
12883   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12884   postinstall_cmds='chmod 555 $lib'
12885   ;;
12886
12887 interix[3-9]*)
12888   version_type=linux
12889   need_lib_prefix=no
12890   need_version=no
12891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12892   soname_spec='${libname}${release}${shared_ext}$major'
12893   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12894   shlibpath_var=LD_LIBRARY_PATH
12895   shlibpath_overrides_runpath=no
12896   hardcode_into_libs=yes
12897   ;;
12898
12899 irix5* | irix6* | nonstopux*)
12900   case $host_os in
12901     nonstopux*) version_type=nonstopux ;;
12902     *)
12903         if test "$lt_cv_prog_gnu_ld" = yes; then
12904                 version_type=linux
12905         else
12906                 version_type=irix
12907         fi ;;
12908   esac
12909   need_lib_prefix=no
12910   need_version=no
12911   soname_spec='${libname}${release}${shared_ext}$major'
12912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12913   case $host_os in
12914   irix5* | nonstopux*)
12915     libsuff= shlibsuff=
12916     ;;
12917   *)
12918     case $LD in # libtool.m4 will add one of these switches to LD
12919     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12920       libsuff= shlibsuff= libmagic=32-bit;;
12921     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12922       libsuff=32 shlibsuff=N32 libmagic=N32;;
12923     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12924       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12925     *) libsuff= shlibsuff= libmagic=never-match;;
12926     esac
12927     ;;
12928   esac
12929   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12930   shlibpath_overrides_runpath=no
12931   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12932   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12933   hardcode_into_libs=yes
12934   ;;
12935
12936 # No shared lib support for Linux oldld, aout, or coff.
12937 linux*oldld* | linux*aout* | linux*coff*)
12938   dynamic_linker=no
12939   ;;
12940
12941 # This must be Linux ELF.
12942 linux* | k*bsd*-gnu)
12943   version_type=linux
12944   need_lib_prefix=no
12945   need_version=no
12946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12947   soname_spec='${libname}${release}${shared_ext}$major'
12948   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12949   shlibpath_var=LD_LIBRARY_PATH
12950   shlibpath_overrides_runpath=no
12951   # This implies no fast_install, which is unacceptable.
12952   # Some rework will be needed to allow for fast_install
12953   # before this can be enabled.
12954   hardcode_into_libs=yes
12955
12956   # Append ld.so.conf contents to the search path
12957   if test -f /etc/ld.so.conf; then
12958     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' ' '`
12959     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12960   fi
12961
12962   # We used to test for /lib/ld.so.1 and disable shared libraries on
12963   # powerpc, because MkLinux only supported shared libraries with the
12964   # GNU dynamic linker.  Since this was broken with cross compilers,
12965   # most powerpc-linux boxes support dynamic linking these days and
12966   # people can always --disable-shared, the test was removed, and we
12967   # assume the GNU/Linux dynamic linker is in use.
12968   dynamic_linker='GNU/Linux ld.so'
12969   ;;
12970
12971 netbsdelf*-gnu)
12972   version_type=linux
12973   need_lib_prefix=no
12974   need_version=no
12975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12976   soname_spec='${libname}${release}${shared_ext}$major'
12977   shlibpath_var=LD_LIBRARY_PATH
12978   shlibpath_overrides_runpath=no
12979   hardcode_into_libs=yes
12980   dynamic_linker='NetBSD ld.elf_so'
12981   ;;
12982
12983 netbsd*)
12984   version_type=sunos
12985   need_lib_prefix=no
12986   need_version=no
12987   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12989     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12990     dynamic_linker='NetBSD (a.out) ld.so'
12991   else
12992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12993     soname_spec='${libname}${release}${shared_ext}$major'
12994     dynamic_linker='NetBSD ld.elf_so'
12995   fi
12996   shlibpath_var=LD_LIBRARY_PATH
12997   shlibpath_overrides_runpath=yes
12998   hardcode_into_libs=yes
12999   ;;
13000
13001 newsos6)
13002   version_type=linux
13003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004   shlibpath_var=LD_LIBRARY_PATH
13005   shlibpath_overrides_runpath=yes
13006   ;;
13007
13008 nto-qnx*)
13009   version_type=linux
13010   need_lib_prefix=no
13011   need_version=no
13012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013   soname_spec='${libname}${release}${shared_ext}$major'
13014   shlibpath_var=LD_LIBRARY_PATH
13015   shlibpath_overrides_runpath=yes
13016   ;;
13017
13018 openbsd*)
13019   version_type=sunos
13020   sys_lib_dlsearch_path_spec="/usr/lib"
13021   need_lib_prefix=no
13022   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13023   case $host_os in
13024     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13025     *)                         need_version=no  ;;
13026   esac
13027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13029   shlibpath_var=LD_LIBRARY_PATH
13030   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13031     case $host_os in
13032       openbsd2.[89] | openbsd2.[89].*)
13033         shlibpath_overrides_runpath=no
13034         ;;
13035       *)
13036         shlibpath_overrides_runpath=yes
13037         ;;
13038       esac
13039   else
13040     shlibpath_overrides_runpath=yes
13041   fi
13042   ;;
13043
13044 os2*)
13045   libname_spec='$name'
13046   shrext_cmds=".dll"
13047   need_lib_prefix=no
13048   library_names_spec='$libname${shared_ext} $libname.a'
13049   dynamic_linker='OS/2 ld.exe'
13050   shlibpath_var=LIBPATH
13051   ;;
13052
13053 osf3* | osf4* | osf5*)
13054   version_type=osf
13055   need_lib_prefix=no
13056   need_version=no
13057   soname_spec='${libname}${release}${shared_ext}$major'
13058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059   shlibpath_var=LD_LIBRARY_PATH
13060   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13061   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13062   ;;
13063
13064 rdos*)
13065   dynamic_linker=no
13066   ;;
13067
13068 solaris*)
13069   version_type=linux
13070   need_lib_prefix=no
13071   need_version=no
13072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073   soname_spec='${libname}${release}${shared_ext}$major'
13074   shlibpath_var=LD_LIBRARY_PATH
13075   shlibpath_overrides_runpath=yes
13076   hardcode_into_libs=yes
13077   # ldd complains unless libraries are executable
13078   postinstall_cmds='chmod +x $lib'
13079   ;;
13080
13081 sunos4*)
13082   version_type=sunos
13083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13084   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13085   shlibpath_var=LD_LIBRARY_PATH
13086   shlibpath_overrides_runpath=yes
13087   if test "$with_gnu_ld" = yes; then
13088     need_lib_prefix=no
13089   fi
13090   need_version=yes
13091   ;;
13092
13093 sysv4 | sysv4.3*)
13094   version_type=linux
13095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13096   soname_spec='${libname}${release}${shared_ext}$major'
13097   shlibpath_var=LD_LIBRARY_PATH
13098   case $host_vendor in
13099     sni)
13100       shlibpath_overrides_runpath=no
13101       need_lib_prefix=no
13102       export_dynamic_flag_spec='${wl}-Blargedynsym'
13103       runpath_var=LD_RUN_PATH
13104       ;;
13105     siemens)
13106       need_lib_prefix=no
13107       ;;
13108     motorola)
13109       need_lib_prefix=no
13110       need_version=no
13111       shlibpath_overrides_runpath=no
13112       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13113       ;;
13114   esac
13115   ;;
13116
13117 sysv4*MP*)
13118   if test -d /usr/nec ;then
13119     version_type=linux
13120     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13121     soname_spec='$libname${shared_ext}.$major'
13122     shlibpath_var=LD_LIBRARY_PATH
13123   fi
13124   ;;
13125
13126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13127   version_type=freebsd-elf
13128   need_lib_prefix=no
13129   need_version=no
13130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13131   soname_spec='${libname}${release}${shared_ext}$major'
13132   shlibpath_var=LD_LIBRARY_PATH
13133   hardcode_into_libs=yes
13134   if test "$with_gnu_ld" = yes; then
13135     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13136     shlibpath_overrides_runpath=no
13137   else
13138     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13139     shlibpath_overrides_runpath=yes
13140     case $host_os in
13141       sco3.2v5*)
13142         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13143         ;;
13144     esac
13145   fi
13146   sys_lib_dlsearch_path_spec='/usr/lib'
13147   ;;
13148
13149 uts4*)
13150   version_type=linux
13151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13152   soname_spec='${libname}${release}${shared_ext}$major'
13153   shlibpath_var=LD_LIBRARY_PATH
13154   ;;
13155
13156 *)
13157   dynamic_linker=no
13158   ;;
13159 esac
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13161 $as_echo "$dynamic_linker" >&6; }
13162 test "$dynamic_linker" = no && can_build_shared=no
13163
13164 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13165   $as_echo_n "(cached) " >&6
13166 else
13167   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13168 fi
13169
13170 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13171 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13172   $as_echo_n "(cached) " >&6
13173 else
13174   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13175 fi
13176
13177 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13178
13179 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13180 if test "$GCC" = yes; then
13181   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13182 fi
13183
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13185 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13186 hardcode_action_CXX=
13187 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13188    test -n "$runpath_var_CXX" || \
13189    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13190
13191   # We can hardcode non-existant directories.
13192   if test "$hardcode_direct_CXX" != no &&
13193      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13194      # have to relink, otherwise we might link with an installed library
13195      # when we should be linking with a yet-to-be-installed one
13196      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13197      test "$hardcode_minus_L_CXX" != no; then
13198     # Linking always hardcodes the temporary library directory.
13199     hardcode_action_CXX=relink
13200   else
13201     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13202     hardcode_action_CXX=immediate
13203   fi
13204 else
13205   # We cannot hardcode anything, or else we can only hardcode existing
13206   # directories.
13207   hardcode_action_CXX=unsupported
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13210 $as_echo "$hardcode_action_CXX" >&6; }
13211
13212 if test "$hardcode_action_CXX" = relink; then
13213   # Fast installation is not supported
13214   enable_fast_install=no
13215 elif test "$shlibpath_overrides_runpath" = yes ||
13216      test "$enable_shared" = no; then
13217   # Fast installation is not necessary
13218   enable_fast_install=needless
13219 fi
13220
13221
13222 # The else clause should only fire when bootstrapping the
13223 # libtool distribution, otherwise you forgot to ship ltmain.sh
13224 # with your package, and you will get complaints that there are
13225 # no rules to generate ltmain.sh.
13226 if test -f "$ltmain"; then
13227   # See if we are running on zsh, and set the options which allow our commands through
13228   # without removal of \ escapes.
13229   if test -n "${ZSH_VERSION+set}" ; then
13230     setopt NO_GLOB_SUBST
13231   fi
13232   # Now quote all the things that may contain metacharacters while being
13233   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13234   # variables and quote the copies for generation of the libtool script.
13235   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13236     SED SHELL STRIP \
13237     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13238     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13239     deplibs_check_method reload_flag reload_cmds need_locks \
13240     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13241     lt_cv_sys_global_symbol_to_c_name_address \
13242     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13243     old_postinstall_cmds old_postuninstall_cmds \
13244     compiler_CXX \
13245     CC_CXX \
13246     LD_CXX \
13247     lt_prog_compiler_wl_CXX \
13248     lt_prog_compiler_pic_CXX \
13249     lt_prog_compiler_static_CXX \
13250     lt_prog_compiler_no_builtin_flag_CXX \
13251     export_dynamic_flag_spec_CXX \
13252     thread_safe_flag_spec_CXX \
13253     whole_archive_flag_spec_CXX \
13254     enable_shared_with_static_runtimes_CXX \
13255     old_archive_cmds_CXX \
13256     old_archive_from_new_cmds_CXX \
13257     predep_objects_CXX \
13258     postdep_objects_CXX \
13259     predeps_CXX \
13260     postdeps_CXX \
13261     compiler_lib_search_path_CXX \
13262     compiler_lib_search_dirs_CXX \
13263     archive_cmds_CXX \
13264     archive_expsym_cmds_CXX \
13265     postinstall_cmds_CXX \
13266     postuninstall_cmds_CXX \
13267     old_archive_from_expsyms_cmds_CXX \
13268     allow_undefined_flag_CXX \
13269     no_undefined_flag_CXX \
13270     export_symbols_cmds_CXX \
13271     hardcode_libdir_flag_spec_CXX \
13272     hardcode_libdir_flag_spec_ld_CXX \
13273     hardcode_libdir_separator_CXX \
13274     hardcode_automatic_CXX \
13275     module_cmds_CXX \
13276     module_expsym_cmds_CXX \
13277     lt_cv_prog_compiler_c_o_CXX \
13278     fix_srcfile_path_CXX \
13279     exclude_expsyms_CXX \
13280     include_expsyms_CXX; do
13281
13282     case $var in
13283     old_archive_cmds_CXX | \
13284     old_archive_from_new_cmds_CXX | \
13285     archive_cmds_CXX | \
13286     archive_expsym_cmds_CXX | \
13287     module_cmds_CXX | \
13288     module_expsym_cmds_CXX | \
13289     old_archive_from_expsyms_cmds_CXX | \
13290     export_symbols_cmds_CXX | \
13291     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13292     postinstall_cmds | postuninstall_cmds | \
13293     old_postinstall_cmds | old_postuninstall_cmds | \
13294     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13295       # Double-quote double-evaled strings.
13296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13297       ;;
13298     *)
13299       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13300       ;;
13301     esac
13302   done
13303
13304   case $lt_echo in
13305   *'\$0 --fallback-echo"')
13306     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13307     ;;
13308   esac
13309
13310 cfgfile="$ofile"
13311
13312   cat <<__EOF__ >> "$cfgfile"
13313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13314
13315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13316
13317 # Shell to use when invoking shell scripts.
13318 SHELL=$lt_SHELL
13319
13320 # Whether or not to build shared libraries.
13321 build_libtool_libs=$enable_shared
13322
13323 # Whether or not to build static libraries.
13324 build_old_libs=$enable_static
13325
13326 # Whether or not to add -lc for building shared libraries.
13327 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13328
13329 # Whether or not to disallow shared libs when runtime libs are static
13330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13331
13332 # Whether or not to optimize for fast installation.
13333 fast_install=$enable_fast_install
13334
13335 # The host system.
13336 host_alias=$host_alias
13337 host=$host
13338 host_os=$host_os
13339
13340 # The build system.
13341 build_alias=$build_alias
13342 build=$build
13343 build_os=$build_os
13344
13345 # An echo program that does not interpret backslashes.
13346 echo=$lt_echo
13347
13348 # The archiver.
13349 AR=$lt_AR
13350 AR_FLAGS=$lt_AR_FLAGS
13351
13352 # A C compiler.
13353 LTCC=$lt_LTCC
13354
13355 # LTCC compiler flags.
13356 LTCFLAGS=$lt_LTCFLAGS
13357
13358 # A language-specific compiler.
13359 CC=$lt_compiler_CXX
13360
13361 # Is the compiler the GNU C compiler?
13362 with_gcc=$GCC_CXX
13363
13364 # An ERE matcher.
13365 EGREP=$lt_EGREP
13366
13367 # The linker used to build libraries.
13368 LD=$lt_LD_CXX
13369
13370 # Whether we need hard or soft links.
13371 LN_S=$lt_LN_S
13372
13373 # A BSD-compatible nm program.
13374 NM=$lt_NM
13375
13376 # A symbol stripping program
13377 STRIP=$lt_STRIP
13378
13379 # Used to examine libraries when file_magic_cmd begins "file"
13380 MAGIC_CMD=$MAGIC_CMD
13381
13382 # Used on cygwin: DLL creation program.
13383 DLLTOOL="$DLLTOOL"
13384
13385 # Used on cygwin: object dumper.
13386 OBJDUMP="$OBJDUMP"
13387
13388 # Used on cygwin: assembler.
13389 AS="$AS"
13390
13391 # The name of the directory that contains temporary libtool files.
13392 objdir=$objdir
13393
13394 # How to create reloadable object files.
13395 reload_flag=$lt_reload_flag
13396 reload_cmds=$lt_reload_cmds
13397
13398 # How to pass a linker flag through the compiler.
13399 wl=$lt_lt_prog_compiler_wl_CXX
13400
13401 # Object file suffix (normally "o").
13402 objext="$ac_objext"
13403
13404 # Old archive suffix (normally "a").
13405 libext="$libext"
13406
13407 # Shared library suffix (normally ".so").
13408 shrext_cmds='$shrext_cmds'
13409
13410 # Executable file suffix (normally "").
13411 exeext="$exeext"
13412
13413 # Additional compiler flags for building library objects.
13414 pic_flag=$lt_lt_prog_compiler_pic_CXX
13415 pic_mode=$pic_mode
13416
13417 # What is the maximum length of a command?
13418 max_cmd_len=$lt_cv_sys_max_cmd_len
13419
13420 # Does compiler simultaneously support -c and -o options?
13421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13422
13423 # Must we lock files when doing compilation?
13424 need_locks=$lt_need_locks
13425
13426 # Do we need the lib prefix for modules?
13427 need_lib_prefix=$need_lib_prefix
13428
13429 # Do we need a version for libraries?
13430 need_version=$need_version
13431
13432 # Whether dlopen is supported.
13433 dlopen_support=$enable_dlopen
13434
13435 # Whether dlopen of programs is supported.
13436 dlopen_self=$enable_dlopen_self
13437
13438 # Whether dlopen of statically linked programs is supported.
13439 dlopen_self_static=$enable_dlopen_self_static
13440
13441 # Compiler flag to prevent dynamic linking.
13442 link_static_flag=$lt_lt_prog_compiler_static_CXX
13443
13444 # Compiler flag to turn off builtin functions.
13445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13446
13447 # Compiler flag to allow reflexive dlopens.
13448 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13449
13450 # Compiler flag to generate shared objects directly from archives.
13451 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13452
13453 # Compiler flag to generate thread-safe objects.
13454 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13455
13456 # Library versioning type.
13457 version_type=$version_type
13458
13459 # Format of library name prefix.
13460 libname_spec=$lt_libname_spec
13461
13462 # List of archive names.  First name is the real one, the rest are links.
13463 # The last name is the one that the linker finds with -lNAME.
13464 library_names_spec=$lt_library_names_spec
13465
13466 # The coded name of the library, if different from the real name.
13467 soname_spec=$lt_soname_spec
13468
13469 # Commands used to build and install an old-style archive.
13470 RANLIB=$lt_RANLIB
13471 old_archive_cmds=$lt_old_archive_cmds_CXX
13472 old_postinstall_cmds=$lt_old_postinstall_cmds
13473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13474
13475 # Create an old-style archive from a shared archive.
13476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13477
13478 # Create a temporary old-style archive to link instead of a shared archive.
13479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13480
13481 # Commands used to build and install a shared archive.
13482 archive_cmds=$lt_archive_cmds_CXX
13483 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13484 postinstall_cmds=$lt_postinstall_cmds
13485 postuninstall_cmds=$lt_postuninstall_cmds
13486
13487 # Commands used to build a loadable module (assumed same as above if empty)
13488 module_cmds=$lt_module_cmds_CXX
13489 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13490
13491 # Commands to strip libraries.
13492 old_striplib=$lt_old_striplib
13493 striplib=$lt_striplib
13494
13495 # Dependencies to place before the objects being linked to create a
13496 # shared library.
13497 predep_objects=$lt_predep_objects_CXX
13498
13499 # Dependencies to place after the objects being linked to create a
13500 # shared library.
13501 postdep_objects=$lt_postdep_objects_CXX
13502
13503 # Dependencies to place before the objects being linked to create a
13504 # shared library.
13505 predeps=$lt_predeps_CXX
13506
13507 # Dependencies to place after the objects being linked to create a
13508 # shared library.
13509 postdeps=$lt_postdeps_CXX
13510
13511 # The directories searched by this compiler when creating a shared
13512 # library
13513 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13514
13515 # The library search path used internally by the compiler when linking
13516 # a shared library.
13517 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13518
13519 # Method to check whether dependent libraries are shared objects.
13520 deplibs_check_method=$lt_deplibs_check_method
13521
13522 # Command to use when deplibs_check_method == file_magic.
13523 file_magic_cmd=$lt_file_magic_cmd
13524
13525 # Flag that allows shared libraries with undefined symbols to be built.
13526 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13527
13528 # Flag that forces no undefined symbols.
13529 no_undefined_flag=$lt_no_undefined_flag_CXX
13530
13531 # Commands used to finish a libtool library installation in a directory.
13532 finish_cmds=$lt_finish_cmds
13533
13534 # Same as above, but a single script fragment to be evaled but not shown.
13535 finish_eval=$lt_finish_eval
13536
13537 # Take the output of nm and produce a listing of raw symbols and C names.
13538 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13539
13540 # Transform the output of nm in a proper C declaration
13541 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13542
13543 # Transform the output of nm in a C name address pair
13544 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13545
13546 # This is the shared library runtime path variable.
13547 runpath_var=$runpath_var
13548
13549 # This is the shared library path variable.
13550 shlibpath_var=$shlibpath_var
13551
13552 # Is shlibpath searched before the hard-coded library search path?
13553 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13554
13555 # How to hardcode a shared library path into an executable.
13556 hardcode_action=$hardcode_action_CXX
13557
13558 # Whether we should hardcode library paths into libraries.
13559 hardcode_into_libs=$hardcode_into_libs
13560
13561 # Flag to hardcode \$libdir into a binary during linking.
13562 # This must work even if \$libdir does not exist.
13563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13564
13565 # If ld is used when linking, flag to hardcode \$libdir into
13566 # a binary during linking. This must work even if \$libdir does
13567 # not exist.
13568 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13569
13570 # Whether we need a single -rpath flag with a separated argument.
13571 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13572
13573 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13574 # resulting binary.
13575 hardcode_direct=$hardcode_direct_CXX
13576
13577 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13578 # resulting binary.
13579 hardcode_minus_L=$hardcode_minus_L_CXX
13580
13581 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13582 # the resulting binary.
13583 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13584
13585 # Set to yes if building a shared library automatically hardcodes DIR into the library
13586 # and all subsequent libraries and executables linked against it.
13587 hardcode_automatic=$hardcode_automatic_CXX
13588
13589 # Variables whose values should be saved in libtool wrapper scripts and
13590 # restored at relink time.
13591 variables_saved_for_relink="$variables_saved_for_relink"
13592
13593 # Whether libtool must link a program against all its dependency libraries.
13594 link_all_deplibs=$link_all_deplibs_CXX
13595
13596 # Compile-time system search path for libraries
13597 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13598
13599 # Run-time system search path for libraries
13600 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13601
13602 # Fix the shell variable \$srcfile for the compiler.
13603 fix_srcfile_path=$lt_fix_srcfile_path
13604
13605 # Set to yes if exported symbols are required.
13606 always_export_symbols=$always_export_symbols_CXX
13607
13608 # The commands to list exported symbols.
13609 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13610
13611 # The commands to extract the exported symbol list from a shared archive.
13612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13613
13614 # Symbols that should not be listed in the preloaded symbols.
13615 exclude_expsyms=$lt_exclude_expsyms_CXX
13616
13617 # Symbols that must always be exported.
13618 include_expsyms=$lt_include_expsyms_CXX
13619
13620 # ### END LIBTOOL TAG CONFIG: $tagname
13621
13622 __EOF__
13623
13624
13625 else
13626   # If there is no Makefile yet, we rely on a make rule to execute
13627   # `config.status --recheck' to rerun these tests and create the
13628   # libtool script then.
13629   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13630   if test -f "$ltmain_in"; then
13631     test -f Makefile && make "$ltmain"
13632   fi
13633 fi
13634
13635
13636 ac_ext=c
13637 ac_cpp='$CPP $CPPFLAGS'
13638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13641
13642 CC=$lt_save_CC
13643 LDCXX=$LD
13644 LD=$lt_save_LD
13645 GCC=$lt_save_GCC
13646 with_gnu_ldcxx=$with_gnu_ld
13647 with_gnu_ld=$lt_save_with_gnu_ld
13648 lt_cv_path_LDCXX=$lt_cv_path_LD
13649 lt_cv_path_LD=$lt_save_path_LD
13650 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13651 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13652
13653         else
13654           tagname=""
13655         fi
13656         ;;
13657
13658       F77)
13659         if test -n "$F77" && test "X$F77" != "Xno"; then
13660
13661 ac_ext=f
13662 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13663 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13665
13666
13667 archive_cmds_need_lc_F77=no
13668 allow_undefined_flag_F77=
13669 always_export_symbols_F77=no
13670 archive_expsym_cmds_F77=
13671 export_dynamic_flag_spec_F77=
13672 hardcode_direct_F77=no
13673 hardcode_libdir_flag_spec_F77=
13674 hardcode_libdir_flag_spec_ld_F77=
13675 hardcode_libdir_separator_F77=
13676 hardcode_minus_L_F77=no
13677 hardcode_automatic_F77=no
13678 module_cmds_F77=
13679 module_expsym_cmds_F77=
13680 link_all_deplibs_F77=unknown
13681 old_archive_cmds_F77=$old_archive_cmds
13682 no_undefined_flag_F77=
13683 whole_archive_flag_spec_F77=
13684 enable_shared_with_static_runtimes_F77=no
13685
13686 # Source file extension for f77 test sources.
13687 ac_ext=f
13688
13689 # Object file extension for compiled f77 test sources.
13690 objext=o
13691 objext_F77=$objext
13692
13693 # Code to be used in simple compile tests
13694 lt_simple_compile_test_code="\
13695       subroutine t
13696       return
13697       end
13698 "
13699
13700 # Code to be used in simple link tests
13701 lt_simple_link_test_code="\
13702       program t
13703       end
13704 "
13705
13706 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13707
13708 # If no C compiler was specified, use CC.
13709 LTCC=${LTCC-"$CC"}
13710
13711 # If no C compiler flags were specified, use CFLAGS.
13712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13713
13714 # Allow CC to be a program name with arguments.
13715 compiler=$CC
13716
13717
13718 # save warnings/boilerplate of simple test code
13719 ac_outfile=conftest.$ac_objext
13720 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13722 _lt_compiler_boilerplate=`cat conftest.err`
13723 $rm conftest*
13724
13725 ac_outfile=conftest.$ac_objext
13726 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13728 _lt_linker_boilerplate=`cat conftest.err`
13729 $rm -r conftest*
13730
13731
13732 # Allow CC to be a program name with arguments.
13733 lt_save_CC="$CC"
13734 CC=${F77-"f77"}
13735 compiler=$CC
13736 compiler_F77=$CC
13737 for cc_temp in $compiler""; do
13738   case $cc_temp in
13739     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13740     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13741     \-*) ;;
13742     *) break;;
13743   esac
13744 done
13745 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13746
13747
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13749 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13751 $as_echo "$can_build_shared" >&6; }
13752
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13754 $as_echo_n "checking whether to build shared libraries... " >&6; }
13755 test "$can_build_shared" = "no" && enable_shared=no
13756
13757 # On AIX, shared libraries and static libraries use the same namespace, and
13758 # are all built from PIC.
13759 case $host_os in
13760 aix3*)
13761   test "$enable_shared" = yes && enable_static=no
13762   if test -n "$RANLIB"; then
13763     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13764     postinstall_cmds='$RANLIB $lib'
13765   fi
13766   ;;
13767 aix[4-9]*)
13768   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13769     test "$enable_shared" = yes && enable_static=no
13770   fi
13771   ;;
13772 esac
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13774 $as_echo "$enable_shared" >&6; }
13775
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13777 $as_echo_n "checking whether to build static libraries... " >&6; }
13778 # Make sure either enable_shared or enable_static is yes.
13779 test "$enable_shared" = yes || enable_static=yes
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13781 $as_echo "$enable_static" >&6; }
13782
13783 GCC_F77="$G77"
13784 LD_F77="$LD"
13785
13786 lt_prog_compiler_wl_F77=
13787 lt_prog_compiler_pic_F77=
13788 lt_prog_compiler_static_F77=
13789
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13791 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13792
13793   if test "$GCC" = yes; then
13794     lt_prog_compiler_wl_F77='-Wl,'
13795     lt_prog_compiler_static_F77='-static'
13796
13797     case $host_os in
13798       aix*)
13799       # All AIX code is PIC.
13800       if test "$host_cpu" = ia64; then
13801         # AIX 5 now supports IA64 processor
13802         lt_prog_compiler_static_F77='-Bstatic'
13803       fi
13804       ;;
13805
13806     amigaos*)
13807       # FIXME: we need at least 68020 code to build shared libraries, but
13808       # adding the `-m68020' flag to GCC prevents building anything better,
13809       # like `-m68040'.
13810       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13811       ;;
13812
13813     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13814       # PIC is the default for these OSes.
13815       ;;
13816
13817     mingw* | cygwin* | pw32* | os2*)
13818       # This hack is so that the source file can tell whether it is being
13819       # built for inclusion in a dll (and should export symbols for example).
13820       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13821       # (--disable-auto-import) libraries
13822       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13823       ;;
13824
13825     darwin* | rhapsody*)
13826       # PIC is the default on this platform
13827       # Common symbols not allowed in MH_DYLIB files
13828       lt_prog_compiler_pic_F77='-fno-common'
13829       ;;
13830
13831     interix[3-9]*)
13832       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13833       # Instead, we relocate shared libraries at runtime.
13834       ;;
13835
13836     msdosdjgpp*)
13837       # Just because we use GCC doesn't mean we suddenly get shared libraries
13838       # on systems that don't support them.
13839       lt_prog_compiler_can_build_shared_F77=no
13840       enable_shared=no
13841       ;;
13842
13843     sysv4*MP*)
13844       if test -d /usr/nec; then
13845         lt_prog_compiler_pic_F77=-Kconform_pic
13846       fi
13847       ;;
13848
13849     hpux*)
13850       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13851       # not for PA HP-UX.
13852       case $host_cpu in
13853       hppa*64*|ia64*)
13854         # +Z the default
13855         ;;
13856       *)
13857         lt_prog_compiler_pic_F77='-fPIC'
13858         ;;
13859       esac
13860       ;;
13861
13862     *)
13863       lt_prog_compiler_pic_F77='-fPIC'
13864       ;;
13865     esac
13866   else
13867     # PORTME Check for flag to pass linker flags through the system compiler.
13868     case $host_os in
13869     aix*)
13870       lt_prog_compiler_wl_F77='-Wl,'
13871       if test "$host_cpu" = ia64; then
13872         # AIX 5 now supports IA64 processor
13873         lt_prog_compiler_static_F77='-Bstatic'
13874       else
13875         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13876       fi
13877       ;;
13878       darwin*)
13879         # PIC is the default on this platform
13880         # Common symbols not allowed in MH_DYLIB files
13881        case $cc_basename in
13882          xlc*)
13883          lt_prog_compiler_pic_F77='-qnocommon'
13884          lt_prog_compiler_wl_F77='-Wl,'
13885          ;;
13886        esac
13887        ;;
13888
13889     mingw* | cygwin* | pw32* | os2*)
13890       # This hack is so that the source file can tell whether it is being
13891       # built for inclusion in a dll (and should export symbols for example).
13892       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13893       ;;
13894
13895     hpux9* | hpux10* | hpux11*)
13896       lt_prog_compiler_wl_F77='-Wl,'
13897       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13898       # not for PA HP-UX.
13899       case $host_cpu in
13900       hppa*64*|ia64*)
13901         # +Z the default
13902         ;;
13903       *)
13904         lt_prog_compiler_pic_F77='+Z'
13905         ;;
13906       esac
13907       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13908       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13909       ;;
13910
13911     irix5* | irix6* | nonstopux*)
13912       lt_prog_compiler_wl_F77='-Wl,'
13913       # PIC (with -KPIC) is the default.
13914       lt_prog_compiler_static_F77='-non_shared'
13915       ;;
13916
13917     newsos6)
13918       lt_prog_compiler_pic_F77='-KPIC'
13919       lt_prog_compiler_static_F77='-Bstatic'
13920       ;;
13921
13922     linux* | k*bsd*-gnu)
13923       case $cc_basename in
13924       icc* | ecc*)
13925         lt_prog_compiler_wl_F77='-Wl,'
13926         lt_prog_compiler_pic_F77='-KPIC'
13927         lt_prog_compiler_static_F77='-static'
13928         ;;
13929       pgcc* | pgf77* | pgf90* | pgf95*)
13930         # Portland Group compilers (*not* the Pentium gcc compiler,
13931         # which looks to be a dead project)
13932         lt_prog_compiler_wl_F77='-Wl,'
13933         lt_prog_compiler_pic_F77='-fpic'
13934         lt_prog_compiler_static_F77='-Bstatic'
13935         ;;
13936       ccc*)
13937         lt_prog_compiler_wl_F77='-Wl,'
13938         # All Alpha code is PIC.
13939         lt_prog_compiler_static_F77='-non_shared'
13940         ;;
13941       *)
13942         case `$CC -V 2>&1 | sed 5q` in
13943         *Sun\ C*)
13944           # Sun C 5.9
13945           lt_prog_compiler_pic_F77='-KPIC'
13946           lt_prog_compiler_static_F77='-Bstatic'
13947           lt_prog_compiler_wl_F77='-Wl,'
13948           ;;
13949         *Sun\ F*)
13950           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13951           lt_prog_compiler_pic_F77='-KPIC'
13952           lt_prog_compiler_static_F77='-Bstatic'
13953           lt_prog_compiler_wl_F77=''
13954           ;;
13955         esac
13956         ;;
13957       esac
13958       ;;
13959
13960     osf3* | osf4* | osf5*)
13961       lt_prog_compiler_wl_F77='-Wl,'
13962       # All OSF/1 code is PIC.
13963       lt_prog_compiler_static_F77='-non_shared'
13964       ;;
13965
13966     rdos*)
13967       lt_prog_compiler_static_F77='-non_shared'
13968       ;;
13969
13970     solaris*)
13971       lt_prog_compiler_pic_F77='-KPIC'
13972       lt_prog_compiler_static_F77='-Bstatic'
13973       case $cc_basename in
13974       f77* | f90* | f95*)
13975         lt_prog_compiler_wl_F77='-Qoption ld ';;
13976       *)
13977         lt_prog_compiler_wl_F77='-Wl,';;
13978       esac
13979       ;;
13980
13981     sunos4*)
13982       lt_prog_compiler_wl_F77='-Qoption ld '
13983       lt_prog_compiler_pic_F77='-PIC'
13984       lt_prog_compiler_static_F77='-Bstatic'
13985       ;;
13986
13987     sysv4 | sysv4.2uw2* | sysv4.3*)
13988       lt_prog_compiler_wl_F77='-Wl,'
13989       lt_prog_compiler_pic_F77='-KPIC'
13990       lt_prog_compiler_static_F77='-Bstatic'
13991       ;;
13992
13993     sysv4*MP*)
13994       if test -d /usr/nec ;then
13995         lt_prog_compiler_pic_F77='-Kconform_pic'
13996         lt_prog_compiler_static_F77='-Bstatic'
13997       fi
13998       ;;
13999
14000     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14001       lt_prog_compiler_wl_F77='-Wl,'
14002       lt_prog_compiler_pic_F77='-KPIC'
14003       lt_prog_compiler_static_F77='-Bstatic'
14004       ;;
14005
14006     unicos*)
14007       lt_prog_compiler_wl_F77='-Wl,'
14008       lt_prog_compiler_can_build_shared_F77=no
14009       ;;
14010
14011     uts4*)
14012       lt_prog_compiler_pic_F77='-pic'
14013       lt_prog_compiler_static_F77='-Bstatic'
14014       ;;
14015
14016     *)
14017       lt_prog_compiler_can_build_shared_F77=no
14018       ;;
14019     esac
14020   fi
14021
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14023 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14024
14025 #
14026 # Check to make sure the PIC flag actually works.
14027 #
14028 if test -n "$lt_prog_compiler_pic_F77"; then
14029
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14031 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14032 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14033   $as_echo_n "(cached) " >&6
14034 else
14035   lt_cv_prog_compiler_pic_works_F77=no
14036   ac_outfile=conftest.$ac_objext
14037    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14038    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14039    # Insert the option either (1) after the last *FLAGS variable, or
14040    # (2) before a word containing "conftest.", or (3) at the end.
14041    # Note that $ac_compile itself does not contain backslashes and begins
14042    # with a dollar sign (not a hyphen), so the echo should work correctly.
14043    # The option is referenced via a variable to avoid confusing sed.
14044    lt_compile=`echo "$ac_compile" | $SED \
14045    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047    -e 's:$: $lt_compiler_flag:'`
14048    (eval echo "\"\$as_me:14048: $lt_compile\"" >&5)
14049    (eval "$lt_compile" 2>conftest.err)
14050    ac_status=$?
14051    cat conftest.err >&5
14052    echo "$as_me:14052: \$? = $ac_status" >&5
14053    if (exit $ac_status) && test -s "$ac_outfile"; then
14054      # The compiler can only warn and ignore the option if not recognized
14055      # So say no if there are warnings other than the usual output.
14056      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14057      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14058      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14059        lt_cv_prog_compiler_pic_works_F77=yes
14060      fi
14061    fi
14062    $rm conftest*
14063
14064 fi
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14066 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14067
14068 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14069     case $lt_prog_compiler_pic_F77 in
14070      "" | " "*) ;;
14071      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14072      esac
14073 else
14074     lt_prog_compiler_pic_F77=
14075      lt_prog_compiler_can_build_shared_F77=no
14076 fi
14077
14078 fi
14079 case $host_os in
14080   # For platforms which do not support PIC, -DPIC is meaningless:
14081   *djgpp*)
14082     lt_prog_compiler_pic_F77=
14083     ;;
14084   *)
14085     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14086     ;;
14087 esac
14088
14089 #
14090 # Check to make sure the static flag actually works.
14091 #
14092 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14095 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14096   $as_echo_n "(cached) " >&6
14097 else
14098   lt_cv_prog_compiler_static_works_F77=no
14099    save_LDFLAGS="$LDFLAGS"
14100    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14101    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14102    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14103      # The linker can only warn and ignore the option if not recognized
14104      # So say no if there are warnings
14105      if test -s conftest.err; then
14106        # Append any errors to the config.log.
14107        cat conftest.err 1>&5
14108        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14109        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14110        if diff conftest.exp conftest.er2 >/dev/null; then
14111          lt_cv_prog_compiler_static_works_F77=yes
14112        fi
14113      else
14114        lt_cv_prog_compiler_static_works_F77=yes
14115      fi
14116    fi
14117    $rm -r conftest*
14118    LDFLAGS="$save_LDFLAGS"
14119
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14122 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14123
14124 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14125     :
14126 else
14127     lt_prog_compiler_static_F77=
14128 fi
14129
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14133 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14134   $as_echo_n "(cached) " >&6
14135 else
14136   lt_cv_prog_compiler_c_o_F77=no
14137    $rm -r conftest 2>/dev/null
14138    mkdir conftest
14139    cd conftest
14140    mkdir out
14141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14142
14143    lt_compiler_flag="-o out/conftest2.$ac_objext"
14144    # Insert the option either (1) after the last *FLAGS variable, or
14145    # (2) before a word containing "conftest.", or (3) at the end.
14146    # Note that $ac_compile itself does not contain backslashes and begins
14147    # with a dollar sign (not a hyphen), so the echo should work correctly.
14148    lt_compile=`echo "$ac_compile" | $SED \
14149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14151    -e 's:$: $lt_compiler_flag:'`
14152    (eval echo "\"\$as_me:14152: $lt_compile\"" >&5)
14153    (eval "$lt_compile" 2>out/conftest.err)
14154    ac_status=$?
14155    cat out/conftest.err >&5
14156    echo "$as_me:14156: \$? = $ac_status" >&5
14157    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14158    then
14159      # The compiler can only warn and ignore the option if not recognized
14160      # So say no if there are warnings
14161      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14162      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14163      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14164        lt_cv_prog_compiler_c_o_F77=yes
14165      fi
14166    fi
14167    chmod u+w . 2>&5
14168    $rm conftest*
14169    # SGI C++ compiler will create directory out/ii_files/ for
14170    # template instantiation
14171    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14172    $rm out/* && rmdir out
14173    cd ..
14174    rmdir conftest
14175    $rm conftest*
14176
14177 fi
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14179 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14180
14181
14182 hard_links="nottested"
14183 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14184   # do not overwrite the value of need_locks provided by the user
14185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14186 $as_echo_n "checking if we can lock with hard links... " >&6; }
14187   hard_links=yes
14188   $rm conftest*
14189   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14190   touch conftest.a
14191   ln conftest.a conftest.b 2>&5 || hard_links=no
14192   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14194 $as_echo "$hard_links" >&6; }
14195   if test "$hard_links" = no; then
14196     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14197 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14198     need_locks=warn
14199   fi
14200 else
14201   need_locks=no
14202 fi
14203
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14205 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14206
14207   runpath_var=
14208   allow_undefined_flag_F77=
14209   enable_shared_with_static_runtimes_F77=no
14210   archive_cmds_F77=
14211   archive_expsym_cmds_F77=
14212   old_archive_From_new_cmds_F77=
14213   old_archive_from_expsyms_cmds_F77=
14214   export_dynamic_flag_spec_F77=
14215   whole_archive_flag_spec_F77=
14216   thread_safe_flag_spec_F77=
14217   hardcode_libdir_flag_spec_F77=
14218   hardcode_libdir_flag_spec_ld_F77=
14219   hardcode_libdir_separator_F77=
14220   hardcode_direct_F77=no
14221   hardcode_minus_L_F77=no
14222   hardcode_shlibpath_var_F77=unsupported
14223   link_all_deplibs_F77=unknown
14224   hardcode_automatic_F77=no
14225   module_cmds_F77=
14226   module_expsym_cmds_F77=
14227   always_export_symbols_F77=no
14228   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14229   # include_expsyms should be a list of space-separated symbols to be *always*
14230   # included in the symbol list
14231   include_expsyms_F77=
14232   # exclude_expsyms can be an extended regexp of symbols to exclude
14233   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14234   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14235   # as well as any symbol that contains `d'.
14236   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14237   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14238   # platforms (ab)use it in PIC code, but their linkers get confused if
14239   # the symbol is explicitly referenced.  Since portable code cannot
14240   # rely on this symbol name, it's probably fine to never include it in
14241   # preloaded symbol tables.
14242   # Exclude shared library initialization/finalization symbols.
14243   extract_expsyms_cmds=
14244   # Just being paranoid about ensuring that cc_basename is set.
14245   for cc_temp in $compiler""; do
14246   case $cc_temp in
14247     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14248     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14249     \-*) ;;
14250     *) break;;
14251   esac
14252 done
14253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14254
14255   case $host_os in
14256   cygwin* | mingw* | pw32*)
14257     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14258     # When not using gcc, we currently assume that we are using
14259     # Microsoft Visual C++.
14260     if test "$GCC" != yes; then
14261       with_gnu_ld=no
14262     fi
14263     ;;
14264   interix*)
14265     # we just hope/assume this is gcc and not c89 (= MSVC++)
14266     with_gnu_ld=yes
14267     ;;
14268   openbsd*)
14269     with_gnu_ld=no
14270     ;;
14271   esac
14272
14273   ld_shlibs_F77=yes
14274   if test "$with_gnu_ld" = yes; then
14275     # If archive_cmds runs LD, not CC, wlarc should be empty
14276     wlarc='${wl}'
14277
14278     # Set some defaults for GNU ld with shared library support. These
14279     # are reset later if shared libraries are not supported. Putting them
14280     # here allows them to be overridden if necessary.
14281     runpath_var=LD_RUN_PATH
14282     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14283     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14284     # ancient GNU ld didn't support --whole-archive et. al.
14285     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14286         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14287       else
14288         whole_archive_flag_spec_F77=
14289     fi
14290     supports_anon_versioning=no
14291     case `$LD -v 2>/dev/null` in
14292       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14293       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14294       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14295       *\ 2.11.*) ;; # other 2.11 versions
14296       *) supports_anon_versioning=yes ;;
14297     esac
14298
14299     # See if GNU ld supports shared libraries.
14300     case $host_os in
14301     aix[3-9]*)
14302       # On AIX/PPC, the GNU linker is very broken
14303       if test "$host_cpu" != ia64; then
14304         ld_shlibs_F77=no
14305         cat <<EOF 1>&2
14306
14307 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14308 *** to be unable to reliably create shared libraries on AIX.
14309 *** Therefore, libtool is disabling shared libraries support.  If you
14310 *** really care for shared libraries, you may want to modify your PATH
14311 *** so that a non-GNU linker is found, and then restart.
14312
14313 EOF
14314       fi
14315       ;;
14316
14317     amigaos*)
14318       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)'
14319       hardcode_libdir_flag_spec_F77='-L$libdir'
14320       hardcode_minus_L_F77=yes
14321
14322       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14323       # that the semantics of dynamic libraries on AmigaOS, at least up
14324       # to version 4, is to share data among multiple programs linked
14325       # with the same dynamic library.  Since this doesn't match the
14326       # behavior of shared libraries on other platforms, we can't use
14327       # them.
14328       ld_shlibs_F77=no
14329       ;;
14330
14331     beos*)
14332       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14333         allow_undefined_flag_F77=unsupported
14334         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14335         # support --undefined.  This deserves some investigation.  FIXME
14336         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14337       else
14338         ld_shlibs_F77=no
14339       fi
14340       ;;
14341
14342     cygwin* | mingw* | pw32*)
14343       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14344       # as there is no search path for DLLs.
14345       hardcode_libdir_flag_spec_F77='-L$libdir'
14346       allow_undefined_flag_F77=unsupported
14347       always_export_symbols_F77=no
14348       enable_shared_with_static_runtimes_F77=yes
14349       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14350
14351       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14352         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14353         # If the export-symbols file already is a .def file (1st line
14354         # is EXPORTS), use it as is; otherwise, prepend...
14355         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14356           cp $export_symbols $output_objdir/$soname.def;
14357         else
14358           echo EXPORTS > $output_objdir/$soname.def;
14359           cat $export_symbols >> $output_objdir/$soname.def;
14360         fi~
14361         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14362       else
14363         ld_shlibs_F77=no
14364       fi
14365       ;;
14366
14367     interix[3-9]*)
14368       hardcode_direct_F77=no
14369       hardcode_shlibpath_var_F77=no
14370       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14371       export_dynamic_flag_spec_F77='${wl}-E'
14372       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14373       # Instead, shared libraries are loaded at an image base (0x10000000 by
14374       # default) and relocated if they conflict, which is a slow very memory
14375       # consuming and fragmenting process.  To avoid this, we pick a random,
14376       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14377       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14378       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'
14379       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'
14380       ;;
14381
14382     gnu* | linux* | k*bsd*-gnu)
14383       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14384         tmp_addflag=
14385         case $cc_basename,$host_cpu in
14386         pgcc*)                          # Portland Group C compiler
14387           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'
14388           tmp_addflag=' $pic_flag'
14389           ;;
14390         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14391           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'
14392           tmp_addflag=' $pic_flag -Mnomain' ;;
14393         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14394           tmp_addflag=' -i_dynamic' ;;
14395         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14396           tmp_addflag=' -i_dynamic -nofor_main' ;;
14397         ifc* | ifort*)                  # Intel Fortran compiler
14398           tmp_addflag=' -nofor_main' ;;
14399         esac
14400         case `$CC -V 2>&1 | sed 5q` in
14401         *Sun\ C*)                       # Sun C 5.9
14402           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'
14403           tmp_sharedflag='-G' ;;
14404         *Sun\ F*)                       # Sun Fortran 8.3
14405           tmp_sharedflag='-G' ;;
14406         *)
14407           tmp_sharedflag='-shared' ;;
14408         esac
14409         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410
14411         if test $supports_anon_versioning = yes; then
14412           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14413   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14414   $echo "local: *; };" >> $output_objdir/$libname.ver~
14415           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14416         fi
14417         link_all_deplibs_F77=no
14418       else
14419         ld_shlibs_F77=no
14420       fi
14421       ;;
14422
14423     netbsd* | netbsdelf*-gnu)
14424       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14425         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14426         wlarc=
14427       else
14428         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14429         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14430       fi
14431       ;;
14432
14433     solaris*)
14434       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14435         ld_shlibs_F77=no
14436         cat <<EOF 1>&2
14437
14438 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14439 *** create shared libraries on Solaris systems.  Therefore, libtool
14440 *** is disabling shared libraries support.  We urge you to upgrade GNU
14441 *** binutils to release 2.9.1 or newer.  Another option is to modify
14442 *** your PATH or compiler configuration so that the native linker is
14443 *** used, and then restart.
14444
14445 EOF
14446       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14447         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14448         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14449       else
14450         ld_shlibs_F77=no
14451       fi
14452       ;;
14453
14454     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14455       case `$LD -v 2>&1` in
14456         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14457         ld_shlibs_F77=no
14458         cat <<_LT_EOF 1>&2
14459
14460 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14461 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14462 *** is disabling shared libraries support.  We urge you to upgrade GNU
14463 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14464 *** your PATH or compiler configuration so that the native linker is
14465 *** used, and then restart.
14466
14467 _LT_EOF
14468         ;;
14469         *)
14470           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14471             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14472             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14473             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14474           else
14475             ld_shlibs_F77=no
14476           fi
14477         ;;
14478       esac
14479       ;;
14480
14481     sunos4*)
14482       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14483       wlarc=
14484       hardcode_direct_F77=yes
14485       hardcode_shlibpath_var_F77=no
14486       ;;
14487
14488     *)
14489       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14490         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14492       else
14493         ld_shlibs_F77=no
14494       fi
14495       ;;
14496     esac
14497
14498     if test "$ld_shlibs_F77" = no; then
14499       runpath_var=
14500       hardcode_libdir_flag_spec_F77=
14501       export_dynamic_flag_spec_F77=
14502       whole_archive_flag_spec_F77=
14503     fi
14504   else
14505     # PORTME fill in a description of your system's linker (not GNU ld)
14506     case $host_os in
14507     aix3*)
14508       allow_undefined_flag_F77=unsupported
14509       always_export_symbols_F77=yes
14510       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'
14511       # Note: this linker hardcodes the directories in LIBPATH if there
14512       # are no directories specified by -L.
14513       hardcode_minus_L_F77=yes
14514       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14515         # Neither direct hardcoding nor static linking is supported with a
14516         # broken collect2.
14517         hardcode_direct_F77=unsupported
14518       fi
14519       ;;
14520
14521     aix[4-9]*)
14522       if test "$host_cpu" = ia64; then
14523         # On IA64, the linker does run time linking by default, so we don't
14524         # have to do anything special.
14525         aix_use_runtimelinking=no
14526         exp_sym_flag='-Bexport'
14527         no_entry_flag=""
14528       else
14529         # If we're using GNU nm, then we don't want the "-C" option.
14530         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14531         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14532           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'
14533         else
14534           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'
14535         fi
14536         aix_use_runtimelinking=no
14537
14538         # Test if we are trying to use run time linking or normal
14539         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14540         # need to do runtime linking.
14541         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14542           for ld_flag in $LDFLAGS; do
14543           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14544             aix_use_runtimelinking=yes
14545             break
14546           fi
14547           done
14548           ;;
14549         esac
14550
14551         exp_sym_flag='-bexport'
14552         no_entry_flag='-bnoentry'
14553       fi
14554
14555       # When large executables or shared objects are built, AIX ld can
14556       # have problems creating the table of contents.  If linking a library
14557       # or program results in "error TOC overflow" add -mminimal-toc to
14558       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14559       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14560
14561       archive_cmds_F77=''
14562       hardcode_direct_F77=yes
14563       hardcode_libdir_separator_F77=':'
14564       link_all_deplibs_F77=yes
14565
14566       if test "$GCC" = yes; then
14567         case $host_os in aix4.[012]|aix4.[012].*)
14568         # We only want to do this on AIX 4.2 and lower, the check
14569         # below for broken collect2 doesn't work under 4.3+
14570           collect2name=`${CC} -print-prog-name=collect2`
14571           if test -f "$collect2name" && \
14572            strings "$collect2name" | grep resolve_lib_name >/dev/null
14573           then
14574           # We have reworked collect2
14575           :
14576           else
14577           # We have old collect2
14578           hardcode_direct_F77=unsupported
14579           # It fails to find uninstalled libraries when the uninstalled
14580           # path is not listed in the libpath.  Setting hardcode_minus_L
14581           # to unsupported forces relinking
14582           hardcode_minus_L_F77=yes
14583           hardcode_libdir_flag_spec_F77='-L$libdir'
14584           hardcode_libdir_separator_F77=
14585           fi
14586           ;;
14587         esac
14588         shared_flag='-shared'
14589         if test "$aix_use_runtimelinking" = yes; then
14590           shared_flag="$shared_flag "'${wl}-G'
14591         fi
14592       else
14593         # not using gcc
14594         if test "$host_cpu" = ia64; then
14595         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14596         # chokes on -Wl,-G. The following line is correct:
14597           shared_flag='-G'
14598         else
14599           if test "$aix_use_runtimelinking" = yes; then
14600             shared_flag='${wl}-G'
14601           else
14602             shared_flag='${wl}-bM:SRE'
14603           fi
14604         fi
14605       fi
14606
14607       # It seems that -bexpall does not export symbols beginning with
14608       # underscore (_), so it is better to generate a list of symbols to export.
14609       always_export_symbols_F77=yes
14610       if test "$aix_use_runtimelinking" = yes; then
14611         # Warning - without using the other runtime loading flags (-brtl),
14612         # -berok will link without error, but may produce a broken library.
14613         allow_undefined_flag_F77='-berok'
14614        # Determine the default libpath from the value encoded in an empty executable.
14615        cat > conftest.$ac_ext <<_ACEOF
14616       program main
14617
14618       end
14619 _ACEOF
14620 if ac_fn_f77_try_link "$LINENO"; then :
14621
14622 lt_aix_libpath_sed='
14623     /Import File Strings/,/^$/ {
14624         /^0/ {
14625             s/^0  *\(.*\)$/\1/
14626             p
14627         }
14628     }'
14629 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14630 # Check for a 64-bit object if we didn't find anything.
14631 if test -z "$aix_libpath"; then
14632   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14633 fi
14634 fi
14635 rm -f core conftest.err conftest.$ac_objext \
14636     conftest$ac_exeext conftest.$ac_ext
14637 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14638
14639        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14640         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"
14641        else
14642         if test "$host_cpu" = ia64; then
14643           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14644           allow_undefined_flag_F77="-z nodefs"
14645           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"
14646         else
14647          # Determine the default libpath from the value encoded in an empty executable.
14648          cat > conftest.$ac_ext <<_ACEOF
14649       program main
14650
14651       end
14652 _ACEOF
14653 if ac_fn_f77_try_link "$LINENO"; then :
14654
14655 lt_aix_libpath_sed='
14656     /Import File Strings/,/^$/ {
14657         /^0/ {
14658             s/^0  *\(.*\)$/\1/
14659             p
14660         }
14661     }'
14662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14663 # Check for a 64-bit object if we didn't find anything.
14664 if test -z "$aix_libpath"; then
14665   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14666 fi
14667 fi
14668 rm -f core conftest.err conftest.$ac_objext \
14669     conftest$ac_exeext conftest.$ac_ext
14670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14671
14672          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14673           # Warning - without using the other run time loading flags,
14674           # -berok will link without error, but may produce a broken library.
14675           no_undefined_flag_F77=' ${wl}-bernotok'
14676           allow_undefined_flag_F77=' ${wl}-berok'
14677           # Exported symbols can be pulled into shared objects from archives
14678           whole_archive_flag_spec_F77='$convenience'
14679           archive_cmds_need_lc_F77=yes
14680           # This is similar to how AIX traditionally builds its shared libraries.
14681           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'
14682         fi
14683       fi
14684       ;;
14685
14686     amigaos*)
14687       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)'
14688       hardcode_libdir_flag_spec_F77='-L$libdir'
14689       hardcode_minus_L_F77=yes
14690       # see comment about different semantics on the GNU ld section
14691       ld_shlibs_F77=no
14692       ;;
14693
14694     bsdi[45]*)
14695       export_dynamic_flag_spec_F77=-rdynamic
14696       ;;
14697
14698     cygwin* | mingw* | pw32*)
14699       # When not using gcc, we currently assume that we are using
14700       # Microsoft Visual C++.
14701       # hardcode_libdir_flag_spec is actually meaningless, as there is
14702       # no search path for DLLs.
14703       hardcode_libdir_flag_spec_F77=' '
14704       allow_undefined_flag_F77=unsupported
14705       # Tell ltmain to make .lib files, not .a files.
14706       libext=lib
14707       # Tell ltmain to make .dll files, not .so files.
14708       shrext_cmds=".dll"
14709       # FIXME: Setting linknames here is a bad hack.
14710       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14711       # The linker will automatically build a .lib file if we build a DLL.
14712       old_archive_From_new_cmds_F77='true'
14713       # FIXME: Should let the user specify the lib program.
14714       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14715       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14716       enable_shared_with_static_runtimes_F77=yes
14717       ;;
14718
14719     darwin* | rhapsody*)
14720       case $host_os in
14721         rhapsody* | darwin1.[012])
14722          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14723          ;;
14724        *) # Darwin 1.3 on
14725          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14726            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14727          else
14728            case ${MACOSX_DEPLOYMENT_TARGET} in
14729              10.[012])
14730                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14731                ;;
14732              10.*)
14733                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14734                ;;
14735            esac
14736          fi
14737          ;;
14738       esac
14739       archive_cmds_need_lc_F77=no
14740       hardcode_direct_F77=no
14741       hardcode_automatic_F77=yes
14742       hardcode_shlibpath_var_F77=unsupported
14743       whole_archive_flag_spec_F77=''
14744       link_all_deplibs_F77=yes
14745     if test "$GCC" = yes ; then
14746         output_verbose_link_cmd='echo'
14747         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}"
14748         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14749         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}"
14750         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}"
14751     else
14752       case $cc_basename in
14753         xlc*)
14754          output_verbose_link_cmd='echo'
14755          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14756          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14757           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14758          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}'
14759           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}'
14760           ;;
14761        *)
14762          ld_shlibs_F77=no
14763           ;;
14764       esac
14765     fi
14766       ;;
14767
14768     dgux*)
14769       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14770       hardcode_libdir_flag_spec_F77='-L$libdir'
14771       hardcode_shlibpath_var_F77=no
14772       ;;
14773
14774     freebsd1*)
14775       ld_shlibs_F77=no
14776       ;;
14777
14778     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14779     # support.  Future versions do this automatically, but an explicit c++rt0.o
14780     # does not break anything, and helps significantly (at the cost of a little
14781     # extra space).
14782     freebsd2.2*)
14783       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14784       hardcode_libdir_flag_spec_F77='-R$libdir'
14785       hardcode_direct_F77=yes
14786       hardcode_shlibpath_var_F77=no
14787       ;;
14788
14789     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14790     freebsd2*)
14791       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14792       hardcode_direct_F77=yes
14793       hardcode_minus_L_F77=yes
14794       hardcode_shlibpath_var_F77=no
14795       ;;
14796
14797     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14798     freebsd* | dragonfly*)
14799       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14800       hardcode_libdir_flag_spec_F77='-R$libdir'
14801       hardcode_direct_F77=yes
14802       hardcode_shlibpath_var_F77=no
14803       ;;
14804
14805     hpux9*)
14806       if test "$GCC" = yes; then
14807         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'
14808       else
14809         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'
14810       fi
14811       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14812       hardcode_libdir_separator_F77=:
14813       hardcode_direct_F77=yes
14814
14815       # hardcode_minus_L: Not really in the search PATH,
14816       # but as the default location of the library.
14817       hardcode_minus_L_F77=yes
14818       export_dynamic_flag_spec_F77='${wl}-E'
14819       ;;
14820
14821     hpux10*)
14822       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14823         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14824       else
14825         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14826       fi
14827       if test "$with_gnu_ld" = no; then
14828         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14829         hardcode_libdir_separator_F77=:
14830
14831         hardcode_direct_F77=yes
14832         export_dynamic_flag_spec_F77='${wl}-E'
14833
14834         # hardcode_minus_L: Not really in the search PATH,
14835         # but as the default location of the library.
14836         hardcode_minus_L_F77=yes
14837       fi
14838       ;;
14839
14840     hpux11*)
14841       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14842         case $host_cpu in
14843         hppa*64*)
14844           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14845           ;;
14846         ia64*)
14847           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14848           ;;
14849         *)
14850           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14851           ;;
14852         esac
14853       else
14854         case $host_cpu in
14855         hppa*64*)
14856           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14857           ;;
14858         ia64*)
14859           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14860           ;;
14861         *)
14862           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14863           ;;
14864         esac
14865       fi
14866       if test "$with_gnu_ld" = no; then
14867         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14868         hardcode_libdir_separator_F77=:
14869
14870         case $host_cpu in
14871         hppa*64*|ia64*)
14872           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14873           hardcode_direct_F77=no
14874           hardcode_shlibpath_var_F77=no
14875           ;;
14876         *)
14877           hardcode_direct_F77=yes
14878           export_dynamic_flag_spec_F77='${wl}-E'
14879
14880           # hardcode_minus_L: Not really in the search PATH,
14881           # but as the default location of the library.
14882           hardcode_minus_L_F77=yes
14883           ;;
14884         esac
14885       fi
14886       ;;
14887
14888     irix5* | irix6* | nonstopux*)
14889       if test "$GCC" = yes; then
14890         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'
14891       else
14892         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'
14893         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14894       fi
14895       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14896       hardcode_libdir_separator_F77=:
14897       link_all_deplibs_F77=yes
14898       ;;
14899
14900     netbsd* | netbsdelf*-gnu)
14901       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14902         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14903       else
14904         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14905       fi
14906       hardcode_libdir_flag_spec_F77='-R$libdir'
14907       hardcode_direct_F77=yes
14908       hardcode_shlibpath_var_F77=no
14909       ;;
14910
14911     newsos6)
14912       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14913       hardcode_direct_F77=yes
14914       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14915       hardcode_libdir_separator_F77=:
14916       hardcode_shlibpath_var_F77=no
14917       ;;
14918
14919     openbsd*)
14920       if test -f /usr/libexec/ld.so; then
14921         hardcode_direct_F77=yes
14922         hardcode_shlibpath_var_F77=no
14923         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14924           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14925           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14926           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14927           export_dynamic_flag_spec_F77='${wl}-E'
14928         else
14929           case $host_os in
14930            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14931              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14932              hardcode_libdir_flag_spec_F77='-R$libdir'
14933              ;;
14934            *)
14935              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14936              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14937              ;;
14938           esac
14939         fi
14940       else
14941         ld_shlibs_F77=no
14942       fi
14943       ;;
14944
14945     os2*)
14946       hardcode_libdir_flag_spec_F77='-L$libdir'
14947       hardcode_minus_L_F77=yes
14948       allow_undefined_flag_F77=unsupported
14949       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'
14950       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14951       ;;
14952
14953     osf3*)
14954       if test "$GCC" = yes; then
14955         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14956         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'
14957       else
14958         allow_undefined_flag_F77=' -expect_unresolved \*'
14959         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'
14960       fi
14961       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14962       hardcode_libdir_separator_F77=:
14963       ;;
14964
14965     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14966       if test "$GCC" = yes; then
14967         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14968         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'
14969         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14970       else
14971         allow_undefined_flag_F77=' -expect_unresolved \*'
14972         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'
14973         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~
14974         $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'
14975
14976         # Both c and cxx compiler support -rpath directly
14977         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14978       fi
14979       hardcode_libdir_separator_F77=:
14980       ;;
14981
14982     solaris*)
14983       no_undefined_flag_F77=' -z text'
14984       if test "$GCC" = yes; then
14985         wlarc='${wl}'
14986         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14987         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14988           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14989       else
14990         wlarc=''
14991         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14992         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14993         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14994       fi
14995       hardcode_libdir_flag_spec_F77='-R$libdir'
14996       hardcode_shlibpath_var_F77=no
14997       case $host_os in
14998       solaris2.[0-5] | solaris2.[0-5].*) ;;
14999       *)
15000         # The compiler driver will combine and reorder linker options,
15001         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15002         # but is careful enough not to reorder.
15003         # Supported since Solaris 2.6 (maybe 2.5.1?)
15004         if test "$GCC" = yes; then
15005           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15006         else
15007           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15008         fi
15009         ;;
15010       esac
15011       link_all_deplibs_F77=yes
15012       ;;
15013
15014     sunos4*)
15015       if test "x$host_vendor" = xsequent; then
15016         # Use $CC to link under sequent, because it throws in some extra .o
15017         # files that make .init and .fini sections work.
15018         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15019       else
15020         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15021       fi
15022       hardcode_libdir_flag_spec_F77='-L$libdir'
15023       hardcode_direct_F77=yes
15024       hardcode_minus_L_F77=yes
15025       hardcode_shlibpath_var_F77=no
15026       ;;
15027
15028     sysv4)
15029       case $host_vendor in
15030         sni)
15031           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15032           hardcode_direct_F77=yes # is this really true???
15033         ;;
15034         siemens)
15035           ## LD is ld it makes a PLAMLIB
15036           ## CC just makes a GrossModule.
15037           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15038           reload_cmds_F77='$CC -r -o $output$reload_objs'
15039           hardcode_direct_F77=no
15040         ;;
15041         motorola)
15042           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15044         ;;
15045       esac
15046       runpath_var='LD_RUN_PATH'
15047       hardcode_shlibpath_var_F77=no
15048       ;;
15049
15050     sysv4.3*)
15051       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15052       hardcode_shlibpath_var_F77=no
15053       export_dynamic_flag_spec_F77='-Bexport'
15054       ;;
15055
15056     sysv4*MP*)
15057       if test -d /usr/nec; then
15058         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15059         hardcode_shlibpath_var_F77=no
15060         runpath_var=LD_RUN_PATH
15061         hardcode_runpath_var=yes
15062         ld_shlibs_F77=yes
15063       fi
15064       ;;
15065
15066     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15067       no_undefined_flag_F77='${wl}-z,text'
15068       archive_cmds_need_lc_F77=no
15069       hardcode_shlibpath_var_F77=no
15070       runpath_var='LD_RUN_PATH'
15071
15072       if test "$GCC" = yes; then
15073         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15074         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15075       else
15076         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15077         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15078       fi
15079       ;;
15080
15081     sysv5* | sco3.2v5* | sco5v6*)
15082       # Note: We can NOT use -z defs as we might desire, because we do not
15083       # link with -lc, and that would cause any symbols used from libc to
15084       # always be unresolved, which means just about no library would
15085       # ever link correctly.  If we're not using GNU ld we use -z text
15086       # though, which does catch some bad symbols but isn't as heavy-handed
15087       # as -z defs.
15088       no_undefined_flag_F77='${wl}-z,text'
15089       allow_undefined_flag_F77='${wl}-z,nodefs'
15090       archive_cmds_need_lc_F77=no
15091       hardcode_shlibpath_var_F77=no
15092       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15093       hardcode_libdir_separator_F77=':'
15094       link_all_deplibs_F77=yes
15095       export_dynamic_flag_spec_F77='${wl}-Bexport'
15096       runpath_var='LD_RUN_PATH'
15097
15098       if test "$GCC" = yes; then
15099         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15100         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15101       else
15102         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15103         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15104       fi
15105       ;;
15106
15107     uts4*)
15108       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109       hardcode_libdir_flag_spec_F77='-L$libdir'
15110       hardcode_shlibpath_var_F77=no
15111       ;;
15112
15113     *)
15114       ld_shlibs_F77=no
15115       ;;
15116     esac
15117   fi
15118
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15120 $as_echo "$ld_shlibs_F77" >&6; }
15121 test "$ld_shlibs_F77" = no && can_build_shared=no
15122
15123 #
15124 # Do we need to explicitly link libc?
15125 #
15126 case "x$archive_cmds_need_lc_F77" in
15127 x|xyes)
15128   # Assume -lc should be added
15129   archive_cmds_need_lc_F77=yes
15130
15131   if test "$enable_shared" = yes && test "$GCC" = yes; then
15132     case $archive_cmds_F77 in
15133     *'~'*)
15134       # FIXME: we may have to deal with multi-command sequences.
15135       ;;
15136     '$CC '*)
15137       # Test whether the compiler implicitly links with -lc since on some
15138       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15139       # to ld, don't add -lc before -lgcc.
15140       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15141 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15142       $rm conftest*
15143       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15144
15145       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15146   (eval $ac_compile) 2>&5
15147   ac_status=$?
15148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149   test $ac_status = 0; } 2>conftest.err; then
15150         soname=conftest
15151         lib=conftest
15152         libobjs=conftest.$ac_objext
15153         deplibs=
15154         wl=$lt_prog_compiler_wl_F77
15155         pic_flag=$lt_prog_compiler_pic_F77
15156         compiler_flags=-v
15157         linker_flags=-v
15158         verstring=
15159         output_objdir=.
15160         libname=conftest
15161         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15162         allow_undefined_flag_F77=
15163         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15164   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15165   ac_status=$?
15166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167   test $ac_status = 0; }
15168         then
15169           archive_cmds_need_lc_F77=no
15170         else
15171           archive_cmds_need_lc_F77=yes
15172         fi
15173         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15174       else
15175         cat conftest.err 1>&5
15176       fi
15177       $rm conftest*
15178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15179 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15180       ;;
15181     esac
15182   fi
15183   ;;
15184 esac
15185
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15187 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15188 library_names_spec=
15189 libname_spec='lib$name'
15190 soname_spec=
15191 shrext_cmds=".so"
15192 postinstall_cmds=
15193 postuninstall_cmds=
15194 finish_cmds=
15195 finish_eval=
15196 shlibpath_var=
15197 shlibpath_overrides_runpath=unknown
15198 version_type=none
15199 dynamic_linker="$host_os ld.so"
15200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15201
15202 need_lib_prefix=unknown
15203 hardcode_into_libs=no
15204
15205 # when you set need_version to no, make sure it does not cause -set_version
15206 # flags to be left without arguments
15207 need_version=unknown
15208
15209 case $host_os in
15210 aix3*)
15211   version_type=linux
15212   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15213   shlibpath_var=LIBPATH
15214
15215   # AIX 3 has no versioning support, so we append a major version to the name.
15216   soname_spec='${libname}${release}${shared_ext}$major'
15217   ;;
15218
15219 aix[4-9]*)
15220   version_type=linux
15221   need_lib_prefix=no
15222   need_version=no
15223   hardcode_into_libs=yes
15224   if test "$host_cpu" = ia64; then
15225     # AIX 5 supports IA64
15226     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15227     shlibpath_var=LD_LIBRARY_PATH
15228   else
15229     # With GCC up to 2.95.x, collect2 would create an import file
15230     # for dependence libraries.  The import file would start with
15231     # the line `#! .'.  This would cause the generated library to
15232     # depend on `.', always an invalid library.  This was fixed in
15233     # development snapshots of GCC prior to 3.0.
15234     case $host_os in
15235       aix4 | aix4.[01] | aix4.[01].*)
15236       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15237            echo ' yes '
15238            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15239         :
15240       else
15241         can_build_shared=no
15242       fi
15243       ;;
15244     esac
15245     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15246     # soname into executable. Probably we can add versioning support to
15247     # collect2, so additional links can be useful in future.
15248     if test "$aix_use_runtimelinking" = yes; then
15249       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15250       # instead of lib<name>.a to let people know that these are not
15251       # typical AIX shared libraries.
15252       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253     else
15254       # We preserve .a as extension for shared libraries through AIX4.2
15255       # and later when we are not doing run time linking.
15256       library_names_spec='${libname}${release}.a $libname.a'
15257       soname_spec='${libname}${release}${shared_ext}$major'
15258     fi
15259     shlibpath_var=LIBPATH
15260   fi
15261   ;;
15262
15263 amigaos*)
15264   library_names_spec='$libname.ixlibrary $libname.a'
15265   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15266   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'
15267   ;;
15268
15269 beos*)
15270   library_names_spec='${libname}${shared_ext}'
15271   dynamic_linker="$host_os ld.so"
15272   shlibpath_var=LIBRARY_PATH
15273   ;;
15274
15275 bsdi[45]*)
15276   version_type=linux
15277   need_version=no
15278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279   soname_spec='${libname}${release}${shared_ext}$major'
15280   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15281   shlibpath_var=LD_LIBRARY_PATH
15282   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15283   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15284   # the default ld.so.conf also contains /usr/contrib/lib and
15285   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15286   # libtool to hard-code these into programs
15287   ;;
15288
15289 cygwin* | mingw* | pw32*)
15290   version_type=windows
15291   shrext_cmds=".dll"
15292   need_version=no
15293   need_lib_prefix=no
15294
15295   case $GCC,$host_os in
15296   yes,cygwin* | yes,mingw* | yes,pw32*)
15297     library_names_spec='$libname.dll.a'
15298     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15299     postinstall_cmds='base_file=`basename \${file}`~
15300       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15301       dldir=$destdir/`dirname \$dlpath`~
15302       test -d \$dldir || mkdir -p \$dldir~
15303       $install_prog $dir/$dlname \$dldir/$dlname~
15304       chmod a+x \$dldir/$dlname'
15305     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15306       dlpath=$dir/\$dldll~
15307        $rm \$dlpath'
15308     shlibpath_overrides_runpath=yes
15309
15310     case $host_os in
15311     cygwin*)
15312       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15313       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15315       ;;
15316     mingw*)
15317       # MinGW DLLs use traditional 'lib' prefix
15318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15319       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15320       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15321         # It is most probably a Windows format PATH printed by
15322         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15323         # path with ; separators, and with drive letters. We can handle the
15324         # drive letters (cygwin fileutils understands them), so leave them,
15325         # especially as we might pass files found there to a mingw objdump,
15326         # which wouldn't understand a cygwinified path. Ahh.
15327         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15328       else
15329         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15330       fi
15331       ;;
15332     pw32*)
15333       # pw32 DLLs use 'pw' prefix rather than 'lib'
15334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15335       ;;
15336     esac
15337     ;;
15338
15339   *)
15340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15341     ;;
15342   esac
15343   dynamic_linker='Win32 ld.exe'
15344   # FIXME: first we should search . and the directory the executable is in
15345   shlibpath_var=PATH
15346   ;;
15347
15348 darwin* | rhapsody*)
15349   dynamic_linker="$host_os dyld"
15350   version_type=darwin
15351   need_lib_prefix=no
15352   need_version=no
15353   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15354   soname_spec='${libname}${release}${major}$shared_ext'
15355   shlibpath_overrides_runpath=yes
15356   shlibpath_var=DYLD_LIBRARY_PATH
15357   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15358
15359   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15360   ;;
15361
15362 dgux*)
15363   version_type=linux
15364   need_lib_prefix=no
15365   need_version=no
15366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15367   soname_spec='${libname}${release}${shared_ext}$major'
15368   shlibpath_var=LD_LIBRARY_PATH
15369   ;;
15370
15371 freebsd1*)
15372   dynamic_linker=no
15373   ;;
15374
15375 freebsd* | dragonfly*)
15376   # DragonFly does not have aout.  When/if they implement a new
15377   # versioning mechanism, adjust this.
15378   if test -x /usr/bin/objformat; then
15379     objformat=`/usr/bin/objformat`
15380   else
15381     case $host_os in
15382     freebsd[123]*) objformat=aout ;;
15383     *) objformat=elf ;;
15384     esac
15385   fi
15386   version_type=freebsd-$objformat
15387   case $version_type in
15388     freebsd-elf*)
15389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15390       need_version=no
15391       need_lib_prefix=no
15392       ;;
15393     freebsd-*)
15394       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15395       need_version=yes
15396       ;;
15397   esac
15398   shlibpath_var=LD_LIBRARY_PATH
15399   case $host_os in
15400   freebsd2*)
15401     shlibpath_overrides_runpath=yes
15402     ;;
15403   freebsd3.[01]* | freebsdelf3.[01]*)
15404     shlibpath_overrides_runpath=yes
15405     hardcode_into_libs=yes
15406     ;;
15407   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15408   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15409     shlibpath_overrides_runpath=no
15410     hardcode_into_libs=yes
15411     ;;
15412   *) # from 4.6 on, and DragonFly
15413     shlibpath_overrides_runpath=yes
15414     hardcode_into_libs=yes
15415     ;;
15416   esac
15417   ;;
15418
15419 gnu*)
15420   version_type=linux
15421   need_lib_prefix=no
15422   need_version=no
15423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15424   soname_spec='${libname}${release}${shared_ext}$major'
15425   shlibpath_var=LD_LIBRARY_PATH
15426   hardcode_into_libs=yes
15427   ;;
15428
15429 hpux9* | hpux10* | hpux11*)
15430   # Give a soname corresponding to the major version so that dld.sl refuses to
15431   # link against other versions.
15432   version_type=sunos
15433   need_lib_prefix=no
15434   need_version=no
15435   case $host_cpu in
15436   ia64*)
15437     shrext_cmds='.so'
15438     hardcode_into_libs=yes
15439     dynamic_linker="$host_os dld.so"
15440     shlibpath_var=LD_LIBRARY_PATH
15441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443     soname_spec='${libname}${release}${shared_ext}$major'
15444     if test "X$HPUX_IA64_MODE" = X32; then
15445       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15446     else
15447       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15448     fi
15449     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15450     ;;
15451    hppa*64*)
15452      shrext_cmds='.sl'
15453      hardcode_into_libs=yes
15454      dynamic_linker="$host_os dld.sl"
15455      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15456      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458      soname_spec='${libname}${release}${shared_ext}$major'
15459      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15460      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15461      ;;
15462    *)
15463     shrext_cmds='.sl'
15464     dynamic_linker="$host_os dld.sl"
15465     shlibpath_var=SHLIB_PATH
15466     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468     soname_spec='${libname}${release}${shared_ext}$major'
15469     ;;
15470   esac
15471   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15472   postinstall_cmds='chmod 555 $lib'
15473   ;;
15474
15475 interix[3-9]*)
15476   version_type=linux
15477   need_lib_prefix=no
15478   need_version=no
15479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15480   soname_spec='${libname}${release}${shared_ext}$major'
15481   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15482   shlibpath_var=LD_LIBRARY_PATH
15483   shlibpath_overrides_runpath=no
15484   hardcode_into_libs=yes
15485   ;;
15486
15487 irix5* | irix6* | nonstopux*)
15488   case $host_os in
15489     nonstopux*) version_type=nonstopux ;;
15490     *)
15491         if test "$lt_cv_prog_gnu_ld" = yes; then
15492                 version_type=linux
15493         else
15494                 version_type=irix
15495         fi ;;
15496   esac
15497   need_lib_prefix=no
15498   need_version=no
15499   soname_spec='${libname}${release}${shared_ext}$major'
15500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15501   case $host_os in
15502   irix5* | nonstopux*)
15503     libsuff= shlibsuff=
15504     ;;
15505   *)
15506     case $LD in # libtool.m4 will add one of these switches to LD
15507     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15508       libsuff= shlibsuff= libmagic=32-bit;;
15509     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15510       libsuff=32 shlibsuff=N32 libmagic=N32;;
15511     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15512       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15513     *) libsuff= shlibsuff= libmagic=never-match;;
15514     esac
15515     ;;
15516   esac
15517   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15518   shlibpath_overrides_runpath=no
15519   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15520   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15521   hardcode_into_libs=yes
15522   ;;
15523
15524 # No shared lib support for Linux oldld, aout, or coff.
15525 linux*oldld* | linux*aout* | linux*coff*)
15526   dynamic_linker=no
15527   ;;
15528
15529 # This must be Linux ELF.
15530 linux* | k*bsd*-gnu)
15531   version_type=linux
15532   need_lib_prefix=no
15533   need_version=no
15534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535   soname_spec='${libname}${release}${shared_ext}$major'
15536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15537   shlibpath_var=LD_LIBRARY_PATH
15538   shlibpath_overrides_runpath=no
15539   # This implies no fast_install, which is unacceptable.
15540   # Some rework will be needed to allow for fast_install
15541   # before this can be enabled.
15542   hardcode_into_libs=yes
15543
15544   # Append ld.so.conf contents to the search path
15545   if test -f /etc/ld.so.conf; then
15546     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' ' '`
15547     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15548   fi
15549
15550   # We used to test for /lib/ld.so.1 and disable shared libraries on
15551   # powerpc, because MkLinux only supported shared libraries with the
15552   # GNU dynamic linker.  Since this was broken with cross compilers,
15553   # most powerpc-linux boxes support dynamic linking these days and
15554   # people can always --disable-shared, the test was removed, and we
15555   # assume the GNU/Linux dynamic linker is in use.
15556   dynamic_linker='GNU/Linux ld.so'
15557   ;;
15558
15559 netbsdelf*-gnu)
15560   version_type=linux
15561   need_lib_prefix=no
15562   need_version=no
15563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15564   soname_spec='${libname}${release}${shared_ext}$major'
15565   shlibpath_var=LD_LIBRARY_PATH
15566   shlibpath_overrides_runpath=no
15567   hardcode_into_libs=yes
15568   dynamic_linker='NetBSD ld.elf_so'
15569   ;;
15570
15571 netbsd*)
15572   version_type=sunos
15573   need_lib_prefix=no
15574   need_version=no
15575   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15577     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15578     dynamic_linker='NetBSD (a.out) ld.so'
15579   else
15580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15581     soname_spec='${libname}${release}${shared_ext}$major'
15582     dynamic_linker='NetBSD ld.elf_so'
15583   fi
15584   shlibpath_var=LD_LIBRARY_PATH
15585   shlibpath_overrides_runpath=yes
15586   hardcode_into_libs=yes
15587   ;;
15588
15589 newsos6)
15590   version_type=linux
15591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592   shlibpath_var=LD_LIBRARY_PATH
15593   shlibpath_overrides_runpath=yes
15594   ;;
15595
15596 nto-qnx*)
15597   version_type=linux
15598   need_lib_prefix=no
15599   need_version=no
15600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601   soname_spec='${libname}${release}${shared_ext}$major'
15602   shlibpath_var=LD_LIBRARY_PATH
15603   shlibpath_overrides_runpath=yes
15604   ;;
15605
15606 openbsd*)
15607   version_type=sunos
15608   sys_lib_dlsearch_path_spec="/usr/lib"
15609   need_lib_prefix=no
15610   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15611   case $host_os in
15612     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15613     *)                         need_version=no  ;;
15614   esac
15615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15616   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15617   shlibpath_var=LD_LIBRARY_PATH
15618   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15619     case $host_os in
15620       openbsd2.[89] | openbsd2.[89].*)
15621         shlibpath_overrides_runpath=no
15622         ;;
15623       *)
15624         shlibpath_overrides_runpath=yes
15625         ;;
15626       esac
15627   else
15628     shlibpath_overrides_runpath=yes
15629   fi
15630   ;;
15631
15632 os2*)
15633   libname_spec='$name'
15634   shrext_cmds=".dll"
15635   need_lib_prefix=no
15636   library_names_spec='$libname${shared_ext} $libname.a'
15637   dynamic_linker='OS/2 ld.exe'
15638   shlibpath_var=LIBPATH
15639   ;;
15640
15641 osf3* | osf4* | osf5*)
15642   version_type=osf
15643   need_lib_prefix=no
15644   need_version=no
15645   soname_spec='${libname}${release}${shared_ext}$major'
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647   shlibpath_var=LD_LIBRARY_PATH
15648   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15649   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15650   ;;
15651
15652 rdos*)
15653   dynamic_linker=no
15654   ;;
15655
15656 solaris*)
15657   version_type=linux
15658   need_lib_prefix=no
15659   need_version=no
15660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661   soname_spec='${libname}${release}${shared_ext}$major'
15662   shlibpath_var=LD_LIBRARY_PATH
15663   shlibpath_overrides_runpath=yes
15664   hardcode_into_libs=yes
15665   # ldd complains unless libraries are executable
15666   postinstall_cmds='chmod +x $lib'
15667   ;;
15668
15669 sunos4*)
15670   version_type=sunos
15671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15672   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15673   shlibpath_var=LD_LIBRARY_PATH
15674   shlibpath_overrides_runpath=yes
15675   if test "$with_gnu_ld" = yes; then
15676     need_lib_prefix=no
15677   fi
15678   need_version=yes
15679   ;;
15680
15681 sysv4 | sysv4.3*)
15682   version_type=linux
15683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684   soname_spec='${libname}${release}${shared_ext}$major'
15685   shlibpath_var=LD_LIBRARY_PATH
15686   case $host_vendor in
15687     sni)
15688       shlibpath_overrides_runpath=no
15689       need_lib_prefix=no
15690       export_dynamic_flag_spec='${wl}-Blargedynsym'
15691       runpath_var=LD_RUN_PATH
15692       ;;
15693     siemens)
15694       need_lib_prefix=no
15695       ;;
15696     motorola)
15697       need_lib_prefix=no
15698       need_version=no
15699       shlibpath_overrides_runpath=no
15700       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15701       ;;
15702   esac
15703   ;;
15704
15705 sysv4*MP*)
15706   if test -d /usr/nec ;then
15707     version_type=linux
15708     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15709     soname_spec='$libname${shared_ext}.$major'
15710     shlibpath_var=LD_LIBRARY_PATH
15711   fi
15712   ;;
15713
15714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15715   version_type=freebsd-elf
15716   need_lib_prefix=no
15717   need_version=no
15718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15719   soname_spec='${libname}${release}${shared_ext}$major'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   hardcode_into_libs=yes
15722   if test "$with_gnu_ld" = yes; then
15723     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15724     shlibpath_overrides_runpath=no
15725   else
15726     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15727     shlibpath_overrides_runpath=yes
15728     case $host_os in
15729       sco3.2v5*)
15730         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15731         ;;
15732     esac
15733   fi
15734   sys_lib_dlsearch_path_spec='/usr/lib'
15735   ;;
15736
15737 uts4*)
15738   version_type=linux
15739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15740   soname_spec='${libname}${release}${shared_ext}$major'
15741   shlibpath_var=LD_LIBRARY_PATH
15742   ;;
15743
15744 *)
15745   dynamic_linker=no
15746   ;;
15747 esac
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15749 $as_echo "$dynamic_linker" >&6; }
15750 test "$dynamic_linker" = no && can_build_shared=no
15751
15752 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15753   $as_echo_n "(cached) " >&6
15754 else
15755   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15756 fi
15757
15758 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15759 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15760   $as_echo_n "(cached) " >&6
15761 else
15762   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15763 fi
15764
15765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15766
15767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15768 if test "$GCC" = yes; then
15769   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15770 fi
15771
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15773 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15774 hardcode_action_F77=
15775 if test -n "$hardcode_libdir_flag_spec_F77" || \
15776    test -n "$runpath_var_F77" || \
15777    test "X$hardcode_automatic_F77" = "Xyes" ; then
15778
15779   # We can hardcode non-existant directories.
15780   if test "$hardcode_direct_F77" != no &&
15781      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15782      # have to relink, otherwise we might link with an installed library
15783      # when we should be linking with a yet-to-be-installed one
15784      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15785      test "$hardcode_minus_L_F77" != no; then
15786     # Linking always hardcodes the temporary library directory.
15787     hardcode_action_F77=relink
15788   else
15789     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15790     hardcode_action_F77=immediate
15791   fi
15792 else
15793   # We cannot hardcode anything, or else we can only hardcode existing
15794   # directories.
15795   hardcode_action_F77=unsupported
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15798 $as_echo "$hardcode_action_F77" >&6; }
15799
15800 if test "$hardcode_action_F77" = relink; then
15801   # Fast installation is not supported
15802   enable_fast_install=no
15803 elif test "$shlibpath_overrides_runpath" = yes ||
15804      test "$enable_shared" = no; then
15805   # Fast installation is not necessary
15806   enable_fast_install=needless
15807 fi
15808
15809
15810 # The else clause should only fire when bootstrapping the
15811 # libtool distribution, otherwise you forgot to ship ltmain.sh
15812 # with your package, and you will get complaints that there are
15813 # no rules to generate ltmain.sh.
15814 if test -f "$ltmain"; then
15815   # See if we are running on zsh, and set the options which allow our commands through
15816   # without removal of \ escapes.
15817   if test -n "${ZSH_VERSION+set}" ; then
15818     setopt NO_GLOB_SUBST
15819   fi
15820   # Now quote all the things that may contain metacharacters while being
15821   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15822   # variables and quote the copies for generation of the libtool script.
15823   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15824     SED SHELL STRIP \
15825     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15826     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15827     deplibs_check_method reload_flag reload_cmds need_locks \
15828     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15829     lt_cv_sys_global_symbol_to_c_name_address \
15830     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15831     old_postinstall_cmds old_postuninstall_cmds \
15832     compiler_F77 \
15833     CC_F77 \
15834     LD_F77 \
15835     lt_prog_compiler_wl_F77 \
15836     lt_prog_compiler_pic_F77 \
15837     lt_prog_compiler_static_F77 \
15838     lt_prog_compiler_no_builtin_flag_F77 \
15839     export_dynamic_flag_spec_F77 \
15840     thread_safe_flag_spec_F77 \
15841     whole_archive_flag_spec_F77 \
15842     enable_shared_with_static_runtimes_F77 \
15843     old_archive_cmds_F77 \
15844     old_archive_from_new_cmds_F77 \
15845     predep_objects_F77 \
15846     postdep_objects_F77 \
15847     predeps_F77 \
15848     postdeps_F77 \
15849     compiler_lib_search_path_F77 \
15850     compiler_lib_search_dirs_F77 \
15851     archive_cmds_F77 \
15852     archive_expsym_cmds_F77 \
15853     postinstall_cmds_F77 \
15854     postuninstall_cmds_F77 \
15855     old_archive_from_expsyms_cmds_F77 \
15856     allow_undefined_flag_F77 \
15857     no_undefined_flag_F77 \
15858     export_symbols_cmds_F77 \
15859     hardcode_libdir_flag_spec_F77 \
15860     hardcode_libdir_flag_spec_ld_F77 \
15861     hardcode_libdir_separator_F77 \
15862     hardcode_automatic_F77 \
15863     module_cmds_F77 \
15864     module_expsym_cmds_F77 \
15865     lt_cv_prog_compiler_c_o_F77 \
15866     fix_srcfile_path_F77 \
15867     exclude_expsyms_F77 \
15868     include_expsyms_F77; do
15869
15870     case $var in
15871     old_archive_cmds_F77 | \
15872     old_archive_from_new_cmds_F77 | \
15873     archive_cmds_F77 | \
15874     archive_expsym_cmds_F77 | \
15875     module_cmds_F77 | \
15876     module_expsym_cmds_F77 | \
15877     old_archive_from_expsyms_cmds_F77 | \
15878     export_symbols_cmds_F77 | \
15879     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15880     postinstall_cmds | postuninstall_cmds | \
15881     old_postinstall_cmds | old_postuninstall_cmds | \
15882     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15883       # Double-quote double-evaled strings.
15884       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15885       ;;
15886     *)
15887       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15888       ;;
15889     esac
15890   done
15891
15892   case $lt_echo in
15893   *'\$0 --fallback-echo"')
15894     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15895     ;;
15896   esac
15897
15898 cfgfile="$ofile"
15899
15900   cat <<__EOF__ >> "$cfgfile"
15901 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15902
15903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15904
15905 # Shell to use when invoking shell scripts.
15906 SHELL=$lt_SHELL
15907
15908 # Whether or not to build shared libraries.
15909 build_libtool_libs=$enable_shared
15910
15911 # Whether or not to build static libraries.
15912 build_old_libs=$enable_static
15913
15914 # Whether or not to add -lc for building shared libraries.
15915 build_libtool_need_lc=$archive_cmds_need_lc_F77
15916
15917 # Whether or not to disallow shared libs when runtime libs are static
15918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15919
15920 # Whether or not to optimize for fast installation.
15921 fast_install=$enable_fast_install
15922
15923 # The host system.
15924 host_alias=$host_alias
15925 host=$host
15926 host_os=$host_os
15927
15928 # The build system.
15929 build_alias=$build_alias
15930 build=$build
15931 build_os=$build_os
15932
15933 # An echo program that does not interpret backslashes.
15934 echo=$lt_echo
15935
15936 # The archiver.
15937 AR=$lt_AR
15938 AR_FLAGS=$lt_AR_FLAGS
15939
15940 # A C compiler.
15941 LTCC=$lt_LTCC
15942
15943 # LTCC compiler flags.
15944 LTCFLAGS=$lt_LTCFLAGS
15945
15946 # A language-specific compiler.
15947 CC=$lt_compiler_F77
15948
15949 # Is the compiler the GNU C compiler?
15950 with_gcc=$GCC_F77
15951
15952 # An ERE matcher.
15953 EGREP=$lt_EGREP
15954
15955 # The linker used to build libraries.
15956 LD=$lt_LD_F77
15957
15958 # Whether we need hard or soft links.
15959 LN_S=$lt_LN_S
15960
15961 # A BSD-compatible nm program.
15962 NM=$lt_NM
15963
15964 # A symbol stripping program
15965 STRIP=$lt_STRIP
15966
15967 # Used to examine libraries when file_magic_cmd begins "file"
15968 MAGIC_CMD=$MAGIC_CMD
15969
15970 # Used on cygwin: DLL creation program.
15971 DLLTOOL="$DLLTOOL"
15972
15973 # Used on cygwin: object dumper.
15974 OBJDUMP="$OBJDUMP"
15975
15976 # Used on cygwin: assembler.
15977 AS="$AS"
15978
15979 # The name of the directory that contains temporary libtool files.
15980 objdir=$objdir
15981
15982 # How to create reloadable object files.
15983 reload_flag=$lt_reload_flag
15984 reload_cmds=$lt_reload_cmds
15985
15986 # How to pass a linker flag through the compiler.
15987 wl=$lt_lt_prog_compiler_wl_F77
15988
15989 # Object file suffix (normally "o").
15990 objext="$ac_objext"
15991
15992 # Old archive suffix (normally "a").
15993 libext="$libext"
15994
15995 # Shared library suffix (normally ".so").
15996 shrext_cmds='$shrext_cmds'
15997
15998 # Executable file suffix (normally "").
15999 exeext="$exeext"
16000
16001 # Additional compiler flags for building library objects.
16002 pic_flag=$lt_lt_prog_compiler_pic_F77
16003 pic_mode=$pic_mode
16004
16005 # What is the maximum length of a command?
16006 max_cmd_len=$lt_cv_sys_max_cmd_len
16007
16008 # Does compiler simultaneously support -c and -o options?
16009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16010
16011 # Must we lock files when doing compilation?
16012 need_locks=$lt_need_locks
16013
16014 # Do we need the lib prefix for modules?
16015 need_lib_prefix=$need_lib_prefix
16016
16017 # Do we need a version for libraries?
16018 need_version=$need_version
16019
16020 # Whether dlopen is supported.
16021 dlopen_support=$enable_dlopen
16022
16023 # Whether dlopen of programs is supported.
16024 dlopen_self=$enable_dlopen_self
16025
16026 # Whether dlopen of statically linked programs is supported.
16027 dlopen_self_static=$enable_dlopen_self_static
16028
16029 # Compiler flag to prevent dynamic linking.
16030 link_static_flag=$lt_lt_prog_compiler_static_F77
16031
16032 # Compiler flag to turn off builtin functions.
16033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16034
16035 # Compiler flag to allow reflexive dlopens.
16036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16037
16038 # Compiler flag to generate shared objects directly from archives.
16039 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16040
16041 # Compiler flag to generate thread-safe objects.
16042 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16043
16044 # Library versioning type.
16045 version_type=$version_type
16046
16047 # Format of library name prefix.
16048 libname_spec=$lt_libname_spec
16049
16050 # List of archive names.  First name is the real one, the rest are links.
16051 # The last name is the one that the linker finds with -lNAME.
16052 library_names_spec=$lt_library_names_spec
16053
16054 # The coded name of the library, if different from the real name.
16055 soname_spec=$lt_soname_spec
16056
16057 # Commands used to build and install an old-style archive.
16058 RANLIB=$lt_RANLIB
16059 old_archive_cmds=$lt_old_archive_cmds_F77
16060 old_postinstall_cmds=$lt_old_postinstall_cmds
16061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16062
16063 # Create an old-style archive from a shared archive.
16064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16065
16066 # Create a temporary old-style archive to link instead of a shared archive.
16067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16068
16069 # Commands used to build and install a shared archive.
16070 archive_cmds=$lt_archive_cmds_F77
16071 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16072 postinstall_cmds=$lt_postinstall_cmds
16073 postuninstall_cmds=$lt_postuninstall_cmds
16074
16075 # Commands used to build a loadable module (assumed same as above if empty)
16076 module_cmds=$lt_module_cmds_F77
16077 module_expsym_cmds=$lt_module_expsym_cmds_F77
16078
16079 # Commands to strip libraries.
16080 old_striplib=$lt_old_striplib
16081 striplib=$lt_striplib
16082
16083 # Dependencies to place before the objects being linked to create a
16084 # shared library.
16085 predep_objects=$lt_predep_objects_F77
16086
16087 # Dependencies to place after the objects being linked to create a
16088 # shared library.
16089 postdep_objects=$lt_postdep_objects_F77
16090
16091 # Dependencies to place before the objects being linked to create a
16092 # shared library.
16093 predeps=$lt_predeps_F77
16094
16095 # Dependencies to place after the objects being linked to create a
16096 # shared library.
16097 postdeps=$lt_postdeps_F77
16098
16099 # The directories searched by this compiler when creating a shared
16100 # library
16101 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16102
16103 # The library search path used internally by the compiler when linking
16104 # a shared library.
16105 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16106
16107 # Method to check whether dependent libraries are shared objects.
16108 deplibs_check_method=$lt_deplibs_check_method
16109
16110 # Command to use when deplibs_check_method == file_magic.
16111 file_magic_cmd=$lt_file_magic_cmd
16112
16113 # Flag that allows shared libraries with undefined symbols to be built.
16114 allow_undefined_flag=$lt_allow_undefined_flag_F77
16115
16116 # Flag that forces no undefined symbols.
16117 no_undefined_flag=$lt_no_undefined_flag_F77
16118
16119 # Commands used to finish a libtool library installation in a directory.
16120 finish_cmds=$lt_finish_cmds
16121
16122 # Same as above, but a single script fragment to be evaled but not shown.
16123 finish_eval=$lt_finish_eval
16124
16125 # Take the output of nm and produce a listing of raw symbols and C names.
16126 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16127
16128 # Transform the output of nm in a proper C declaration
16129 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16130
16131 # Transform the output of nm in a C name address pair
16132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16133
16134 # This is the shared library runtime path variable.
16135 runpath_var=$runpath_var
16136
16137 # This is the shared library path variable.
16138 shlibpath_var=$shlibpath_var
16139
16140 # Is shlibpath searched before the hard-coded library search path?
16141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16142
16143 # How to hardcode a shared library path into an executable.
16144 hardcode_action=$hardcode_action_F77
16145
16146 # Whether we should hardcode library paths into libraries.
16147 hardcode_into_libs=$hardcode_into_libs
16148
16149 # Flag to hardcode \$libdir into a binary during linking.
16150 # This must work even if \$libdir does not exist.
16151 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16152
16153 # If ld is used when linking, flag to hardcode \$libdir into
16154 # a binary during linking. This must work even if \$libdir does
16155 # not exist.
16156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16157
16158 # Whether we need a single -rpath flag with a separated argument.
16159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16160
16161 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16162 # resulting binary.
16163 hardcode_direct=$hardcode_direct_F77
16164
16165 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16166 # resulting binary.
16167 hardcode_minus_L=$hardcode_minus_L_F77
16168
16169 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16170 # the resulting binary.
16171 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16172
16173 # Set to yes if building a shared library automatically hardcodes DIR into the library
16174 # and all subsequent libraries and executables linked against it.
16175 hardcode_automatic=$hardcode_automatic_F77
16176
16177 # Variables whose values should be saved in libtool wrapper scripts and
16178 # restored at relink time.
16179 variables_saved_for_relink="$variables_saved_for_relink"
16180
16181 # Whether libtool must link a program against all its dependency libraries.
16182 link_all_deplibs=$link_all_deplibs_F77
16183
16184 # Compile-time system search path for libraries
16185 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16186
16187 # Run-time system search path for libraries
16188 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16189
16190 # Fix the shell variable \$srcfile for the compiler.
16191 fix_srcfile_path=$lt_fix_srcfile_path
16192
16193 # Set to yes if exported symbols are required.
16194 always_export_symbols=$always_export_symbols_F77
16195
16196 # The commands to list exported symbols.
16197 export_symbols_cmds=$lt_export_symbols_cmds_F77
16198
16199 # The commands to extract the exported symbol list from a shared archive.
16200 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16201
16202 # Symbols that should not be listed in the preloaded symbols.
16203 exclude_expsyms=$lt_exclude_expsyms_F77
16204
16205 # Symbols that must always be exported.
16206 include_expsyms=$lt_include_expsyms_F77
16207
16208 # ### END LIBTOOL TAG CONFIG: $tagname
16209
16210 __EOF__
16211
16212
16213 else
16214   # If there is no Makefile yet, we rely on a make rule to execute
16215   # `config.status --recheck' to rerun these tests and create the
16216   # libtool script then.
16217   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16218   if test -f "$ltmain_in"; then
16219     test -f Makefile && make "$ltmain"
16220   fi
16221 fi
16222
16223
16224 ac_ext=c
16225 ac_cpp='$CPP $CPPFLAGS'
16226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16229
16230 CC="$lt_save_CC"
16231
16232         else
16233           tagname=""
16234         fi
16235         ;;
16236
16237       GCJ)
16238         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16239
16240
16241 # Source file extension for Java test sources.
16242 ac_ext=java
16243
16244 # Object file extension for compiled Java test sources.
16245 objext=o
16246 objext_GCJ=$objext
16247
16248 # Code to be used in simple compile tests
16249 lt_simple_compile_test_code="class foo {}"
16250
16251 # Code to be used in simple link tests
16252 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16253
16254 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16255
16256 # If no C compiler was specified, use CC.
16257 LTCC=${LTCC-"$CC"}
16258
16259 # If no C compiler flags were specified, use CFLAGS.
16260 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16261
16262 # Allow CC to be a program name with arguments.
16263 compiler=$CC
16264
16265
16266 # save warnings/boilerplate of simple test code
16267 ac_outfile=conftest.$ac_objext
16268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16270 _lt_compiler_boilerplate=`cat conftest.err`
16271 $rm conftest*
16272
16273 ac_outfile=conftest.$ac_objext
16274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16276 _lt_linker_boilerplate=`cat conftest.err`
16277 $rm -r conftest*
16278
16279
16280 # Allow CC to be a program name with arguments.
16281 lt_save_CC="$CC"
16282 CC=${GCJ-"gcj"}
16283 compiler=$CC
16284 compiler_GCJ=$CC
16285 for cc_temp in $compiler""; do
16286   case $cc_temp in
16287     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16288     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16289     \-*) ;;
16290     *) break;;
16291   esac
16292 done
16293 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16294
16295
16296 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16297 archive_cmds_need_lc_GCJ=no
16298
16299 old_archive_cmds_GCJ=$old_archive_cmds
16300
16301
16302 lt_prog_compiler_no_builtin_flag_GCJ=
16303
16304 if test "$GCC" = yes; then
16305   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16306
16307
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16309 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16310 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16311   $as_echo_n "(cached) " >&6
16312 else
16313   lt_cv_prog_compiler_rtti_exceptions=no
16314   ac_outfile=conftest.$ac_objext
16315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16316    lt_compiler_flag="-fno-rtti -fno-exceptions"
16317    # Insert the option either (1) after the last *FLAGS variable, or
16318    # (2) before a word containing "conftest.", or (3) at the end.
16319    # Note that $ac_compile itself does not contain backslashes and begins
16320    # with a dollar sign (not a hyphen), so the echo should work correctly.
16321    # The option is referenced via a variable to avoid confusing sed.
16322    lt_compile=`echo "$ac_compile" | $SED \
16323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16325    -e 's:$: $lt_compiler_flag:'`
16326    (eval echo "\"\$as_me:16326: $lt_compile\"" >&5)
16327    (eval "$lt_compile" 2>conftest.err)
16328    ac_status=$?
16329    cat conftest.err >&5
16330    echo "$as_me:16330: \$? = $ac_status" >&5
16331    if (exit $ac_status) && test -s "$ac_outfile"; then
16332      # The compiler can only warn and ignore the option if not recognized
16333      # So say no if there are warnings other than the usual output.
16334      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16335      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16336      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16337        lt_cv_prog_compiler_rtti_exceptions=yes
16338      fi
16339    fi
16340    $rm conftest*
16341
16342 fi
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16344 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16345
16346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16347     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16348 else
16349     :
16350 fi
16351
16352 fi
16353
16354 lt_prog_compiler_wl_GCJ=
16355 lt_prog_compiler_pic_GCJ=
16356 lt_prog_compiler_static_GCJ=
16357
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16359 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16360
16361   if test "$GCC" = yes; then
16362     lt_prog_compiler_wl_GCJ='-Wl,'
16363     lt_prog_compiler_static_GCJ='-static'
16364
16365     case $host_os in
16366       aix*)
16367       # All AIX code is PIC.
16368       if test "$host_cpu" = ia64; then
16369         # AIX 5 now supports IA64 processor
16370         lt_prog_compiler_static_GCJ='-Bstatic'
16371       fi
16372       ;;
16373
16374     amigaos*)
16375       # FIXME: we need at least 68020 code to build shared libraries, but
16376       # adding the `-m68020' flag to GCC prevents building anything better,
16377       # like `-m68040'.
16378       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16379       ;;
16380
16381     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16382       # PIC is the default for these OSes.
16383       ;;
16384
16385     mingw* | cygwin* | pw32* | os2*)
16386       # This hack is so that the source file can tell whether it is being
16387       # built for inclusion in a dll (and should export symbols for example).
16388       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16389       # (--disable-auto-import) libraries
16390
16391       ;;
16392
16393     darwin* | rhapsody*)
16394       # PIC is the default on this platform
16395       # Common symbols not allowed in MH_DYLIB files
16396       lt_prog_compiler_pic_GCJ='-fno-common'
16397       ;;
16398
16399     interix[3-9]*)
16400       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16401       # Instead, we relocate shared libraries at runtime.
16402       ;;
16403
16404     msdosdjgpp*)
16405       # Just because we use GCC doesn't mean we suddenly get shared libraries
16406       # on systems that don't support them.
16407       lt_prog_compiler_can_build_shared_GCJ=no
16408       enable_shared=no
16409       ;;
16410
16411     sysv4*MP*)
16412       if test -d /usr/nec; then
16413         lt_prog_compiler_pic_GCJ=-Kconform_pic
16414       fi
16415       ;;
16416
16417     hpux*)
16418       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16419       # not for PA HP-UX.
16420       case $host_cpu in
16421       hppa*64*|ia64*)
16422         # +Z the default
16423         ;;
16424       *)
16425         lt_prog_compiler_pic_GCJ='-fPIC'
16426         ;;
16427       esac
16428       ;;
16429
16430     *)
16431       lt_prog_compiler_pic_GCJ='-fPIC'
16432       ;;
16433     esac
16434   else
16435     # PORTME Check for flag to pass linker flags through the system compiler.
16436     case $host_os in
16437     aix*)
16438       lt_prog_compiler_wl_GCJ='-Wl,'
16439       if test "$host_cpu" = ia64; then
16440         # AIX 5 now supports IA64 processor
16441         lt_prog_compiler_static_GCJ='-Bstatic'
16442       else
16443         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16444       fi
16445       ;;
16446       darwin*)
16447         # PIC is the default on this platform
16448         # Common symbols not allowed in MH_DYLIB files
16449        case $cc_basename in
16450          xlc*)
16451          lt_prog_compiler_pic_GCJ='-qnocommon'
16452          lt_prog_compiler_wl_GCJ='-Wl,'
16453          ;;
16454        esac
16455        ;;
16456
16457     mingw* | cygwin* | pw32* | os2*)
16458       # This hack is so that the source file can tell whether it is being
16459       # built for inclusion in a dll (and should export symbols for example).
16460
16461       ;;
16462
16463     hpux9* | hpux10* | hpux11*)
16464       lt_prog_compiler_wl_GCJ='-Wl,'
16465       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16466       # not for PA HP-UX.
16467       case $host_cpu in
16468       hppa*64*|ia64*)
16469         # +Z the default
16470         ;;
16471       *)
16472         lt_prog_compiler_pic_GCJ='+Z'
16473         ;;
16474       esac
16475       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16476       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16477       ;;
16478
16479     irix5* | irix6* | nonstopux*)
16480       lt_prog_compiler_wl_GCJ='-Wl,'
16481       # PIC (with -KPIC) is the default.
16482       lt_prog_compiler_static_GCJ='-non_shared'
16483       ;;
16484
16485     newsos6)
16486       lt_prog_compiler_pic_GCJ='-KPIC'
16487       lt_prog_compiler_static_GCJ='-Bstatic'
16488       ;;
16489
16490     linux* | k*bsd*-gnu)
16491       case $cc_basename in
16492       icc* | ecc*)
16493         lt_prog_compiler_wl_GCJ='-Wl,'
16494         lt_prog_compiler_pic_GCJ='-KPIC'
16495         lt_prog_compiler_static_GCJ='-static'
16496         ;;
16497       pgcc* | pgf77* | pgf90* | pgf95*)
16498         # Portland Group compilers (*not* the Pentium gcc compiler,
16499         # which looks to be a dead project)
16500         lt_prog_compiler_wl_GCJ='-Wl,'
16501         lt_prog_compiler_pic_GCJ='-fpic'
16502         lt_prog_compiler_static_GCJ='-Bstatic'
16503         ;;
16504       ccc*)
16505         lt_prog_compiler_wl_GCJ='-Wl,'
16506         # All Alpha code is PIC.
16507         lt_prog_compiler_static_GCJ='-non_shared'
16508         ;;
16509       *)
16510         case `$CC -V 2>&1 | sed 5q` in
16511         *Sun\ C*)
16512           # Sun C 5.9
16513           lt_prog_compiler_pic_GCJ='-KPIC'
16514           lt_prog_compiler_static_GCJ='-Bstatic'
16515           lt_prog_compiler_wl_GCJ='-Wl,'
16516           ;;
16517         *Sun\ F*)
16518           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16519           lt_prog_compiler_pic_GCJ='-KPIC'
16520           lt_prog_compiler_static_GCJ='-Bstatic'
16521           lt_prog_compiler_wl_GCJ=''
16522           ;;
16523         esac
16524         ;;
16525       esac
16526       ;;
16527
16528     osf3* | osf4* | osf5*)
16529       lt_prog_compiler_wl_GCJ='-Wl,'
16530       # All OSF/1 code is PIC.
16531       lt_prog_compiler_static_GCJ='-non_shared'
16532       ;;
16533
16534     rdos*)
16535       lt_prog_compiler_static_GCJ='-non_shared'
16536       ;;
16537
16538     solaris*)
16539       lt_prog_compiler_pic_GCJ='-KPIC'
16540       lt_prog_compiler_static_GCJ='-Bstatic'
16541       case $cc_basename in
16542       f77* | f90* | f95*)
16543         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16544       *)
16545         lt_prog_compiler_wl_GCJ='-Wl,';;
16546       esac
16547       ;;
16548
16549     sunos4*)
16550       lt_prog_compiler_wl_GCJ='-Qoption ld '
16551       lt_prog_compiler_pic_GCJ='-PIC'
16552       lt_prog_compiler_static_GCJ='-Bstatic'
16553       ;;
16554
16555     sysv4 | sysv4.2uw2* | sysv4.3*)
16556       lt_prog_compiler_wl_GCJ='-Wl,'
16557       lt_prog_compiler_pic_GCJ='-KPIC'
16558       lt_prog_compiler_static_GCJ='-Bstatic'
16559       ;;
16560
16561     sysv4*MP*)
16562       if test -d /usr/nec ;then
16563         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16564         lt_prog_compiler_static_GCJ='-Bstatic'
16565       fi
16566       ;;
16567
16568     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16569       lt_prog_compiler_wl_GCJ='-Wl,'
16570       lt_prog_compiler_pic_GCJ='-KPIC'
16571       lt_prog_compiler_static_GCJ='-Bstatic'
16572       ;;
16573
16574     unicos*)
16575       lt_prog_compiler_wl_GCJ='-Wl,'
16576       lt_prog_compiler_can_build_shared_GCJ=no
16577       ;;
16578
16579     uts4*)
16580       lt_prog_compiler_pic_GCJ='-pic'
16581       lt_prog_compiler_static_GCJ='-Bstatic'
16582       ;;
16583
16584     *)
16585       lt_prog_compiler_can_build_shared_GCJ=no
16586       ;;
16587     esac
16588   fi
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16591 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16592
16593 #
16594 # Check to make sure the PIC flag actually works.
16595 #
16596 if test -n "$lt_prog_compiler_pic_GCJ"; then
16597
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16599 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16600 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16601   $as_echo_n "(cached) " >&6
16602 else
16603   lt_cv_prog_compiler_pic_works_GCJ=no
16604   ac_outfile=conftest.$ac_objext
16605    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16606    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16607    # Insert the option either (1) after the last *FLAGS variable, or
16608    # (2) before a word containing "conftest.", or (3) at the end.
16609    # Note that $ac_compile itself does not contain backslashes and begins
16610    # with a dollar sign (not a hyphen), so the echo should work correctly.
16611    # The option is referenced via a variable to avoid confusing sed.
16612    lt_compile=`echo "$ac_compile" | $SED \
16613    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16614    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16615    -e 's:$: $lt_compiler_flag:'`
16616    (eval echo "\"\$as_me:16616: $lt_compile\"" >&5)
16617    (eval "$lt_compile" 2>conftest.err)
16618    ac_status=$?
16619    cat conftest.err >&5
16620    echo "$as_me:16620: \$? = $ac_status" >&5
16621    if (exit $ac_status) && test -s "$ac_outfile"; then
16622      # The compiler can only warn and ignore the option if not recognized
16623      # So say no if there are warnings other than the usual output.
16624      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16625      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16626      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16627        lt_cv_prog_compiler_pic_works_GCJ=yes
16628      fi
16629    fi
16630    $rm conftest*
16631
16632 fi
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16634 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16635
16636 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16637     case $lt_prog_compiler_pic_GCJ in
16638      "" | " "*) ;;
16639      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16640      esac
16641 else
16642     lt_prog_compiler_pic_GCJ=
16643      lt_prog_compiler_can_build_shared_GCJ=no
16644 fi
16645
16646 fi
16647 case $host_os in
16648   # For platforms which do not support PIC, -DPIC is meaningless:
16649   *djgpp*)
16650     lt_prog_compiler_pic_GCJ=
16651     ;;
16652   *)
16653     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16654     ;;
16655 esac
16656
16657 #
16658 # Check to make sure the static flag actually works.
16659 #
16660 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16662 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16663 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16664   $as_echo_n "(cached) " >&6
16665 else
16666   lt_cv_prog_compiler_static_works_GCJ=no
16667    save_LDFLAGS="$LDFLAGS"
16668    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16669    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16670    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16671      # The linker can only warn and ignore the option if not recognized
16672      # So say no if there are warnings
16673      if test -s conftest.err; then
16674        # Append any errors to the config.log.
16675        cat conftest.err 1>&5
16676        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16677        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16678        if diff conftest.exp conftest.er2 >/dev/null; then
16679          lt_cv_prog_compiler_static_works_GCJ=yes
16680        fi
16681      else
16682        lt_cv_prog_compiler_static_works_GCJ=yes
16683      fi
16684    fi
16685    $rm -r conftest*
16686    LDFLAGS="$save_LDFLAGS"
16687
16688 fi
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16690 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16691
16692 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16693     :
16694 else
16695     lt_prog_compiler_static_GCJ=
16696 fi
16697
16698
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16700 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16701 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16702   $as_echo_n "(cached) " >&6
16703 else
16704   lt_cv_prog_compiler_c_o_GCJ=no
16705    $rm -r conftest 2>/dev/null
16706    mkdir conftest
16707    cd conftest
16708    mkdir out
16709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16710
16711    lt_compiler_flag="-o out/conftest2.$ac_objext"
16712    # Insert the option either (1) after the last *FLAGS variable, or
16713    # (2) before a word containing "conftest.", or (3) at the end.
16714    # Note that $ac_compile itself does not contain backslashes and begins
16715    # with a dollar sign (not a hyphen), so the echo should work correctly.
16716    lt_compile=`echo "$ac_compile" | $SED \
16717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16719    -e 's:$: $lt_compiler_flag:'`
16720    (eval echo "\"\$as_me:16720: $lt_compile\"" >&5)
16721    (eval "$lt_compile" 2>out/conftest.err)
16722    ac_status=$?
16723    cat out/conftest.err >&5
16724    echo "$as_me:16724: \$? = $ac_status" >&5
16725    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16726    then
16727      # The compiler can only warn and ignore the option if not recognized
16728      # So say no if there are warnings
16729      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16730      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16731      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16732        lt_cv_prog_compiler_c_o_GCJ=yes
16733      fi
16734    fi
16735    chmod u+w . 2>&5
16736    $rm conftest*
16737    # SGI C++ compiler will create directory out/ii_files/ for
16738    # template instantiation
16739    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16740    $rm out/* && rmdir out
16741    cd ..
16742    rmdir conftest
16743    $rm conftest*
16744
16745 fi
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16747 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16748
16749
16750 hard_links="nottested"
16751 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16752   # do not overwrite the value of need_locks provided by the user
16753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16754 $as_echo_n "checking if we can lock with hard links... " >&6; }
16755   hard_links=yes
16756   $rm conftest*
16757   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16758   touch conftest.a
16759   ln conftest.a conftest.b 2>&5 || hard_links=no
16760   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16762 $as_echo "$hard_links" >&6; }
16763   if test "$hard_links" = no; then
16764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16765 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16766     need_locks=warn
16767   fi
16768 else
16769   need_locks=no
16770 fi
16771
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16773 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16774
16775   runpath_var=
16776   allow_undefined_flag_GCJ=
16777   enable_shared_with_static_runtimes_GCJ=no
16778   archive_cmds_GCJ=
16779   archive_expsym_cmds_GCJ=
16780   old_archive_From_new_cmds_GCJ=
16781   old_archive_from_expsyms_cmds_GCJ=
16782   export_dynamic_flag_spec_GCJ=
16783   whole_archive_flag_spec_GCJ=
16784   thread_safe_flag_spec_GCJ=
16785   hardcode_libdir_flag_spec_GCJ=
16786   hardcode_libdir_flag_spec_ld_GCJ=
16787   hardcode_libdir_separator_GCJ=
16788   hardcode_direct_GCJ=no
16789   hardcode_minus_L_GCJ=no
16790   hardcode_shlibpath_var_GCJ=unsupported
16791   link_all_deplibs_GCJ=unknown
16792   hardcode_automatic_GCJ=no
16793   module_cmds_GCJ=
16794   module_expsym_cmds_GCJ=
16795   always_export_symbols_GCJ=no
16796   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16797   # include_expsyms should be a list of space-separated symbols to be *always*
16798   # included in the symbol list
16799   include_expsyms_GCJ=
16800   # exclude_expsyms can be an extended regexp of symbols to exclude
16801   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16802   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16803   # as well as any symbol that contains `d'.
16804   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16805   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16806   # platforms (ab)use it in PIC code, but their linkers get confused if
16807   # the symbol is explicitly referenced.  Since portable code cannot
16808   # rely on this symbol name, it's probably fine to never include it in
16809   # preloaded symbol tables.
16810   # Exclude shared library initialization/finalization symbols.
16811   extract_expsyms_cmds=
16812   # Just being paranoid about ensuring that cc_basename is set.
16813   for cc_temp in $compiler""; do
16814   case $cc_temp in
16815     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16816     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16817     \-*) ;;
16818     *) break;;
16819   esac
16820 done
16821 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16822
16823   case $host_os in
16824   cygwin* | mingw* | pw32*)
16825     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16826     # When not using gcc, we currently assume that we are using
16827     # Microsoft Visual C++.
16828     if test "$GCC" != yes; then
16829       with_gnu_ld=no
16830     fi
16831     ;;
16832   interix*)
16833     # we just hope/assume this is gcc and not c89 (= MSVC++)
16834     with_gnu_ld=yes
16835     ;;
16836   openbsd*)
16837     with_gnu_ld=no
16838     ;;
16839   esac
16840
16841   ld_shlibs_GCJ=yes
16842   if test "$with_gnu_ld" = yes; then
16843     # If archive_cmds runs LD, not CC, wlarc should be empty
16844     wlarc='${wl}'
16845
16846     # Set some defaults for GNU ld with shared library support. These
16847     # are reset later if shared libraries are not supported. Putting them
16848     # here allows them to be overridden if necessary.
16849     runpath_var=LD_RUN_PATH
16850     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16851     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16852     # ancient GNU ld didn't support --whole-archive et. al.
16853     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16854         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16855       else
16856         whole_archive_flag_spec_GCJ=
16857     fi
16858     supports_anon_versioning=no
16859     case `$LD -v 2>/dev/null` in
16860       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16861       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16862       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16863       *\ 2.11.*) ;; # other 2.11 versions
16864       *) supports_anon_versioning=yes ;;
16865     esac
16866
16867     # See if GNU ld supports shared libraries.
16868     case $host_os in
16869     aix[3-9]*)
16870       # On AIX/PPC, the GNU linker is very broken
16871       if test "$host_cpu" != ia64; then
16872         ld_shlibs_GCJ=no
16873         cat <<EOF 1>&2
16874
16875 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16876 *** to be unable to reliably create shared libraries on AIX.
16877 *** Therefore, libtool is disabling shared libraries support.  If you
16878 *** really care for shared libraries, you may want to modify your PATH
16879 *** so that a non-GNU linker is found, and then restart.
16880
16881 EOF
16882       fi
16883       ;;
16884
16885     amigaos*)
16886       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)'
16887       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16888       hardcode_minus_L_GCJ=yes
16889
16890       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16891       # that the semantics of dynamic libraries on AmigaOS, at least up
16892       # to version 4, is to share data among multiple programs linked
16893       # with the same dynamic library.  Since this doesn't match the
16894       # behavior of shared libraries on other platforms, we can't use
16895       # them.
16896       ld_shlibs_GCJ=no
16897       ;;
16898
16899     beos*)
16900       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16901         allow_undefined_flag_GCJ=unsupported
16902         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16903         # support --undefined.  This deserves some investigation.  FIXME
16904         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16905       else
16906         ld_shlibs_GCJ=no
16907       fi
16908       ;;
16909
16910     cygwin* | mingw* | pw32*)
16911       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16912       # as there is no search path for DLLs.
16913       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16914       allow_undefined_flag_GCJ=unsupported
16915       always_export_symbols_GCJ=no
16916       enable_shared_with_static_runtimes_GCJ=yes
16917       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16918
16919       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16920         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16921         # If the export-symbols file already is a .def file (1st line
16922         # is EXPORTS), use it as is; otherwise, prepend...
16923         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16924           cp $export_symbols $output_objdir/$soname.def;
16925         else
16926           echo EXPORTS > $output_objdir/$soname.def;
16927           cat $export_symbols >> $output_objdir/$soname.def;
16928         fi~
16929         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16930       else
16931         ld_shlibs_GCJ=no
16932       fi
16933       ;;
16934
16935     interix[3-9]*)
16936       hardcode_direct_GCJ=no
16937       hardcode_shlibpath_var_GCJ=no
16938       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16939       export_dynamic_flag_spec_GCJ='${wl}-E'
16940       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16941       # Instead, shared libraries are loaded at an image base (0x10000000 by
16942       # default) and relocated if they conflict, which is a slow very memory
16943       # consuming and fragmenting process.  To avoid this, we pick a random,
16944       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16945       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16946       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'
16947       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'
16948       ;;
16949
16950     gnu* | linux* | k*bsd*-gnu)
16951       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16952         tmp_addflag=
16953         case $cc_basename,$host_cpu in
16954         pgcc*)                          # Portland Group C compiler
16955           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'
16956           tmp_addflag=' $pic_flag'
16957           ;;
16958         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16959           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'
16960           tmp_addflag=' $pic_flag -Mnomain' ;;
16961         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16962           tmp_addflag=' -i_dynamic' ;;
16963         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16964           tmp_addflag=' -i_dynamic -nofor_main' ;;
16965         ifc* | ifort*)                  # Intel Fortran compiler
16966           tmp_addflag=' -nofor_main' ;;
16967         esac
16968         case `$CC -V 2>&1 | sed 5q` in
16969         *Sun\ C*)                       # Sun C 5.9
16970           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'
16971           tmp_sharedflag='-G' ;;
16972         *Sun\ F*)                       # Sun Fortran 8.3
16973           tmp_sharedflag='-G' ;;
16974         *)
16975           tmp_sharedflag='-shared' ;;
16976         esac
16977         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16978
16979         if test $supports_anon_versioning = yes; then
16980           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16981   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16982   $echo "local: *; };" >> $output_objdir/$libname.ver~
16983           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16984         fi
16985         link_all_deplibs_GCJ=no
16986       else
16987         ld_shlibs_GCJ=no
16988       fi
16989       ;;
16990
16991     netbsd* | netbsdelf*-gnu)
16992       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16993         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16994         wlarc=
16995       else
16996         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16997         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16998       fi
16999       ;;
17000
17001     solaris*)
17002       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17003         ld_shlibs_GCJ=no
17004         cat <<EOF 1>&2
17005
17006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17007 *** create shared libraries on Solaris systems.  Therefore, libtool
17008 *** is disabling shared libraries support.  We urge you to upgrade GNU
17009 *** binutils to release 2.9.1 or newer.  Another option is to modify
17010 *** your PATH or compiler configuration so that the native linker is
17011 *** used, and then restart.
17012
17013 EOF
17014       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17015         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17017       else
17018         ld_shlibs_GCJ=no
17019       fi
17020       ;;
17021
17022     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17023       case `$LD -v 2>&1` in
17024         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17025         ld_shlibs_GCJ=no
17026         cat <<_LT_EOF 1>&2
17027
17028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17029 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17030 *** is disabling shared libraries support.  We urge you to upgrade GNU
17031 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17032 *** your PATH or compiler configuration so that the native linker is
17033 *** used, and then restart.
17034
17035 _LT_EOF
17036         ;;
17037         *)
17038           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17039             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17040             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17041             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17042           else
17043             ld_shlibs_GCJ=no
17044           fi
17045         ;;
17046       esac
17047       ;;
17048
17049     sunos4*)
17050       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17051       wlarc=
17052       hardcode_direct_GCJ=yes
17053       hardcode_shlibpath_var_GCJ=no
17054       ;;
17055
17056     *)
17057       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17058         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17059         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17060       else
17061         ld_shlibs_GCJ=no
17062       fi
17063       ;;
17064     esac
17065
17066     if test "$ld_shlibs_GCJ" = no; then
17067       runpath_var=
17068       hardcode_libdir_flag_spec_GCJ=
17069       export_dynamic_flag_spec_GCJ=
17070       whole_archive_flag_spec_GCJ=
17071     fi
17072   else
17073     # PORTME fill in a description of your system's linker (not GNU ld)
17074     case $host_os in
17075     aix3*)
17076       allow_undefined_flag_GCJ=unsupported
17077       always_export_symbols_GCJ=yes
17078       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'
17079       # Note: this linker hardcodes the directories in LIBPATH if there
17080       # are no directories specified by -L.
17081       hardcode_minus_L_GCJ=yes
17082       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17083         # Neither direct hardcoding nor static linking is supported with a
17084         # broken collect2.
17085         hardcode_direct_GCJ=unsupported
17086       fi
17087       ;;
17088
17089     aix[4-9]*)
17090       if test "$host_cpu" = ia64; then
17091         # On IA64, the linker does run time linking by default, so we don't
17092         # have to do anything special.
17093         aix_use_runtimelinking=no
17094         exp_sym_flag='-Bexport'
17095         no_entry_flag=""
17096       else
17097         # If we're using GNU nm, then we don't want the "-C" option.
17098         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17099         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17100           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'
17101         else
17102           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'
17103         fi
17104         aix_use_runtimelinking=no
17105
17106         # Test if we are trying to use run time linking or normal
17107         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17108         # need to do runtime linking.
17109         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17110           for ld_flag in $LDFLAGS; do
17111           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17112             aix_use_runtimelinking=yes
17113             break
17114           fi
17115           done
17116           ;;
17117         esac
17118
17119         exp_sym_flag='-bexport'
17120         no_entry_flag='-bnoentry'
17121       fi
17122
17123       # When large executables or shared objects are built, AIX ld can
17124       # have problems creating the table of contents.  If linking a library
17125       # or program results in "error TOC overflow" add -mminimal-toc to
17126       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17127       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17128
17129       archive_cmds_GCJ=''
17130       hardcode_direct_GCJ=yes
17131       hardcode_libdir_separator_GCJ=':'
17132       link_all_deplibs_GCJ=yes
17133
17134       if test "$GCC" = yes; then
17135         case $host_os in aix4.[012]|aix4.[012].*)
17136         # We only want to do this on AIX 4.2 and lower, the check
17137         # below for broken collect2 doesn't work under 4.3+
17138           collect2name=`${CC} -print-prog-name=collect2`
17139           if test -f "$collect2name" && \
17140            strings "$collect2name" | grep resolve_lib_name >/dev/null
17141           then
17142           # We have reworked collect2
17143           :
17144           else
17145           # We have old collect2
17146           hardcode_direct_GCJ=unsupported
17147           # It fails to find uninstalled libraries when the uninstalled
17148           # path is not listed in the libpath.  Setting hardcode_minus_L
17149           # to unsupported forces relinking
17150           hardcode_minus_L_GCJ=yes
17151           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17152           hardcode_libdir_separator_GCJ=
17153           fi
17154           ;;
17155         esac
17156         shared_flag='-shared'
17157         if test "$aix_use_runtimelinking" = yes; then
17158           shared_flag="$shared_flag "'${wl}-G'
17159         fi
17160       else
17161         # not using gcc
17162         if test "$host_cpu" = ia64; then
17163         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17164         # chokes on -Wl,-G. The following line is correct:
17165           shared_flag='-G'
17166         else
17167           if test "$aix_use_runtimelinking" = yes; then
17168             shared_flag='${wl}-G'
17169           else
17170             shared_flag='${wl}-bM:SRE'
17171           fi
17172         fi
17173       fi
17174
17175       # It seems that -bexpall does not export symbols beginning with
17176       # underscore (_), so it is better to generate a list of symbols to export.
17177       always_export_symbols_GCJ=yes
17178       if test "$aix_use_runtimelinking" = yes; then
17179         # Warning - without using the other runtime loading flags (-brtl),
17180         # -berok will link without error, but may produce a broken library.
17181         allow_undefined_flag_GCJ='-berok'
17182        # Determine the default libpath from the value encoded in an empty executable.
17183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h.  */
17185
17186 int
17187 main ()
17188 {
17189
17190   ;
17191   return 0;
17192 }
17193 _ACEOF
17194 if ac_fn_c_try_link "$LINENO"; then :
17195
17196 lt_aix_libpath_sed='
17197     /Import File Strings/,/^$/ {
17198         /^0/ {
17199             s/^0  *\(.*\)$/\1/
17200             p
17201         }
17202     }'
17203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17204 # Check for a 64-bit object if we didn't find anything.
17205 if test -z "$aix_libpath"; then
17206   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17207 fi
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext \
17210     conftest$ac_exeext conftest.$ac_ext
17211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17212
17213        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17214         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"
17215        else
17216         if test "$host_cpu" = ia64; then
17217           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17218           allow_undefined_flag_GCJ="-z nodefs"
17219           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"
17220         else
17221          # Determine the default libpath from the value encoded in an empty executable.
17222          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h.  */
17224
17225 int
17226 main ()
17227 {
17228
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 if ac_fn_c_try_link "$LINENO"; then :
17234
17235 lt_aix_libpath_sed='
17236     /Import File Strings/,/^$/ {
17237         /^0/ {
17238             s/^0  *\(.*\)$/\1/
17239             p
17240         }
17241     }'
17242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17243 # Check for a 64-bit object if we didn't find anything.
17244 if test -z "$aix_libpath"; then
17245   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17246 fi
17247 fi
17248 rm -f core conftest.err conftest.$ac_objext \
17249     conftest$ac_exeext conftest.$ac_ext
17250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17251
17252          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17253           # Warning - without using the other run time loading flags,
17254           # -berok will link without error, but may produce a broken library.
17255           no_undefined_flag_GCJ=' ${wl}-bernotok'
17256           allow_undefined_flag_GCJ=' ${wl}-berok'
17257           # Exported symbols can be pulled into shared objects from archives
17258           whole_archive_flag_spec_GCJ='$convenience'
17259           archive_cmds_need_lc_GCJ=yes
17260           # This is similar to how AIX traditionally builds its shared libraries.
17261           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'
17262         fi
17263       fi
17264       ;;
17265
17266     amigaos*)
17267       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)'
17268       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17269       hardcode_minus_L_GCJ=yes
17270       # see comment about different semantics on the GNU ld section
17271       ld_shlibs_GCJ=no
17272       ;;
17273
17274     bsdi[45]*)
17275       export_dynamic_flag_spec_GCJ=-rdynamic
17276       ;;
17277
17278     cygwin* | mingw* | pw32*)
17279       # When not using gcc, we currently assume that we are using
17280       # Microsoft Visual C++.
17281       # hardcode_libdir_flag_spec is actually meaningless, as there is
17282       # no search path for DLLs.
17283       hardcode_libdir_flag_spec_GCJ=' '
17284       allow_undefined_flag_GCJ=unsupported
17285       # Tell ltmain to make .lib files, not .a files.
17286       libext=lib
17287       # Tell ltmain to make .dll files, not .so files.
17288       shrext_cmds=".dll"
17289       # FIXME: Setting linknames here is a bad hack.
17290       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17291       # The linker will automatically build a .lib file if we build a DLL.
17292       old_archive_From_new_cmds_GCJ='true'
17293       # FIXME: Should let the user specify the lib program.
17294       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17295       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17296       enable_shared_with_static_runtimes_GCJ=yes
17297       ;;
17298
17299     darwin* | rhapsody*)
17300       case $host_os in
17301         rhapsody* | darwin1.[012])
17302          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17303          ;;
17304        *) # Darwin 1.3 on
17305          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17306            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17307          else
17308            case ${MACOSX_DEPLOYMENT_TARGET} in
17309              10.[012])
17310                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17311                ;;
17312              10.*)
17313                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17314                ;;
17315            esac
17316          fi
17317          ;;
17318       esac
17319       archive_cmds_need_lc_GCJ=no
17320       hardcode_direct_GCJ=no
17321       hardcode_automatic_GCJ=yes
17322       hardcode_shlibpath_var_GCJ=unsupported
17323       whole_archive_flag_spec_GCJ=''
17324       link_all_deplibs_GCJ=yes
17325     if test "$GCC" = yes ; then
17326         output_verbose_link_cmd='echo'
17327         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}"
17328         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17329         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}"
17330         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}"
17331     else
17332       case $cc_basename in
17333         xlc*)
17334          output_verbose_link_cmd='echo'
17335          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17336          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17337           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17338          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}'
17339           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}'
17340           ;;
17341        *)
17342          ld_shlibs_GCJ=no
17343           ;;
17344       esac
17345     fi
17346       ;;
17347
17348     dgux*)
17349       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17350       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17351       hardcode_shlibpath_var_GCJ=no
17352       ;;
17353
17354     freebsd1*)
17355       ld_shlibs_GCJ=no
17356       ;;
17357
17358     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17359     # support.  Future versions do this automatically, but an explicit c++rt0.o
17360     # does not break anything, and helps significantly (at the cost of a little
17361     # extra space).
17362     freebsd2.2*)
17363       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17364       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17365       hardcode_direct_GCJ=yes
17366       hardcode_shlibpath_var_GCJ=no
17367       ;;
17368
17369     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17370     freebsd2*)
17371       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17372       hardcode_direct_GCJ=yes
17373       hardcode_minus_L_GCJ=yes
17374       hardcode_shlibpath_var_GCJ=no
17375       ;;
17376
17377     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17378     freebsd* | dragonfly*)
17379       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17380       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17381       hardcode_direct_GCJ=yes
17382       hardcode_shlibpath_var_GCJ=no
17383       ;;
17384
17385     hpux9*)
17386       if test "$GCC" = yes; then
17387         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'
17388       else
17389         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'
17390       fi
17391       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17392       hardcode_libdir_separator_GCJ=:
17393       hardcode_direct_GCJ=yes
17394
17395       # hardcode_minus_L: Not really in the search PATH,
17396       # but as the default location of the library.
17397       hardcode_minus_L_GCJ=yes
17398       export_dynamic_flag_spec_GCJ='${wl}-E'
17399       ;;
17400
17401     hpux10*)
17402       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17403         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17404       else
17405         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17406       fi
17407       if test "$with_gnu_ld" = no; then
17408         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17409         hardcode_libdir_separator_GCJ=:
17410
17411         hardcode_direct_GCJ=yes
17412         export_dynamic_flag_spec_GCJ='${wl}-E'
17413
17414         # hardcode_minus_L: Not really in the search PATH,
17415         # but as the default location of the library.
17416         hardcode_minus_L_GCJ=yes
17417       fi
17418       ;;
17419
17420     hpux11*)
17421       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17422         case $host_cpu in
17423         hppa*64*)
17424           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17425           ;;
17426         ia64*)
17427           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17428           ;;
17429         *)
17430           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17431           ;;
17432         esac
17433       else
17434         case $host_cpu in
17435         hppa*64*)
17436           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17437           ;;
17438         ia64*)
17439           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17440           ;;
17441         *)
17442           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17443           ;;
17444         esac
17445       fi
17446       if test "$with_gnu_ld" = no; then
17447         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17448         hardcode_libdir_separator_GCJ=:
17449
17450         case $host_cpu in
17451         hppa*64*|ia64*)
17452           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17453           hardcode_direct_GCJ=no
17454           hardcode_shlibpath_var_GCJ=no
17455           ;;
17456         *)
17457           hardcode_direct_GCJ=yes
17458           export_dynamic_flag_spec_GCJ='${wl}-E'
17459
17460           # hardcode_minus_L: Not really in the search PATH,
17461           # but as the default location of the library.
17462           hardcode_minus_L_GCJ=yes
17463           ;;
17464         esac
17465       fi
17466       ;;
17467
17468     irix5* | irix6* | nonstopux*)
17469       if test "$GCC" = yes; then
17470         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'
17471       else
17472         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'
17473         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17474       fi
17475       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17476       hardcode_libdir_separator_GCJ=:
17477       link_all_deplibs_GCJ=yes
17478       ;;
17479
17480     netbsd* | netbsdelf*-gnu)
17481       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17482         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17483       else
17484         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17485       fi
17486       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17487       hardcode_direct_GCJ=yes
17488       hardcode_shlibpath_var_GCJ=no
17489       ;;
17490
17491     newsos6)
17492       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493       hardcode_direct_GCJ=yes
17494       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17495       hardcode_libdir_separator_GCJ=:
17496       hardcode_shlibpath_var_GCJ=no
17497       ;;
17498
17499     openbsd*)
17500       if test -f /usr/libexec/ld.so; then
17501         hardcode_direct_GCJ=yes
17502         hardcode_shlibpath_var_GCJ=no
17503         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17504           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17505           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17506           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17507           export_dynamic_flag_spec_GCJ='${wl}-E'
17508         else
17509           case $host_os in
17510            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17511              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17512              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17513              ;;
17514            *)
17515              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17516              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17517              ;;
17518           esac
17519         fi
17520       else
17521         ld_shlibs_GCJ=no
17522       fi
17523       ;;
17524
17525     os2*)
17526       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17527       hardcode_minus_L_GCJ=yes
17528       allow_undefined_flag_GCJ=unsupported
17529       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'
17530       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17531       ;;
17532
17533     osf3*)
17534       if test "$GCC" = yes; then
17535         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17536         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'
17537       else
17538         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17539         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'
17540       fi
17541       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17542       hardcode_libdir_separator_GCJ=:
17543       ;;
17544
17545     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17546       if test "$GCC" = yes; then
17547         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17548         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'
17549         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17550       else
17551         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17552         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'
17553         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~
17554         $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'
17555
17556         # Both c and cxx compiler support -rpath directly
17557         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17558       fi
17559       hardcode_libdir_separator_GCJ=:
17560       ;;
17561
17562     solaris*)
17563       no_undefined_flag_GCJ=' -z text'
17564       if test "$GCC" = yes; then
17565         wlarc='${wl}'
17566         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17567         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17568           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17569       else
17570         wlarc=''
17571         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17572         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17573         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17574       fi
17575       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17576       hardcode_shlibpath_var_GCJ=no
17577       case $host_os in
17578       solaris2.[0-5] | solaris2.[0-5].*) ;;
17579       *)
17580         # The compiler driver will combine and reorder linker options,
17581         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17582         # but is careful enough not to reorder.
17583         # Supported since Solaris 2.6 (maybe 2.5.1?)
17584         if test "$GCC" = yes; then
17585           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17586         else
17587           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17588         fi
17589         ;;
17590       esac
17591       link_all_deplibs_GCJ=yes
17592       ;;
17593
17594     sunos4*)
17595       if test "x$host_vendor" = xsequent; then
17596         # Use $CC to link under sequent, because it throws in some extra .o
17597         # files that make .init and .fini sections work.
17598         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17599       else
17600         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17601       fi
17602       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17603       hardcode_direct_GCJ=yes
17604       hardcode_minus_L_GCJ=yes
17605       hardcode_shlibpath_var_GCJ=no
17606       ;;
17607
17608     sysv4)
17609       case $host_vendor in
17610         sni)
17611           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17612           hardcode_direct_GCJ=yes # is this really true???
17613         ;;
17614         siemens)
17615           ## LD is ld it makes a PLAMLIB
17616           ## CC just makes a GrossModule.
17617           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17618           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17619           hardcode_direct_GCJ=no
17620         ;;
17621         motorola)
17622           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17623           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17624         ;;
17625       esac
17626       runpath_var='LD_RUN_PATH'
17627       hardcode_shlibpath_var_GCJ=no
17628       ;;
17629
17630     sysv4.3*)
17631       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632       hardcode_shlibpath_var_GCJ=no
17633       export_dynamic_flag_spec_GCJ='-Bexport'
17634       ;;
17635
17636     sysv4*MP*)
17637       if test -d /usr/nec; then
17638         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17639         hardcode_shlibpath_var_GCJ=no
17640         runpath_var=LD_RUN_PATH
17641         hardcode_runpath_var=yes
17642         ld_shlibs_GCJ=yes
17643       fi
17644       ;;
17645
17646     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17647       no_undefined_flag_GCJ='${wl}-z,text'
17648       archive_cmds_need_lc_GCJ=no
17649       hardcode_shlibpath_var_GCJ=no
17650       runpath_var='LD_RUN_PATH'
17651
17652       if test "$GCC" = yes; then
17653         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17654         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17655       else
17656         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17657         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17658       fi
17659       ;;
17660
17661     sysv5* | sco3.2v5* | sco5v6*)
17662       # Note: We can NOT use -z defs as we might desire, because we do not
17663       # link with -lc, and that would cause any symbols used from libc to
17664       # always be unresolved, which means just about no library would
17665       # ever link correctly.  If we're not using GNU ld we use -z text
17666       # though, which does catch some bad symbols but isn't as heavy-handed
17667       # as -z defs.
17668       no_undefined_flag_GCJ='${wl}-z,text'
17669       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17670       archive_cmds_need_lc_GCJ=no
17671       hardcode_shlibpath_var_GCJ=no
17672       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17673       hardcode_libdir_separator_GCJ=':'
17674       link_all_deplibs_GCJ=yes
17675       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17676       runpath_var='LD_RUN_PATH'
17677
17678       if test "$GCC" = yes; then
17679         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17680         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17681       else
17682         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17683         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684       fi
17685       ;;
17686
17687     uts4*)
17688       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17689       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17690       hardcode_shlibpath_var_GCJ=no
17691       ;;
17692
17693     *)
17694       ld_shlibs_GCJ=no
17695       ;;
17696     esac
17697   fi
17698
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17700 $as_echo "$ld_shlibs_GCJ" >&6; }
17701 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17702
17703 #
17704 # Do we need to explicitly link libc?
17705 #
17706 case "x$archive_cmds_need_lc_GCJ" in
17707 x|xyes)
17708   # Assume -lc should be added
17709   archive_cmds_need_lc_GCJ=yes
17710
17711   if test "$enable_shared" = yes && test "$GCC" = yes; then
17712     case $archive_cmds_GCJ in
17713     *'~'*)
17714       # FIXME: we may have to deal with multi-command sequences.
17715       ;;
17716     '$CC '*)
17717       # Test whether the compiler implicitly links with -lc since on some
17718       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17719       # to ld, don't add -lc before -lgcc.
17720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17721 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17722       $rm conftest*
17723       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17724
17725       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17726   (eval $ac_compile) 2>&5
17727   ac_status=$?
17728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17729   test $ac_status = 0; } 2>conftest.err; then
17730         soname=conftest
17731         lib=conftest
17732         libobjs=conftest.$ac_objext
17733         deplibs=
17734         wl=$lt_prog_compiler_wl_GCJ
17735         pic_flag=$lt_prog_compiler_pic_GCJ
17736         compiler_flags=-v
17737         linker_flags=-v
17738         verstring=
17739         output_objdir=.
17740         libname=conftest
17741         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17742         allow_undefined_flag_GCJ=
17743         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17744   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17745   ac_status=$?
17746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17747   test $ac_status = 0; }
17748         then
17749           archive_cmds_need_lc_GCJ=no
17750         else
17751           archive_cmds_need_lc_GCJ=yes
17752         fi
17753         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17754       else
17755         cat conftest.err 1>&5
17756       fi
17757       $rm conftest*
17758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17759 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17760       ;;
17761     esac
17762   fi
17763   ;;
17764 esac
17765
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17767 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17768 library_names_spec=
17769 libname_spec='lib$name'
17770 soname_spec=
17771 shrext_cmds=".so"
17772 postinstall_cmds=
17773 postuninstall_cmds=
17774 finish_cmds=
17775 finish_eval=
17776 shlibpath_var=
17777 shlibpath_overrides_runpath=unknown
17778 version_type=none
17779 dynamic_linker="$host_os ld.so"
17780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17781
17782 need_lib_prefix=unknown
17783 hardcode_into_libs=no
17784
17785 # when you set need_version to no, make sure it does not cause -set_version
17786 # flags to be left without arguments
17787 need_version=unknown
17788
17789 case $host_os in
17790 aix3*)
17791   version_type=linux
17792   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17793   shlibpath_var=LIBPATH
17794
17795   # AIX 3 has no versioning support, so we append a major version to the name.
17796   soname_spec='${libname}${release}${shared_ext}$major'
17797   ;;
17798
17799 aix[4-9]*)
17800   version_type=linux
17801   need_lib_prefix=no
17802   need_version=no
17803   hardcode_into_libs=yes
17804   if test "$host_cpu" = ia64; then
17805     # AIX 5 supports IA64
17806     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17807     shlibpath_var=LD_LIBRARY_PATH
17808   else
17809     # With GCC up to 2.95.x, collect2 would create an import file
17810     # for dependence libraries.  The import file would start with
17811     # the line `#! .'.  This would cause the generated library to
17812     # depend on `.', always an invalid library.  This was fixed in
17813     # development snapshots of GCC prior to 3.0.
17814     case $host_os in
17815       aix4 | aix4.[01] | aix4.[01].*)
17816       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17817            echo ' yes '
17818            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17819         :
17820       else
17821         can_build_shared=no
17822       fi
17823       ;;
17824     esac
17825     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17826     # soname into executable. Probably we can add versioning support to
17827     # collect2, so additional links can be useful in future.
17828     if test "$aix_use_runtimelinking" = yes; then
17829       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17830       # instead of lib<name>.a to let people know that these are not
17831       # typical AIX shared libraries.
17832       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833     else
17834       # We preserve .a as extension for shared libraries through AIX4.2
17835       # and later when we are not doing run time linking.
17836       library_names_spec='${libname}${release}.a $libname.a'
17837       soname_spec='${libname}${release}${shared_ext}$major'
17838     fi
17839     shlibpath_var=LIBPATH
17840   fi
17841   ;;
17842
17843 amigaos*)
17844   library_names_spec='$libname.ixlibrary $libname.a'
17845   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17846   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'
17847   ;;
17848
17849 beos*)
17850   library_names_spec='${libname}${shared_ext}'
17851   dynamic_linker="$host_os ld.so"
17852   shlibpath_var=LIBRARY_PATH
17853   ;;
17854
17855 bsdi[45]*)
17856   version_type=linux
17857   need_version=no
17858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859   soname_spec='${libname}${release}${shared_ext}$major'
17860   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17861   shlibpath_var=LD_LIBRARY_PATH
17862   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17863   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17864   # the default ld.so.conf also contains /usr/contrib/lib and
17865   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17866   # libtool to hard-code these into programs
17867   ;;
17868
17869 cygwin* | mingw* | pw32*)
17870   version_type=windows
17871   shrext_cmds=".dll"
17872   need_version=no
17873   need_lib_prefix=no
17874
17875   case $GCC,$host_os in
17876   yes,cygwin* | yes,mingw* | yes,pw32*)
17877     library_names_spec='$libname.dll.a'
17878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17879     postinstall_cmds='base_file=`basename \${file}`~
17880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17881       dldir=$destdir/`dirname \$dlpath`~
17882       test -d \$dldir || mkdir -p \$dldir~
17883       $install_prog $dir/$dlname \$dldir/$dlname~
17884       chmod a+x \$dldir/$dlname'
17885     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17886       dlpath=$dir/\$dldll~
17887        $rm \$dlpath'
17888     shlibpath_overrides_runpath=yes
17889
17890     case $host_os in
17891     cygwin*)
17892       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17893       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17894       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17895       ;;
17896     mingw*)
17897       # MinGW DLLs use traditional 'lib' prefix
17898       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17899       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17900       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17901         # It is most probably a Windows format PATH printed by
17902         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17903         # path with ; separators, and with drive letters. We can handle the
17904         # drive letters (cygwin fileutils understands them), so leave them,
17905         # especially as we might pass files found there to a mingw objdump,
17906         # which wouldn't understand a cygwinified path. Ahh.
17907         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17908       else
17909         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17910       fi
17911       ;;
17912     pw32*)
17913       # pw32 DLLs use 'pw' prefix rather than 'lib'
17914       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17915       ;;
17916     esac
17917     ;;
17918
17919   *)
17920     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17921     ;;
17922   esac
17923   dynamic_linker='Win32 ld.exe'
17924   # FIXME: first we should search . and the directory the executable is in
17925   shlibpath_var=PATH
17926   ;;
17927
17928 darwin* | rhapsody*)
17929   dynamic_linker="$host_os dyld"
17930   version_type=darwin
17931   need_lib_prefix=no
17932   need_version=no
17933   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17934   soname_spec='${libname}${release}${major}$shared_ext'
17935   shlibpath_overrides_runpath=yes
17936   shlibpath_var=DYLD_LIBRARY_PATH
17937   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17938
17939   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17940   ;;
17941
17942 dgux*)
17943   version_type=linux
17944   need_lib_prefix=no
17945   need_version=no
17946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17947   soname_spec='${libname}${release}${shared_ext}$major'
17948   shlibpath_var=LD_LIBRARY_PATH
17949   ;;
17950
17951 freebsd1*)
17952   dynamic_linker=no
17953   ;;
17954
17955 freebsd* | dragonfly*)
17956   # DragonFly does not have aout.  When/if they implement a new
17957   # versioning mechanism, adjust this.
17958   if test -x /usr/bin/objformat; then
17959     objformat=`/usr/bin/objformat`
17960   else
17961     case $host_os in
17962     freebsd[123]*) objformat=aout ;;
17963     *) objformat=elf ;;
17964     esac
17965   fi
17966   version_type=freebsd-$objformat
17967   case $version_type in
17968     freebsd-elf*)
17969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17970       need_version=no
17971       need_lib_prefix=no
17972       ;;
17973     freebsd-*)
17974       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17975       need_version=yes
17976       ;;
17977   esac
17978   shlibpath_var=LD_LIBRARY_PATH
17979   case $host_os in
17980   freebsd2*)
17981     shlibpath_overrides_runpath=yes
17982     ;;
17983   freebsd3.[01]* | freebsdelf3.[01]*)
17984     shlibpath_overrides_runpath=yes
17985     hardcode_into_libs=yes
17986     ;;
17987   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17988   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17989     shlibpath_overrides_runpath=no
17990     hardcode_into_libs=yes
17991     ;;
17992   *) # from 4.6 on, and DragonFly
17993     shlibpath_overrides_runpath=yes
17994     hardcode_into_libs=yes
17995     ;;
17996   esac
17997   ;;
17998
17999 gnu*)
18000   version_type=linux
18001   need_lib_prefix=no
18002   need_version=no
18003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18004   soname_spec='${libname}${release}${shared_ext}$major'
18005   shlibpath_var=LD_LIBRARY_PATH
18006   hardcode_into_libs=yes
18007   ;;
18008
18009 hpux9* | hpux10* | hpux11*)
18010   # Give a soname corresponding to the major version so that dld.sl refuses to
18011   # link against other versions.
18012   version_type=sunos
18013   need_lib_prefix=no
18014   need_version=no
18015   case $host_cpu in
18016   ia64*)
18017     shrext_cmds='.so'
18018     hardcode_into_libs=yes
18019     dynamic_linker="$host_os dld.so"
18020     shlibpath_var=LD_LIBRARY_PATH
18021     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023     soname_spec='${libname}${release}${shared_ext}$major'
18024     if test "X$HPUX_IA64_MODE" = X32; then
18025       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18026     else
18027       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18028     fi
18029     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18030     ;;
18031    hppa*64*)
18032      shrext_cmds='.sl'
18033      hardcode_into_libs=yes
18034      dynamic_linker="$host_os dld.sl"
18035      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18036      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18037      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038      soname_spec='${libname}${release}${shared_ext}$major'
18039      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18040      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18041      ;;
18042    *)
18043     shrext_cmds='.sl'
18044     dynamic_linker="$host_os dld.sl"
18045     shlibpath_var=SHLIB_PATH
18046     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048     soname_spec='${libname}${release}${shared_ext}$major'
18049     ;;
18050   esac
18051   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18052   postinstall_cmds='chmod 555 $lib'
18053   ;;
18054
18055 interix[3-9]*)
18056   version_type=linux
18057   need_lib_prefix=no
18058   need_version=no
18059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18060   soname_spec='${libname}${release}${shared_ext}$major'
18061   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18062   shlibpath_var=LD_LIBRARY_PATH
18063   shlibpath_overrides_runpath=no
18064   hardcode_into_libs=yes
18065   ;;
18066
18067 irix5* | irix6* | nonstopux*)
18068   case $host_os in
18069     nonstopux*) version_type=nonstopux ;;
18070     *)
18071         if test "$lt_cv_prog_gnu_ld" = yes; then
18072                 version_type=linux
18073         else
18074                 version_type=irix
18075         fi ;;
18076   esac
18077   need_lib_prefix=no
18078   need_version=no
18079   soname_spec='${libname}${release}${shared_ext}$major'
18080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18081   case $host_os in
18082   irix5* | nonstopux*)
18083     libsuff= shlibsuff=
18084     ;;
18085   *)
18086     case $LD in # libtool.m4 will add one of these switches to LD
18087     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18088       libsuff= shlibsuff= libmagic=32-bit;;
18089     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18090       libsuff=32 shlibsuff=N32 libmagic=N32;;
18091     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18092       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18093     *) libsuff= shlibsuff= libmagic=never-match;;
18094     esac
18095     ;;
18096   esac
18097   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18098   shlibpath_overrides_runpath=no
18099   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18100   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18101   hardcode_into_libs=yes
18102   ;;
18103
18104 # No shared lib support for Linux oldld, aout, or coff.
18105 linux*oldld* | linux*aout* | linux*coff*)
18106   dynamic_linker=no
18107   ;;
18108
18109 # This must be Linux ELF.
18110 linux* | k*bsd*-gnu)
18111   version_type=linux
18112   need_lib_prefix=no
18113   need_version=no
18114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18115   soname_spec='${libname}${release}${shared_ext}$major'
18116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18117   shlibpath_var=LD_LIBRARY_PATH
18118   shlibpath_overrides_runpath=no
18119   # This implies no fast_install, which is unacceptable.
18120   # Some rework will be needed to allow for fast_install
18121   # before this can be enabled.
18122   hardcode_into_libs=yes
18123
18124   # Append ld.so.conf contents to the search path
18125   if test -f /etc/ld.so.conf; then
18126     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' ' '`
18127     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18128   fi
18129
18130   # We used to test for /lib/ld.so.1 and disable shared libraries on
18131   # powerpc, because MkLinux only supported shared libraries with the
18132   # GNU dynamic linker.  Since this was broken with cross compilers,
18133   # most powerpc-linux boxes support dynamic linking these days and
18134   # people can always --disable-shared, the test was removed, and we
18135   # assume the GNU/Linux dynamic linker is in use.
18136   dynamic_linker='GNU/Linux ld.so'
18137   ;;
18138
18139 netbsdelf*-gnu)
18140   version_type=linux
18141   need_lib_prefix=no
18142   need_version=no
18143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18144   soname_spec='${libname}${release}${shared_ext}$major'
18145   shlibpath_var=LD_LIBRARY_PATH
18146   shlibpath_overrides_runpath=no
18147   hardcode_into_libs=yes
18148   dynamic_linker='NetBSD ld.elf_so'
18149   ;;
18150
18151 netbsd*)
18152   version_type=sunos
18153   need_lib_prefix=no
18154   need_version=no
18155   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18157     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18158     dynamic_linker='NetBSD (a.out) ld.so'
18159   else
18160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18161     soname_spec='${libname}${release}${shared_ext}$major'
18162     dynamic_linker='NetBSD ld.elf_so'
18163   fi
18164   shlibpath_var=LD_LIBRARY_PATH
18165   shlibpath_overrides_runpath=yes
18166   hardcode_into_libs=yes
18167   ;;
18168
18169 newsos6)
18170   version_type=linux
18171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172   shlibpath_var=LD_LIBRARY_PATH
18173   shlibpath_overrides_runpath=yes
18174   ;;
18175
18176 nto-qnx*)
18177   version_type=linux
18178   need_lib_prefix=no
18179   need_version=no
18180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181   soname_spec='${libname}${release}${shared_ext}$major'
18182   shlibpath_var=LD_LIBRARY_PATH
18183   shlibpath_overrides_runpath=yes
18184   ;;
18185
18186 openbsd*)
18187   version_type=sunos
18188   sys_lib_dlsearch_path_spec="/usr/lib"
18189   need_lib_prefix=no
18190   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18191   case $host_os in
18192     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18193     *)                         need_version=no  ;;
18194   esac
18195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18196   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18197   shlibpath_var=LD_LIBRARY_PATH
18198   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18199     case $host_os in
18200       openbsd2.[89] | openbsd2.[89].*)
18201         shlibpath_overrides_runpath=no
18202         ;;
18203       *)
18204         shlibpath_overrides_runpath=yes
18205         ;;
18206       esac
18207   else
18208     shlibpath_overrides_runpath=yes
18209   fi
18210   ;;
18211
18212 os2*)
18213   libname_spec='$name'
18214   shrext_cmds=".dll"
18215   need_lib_prefix=no
18216   library_names_spec='$libname${shared_ext} $libname.a'
18217   dynamic_linker='OS/2 ld.exe'
18218   shlibpath_var=LIBPATH
18219   ;;
18220
18221 osf3* | osf4* | osf5*)
18222   version_type=osf
18223   need_lib_prefix=no
18224   need_version=no
18225   soname_spec='${libname}${release}${shared_ext}$major'
18226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227   shlibpath_var=LD_LIBRARY_PATH
18228   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18229   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18230   ;;
18231
18232 rdos*)
18233   dynamic_linker=no
18234   ;;
18235
18236 solaris*)
18237   version_type=linux
18238   need_lib_prefix=no
18239   need_version=no
18240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18241   soname_spec='${libname}${release}${shared_ext}$major'
18242   shlibpath_var=LD_LIBRARY_PATH
18243   shlibpath_overrides_runpath=yes
18244   hardcode_into_libs=yes
18245   # ldd complains unless libraries are executable
18246   postinstall_cmds='chmod +x $lib'
18247   ;;
18248
18249 sunos4*)
18250   version_type=sunos
18251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18252   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18253   shlibpath_var=LD_LIBRARY_PATH
18254   shlibpath_overrides_runpath=yes
18255   if test "$with_gnu_ld" = yes; then
18256     need_lib_prefix=no
18257   fi
18258   need_version=yes
18259   ;;
18260
18261 sysv4 | sysv4.3*)
18262   version_type=linux
18263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18264   soname_spec='${libname}${release}${shared_ext}$major'
18265   shlibpath_var=LD_LIBRARY_PATH
18266   case $host_vendor in
18267     sni)
18268       shlibpath_overrides_runpath=no
18269       need_lib_prefix=no
18270       export_dynamic_flag_spec='${wl}-Blargedynsym'
18271       runpath_var=LD_RUN_PATH
18272       ;;
18273     siemens)
18274       need_lib_prefix=no
18275       ;;
18276     motorola)
18277       need_lib_prefix=no
18278       need_version=no
18279       shlibpath_overrides_runpath=no
18280       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18281       ;;
18282   esac
18283   ;;
18284
18285 sysv4*MP*)
18286   if test -d /usr/nec ;then
18287     version_type=linux
18288     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18289     soname_spec='$libname${shared_ext}.$major'
18290     shlibpath_var=LD_LIBRARY_PATH
18291   fi
18292   ;;
18293
18294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18295   version_type=freebsd-elf
18296   need_lib_prefix=no
18297   need_version=no
18298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18299   soname_spec='${libname}${release}${shared_ext}$major'
18300   shlibpath_var=LD_LIBRARY_PATH
18301   hardcode_into_libs=yes
18302   if test "$with_gnu_ld" = yes; then
18303     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18304     shlibpath_overrides_runpath=no
18305   else
18306     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18307     shlibpath_overrides_runpath=yes
18308     case $host_os in
18309       sco3.2v5*)
18310         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18311         ;;
18312     esac
18313   fi
18314   sys_lib_dlsearch_path_spec='/usr/lib'
18315   ;;
18316
18317 uts4*)
18318   version_type=linux
18319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18320   soname_spec='${libname}${release}${shared_ext}$major'
18321   shlibpath_var=LD_LIBRARY_PATH
18322   ;;
18323
18324 *)
18325   dynamic_linker=no
18326   ;;
18327 esac
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18329 $as_echo "$dynamic_linker" >&6; }
18330 test "$dynamic_linker" = no && can_build_shared=no
18331
18332 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18333   $as_echo_n "(cached) " >&6
18334 else
18335   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18336 fi
18337
18338 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18339 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18340   $as_echo_n "(cached) " >&6
18341 else
18342   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18343 fi
18344
18345 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18346
18347 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18348 if test "$GCC" = yes; then
18349   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18350 fi
18351
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18353 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18354 hardcode_action_GCJ=
18355 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18356    test -n "$runpath_var_GCJ" || \
18357    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18358
18359   # We can hardcode non-existant directories.
18360   if test "$hardcode_direct_GCJ" != no &&
18361      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18362      # have to relink, otherwise we might link with an installed library
18363      # when we should be linking with a yet-to-be-installed one
18364      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18365      test "$hardcode_minus_L_GCJ" != no; then
18366     # Linking always hardcodes the temporary library directory.
18367     hardcode_action_GCJ=relink
18368   else
18369     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18370     hardcode_action_GCJ=immediate
18371   fi
18372 else
18373   # We cannot hardcode anything, or else we can only hardcode existing
18374   # directories.
18375   hardcode_action_GCJ=unsupported
18376 fi
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18378 $as_echo "$hardcode_action_GCJ" >&6; }
18379
18380 if test "$hardcode_action_GCJ" = relink; then
18381   # Fast installation is not supported
18382   enable_fast_install=no
18383 elif test "$shlibpath_overrides_runpath" = yes ||
18384      test "$enable_shared" = no; then
18385   # Fast installation is not necessary
18386   enable_fast_install=needless
18387 fi
18388
18389
18390 # The else clause should only fire when bootstrapping the
18391 # libtool distribution, otherwise you forgot to ship ltmain.sh
18392 # with your package, and you will get complaints that there are
18393 # no rules to generate ltmain.sh.
18394 if test -f "$ltmain"; then
18395   # See if we are running on zsh, and set the options which allow our commands through
18396   # without removal of \ escapes.
18397   if test -n "${ZSH_VERSION+set}" ; then
18398     setopt NO_GLOB_SUBST
18399   fi
18400   # Now quote all the things that may contain metacharacters while being
18401   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18402   # variables and quote the copies for generation of the libtool script.
18403   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18404     SED SHELL STRIP \
18405     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18406     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18407     deplibs_check_method reload_flag reload_cmds need_locks \
18408     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18409     lt_cv_sys_global_symbol_to_c_name_address \
18410     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18411     old_postinstall_cmds old_postuninstall_cmds \
18412     compiler_GCJ \
18413     CC_GCJ \
18414     LD_GCJ \
18415     lt_prog_compiler_wl_GCJ \
18416     lt_prog_compiler_pic_GCJ \
18417     lt_prog_compiler_static_GCJ \
18418     lt_prog_compiler_no_builtin_flag_GCJ \
18419     export_dynamic_flag_spec_GCJ \
18420     thread_safe_flag_spec_GCJ \
18421     whole_archive_flag_spec_GCJ \
18422     enable_shared_with_static_runtimes_GCJ \
18423     old_archive_cmds_GCJ \
18424     old_archive_from_new_cmds_GCJ \
18425     predep_objects_GCJ \
18426     postdep_objects_GCJ \
18427     predeps_GCJ \
18428     postdeps_GCJ \
18429     compiler_lib_search_path_GCJ \
18430     compiler_lib_search_dirs_GCJ \
18431     archive_cmds_GCJ \
18432     archive_expsym_cmds_GCJ \
18433     postinstall_cmds_GCJ \
18434     postuninstall_cmds_GCJ \
18435     old_archive_from_expsyms_cmds_GCJ \
18436     allow_undefined_flag_GCJ \
18437     no_undefined_flag_GCJ \
18438     export_symbols_cmds_GCJ \
18439     hardcode_libdir_flag_spec_GCJ \
18440     hardcode_libdir_flag_spec_ld_GCJ \
18441     hardcode_libdir_separator_GCJ \
18442     hardcode_automatic_GCJ \
18443     module_cmds_GCJ \
18444     module_expsym_cmds_GCJ \
18445     lt_cv_prog_compiler_c_o_GCJ \
18446     fix_srcfile_path_GCJ \
18447     exclude_expsyms_GCJ \
18448     include_expsyms_GCJ; do
18449
18450     case $var in
18451     old_archive_cmds_GCJ | \
18452     old_archive_from_new_cmds_GCJ | \
18453     archive_cmds_GCJ | \
18454     archive_expsym_cmds_GCJ | \
18455     module_cmds_GCJ | \
18456     module_expsym_cmds_GCJ | \
18457     old_archive_from_expsyms_cmds_GCJ | \
18458     export_symbols_cmds_GCJ | \
18459     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18460     postinstall_cmds | postuninstall_cmds | \
18461     old_postinstall_cmds | old_postuninstall_cmds | \
18462     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18463       # Double-quote double-evaled strings.
18464       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18465       ;;
18466     *)
18467       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18468       ;;
18469     esac
18470   done
18471
18472   case $lt_echo in
18473   *'\$0 --fallback-echo"')
18474     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18475     ;;
18476   esac
18477
18478 cfgfile="$ofile"
18479
18480   cat <<__EOF__ >> "$cfgfile"
18481 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18482
18483 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18484
18485 # Shell to use when invoking shell scripts.
18486 SHELL=$lt_SHELL
18487
18488 # Whether or not to build shared libraries.
18489 build_libtool_libs=$enable_shared
18490
18491 # Whether or not to build static libraries.
18492 build_old_libs=$enable_static
18493
18494 # Whether or not to add -lc for building shared libraries.
18495 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18496
18497 # Whether or not to disallow shared libs when runtime libs are static
18498 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18499
18500 # Whether or not to optimize for fast installation.
18501 fast_install=$enable_fast_install
18502
18503 # The host system.
18504 host_alias=$host_alias
18505 host=$host
18506 host_os=$host_os
18507
18508 # The build system.
18509 build_alias=$build_alias
18510 build=$build
18511 build_os=$build_os
18512
18513 # An echo program that does not interpret backslashes.
18514 echo=$lt_echo
18515
18516 # The archiver.
18517 AR=$lt_AR
18518 AR_FLAGS=$lt_AR_FLAGS
18519
18520 # A C compiler.
18521 LTCC=$lt_LTCC
18522
18523 # LTCC compiler flags.
18524 LTCFLAGS=$lt_LTCFLAGS
18525
18526 # A language-specific compiler.
18527 CC=$lt_compiler_GCJ
18528
18529 # Is the compiler the GNU C compiler?
18530 with_gcc=$GCC_GCJ
18531
18532 # An ERE matcher.
18533 EGREP=$lt_EGREP
18534
18535 # The linker used to build libraries.
18536 LD=$lt_LD_GCJ
18537
18538 # Whether we need hard or soft links.
18539 LN_S=$lt_LN_S
18540
18541 # A BSD-compatible nm program.
18542 NM=$lt_NM
18543
18544 # A symbol stripping program
18545 STRIP=$lt_STRIP
18546
18547 # Used to examine libraries when file_magic_cmd begins "file"
18548 MAGIC_CMD=$MAGIC_CMD
18549
18550 # Used on cygwin: DLL creation program.
18551 DLLTOOL="$DLLTOOL"
18552
18553 # Used on cygwin: object dumper.
18554 OBJDUMP="$OBJDUMP"
18555
18556 # Used on cygwin: assembler.
18557 AS="$AS"
18558
18559 # The name of the directory that contains temporary libtool files.
18560 objdir=$objdir
18561
18562 # How to create reloadable object files.
18563 reload_flag=$lt_reload_flag
18564 reload_cmds=$lt_reload_cmds
18565
18566 # How to pass a linker flag through the compiler.
18567 wl=$lt_lt_prog_compiler_wl_GCJ
18568
18569 # Object file suffix (normally "o").
18570 objext="$ac_objext"
18571
18572 # Old archive suffix (normally "a").
18573 libext="$libext"
18574
18575 # Shared library suffix (normally ".so").
18576 shrext_cmds='$shrext_cmds'
18577
18578 # Executable file suffix (normally "").
18579 exeext="$exeext"
18580
18581 # Additional compiler flags for building library objects.
18582 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18583 pic_mode=$pic_mode
18584
18585 # What is the maximum length of a command?
18586 max_cmd_len=$lt_cv_sys_max_cmd_len
18587
18588 # Does compiler simultaneously support -c and -o options?
18589 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18590
18591 # Must we lock files when doing compilation?
18592 need_locks=$lt_need_locks
18593
18594 # Do we need the lib prefix for modules?
18595 need_lib_prefix=$need_lib_prefix
18596
18597 # Do we need a version for libraries?
18598 need_version=$need_version
18599
18600 # Whether dlopen is supported.
18601 dlopen_support=$enable_dlopen
18602
18603 # Whether dlopen of programs is supported.
18604 dlopen_self=$enable_dlopen_self
18605
18606 # Whether dlopen of statically linked programs is supported.
18607 dlopen_self_static=$enable_dlopen_self_static
18608
18609 # Compiler flag to prevent dynamic linking.
18610 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18611
18612 # Compiler flag to turn off builtin functions.
18613 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18614
18615 # Compiler flag to allow reflexive dlopens.
18616 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18617
18618 # Compiler flag to generate shared objects directly from archives.
18619 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18620
18621 # Compiler flag to generate thread-safe objects.
18622 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18623
18624 # Library versioning type.
18625 version_type=$version_type
18626
18627 # Format of library name prefix.
18628 libname_spec=$lt_libname_spec
18629
18630 # List of archive names.  First name is the real one, the rest are links.
18631 # The last name is the one that the linker finds with -lNAME.
18632 library_names_spec=$lt_library_names_spec
18633
18634 # The coded name of the library, if different from the real name.
18635 soname_spec=$lt_soname_spec
18636
18637 # Commands used to build and install an old-style archive.
18638 RANLIB=$lt_RANLIB
18639 old_archive_cmds=$lt_old_archive_cmds_GCJ
18640 old_postinstall_cmds=$lt_old_postinstall_cmds
18641 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18642
18643 # Create an old-style archive from a shared archive.
18644 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18645
18646 # Create a temporary old-style archive to link instead of a shared archive.
18647 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18648
18649 # Commands used to build and install a shared archive.
18650 archive_cmds=$lt_archive_cmds_GCJ
18651 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18652 postinstall_cmds=$lt_postinstall_cmds
18653 postuninstall_cmds=$lt_postuninstall_cmds
18654
18655 # Commands used to build a loadable module (assumed same as above if empty)
18656 module_cmds=$lt_module_cmds_GCJ
18657 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18658
18659 # Commands to strip libraries.
18660 old_striplib=$lt_old_striplib
18661 striplib=$lt_striplib
18662
18663 # Dependencies to place before the objects being linked to create a
18664 # shared library.
18665 predep_objects=$lt_predep_objects_GCJ
18666
18667 # Dependencies to place after the objects being linked to create a
18668 # shared library.
18669 postdep_objects=$lt_postdep_objects_GCJ
18670
18671 # Dependencies to place before the objects being linked to create a
18672 # shared library.
18673 predeps=$lt_predeps_GCJ
18674
18675 # Dependencies to place after the objects being linked to create a
18676 # shared library.
18677 postdeps=$lt_postdeps_GCJ
18678
18679 # The directories searched by this compiler when creating a shared
18680 # library
18681 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18682
18683 # The library search path used internally by the compiler when linking
18684 # a shared library.
18685 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18686
18687 # Method to check whether dependent libraries are shared objects.
18688 deplibs_check_method=$lt_deplibs_check_method
18689
18690 # Command to use when deplibs_check_method == file_magic.
18691 file_magic_cmd=$lt_file_magic_cmd
18692
18693 # Flag that allows shared libraries with undefined symbols to be built.
18694 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18695
18696 # Flag that forces no undefined symbols.
18697 no_undefined_flag=$lt_no_undefined_flag_GCJ
18698
18699 # Commands used to finish a libtool library installation in a directory.
18700 finish_cmds=$lt_finish_cmds
18701
18702 # Same as above, but a single script fragment to be evaled but not shown.
18703 finish_eval=$lt_finish_eval
18704
18705 # Take the output of nm and produce a listing of raw symbols and C names.
18706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18707
18708 # Transform the output of nm in a proper C declaration
18709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18710
18711 # Transform the output of nm in a C name address pair
18712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18713
18714 # This is the shared library runtime path variable.
18715 runpath_var=$runpath_var
18716
18717 # This is the shared library path variable.
18718 shlibpath_var=$shlibpath_var
18719
18720 # Is shlibpath searched before the hard-coded library search path?
18721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18722
18723 # How to hardcode a shared library path into an executable.
18724 hardcode_action=$hardcode_action_GCJ
18725
18726 # Whether we should hardcode library paths into libraries.
18727 hardcode_into_libs=$hardcode_into_libs
18728
18729 # Flag to hardcode \$libdir into a binary during linking.
18730 # This must work even if \$libdir does not exist.
18731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18732
18733 # If ld is used when linking, flag to hardcode \$libdir into
18734 # a binary during linking. This must work even if \$libdir does
18735 # not exist.
18736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18737
18738 # Whether we need a single -rpath flag with a separated argument.
18739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18740
18741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18742 # resulting binary.
18743 hardcode_direct=$hardcode_direct_GCJ
18744
18745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18746 # resulting binary.
18747 hardcode_minus_L=$hardcode_minus_L_GCJ
18748
18749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18750 # the resulting binary.
18751 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18752
18753 # Set to yes if building a shared library automatically hardcodes DIR into the library
18754 # and all subsequent libraries and executables linked against it.
18755 hardcode_automatic=$hardcode_automatic_GCJ
18756
18757 # Variables whose values should be saved in libtool wrapper scripts and
18758 # restored at relink time.
18759 variables_saved_for_relink="$variables_saved_for_relink"
18760
18761 # Whether libtool must link a program against all its dependency libraries.
18762 link_all_deplibs=$link_all_deplibs_GCJ
18763
18764 # Compile-time system search path for libraries
18765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18766
18767 # Run-time system search path for libraries
18768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18769
18770 # Fix the shell variable \$srcfile for the compiler.
18771 fix_srcfile_path=$lt_fix_srcfile_path
18772
18773 # Set to yes if exported symbols are required.
18774 always_export_symbols=$always_export_symbols_GCJ
18775
18776 # The commands to list exported symbols.
18777 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18778
18779 # The commands to extract the exported symbol list from a shared archive.
18780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18781
18782 # Symbols that should not be listed in the preloaded symbols.
18783 exclude_expsyms=$lt_exclude_expsyms_GCJ
18784
18785 # Symbols that must always be exported.
18786 include_expsyms=$lt_include_expsyms_GCJ
18787
18788 # ### END LIBTOOL TAG CONFIG: $tagname
18789
18790 __EOF__
18791
18792
18793 else
18794   # If there is no Makefile yet, we rely on a make rule to execute
18795   # `config.status --recheck' to rerun these tests and create the
18796   # libtool script then.
18797   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18798   if test -f "$ltmain_in"; then
18799     test -f Makefile && make "$ltmain"
18800   fi
18801 fi
18802
18803
18804 ac_ext=c
18805 ac_cpp='$CPP $CPPFLAGS'
18806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18809
18810 CC="$lt_save_CC"
18811
18812         else
18813           tagname=""
18814         fi
18815         ;;
18816
18817       RC)
18818
18819
18820 # Source file extension for RC test sources.
18821 ac_ext=rc
18822
18823 # Object file extension for compiled RC test sources.
18824 objext=o
18825 objext_RC=$objext
18826
18827 # Code to be used in simple compile tests
18828 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18829
18830 # Code to be used in simple link tests
18831 lt_simple_link_test_code="$lt_simple_compile_test_code"
18832
18833 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18834
18835 # If no C compiler was specified, use CC.
18836 LTCC=${LTCC-"$CC"}
18837
18838 # If no C compiler flags were specified, use CFLAGS.
18839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18840
18841 # Allow CC to be a program name with arguments.
18842 compiler=$CC
18843
18844
18845 # save warnings/boilerplate of simple test code
18846 ac_outfile=conftest.$ac_objext
18847 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18848 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18849 _lt_compiler_boilerplate=`cat conftest.err`
18850 $rm conftest*
18851
18852 ac_outfile=conftest.$ac_objext
18853 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18854 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18855 _lt_linker_boilerplate=`cat conftest.err`
18856 $rm -r conftest*
18857
18858
18859 # Allow CC to be a program name with arguments.
18860 lt_save_CC="$CC"
18861 CC=${RC-"windres"}
18862 compiler=$CC
18863 compiler_RC=$CC
18864 for cc_temp in $compiler""; do
18865   case $cc_temp in
18866     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18867     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18868     \-*) ;;
18869     *) break;;
18870   esac
18871 done
18872 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18873
18874 lt_cv_prog_compiler_c_o_RC=yes
18875
18876 # The else clause should only fire when bootstrapping the
18877 # libtool distribution, otherwise you forgot to ship ltmain.sh
18878 # with your package, and you will get complaints that there are
18879 # no rules to generate ltmain.sh.
18880 if test -f "$ltmain"; then
18881   # See if we are running on zsh, and set the options which allow our commands through
18882   # without removal of \ escapes.
18883   if test -n "${ZSH_VERSION+set}" ; then
18884     setopt NO_GLOB_SUBST
18885   fi
18886   # Now quote all the things that may contain metacharacters while being
18887   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18888   # variables and quote the copies for generation of the libtool script.
18889   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18890     SED SHELL STRIP \
18891     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18892     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18893     deplibs_check_method reload_flag reload_cmds need_locks \
18894     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18895     lt_cv_sys_global_symbol_to_c_name_address \
18896     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18897     old_postinstall_cmds old_postuninstall_cmds \
18898     compiler_RC \
18899     CC_RC \
18900     LD_RC \
18901     lt_prog_compiler_wl_RC \
18902     lt_prog_compiler_pic_RC \
18903     lt_prog_compiler_static_RC \
18904     lt_prog_compiler_no_builtin_flag_RC \
18905     export_dynamic_flag_spec_RC \
18906     thread_safe_flag_spec_RC \
18907     whole_archive_flag_spec_RC \
18908     enable_shared_with_static_runtimes_RC \
18909     old_archive_cmds_RC \
18910     old_archive_from_new_cmds_RC \
18911     predep_objects_RC \
18912     postdep_objects_RC \
18913     predeps_RC \
18914     postdeps_RC \
18915     compiler_lib_search_path_RC \
18916     compiler_lib_search_dirs_RC \
18917     archive_cmds_RC \
18918     archive_expsym_cmds_RC \
18919     postinstall_cmds_RC \
18920     postuninstall_cmds_RC \
18921     old_archive_from_expsyms_cmds_RC \
18922     allow_undefined_flag_RC \
18923     no_undefined_flag_RC \
18924     export_symbols_cmds_RC \
18925     hardcode_libdir_flag_spec_RC \
18926     hardcode_libdir_flag_spec_ld_RC \
18927     hardcode_libdir_separator_RC \
18928     hardcode_automatic_RC \
18929     module_cmds_RC \
18930     module_expsym_cmds_RC \
18931     lt_cv_prog_compiler_c_o_RC \
18932     fix_srcfile_path_RC \
18933     exclude_expsyms_RC \
18934     include_expsyms_RC; do
18935
18936     case $var in
18937     old_archive_cmds_RC | \
18938     old_archive_from_new_cmds_RC | \
18939     archive_cmds_RC | \
18940     archive_expsym_cmds_RC | \
18941     module_cmds_RC | \
18942     module_expsym_cmds_RC | \
18943     old_archive_from_expsyms_cmds_RC | \
18944     export_symbols_cmds_RC | \
18945     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18946     postinstall_cmds | postuninstall_cmds | \
18947     old_postinstall_cmds | old_postuninstall_cmds | \
18948     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18949       # Double-quote double-evaled strings.
18950       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18951       ;;
18952     *)
18953       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18954       ;;
18955     esac
18956   done
18957
18958   case $lt_echo in
18959   *'\$0 --fallback-echo"')
18960     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18961     ;;
18962   esac
18963
18964 cfgfile="$ofile"
18965
18966   cat <<__EOF__ >> "$cfgfile"
18967 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18968
18969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18970
18971 # Shell to use when invoking shell scripts.
18972 SHELL=$lt_SHELL
18973
18974 # Whether or not to build shared libraries.
18975 build_libtool_libs=$enable_shared
18976
18977 # Whether or not to build static libraries.
18978 build_old_libs=$enable_static
18979
18980 # Whether or not to add -lc for building shared libraries.
18981 build_libtool_need_lc=$archive_cmds_need_lc_RC
18982
18983 # Whether or not to disallow shared libs when runtime libs are static
18984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18985
18986 # Whether or not to optimize for fast installation.
18987 fast_install=$enable_fast_install
18988
18989 # The host system.
18990 host_alias=$host_alias
18991 host=$host
18992 host_os=$host_os
18993
18994 # The build system.
18995 build_alias=$build_alias
18996 build=$build
18997 build_os=$build_os
18998
18999 # An echo program that does not interpret backslashes.
19000 echo=$lt_echo
19001
19002 # The archiver.
19003 AR=$lt_AR
19004 AR_FLAGS=$lt_AR_FLAGS
19005
19006 # A C compiler.
19007 LTCC=$lt_LTCC
19008
19009 # LTCC compiler flags.
19010 LTCFLAGS=$lt_LTCFLAGS
19011
19012 # A language-specific compiler.
19013 CC=$lt_compiler_RC
19014
19015 # Is the compiler the GNU C compiler?
19016 with_gcc=$GCC_RC
19017
19018 # An ERE matcher.
19019 EGREP=$lt_EGREP
19020
19021 # The linker used to build libraries.
19022 LD=$lt_LD_RC
19023
19024 # Whether we need hard or soft links.
19025 LN_S=$lt_LN_S
19026
19027 # A BSD-compatible nm program.
19028 NM=$lt_NM
19029
19030 # A symbol stripping program
19031 STRIP=$lt_STRIP
19032
19033 # Used to examine libraries when file_magic_cmd begins "file"
19034 MAGIC_CMD=$MAGIC_CMD
19035
19036 # Used on cygwin: DLL creation program.
19037 DLLTOOL="$DLLTOOL"
19038
19039 # Used on cygwin: object dumper.
19040 OBJDUMP="$OBJDUMP"
19041
19042 # Used on cygwin: assembler.
19043 AS="$AS"
19044
19045 # The name of the directory that contains temporary libtool files.
19046 objdir=$objdir
19047
19048 # How to create reloadable object files.
19049 reload_flag=$lt_reload_flag
19050 reload_cmds=$lt_reload_cmds
19051
19052 # How to pass a linker flag through the compiler.
19053 wl=$lt_lt_prog_compiler_wl_RC
19054
19055 # Object file suffix (normally "o").
19056 objext="$ac_objext"
19057
19058 # Old archive suffix (normally "a").
19059 libext="$libext"
19060
19061 # Shared library suffix (normally ".so").
19062 shrext_cmds='$shrext_cmds'
19063
19064 # Executable file suffix (normally "").
19065 exeext="$exeext"
19066
19067 # Additional compiler flags for building library objects.
19068 pic_flag=$lt_lt_prog_compiler_pic_RC
19069 pic_mode=$pic_mode
19070
19071 # What is the maximum length of a command?
19072 max_cmd_len=$lt_cv_sys_max_cmd_len
19073
19074 # Does compiler simultaneously support -c and -o options?
19075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19076
19077 # Must we lock files when doing compilation?
19078 need_locks=$lt_need_locks
19079
19080 # Do we need the lib prefix for modules?
19081 need_lib_prefix=$need_lib_prefix
19082
19083 # Do we need a version for libraries?
19084 need_version=$need_version
19085
19086 # Whether dlopen is supported.
19087 dlopen_support=$enable_dlopen
19088
19089 # Whether dlopen of programs is supported.
19090 dlopen_self=$enable_dlopen_self
19091
19092 # Whether dlopen of statically linked programs is supported.
19093 dlopen_self_static=$enable_dlopen_self_static
19094
19095 # Compiler flag to prevent dynamic linking.
19096 link_static_flag=$lt_lt_prog_compiler_static_RC
19097
19098 # Compiler flag to turn off builtin functions.
19099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19100
19101 # Compiler flag to allow reflexive dlopens.
19102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19103
19104 # Compiler flag to generate shared objects directly from archives.
19105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19106
19107 # Compiler flag to generate thread-safe objects.
19108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19109
19110 # Library versioning type.
19111 version_type=$version_type
19112
19113 # Format of library name prefix.
19114 libname_spec=$lt_libname_spec
19115
19116 # List of archive names.  First name is the real one, the rest are links.
19117 # The last name is the one that the linker finds with -lNAME.
19118 library_names_spec=$lt_library_names_spec
19119
19120 # The coded name of the library, if different from the real name.
19121 soname_spec=$lt_soname_spec
19122
19123 # Commands used to build and install an old-style archive.
19124 RANLIB=$lt_RANLIB
19125 old_archive_cmds=$lt_old_archive_cmds_RC
19126 old_postinstall_cmds=$lt_old_postinstall_cmds
19127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19128
19129 # Create an old-style archive from a shared archive.
19130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19131
19132 # Create a temporary old-style archive to link instead of a shared archive.
19133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19134
19135 # Commands used to build and install a shared archive.
19136 archive_cmds=$lt_archive_cmds_RC
19137 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19138 postinstall_cmds=$lt_postinstall_cmds
19139 postuninstall_cmds=$lt_postuninstall_cmds
19140
19141 # Commands used to build a loadable module (assumed same as above if empty)
19142 module_cmds=$lt_module_cmds_RC
19143 module_expsym_cmds=$lt_module_expsym_cmds_RC
19144
19145 # Commands to strip libraries.
19146 old_striplib=$lt_old_striplib
19147 striplib=$lt_striplib
19148
19149 # Dependencies to place before the objects being linked to create a
19150 # shared library.
19151 predep_objects=$lt_predep_objects_RC
19152
19153 # Dependencies to place after the objects being linked to create a
19154 # shared library.
19155 postdep_objects=$lt_postdep_objects_RC
19156
19157 # Dependencies to place before the objects being linked to create a
19158 # shared library.
19159 predeps=$lt_predeps_RC
19160
19161 # Dependencies to place after the objects being linked to create a
19162 # shared library.
19163 postdeps=$lt_postdeps_RC
19164
19165 # The directories searched by this compiler when creating a shared
19166 # library
19167 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19168
19169 # The library search path used internally by the compiler when linking
19170 # a shared library.
19171 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19172
19173 # Method to check whether dependent libraries are shared objects.
19174 deplibs_check_method=$lt_deplibs_check_method
19175
19176 # Command to use when deplibs_check_method == file_magic.
19177 file_magic_cmd=$lt_file_magic_cmd
19178
19179 # Flag that allows shared libraries with undefined symbols to be built.
19180 allow_undefined_flag=$lt_allow_undefined_flag_RC
19181
19182 # Flag that forces no undefined symbols.
19183 no_undefined_flag=$lt_no_undefined_flag_RC
19184
19185 # Commands used to finish a libtool library installation in a directory.
19186 finish_cmds=$lt_finish_cmds
19187
19188 # Same as above, but a single script fragment to be evaled but not shown.
19189 finish_eval=$lt_finish_eval
19190
19191 # Take the output of nm and produce a listing of raw symbols and C names.
19192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19193
19194 # Transform the output of nm in a proper C declaration
19195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19196
19197 # Transform the output of nm in a C name address pair
19198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19199
19200 # This is the shared library runtime path variable.
19201 runpath_var=$runpath_var
19202
19203 # This is the shared library path variable.
19204 shlibpath_var=$shlibpath_var
19205
19206 # Is shlibpath searched before the hard-coded library search path?
19207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19208
19209 # How to hardcode a shared library path into an executable.
19210 hardcode_action=$hardcode_action_RC
19211
19212 # Whether we should hardcode library paths into libraries.
19213 hardcode_into_libs=$hardcode_into_libs
19214
19215 # Flag to hardcode \$libdir into a binary during linking.
19216 # This must work even if \$libdir does not exist.
19217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19218
19219 # If ld is used when linking, flag to hardcode \$libdir into
19220 # a binary during linking. This must work even if \$libdir does
19221 # not exist.
19222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19223
19224 # Whether we need a single -rpath flag with a separated argument.
19225 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19226
19227 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19228 # resulting binary.
19229 hardcode_direct=$hardcode_direct_RC
19230
19231 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19232 # resulting binary.
19233 hardcode_minus_L=$hardcode_minus_L_RC
19234
19235 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19236 # the resulting binary.
19237 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19238
19239 # Set to yes if building a shared library automatically hardcodes DIR into the library
19240 # and all subsequent libraries and executables linked against it.
19241 hardcode_automatic=$hardcode_automatic_RC
19242
19243 # Variables whose values should be saved in libtool wrapper scripts and
19244 # restored at relink time.
19245 variables_saved_for_relink="$variables_saved_for_relink"
19246
19247 # Whether libtool must link a program against all its dependency libraries.
19248 link_all_deplibs=$link_all_deplibs_RC
19249
19250 # Compile-time system search path for libraries
19251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19252
19253 # Run-time system search path for libraries
19254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19255
19256 # Fix the shell variable \$srcfile for the compiler.
19257 fix_srcfile_path=$lt_fix_srcfile_path
19258
19259 # Set to yes if exported symbols are required.
19260 always_export_symbols=$always_export_symbols_RC
19261
19262 # The commands to list exported symbols.
19263 export_symbols_cmds=$lt_export_symbols_cmds_RC
19264
19265 # The commands to extract the exported symbol list from a shared archive.
19266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19267
19268 # Symbols that should not be listed in the preloaded symbols.
19269 exclude_expsyms=$lt_exclude_expsyms_RC
19270
19271 # Symbols that must always be exported.
19272 include_expsyms=$lt_include_expsyms_RC
19273
19274 # ### END LIBTOOL TAG CONFIG: $tagname
19275
19276 __EOF__
19277
19278
19279 else
19280   # If there is no Makefile yet, we rely on a make rule to execute
19281   # `config.status --recheck' to rerun these tests and create the
19282   # libtool script then.
19283   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19284   if test -f "$ltmain_in"; then
19285     test -f Makefile && make "$ltmain"
19286   fi
19287 fi
19288
19289
19290 ac_ext=c
19291 ac_cpp='$CPP $CPPFLAGS'
19292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19295
19296 CC="$lt_save_CC"
19297
19298         ;;
19299
19300       *)
19301         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19302         ;;
19303       esac
19304
19305       # Append the new tag name to the list of available tags.
19306       if test -n "$tagname" ; then
19307       available_tags="$available_tags $tagname"
19308     fi
19309     fi
19310   done
19311   IFS="$lt_save_ifs"
19312
19313   # Now substitute the updated list of available tags.
19314   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19315     mv "${ofile}T" "$ofile"
19316     chmod +x "$ofile"
19317   else
19318     rm -f "${ofile}T"
19319     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19320   fi
19321 fi
19322
19323
19324
19325 # This can be used to rebuild libtool when needed
19326 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19327
19328 # Always use our own libtool.
19329 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19330
19331 # Prevent multiple expansion
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344 # Check whether --with-system-libtool was given.
19345 if test "${with_system_libtool+set}" = set; then :
19346   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19347 set dummy libtool; ac_word=$2
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19349 $as_echo_n "checking for $ac_word... " >&6; }
19350 if ${ac_cv_path_LIBTOOL+:} false; then :
19351   $as_echo_n "(cached) " >&6
19352 else
19353   case $LIBTOOL in
19354   [\\/]* | ?:[\\/]*)
19355   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19356   ;;
19357   *)
19358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19359 as_dummy="$PATH:/usr/local/bin"
19360 for as_dir in $as_dummy
19361 do
19362   IFS=$as_save_IFS
19363   test -z "$as_dir" && as_dir=.
19364     for ac_exec_ext in '' $ac_executable_extensions; do
19365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19366     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19368     break 2
19369   fi
19370 done
19371   done
19372 IFS=$as_save_IFS
19373
19374   ;;
19375 esac
19376 fi
19377 LIBTOOL=$ac_cv_path_LIBTOOL
19378 if test -n "$LIBTOOL"; then
19379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19380 $as_echo "$LIBTOOL" >&6; }
19381 else
19382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19383 $as_echo "no" >&6; }
19384 fi
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397 else
19398
19399   LIBTOOL="`pwd`/libtool"
19400
19401
19402
19403
19404
19405
19406 fi
19407
19408
19409
19410
19411 # Check whether --enable-strict-dependencies was given.
19412 if test "${enable_strict_dependencies+set}" = set; then :
19413   enableval=$enable_strict_dependencies;
19414 fi
19415
19416
19417 docdir='${datadir}/doc/freeradius'
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19419 $as_echo_n "checking docdir... " >&6; }
19420
19421 # Check whether --with-docdir was given.
19422 if test "${with_docdir+set}" = set; then :
19423   withval=$with_docdir;  case "$withval" in
19424     no)
19425         docdir=no
19426         ;;
19427     yes)
19428         ;;
19429     [\\/$]* | ?:[\\/]* )
19430         docdir="$withval"
19431         ;;
19432     *)
19433         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19434         ;;
19435   esac
19436
19437 fi
19438
19439
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19441 $as_echo "$docdir" >&6; }
19442 if test "x$docdir" = xno; then
19443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19444 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19445 fi
19446
19447 logdir='${localstatedir}/log/radius'
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19449 $as_echo_n "checking logdir... " >&6; }
19450
19451 # Check whether --with-logdir was given.
19452 if test "${with_logdir+set}" = set; then :
19453   withval=$with_logdir;  case "$withval" in
19454     no)
19455         as_fn_error $? "Need logdir" "$LINENO" 5
19456         ;;
19457     yes)
19458         ;;
19459     [\\/$]* | ?:[\\/]* )
19460         logdir="$withval"
19461         ;;
19462     *)
19463         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19464         ;;
19465   esac
19466
19467 fi
19468
19469
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19471 $as_echo "$logdir" >&6; }
19472
19473 radacctdir='${logdir}/radacct'
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19475 $as_echo_n "checking radacctdir... " >&6; }
19476
19477 # Check whether --with-radacctdir was given.
19478 if test "${with_radacctdir+set}" = set; then :
19479   withval=$with_radacctdir;  case "$withval" in
19480     no)
19481         as_fn_error $? "Need radacctdir" "$LINENO" 5
19482         ;;
19483     yes)
19484         ;;
19485     [\\/$]* | ?:[\\/]* )
19486         radacctdir="$withval"
19487         ;;
19488     *)
19489         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19490         ;;
19491   esac
19492
19493 fi
19494
19495
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19497 $as_echo "$radacctdir" >&6; }
19498
19499 raddbdir='${sysconfdir}/raddb'
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19501 $as_echo_n "checking raddbdir... " >&6; }
19502
19503 # Check whether --with-raddbdir was given.
19504 if test "${with_raddbdir+set}" = set; then :
19505   withval=$with_raddbdir;  case "$withval" in
19506     no)
19507         as_fn_error $? "Need raddbdir" "$LINENO" 5
19508         ;;
19509     yes)
19510         ;;
19511     [\\/$]* | ?:[\\/]* )
19512         raddbdir="$withval"
19513         ;;
19514     *)
19515         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19516         ;;
19517   esac
19518
19519 fi
19520
19521
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19523 $as_echo "$raddbdir" >&6; }
19524
19525 ASCEND_BINARY=yes
19526
19527 # Check whether --with-ascend-binary was given.
19528 if test "${with_ascend_binary+set}" = set; then :
19529   withval=$with_ascend_binary;  case "$withval" in
19530     yes)
19531         ;;
19532     *)
19533         ASCEND_BINARY=""
19534   esac
19535
19536 fi
19537
19538 if test "X$ASCEND_BINARY" = "Xyes"; then
19539
19540 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19541
19542 fi
19543
19544 WITH_THREADS=yes
19545
19546 # Check whether --with-threads was given.
19547 if test "${with_threads+set}" = set; then :
19548   withval=$with_threads;  case "$withval" in
19549     yes)
19550         ;;
19551     *)
19552         WITH_THREADS=""
19553   esac
19554
19555 fi
19556
19557
19558 WITH_VMPS=yes
19559
19560 # Check whether --with-vmps was given.
19561 if test "${with_vmps+set}" = set; then :
19562   withval=$with_vmps;  case "$withval" in
19563     yes)
19564         ;;
19565     *)
19566         WITH_VMPS=no
19567   esac
19568
19569 fi
19570
19571 if test "x$WITH_VMPS" = "xyes"; then
19572
19573 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19574
19575 fi
19576
19577 WITH_DHCP=yes
19578
19579 # Check whether --with-dhcp was given.
19580 if test "${with_dhcp+set}" = set; then :
19581   withval=$with_dhcp;  case "$withval" in
19582     yes)
19583         ;;
19584     *)
19585         WITH_DHCP=no
19586   esac
19587
19588 fi
19589
19590 if test "x$WITH_DHCP" = "xyes"; then
19591
19592 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19593
19594 fi
19595
19596
19597 WITH_POST_PROXY_AUTHORIZE=
19598
19599 # Check whether --with-post-proxy-authorize was given.
19600 if test "${with_post_proxy_authorize+set}" = set; then :
19601   withval=$with_post_proxy_authorize;  case "$withval" in
19602     yes)
19603         WITH_POST_PROXY_AUTHORIZE=""
19604         ;;
19605     *)
19606         ;;
19607   esac
19608
19609 fi
19610
19611
19612 STATIC_MODULES=
19613
19614 # Check whether --with-static_modules was given.
19615 if test "${with_static_modules+set}" = set; then :
19616   withval=$with_static_modules;
19617   for i in $withval; do
19618     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19619   done
19620
19621 fi
19622
19623
19624 MODULES=
19625
19626 # Check whether --with-modules was given.
19627 if test "${with_modules+set}" = set; then :
19628   withval=$with_modules;
19629  for i in $withval; do
19630    MODULES="$MODULES $i"
19631  done
19632
19633 fi
19634
19635
19636 # Check whether --enable-developer was given.
19637 if test "${enable_developer+set}" = set; then :
19638   enableval=$enable_developer;  case "$enableval" in
19639     no)
19640         developer=no
19641         ;;
19642     *)
19643         developer=yes
19644   esac
19645
19646 fi
19647
19648
19649 if test -d $srcdir/.git; then
19650   if test "x$developer" != "xno"; then
19651         developer="yes"
19652   fi
19653
19654     if test "x$GIT" = "xyes"; then
19655         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19656   fi
19657 fi
19658
19659 EXPERIMENTAL=
19660
19661 # Check whether --with-experimental-modules was given.
19662 if test "${with_experimental_modules+set}" = set; then :
19663   withval=$with_experimental_modules;  case "$withval" in
19664     yes)
19665         EXPERIMENTAL=yes
19666         ;;
19667     *)
19668   esac
19669
19670 fi
19671
19672
19673 WITH_OPENSSL=yes
19674
19675 # Check whether --with-openssl was given.
19676 if test "${with_openssl+set}" = set; then :
19677   withval=$with_openssl;  case "$withval" in
19678     no)
19679         WITH_OPENSSL=no
19680         ;;
19681     *)
19682         WITH_OPENSSL=yes
19683         ;;
19684   esac
19685
19686 fi
19687
19688
19689 OPENSSL_INCLUDE_DIR=
19690
19691 # Check whether --with-openssl-includes was given.
19692 if test "${with_openssl_includes+set}" = set; then :
19693   withval=$with_openssl_includes;  case "$withval" in
19694     *) OPENSSL_INCLUDE_DIR="$withval"
19695         ;;
19696   esac
19697
19698 fi
19699
19700
19701 OPENSSL_LIB_DIR=
19702
19703 # Check whether --with-openssl-libraries was given.
19704 if test "${with_openssl_libraries+set}" = set; then :
19705   withval=$with_openssl_libraries;  case "$withval" in
19706     *) OPENSSL_LIB_DIR="$withval"
19707         ;;
19708   esac
19709
19710 fi
19711
19712
19713
19714
19715 # Check whether --with-rlm-FOO-lib-dir was given.
19716 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19717   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19718     *)
19719         ;;
19720   esac
19721
19722 fi
19723
19724
19725
19726 # Check whether --with-rlm-FOO-include-dir was given.
19727 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19728   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19729     *)
19730         ;;
19731   esac
19732
19733 fi
19734
19735
19736
19737 WITH_UDPFROMTO=no
19738
19739 # Check whether --with-udpfromto was given.
19740 if test "${with_udpfromto+set}" = set; then :
19741   withval=$with_udpfromto;  case "$withval" in
19742     yes)
19743         WITH_UDPFROMTO=yes
19744         ;;
19745     *)
19746         WITH_UDPFROMTO=no
19747   esac
19748
19749 fi
19750
19751
19752 if test "x$WITH_UDPFROMTO" = "xyes"; then
19753
19754 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19755
19756 fi
19757
19758
19759 CHECKRAD=checkrad.pl
19760 # Extract the first word of "perl", so it can be a program name with args.
19761 set dummy perl; ac_word=$2
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19763 $as_echo_n "checking for $ac_word... " >&6; }
19764 if ${ac_cv_path_PERL+:} false; then :
19765   $as_echo_n "(cached) " >&6
19766 else
19767   case $PERL in
19768   [\\/]* | ?:[\\/]*)
19769   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19770   ;;
19771   *)
19772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19773 for as_dir in $PATH
19774 do
19775   IFS=$as_save_IFS
19776   test -z "$as_dir" && as_dir=.
19777     for ac_exec_ext in '' $ac_executable_extensions; do
19778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19779     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19781     break 2
19782   fi
19783 done
19784   done
19785 IFS=$as_save_IFS
19786
19787   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19788   ;;
19789 esac
19790 fi
19791 PERL=$ac_cv_path_PERL
19792 if test -n "$PERL"; then
19793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19794 $as_echo "$PERL" >&6; }
19795 else
19796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19797 $as_echo "no" >&6; }
19798 fi
19799
19800
19801 if test "x$ac_cv_path_PERL" = "x"; then
19802   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19803 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19804 fi
19805 # Extract the first word of "snmpget", so it can be a program name with args.
19806 set dummy snmpget; ac_word=$2
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19808 $as_echo_n "checking for $ac_word... " >&6; }
19809 if ${ac_cv_path_SNMPGET+:} false; then :
19810   $as_echo_n "(cached) " >&6
19811 else
19812   case $SNMPGET in
19813   [\\/]* | ?:[\\/]*)
19814   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19815   ;;
19816   *)
19817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818 for as_dir in $PATH
19819 do
19820   IFS=$as_save_IFS
19821   test -z "$as_dir" && as_dir=.
19822     for ac_exec_ext in '' $ac_executable_extensions; do
19823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19824     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19826     break 2
19827   fi
19828 done
19829   done
19830 IFS=$as_save_IFS
19831
19832   ;;
19833 esac
19834 fi
19835 SNMPGET=$ac_cv_path_SNMPGET
19836 if test -n "$SNMPGET"; then
19837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19838 $as_echo "$SNMPGET" >&6; }
19839 else
19840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841 $as_echo "no" >&6; }
19842 fi
19843
19844
19845 if test "x$ac_cv_path_SNMPGET" = "x"; then
19846   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19847 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19848 fi
19849
19850 # Extract the first word of "snmpwalk", so it can be a program name with args.
19851 set dummy snmpwalk; ac_word=$2
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19853 $as_echo_n "checking for $ac_word... " >&6; }
19854 if ${ac_cv_path_SNMPWALK+:} false; then :
19855   $as_echo_n "(cached) " >&6
19856 else
19857   case $SNMPWALK in
19858   [\\/]* | ?:[\\/]*)
19859   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19860   ;;
19861   *)
19862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19863 for as_dir in $PATH
19864 do
19865   IFS=$as_save_IFS
19866   test -z "$as_dir" && as_dir=.
19867     for ac_exec_ext in '' $ac_executable_extensions; do
19868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19869     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19871     break 2
19872   fi
19873 done
19874   done
19875 IFS=$as_save_IFS
19876
19877   ;;
19878 esac
19879 fi
19880 SNMPWALK=$ac_cv_path_SNMPWALK
19881 if test -n "$SNMPWALK"; then
19882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19883 $as_echo "$SNMPWALK" >&6; }
19884 else
19885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19886 $as_echo "no" >&6; }
19887 fi
19888
19889
19890 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19891   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19892 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19893 fi
19894
19895 # Extract the first word of "rusers", so it can be a program name with args.
19896 set dummy rusers; ac_word=$2
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19898 $as_echo_n "checking for $ac_word... " >&6; }
19899 if ${ac_cv_path_RUSERS+:} false; then :
19900   $as_echo_n "(cached) " >&6
19901 else
19902   case $RUSERS in
19903   [\\/]* | ?:[\\/]*)
19904   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19905   ;;
19906   *)
19907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19908 for as_dir in $PATH
19909 do
19910   IFS=$as_save_IFS
19911   test -z "$as_dir" && as_dir=.
19912     for ac_exec_ext in '' $ac_executable_extensions; do
19913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19914     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19916     break 2
19917   fi
19918 done
19919   done
19920 IFS=$as_save_IFS
19921
19922   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19923   ;;
19924 esac
19925 fi
19926 RUSERS=$ac_cv_path_RUSERS
19927 if test -n "$RUSERS"; then
19928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
19929 $as_echo "$RUSERS" >&6; }
19930 else
19931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19932 $as_echo "no" >&6; }
19933 fi
19934
19935
19936
19937 missing_dir=`cd $ac_aux_dir && pwd`
19938 # expand $ac_aux_dir to an absolute path
19939 am_aux_dir=`cd $ac_aux_dir && pwd`
19940
19941 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19942 # Use eval to expand $SHELL
19943 if eval "$MISSING --run true"; then
19944   am_missing_run="$MISSING --run "
19945 else
19946   am_missing_run=
19947   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19948 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19949 fi
19950
19951
19952 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19953
19954
19955 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19956
19957
19958 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19959
19960
19961 # Extract the first word of "locate", so it can be a program name with args.
19962 set dummy locate; ac_word=$2
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19964 $as_echo_n "checking for $ac_word... " >&6; }
19965 if ${ac_cv_path_LOCATE+:} false; then :
19966   $as_echo_n "(cached) " >&6
19967 else
19968   case $LOCATE in
19969   [\\/]* | ?:[\\/]*)
19970   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19971   ;;
19972   *)
19973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19974 for as_dir in $PATH
19975 do
19976   IFS=$as_save_IFS
19977   test -z "$as_dir" && as_dir=.
19978     for ac_exec_ext in '' $ac_executable_extensions; do
19979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19980     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19982     break 2
19983   fi
19984 done
19985   done
19986 IFS=$as_save_IFS
19987
19988   ;;
19989 esac
19990 fi
19991 LOCATE=$ac_cv_path_LOCATE
19992 if test -n "$LOCATE"; then
19993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
19994 $as_echo "$LOCATE" >&6; }
19995 else
19996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19997 $as_echo "no" >&6; }
19998 fi
19999
20000
20001 # Extract the first word of "dirname", so it can be a program name with args.
20002 set dummy dirname; ac_word=$2
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20004 $as_echo_n "checking for $ac_word... " >&6; }
20005 if ${ac_cv_path_DIRNAME+:} false; then :
20006   $as_echo_n "(cached) " >&6
20007 else
20008   case $DIRNAME in
20009   [\\/]* | ?:[\\/]*)
20010   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20011   ;;
20012   *)
20013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20014 for as_dir in $PATH
20015 do
20016   IFS=$as_save_IFS
20017   test -z "$as_dir" && as_dir=.
20018     for ac_exec_ext in '' $ac_executable_extensions; do
20019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20020     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20022     break 2
20023   fi
20024 done
20025   done
20026 IFS=$as_save_IFS
20027
20028   ;;
20029 esac
20030 fi
20031 DIRNAME=$ac_cv_path_DIRNAME
20032 if test -n "$DIRNAME"; then
20033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20034 $as_echo "$DIRNAME" >&6; }
20035 else
20036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20037 $as_echo "no" >&6; }
20038 fi
20039
20040
20041 # Extract the first word of "grep", so it can be a program name with args.
20042 set dummy grep; ac_word=$2
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20044 $as_echo_n "checking for $ac_word... " >&6; }
20045 if ${ac_cv_path_GREP+:} false; then :
20046   $as_echo_n "(cached) " >&6
20047 else
20048   case $GREP in
20049   [\\/]* | ?:[\\/]*)
20050   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20051   ;;
20052   *)
20053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20054 for as_dir in $PATH
20055 do
20056   IFS=$as_save_IFS
20057   test -z "$as_dir" && as_dir=.
20058     for ac_exec_ext in '' $ac_executable_extensions; do
20059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20060     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20062     break 2
20063   fi
20064 done
20065   done
20066 IFS=$as_save_IFS
20067
20068   ;;
20069 esac
20070 fi
20071 GREP=$ac_cv_path_GREP
20072 if test -n "$GREP"; then
20073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20074 $as_echo "$GREP" >&6; }
20075 else
20076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20077 $as_echo "no" >&6; }
20078 fi
20079
20080
20081
20082
20083 old_CFLAGS=$CFLAGS
20084 if test "x$WITH_THREADS" = "xyes"; then
20085   if test $ac_cv_prog_suncc = "yes"; then
20086     CFLAGS="$CFLAGS -mt"
20087   fi
20088
20089   for ac_header in pthread.h
20090 do :
20091   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20092 if test "x$ac_cv_header_pthread_h" = xyes; then :
20093   cat >>confdefs.h <<_ACEOF
20094 #define HAVE_PTHREAD_H 1
20095 _ACEOF
20096
20097 else
20098    WITH_THREADS="no"
20099 fi
20100
20101 done
20102
20103
20104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20105 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20106 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20107   $as_echo_n "(cached) " >&6
20108 else
20109   ac_check_lib_save_LIBS=$LIBS
20110 LIBS="-lpthread  $LIBS"
20111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112 /* end confdefs.h.  */
20113
20114 /* Override any GCC internal prototype to avoid an error.
20115    Use char because int might match the return type of a GCC
20116    builtin and then its argument prototype would still apply.  */
20117 #ifdef __cplusplus
20118 extern "C"
20119 #endif
20120 char pthread_create ();
20121 int
20122 main ()
20123 {
20124 return pthread_create ();
20125   ;
20126   return 0;
20127 }
20128 _ACEOF
20129 if ac_fn_c_try_link "$LINENO"; then :
20130   ac_cv_lib_pthread_pthread_create=yes
20131 else
20132   ac_cv_lib_pthread_pthread_create=no
20133 fi
20134 rm -f core conftest.err conftest.$ac_objext \
20135     conftest$ac_exeext conftest.$ac_ext
20136 LIBS=$ac_check_lib_save_LIBS
20137 fi
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20139 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20140 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20141    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20142                   LIBS="-lpthread $LIBS"
20143 else
20144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20145 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20146 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20147   $as_echo_n "(cached) " >&6
20148 else
20149   ac_check_lib_save_LIBS=$LIBS
20150 LIBS="-lc_r  $LIBS"
20151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20152 /* end confdefs.h.  */
20153
20154 /* Override any GCC internal prototype to avoid an error.
20155    Use char because int might match the return type of a GCC
20156    builtin and then its argument prototype would still apply.  */
20157 #ifdef __cplusplus
20158 extern "C"
20159 #endif
20160 char pthread_create ();
20161 int
20162 main ()
20163 {
20164 return pthread_create ();
20165   ;
20166   return 0;
20167 }
20168 _ACEOF
20169 if ac_fn_c_try_link "$LINENO"; then :
20170   ac_cv_lib_c_r_pthread_create=yes
20171 else
20172   ac_cv_lib_c_r_pthread_create=no
20173 fi
20174 rm -f core conftest.err conftest.$ac_objext \
20175     conftest$ac_exeext conftest.$ac_ext
20176 LIBS=$ac_check_lib_save_LIBS
20177 fi
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20179 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20180 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20181    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20182 else
20183    WITH_THREADS="no"
20184
20185 fi
20186
20187
20188 fi
20189
20190 fi
20191
20192 if test "x$WITH_THREADS" != "xyes"; then
20193   CFLAGS=$old_CFLAGS
20194   ac_cv_header_pthread_h="no"
20195   WITH_THREADS=no
20196 else
20197
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20199 $as_echo_n "checking for library containing sem_init... " >&6; }
20200 if ${ac_cv_search_sem_init+:} false; then :
20201   $as_echo_n "(cached) " >&6
20202 else
20203   ac_func_search_save_LIBS=$LIBS
20204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h.  */
20206
20207 /* Override any GCC internal prototype to avoid an error.
20208    Use char because int might match the return type of a GCC
20209    builtin and then its argument prototype would still apply.  */
20210 #ifdef __cplusplus
20211 extern "C"
20212 #endif
20213 char sem_init ();
20214 int
20215 main ()
20216 {
20217 return sem_init ();
20218   ;
20219   return 0;
20220 }
20221 _ACEOF
20222 for ac_lib in '' pthread sem posix4 rt semaphore; do
20223   if test -z "$ac_lib"; then
20224     ac_res="none required"
20225   else
20226     ac_res=-l$ac_lib
20227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20228   fi
20229   if ac_fn_c_try_link "$LINENO"; then :
20230   ac_cv_search_sem_init=$ac_res
20231 fi
20232 rm -f core conftest.err conftest.$ac_objext \
20233     conftest$ac_exeext
20234   if ${ac_cv_search_sem_init+:} false; then :
20235   break
20236 fi
20237 done
20238 if ${ac_cv_search_sem_init+:} false; then :
20239
20240 else
20241   ac_cv_search_sem_init=no
20242 fi
20243 rm conftest.$ac_ext
20244 LIBS=$ac_func_search_save_LIBS
20245 fi
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20247 $as_echo "$ac_cv_search_sem_init" >&6; }
20248 ac_res=$ac_cv_search_sem_init
20249 if test "$ac_res" != no; then :
20250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20251
20252 else
20253   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
20254
20255 fi
20256
20257 fi
20258
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20260 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20261 if ${ac_cv_lib_socket_getsockname+:} false; then :
20262   $as_echo_n "(cached) " >&6
20263 else
20264   ac_check_lib_save_LIBS=$LIBS
20265 LIBS="-lsocket  $LIBS"
20266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267 /* end confdefs.h.  */
20268
20269 /* Override any GCC internal prototype to avoid an error.
20270    Use char because int might match the return type of a GCC
20271    builtin and then its argument prototype would still apply.  */
20272 #ifdef __cplusplus
20273 extern "C"
20274 #endif
20275 char getsockname ();
20276 int
20277 main ()
20278 {
20279 return getsockname ();
20280   ;
20281   return 0;
20282 }
20283 _ACEOF
20284 if ac_fn_c_try_link "$LINENO"; then :
20285   ac_cv_lib_socket_getsockname=yes
20286 else
20287   ac_cv_lib_socket_getsockname=no
20288 fi
20289 rm -f core conftest.err conftest.$ac_objext \
20290     conftest$ac_exeext conftest.$ac_ext
20291 LIBS=$ac_check_lib_save_LIBS
20292 fi
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20294 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20295 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20296   cat >>confdefs.h <<_ACEOF
20297 #define HAVE_LIBSOCKET 1
20298 _ACEOF
20299
20300   LIBS="-lsocket $LIBS"
20301
20302 fi
20303
20304
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20306 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20307 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20308   $as_echo_n "(cached) " >&6
20309 else
20310   ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lresolv  $LIBS"
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h.  */
20314
20315 /* Override any GCC internal prototype to avoid an error.
20316    Use char because int might match the return type of a GCC
20317    builtin and then its argument prototype would still apply.  */
20318 #ifdef __cplusplus
20319 extern "C"
20320 #endif
20321 char inet_aton ();
20322 int
20323 main ()
20324 {
20325 return inet_aton ();
20326   ;
20327   return 0;
20328 }
20329 _ACEOF
20330 if ac_fn_c_try_link "$LINENO"; then :
20331   ac_cv_lib_resolv_inet_aton=yes
20332 else
20333   ac_cv_lib_resolv_inet_aton=no
20334 fi
20335 rm -f core conftest.err conftest.$ac_objext \
20336     conftest$ac_exeext conftest.$ac_ext
20337 LIBS=$ac_check_lib_save_LIBS
20338 fi
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20340 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20341 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20342   cat >>confdefs.h <<_ACEOF
20343 #define HAVE_LIBRESOLV 1
20344 _ACEOF
20345
20346   LIBS="-lresolv $LIBS"
20347
20348 fi
20349
20350
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20352 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20353 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20354   $as_echo_n "(cached) " >&6
20355 else
20356   ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lnsl  $LIBS"
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h.  */
20360
20361 /* Override any GCC internal prototype to avoid an error.
20362    Use char because int might match the return type of a GCC
20363    builtin and then its argument prototype would still apply.  */
20364 #ifdef __cplusplus
20365 extern "C"
20366 #endif
20367 char inet_ntoa ();
20368 int
20369 main ()
20370 {
20371 return inet_ntoa ();
20372   ;
20373   return 0;
20374 }
20375 _ACEOF
20376 if ac_fn_c_try_link "$LINENO"; then :
20377   ac_cv_lib_nsl_inet_ntoa=yes
20378 else
20379   ac_cv_lib_nsl_inet_ntoa=no
20380 fi
20381 rm -f core conftest.err conftest.$ac_objext \
20382     conftest$ac_exeext conftest.$ac_ext
20383 LIBS=$ac_check_lib_save_LIBS
20384 fi
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20386 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20387 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20388   cat >>confdefs.h <<_ACEOF
20389 #define HAVE_LIBNSL 1
20390 _ACEOF
20391
20392   LIBS="-lnsl $LIBS"
20393
20394 fi
20395
20396
20397 OPENSSL_LIBS=
20398 if test "x$WITH_OPENSSL" = xyes; then
20399   old_LIBS=$LIBS
20400   old_LDFLAGS="$LDFLAGS"
20401   if test "x$OPENSSL_LIB_DIR" != "x"; then
20402     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
20403   fi
20404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20405 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20406 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20407   $as_echo_n "(cached) " >&6
20408 else
20409   ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lcrypto  $LIBS"
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h.  */
20413
20414 /* Override any GCC internal prototype to avoid an error.
20415    Use char because int might match the return type of a GCC
20416    builtin and then its argument prototype would still apply.  */
20417 #ifdef __cplusplus
20418 extern "C"
20419 #endif
20420 char DH_new ();
20421 int
20422 main ()
20423 {
20424 return DH_new ();
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 if ac_fn_c_try_link "$LINENO"; then :
20430   ac_cv_lib_crypto_DH_new=yes
20431 else
20432   ac_cv_lib_crypto_DH_new=no
20433 fi
20434 rm -f core conftest.err conftest.$ac_objext \
20435     conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20437 fi
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20439 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20440 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20441
20442         LIBS="-lcrypto $LIBS"
20443
20444 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20445
20446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20447 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20448 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20449   $as_echo_n "(cached) " >&6
20450 else
20451   ac_check_lib_save_LIBS=$LIBS
20452 LIBS="-lssl  $LIBS"
20453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h.  */
20455
20456 /* Override any GCC internal prototype to avoid an error.
20457    Use char because int might match the return type of a GCC
20458    builtin and then its argument prototype would still apply.  */
20459 #ifdef __cplusplus
20460 extern "C"
20461 #endif
20462 char SSL_new ();
20463 int
20464 main ()
20465 {
20466 return SSL_new ();
20467   ;
20468   return 0;
20469 }
20470 _ACEOF
20471 if ac_fn_c_try_link "$LINENO"; then :
20472   ac_cv_lib_ssl_SSL_new=yes
20473 else
20474   ac_cv_lib_ssl_SSL_new=no
20475 fi
20476 rm -f core conftest.err conftest.$ac_objext \
20477     conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20479 fi
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20481 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20482 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20483
20484
20485 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20486
20487                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20488                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20489                 fi
20490                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20491
20492 fi
20493
20494
20495 fi
20496
20497   LIBS=$old_LIBS
20498   LDFLAGS="$old_LDFLAGS"
20499 fi
20500
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20502 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20503 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20504   $as_echo_n "(cached) " >&6
20505 else
20506   ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lws2_32  $LIBS"
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h.  */
20510
20511 /* Override any GCC internal prototype to avoid an error.
20512    Use char because int might match the return type of a GCC
20513    builtin and then its argument prototype would still apply.  */
20514 #ifdef __cplusplus
20515 extern "C"
20516 #endif
20517 char htonl ();
20518 int
20519 main ()
20520 {
20521 return htonl ();
20522   ;
20523   return 0;
20524 }
20525 _ACEOF
20526 if ac_fn_c_try_link "$LINENO"; then :
20527   ac_cv_lib_ws2_32_htonl=yes
20528 else
20529   ac_cv_lib_ws2_32_htonl=no
20530 fi
20531 rm -f core conftest.err conftest.$ac_objext \
20532     conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20534 fi
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20536 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20537 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20538   cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LIBWS2_32 1
20540 _ACEOF
20541
20542   LIBS="-lws2_32 $LIBS"
20543
20544 fi
20545
20546
20547 PCAP_LIBS=
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20549 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20550 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20551   $as_echo_n "(cached) " >&6
20552 else
20553   ac_check_lib_save_LIBS=$LIBS
20554 LIBS="-lpcap  $LIBS"
20555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h.  */
20557
20558 /* Override any GCC internal prototype to avoid an error.
20559    Use char because int might match the return type of a GCC
20560    builtin and then its argument prototype would still apply.  */
20561 #ifdef __cplusplus
20562 extern "C"
20563 #endif
20564 char pcap_open_live ();
20565 int
20566 main ()
20567 {
20568 return pcap_open_live ();
20569   ;
20570   return 0;
20571 }
20572 _ACEOF
20573 if ac_fn_c_try_link "$LINENO"; then :
20574   ac_cv_lib_pcap_pcap_open_live=yes
20575 else
20576   ac_cv_lib_pcap_pcap_open_live=no
20577 fi
20578 rm -f core conftest.err conftest.$ac_objext \
20579     conftest$ac_exeext conftest.$ac_ext
20580 LIBS=$ac_check_lib_save_LIBS
20581 fi
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20583 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20584 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20585    PCAP_LIBS="-lpcap"
20586
20587 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20588
20589
20590 else
20591    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20592 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20593 fi
20594
20595
20596
20597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20598 $as_echo_n "checking for a readline compatible library... " >&6; }
20599 if ${ac_cv_lib_readline+:} false; then :
20600   $as_echo_n "(cached) " >&6
20601 else
20602
20603     ORIG_LIBS=$LIBS
20604     for readline_lib in readline edit editline; do
20605       for termcap_lib in "" termcap curses ncurses; do
20606         if test -z "$termcap_lib"; then
20607           TRY_LIB="-l$readline_lib"
20608         else
20609           TRY_LIB="-l$readline_lib -l$termcap_lib"
20610         fi
20611         LIBS="$ORIG_LIBS $TRY_LIB"
20612         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20613 /* end confdefs.h.  */
20614
20615 /* Override any GCC internal prototype to avoid an error.
20616    Use char because int might match the return type of a GCC
20617    builtin and then its argument prototype would still apply.  */
20618 #ifdef __cplusplus
20619 extern "C"
20620 #endif
20621 char readline ();
20622 int
20623 main ()
20624 {
20625 return readline ();
20626   ;
20627   return 0;
20628 }
20629 _ACEOF
20630 if ac_fn_c_try_link "$LINENO"; then :
20631   ac_cv_lib_readline="$TRY_LIB"
20632 fi
20633 rm -f core conftest.err conftest.$ac_objext \
20634     conftest$ac_exeext conftest.$ac_ext
20635         if test -n "$ac_cv_lib_readline"; then
20636           LIBREADLINE="$TRY_LIB"
20637
20638           break
20639         fi
20640       done
20641       if test -n "$ac_cv_lib_readline"; then
20642         break
20643       fi
20644     done
20645     if test -z "$ac_cv_lib_readline"; then
20646       ac_cv_lib_readline="no"
20647     fi
20648     LIBS=$ORIG_LIBS
20649
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20652 $as_echo "$ac_cv_lib_readline" >&6; }
20653
20654   if test "$ac_cv_lib_readline" != "no"; then
20655
20656 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20657
20658     for ac_header in readline.h readline/readline.h
20659 do :
20660   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20661 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20663   cat >>confdefs.h <<_ACEOF
20664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20665 _ACEOF
20666
20667 fi
20668
20669 done
20670
20671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20672 $as_echo_n "checking whether readline supports history... " >&6; }
20673 if ${ac_cv_lib_readline_history+:} false; then :
20674   $as_echo_n "(cached) " >&6
20675 else
20676
20677       ac_cv_lib_readline_history="no"
20678       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h.  */
20680
20681 /* Override any GCC internal prototype to avoid an error.
20682    Use char because int might match the return type of a GCC
20683    builtin and then its argument prototype would still apply.  */
20684 #ifdef __cplusplus
20685 extern "C"
20686 #endif
20687 char add_history ();
20688 int
20689 main ()
20690 {
20691 return add_history ();
20692   ;
20693   return 0;
20694 }
20695 _ACEOF
20696 if ac_fn_c_try_link "$LINENO"; then :
20697   ac_cv_lib_readline_history="yes"
20698 fi
20699 rm -f core conftest.err conftest.$ac_objext \
20700     conftest$ac_exeext conftest.$ac_ext
20701
20702 fi
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20704 $as_echo "$ac_cv_lib_readline_history" >&6; }
20705     if test "$ac_cv_lib_readline_history" = "yes"; then
20706
20707 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20708
20709       for ac_header in history.h readline/history.h
20710 do :
20711   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20714   cat >>confdefs.h <<_ACEOF
20715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20716 _ACEOF
20717
20718 fi
20719
20720 done
20721
20722     fi
20723   fi
20724
20725
20726
20727 case "$host" in
20728 *-interix*)
20729         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20730         ;;
20731 *-darwin*)
20732         CFLAGS="$CFLAGS -DDARWIN"
20733         LIBS="-framework DirectoryService $LIBS"
20734         ;;
20735 esac
20736
20737 ac_header_dirent=no
20738 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20739   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20741 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20742 if eval \${$as_ac_Header+:} false; then :
20743   $as_echo_n "(cached) " >&6
20744 else
20745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20746 /* end confdefs.h.  */
20747 #include <sys/types.h>
20748 #include <$ac_hdr>
20749
20750 int
20751 main ()
20752 {
20753 if ((DIR *) 0)
20754 return 0;
20755   ;
20756   return 0;
20757 }
20758 _ACEOF
20759 if ac_fn_c_try_compile "$LINENO"; then :
20760   eval "$as_ac_Header=yes"
20761 else
20762   eval "$as_ac_Header=no"
20763 fi
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 fi
20766 eval ac_res=\$$as_ac_Header
20767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20768 $as_echo "$ac_res" >&6; }
20769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20770   cat >>confdefs.h <<_ACEOF
20771 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20772 _ACEOF
20773
20774 ac_header_dirent=$ac_hdr; break
20775 fi
20776
20777 done
20778 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20779 if test $ac_header_dirent = dirent.h; then
20780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20781 $as_echo_n "checking for library containing opendir... " >&6; }
20782 if ${ac_cv_search_opendir+:} false; then :
20783   $as_echo_n "(cached) " >&6
20784 else
20785   ac_func_search_save_LIBS=$LIBS
20786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h.  */
20788
20789 /* Override any GCC internal prototype to avoid an error.
20790    Use char because int might match the return type of a GCC
20791    builtin and then its argument prototype would still apply.  */
20792 #ifdef __cplusplus
20793 extern "C"
20794 #endif
20795 char opendir ();
20796 int
20797 main ()
20798 {
20799 return opendir ();
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 for ac_lib in '' dir; do
20805   if test -z "$ac_lib"; then
20806     ac_res="none required"
20807   else
20808     ac_res=-l$ac_lib
20809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20810   fi
20811   if ac_fn_c_try_link "$LINENO"; then :
20812   ac_cv_search_opendir=$ac_res
20813 fi
20814 rm -f core conftest.err conftest.$ac_objext \
20815     conftest$ac_exeext
20816   if ${ac_cv_search_opendir+:} false; then :
20817   break
20818 fi
20819 done
20820 if ${ac_cv_search_opendir+:} false; then :
20821
20822 else
20823   ac_cv_search_opendir=no
20824 fi
20825 rm conftest.$ac_ext
20826 LIBS=$ac_func_search_save_LIBS
20827 fi
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20829 $as_echo "$ac_cv_search_opendir" >&6; }
20830 ac_res=$ac_cv_search_opendir
20831 if test "$ac_res" != no; then :
20832   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20833
20834 fi
20835
20836 else
20837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20838 $as_echo_n "checking for library containing opendir... " >&6; }
20839 if ${ac_cv_search_opendir+:} false; then :
20840   $as_echo_n "(cached) " >&6
20841 else
20842   ac_func_search_save_LIBS=$LIBS
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h.  */
20845
20846 /* Override any GCC internal prototype to avoid an error.
20847    Use char because int might match the return type of a GCC
20848    builtin and then its argument prototype would still apply.  */
20849 #ifdef __cplusplus
20850 extern "C"
20851 #endif
20852 char opendir ();
20853 int
20854 main ()
20855 {
20856 return opendir ();
20857   ;
20858   return 0;
20859 }
20860 _ACEOF
20861 for ac_lib in '' x; do
20862   if test -z "$ac_lib"; then
20863     ac_res="none required"
20864   else
20865     ac_res=-l$ac_lib
20866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20867   fi
20868   if ac_fn_c_try_link "$LINENO"; then :
20869   ac_cv_search_opendir=$ac_res
20870 fi
20871 rm -f core conftest.err conftest.$ac_objext \
20872     conftest$ac_exeext
20873   if ${ac_cv_search_opendir+:} false; then :
20874   break
20875 fi
20876 done
20877 if ${ac_cv_search_opendir+:} false; then :
20878
20879 else
20880   ac_cv_search_opendir=no
20881 fi
20882 rm conftest.$ac_ext
20883 LIBS=$ac_func_search_save_LIBS
20884 fi
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20886 $as_echo "$ac_cv_search_opendir" >&6; }
20887 ac_res=$ac_cv_search_opendir
20888 if test "$ac_res" != no; then :
20889   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20890
20891 fi
20892
20893 fi
20894
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20896 $as_echo_n "checking for ANSI C header files... " >&6; }
20897 if ${ac_cv_header_stdc+:} false; then :
20898   $as_echo_n "(cached) " >&6
20899 else
20900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h.  */
20902 #include <stdlib.h>
20903 #include <stdarg.h>
20904 #include <string.h>
20905 #include <float.h>
20906
20907 int
20908 main ()
20909 {
20910
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 if ac_fn_c_try_compile "$LINENO"; then :
20916   ac_cv_header_stdc=yes
20917 else
20918   ac_cv_header_stdc=no
20919 fi
20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921
20922 if test $ac_cv_header_stdc = yes; then
20923   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20925 /* end confdefs.h.  */
20926 #include <string.h>
20927
20928 _ACEOF
20929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20930   $EGREP "memchr" >/dev/null 2>&1; then :
20931
20932 else
20933   ac_cv_header_stdc=no
20934 fi
20935 rm -f conftest*
20936
20937 fi
20938
20939 if test $ac_cv_header_stdc = yes; then
20940   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h.  */
20943 #include <stdlib.h>
20944
20945 _ACEOF
20946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20947   $EGREP "free" >/dev/null 2>&1; then :
20948
20949 else
20950   ac_cv_header_stdc=no
20951 fi
20952 rm -f conftest*
20953
20954 fi
20955
20956 if test $ac_cv_header_stdc = yes; then
20957   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20958   if test "$cross_compiling" = yes; then :
20959   :
20960 else
20961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h.  */
20963 #include <ctype.h>
20964 #include <stdlib.h>
20965 #if ((' ' & 0x0FF) == 0x020)
20966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20968 #else
20969 # define ISLOWER(c) \
20970                    (('a' <= (c) && (c) <= 'i') \
20971                      || ('j' <= (c) && (c) <= 'r') \
20972                      || ('s' <= (c) && (c) <= 'z'))
20973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20974 #endif
20975
20976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20977 int
20978 main ()
20979 {
20980   int i;
20981   for (i = 0; i < 256; i++)
20982     if (XOR (islower (i), ISLOWER (i))
20983         || toupper (i) != TOUPPER (i))
20984       return 2;
20985   return 0;
20986 }
20987 _ACEOF
20988 if ac_fn_c_try_run "$LINENO"; then :
20989
20990 else
20991   ac_cv_header_stdc=no
20992 fi
20993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20994   conftest.$ac_objext conftest.beam conftest.$ac_ext
20995 fi
20996
20997 fi
20998 fi
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21000 $as_echo "$ac_cv_header_stdc" >&6; }
21001 if test $ac_cv_header_stdc = yes; then
21002
21003 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21004
21005 fi
21006
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21008 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21009 if ${ac_cv_header_time+:} false; then :
21010   $as_echo_n "(cached) " >&6
21011 else
21012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h.  */
21014 #include <sys/types.h>
21015 #include <sys/time.h>
21016 #include <time.h>
21017
21018 int
21019 main ()
21020 {
21021 if ((struct tm *) 0)
21022 return 0;
21023   ;
21024   return 0;
21025 }
21026 _ACEOF
21027 if ac_fn_c_try_compile "$LINENO"; then :
21028   ac_cv_header_time=yes
21029 else
21030   ac_cv_header_time=no
21031 fi
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 fi
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21035 $as_echo "$ac_cv_header_time" >&6; }
21036 if test $ac_cv_header_time = yes; then
21037
21038 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21039
21040 fi
21041
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21043 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21044 if ${ac_cv_header_sys_wait_h+:} false; then :
21045   $as_echo_n "(cached) " >&6
21046 else
21047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h.  */
21049 #include <sys/types.h>
21050 #include <sys/wait.h>
21051 #ifndef WEXITSTATUS
21052 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21053 #endif
21054 #ifndef WIFEXITED
21055 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21056 #endif
21057
21058 int
21059 main ()
21060 {
21061   int s;
21062   wait (&s);
21063   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 if ac_fn_c_try_compile "$LINENO"; then :
21069   ac_cv_header_sys_wait_h=yes
21070 else
21071   ac_cv_header_sys_wait_h=no
21072 fi
21073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 fi
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21076 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21077 if test $ac_cv_header_sys_wait_h = yes; then
21078
21079 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21080
21081 fi
21082
21083
21084 for ac_header in \
21085         unistd.h \
21086         crypt.h \
21087         errno.h \
21088         resource.h \
21089         sys/resource.h \
21090         getopt.h \
21091         malloc.h \
21092         utmp.h \
21093         utmpx.h \
21094         signal.h \
21095         sys/select.h \
21096         syslog.h \
21097         inttypes.h \
21098         stdint.h \
21099         stdio.h \
21100         netdb.h \
21101         semaphore.h \
21102         arpa/inet.h \
21103         netinet/in.h \
21104         sys/types.h \
21105         sys/socket.h \
21106         winsock.h \
21107         sys/time.h \
21108         sys/wait.h \
21109         sys/security.h \
21110         fcntl.h \
21111         sys/fcntl.h \
21112         sys/prctl.h \
21113         sys/un.h \
21114         glob.h \
21115         prot.h \
21116         pwd.h \
21117         grp.h \
21118         stddef.h \
21119         fnmatch.h \
21120         sia.h \
21121         siad.h
21122
21123 do :
21124   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21125 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21126 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21127   cat >>confdefs.h <<_ACEOF
21128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21129 _ACEOF
21130
21131 fi
21132
21133 done
21134
21135
21136 for ac_header in net/if.h
21137 do :
21138   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21139 # include <sys/socket.h>
21140 # endif
21141
21142 "
21143 if test "x$ac_cv_header_net_if_h" = xyes; then :
21144   cat >>confdefs.h <<_ACEOF
21145 #define HAVE_NET_IF_H 1
21146 _ACEOF
21147
21148 fi
21149
21150 done
21151
21152
21153 REGEX=no
21154 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21155 if test "x$ac_cv_header_regex_h" = xyes; then :
21156
21157 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21158
21159 fi
21160
21161
21162 if test "x$ac_cv_header_regex_h" = "xyes"; then
21163   REGEX_EXTENDED=no
21164   REGEX=yes
21165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h.  */
21167 #include <regex.h>
21168      #ifdef REG_EXTENDED
21169        yes
21170      #endif
21171
21172 _ACEOF
21173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21174   $EGREP "yes" >/dev/null 2>&1; then :
21175
21176 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21177  REGEX_EXTENDED=yes
21178 fi
21179 rm -f conftest*
21180
21181 fi
21182
21183
21184
21185 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21186 then
21187
21188 $as_echo "#define OSFC2 /**/" >>confdefs.h
21189
21190 fi
21191
21192 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21193 then
21194
21195 $as_echo "#define OSFSIA /**/" >>confdefs.h
21196
21197 fi
21198
21199 OPENSSL_INCLUDE="-DNO_OPENSSL"
21200 if test "x$WITH_OPENSSL" = xyes; then
21201   if test "x$OPENSSL_LIBS" = "x"; then
21202     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
21203 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21204   else
21205     old_CPPFLAGS=$CPPFLAGS
21206     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21207         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21208     fi
21209         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21210     for ac_header in \
21211         openssl/ssl.h \
21212         openssl/crypto.h \
21213         openssl/err.h \
21214         openssl/evp.h \
21215         openssl/ocsp.h \
21216         openssl/engine.h
21217 do :
21218   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21219 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21220 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21221   cat >>confdefs.h <<_ACEOF
21222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21223 _ACEOF
21224
21225 else
21226   OPENSSL_LIBS=
21227
21228 fi
21229
21230 done
21231
21232     if test "x$OPENSSL_LIBS" != "x"; then
21233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21234 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21235         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h.  */
21237 #include <openssl/crypto.h>
21238              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21239              yes
21240              #endif
21241
21242 _ACEOF
21243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21244   $EGREP "yes" >/dev/null 2>&1; then :
21245   goodssl="yes"
21246 fi
21247 rm -f conftest*
21248
21249         if test "x$goodssl" != "xyes"; then
21250             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21251 $as_echo "no" >&6; }
21252             OPENSSL_LIBS=
21253         else
21254             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21255 $as_echo "yes" >&6; }
21256             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21257                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21258             else
21259                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21260             fi
21261         fi
21262     fi
21263     CPPFLAGS=$old_CPPFLAGS
21264   fi
21265 fi
21266
21267
21268 export OPENSSL_LIBS
21269
21270 if test "x$PCAP_LIBS" = x; then
21271     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21272 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21273 else
21274     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21275 if test "x$ac_cv_header_pcap_h" = xyes; then :
21276
21277 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21278
21279 else
21280    PCAP_LIBS=
21281         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21282 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21283
21284 fi
21285
21286
21287
21288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21289 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21290 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21291   $as_echo_n "(cached) " >&6
21292 else
21293   ac_check_lib_save_LIBS=$LIBS
21294 LIBS="-lpcap  $LIBS"
21295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h.  */
21297
21298 /* Override any GCC internal prototype to avoid an error.
21299    Use char because int might match the return type of a GCC
21300    builtin and then its argument prototype would still apply.  */
21301 #ifdef __cplusplus
21302 extern "C"
21303 #endif
21304 char pcap_fopen_offline ();
21305 int
21306 main ()
21307 {
21308 return pcap_fopen_offline ();
21309   ;
21310   return 0;
21311 }
21312 _ACEOF
21313 if ac_fn_c_try_link "$LINENO"; then :
21314   ac_cv_lib_pcap_pcap_fopen_offline=yes
21315 else
21316   ac_cv_lib_pcap_pcap_fopen_offline=no
21317 fi
21318 rm -f core conftest.err conftest.$ac_objext \
21319     conftest$ac_exeext conftest.$ac_ext
21320 LIBS=$ac_check_lib_save_LIBS
21321 fi
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21323 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21324 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21325
21326 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21327
21328
21329 fi
21330
21331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21332 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21333 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21334   $as_echo_n "(cached) " >&6
21335 else
21336   ac_check_lib_save_LIBS=$LIBS
21337 LIBS="-lpcap  $LIBS"
21338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21339 /* end confdefs.h.  */
21340
21341 /* Override any GCC internal prototype to avoid an error.
21342    Use char because int might match the return type of a GCC
21343    builtin and then its argument prototype would still apply.  */
21344 #ifdef __cplusplus
21345 extern "C"
21346 #endif
21347 char pcap_dump_fopen ();
21348 int
21349 main ()
21350 {
21351 return pcap_dump_fopen ();
21352   ;
21353   return 0;
21354 }
21355 _ACEOF
21356 if ac_fn_c_try_link "$LINENO"; then :
21357   ac_cv_lib_pcap_pcap_dump_fopen=yes
21358 else
21359   ac_cv_lib_pcap_pcap_dump_fopen=no
21360 fi
21361 rm -f core conftest.err conftest.$ac_objext \
21362     conftest$ac_exeext conftest.$ac_ext
21363 LIBS=$ac_check_lib_save_LIBS
21364 fi
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21366 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21367 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21368
21369 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21370
21371
21372 fi
21373
21374 fi
21375
21376
21377
21378 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21379 if test "x$ac_cv_type_off_t" = xyes; then :
21380
21381 else
21382
21383 cat >>confdefs.h <<_ACEOF
21384 #define off_t long int
21385 _ACEOF
21386
21387 fi
21388
21389 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21390 if test "x$ac_cv_type_pid_t" = xyes; then :
21391
21392 else
21393
21394 cat >>confdefs.h <<_ACEOF
21395 #define pid_t int
21396 _ACEOF
21397
21398 fi
21399
21400 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21401 if test "x$ac_cv_type_size_t" = xyes; then :
21402
21403 else
21404
21405 cat >>confdefs.h <<_ACEOF
21406 #define size_t unsigned int
21407 _ACEOF
21408
21409 fi
21410
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21412 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21413 if ${ac_cv_type_uid_t+:} false; then :
21414   $as_echo_n "(cached) " >&6
21415 else
21416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h.  */
21418 #include <sys/types.h>
21419
21420 _ACEOF
21421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21422   $EGREP "uid_t" >/dev/null 2>&1; then :
21423   ac_cv_type_uid_t=yes
21424 else
21425   ac_cv_type_uid_t=no
21426 fi
21427 rm -f conftest*
21428
21429 fi
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21431 $as_echo "$ac_cv_type_uid_t" >&6; }
21432 if test $ac_cv_type_uid_t = no; then
21433
21434 $as_echo "#define uid_t int" >>confdefs.h
21435
21436
21437 $as_echo "#define gid_t int" >>confdefs.h
21438
21439 fi
21440
21441
21442
21443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21444 $as_echo_n "checking for socklen_t... " >&6; }
21445 if ${ac_cv_type_socklen_t+:} false; then :
21446   $as_echo_n "(cached) " >&6
21447 else
21448    ac_cv_type_socklen_t=no
21449       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21450 /* end confdefs.h.  */
21451 #ifdef HAVE_SYS_TYPES_H
21452 #include <sys/types.h>
21453 #endif
21454 #ifdef HAVE_SYS_SOCKET_H
21455 #include <sys/socket.h>
21456 #endif
21457
21458 int
21459 main ()
21460 {
21461 socklen_t foo
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 if ac_fn_c_try_compile "$LINENO"; then :
21467   ac_cv_type_socklen_t=yes
21468 fi
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470
21471
21472 fi
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21474 $as_echo "$ac_cv_type_socklen_t" >&6; }
21475
21476   if test "$ac_cv_type_socklen_t" != "yes"; then
21477
21478 $as_echo "#define socklen_t int" >>confdefs.h
21479
21480   fi
21481
21482
21483
21484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21485 $as_echo_n "checking for uint8_t... " >&6; }
21486 if ${ac_cv_type_uint8_t+:} false; then :
21487   $as_echo_n "(cached) " >&6
21488 else
21489    ac_cv_type_uint8_t=no
21490       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491 /* end confdefs.h.  */
21492 #ifdef HAVE_INTTYPES_H
21493 #include <inttypes.h>
21494 #endif
21495 #ifdef HAVE_STDINT_H
21496 #include <stdint.h>
21497 #endif
21498
21499 int
21500 main ()
21501 {
21502 uint8_t foo
21503   ;
21504   return 0;
21505 }
21506 _ACEOF
21507 if ac_fn_c_try_compile "$LINENO"; then :
21508   ac_cv_type_uint8_t=yes
21509 fi
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511
21512
21513 fi
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21515 $as_echo "$ac_cv_type_uint8_t" >&6; }
21516
21517   if test "$ac_cv_type_uint8_t" != "yes"; then
21518
21519 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21520
21521   fi
21522
21523
21524
21525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21526 $as_echo_n "checking for uint16_t... " >&6; }
21527 if ${ac_cv_type_uint16_t+:} false; then :
21528   $as_echo_n "(cached) " >&6
21529 else
21530    ac_cv_type_uint16_t=no
21531       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21532 /* end confdefs.h.  */
21533 #ifdef HAVE_INTTYPES_H
21534 #include <inttypes.h>
21535 #endif
21536 #ifdef HAVE_STDINT_H
21537 #include <stdint.h>
21538 #endif
21539
21540 int
21541 main ()
21542 {
21543 uint16_t foo
21544   ;
21545   return 0;
21546 }
21547 _ACEOF
21548 if ac_fn_c_try_compile "$LINENO"; then :
21549   ac_cv_type_uint16_t=yes
21550 fi
21551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552
21553
21554 fi
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21556 $as_echo "$ac_cv_type_uint16_t" >&6; }
21557
21558   if test "$ac_cv_type_uint16_t" != "yes"; then
21559
21560 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21561
21562   fi
21563
21564
21565
21566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21567 $as_echo_n "checking for uint32_t... " >&6; }
21568 if ${ac_cv_type_uint32_t+:} false; then :
21569   $as_echo_n "(cached) " >&6
21570 else
21571    ac_cv_type_uint32_t=no
21572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21573 /* end confdefs.h.  */
21574 #ifdef HAVE_INTTYPES_H
21575 #include <inttypes.h>
21576 #endif
21577 #ifdef HAVE_STDINT_H
21578 #include <stdint.h>
21579 #endif
21580
21581 int
21582 main ()
21583 {
21584 uint32_t foo
21585   ;
21586   return 0;
21587 }
21588 _ACEOF
21589 if ac_fn_c_try_compile "$LINENO"; then :
21590   ac_cv_type_uint32_t=yes
21591 fi
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593
21594
21595 fi
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21597 $as_echo "$ac_cv_type_uint32_t" >&6; }
21598
21599   if test "$ac_cv_type_uint32_t" != "yes"; then
21600
21601 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21602
21603   fi
21604
21605
21606 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21607 #ifdef HAVE_NETINET_IN_H
21608 #include <netinet/in.h>
21609 #endif
21610
21611 "
21612 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21613
21614 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21615
21616 fi
21617
21618
21619 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21620 #ifdef HAVE_NETINET_IN_H
21621 #include <netinet/in.h>
21622 #endif
21623 #ifdef HAVE_SYS_SOCKET_H
21624 #include <sys/socket.h>
21625 #endif
21626
21627 "
21628 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21629
21630 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21631
21632 fi
21633
21634
21635 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21636 #ifdef HAVE_NETINET_IN_H
21637 #include <netinet/in.h>
21638 #endif
21639
21640 "
21641 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21642
21643 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21644
21645 fi
21646
21647
21648 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21649 #ifdef HAVE_SYS_TYPES_H
21650 #include <sys/types.h>
21651 #endif
21652 #ifdef HAVE_SYS_SOCKET_H
21653 #include <sys/socket.h>
21654 #endif
21655 #ifdef HAVE_NETDB_H
21656 #include <netdb.h>
21657 #endif
21658
21659 "
21660 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21661
21662 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21663
21664 fi
21665
21666
21667 for ac_func in \
21668         getopt_long \
21669         lockf \
21670         strsignal \
21671         sigaction \
21672         sigprocmask \
21673         pthread_sigmask \
21674         snprintf \
21675         vsnprintf \
21676         setsid \
21677         strncasecmp \
21678         strcasecmp \
21679         localtime_r \
21680         ctime_r \
21681         gmtime_r \
21682         strsep \
21683         inet_aton \
21684         inet_pton \
21685         inet_ntop \
21686         setlinebuf \
21687         setvbuf \
21688         getusershell \
21689         initgroups \
21690         getaddrinfo \
21691         getnameinfo \
21692         closefrom \
21693         gettimeofday \
21694         getpeereid \
21695         setuid \
21696         setresuid \
21697         getresuid \
21698         strlcat \
21699         strlcpy
21700
21701 do :
21702   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21704 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21705   cat >>confdefs.h <<_ACEOF
21706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21707 _ACEOF
21708
21709 fi
21710 done
21711
21712 for ac_func in \
21713         crypt \
21714         strncasecmp \
21715         strcasecmp \
21716         inet_aton \
21717         setlinebuf \
21718         getusershell \
21719         endusershell
21720
21721 do
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21723 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21724 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21725   $as_echo_n "(cached) " >&6
21726 else
21727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21728 /* end confdefs.h.  */
21729
21730 #include <stdio.h>
21731 #include <string.h>
21732 #ifdef HAVE_UNISTD_H
21733 #include <unistd.h>
21734 #endif
21735 #ifdef HAVE_CRYPT_H
21736 #include <crypt.h>
21737 #endif
21738 #ifdef HAVE_ERRNO_H
21739 #include <errno.h>
21740 #endif
21741 #ifdef HAVE_RESOURCE_H
21742 #include <resource.h>
21743 #endif
21744 #ifdef HAVE_GETOPT_H
21745 #include <getopt.h>
21746 #endif
21747 #ifdef HAVE_MALLOC_H
21748 #include <malloc.h>
21749 #endif
21750 #ifdef HAVE_UTMP_H
21751 #include <utmp.h>
21752 #endif
21753 #ifdef HAVE_UTMPX_H
21754 #include <utmpx.h>
21755 #endif
21756 #ifdef HAVE_SYS_SELECT_H
21757 #include <sys/select.h>
21758 #endif
21759 #ifdef HAVE_DLFCN_H
21760 #include <dlfcn.h>
21761 #endif
21762 #ifdef HAVE_REGEX_H
21763 #include <regex.h>
21764 #endif
21765 #ifdef HAVE_SYSLOG_H
21766 #include <syslog.h>
21767 #endif
21768 #ifdef HAVE_INTTYPES_H
21769 #include <inttypes.h>
21770 #endif
21771 #ifdef HAVE_STDINT_H
21772 #include <stdint.h>
21773 #endif
21774 #ifdef HAVE_ARPA_INET_H
21775 #include <arpa/inet.h>
21776 #endif
21777
21778 int
21779 main ()
21780 {
21781 char *(*pfn) = (char *(*)) $ac_func
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 if ac_fn_c_try_compile "$LINENO"; then :
21787   eval "radius_cv_decl_needed_$ac_func=no"
21788 else
21789   eval "radius_cv_decl_needed_$ac_func=yes"
21790 fi
21791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792 fi
21793
21794 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21796 $as_echo "yes" >&6; }
21797   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21798   cat >>confdefs.h <<_ACEOF
21799 #define $radius_tr_decl 1
21800 _ACEOF
21801
21802 else
21803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21804 $as_echo "no" >&6; }
21805 fi
21806
21807 done
21808
21809
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21811 $as_echo_n "checking return type of signal handlers... " >&6; }
21812 if ${ac_cv_type_signal+:} false; then :
21813   $as_echo_n "(cached) " >&6
21814 else
21815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h.  */
21817 #include <sys/types.h>
21818 #include <signal.h>
21819
21820 int
21821 main ()
21822 {
21823 return *(signal (0, 0)) (0) == 1;
21824   ;
21825   return 0;
21826 }
21827 _ACEOF
21828 if ac_fn_c_try_compile "$LINENO"; then :
21829   ac_cv_type_signal=int
21830 else
21831   ac_cv_type_signal=void
21832 fi
21833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21834 fi
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21836 $as_echo "$ac_cv_type_signal" >&6; }
21837
21838 cat >>confdefs.h <<_ACEOF
21839 #define RETSIGTYPE $ac_cv_type_signal
21840 _ACEOF
21841
21842
21843
21844 if test "x$ac_cv_header_utmpx_h" = "xyes"
21845 then
21846
21847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
21848 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
21849
21850
21851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h.  */
21853
21854 #include <utmpx.h>
21855 #ifdef HAVE_STDDEF_H
21856 #include <stddef.h>
21857 #endif
21858 #ifndef offsetof
21859 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21860 #endif
21861
21862 int
21863 main ()
21864 {
21865  int foo = offsetof(struct utmpx, ut_xtime)
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 if ac_fn_c_try_compile "$LINENO"; then :
21871   has_element=" "
21872 else
21873   has_element=
21874 fi
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21876
21877   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21878   if test "x$has_element" != "x"; then
21879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21880 $as_echo "yes" >&6; }
21881     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21882   else
21883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21884 $as_echo "no" >&6; }
21885     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21886  fi
21887
21888  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21889  then
21890
21891 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
21892
21893  fi
21894 fi
21895
21896
21897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
21898 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
21899
21900
21901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21902 /* end confdefs.h.  */
21903
21904 #include <netinet/in.h>
21905 #ifdef HAVE_STDDEF_H
21906 #include <stddef.h>
21907 #endif
21908 #ifndef offsetof
21909 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21910 #endif
21911
21912 int
21913 main ()
21914 {
21915  int foo = offsetof(struct in_pktinfo, ipi_addr)
21916   ;
21917   return 0;
21918 }
21919 _ACEOF
21920 if ac_fn_c_try_compile "$LINENO"; then :
21921   has_element=" "
21922 else
21923   has_element=
21924 fi
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926
21927   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
21928   if test "x$has_element" != "x"; then
21929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21930 $as_echo "yes" >&6; }
21931     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
21932   else
21933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21934 $as_echo "no" >&6; }
21935     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
21936  fi
21937
21938 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
21939 then
21940
21941 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
21942
21943 fi
21944
21945
21946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
21947 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
21948
21949
21950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21951 /* end confdefs.h.  */
21952
21953 #include <netinet/in.h>
21954 #ifdef HAVE_STDDEF_H
21955 #include <stddef.h>
21956 #endif
21957 #ifndef offsetof
21958 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21959 #endif
21960
21961 int
21962 main ()
21963 {
21964  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
21965   ;
21966   return 0;
21967 }
21968 _ACEOF
21969 if ac_fn_c_try_compile "$LINENO"; then :
21970   has_element=" "
21971 else
21972   has_element=
21973 fi
21974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975
21976   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
21977   if test "x$has_element" != "x"; then
21978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21979 $as_echo "yes" >&6; }
21980     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
21981   else
21982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21983 $as_echo "no" >&6; }
21984     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
21985  fi
21986
21987 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
21988 then
21989
21990 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
21991
21992 fi
21993
21994
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21996 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21997 if ${ac_cv_c_const+:} false; then :
21998   $as_echo_n "(cached) " >&6
21999 else
22000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22001 /* end confdefs.h.  */
22002
22003 int
22004 main ()
22005 {
22006
22007 #ifndef __cplusplus
22008   /* Ultrix mips cc rejects this sort of thing.  */
22009   typedef int charset[2];
22010   const charset cs = { 0, 0 };
22011   /* SunOS 4.1.1 cc rejects this.  */
22012   char const *const *pcpcc;
22013   char **ppc;
22014   /* NEC SVR4.0.2 mips cc rejects this.  */
22015   struct point {int x, y;};
22016   static struct point const zero = {0,0};
22017   /* AIX XL C 1.02.0.0 rejects this.
22018      It does not let you subtract one const X* pointer from another in
22019      an arm of an if-expression whose if-part is not a constant
22020      expression */
22021   const char *g = "string";
22022   pcpcc = &g + (g ? g-g : 0);
22023   /* HPUX 7.0 cc rejects these. */
22024   ++pcpcc;
22025   ppc = (char**) pcpcc;
22026   pcpcc = (char const *const *) ppc;
22027   { /* SCO 3.2v4 cc rejects this sort of thing.  */
22028     char tx;
22029     char *t = &tx;
22030     char const *s = 0 ? (char *) 0 : (char const *) 0;
22031
22032     *t++ = 0;
22033     if (s) return 0;
22034   }
22035   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22036     int x[] = {25, 17};
22037     const int *foo = &x[0];
22038     ++foo;
22039   }
22040   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22041     typedef const int *iptr;
22042     iptr p = 0;
22043     ++p;
22044   }
22045   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22046        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22047     struct s { int j; const int *ap[3]; } bx;
22048     struct s *b = &bx; b->j = 5;
22049   }
22050   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22051     const int foo = 10;
22052     if (!foo) return 0;
22053   }
22054   return !cs[0] && !zero.x;
22055 #endif
22056
22057   ;
22058   return 0;
22059 }
22060 _ACEOF
22061 if ac_fn_c_try_compile "$LINENO"; then :
22062   ac_cv_c_const=yes
22063 else
22064   ac_cv_c_const=no
22065 fi
22066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22069 $as_echo "$ac_cv_c_const" >&6; }
22070 if test $ac_cv_c_const = no; then
22071
22072 $as_echo "#define const /**/" >>confdefs.h
22073
22074 fi
22075
22076
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22078 $as_echo_n "checking type of OS... " >&6; }
22079 OS=`uname -s`
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22081 $as_echo "$OS" >&6; }
22082 if test "$OS" = "OS/2"; then
22083         LIBPREFIX=
22084 else
22085         LIBPREFIX=lib
22086 fi
22087
22088
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22090 $as_echo_n "checking for developer gcc flags... " >&6; }
22091 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22092   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22093   CFLAGS="$CFLAGS $devflags"
22094   INSTALLSTRIP=""
22095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
22096 $as_echo "yes.  Using $devflags" >&6; }
22097 else
22098   devflags=""
22099   CFLAGS="$CFLAGS -DNDEBUG"
22100   INSTALLSTRIP=""
22101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22102 $as_echo "no." >&6; }
22103 fi
22104
22105
22106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22107 $as_echo_n "checking for TLS... " >&6; }
22108     if test "$cross_compiling" = yes; then :
22109   have_tls=no
22110 else
22111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22112 /* end confdefs.h.  */
22113  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22114 _ACEOF
22115 if ac_fn_c_try_run "$LINENO"; then :
22116   have_tls=yes
22117 else
22118   have_tls=no
22119 fi
22120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22121   conftest.$ac_objext conftest.beam conftest.$ac_ext
22122 fi
22123
22124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22125 $as_echo "$have_tls" >&6; }
22126     if test "$have_tls" = "yes"; then
22127
22128 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22129
22130     fi
22131
22132
22133
22134 old_LIBS="$LIBS"
22135 LIBS="$LIBS $LIBLTDL"
22136 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22137 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22138
22139 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22140
22141 fi
22142
22143 LIBS="$old_LIBS"
22144
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22146 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22147 if ${ac_cv_lib_crypt_crypt+:} false; then :
22148   $as_echo_n "(cached) " >&6
22149 else
22150   ac_check_lib_save_LIBS=$LIBS
22151 LIBS="-lcrypt  $LIBS"
22152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22153 /* end confdefs.h.  */
22154
22155 /* Override any GCC internal prototype to avoid an error.
22156    Use char because int might match the return type of a GCC
22157    builtin and then its argument prototype would still apply.  */
22158 #ifdef __cplusplus
22159 extern "C"
22160 #endif
22161 char crypt ();
22162 int
22163 main ()
22164 {
22165 return crypt ();
22166   ;
22167   return 0;
22168 }
22169 _ACEOF
22170 if ac_fn_c_try_link "$LINENO"; then :
22171   ac_cv_lib_crypt_crypt=yes
22172 else
22173   ac_cv_lib_crypt_crypt=no
22174 fi
22175 rm -f core conftest.err conftest.$ac_objext \
22176     conftest$ac_exeext conftest.$ac_ext
22177 LIBS=$ac_check_lib_save_LIBS
22178 fi
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22180 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22181 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22182   CRYPTLIB="-lcrypt"
22183
22184 fi
22185
22186 if test "$CRYPTLIB" != ""; then
22187
22188 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22189
22190 else
22191   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22192 if test "x$ac_cv_func_crypt" = xyes; then :
22193
22194 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22195
22196 fi
22197
22198 fi
22199
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22201 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22202 if ${ac_cv_lib_cipher_setkey+:} false; then :
22203   $as_echo_n "(cached) " >&6
22204 else
22205   ac_check_lib_save_LIBS=$LIBS
22206 LIBS="-lcipher  $LIBS"
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h.  */
22209
22210 /* Override any GCC internal prototype to avoid an error.
22211    Use char because int might match the return type of a GCC
22212    builtin and then its argument prototype would still apply.  */
22213 #ifdef __cplusplus
22214 extern "C"
22215 #endif
22216 char setkey ();
22217 int
22218 main ()
22219 {
22220 return setkey ();
22221   ;
22222   return 0;
22223 }
22224 _ACEOF
22225 if ac_fn_c_try_link "$LINENO"; then :
22226   ac_cv_lib_cipher_setkey=yes
22227 else
22228   ac_cv_lib_cipher_setkey=no
22229 fi
22230 rm -f core conftest.err conftest.$ac_objext \
22231     conftest$ac_exeext conftest.$ac_ext
22232 LIBS=$ac_check_lib_save_LIBS
22233 fi
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22235 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22236 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22237   CRYPTLIB="${CRYPTLIB} -lcipher"
22238
22239 fi
22240
22241
22242
22243
22244 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22245
22246
22247 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22248
22249
22250 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22251
22252 gethostbyaddrrstyle=""
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22254 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22255 case "$host" in
22256 *-freebsd*)
22257         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22258 #ifdef HAVE_NETDB_H
22259 #include <netdb.h>
22260 #endif
22261
22262 "
22263 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22264   ac_have_decl=1
22265 else
22266   ac_have_decl=0
22267 fi
22268
22269 cat >>confdefs.h <<_ACEOF
22270 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22271 _ACEOF
22272 if test $ac_have_decl = 1; then :
22273
22274 else
22275
22276
22277 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22278
22279                 gethostbyaddrrstyle=BSD
22280                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22281 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22282
22283 fi
22284
22285         ;;
22286 esac
22287 if test "x$gethostbyaddrrstyle" = "x"; then
22288         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h.  */
22290
22291 #include <stdio.h>
22292 #include <netdb.h>
22293
22294 int
22295 main ()
22296 {
22297  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22298   ;
22299   return 0;
22300 }
22301 _ACEOF
22302 if ac_fn_c_try_link "$LINENO"; then :
22303
22304
22305 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22306
22307         gethostbyaddrrstyle=GNU
22308
22309 fi
22310 rm -f core conftest.err conftest.$ac_objext \
22311     conftest$ac_exeext conftest.$ac_ext
22312 fi
22313 if test "x$gethostbyaddrrstyle" = "x"; then
22314         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315 /* end confdefs.h.  */
22316
22317 #include <stdio.h>
22318 #include <netdb.h>
22319
22320 int
22321 main ()
22322 {
22323  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22324   ;
22325   return 0;
22326 }
22327 _ACEOF
22328 if ac_fn_c_try_link "$LINENO"; then :
22329
22330
22331 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22332
22333                 gethostbyaddrrstyle=SYSV
22334
22335 fi
22336 rm -f core conftest.err conftest.$ac_objext \
22337     conftest$ac_exeext conftest.$ac_ext
22338 fi
22339 if test "x$gethostbyaddrrstyle" = "x"; then
22340         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22341 /* end confdefs.h.  */
22342
22343 #include <stdio.h>
22344 #include <netdb.h>
22345
22346 int
22347 main ()
22348 {
22349  gethostbyaddr(NULL, 0, 0)
22350   ;
22351   return 0;
22352 }
22353 _ACEOF
22354 if ac_fn_c_try_link "$LINENO"; then :
22355
22356
22357 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22358
22359                 gethostbyaddrrstyle=BSD
22360
22361 fi
22362 rm -f core conftest.err conftest.$ac_objext \
22363     conftest$ac_exeext conftest.$ac_ext
22364 fi
22365
22366 if test "x$gethostbyaddrrstyle" = "x"; then
22367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22368 $as_echo "none!  It must not exist, here." >&6; }
22369 else
22370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22371 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22372 fi
22373
22374 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22375         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22376 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22377 fi
22378
22379 gethostbynamerstyle=""
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22381 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h.  */
22384
22385 #include <stdio.h>
22386 #include <netdb.h>
22387
22388 int
22389 main ()
22390 {
22391  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22392   ;
22393   return 0;
22394 }
22395 _ACEOF
22396 if ac_fn_c_try_link "$LINENO"; then :
22397
22398
22399 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22400
22401         gethostbynamerstyle=GNU
22402
22403 fi
22404 rm -f core conftest.err conftest.$ac_objext \
22405     conftest$ac_exeext conftest.$ac_ext
22406 if test "x$gethostbynamerstyle" = "x"; then
22407         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22408 /* end confdefs.h.  */
22409
22410 #include <stdio.h>
22411 #include <netdb.h>
22412
22413 int
22414 main ()
22415 {
22416  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22417   ;
22418   return 0;
22419 }
22420 _ACEOF
22421 if ac_fn_c_try_link "$LINENO"; then :
22422
22423
22424 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22425
22426                 gethostbynamerstyle=SYSV
22427
22428 fi
22429 rm -f core conftest.err conftest.$ac_objext \
22430     conftest$ac_exeext conftest.$ac_ext
22431 fi
22432 if test "x$gethostbynamerstyle" = "x"; then
22433         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h.  */
22435
22436 #include <stdio.h>
22437 #include <netdb.h>
22438
22439 int
22440 main ()
22441 {
22442  gethostbyname(NULL)
22443   ;
22444   return 0;
22445 }
22446 _ACEOF
22447 if ac_fn_c_try_link "$LINENO"; then :
22448
22449
22450 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22451
22452                 gethostbynamerstyle=BSD
22453
22454 fi
22455 rm -f core conftest.err conftest.$ac_objext \
22456     conftest$ac_exeext conftest.$ac_ext
22457 fi
22458
22459 if test "x$gethostbynamerstyle" = "x"; then
22460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22461 $as_echo "none!  It must not exist, here." >&6; }
22462 else
22463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22464 $as_echo "${gethostbynamerstyle}-style" >&6; }
22465 fi
22466
22467 if test "x$gethostbynamerstyle" = "xBSD"; then
22468         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22469 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22470 fi
22471
22472
22473 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22474
22475
22476 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22477
22478 ctimerstyle=""
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22480 $as_echo_n "checking ctime_r() syntax... " >&6; }
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h.  */
22483
22484 #include <time.h>
22485
22486 int
22487 main ()
22488 {
22489  ctime_r(NULL, NULL, 0)
22490   ;
22491   return 0;
22492 }
22493 _ACEOF
22494 if ac_fn_c_try_link "$LINENO"; then :
22495
22496
22497 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22498
22499         ctimerstyle="SOLARIS"
22500
22501 fi
22502 rm -f core conftest.err conftest.$ac_objext \
22503     conftest$ac_exeext conftest.$ac_ext
22504 if test "x$ctimerstyle" = "x"; then
22505         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h.  */
22507
22508 #include <time.h>
22509
22510 int
22511 main ()
22512 {
22513  ctime_r(NULL, NULL)
22514   ;
22515   return 0;
22516 }
22517 _ACEOF
22518 if ac_fn_c_try_link "$LINENO"; then :
22519
22520
22521 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22522
22523                 ctimerstyle="POSIX"
22524
22525 fi
22526 rm -f core conftest.err conftest.$ac_objext \
22527     conftest$ac_exeext conftest.$ac_ext
22528 fi
22529
22530 if test "x$ctimerstyle" = "x"; then
22531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22532 $as_echo "none!  It must not exist, here." >&6; }
22533 else
22534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22535 $as_echo "${ctimerstyle}-style" >&6; }
22536 fi
22537
22538 HOSTINFO=$host
22539
22540
22541 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22542
22543 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22544
22545 fi
22546
22547
22548 top_builddir=`pwd`
22549 export top_builddir
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22551 $as_echo "top_builddir=$top_builddir" >&6; }
22552
22553
22554
22555
22556
22557 mysubdirs="$LIBLTDLPATH"
22558 if test "x$EXPERIMENTAL" = "xyes"; then
22559   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22560     mysubdirs=`echo $mysubdirs $bar`
22561 else
22562         for bar in `cat "${srcdir}"/src/modules/stable`; do
22563     if test -f "${srcdir}"/src/modules/$bar/configure; then
22564       mysubdirs="$mysubdirs src/modules/$bar"
22565     fi
22566   done
22567 fi
22568
22569 if test "x$EXPERIMENTAL" = "xyes"; then
22570   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22571     MODULES="$MODULES $foo"
22572   done
22573 else
22574             for foo in `cat "${srcdir}"/src/modules/stable`; do
22575     MODULES="$MODULES $foo"
22576    done
22577 fi
22578
22579
22580
22581 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22582
22583
22584
22585
22586 ac_config_commands="$ac_config_commands stamp-h"
22587
22588 ac_config_commands="$ac_config_commands build-radpaths-h"
22589
22590 ac_config_commands="$ac_config_commands main-chmod"
22591
22592 ac_config_commands="$ac_config_commands scripts-chmod"
22593
22594
22595
22596
22597
22598 USE_SHARED_LIBS=$enable_shared
22599
22600 USE_STATIC_LIBS=$enable_static
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611   unset ac_cv_env_LIBS_set
22612   unset ac_cv_env_LIBS_value
22613
22614   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"
22615
22616 cat >confcache <<\_ACEOF
22617 # This file is a shell script that caches the results of configure
22618 # tests run on this system so they can be shared between configure
22619 # scripts and configure runs, see configure's option --config-cache.
22620 # It is not useful on other systems.  If it contains results you don't
22621 # want to keep, you may remove or edit it.
22622 #
22623 # config.status only pays attention to the cache file if you give it
22624 # the --recheck option to rerun configure.
22625 #
22626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22628 # following values.
22629
22630 _ACEOF
22631
22632 # The following way of writing the cache mishandles newlines in values,
22633 # but we know of no workaround that is simple, portable, and efficient.
22634 # So, we kill variables containing newlines.
22635 # Ultrix sh set writes to stderr and can't be redirected directly,
22636 # and sets the high bit in the cache file unless we assign to the vars.
22637 (
22638   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22639     eval ac_val=\$$ac_var
22640     case $ac_val in #(
22641     *${as_nl}*)
22642       case $ac_var in #(
22643       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22645       esac
22646       case $ac_var in #(
22647       _ | IFS | as_nl) ;; #(
22648       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22649       *) { eval $ac_var=; unset $ac_var;} ;;
22650       esac ;;
22651     esac
22652   done
22653
22654   (set) 2>&1 |
22655     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22656     *${as_nl}ac_space=\ *)
22657       # `set' does not quote correctly, so add quotes: double-quote
22658       # substitution turns \\\\ into \\, and sed turns \\ into \.
22659       sed -n \
22660         "s/'/'\\\\''/g;
22661           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22662       ;; #(
22663     *)
22664       # `set' quotes correctly as required by POSIX, so do not add quotes.
22665       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22666       ;;
22667     esac |
22668     sort
22669 ) |
22670   sed '
22671      /^ac_cv_env_/b end
22672      t clear
22673      :clear
22674      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22675      t end
22676      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22677      :end' >>confcache
22678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22679   if test -w "$cache_file"; then
22680     if test "x$cache_file" != "x/dev/null"; then
22681       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22682 $as_echo "$as_me: updating cache $cache_file" >&6;}
22683       if test ! -f "$cache_file" || test -h "$cache_file"; then
22684         cat confcache >"$cache_file"
22685       else
22686         case $cache_file in #(
22687         */* | ?:*)
22688           mv -f confcache "$cache_file"$$ &&
22689           mv -f "$cache_file"$$ "$cache_file" ;; #(
22690         *)
22691           mv -f confcache "$cache_file" ;;
22692         esac
22693       fi
22694     fi
22695   else
22696     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22698   fi
22699 fi
22700 rm -f confcache
22701
22702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22703 # Let make expand exec_prefix.
22704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22705
22706 DEFS=-DHAVE_CONFIG_H
22707
22708 ac_libobjs=
22709 ac_ltlibobjs=
22710 U=
22711 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22712   # 1. Remove the extension, and $U if already installed.
22713   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22714   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22715   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22716   #    will be set to the directory where LIBOBJS objects are built.
22717   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22718   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22719 done
22720 LIBOBJS=$ac_libobjs
22721
22722 LTLIBOBJS=$ac_ltlibobjs
22723
22724
22725
22726
22727 : "${CONFIG_STATUS=./config.status}"
22728 ac_write_fail=0
22729 ac_clean_files_save=$ac_clean_files
22730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22732 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22733 as_write_fail=0
22734 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22735 #! $SHELL
22736 # Generated by $as_me.
22737 # Run this file to recreate the current configuration.
22738 # Compiler output produced by configure, useful for debugging
22739 # configure, is in config.log if it exists.
22740
22741 debug=false
22742 ac_cs_recheck=false
22743 ac_cs_silent=false
22744
22745 SHELL=\${CONFIG_SHELL-$SHELL}
22746 export SHELL
22747 _ASEOF
22748 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22749 ## -------------------- ##
22750 ## M4sh Initialization. ##
22751 ## -------------------- ##
22752
22753 # Be more Bourne compatible
22754 DUALCASE=1; export DUALCASE # for MKS sh
22755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22756   emulate sh
22757   NULLCMD=:
22758   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22759   # is contrary to our usage.  Disable this feature.
22760   alias -g '${1+"$@"}'='"$@"'
22761   setopt NO_GLOB_SUBST
22762 else
22763   case `(set -o) 2>/dev/null` in #(
22764   *posix*) :
22765     set -o posix ;; #(
22766   *) :
22767      ;;
22768 esac
22769 fi
22770
22771
22772 as_nl='
22773 '
22774 export as_nl
22775 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22776 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22779 # Prefer a ksh shell builtin over an external printf program on Solaris,
22780 # but without wasting forks for bash or zsh.
22781 if test -z "$BASH_VERSION$ZSH_VERSION" \
22782     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22783   as_echo='print -r --'
22784   as_echo_n='print -rn --'
22785 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22786   as_echo='printf %s\n'
22787   as_echo_n='printf %s'
22788 else
22789   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22790     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22791     as_echo_n='/usr/ucb/echo -n'
22792   else
22793     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22794     as_echo_n_body='eval
22795       arg=$1;
22796       case $arg in #(
22797       *"$as_nl"*)
22798         expr "X$arg" : "X\\(.*\\)$as_nl";
22799         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22800       esac;
22801       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22802     '
22803     export as_echo_n_body
22804     as_echo_n='sh -c $as_echo_n_body as_echo'
22805   fi
22806   export as_echo_body
22807   as_echo='sh -c $as_echo_body as_echo'
22808 fi
22809
22810 # The user is always right.
22811 if test "${PATH_SEPARATOR+set}" != set; then
22812   PATH_SEPARATOR=:
22813   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22814     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22815       PATH_SEPARATOR=';'
22816   }
22817 fi
22818
22819
22820 # IFS
22821 # We need space, tab and new line, in precisely that order.  Quoting is
22822 # there to prevent editors from complaining about space-tab.
22823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22824 # splitting by setting IFS to empty value.)
22825 IFS=" ""        $as_nl"
22826
22827 # Find who we are.  Look in the path if we contain no directory separator.
22828 as_myself=
22829 case $0 in #((
22830   *[\\/]* ) as_myself=$0 ;;
22831   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22832 for as_dir in $PATH
22833 do
22834   IFS=$as_save_IFS
22835   test -z "$as_dir" && as_dir=.
22836     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22837   done
22838 IFS=$as_save_IFS
22839
22840      ;;
22841 esac
22842 # We did not find ourselves, most probably we were run as `sh COMMAND'
22843 # in which case we are not to be found in the path.
22844 if test "x$as_myself" = x; then
22845   as_myself=$0
22846 fi
22847 if test ! -f "$as_myself"; then
22848   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22849   exit 1
22850 fi
22851
22852 # Unset variables that we do not need and which cause bugs (e.g. in
22853 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22854 # suppresses any "Segmentation fault" message there.  '((' could
22855 # trigger a bug in pdksh 5.2.14.
22856 for as_var in BASH_ENV ENV MAIL MAILPATH
22857 do eval test x\${$as_var+set} = xset \
22858   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22859 done
22860 PS1='$ '
22861 PS2='> '
22862 PS4='+ '
22863
22864 # NLS nuisances.
22865 LC_ALL=C
22866 export LC_ALL
22867 LANGUAGE=C
22868 export LANGUAGE
22869
22870 # CDPATH.
22871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22872
22873
22874 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22875 # ----------------------------------------
22876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22878 # script with STATUS, using 1 if that was 0.
22879 as_fn_error ()
22880 {
22881   as_status=$1; test $as_status -eq 0 && as_status=1
22882   if test "$4"; then
22883     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22884     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22885   fi
22886   $as_echo "$as_me: error: $2" >&2
22887   as_fn_exit $as_status
22888 } # as_fn_error
22889
22890
22891 # as_fn_set_status STATUS
22892 # -----------------------
22893 # Set $? to STATUS, without forking.
22894 as_fn_set_status ()
22895 {
22896   return $1
22897 } # as_fn_set_status
22898
22899 # as_fn_exit STATUS
22900 # -----------------
22901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22902 as_fn_exit ()
22903 {
22904   set +e
22905   as_fn_set_status $1
22906   exit $1
22907 } # as_fn_exit
22908
22909 # as_fn_unset VAR
22910 # ---------------
22911 # Portably unset VAR.
22912 as_fn_unset ()
22913 {
22914   { eval $1=; unset $1;}
22915 }
22916 as_unset=as_fn_unset
22917 # as_fn_append VAR VALUE
22918 # ----------------------
22919 # Append the text in VALUE to the end of the definition contained in VAR. Take
22920 # advantage of any shell optimizations that allow amortized linear growth over
22921 # repeated appends, instead of the typical quadratic growth present in naive
22922 # implementations.
22923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22924   eval 'as_fn_append ()
22925   {
22926     eval $1+=\$2
22927   }'
22928 else
22929   as_fn_append ()
22930   {
22931     eval $1=\$$1\$2
22932   }
22933 fi # as_fn_append
22934
22935 # as_fn_arith ARG...
22936 # ------------------
22937 # Perform arithmetic evaluation on the ARGs, and store the result in the
22938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22939 # must be portable across $(()) and expr.
22940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22941   eval 'as_fn_arith ()
22942   {
22943     as_val=$(( $* ))
22944   }'
22945 else
22946   as_fn_arith ()
22947   {
22948     as_val=`expr "$@" || test $? -eq 1`
22949   }
22950 fi # as_fn_arith
22951
22952
22953 if expr a : '\(a\)' >/dev/null 2>&1 &&
22954    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22955   as_expr=expr
22956 else
22957   as_expr=false
22958 fi
22959
22960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22961   as_basename=basename
22962 else
22963   as_basename=false
22964 fi
22965
22966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22967   as_dirname=dirname
22968 else
22969   as_dirname=false
22970 fi
22971
22972 as_me=`$as_basename -- "$0" ||
22973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22974          X"$0" : 'X\(//\)$' \| \
22975          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22976 $as_echo X/"$0" |
22977     sed '/^.*\/\([^/][^/]*\)\/*$/{
22978             s//\1/
22979             q
22980           }
22981           /^X\/\(\/\/\)$/{
22982             s//\1/
22983             q
22984           }
22985           /^X\/\(\/\).*/{
22986             s//\1/
22987             q
22988           }
22989           s/.*/./; q'`
22990
22991 # Avoid depending upon Character Ranges.
22992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22995 as_cr_digits='0123456789'
22996 as_cr_alnum=$as_cr_Letters$as_cr_digits
22997
22998 ECHO_C= ECHO_N= ECHO_T=
22999 case `echo -n x` in #(((((
23000 -n*)
23001   case `echo 'xy\c'` in
23002   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23003   xy)  ECHO_C='\c';;
23004   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23005        ECHO_T=' ';;
23006   esac;;
23007 *)
23008   ECHO_N='-n';;
23009 esac
23010
23011 rm -f conf$$ conf$$.exe conf$$.file
23012 if test -d conf$$.dir; then
23013   rm -f conf$$.dir/conf$$.file
23014 else
23015   rm -f conf$$.dir
23016   mkdir conf$$.dir 2>/dev/null
23017 fi
23018 if (echo >conf$$.file) 2>/dev/null; then
23019   if ln -s conf$$.file conf$$ 2>/dev/null; then
23020     as_ln_s='ln -s'
23021     # ... but there are two gotchas:
23022     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23023     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23024     # In both cases, we have to default to `cp -pR'.
23025     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23026       as_ln_s='cp -pR'
23027   elif ln conf$$.file conf$$ 2>/dev/null; then
23028     as_ln_s=ln
23029   else
23030     as_ln_s='cp -pR'
23031   fi
23032 else
23033   as_ln_s='cp -pR'
23034 fi
23035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23036 rmdir conf$$.dir 2>/dev/null
23037
23038
23039 # as_fn_mkdir_p
23040 # -------------
23041 # Create "$as_dir" as a directory, including parents if necessary.
23042 as_fn_mkdir_p ()
23043 {
23044
23045   case $as_dir in #(
23046   -*) as_dir=./$as_dir;;
23047   esac
23048   test -d "$as_dir" || eval $as_mkdir_p || {
23049     as_dirs=
23050     while :; do
23051       case $as_dir in #(
23052       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23053       *) as_qdir=$as_dir;;
23054       esac
23055       as_dirs="'$as_qdir' $as_dirs"
23056       as_dir=`$as_dirname -- "$as_dir" ||
23057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058          X"$as_dir" : 'X\(//\)[^/]' \| \
23059          X"$as_dir" : 'X\(//\)$' \| \
23060          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23061 $as_echo X"$as_dir" |
23062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23063             s//\1/
23064             q
23065           }
23066           /^X\(\/\/\)[^/].*/{
23067             s//\1/
23068             q
23069           }
23070           /^X\(\/\/\)$/{
23071             s//\1/
23072             q
23073           }
23074           /^X\(\/\).*/{
23075             s//\1/
23076             q
23077           }
23078           s/.*/./; q'`
23079       test -d "$as_dir" && break
23080     done
23081     test -z "$as_dirs" || eval "mkdir $as_dirs"
23082   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23083
23084
23085 } # as_fn_mkdir_p
23086 if mkdir -p . 2>/dev/null; then
23087   as_mkdir_p='mkdir -p "$as_dir"'
23088 else
23089   test -d ./-p && rmdir ./-p
23090   as_mkdir_p=false
23091 fi
23092
23093
23094 # as_fn_executable_p FILE
23095 # -----------------------
23096 # Test if FILE is an executable regular file.
23097 as_fn_executable_p ()
23098 {
23099   test -f "$1" && test -x "$1"
23100 } # as_fn_executable_p
23101 as_test_x='test -x'
23102 as_executable_p=as_fn_executable_p
23103
23104 # Sed expression to map a string onto a valid CPP name.
23105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23106
23107 # Sed expression to map a string onto a valid variable name.
23108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23109
23110
23111 exec 6>&1
23112 ## ----------------------------------- ##
23113 ## Main body of $CONFIG_STATUS script. ##
23114 ## ----------------------------------- ##
23115 _ASEOF
23116 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23117
23118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23119 # Save the log message, to keep $0 and so on meaningful, and to
23120 # report actual input values of CONFIG_FILES etc. instead of their
23121 # values after options handling.
23122 ac_log="
23123 This file was extended by $as_me, which was
23124 generated by GNU Autoconf 2.69.  Invocation command line was
23125
23126   CONFIG_FILES    = $CONFIG_FILES
23127   CONFIG_HEADERS  = $CONFIG_HEADERS
23128   CONFIG_LINKS    = $CONFIG_LINKS
23129   CONFIG_COMMANDS = $CONFIG_COMMANDS
23130   $ $0 $@
23131
23132 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23133 "
23134
23135 _ACEOF
23136
23137 case $ac_config_files in *"
23138 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23139 esac
23140
23141 case $ac_config_headers in *"
23142 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23143 esac
23144
23145
23146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23147 # Files that config.status was made for.
23148 config_files="$ac_config_files"
23149 config_headers="$ac_config_headers"
23150 config_commands="$ac_config_commands"
23151
23152 _ACEOF
23153
23154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23155 ac_cs_usage="\
23156 \`$as_me' instantiates files and other configuration actions
23157 from templates according to the current configuration.  Unless the files
23158 and actions are specified as TAGs, all are instantiated by default.
23159
23160 Usage: $0 [OPTION]... [TAG]...
23161
23162   -h, --help       print this help, then exit
23163   -V, --version    print version number and configuration settings, then exit
23164       --config     print configuration, then exit
23165   -q, --quiet, --silent
23166                    do not print progress messages
23167   -d, --debug      don't remove temporary files
23168       --recheck    update $as_me by reconfiguring in the same conditions
23169       --file=FILE[:TEMPLATE]
23170                    instantiate the configuration file FILE
23171       --header=FILE[:TEMPLATE]
23172                    instantiate the configuration header FILE
23173
23174 Configuration files:
23175 $config_files
23176
23177 Configuration headers:
23178 $config_headers
23179
23180 Configuration commands:
23181 $config_commands
23182
23183 Report bugs to the package provider."
23184
23185 _ACEOF
23186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23187 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23188 ac_cs_version="\\
23189 config.status
23190 configured by $0, generated by GNU Autoconf 2.69,
23191   with options \\"\$ac_cs_config\\"
23192
23193 Copyright (C) 2012 Free Software Foundation, Inc.
23194 This config.status script is free software; the Free Software Foundation
23195 gives unlimited permission to copy, distribute and modify it."
23196
23197 ac_pwd='$ac_pwd'
23198 srcdir='$srcdir'
23199 test -n "\$AWK" || AWK=awk
23200 _ACEOF
23201
23202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23203 # The default lists apply if the user does not specify any file.
23204 ac_need_defaults=:
23205 while test $# != 0
23206 do
23207   case $1 in
23208   --*=?*)
23209     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23210     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23211     ac_shift=:
23212     ;;
23213   --*=)
23214     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23215     ac_optarg=
23216     ac_shift=:
23217     ;;
23218   *)
23219     ac_option=$1
23220     ac_optarg=$2
23221     ac_shift=shift
23222     ;;
23223   esac
23224
23225   case $ac_option in
23226   # Handling of the options.
23227   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23228     ac_cs_recheck=: ;;
23229   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23230     $as_echo "$ac_cs_version"; exit ;;
23231   --config | --confi | --conf | --con | --co | --c )
23232     $as_echo "$ac_cs_config"; exit ;;
23233   --debug | --debu | --deb | --de | --d | -d )
23234     debug=: ;;
23235   --file | --fil | --fi | --f )
23236     $ac_shift
23237     case $ac_optarg in
23238     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23239     '') as_fn_error $? "missing file argument" ;;
23240     esac
23241     as_fn_append CONFIG_FILES " '$ac_optarg'"
23242     ac_need_defaults=false;;
23243   --header | --heade | --head | --hea )
23244     $ac_shift
23245     case $ac_optarg in
23246     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23247     esac
23248     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23249     ac_need_defaults=false;;
23250   --he | --h)
23251     # Conflict between --help and --header
23252     as_fn_error $? "ambiguous option: \`$1'
23253 Try \`$0 --help' for more information.";;
23254   --help | --hel | -h )
23255     $as_echo "$ac_cs_usage"; exit ;;
23256   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23257   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23258     ac_cs_silent=: ;;
23259
23260   # This is an error.
23261   -*) as_fn_error $? "unrecognized option: \`$1'
23262 Try \`$0 --help' for more information." ;;
23263
23264   *) as_fn_append ac_config_targets " $1"
23265      ac_need_defaults=false ;;
23266
23267   esac
23268   shift
23269 done
23270
23271 ac_configure_extra_args=
23272
23273 if $ac_cs_silent; then
23274   exec 6>/dev/null
23275   ac_configure_extra_args="$ac_configure_extra_args --silent"
23276 fi
23277
23278 _ACEOF
23279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23280 if \$ac_cs_recheck; then
23281   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23282   shift
23283   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23284   CONFIG_SHELL='$SHELL'
23285   export CONFIG_SHELL
23286   exec "\$@"
23287 fi
23288
23289 _ACEOF
23290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23291 exec 5>>config.log
23292 {
23293   echo
23294   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23295 ## Running $as_me. ##
23296 _ASBOX
23297   $as_echo "$ac_log"
23298 } >&5
23299
23300 _ACEOF
23301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23302 _ACEOF
23303
23304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23305
23306 # Handling of arguments.
23307 for ac_config_target in $ac_config_targets
23308 do
23309   case $ac_config_target in
23310     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23311     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23312     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23313     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23314     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23315     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23316     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23317     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23318     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23319     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23320     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23321     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23322     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23323     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23324     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23325     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23326     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23327     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23328     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23329
23330   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23331   esac
23332 done
23333
23334
23335 # If the user did not use the arguments to specify the items to instantiate,
23336 # then the envvar interface is used.  Set only those that are not.
23337 # We use the long form for the default assignment because of an extremely
23338 # bizarre bug on SunOS 4.1.3.
23339 if $ac_need_defaults; then
23340   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23341   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23342   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23343 fi
23344
23345 # Have a temporary directory for convenience.  Make it in the build tree
23346 # simply because there is no reason against having it here, and in addition,
23347 # creating and moving files from /tmp can sometimes cause problems.
23348 # Hook for its removal unless debugging.
23349 # Note that there is a small window in which the directory will not be cleaned:
23350 # after its creation but before its name has been assigned to `$tmp'.
23351 $debug ||
23352 {
23353   tmp= ac_tmp=
23354   trap 'exit_status=$?
23355   : "${ac_tmp:=$tmp}"
23356   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23357 ' 0
23358   trap 'as_fn_exit 1' 1 2 13 15
23359 }
23360 # Create a (secure) tmp directory for tmp files.
23361
23362 {
23363   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23364   test -d "$tmp"
23365 }  ||
23366 {
23367   tmp=./conf$$-$RANDOM
23368   (umask 077 && mkdir "$tmp")
23369 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23370 ac_tmp=$tmp
23371
23372 # Set up the scripts for CONFIG_FILES section.
23373 # No need to generate them if there are no CONFIG_FILES.
23374 # This happens for instance with `./config.status config.h'.
23375 if test -n "$CONFIG_FILES"; then
23376
23377
23378 ac_cr=`echo X | tr X '\015'`
23379 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23380 # But we know of no other shell where ac_cr would be empty at this
23381 # point, so we can use a bashism as a fallback.
23382 if test "x$ac_cr" = x; then
23383   eval ac_cr=\$\'\\r\'
23384 fi
23385 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23387   ac_cs_awk_cr='\\r'
23388 else
23389   ac_cs_awk_cr=$ac_cr
23390 fi
23391
23392 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23393 _ACEOF
23394
23395
23396 {
23397   echo "cat >conf$$subs.awk <<_ACEOF" &&
23398   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23399   echo "_ACEOF"
23400 } >conf$$subs.sh ||
23401   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23403 ac_delim='%!_!# '
23404 for ac_last_try in false false false false false :; do
23405   . ./conf$$subs.sh ||
23406     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23407
23408   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23409   if test $ac_delim_n = $ac_delim_num; then
23410     break
23411   elif $ac_last_try; then
23412     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23413   else
23414     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23415   fi
23416 done
23417 rm -f conf$$subs.sh
23418
23419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23420 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23421 _ACEOF
23422 sed -n '
23423 h
23424 s/^/S["/; s/!.*/"]=/
23425 p
23426 g
23427 s/^[^!]*!//
23428 :repl
23429 t repl
23430 s/'"$ac_delim"'$//
23431 t delim
23432 :nl
23433 h
23434 s/\(.\{148\}\)..*/\1/
23435 t more1
23436 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23437 p
23438 n
23439 b repl
23440 :more1
23441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23442 p
23443 g
23444 s/.\{148\}//
23445 t nl
23446 :delim
23447 h
23448 s/\(.\{148\}\)..*/\1/
23449 t more2
23450 s/["\\]/\\&/g; s/^/"/; s/$/"/
23451 p
23452 b
23453 :more2
23454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23455 p
23456 g
23457 s/.\{148\}//
23458 t delim
23459 ' <conf$$subs.awk | sed '
23460 /^[^""]/{
23461   N
23462   s/\n//
23463 }
23464 ' >>$CONFIG_STATUS || ac_write_fail=1
23465 rm -f conf$$subs.awk
23466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23467 _ACAWK
23468 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23469   for (key in S) S_is_set[key] = 1
23470   FS = "\a"
23471
23472 }
23473 {
23474   line = $ 0
23475   nfields = split(line, field, "@")
23476   substed = 0
23477   len = length(field[1])
23478   for (i = 2; i < nfields; i++) {
23479     key = field[i]
23480     keylen = length(key)
23481     if (S_is_set[key]) {
23482       value = S[key]
23483       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23484       len += length(value) + length(field[++i])
23485       substed = 1
23486     } else
23487       len += 1 + keylen
23488   }
23489
23490   print line
23491 }
23492
23493 _ACAWK
23494 _ACEOF
23495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23497   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23498 else
23499   cat
23500 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23501   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23502 _ACEOF
23503
23504 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23505 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23506 # trailing colons and then remove the whole line if VPATH becomes empty
23507 # (actually we leave an empty line to preserve line numbers).
23508 if test "x$srcdir" = x.; then
23509   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23510 h
23511 s///
23512 s/^/:/
23513 s/[      ]*$/:/
23514 s/:\$(srcdir):/:/g
23515 s/:\${srcdir}:/:/g
23516 s/:@srcdir@:/:/g
23517 s/^:*//
23518 s/:*$//
23519 x
23520 s/\(=[   ]*\).*/\1/
23521 G
23522 s/\n//
23523 s/^[^=]*=[       ]*$//
23524 }'
23525 fi
23526
23527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23528 fi # test -n "$CONFIG_FILES"
23529
23530 # Set up the scripts for CONFIG_HEADERS section.
23531 # No need to generate them if there are no CONFIG_HEADERS.
23532 # This happens for instance with `./config.status Makefile'.
23533 if test -n "$CONFIG_HEADERS"; then
23534 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23535 BEGIN {
23536 _ACEOF
23537
23538 # Transform confdefs.h into an awk script `defines.awk', embedded as
23539 # here-document in config.status, that substitutes the proper values into
23540 # config.h.in to produce config.h.
23541
23542 # Create a delimiter string that does not exist in confdefs.h, to ease
23543 # handling of long lines.
23544 ac_delim='%!_!# '
23545 for ac_last_try in false false :; do
23546   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23547   if test -z "$ac_tt"; then
23548     break
23549   elif $ac_last_try; then
23550     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23551   else
23552     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23553   fi
23554 done
23555
23556 # For the awk script, D is an array of macro values keyed by name,
23557 # likewise P contains macro parameters if any.  Preserve backslash
23558 # newline sequences.
23559
23560 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23561 sed -n '
23562 s/.\{148\}/&'"$ac_delim"'/g
23563 t rset
23564 :rset
23565 s/^[     ]*#[    ]*define[       ][      ]*/ /
23566 t def
23567 d
23568 :def
23569 s/\\$//
23570 t bsnl
23571 s/["\\]/\\&/g
23572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23573 D["\1"]=" \3"/p
23574 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23575 d
23576 :bsnl
23577 s/["\\]/\\&/g
23578 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23579 D["\1"]=" \3\\\\\\n"\\/p
23580 t cont
23581 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23582 t cont
23583 d
23584 :cont
23585 n
23586 s/.\{148\}/&'"$ac_delim"'/g
23587 t clear
23588 :clear
23589 s/\\$//
23590 t bsnlc
23591 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23592 d
23593 :bsnlc
23594 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23595 b cont
23596 ' <confdefs.h | sed '
23597 s/'"$ac_delim"'/"\\\
23598 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23599
23600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23601   for (key in D) D_is_set[key] = 1
23602   FS = "\a"
23603 }
23604 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23605   line = \$ 0
23606   split(line, arg, " ")
23607   if (arg[1] == "#") {
23608     defundef = arg[2]
23609     mac1 = arg[3]
23610   } else {
23611     defundef = substr(arg[1], 2)
23612     mac1 = arg[2]
23613   }
23614   split(mac1, mac2, "(") #)
23615   macro = mac2[1]
23616   prefix = substr(line, 1, index(line, defundef) - 1)
23617   if (D_is_set[macro]) {
23618     # Preserve the white space surrounding the "#".
23619     print prefix "define", macro P[macro] D[macro]
23620     next
23621   } else {
23622     # Replace #undef with comments.  This is necessary, for example,
23623     # in the case of _POSIX_SOURCE, which is predefined and required
23624     # on some systems where configure will not decide to define it.
23625     if (defundef == "undef") {
23626       print "/*", prefix defundef, macro, "*/"
23627       next
23628     }
23629   }
23630 }
23631 { print }
23632 _ACAWK
23633 _ACEOF
23634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23635   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23636 fi # test -n "$CONFIG_HEADERS"
23637
23638
23639 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23640 shift
23641 for ac_tag
23642 do
23643   case $ac_tag in
23644   :[FHLC]) ac_mode=$ac_tag; continue;;
23645   esac
23646   case $ac_mode$ac_tag in
23647   :[FHL]*:*);;
23648   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23649   :[FH]-) ac_tag=-:-;;
23650   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23651   esac
23652   ac_save_IFS=$IFS
23653   IFS=:
23654   set x $ac_tag
23655   IFS=$ac_save_IFS
23656   shift
23657   ac_file=$1
23658   shift
23659
23660   case $ac_mode in
23661   :L) ac_source=$1;;
23662   :[FH])
23663     ac_file_inputs=
23664     for ac_f
23665     do
23666       case $ac_f in
23667       -) ac_f="$ac_tmp/stdin";;
23668       *) # Look for the file first in the build tree, then in the source tree
23669          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23670          # because $ac_f cannot contain `:'.
23671          test -f "$ac_f" ||
23672            case $ac_f in
23673            [\\/$]*) false;;
23674            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23675            esac ||
23676            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23677       esac
23678       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23679       as_fn_append ac_file_inputs " '$ac_f'"
23680     done
23681
23682     # Let's still pretend it is `configure' which instantiates (i.e., don't
23683     # use $as_me), people would be surprised to read:
23684     #    /* config.h.  Generated by config.status.  */
23685     configure_input='Generated from '`
23686           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23687         `' by configure.'
23688     if test x"$ac_file" != x-; then
23689       configure_input="$ac_file.  $configure_input"
23690       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23691 $as_echo "$as_me: creating $ac_file" >&6;}
23692     fi
23693     # Neutralize special characters interpreted by sed in replacement strings.
23694     case $configure_input in #(
23695     *\&* | *\|* | *\\* )
23696        ac_sed_conf_input=`$as_echo "$configure_input" |
23697        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23698     *) ac_sed_conf_input=$configure_input;;
23699     esac
23700
23701     case $ac_tag in
23702     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23703       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23704     esac
23705     ;;
23706   esac
23707
23708   ac_dir=`$as_dirname -- "$ac_file" ||
23709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23710          X"$ac_file" : 'X\(//\)[^/]' \| \
23711          X"$ac_file" : 'X\(//\)$' \| \
23712          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23713 $as_echo X"$ac_file" |
23714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23715             s//\1/
23716             q
23717           }
23718           /^X\(\/\/\)[^/].*/{
23719             s//\1/
23720             q
23721           }
23722           /^X\(\/\/\)$/{
23723             s//\1/
23724             q
23725           }
23726           /^X\(\/\).*/{
23727             s//\1/
23728             q
23729           }
23730           s/.*/./; q'`
23731   as_dir="$ac_dir"; as_fn_mkdir_p
23732   ac_builddir=.
23733
23734 case "$ac_dir" in
23735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23736 *)
23737   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23738   # A ".." for each directory in $ac_dir_suffix.
23739   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23740   case $ac_top_builddir_sub in
23741   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23742   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23743   esac ;;
23744 esac
23745 ac_abs_top_builddir=$ac_pwd
23746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23747 # for backward compatibility:
23748 ac_top_builddir=$ac_top_build_prefix
23749
23750 case $srcdir in
23751   .)  # We are building in place.
23752     ac_srcdir=.
23753     ac_top_srcdir=$ac_top_builddir_sub
23754     ac_abs_top_srcdir=$ac_pwd ;;
23755   [\\/]* | ?:[\\/]* )  # Absolute name.
23756     ac_srcdir=$srcdir$ac_dir_suffix;
23757     ac_top_srcdir=$srcdir
23758     ac_abs_top_srcdir=$srcdir ;;
23759   *) # Relative name.
23760     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23761     ac_top_srcdir=$ac_top_build_prefix$srcdir
23762     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23763 esac
23764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23765
23766
23767   case $ac_mode in
23768   :F)
23769   #
23770   # CONFIG_FILE
23771   #
23772
23773 _ACEOF
23774
23775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23776 # If the template does not know about datarootdir, expand it.
23777 # FIXME: This hack should be removed a few years after 2.60.
23778 ac_datarootdir_hack=; ac_datarootdir_seen=
23779 ac_sed_dataroot='
23780 /datarootdir/ {
23781   p
23782   q
23783 }
23784 /@datadir@/p
23785 /@docdir@/p
23786 /@infodir@/p
23787 /@localedir@/p
23788 /@mandir@/p'
23789 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23790 *datarootdir*) ac_datarootdir_seen=yes;;
23791 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23792   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23793 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23794 _ACEOF
23795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23796   ac_datarootdir_hack='
23797   s&@datadir@&$datadir&g
23798   s&@docdir@&$docdir&g
23799   s&@infodir@&$infodir&g
23800   s&@localedir@&$localedir&g
23801   s&@mandir@&$mandir&g
23802   s&\\\${datarootdir}&$datarootdir&g' ;;
23803 esac
23804 _ACEOF
23805
23806 # Neutralize VPATH when `$srcdir' = `.'.
23807 # Shell code in configure.ac might set extrasub.
23808 # FIXME: do we really want to maintain this feature?
23809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23810 ac_sed_extra="$ac_vpsub
23811 $extrasub
23812 _ACEOF
23813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23814 :t
23815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23816 s|@configure_input@|$ac_sed_conf_input|;t t
23817 s&@top_builddir@&$ac_top_builddir_sub&;t t
23818 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23819 s&@srcdir@&$ac_srcdir&;t t
23820 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23821 s&@top_srcdir@&$ac_top_srcdir&;t t
23822 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23823 s&@builddir@&$ac_builddir&;t t
23824 s&@abs_builddir@&$ac_abs_builddir&;t t
23825 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23826 $ac_datarootdir_hack
23827 "
23828 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23829   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23830
23831 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23832   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23833   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23834       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23835   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23836 which seems to be undefined.  Please make sure it is defined" >&5
23837 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23838 which seems to be undefined.  Please make sure it is defined" >&2;}
23839
23840   rm -f "$ac_tmp/stdin"
23841   case $ac_file in
23842   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23843   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23844   esac \
23845   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23846  ;;
23847   :H)
23848   #
23849   # CONFIG_HEADER
23850   #
23851   if test x"$ac_file" != x-; then
23852     {
23853       $as_echo "/* $configure_input  */" \
23854       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23855     } >"$ac_tmp/config.h" \
23856       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23857     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23858       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23859 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23860     else
23861       rm -f "$ac_file"
23862       mv "$ac_tmp/config.h" "$ac_file" \
23863         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23864     fi
23865   else
23866     $as_echo "/* $configure_input  */" \
23867       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23868       || as_fn_error $? "could not create -" "$LINENO" 5
23869   fi
23870  ;;
23871
23872   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23873 $as_echo "$as_me: executing $ac_file commands" >&6;}
23874  ;;
23875   esac
23876
23877
23878   case $ac_file$ac_mode in
23879     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
23880     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
23881     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
23882     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
23883
23884   esac
23885 done # for ac_tag
23886
23887
23888 as_fn_exit 0
23889 _ACEOF
23890 ac_clean_files=$ac_clean_files_save
23891
23892 test $ac_write_fail = 0 ||
23893   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23894
23895
23896 # configure is writing to config.log, and then calls config.status.
23897 # config.status does its own redirection, appending to config.log.
23898 # Unfortunately, on DOS this fails, as config.log is still kept open
23899 # by configure, so config.status won't be able to write to it; its
23900 # output is simply discarded.  So we exec the FD to /dev/null,
23901 # effectively closing config.log, so it can be properly (re)opened and
23902 # appended to by config.status.  When coming back to configure, we
23903 # need to make the FD available again.
23904 if test "$no_create" != yes; then
23905   ac_cs_success=:
23906   ac_config_status_args=
23907   test "$silent" = yes &&
23908     ac_config_status_args="$ac_config_status_args --quiet"
23909   exec 5>/dev/null
23910   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23911   exec 5>>config.log
23912   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23913   # would make configure fail if this is the last instruction.
23914   $ac_cs_success || as_fn_exit 1
23915 fi
23916
23917 #
23918 # CONFIG_SUBDIRS section.
23919 #
23920 if test "$no_recursion" != yes; then
23921
23922   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23923   # so they do not pile up.
23924   ac_sub_configure_args=
23925   ac_prev=
23926   eval "set x $ac_configure_args"
23927   shift
23928   for ac_arg
23929   do
23930     if test -n "$ac_prev"; then
23931       ac_prev=
23932       continue
23933     fi
23934     case $ac_arg in
23935     -cache-file | --cache-file | --cache-fil | --cache-fi \
23936     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23937       ac_prev=cache_file ;;
23938     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23939     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23940     | --c=*)
23941       ;;
23942     --config-cache | -C)
23943       ;;
23944     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23945       ac_prev=srcdir ;;
23946     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23947       ;;
23948     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23949       ac_prev=prefix ;;
23950     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23951       ;;
23952     --disable-option-checking)
23953       ;;
23954     *)
23955       case $ac_arg in
23956       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23957       esac
23958       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23959     esac
23960   done
23961
23962   # Always prepend --prefix to ensure using the same prefix
23963   # in subdir configurations.
23964   ac_arg="--prefix=$prefix"
23965   case $ac_arg in
23966   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23967   esac
23968   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23969
23970   # Pass --silent
23971   if test "$silent" = yes; then
23972     ac_sub_configure_args="--silent $ac_sub_configure_args"
23973   fi
23974
23975   # Always prepend --disable-option-checking to silence warnings, since
23976   # different subdirs can have different --enable and --with options.
23977   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23978
23979   ac_popdir=`pwd`
23980   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23981
23982     # Do not complain, so a configure script can configure whichever
23983     # parts of a large source tree are present.
23984     test -d "$srcdir/$ac_dir" || continue
23985
23986     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23987     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23988     $as_echo "$ac_msg" >&6
23989     as_dir="$ac_dir"; as_fn_mkdir_p
23990     ac_builddir=.
23991
23992 case "$ac_dir" in
23993 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23994 *)
23995   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23996   # A ".." for each directory in $ac_dir_suffix.
23997   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23998   case $ac_top_builddir_sub in
23999   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24000   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24001   esac ;;
24002 esac
24003 ac_abs_top_builddir=$ac_pwd
24004 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24005 # for backward compatibility:
24006 ac_top_builddir=$ac_top_build_prefix
24007
24008 case $srcdir in
24009   .)  # We are building in place.
24010     ac_srcdir=.
24011     ac_top_srcdir=$ac_top_builddir_sub
24012     ac_abs_top_srcdir=$ac_pwd ;;
24013   [\\/]* | ?:[\\/]* )  # Absolute name.
24014     ac_srcdir=$srcdir$ac_dir_suffix;
24015     ac_top_srcdir=$srcdir
24016     ac_abs_top_srcdir=$srcdir ;;
24017   *) # Relative name.
24018     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24019     ac_top_srcdir=$ac_top_build_prefix$srcdir
24020     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24021 esac
24022 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24023
24024
24025     cd "$ac_dir"
24026
24027     # Check for guested configure; otherwise get Cygnus style configure.
24028     if test -f "$ac_srcdir/configure.gnu"; then
24029       ac_sub_configure=$ac_srcdir/configure.gnu
24030     elif test -f "$ac_srcdir/configure"; then
24031       ac_sub_configure=$ac_srcdir/configure
24032     elif test -f "$ac_srcdir/configure.in"; then
24033       # This should be Cygnus configure.
24034       ac_sub_configure=$ac_aux_dir/configure
24035     else
24036       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24037 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24038       ac_sub_configure=
24039     fi
24040
24041     # The recursion is here.
24042     if test -n "$ac_sub_configure"; then
24043       # Make the cache file name correct relative to the subdirectory.
24044       case $cache_file in
24045       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24046       *) # Relative name.
24047         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24048       esac
24049
24050       { $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
24051 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24052       # The eval makes quoting arguments work.
24053       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24054            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24055         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24056     fi
24057
24058     cd "$ac_popdir"
24059   done
24060 fi
24061 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24062   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24063 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24064 fi
24065
24066