FR-GV-206 - decode option 60 (string) not 63 (octets)
[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 openssl_version_check_config
812 raddbdir
813 radacctdir
814 logdir
815 ac_ct_F77
816 FFLAGS
817 F77
818 CXXCPP
819 NMEDIT
820 DSYMUTIL
821 STRIP
822 AR
823 ECHO
824 LN_S
825 SED
826 LIBTOOL
827 LTDL_SUBDIRS
828 GIT
829 MAKE
830 GMAKE
831 RANLIB
832 EGREP
833 GREP
834 CPP
835 ac_ct_CXX
836 CXXFLAGS
837 CXX
838 OBJEXT
839 EXEEXT
840 ac_ct_CC
841 CPPFLAGS
842 LDFLAGS
843 CFLAGS
844 CC
845 target_os
846 target_vendor
847 target_cpu
848 target
849 host_os
850 host_vendor
851 host_cpu
852 host
853 build_os
854 build_vendor
855 build_cpu
856 build
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 localstatedir
877 sharedstatedir
878 sysconfdir
879 datadir
880 datarootdir
881 libexecdir
882 sbindir
883 bindir
884 program_transform_name
885 prefix
886 exec_prefix
887 PACKAGE_URL
888 PACKAGE_BUGREPORT
889 PACKAGE_STRING
890 PACKAGE_VERSION
891 PACKAGE_TARNAME
892 PACKAGE_NAME
893 PATH_SEPARATOR
894 SHELL'
895 ac_subst_files=''
896 ac_user_opts='
897 enable_option_checking
898 enable_largefile
899 with_system_libltdl
900 with_system_libtool
901 enable_shared
902 enable_static
903 enable_fast_install
904 with_gnu_ld
905 enable_libtool_lock
906 with_pic
907 with_tags
908 enable_strict_dependencies
909 with_docdir
910 with_logdir
911 with_radacctdir
912 with_raddbdir
913 with_ascend_binary
914 with_threads
915 with_vmps
916 with_dhcp
917 with_post_proxy_authorize
918 with_static_modules
919 with_modules
920 enable_developer
921 with_experimental_modules
922 with_openssl
923 with_openssl_includes
924 with_openssl_libraries
925 enable_openssl_version_check
926 with_rlm_FOO_lib_dir
927 with_rlm_FOO_include_dir
928 with_udpfromto
929 '
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CXX
939 CXXFLAGS
940 CCC
941 CPP
942 CXXCPP
943 F77
944 FFLAGS'
945 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999   # If the previous option needs an argument, assign it.
1000   if test -n "$ac_prev"; then
1001     eval $ac_prev=\$ac_option
1002     ac_prev=
1003     continue
1004   fi
1005
1006   case $ac_option in
1007   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008   *=)   ac_optarg= ;;
1009   *)    ac_optarg=yes ;;
1010   esac
1011
1012   # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014   case $ac_dashdash$ac_option in
1015   --)
1016     ac_dashdash=yes ;;
1017
1018   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019     ac_prev=bindir ;;
1020   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021     bindir=$ac_optarg ;;
1022
1023   -build | --build | --buil | --bui | --bu)
1024     ac_prev=build_alias ;;
1025   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026     build_alias=$ac_optarg ;;
1027
1028   -cache-file | --cache-file | --cache-fil | --cache-fi \
1029   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030     ac_prev=cache_file ;;
1031   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033     cache_file=$ac_optarg ;;
1034
1035   --config-cache | -C)
1036     cache_file=config.cache ;;
1037
1038   -datadir | --datadir | --datadi | --datad)
1039     ac_prev=datadir ;;
1040   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041     datadir=$ac_optarg ;;
1042
1043   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044   | --dataroo | --dataro | --datar)
1045     ac_prev=datarootdir ;;
1046   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048     datarootdir=$ac_optarg ;;
1049
1050   -disable-* | --disable-*)
1051     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054       as_fn_error $? "invalid feature name: $ac_useropt"
1055     ac_useropt_orig=$ac_useropt
1056     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057     case $ac_user_opts in
1058       *"
1059 "enable_$ac_useropt"
1060 "*) ;;
1061       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062          ac_unrecognized_sep=', ';;
1063     esac
1064     eval enable_$ac_useropt=no ;;
1065
1066   -docdir | --docdir | --docdi | --doc | --do)
1067     ac_prev=docdir ;;
1068   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069     docdir=$ac_optarg ;;
1070
1071   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072     ac_prev=dvidir ;;
1073   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074     dvidir=$ac_optarg ;;
1075
1076   -enable-* | --enable-*)
1077     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080       as_fn_error $? "invalid feature name: $ac_useropt"
1081     ac_useropt_orig=$ac_useropt
1082     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083     case $ac_user_opts in
1084       *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088          ac_unrecognized_sep=', ';;
1089     esac
1090     eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094   | --exec | --exe | --ex)
1095     ac_prev=exec_prefix ;;
1096   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098   | --exec=* | --exe=* | --ex=*)
1099     exec_prefix=$ac_optarg ;;
1100
1101   -gas | --gas | --ga | --g)
1102     # Obsolete; use --with-gas.
1103     with_gas=yes ;;
1104
1105   -help | --help | --hel | --he | -h)
1106     ac_init_help=long ;;
1107   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108     ac_init_help=recursive ;;
1109   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110     ac_init_help=short ;;
1111
1112   -host | --host | --hos | --ho)
1113     ac_prev=host_alias ;;
1114   -host=* | --host=* | --hos=* | --ho=*)
1115     host_alias=$ac_optarg ;;
1116
1117   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118     ac_prev=htmldir ;;
1119   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120   | --ht=*)
1121     htmldir=$ac_optarg ;;
1122
1123   -includedir | --includedir | --includedi | --included | --include \
1124   | --includ | --inclu | --incl | --inc)
1125     ac_prev=includedir ;;
1126   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127   | --includ=* | --inclu=* | --incl=* | --inc=*)
1128     includedir=$ac_optarg ;;
1129
1130   -infodir | --infodir | --infodi | --infod | --info | --inf)
1131     ac_prev=infodir ;;
1132   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133     infodir=$ac_optarg ;;
1134
1135   -libdir | --libdir | --libdi | --libd)
1136     ac_prev=libdir ;;
1137   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138     libdir=$ac_optarg ;;
1139
1140   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141   | --libexe | --libex | --libe)
1142     ac_prev=libexecdir ;;
1143   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144   | --libexe=* | --libex=* | --libe=*)
1145     libexecdir=$ac_optarg ;;
1146
1147   -localedir | --localedir | --localedi | --localed | --locale)
1148     ac_prev=localedir ;;
1149   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150     localedir=$ac_optarg ;;
1151
1152   -localstatedir | --localstatedir | --localstatedi | --localstated \
1153   | --localstate | --localstat | --localsta | --localst | --locals)
1154     ac_prev=localstatedir ;;
1155   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157     localstatedir=$ac_optarg ;;
1158
1159   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160     ac_prev=mandir ;;
1161   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162     mandir=$ac_optarg ;;
1163
1164   -nfp | --nfp | --nf)
1165     # Obsolete; use --without-fp.
1166     with_fp=no ;;
1167
1168   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169   | --no-cr | --no-c | -n)
1170     no_create=yes ;;
1171
1172   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174     no_recursion=yes ;;
1175
1176   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178   | --oldin | --oldi | --old | --ol | --o)
1179     ac_prev=oldincludedir ;;
1180   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183     oldincludedir=$ac_optarg ;;
1184
1185   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186     ac_prev=prefix ;;
1187   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188     prefix=$ac_optarg ;;
1189
1190   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191   | --program-pre | --program-pr | --program-p)
1192     ac_prev=program_prefix ;;
1193   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195     program_prefix=$ac_optarg ;;
1196
1197   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198   | --program-suf | --program-su | --program-s)
1199     ac_prev=program_suffix ;;
1200   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202     program_suffix=$ac_optarg ;;
1203
1204   -program-transform-name | --program-transform-name \
1205   | --program-transform-nam | --program-transform-na \
1206   | --program-transform-n | --program-transform- \
1207   | --program-transform | --program-transfor \
1208   | --program-transfo | --program-transf \
1209   | --program-trans | --program-tran \
1210   | --progr-tra | --program-tr | --program-t)
1211     ac_prev=program_transform_name ;;
1212   -program-transform-name=* | --program-transform-name=* \
1213   | --program-transform-nam=* | --program-transform-na=* \
1214   | --program-transform-n=* | --program-transform-=* \
1215   | --program-transform=* | --program-transfor=* \
1216   | --program-transfo=* | --program-transf=* \
1217   | --program-trans=* | --program-tran=* \
1218   | --progr-tra=* | --program-tr=* | --program-t=*)
1219     program_transform_name=$ac_optarg ;;
1220
1221   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222     ac_prev=pdfdir ;;
1223   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224     pdfdir=$ac_optarg ;;
1225
1226   -psdir | --psdir | --psdi | --psd | --ps)
1227     ac_prev=psdir ;;
1228   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229     psdir=$ac_optarg ;;
1230
1231   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232   | -silent | --silent | --silen | --sile | --sil)
1233     silent=yes ;;
1234
1235   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236     ac_prev=sbindir ;;
1237   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238   | --sbi=* | --sb=*)
1239     sbindir=$ac_optarg ;;
1240
1241   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243   | --sharedst | --shareds | --shared | --share | --shar \
1244   | --sha | --sh)
1245     ac_prev=sharedstatedir ;;
1246   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249   | --sha=* | --sh=*)
1250     sharedstatedir=$ac_optarg ;;
1251
1252   -site | --site | --sit)
1253     ac_prev=site ;;
1254   -site=* | --site=* | --sit=*)
1255     site=$ac_optarg ;;
1256
1257   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258     ac_prev=srcdir ;;
1259   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260     srcdir=$ac_optarg ;;
1261
1262   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263   | --syscon | --sysco | --sysc | --sys | --sy)
1264     ac_prev=sysconfdir ;;
1265   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267     sysconfdir=$ac_optarg ;;
1268
1269   -target | --target | --targe | --targ | --tar | --ta | --t)
1270     ac_prev=target_alias ;;
1271   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272     target_alias=$ac_optarg ;;
1273
1274   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275     verbose=yes ;;
1276
1277   -version | --version | --versio | --versi | --vers | -V)
1278     ac_init_version=: ;;
1279
1280   -with-* | --with-*)
1281     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284       as_fn_error $? "invalid package name: $ac_useropt"
1285     ac_useropt_orig=$ac_useropt
1286     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287     case $ac_user_opts in
1288       *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292          ac_unrecognized_sep=', ';;
1293     esac
1294     eval with_$ac_useropt=\$ac_optarg ;;
1295
1296   -without-* | --without-*)
1297     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300       as_fn_error $? "invalid package name: $ac_useropt"
1301     ac_useropt_orig=$ac_useropt
1302     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303     case $ac_user_opts in
1304       *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308          ac_unrecognized_sep=', ';;
1309     esac
1310     eval with_$ac_useropt=no ;;
1311
1312   --x)
1313     # Obsolete; use --with-x.
1314     with_x=yes ;;
1315
1316   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317   | --x-incl | --x-inc | --x-in | --x-i)
1318     ac_prev=x_includes ;;
1319   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321     x_includes=$ac_optarg ;;
1322
1323   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325     ac_prev=x_libraries ;;
1326   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328     x_libraries=$ac_optarg ;;
1329
1330   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1332     ;;
1333
1334   *=*)
1335     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336     # Reject names that are not valid shell variable names.
1337     case $ac_envvar in #(
1338       '' | [0-9]* | *[!_$as_cr_alnum]* )
1339       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340     esac
1341     eval $ac_envvar=\$ac_optarg
1342     export $ac_envvar ;;
1343
1344   *)
1345     # FIXME: should be removed in autoconf 3.0.
1346     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350     ;;
1351
1352   esac
1353 done
1354
1355 if test -n "$ac_prev"; then
1356   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357   as_fn_error $? "missing argument to $ac_option"
1358 fi
1359
1360 if test -n "$ac_unrecognized_opts"; then
1361   case $enable_option_checking in
1362     no) ;;
1363     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365   esac
1366 fi
1367
1368 # Check all directory arguments for consistency.
1369 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370                 datadir sysconfdir sharedstatedir localstatedir includedir \
1371                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372                 libdir localedir mandir
1373 do
1374   eval ac_val=\$$ac_var
1375   # Remove trailing slashes.
1376   case $ac_val in
1377     */ )
1378       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379       eval $ac_var=\$ac_val;;
1380   esac
1381   # Be sure to have absolute directory names.
1382   case $ac_val in
1383     [\\/$]* | ?:[\\/]* )  continue;;
1384     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385   esac
1386   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1388
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1395
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398   if test "x$build_alias" = x; then
1399     cross_compiling=maybe
1400   elif test "x$build_alias" != "x$host_alias"; then
1401     cross_compiling=yes
1402   fi
1403 fi
1404
1405 ac_tool_prefix=
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408 test "$silent" = yes && exec 6>/dev/null
1409
1410
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414   as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416   as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421   ac_srcdir_defaulted=yes
1422   # Try the directory containing this script, then the parent directory.
1423   ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425          X"$as_myself" : 'X\(//\)[^/]' \| \
1426          X"$as_myself" : 'X\(//\)$' \| \
1427          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)[^/].*/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\/\)$/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\).*/{
1442             s//\1/
1443             q
1444           }
1445           s/.*/./; q'`
1446   srcdir=$ac_confdir
1447   if test ! -r "$srcdir/$ac_unique_file"; then
1448     srcdir=..
1449   fi
1450 else
1451   ac_srcdir_defaulted=no
1452 fi
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460         pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463   srcdir=.
1464 fi
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_env_${ac_var}_value=\$${ac_var}
1474   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1477
1478 #
1479 # Report the --help message.
1480 #
1481 if test "$ac_init_help" = "long"; then
1482   # Omit some internal or obsolete options to make the list less imposing.
1483   # This message is too long to be a string in the A/UX 3.1 sh.
1484   cat <<_ACEOF
1485 \`configure' configures this package to adapt to many kinds of systems.
1486
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492 Defaults for the options are specified in brackets.
1493
1494 Configuration:
1495   -h, --help              display this help and exit
1496       --help=short        display options specific to this package
1497       --help=recursive    display the short help of all the included packages
1498   -V, --version           display version information and exit
1499   -q, --quiet, --silent   do not print \`checking ...' messages
1500       --cache-file=FILE   cache test results in FILE [disabled]
1501   -C, --config-cache      alias for \`--cache-file=config.cache'
1502   -n, --no-create         do not create output files
1503       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505 Installation directories:
1506   --prefix=PREFIX         install architecture-independent files in PREFIX
1507                           [$ac_default_prefix]
1508   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                           [PREFIX]
1510
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1515
1516 For better control, use the options below.
1517
1518 Fine tuning of the installation directories:
1519   --bindir=DIR            user executables [EPREFIX/bin]
1520   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521   --libexecdir=DIR        program executables [EPREFIX/libexec]
1522   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525   --libdir=DIR            object code libraries [EPREFIX/lib]
1526   --includedir=DIR        C header files [PREFIX/include]
1527   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530   --infodir=DIR           info documentation [DATAROOTDIR/info]
1531   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532   --mandir=DIR            man documentation [DATAROOTDIR/man]
1533   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1534   --htmldir=DIR           html documentation [DOCDIR]
1535   --dvidir=DIR            dvi documentation [DOCDIR]
1536   --pdfdir=DIR            pdf documentation [DOCDIR]
1537   --psdir=DIR             ps documentation [DOCDIR]
1538 _ACEOF
1539
1540   cat <<\_ACEOF
1541
1542 System types:
1543   --build=BUILD     configure for building on BUILD [guessed]
1544   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545   --target=TARGET   configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --disable-largefile     omit support for large files
1558   --enable-shared[=PKGS]  build shared libraries [default=yes]
1559   --enable-static[=PKGS]  build static libraries [default=yes]
1560   --enable-fast-install[=PKGS]
1561                           optimize for fast installation [default=yes]
1562   --disable-libtool-lock  avoid locking (might break parallel builds)
1563   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1564   --enable-developer               Enables features of interest to developers.
1565   --disable-openssl-version-check  Disable vulnerable OpenSSL version check.
1566
1567
1568 Optional Packages:
1569   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1570   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1571   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1572   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1573   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1574   --with-pic              try to use only PIC/non-PIC objects [default=use
1575                           both]
1576   --with-tags[=TAGS]      include additional configurations [automatic]
1577   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1578   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1579   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1580   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1581   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1582   --with-threads          Use threads, if available.  (default=yes)
1583   --with-vmps             Compile in VMPS support. (default=yes)
1584   --with-dhcp             Compile in DHCP support. (default=yes)
1585   --with-post-proxy-authorize  1.x compatibility  (default=no)
1586   --with-static-modules=QUOTED-MODULE-LIST
1587  --with-modules=QUOTED-MODULE-LIST
1588   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1589   --with-openssl                   Use OpenSSL. (default=yes)
1590   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1591   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1592   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1593   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1594   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1595
1596 Some influential environment variables:
1597   CC          C compiler command
1598   CFLAGS      C compiler flags
1599   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600               nonstandard directory <lib dir>
1601   LIBS        libraries to pass to the linker, e.g. -l<library>
1602   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603               you have headers in a nonstandard directory <include dir>
1604   CXX         C++ compiler command
1605   CXXFLAGS    C++ compiler flags
1606   CPP         C preprocessor
1607   CXXCPP      C++ preprocessor
1608   F77         Fortran 77 compiler command
1609   FFLAGS      Fortran 77 compiler flags
1610
1611 Use these variables to override the choices made by `configure' or to help
1612 it to find libraries and programs with nonstandard names/locations.
1613
1614 Report bugs to the package provider.
1615 _ACEOF
1616 ac_status=$?
1617 fi
1618
1619 if test "$ac_init_help" = "recursive"; then
1620   # If there are subdirs, report their specific --help.
1621   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622     test -d "$ac_dir" ||
1623       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624       continue
1625     ac_builddir=.
1626
1627 case "$ac_dir" in
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *)
1630   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631   # A ".." for each directory in $ac_dir_suffix.
1632   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633   case $ac_top_builddir_sub in
1634   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636   esac ;;
1637 esac
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1642
1643 case $srcdir in
1644   .)  # We are building in place.
1645     ac_srcdir=.
1646     ac_top_srcdir=$ac_top_builddir_sub
1647     ac_abs_top_srcdir=$ac_pwd ;;
1648   [\\/]* | ?:[\\/]* )  # Absolute name.
1649     ac_srcdir=$srcdir$ac_dir_suffix;
1650     ac_top_srcdir=$srcdir
1651     ac_abs_top_srcdir=$srcdir ;;
1652   *) # Relative name.
1653     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654     ac_top_srcdir=$ac_top_build_prefix$srcdir
1655     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 esac
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659     cd "$ac_dir" || { ac_status=$?; continue; }
1660     # Check for guested configure.
1661     if test -f "$ac_srcdir/configure.gnu"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664     elif test -f "$ac_srcdir/configure"; then
1665       echo &&
1666       $SHELL "$ac_srcdir/configure" --help=recursive
1667     else
1668       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669     fi || ac_status=$?
1670     cd "$ac_pwd" || { ac_status=$?; break; }
1671   done
1672 fi
1673
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1676   cat <<\_ACEOF
1677 configure
1678 generated by GNU Autoconf 2.69
1679
1680 Copyright (C) 2012 Free Software Foundation, Inc.
1681 This configure script is free software; the Free Software Foundation
1682 gives unlimited permission to copy, distribute and modify it.
1683 _ACEOF
1684   exit
1685 fi
1686
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1690
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   rm -f conftest.$ac_objext
1698   if { { ac_try="$ac_compile"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_compile") 2>conftest.err
1706   ac_status=$?
1707   if test -s conftest.err; then
1708     grep -v '^ *+' conftest.err >conftest.er1
1709     cat conftest.er1 >&5
1710     mv -f conftest.er1 conftest.err
1711   fi
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } && {
1714          test -z "$ac_c_werror_flag" ||
1715          test ! -s conftest.err
1716        } && test -s conftest.$ac_objext; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722         ac_retval=1
1723 fi
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_compile
1728
1729 # ac_fn_cxx_try_compile LINENO
1730 # ----------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_cxx_try_compile ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   rm -f conftest.$ac_objext
1736   if { { ac_try="$ac_compile"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_compile") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } && {
1752          test -z "$ac_cxx_werror_flag" ||
1753          test ! -s conftest.err
1754        } && test -s conftest.$ac_objext; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760         ac_retval=1
1761 fi
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763   as_fn_set_status $ac_retval
1764
1765 } # ac_fn_cxx_try_compile
1766
1767 # ac_fn_c_try_cpp LINENO
1768 # ----------------------
1769 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_cpp ()
1771 {
1772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773   if { { ac_try="$ac_cpp conftest.$ac_ext"
1774 case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781   ac_status=$?
1782   if test -s conftest.err; then
1783     grep -v '^ *+' conftest.err >conftest.er1
1784     cat conftest.er1 >&5
1785     mv -f conftest.er1 conftest.err
1786   fi
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } > conftest.i && {
1789          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790          test ! -s conftest.err
1791        }; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797     ac_retval=1
1798 fi
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_cpp
1803
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1808 # accordingly.
1809 ac_fn_c_check_header_mongrel ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if eval \${$3+:} false; then :
1813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816   $as_echo_n "(cached) " >&6
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 else
1822   # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h.  */
1827 $4
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831   ac_header_compiler=yes
1832 else
1833   ac_header_compiler=no
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1838
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h.  */
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847   ac_header_preproc=yes
1848 else
1849   ac_header_preproc=no
1850 fi
1851 rm -f conftest.err conftest.i conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1854
1855 # So?  What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857   yes:no: )
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862     ;;
1863   no:yes:* )
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874     ;;
1875 esac
1876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879   $as_echo_n "(cached) " >&6
1880 else
1881   eval "$3=\$ac_header_compiler"
1882 fi
1883 eval ac_res=\$$3
1884                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 fi
1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_header_mongrel
1890
1891 # ac_fn_c_try_run LINENO
1892 # ----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1894 # that executables *can* be run.
1895 ac_fn_c_try_run ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901   *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905   (eval "$ac_link") 2>&5
1906   ac_status=$?
1907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1909   { { case "(($ac_try" in
1910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911   *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915   (eval "$ac_try") 2>&5
1916   ac_status=$?
1917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918   test $ac_status = 0; }; }; then :
1919   ac_retval=0
1920 else
1921   $as_echo "$as_me: program exited with status $ac_status" >&5
1922        $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925        ac_retval=$ac_status
1926 fi
1927   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929   as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_run
1932
1933 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists and can be compiled using the include files in
1936 # INCLUDES, setting the cache variable VAR accordingly.
1937 ac_fn_c_check_header_compile ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943   $as_echo_n "(cached) " >&6
1944 else
1945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951   eval "$3=yes"
1952 else
1953   eval "$3=no"
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_c_check_header_compile
1963
1964 # ac_fn_c_try_link LINENO
1965 # -----------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_c_try_link ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   rm -f conftest.$ac_objext conftest$ac_exeext
1971   if { { ac_try="$ac_link"
1972 case "(($ac_try" in
1973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974   *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978   (eval "$ac_link") 2>conftest.err
1979   ac_status=$?
1980   if test -s conftest.err; then
1981     grep -v '^ *+' conftest.err >conftest.er1
1982     cat conftest.er1 >&5
1983     mv -f conftest.er1 conftest.err
1984   fi
1985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986   test $ac_status = 0; } && {
1987          test -z "$ac_c_werror_flag" ||
1988          test ! -s conftest.err
1989        } && test -s conftest$ac_exeext && {
1990          test "$cross_compiling" = yes ||
1991          test -x conftest$ac_exeext
1992        }; then :
1993   ac_retval=0
1994 else
1995   $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998         ac_retval=1
1999 fi
2000   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2001   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2002   # interfere with the next link command; also delete a directory that is
2003   # left behind by Apple's compiler.  We do this before executing the actions.
2004   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006   as_fn_set_status $ac_retval
2007
2008 } # ac_fn_c_try_link
2009
2010 # ac_fn_c_check_func LINENO FUNC VAR
2011 # ----------------------------------
2012 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2013 ac_fn_c_check_func ()
2014 {
2015   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2025 #define $2 innocuous_$2
2026
2027 /* System header to define __stub macros and hopefully few prototypes,
2028     which can conflict with char $2 (); below.
2029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030     <limits.h> exists even on freestanding compilers.  */
2031
2032 #ifdef __STDC__
2033 # include <limits.h>
2034 #else
2035 # include <assert.h>
2036 #endif
2037
2038 #undef $2
2039
2040 /* Override any GCC internal prototype to avoid an error.
2041    Use char because int might match the return type of a GCC
2042    builtin and then its argument prototype would still apply.  */
2043 #ifdef __cplusplus
2044 extern "C"
2045 #endif
2046 char $2 ();
2047 /* The GNU C library defines this for functions which it implements
2048     to always fail with ENOSYS.  Some functions are actually named
2049     something starting with __ and the normal name is an alias.  */
2050 #if defined __stub_$2 || defined __stub___$2
2051 choke me
2052 #endif
2053
2054 int
2055 main ()
2056 {
2057 return $2 ();
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_link "$LINENO"; then :
2063   eval "$3=yes"
2064 else
2065   eval "$3=no"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext \
2068     conftest$ac_exeext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$3
2071                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_func
2076
2077 # ac_fn_cxx_try_cpp LINENO
2078 # ------------------------
2079 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_cxx_try_cpp ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   if { { ac_try="$ac_cpp conftest.$ac_ext"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2091   ac_status=$?
2092   if test -s conftest.err; then
2093     grep -v '^ *+' conftest.err >conftest.er1
2094     cat conftest.er1 >&5
2095     mv -f conftest.er1 conftest.err
2096   fi
2097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098   test $ac_status = 0; } > conftest.i && {
2099          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2100          test ! -s conftest.err
2101        }; then :
2102   ac_retval=0
2103 else
2104   $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107     ac_retval=1
2108 fi
2109   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110   as_fn_set_status $ac_retval
2111
2112 } # ac_fn_cxx_try_cpp
2113
2114 # ac_fn_cxx_try_link LINENO
2115 # -------------------------
2116 # Try to link conftest.$ac_ext, and return whether this succeeded.
2117 ac_fn_cxx_try_link ()
2118 {
2119   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120   rm -f conftest.$ac_objext conftest$ac_exeext
2121   if { { ac_try="$ac_link"
2122 case "(($ac_try" in
2123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124   *) ac_try_echo=$ac_try;;
2125 esac
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128   (eval "$ac_link") 2>conftest.err
2129   ac_status=$?
2130   if test -s conftest.err; then
2131     grep -v '^ *+' conftest.err >conftest.er1
2132     cat conftest.er1 >&5
2133     mv -f conftest.er1 conftest.err
2134   fi
2135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2136   test $ac_status = 0; } && {
2137          test -z "$ac_cxx_werror_flag" ||
2138          test ! -s conftest.err
2139        } && test -s conftest$ac_exeext && {
2140          test "$cross_compiling" = yes ||
2141          test -x conftest$ac_exeext
2142        }; then :
2143   ac_retval=0
2144 else
2145   $as_echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2147
2148         ac_retval=1
2149 fi
2150   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2151   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2152   # interfere with the next link command; also delete a directory that is
2153   # left behind by Apple's compiler.  We do this before executing the actions.
2154   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2155   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156   as_fn_set_status $ac_retval
2157
2158 } # ac_fn_cxx_try_link
2159
2160 # ac_fn_f77_try_compile LINENO
2161 # ----------------------------
2162 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_f77_try_compile ()
2164 {
2165   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166   rm -f conftest.$ac_objext
2167   if { { ac_try="$ac_compile"
2168 case "(($ac_try" in
2169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170   *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174   (eval "$ac_compile") 2>conftest.err
2175   ac_status=$?
2176   if test -s conftest.err; then
2177     grep -v '^ *+' conftest.err >conftest.er1
2178     cat conftest.er1 >&5
2179     mv -f conftest.er1 conftest.err
2180   fi
2181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182   test $ac_status = 0; } && {
2183          test -z "$ac_f77_werror_flag" ||
2184          test ! -s conftest.err
2185        } && test -s conftest.$ac_objext; then :
2186   ac_retval=0
2187 else
2188   $as_echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191         ac_retval=1
2192 fi
2193   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194   as_fn_set_status $ac_retval
2195
2196 } # ac_fn_f77_try_compile
2197
2198 # ac_fn_f77_try_link LINENO
2199 # -------------------------
2200 # Try to link conftest.$ac_ext, and return whether this succeeded.
2201 ac_fn_f77_try_link ()
2202 {
2203   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204   rm -f conftest.$ac_objext conftest$ac_exeext
2205   if { { ac_try="$ac_link"
2206 case "(($ac_try" in
2207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208   *) ac_try_echo=$ac_try;;
2209 esac
2210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212   (eval "$ac_link") 2>conftest.err
2213   ac_status=$?
2214   if test -s conftest.err; then
2215     grep -v '^ *+' conftest.err >conftest.er1
2216     cat conftest.er1 >&5
2217     mv -f conftest.er1 conftest.err
2218   fi
2219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2220   test $ac_status = 0; } && {
2221          test -z "$ac_f77_werror_flag" ||
2222          test ! -s conftest.err
2223        } && test -s conftest$ac_exeext && {
2224          test "$cross_compiling" = yes ||
2225          test -x conftest$ac_exeext
2226        }; then :
2227   ac_retval=0
2228 else
2229   $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232         ac_retval=1
2233 fi
2234   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2235   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2236   # interfere with the next link command; also delete a directory that is
2237   # left behind by Apple's compiler.  We do this before executing the actions.
2238   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2239   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240   as_fn_set_status $ac_retval
2241
2242 } # ac_fn_f77_try_link
2243
2244 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2245 # -------------------------------------------
2246 # Tests whether TYPE exists after having included INCLUDES, setting cache
2247 # variable VAR accordingly.
2248 ac_fn_c_check_type ()
2249 {
2250   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if eval \${$3+:} false; then :
2254   $as_echo_n "(cached) " >&6
2255 else
2256   eval "$3=no"
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 if (sizeof ($2))
2264          return 0;
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h.  */
2272 $4
2273 int
2274 main ()
2275 {
2276 if (sizeof (($2)))
2277             return 0;
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283
2284 else
2285   eval "$3=yes"
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 eval ac_res=\$$3
2292                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296 } # ac_fn_c_check_type
2297
2298 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2299 # ---------------------------------------------
2300 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2301 # accordingly.
2302 ac_fn_c_check_decl ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   as_decl_name=`echo $2|sed 's/ *(.*//'`
2306   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2308 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2309 if eval \${$3+:} false; then :
2310   $as_echo_n "(cached) " >&6
2311 else
2312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $4
2315 int
2316 main ()
2317 {
2318 #ifndef $as_decl_name
2319 #ifdef __cplusplus
2320   (void) $as_decl_use;
2321 #else
2322   (void) $as_decl_name;
2323 #endif
2324 #endif
2325
2326   ;
2327   return 0;
2328 }
2329 _ACEOF
2330 if ac_fn_c_try_compile "$LINENO"; then :
2331   eval "$3=yes"
2332 else
2333   eval "$3=no"
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 fi
2337 eval ac_res=\$$3
2338                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341
2342 } # ac_fn_c_check_decl
2343 cat >config.log <<_ACEOF
2344 This file contains any messages produced by compilers while
2345 running configure, to aid debugging if configure makes a mistake.
2346
2347 It was created by $as_me, which was
2348 generated by GNU Autoconf 2.69.  Invocation command line was
2349
2350   $ $0 $@
2351
2352 _ACEOF
2353 exec 5>>config.log
2354 {
2355 cat <<_ASUNAME
2356 ## --------- ##
2357 ## Platform. ##
2358 ## --------- ##
2359
2360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2361 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2362 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2363 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2364 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2365
2366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2367 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2368
2369 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2370 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2372 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2373 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2374 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2375 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2376
2377 _ASUNAME
2378
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384     $as_echo "PATH: $as_dir"
2385   done
2386 IFS=$as_save_IFS
2387
2388 } >&5
2389
2390 cat >&5 <<_ACEOF
2391
2392
2393 ## ----------- ##
2394 ## Core tests. ##
2395 ## ----------- ##
2396
2397 _ACEOF
2398
2399
2400 # Keep a trace of the command line.
2401 # Strip out --no-create and --no-recursion so they do not pile up.
2402 # Strip out --silent because we don't want to record it for future runs.
2403 # Also quote any args containing shell meta-characters.
2404 # Make two passes to allow for proper duplicate-argument suppression.
2405 ac_configure_args=
2406 ac_configure_args0=
2407 ac_configure_args1=
2408 ac_must_keep_next=false
2409 for ac_pass in 1 2
2410 do
2411   for ac_arg
2412   do
2413     case $ac_arg in
2414     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416     | -silent | --silent | --silen | --sile | --sil)
2417       continue ;;
2418     *\'*)
2419       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2420     esac
2421     case $ac_pass in
2422     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2423     2)
2424       as_fn_append ac_configure_args1 " '$ac_arg'"
2425       if test $ac_must_keep_next = true; then
2426         ac_must_keep_next=false # Got value, back to normal.
2427       else
2428         case $ac_arg in
2429           *=* | --config-cache | -C | -disable-* | --disable-* \
2430           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432           | -with-* | --with-* | -without-* | --without-* | --x)
2433             case "$ac_configure_args0 " in
2434               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2435             esac
2436             ;;
2437           -* ) ac_must_keep_next=true ;;
2438         esac
2439       fi
2440       as_fn_append ac_configure_args " '$ac_arg'"
2441       ;;
2442     esac
2443   done
2444 done
2445 { ac_configure_args0=; unset ac_configure_args0;}
2446 { ac_configure_args1=; unset ac_configure_args1;}
2447
2448 # When interrupted or exit'd, cleanup temporary files, and complete
2449 # config.log.  We remove comments because anyway the quotes in there
2450 # would cause problems or look ugly.
2451 # WARNING: Use '\'' to represent an apostrophe within the trap.
2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453 trap 'exit_status=$?
2454   # Save into config.log some information that might help in debugging.
2455   {
2456     echo
2457
2458     $as_echo "## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##"
2461     echo
2462     # The following way of writing the cache mishandles newlines in values,
2463 (
2464   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2465     eval ac_val=\$$ac_var
2466     case $ac_val in #(
2467     *${as_nl}*)
2468       case $ac_var in #(
2469       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2471       esac
2472       case $ac_var in #(
2473       _ | IFS | as_nl) ;; #(
2474       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475       *) { eval $ac_var=; unset $ac_var;} ;;
2476       esac ;;
2477     esac
2478   done
2479   (set) 2>&1 |
2480     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2481     *${as_nl}ac_space=\ *)
2482       sed -n \
2483         "s/'\''/'\''\\\\'\'''\''/g;
2484           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2485       ;; #(
2486     *)
2487       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2488       ;;
2489     esac |
2490     sort
2491 )
2492     echo
2493
2494     $as_echo "## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##"
2497     echo
2498     for ac_var in $ac_subst_vars
2499     do
2500       eval ac_val=\$$ac_var
2501       case $ac_val in
2502       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503       esac
2504       $as_echo "$ac_var='\''$ac_val'\''"
2505     done | sort
2506     echo
2507
2508     if test -n "$ac_subst_files"; then
2509       $as_echo "## ------------------- ##
2510 ## File substitutions. ##
2511 ## ------------------- ##"
2512       echo
2513       for ac_var in $ac_subst_files
2514       do
2515         eval ac_val=\$$ac_var
2516         case $ac_val in
2517         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518         esac
2519         $as_echo "$ac_var='\''$ac_val'\''"
2520       done | sort
2521       echo
2522     fi
2523
2524     if test -s confdefs.h; then
2525       $as_echo "## ----------- ##
2526 ## confdefs.h. ##
2527 ## ----------- ##"
2528       echo
2529       cat confdefs.h
2530       echo
2531     fi
2532     test "$ac_signal" != 0 &&
2533       $as_echo "$as_me: caught signal $ac_signal"
2534     $as_echo "$as_me: exit $exit_status"
2535   } >&5
2536   rm -f core *.core core.conftest.* &&
2537     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2538     exit $exit_status
2539 ' 0
2540 for ac_signal in 1 2 13 15; do
2541   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2542 done
2543 ac_signal=0
2544
2545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2546 rm -f -r conftest* confdefs.h
2547
2548 $as_echo "/* confdefs.h */" > confdefs.h
2549
2550 # Predefined preprocessor variables.
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_NAME "$PACKAGE_NAME"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_STRING "$PACKAGE_STRING"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_URL "$PACKAGE_URL"
2574 _ACEOF
2575
2576
2577 # Let the site file select an alternate cache file if it wants to.
2578 # Prefer an explicitly selected file to automatically selected ones.
2579 ac_site_file1=NONE
2580 ac_site_file2=NONE
2581 if test -n "$CONFIG_SITE"; then
2582   # We do not want a PATH search for config.site.
2583   case $CONFIG_SITE in #((
2584     -*)  ac_site_file1=./$CONFIG_SITE;;
2585     */*) ac_site_file1=$CONFIG_SITE;;
2586     *)   ac_site_file1=./$CONFIG_SITE;;
2587   esac
2588 elif test "x$prefix" != xNONE; then
2589   ac_site_file1=$prefix/share/config.site
2590   ac_site_file2=$prefix/etc/config.site
2591 else
2592   ac_site_file1=$ac_default_prefix/share/config.site
2593   ac_site_file2=$ac_default_prefix/etc/config.site
2594 fi
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2596 do
2597   test "x$ac_site_file" = xNONE && continue
2598   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601     sed 's/^/| /' "$ac_site_file" >&5
2602     . "$ac_site_file" \
2603       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "failed to load site script $ac_site_file
2606 See \`config.log' for more details" "$LINENO" 5; }
2607   fi
2608 done
2609
2610 if test -r "$cache_file"; then
2611   # Some versions of bash will fail to source /dev/null (special files
2612   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2613   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2616     case $cache_file in
2617       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618       *)                      . "./$cache_file";;
2619     esac
2620   fi
2621 else
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2624   >$cache_file
2625 fi
2626
2627 # Check that the precious variables saved in the cache have kept the same
2628 # value.
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632   eval ac_new_set=\$ac_env_${ac_var}_set
2633   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634   eval ac_new_val=\$ac_env_${ac_var}_value
2635   case $ac_old_set,$ac_new_set in
2636     set,)
2637       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639       ac_cache_corrupted=: ;;
2640     ,set)
2641       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643       ac_cache_corrupted=: ;;
2644     ,);;
2645     *)
2646       if test "x$ac_old_val" != "x$ac_new_val"; then
2647         # differences in whitespace do not lead to failure.
2648         ac_old_val_w=`echo x $ac_old_val`
2649         ac_new_val_w=`echo x $ac_new_val`
2650         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653           ac_cache_corrupted=:
2654         else
2655           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657           eval $ac_var=\$ac_old_val
2658         fi
2659         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2660 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2661         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2663       fi;;
2664   esac
2665   # Pass precious variables to config.status.
2666   if test "$ac_new_set" = set; then
2667     case $ac_new_val in
2668     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669     *) ac_arg=$ac_var=$ac_new_val ;;
2670     esac
2671     case " $ac_configure_args " in
2672       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2673       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2674     esac
2675   fi
2676 done
2677 if $ac_cache_corrupted; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2683 fi
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2687
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
2694
2695 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2696
2697
2698
2699 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2700 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2701 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2702
2703 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2704 -v minor="$RADIUSD_MINOR_VERSION" \
2705 -v incrm="$RADIUSD_INCRM_VERSION" \
2706 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2707
2708 RADIUSD_VERSION_STRING=`cat VERSION`
2709 PACKAGE=freeradius
2710
2711
2712 ac_aux_dir=
2713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2714   if test -f "$ac_dir/install-sh"; then
2715     ac_aux_dir=$ac_dir
2716     ac_install_sh="$ac_aux_dir/install-sh -c"
2717     break
2718   elif test -f "$ac_dir/install.sh"; then
2719     ac_aux_dir=$ac_dir
2720     ac_install_sh="$ac_aux_dir/install.sh -c"
2721     break
2722   elif test -f "$ac_dir/shtool"; then
2723     ac_aux_dir=$ac_dir
2724     ac_install_sh="$ac_aux_dir/shtool install -c"
2725     break
2726   fi
2727 done
2728 if test -z "$ac_aux_dir"; then
2729   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2730 fi
2731
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2737 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2738 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2739
2740
2741 # Make sure we can run config.sub.
2742 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2743   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2744
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2746 $as_echo_n "checking build system type... " >&6; }
2747 if ${ac_cv_build+:} false; then :
2748   $as_echo_n "(cached) " >&6
2749 else
2750   ac_build_alias=$build_alias
2751 test "x$ac_build_alias" = x &&
2752   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2753 test "x$ac_build_alias" = x &&
2754   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2755 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2756   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2760 $as_echo "$ac_cv_build" >&6; }
2761 case $ac_cv_build in
2762 *-*-*) ;;
2763 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2764 esac
2765 build=$ac_cv_build
2766 ac_save_IFS=$IFS; IFS='-'
2767 set x $ac_cv_build
2768 shift
2769 build_cpu=$1
2770 build_vendor=$2
2771 shift; shift
2772 # Remember, the first character of IFS is used to create $*,
2773 # except with old shells:
2774 build_os=$*
2775 IFS=$ac_save_IFS
2776 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2777
2778
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2780 $as_echo_n "checking host system type... " >&6; }
2781 if ${ac_cv_host+:} false; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   if test "x$host_alias" = x; then
2785   ac_cv_host=$ac_cv_build
2786 else
2787   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2788     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2789 fi
2790
2791 fi
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2793 $as_echo "$ac_cv_host" >&6; }
2794 case $ac_cv_host in
2795 *-*-*) ;;
2796 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2797 esac
2798 host=$ac_cv_host
2799 ac_save_IFS=$IFS; IFS='-'
2800 set x $ac_cv_host
2801 shift
2802 host_cpu=$1
2803 host_vendor=$2
2804 shift; shift
2805 # Remember, the first character of IFS is used to create $*,
2806 # except with old shells:
2807 host_os=$*
2808 IFS=$ac_save_IFS
2809 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2810
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2813 $as_echo_n "checking target system type... " >&6; }
2814 if ${ac_cv_target+:} false; then :
2815   $as_echo_n "(cached) " >&6
2816 else
2817   if test "x$target_alias" = x; then
2818   ac_cv_target=$ac_cv_host
2819 else
2820   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2821     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2822 fi
2823
2824 fi
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2826 $as_echo "$ac_cv_target" >&6; }
2827 case $ac_cv_target in
2828 *-*-*) ;;
2829 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2830 esac
2831 target=$ac_cv_target
2832 ac_save_IFS=$IFS; IFS='-'
2833 set x $ac_cv_target
2834 shift
2835 target_cpu=$1
2836 target_vendor=$2
2837 shift; shift
2838 # Remember, the first character of IFS is used to create $*,
2839 # except with old shells:
2840 target_os=$*
2841 IFS=$ac_save_IFS
2842 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2843
2844
2845 # The aliases save the names the user supplied, while $host etc.
2846 # will get canonicalized.
2847 test -n "$target_alias" &&
2848   test "$program_prefix$program_suffix$program_transform_name" = \
2849     NONENONEs,x,x, &&
2850   program_prefix=${target_alias}-
2851
2852
2853 ac_ext=c
2854 ac_cpp='$CPP $CPPFLAGS'
2855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858 if test -n "$ac_tool_prefix"; then
2859   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_CC+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test -n "$CC"; then
2867   ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874     for ac_exec_ext in '' $ac_executable_extensions; do
2875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881   done
2882 IFS=$as_save_IFS
2883
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 "$ac_cv_prog_CC"; then
2898   ac_ct_CC=$CC
2899   # Extract the first word of "gcc", so it can be a program name with args.
2900 set dummy gcc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   if test -n "$ac_ct_CC"; then
2907   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912   IFS=$as_save_IFS
2913   test -z "$as_dir" && as_dir=.
2914     for ac_exec_ext in '' $ac_executable_extensions; do
2915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916     ac_cv_prog_ac_ct_CC="gcc"
2917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918     break 2
2919   fi
2920 done
2921   done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2929 $as_echo "$ac_ct_CC" >&6; }
2930 else
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935   if test "x$ac_ct_CC" = x; then
2936     CC=""
2937   else
2938     case $cross_compiling:$ac_tool_warned in
2939 yes:)
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2943 esac
2944     CC=$ac_ct_CC
2945   fi
2946 else
2947   CC="$ac_cv_prog_CC"
2948 fi
2949
2950 if test -z "$CC"; then
2951           if test -n "$ac_tool_prefix"; then
2952     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}cc; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_CC+:} false; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   if test -n "$CC"; then
2960   ac_cv_prog_CC="$CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965   IFS=$as_save_IFS
2966   test -z "$as_dir" && as_dir=.
2967     for ac_exec_ext in '' $ac_executable_extensions; do
2968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969     ac_cv_prog_CC="${ac_tool_prefix}cc"
2970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971     break 2
2972   fi
2973 done
2974   done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2983 else
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989   fi
2990 fi
2991 if test -z "$CC"; then
2992   # Extract the first word of "cc", so it can be a program name with args.
2993 set dummy cc; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_CC+:} false; then :
2997   $as_echo_n "(cached) " >&6
2998 else
2999   if test -n "$CC"; then
3000   ac_cv_prog_CC="$CC" # Let the user override the test.
3001 else
3002   ac_prog_rejected=no
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_exec_ext in '' $ac_executable_extensions; do
3009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3011        ac_prog_rejected=yes
3012        continue
3013      fi
3014     ac_cv_prog_CC="cc"
3015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016     break 2
3017   fi
3018 done
3019   done
3020 IFS=$as_save_IFS
3021
3022 if test $ac_prog_rejected = yes; then
3023   # We found a bogon in the path, so make sure we never use it.
3024   set dummy $ac_cv_prog_CC
3025   shift
3026   if test $# != 0; then
3027     # We chose a different compiler from the bogus one.
3028     # However, it has the same basename, so the bogon will be chosen
3029     # first if we set CC to just the basename; use the full file name.
3030     shift
3031     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3032   fi
3033 fi
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 if test -z "$CC"; then
3048   if test -n "$ac_tool_prefix"; then
3049   for ac_prog in cl.exe
3050   do
3051     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CC+:} false; then :
3056   $as_echo_n "(cached) " >&6
3057 else
3058   if test -n "$CC"; then
3059   ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064   IFS=$as_save_IFS
3065   test -z "$as_dir" && as_dir=.
3066     for ac_exec_ext in '' $ac_executable_extensions; do
3067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070     break 2
3071   fi
3072 done
3073   done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088     test -n "$CC" && break
3089   done
3090 fi
3091 if test -z "$CC"; then
3092   ac_ct_CC=$CC
3093   for ac_prog in cl.exe
3094 do
3095   # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$ac_ct_CC"; then
3103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112     ac_cv_prog_ac_ct_CC="$ac_prog"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3125 $as_echo "$ac_ct_CC" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132   test -n "$ac_ct_CC" && break
3133 done
3134
3135   if test "x$ac_ct_CC" = x; then
3136     CC=""
3137   else
3138     case $cross_compiling:$ac_tool_warned in
3139 yes:)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 ac_tool_warned=yes ;;
3143 esac
3144     CC=$ac_ct_CC
3145   fi
3146 fi
3147
3148 fi
3149
3150
3151 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "no acceptable C compiler found in \$PATH
3154 See \`config.log' for more details" "$LINENO" 5; }
3155
3156 # Provide some information about the compiler.
3157 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3158 set X $ac_compile
3159 ac_compiler=$2
3160 for ac_option in --version -v -V -qversion; do
3161   { { ac_try="$ac_compiler $ac_option >&5"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3169   ac_status=$?
3170   if test -s conftest.err; then
3171     sed '10a\
3172 ... rest of stderr output deleted ...
3173          10q' conftest.err >conftest.er1
3174     cat conftest.er1 >&5
3175   fi
3176   rm -f conftest.er1 conftest.err
3177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178   test $ac_status = 0; }
3179 done
3180
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 ac_clean_files_save=$ac_clean_files
3193 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3194 # Try to create an executable without -o first, disregard a.out.
3195 # It will help us diagnose broken compilers, and finding out an intuition
3196 # of exeext.
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3198 $as_echo_n "checking whether the C compiler works... " >&6; }
3199 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3200
3201 # The possible output files:
3202 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3203
3204 ac_rmfiles=
3205 for ac_file in $ac_files
3206 do
3207   case $ac_file in
3208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3210   esac
3211 done
3212 rm -f $ac_rmfiles
3213
3214 if { { ac_try="$ac_link_default"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221   (eval "$ac_link_default") 2>&5
3222   ac_status=$?
3223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224   test $ac_status = 0; }; then :
3225   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3226 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3227 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3228 # so that the user can short-circuit this test for compilers unknown to
3229 # Autoconf.
3230 for ac_file in $ac_files ''
3231 do
3232   test -f "$ac_file" || continue
3233   case $ac_file in
3234     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3235         ;;
3236     [ab].out )
3237         # We found the default executable, but exeext='' is most
3238         # certainly right.
3239         break;;
3240     *.* )
3241         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3242         then :; else
3243            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244         fi
3245         # We set ac_cv_exeext here because the later test for it is not
3246         # safe: cross compilers may not add the suffix if given an `-o'
3247         # argument, so we may need to know it at that point already.
3248         # Even if this section looks crufty: it has the advantage of
3249         # actually working.
3250         break;;
3251     * )
3252         break;;
3253   esac
3254 done
3255 test "$ac_cv_exeext" = no && ac_cv_exeext=
3256
3257 else
3258   ac_file=''
3259 fi
3260 if test -z "$ac_file"; then :
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error 77 "C compiler cannot create executables
3269 See \`config.log' for more details" "$LINENO" 5; }
3270 else
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3273 fi
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3275 $as_echo_n "checking for C compiler default output file name... " >&6; }
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3277 $as_echo "$ac_file" >&6; }
3278 ac_exeext=$ac_cv_exeext
3279
3280 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3281 ac_clean_files=$ac_clean_files_save
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3283 $as_echo_n "checking for suffix of executables... " >&6; }
3284 if { { ac_try="$ac_link"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291   (eval "$ac_link") 2>&5
3292   ac_status=$?
3293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294   test $ac_status = 0; }; then :
3295   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3296 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3297 # work properly (i.e., refer to `conftest.exe'), while it won't with
3298 # `rm'.
3299 for ac_file in conftest.exe conftest conftest.*; do
3300   test -f "$ac_file" || continue
3301   case $ac_file in
3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304           break;;
3305     * ) break;;
3306   esac
3307 done
3308 else
3309   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3312 See \`config.log' for more details" "$LINENO" 5; }
3313 fi
3314 rm -f conftest conftest$ac_cv_exeext
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3316 $as_echo "$ac_cv_exeext" >&6; }
3317
3318 rm -f conftest.$ac_ext
3319 EXEEXT=$ac_cv_exeext
3320 ac_exeext=$EXEEXT
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h.  */
3323 #include <stdio.h>
3324 int
3325 main ()
3326 {
3327 FILE *f = fopen ("conftest.out", "w");
3328  return ferror (f) || fclose (f) != 0;
3329
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 ac_clean_files="$ac_clean_files conftest.out"
3335 # Check that the compiler produces executables we can run.  If not, either
3336 # the compiler is broken, or we cross compile.
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3338 $as_echo_n "checking whether we are cross compiling... " >&6; }
3339 if test "$cross_compiling" != yes; then
3340   { { ac_try="$ac_link"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347   (eval "$ac_link") 2>&5
3348   ac_status=$?
3349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350   test $ac_status = 0; }
3351   if { ac_try='./conftest$ac_cv_exeext'
3352   { { case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358   (eval "$ac_try") 2>&5
3359   ac_status=$?
3360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361   test $ac_status = 0; }; }; then
3362     cross_compiling=no
3363   else
3364     if test "$cross_compiling" = maybe; then
3365         cross_compiling=yes
3366     else
3367         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "cannot run C compiled programs.
3370 If you meant to cross compile, use \`--host'.
3371 See \`config.log' for more details" "$LINENO" 5; }
3372     fi
3373   fi
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3377
3378 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3379 ac_clean_files=$ac_clean_files_save
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3381 $as_echo_n "checking for suffix of object files... " >&6; }
3382 if ${ac_cv_objext+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h.  */
3387
3388 int
3389 main ()
3390 {
3391
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.o conftest.obj
3397 if { { ac_try="$ac_compile"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404   (eval "$ac_compile") 2>&5
3405   ac_status=$?
3406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407   test $ac_status = 0; }; then :
3408   for ac_file in conftest.o conftest.obj conftest.*; do
3409   test -f "$ac_file" || continue;
3410   case $ac_file in
3411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3412     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3413        break;;
3414   esac
3415 done
3416 else
3417   $as_echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error $? "cannot compute suffix of object files: cannot compile
3423 See \`config.log' for more details" "$LINENO" 5; }
3424 fi
3425 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3426 fi
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3428 $as_echo "$ac_cv_objext" >&6; }
3429 OBJEXT=$ac_cv_objext
3430 ac_objext=$OBJEXT
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3432 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3433 if ${ac_cv_c_compiler_gnu+:} false; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442 #ifndef __GNUC__
3443        choke me
3444 #endif
3445
3446   ;
3447   return 0;
3448 }
3449 _ACEOF
3450 if ac_fn_c_try_compile "$LINENO"; then :
3451   ac_compiler_gnu=yes
3452 else
3453   ac_compiler_gnu=no
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3457
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3460 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3461 if test $ac_compiler_gnu = yes; then
3462   GCC=yes
3463 else
3464   GCC=
3465 fi
3466 ac_test_CFLAGS=${CFLAGS+set}
3467 ac_save_CFLAGS=$CFLAGS
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3469 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3470 if ${ac_cv_prog_cc_g+:} false; then :
3471   $as_echo_n "(cached) " >&6
3472 else
3473   ac_save_c_werror_flag=$ac_c_werror_flag
3474    ac_c_werror_flag=yes
3475    ac_cv_prog_cc_g=no
3476    CFLAGS="-g"
3477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489   ac_cv_prog_cc_g=yes
3490 else
3491   CFLAGS=""
3492       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 if ac_fn_c_try_compile "$LINENO"; then :
3504
3505 else
3506   ac_c_werror_flag=$ac_save_c_werror_flag
3507          CFLAGS="-g"
3508          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510
3511 int
3512 main ()
3513 {
3514
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520   ac_cv_prog_cc_g=yes
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527    ac_c_werror_flag=$ac_save_c_werror_flag
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3530 $as_echo "$ac_cv_prog_cc_g" >&6; }
3531 if test "$ac_test_CFLAGS" = set; then
3532   CFLAGS=$ac_save_CFLAGS
3533 elif test $ac_cv_prog_cc_g = yes; then
3534   if test "$GCC" = yes; then
3535     CFLAGS="-g -O2"
3536   else
3537     CFLAGS="-g"
3538   fi
3539 else
3540   if test "$GCC" = yes; then
3541     CFLAGS="-O2"
3542   else
3543     CFLAGS=
3544   fi
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3547 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3548 if ${ac_cv_prog_cc_c89+:} false; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   ac_cv_prog_cc_c89=no
3552 ac_save_CC=$CC
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555 #include <stdarg.h>
3556 #include <stdio.h>
3557 struct stat;
3558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3559 struct buf { int x; };
3560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3561 static char *e (p, i)
3562      char **p;
3563      int i;
3564 {
3565   return p[i];
3566 }
3567 static char *f (char * (*g) (char **, int), char **p, ...)
3568 {
3569   char *s;
3570   va_list v;
3571   va_start (v,p);
3572   s = g (p, va_arg (v,int));
3573   va_end (v);
3574   return s;
3575 }
3576
3577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3578    function prototypes and stuff, but not '\xHH' hex character constants.
3579    These don't provoke an error unfortunately, instead are silently treated
3580    as 'x'.  The following induces an error, until -std is added to get
3581    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3582    array size at least.  It's necessary to write '\x00'==0 to get something
3583    that's true only with -std.  */
3584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3585
3586 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3587    inside strings and character constants.  */
3588 #define FOO(x) 'x'
3589 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3590
3591 int test (int i, double x);
3592 struct s1 {int (*f) (int a);};
3593 struct s2 {int (*f) (double a);};
3594 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3595 int argc;
3596 char **argv;
3597 int
3598 main ()
3599 {
3600 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3606         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3607 do
3608   CC="$ac_save_CC $ac_arg"
3609   if ac_fn_c_try_compile "$LINENO"; then :
3610   ac_cv_prog_cc_c89=$ac_arg
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext
3613   test "x$ac_cv_prog_cc_c89" != "xno" && break
3614 done
3615 rm -f conftest.$ac_ext
3616 CC=$ac_save_CC
3617
3618 fi
3619 # AC_CACHE_VAL
3620 case "x$ac_cv_prog_cc_c89" in
3621   x)
3622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623 $as_echo "none needed" >&6; } ;;
3624   xno)
3625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626 $as_echo "unsupported" >&6; } ;;
3627   *)
3628     CC="$CC $ac_cv_prog_cc_c89"
3629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3630 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3631 esac
3632 if test "x$ac_cv_prog_cc_c89" != xno; then :
3633
3634 fi
3635
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
3642 ac_ext=cpp
3643 ac_cpp='$CXXCPP $CPPFLAGS'
3644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3647 if test -z "$CXX"; then
3648   if test -n "$CCC"; then
3649     CXX=$CCC
3650   else
3651     if test -n "$ac_tool_prefix"; then
3652   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3653   do
3654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if ${ac_cv_prog_CXX+:} false; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661   if test -n "$CXX"; then
3662   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3666 do
3667   IFS=$as_save_IFS
3668   test -z "$as_dir" && as_dir=.
3669     for ac_exec_ext in '' $ac_executable_extensions; do
3670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673     break 2
3674   fi
3675 done
3676   done
3677 IFS=$as_save_IFS
3678
3679 fi
3680 fi
3681 CXX=$ac_cv_prog_CXX
3682 if test -n "$CXX"; then
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3684 $as_echo "$CXX" >&6; }
3685 else
3686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3688 fi
3689
3690
3691     test -n "$CXX" && break
3692   done
3693 fi
3694 if test -z "$CXX"; then
3695   ac_ct_CXX=$CXX
3696   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3697 do
3698   # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   if test -n "$ac_ct_CXX"; then
3706   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713     for ac_exec_ext in '' $ac_executable_extensions; do
3714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715     ac_cv_prog_ac_ct_CXX="$ac_prog"
3716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717     break 2
3718   fi
3719 done
3720   done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3726 if test -n "$ac_ct_CXX"; then
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3728 $as_echo "$ac_ct_CXX" >&6; }
3729 else
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734
3735   test -n "$ac_ct_CXX" && break
3736 done
3737
3738   if test "x$ac_ct_CXX" = x; then
3739     CXX="g++"
3740   else
3741     case $cross_compiling:$ac_tool_warned in
3742 yes:)
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3745 ac_tool_warned=yes ;;
3746 esac
3747     CXX=$ac_ct_CXX
3748   fi
3749 fi
3750
3751   fi
3752 fi
3753 # Provide some information about the compiler.
3754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3755 set X $ac_compile
3756 ac_compiler=$2
3757 for ac_option in --version -v -V -qversion; do
3758   { { ac_try="$ac_compiler $ac_option >&5"
3759 case "(($ac_try" in
3760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761   *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3766   ac_status=$?
3767   if test -s conftest.err; then
3768     sed '10a\
3769 ... rest of stderr output deleted ...
3770          10q' conftest.err >conftest.er1
3771     cat conftest.er1 >&5
3772   fi
3773   rm -f conftest.er1 conftest.err
3774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775   test $ac_status = 0; }
3776 done
3777
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3779 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3780 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789 #ifndef __GNUC__
3790        choke me
3791 #endif
3792
3793   ;
3794   return 0;
3795 }
3796 _ACEOF
3797 if ac_fn_cxx_try_compile "$LINENO"; then :
3798   ac_compiler_gnu=yes
3799 else
3800   ac_compiler_gnu=no
3801 fi
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3804
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3807 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3808 if test $ac_compiler_gnu = yes; then
3809   GXX=yes
3810 else
3811   GXX=
3812 fi
3813 ac_test_CXXFLAGS=${CXXFLAGS+set}
3814 ac_save_CXXFLAGS=$CXXFLAGS
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3816 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3817 if ${ac_cv_prog_cxx_g+:} false; then :
3818   $as_echo_n "(cached) " >&6
3819 else
3820   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3821    ac_cxx_werror_flag=yes
3822    ac_cv_prog_cxx_g=no
3823    CXXFLAGS="-g"
3824    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h.  */
3826
3827 int
3828 main ()
3829 {
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 if ac_fn_cxx_try_compile "$LINENO"; then :
3836   ac_cv_prog_cxx_g=yes
3837 else
3838   CXXFLAGS=""
3839       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h.  */
3841
3842 int
3843 main ()
3844 {
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_cxx_try_compile "$LINENO"; then :
3851
3852 else
3853   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3854          CXXFLAGS="-g"
3855          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h.  */
3857
3858 int
3859 main ()
3860 {
3861
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 if ac_fn_cxx_try_compile "$LINENO"; then :
3867   ac_cv_prog_cxx_g=yes
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 fi
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 fi
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3875 fi
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3877 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3878 if test "$ac_test_CXXFLAGS" = set; then
3879   CXXFLAGS=$ac_save_CXXFLAGS
3880 elif test $ac_cv_prog_cxx_g = yes; then
3881   if test "$GXX" = yes; then
3882     CXXFLAGS="-g -O2"
3883   else
3884     CXXFLAGS="-g"
3885   fi
3886 else
3887   if test "$GXX" = yes; then
3888     CXXFLAGS="-O2"
3889   else
3890     CXXFLAGS=
3891   fi
3892 fi
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899
3900
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3907 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3908 # On Suns, sometimes $CPP names a directory.
3909 if test -n "$CPP" && test -d "$CPP"; then
3910   CPP=
3911 fi
3912 if test -z "$CPP"; then
3913   if ${ac_cv_prog_CPP+:} false; then :
3914   $as_echo_n "(cached) " >&6
3915 else
3916       # Double quotes because CPP needs to be expanded
3917     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3918     do
3919       ac_preproc_ok=false
3920 for ac_c_preproc_warn_flag in '' yes
3921 do
3922   # Use a header file that comes with gcc, so configuring glibc
3923   # with a fresh cross-compiler works.
3924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925   # <limits.h> exists even on freestanding compilers.
3926   # On the NeXT, cc -E runs the code through the compiler's parser,
3927   # not just through cpp. "Syntax error" is here to catch this case.
3928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h.  */
3930 #ifdef __STDC__
3931 # include <limits.h>
3932 #else
3933 # include <assert.h>
3934 #endif
3935                      Syntax error
3936 _ACEOF
3937 if ac_fn_c_try_cpp "$LINENO"; then :
3938
3939 else
3940   # Broken: fails on valid input.
3941 continue
3942 fi
3943 rm -f conftest.err conftest.i conftest.$ac_ext
3944
3945   # OK, works on sane cases.  Now check whether nonexistent headers
3946   # can be detected and how.
3947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h.  */
3949 #include <ac_nonexistent.h>
3950 _ACEOF
3951 if ac_fn_c_try_cpp "$LINENO"; then :
3952   # Broken: success on invalid input.
3953 continue
3954 else
3955   # Passes both tests.
3956 ac_preproc_ok=:
3957 break
3958 fi
3959 rm -f conftest.err conftest.i conftest.$ac_ext
3960
3961 done
3962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3963 rm -f conftest.i conftest.err conftest.$ac_ext
3964 if $ac_preproc_ok; then :
3965   break
3966 fi
3967
3968     done
3969     ac_cv_prog_CPP=$CPP
3970
3971 fi
3972   CPP=$ac_cv_prog_CPP
3973 else
3974   ac_cv_prog_CPP=$CPP
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3977 $as_echo "$CPP" >&6; }
3978 ac_preproc_ok=false
3979 for ac_c_preproc_warn_flag in '' yes
3980 do
3981   # Use a header file that comes with gcc, so configuring glibc
3982   # with a fresh cross-compiler works.
3983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3984   # <limits.h> exists even on freestanding compilers.
3985   # On the NeXT, cc -E runs the code through the compiler's parser,
3986   # not just through cpp. "Syntax error" is here to catch this case.
3987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989 #ifdef __STDC__
3990 # include <limits.h>
3991 #else
3992 # include <assert.h>
3993 #endif
3994                      Syntax error
3995 _ACEOF
3996 if ac_fn_c_try_cpp "$LINENO"; then :
3997
3998 else
3999   # Broken: fails on valid input.
4000 continue
4001 fi
4002 rm -f conftest.err conftest.i conftest.$ac_ext
4003
4004   # OK, works on sane cases.  Now check whether nonexistent headers
4005   # can be detected and how.
4006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h.  */
4008 #include <ac_nonexistent.h>
4009 _ACEOF
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011   # Broken: success on invalid input.
4012 continue
4013 else
4014   # Passes both tests.
4015 ac_preproc_ok=:
4016 break
4017 fi
4018 rm -f conftest.err conftest.i conftest.$ac_ext
4019
4020 done
4021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022 rm -f conftest.i conftest.err conftest.$ac_ext
4023 if $ac_preproc_ok; then :
4024
4025 else
4026   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4029 See \`config.log' for more details" "$LINENO" 5; }
4030 fi
4031
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4040 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4041 if ${ac_cv_path_GREP+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   if test -z "$GREP"; then
4045   ac_path_GREP_found=false
4046   # Loop through the user's path and test for each of PROGNAME-LIST
4047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052     for ac_prog in grep ggrep; do
4053     for ac_exec_ext in '' $ac_executable_extensions; do
4054       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4055       as_fn_executable_p "$ac_path_GREP" || continue
4056 # Check for GNU ac_path_GREP and select it if it is found.
4057   # Check for GNU $ac_path_GREP
4058 case `"$ac_path_GREP" --version 2>&1` in
4059 *GNU*)
4060   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4061 *)
4062   ac_count=0
4063   $as_echo_n 0123456789 >"conftest.in"
4064   while :
4065   do
4066     cat "conftest.in" "conftest.in" >"conftest.tmp"
4067     mv "conftest.tmp" "conftest.in"
4068     cp "conftest.in" "conftest.nl"
4069     $as_echo 'GREP' >> "conftest.nl"
4070     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072     as_fn_arith $ac_count + 1 && ac_count=$as_val
4073     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4074       # Best one so far, save it but keep looking for a better one
4075       ac_cv_path_GREP="$ac_path_GREP"
4076       ac_path_GREP_max=$ac_count
4077     fi
4078     # 10*(2^10) chars as input seems more than enough
4079     test $ac_count -gt 10 && break
4080   done
4081   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082 esac
4083
4084       $ac_path_GREP_found && break 3
4085     done
4086   done
4087   done
4088 IFS=$as_save_IFS
4089   if test -z "$ac_cv_path_GREP"; then
4090     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4091   fi
4092 else
4093   ac_cv_path_GREP=$GREP
4094 fi
4095
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4098 $as_echo "$ac_cv_path_GREP" >&6; }
4099  GREP="$ac_cv_path_GREP"
4100
4101
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4103 $as_echo_n "checking for egrep... " >&6; }
4104 if ${ac_cv_path_EGREP+:} false; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4108    then ac_cv_path_EGREP="$GREP -E"
4109    else
4110      if test -z "$EGREP"; then
4111   ac_path_EGREP_found=false
4112   # Loop through the user's path and test for each of PROGNAME-LIST
4113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118     for ac_prog in egrep; do
4119     for ac_exec_ext in '' $ac_executable_extensions; do
4120       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4121       as_fn_executable_p "$ac_path_EGREP" || continue
4122 # Check for GNU ac_path_EGREP and select it if it is found.
4123   # Check for GNU $ac_path_EGREP
4124 case `"$ac_path_EGREP" --version 2>&1` in
4125 *GNU*)
4126   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4127 *)
4128   ac_count=0
4129   $as_echo_n 0123456789 >"conftest.in"
4130   while :
4131   do
4132     cat "conftest.in" "conftest.in" >"conftest.tmp"
4133     mv "conftest.tmp" "conftest.in"
4134     cp "conftest.in" "conftest.nl"
4135     $as_echo 'EGREP' >> "conftest.nl"
4136     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138     as_fn_arith $ac_count + 1 && ac_count=$as_val
4139     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4140       # Best one so far, save it but keep looking for a better one
4141       ac_cv_path_EGREP="$ac_path_EGREP"
4142       ac_path_EGREP_max=$ac_count
4143     fi
4144     # 10*(2^10) chars as input seems more than enough
4145     test $ac_count -gt 10 && break
4146   done
4147   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4148 esac
4149
4150       $ac_path_EGREP_found && break 3
4151     done
4152   done
4153   done
4154 IFS=$as_save_IFS
4155   if test -z "$ac_cv_path_EGREP"; then
4156     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4157   fi
4158 else
4159   ac_cv_path_EGREP=$EGREP
4160 fi
4161
4162    fi
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4165 $as_echo "$ac_cv_path_EGREP" >&6; }
4166  EGREP="$ac_cv_path_EGREP"
4167
4168
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4170 $as_echo_n "checking for ANSI C header files... " >&6; }
4171 if ${ac_cv_header_stdc+:} false; then :
4172   $as_echo_n "(cached) " >&6
4173 else
4174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h.  */
4176 #include <stdlib.h>
4177 #include <stdarg.h>
4178 #include <string.h>
4179 #include <float.h>
4180
4181 int
4182 main ()
4183 {
4184
4185   ;
4186   return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190   ac_cv_header_stdc=yes
4191 else
4192   ac_cv_header_stdc=no
4193 fi
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195
4196 if test $ac_cv_header_stdc = yes; then
4197   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h.  */
4200 #include <string.h>
4201
4202 _ACEOF
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204   $EGREP "memchr" >/dev/null 2>&1; then :
4205
4206 else
4207   ac_cv_header_stdc=no
4208 fi
4209 rm -f conftest*
4210
4211 fi
4212
4213 if test $ac_cv_header_stdc = yes; then
4214   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h.  */
4217 #include <stdlib.h>
4218
4219 _ACEOF
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221   $EGREP "free" >/dev/null 2>&1; then :
4222
4223 else
4224   ac_cv_header_stdc=no
4225 fi
4226 rm -f conftest*
4227
4228 fi
4229
4230 if test $ac_cv_header_stdc = yes; then
4231   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232   if test "$cross_compiling" = yes; then :
4233   :
4234 else
4235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237 #include <ctype.h>
4238 #include <stdlib.h>
4239 #if ((' ' & 0x0FF) == 0x020)
4240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4242 #else
4243 # define ISLOWER(c) \
4244                    (('a' <= (c) && (c) <= 'i') \
4245                      || ('j' <= (c) && (c) <= 'r') \
4246                      || ('s' <= (c) && (c) <= 'z'))
4247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4248 #endif
4249
4250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4251 int
4252 main ()
4253 {
4254   int i;
4255   for (i = 0; i < 256; i++)
4256     if (XOR (islower (i), ISLOWER (i))
4257         || toupper (i) != TOUPPER (i))
4258       return 2;
4259   return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_c_try_run "$LINENO"; then :
4263
4264 else
4265   ac_cv_header_stdc=no
4266 fi
4267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4268   conftest.$ac_objext conftest.beam conftest.$ac_ext
4269 fi
4270
4271 fi
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4274 $as_echo "$ac_cv_header_stdc" >&6; }
4275 if test $ac_cv_header_stdc = yes; then
4276
4277 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4278
4279 fi
4280
4281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4282 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4283                   inttypes.h stdint.h unistd.h
4284 do :
4285   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4286 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4287 "
4288 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4289   cat >>confdefs.h <<_ACEOF
4290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291 _ACEOF
4292
4293 fi
4294
4295 done
4296
4297
4298
4299   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4300 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4301   MINIX=yes
4302 else
4303   MINIX=
4304 fi
4305
4306
4307   if test "$MINIX" = yes; then
4308
4309 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4310
4311
4312 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4313
4314
4315 $as_echo "#define _MINIX 1" >>confdefs.h
4316
4317   fi
4318
4319
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4321 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4322 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h.  */
4327
4328 #         define __EXTENSIONS__ 1
4329           $ac_includes_default
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339   ac_cv_safe_to_define___extensions__=yes
4340 else
4341   ac_cv_safe_to_define___extensions__=no
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4346 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4347   test $ac_cv_safe_to_define___extensions__ = yes &&
4348     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4349
4350   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4351
4352   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4353
4354   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4355
4356   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4357
4358
4359
4360
4361 if test $ac_cv_c_compiler_gnu = yes; then
4362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4363 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4364 if ${ac_cv_prog_gcc_traditional+:} false; then :
4365   $as_echo_n "(cached) " >&6
4366 else
4367     ac_pattern="Autoconf.*'x'"
4368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370 #include <sgtty.h>
4371 Autoconf TIOCGETP
4372 _ACEOF
4373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4374   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4375   ac_cv_prog_gcc_traditional=yes
4376 else
4377   ac_cv_prog_gcc_traditional=no
4378 fi
4379 rm -f conftest*
4380
4381
4382   if test $ac_cv_prog_gcc_traditional = no; then
4383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h.  */
4385 #include <termio.h>
4386 Autoconf TCGETA
4387 _ACEOF
4388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4389   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4390   ac_cv_prog_gcc_traditional=yes
4391 fi
4392 rm -f conftest*
4393
4394   fi
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4397 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4398   if test $ac_cv_prog_gcc_traditional = yes; then
4399     CC="$CC -traditional"
4400   fi
4401 fi
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4404 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4405 if ${ac_cv_prog_suncc+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   cat > conftest.c <<EOF
4409 #ifdef __SUNPRO_C
4410   yes;
4411 #endif
4412 EOF
4413 if { ac_try='${CC-cc} -E conftest.c'
4414   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4415   (eval $ac_try) 2>&5
4416   ac_status=$?
4417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4419   ac_cv_prog_suncc=yes
4420 else
4421   ac_cv_prog_suncc=no
4422 fi
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4425 $as_echo "$ac_cv_prog_suncc" >&6; }
4426 if test -n "$ac_tool_prefix"; then
4427   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if ${ac_cv_prog_RANLIB+:} false; then :
4432   $as_echo_n "(cached) " >&6
4433 else
4434   if test -n "$RANLIB"; then
4435   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442     for ac_exec_ext in '' $ac_executable_extensions; do
4443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449   done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 RANLIB=$ac_cv_prog_RANLIB
4455 if test -n "$RANLIB"; then
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4457 $as_echo "$RANLIB" >&6; }
4458 else
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461 fi
4462
4463
4464 fi
4465 if test -z "$ac_cv_prog_RANLIB"; then
4466   ac_ct_RANLIB=$RANLIB
4467   # Extract the first word of "ranlib", so it can be a program name with args.
4468 set dummy ranlib; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474   if test -n "$ac_ct_RANLIB"; then
4475   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482     for ac_exec_ext in '' $ac_executable_extensions; do
4483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484     ac_cv_prog_ac_ct_RANLIB="ranlib"
4485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489   done
4490 IFS=$as_save_IFS
4491
4492 fi
4493 fi
4494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4495 if test -n "$ac_ct_RANLIB"; then
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4497 $as_echo "$ac_ct_RANLIB" >&6; }
4498 else
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502
4503   if test "x$ac_ct_RANLIB" = x; then
4504     RANLIB=":"
4505   else
4506     case $cross_compiling:$ac_tool_warned in
4507 yes:)
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4510 ac_tool_warned=yes ;;
4511 esac
4512     RANLIB=$ac_ct_RANLIB
4513   fi
4514 else
4515   RANLIB="$ac_cv_prog_RANLIB"
4516 fi
4517
4518
4519 if test "x$GCC" = "xyes"; then
4520     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4521 fi
4522
4523 # Check whether --enable-largefile was given.
4524 if test "${enable_largefile+set}" = set; then :
4525   enableval=$enable_largefile;
4526 fi
4527
4528 if test "$enable_largefile" != no; then
4529
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4531 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4532 if ${ac_cv_sys_largefile_CC+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535   ac_cv_sys_largefile_CC=no
4536      if test "$GCC" != yes; then
4537        ac_save_CC=$CC
4538        while :; do
4539          # IRIX 6.2 and later do not support large files by default,
4540          # so use the C compiler's -n32 option if that helps.
4541          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543 #include <sys/types.h>
4544  /* Check that off_t can represent 2**63 - 1 correctly.
4545     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4546     since some C++ compilers masquerading as C compilers
4547     incorrectly reject 9223372036854775807.  */
4548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4549   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4550                        && LARGE_OFF_T % 2147483647 == 1)
4551                       ? 1 : -1];
4552 int
4553 main ()
4554 {
4555
4556   ;
4557   return 0;
4558 }
4559 _ACEOF
4560          if ac_fn_c_try_compile "$LINENO"; then :
4561   break
4562 fi
4563 rm -f core conftest.err conftest.$ac_objext
4564          CC="$CC -n32"
4565          if ac_fn_c_try_compile "$LINENO"; then :
4566   ac_cv_sys_largefile_CC=' -n32'; break
4567 fi
4568 rm -f core conftest.err conftest.$ac_objext
4569          break
4570        done
4571        CC=$ac_save_CC
4572        rm -f conftest.$ac_ext
4573     fi
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4576 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4577   if test "$ac_cv_sys_largefile_CC" != no; then
4578     CC=$CC$ac_cv_sys_largefile_CC
4579   fi
4580
4581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4582 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4583 if ${ac_cv_sys_file_offset_bits+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   while :; do
4587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h.  */
4589 #include <sys/types.h>
4590  /* Check that off_t can represent 2**63 - 1 correctly.
4591     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4592     since some C++ compilers masquerading as C compilers
4593     incorrectly reject 9223372036854775807.  */
4594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4595   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4596                        && LARGE_OFF_T % 2147483647 == 1)
4597                       ? 1 : -1];
4598 int
4599 main ()
4600 {
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_c_try_compile "$LINENO"; then :
4607   ac_cv_sys_file_offset_bits=no; break
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h.  */
4612 #define _FILE_OFFSET_BITS 64
4613 #include <sys/types.h>
4614  /* Check that off_t can represent 2**63 - 1 correctly.
4615     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4616     since some C++ compilers masquerading as C compilers
4617     incorrectly reject 9223372036854775807.  */
4618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4619   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4620                        && LARGE_OFF_T % 2147483647 == 1)
4621                       ? 1 : -1];
4622 int
4623 main ()
4624 {
4625
4626   ;
4627   return 0;
4628 }
4629 _ACEOF
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631   ac_cv_sys_file_offset_bits=64; break
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634   ac_cv_sys_file_offset_bits=unknown
4635   break
4636 done
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4639 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4640 case $ac_cv_sys_file_offset_bits in #(
4641   no | unknown) ;;
4642   *)
4643 cat >>confdefs.h <<_ACEOF
4644 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4645 _ACEOF
4646 ;;
4647 esac
4648 rm -rf conftest*
4649   if test $ac_cv_sys_file_offset_bits = unknown; then
4650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4651 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4652 if ${ac_cv_sys_large_files+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   while :; do
4656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658 #include <sys/types.h>
4659  /* Check that off_t can represent 2**63 - 1 correctly.
4660     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4661     since some C++ compilers masquerading as C compilers
4662     incorrectly reject 9223372036854775807.  */
4663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4664   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4665                        && LARGE_OFF_T % 2147483647 == 1)
4666                       ? 1 : -1];
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676   ac_cv_sys_large_files=no; break
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681 #define _LARGE_FILES 1
4682 #include <sys/types.h>
4683  /* Check that off_t can represent 2**63 - 1 correctly.
4684     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4685     since some C++ compilers masquerading as C compilers
4686     incorrectly reject 9223372036854775807.  */
4687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4688   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4689                        && LARGE_OFF_T % 2147483647 == 1)
4690                       ? 1 : -1];
4691 int
4692 main ()
4693 {
4694
4695   ;
4696   return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700   ac_cv_sys_large_files=1; break
4701 fi
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703   ac_cv_sys_large_files=unknown
4704   break
4705 done
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4708 $as_echo "$ac_cv_sys_large_files" >&6; }
4709 case $ac_cv_sys_large_files in #(
4710   no | unknown) ;;
4711   *)
4712 cat >>confdefs.h <<_ACEOF
4713 #define _LARGE_FILES $ac_cv_sys_large_files
4714 _ACEOF
4715 ;;
4716 esac
4717 rm -rf conftest*
4718   fi
4719
4720
4721 fi
4722
4723
4724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4725 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4726 if ${ac_cv_c_bigendian+:} false; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   ac_cv_c_bigendian=unknown
4730     # See if we're dealing with a universal compiler.
4731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h.  */
4733 #ifndef __APPLE_CC__
4734                not a universal capable compiler
4735              #endif
4736              typedef int dummy;
4737
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"; then :
4740
4741         # Check for potential -arch flags.  It is not universal unless
4742         # there are at least two -arch flags with different values.
4743         ac_arch=
4744         ac_prev=
4745         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4746          if test -n "$ac_prev"; then
4747            case $ac_word in
4748              i?86 | x86_64 | ppc | ppc64)
4749                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4750                  ac_arch=$ac_word
4751                else
4752                  ac_cv_c_bigendian=universal
4753                  break
4754                fi
4755                ;;
4756            esac
4757            ac_prev=
4758          elif test "x$ac_word" = "x-arch"; then
4759            ac_prev=arch
4760          fi
4761        done
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764     if test $ac_cv_c_bigendian = unknown; then
4765       # See if sys/param.h defines the BYTE_ORDER macro.
4766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 #include <sys/types.h>
4769              #include <sys/param.h>
4770
4771 int
4772 main ()
4773 {
4774 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4775                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4776                      && LITTLE_ENDIAN)
4777               bogus endian macros
4778              #endif
4779
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785   # It does; now see whether it defined to BIG_ENDIAN or not.
4786          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h.  */
4788 #include <sys/types.h>
4789                 #include <sys/param.h>
4790
4791 int
4792 main ()
4793 {
4794 #if BYTE_ORDER != BIG_ENDIAN
4795                  not big endian
4796                 #endif
4797
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803   ac_cv_c_bigendian=yes
4804 else
4805   ac_cv_c_bigendian=no
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810     fi
4811     if test $ac_cv_c_bigendian = unknown; then
4812       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4813       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h.  */
4815 #include <limits.h>
4816
4817 int
4818 main ()
4819 {
4820 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4821               bogus endian macros
4822              #endif
4823
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829   # It does; now see whether it defined to _BIG_ENDIAN or not.
4830          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h.  */
4832 #include <limits.h>
4833
4834 int
4835 main ()
4836 {
4837 #ifndef _BIG_ENDIAN
4838                  not big endian
4839                 #endif
4840
4841   ;
4842   return 0;
4843 }
4844 _ACEOF
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846   ac_cv_c_bigendian=yes
4847 else
4848   ac_cv_c_bigendian=no
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853     fi
4854     if test $ac_cv_c_bigendian = unknown; then
4855       # Compile a test program.
4856       if test "$cross_compiling" = yes; then :
4857   # Try to guess by grepping values from an object file.
4858          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h.  */
4860 short int ascii_mm[] =
4861                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4862                 short int ascii_ii[] =
4863                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4864                 int use_ascii (int i) {
4865                   return ascii_mm[i] + ascii_ii[i];
4866                 }
4867                 short int ebcdic_ii[] =
4868                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4869                 short int ebcdic_mm[] =
4870                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4871                 int use_ebcdic (int i) {
4872                   return ebcdic_mm[i] + ebcdic_ii[i];
4873                 }
4874                 extern int foo;
4875
4876 int
4877 main ()
4878 {
4879 return use_ascii (foo) == use_ebcdic (foo);
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4886               ac_cv_c_bigendian=yes
4887             fi
4888             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4889               if test "$ac_cv_c_bigendian" = unknown; then
4890                 ac_cv_c_bigendian=no
4891               else
4892                 # finding both strings is unlikely to happen, but who knows?
4893                 ac_cv_c_bigendian=unknown
4894               fi
4895             fi
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 else
4899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h.  */
4901 $ac_includes_default
4902 int
4903 main ()
4904 {
4905
4906              /* Are we little or big endian?  From Harbison&Steele.  */
4907              union
4908              {
4909                long int l;
4910                char c[sizeof (long int)];
4911              } u;
4912              u.l = 1;
4913              return u.c[sizeof (long int) - 1] == 1;
4914
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_c_try_run "$LINENO"; then :
4920   ac_cv_c_bigendian=no
4921 else
4922   ac_cv_c_bigendian=yes
4923 fi
4924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4925   conftest.$ac_objext conftest.beam conftest.$ac_ext
4926 fi
4927
4928     fi
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4931 $as_echo "$ac_cv_c_bigendian" >&6; }
4932  case $ac_cv_c_bigendian in #(
4933    yes)
4934      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4935 ;; #(
4936    no)
4937       ;; #(
4938    universal)
4939
4940 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4941
4942      ;; #(
4943    *)
4944      as_fn_error $? "unknown endianness
4945  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4946  esac
4947
4948
4949 # Extract the first word of "gmake", so it can be a program name with args.
4950 set dummy gmake; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_prog_GMAKE+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   if test -n "$GMAKE"; then
4957   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962   IFS=$as_save_IFS
4963   test -z "$as_dir" && as_dir=.
4964     for ac_exec_ext in '' $ac_executable_extensions; do
4965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966     ac_cv_prog_GMAKE="yes"
4967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968     break 2
4969   fi
4970 done
4971   done
4972 IFS=$as_save_IFS
4973
4974   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4975 fi
4976 fi
4977 GMAKE=$ac_cv_prog_GMAKE
4978 if test -n "$GMAKE"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4980 $as_echo "$GMAKE" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986
4987 if test $GMAKE = no; then
4988   # Extract the first word of "make", so it can be a program name with args.
4989 set dummy make; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_MAKE+:} false; then :
4993   $as_echo_n "(cached) " >&6
4994 else
4995   case $MAKE in
4996   [\\/]* | ?:[\\/]*)
4997   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4998   ;;
4999   *)
5000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014
5015   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5016   ;;
5017 esac
5018 fi
5019 MAKE=$ac_cv_path_MAKE
5020 if test -n "$MAKE"; then
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5022 $as_echo "$MAKE" >&6; }
5023 else
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029 else
5030   # Extract the first word of "gmake", so it can be a program name with args.
5031 set dummy gmake; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_MAKE+:} false; then :
5035   $as_echo_n "(cached) " >&6
5036 else
5037   case $MAKE in
5038   [\\/]* | ?:[\\/]*)
5039   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5040   ;;
5041   *)
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047     for ac_exec_ext in '' $ac_executable_extensions; do
5048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054   done
5055 IFS=$as_save_IFS
5056
5057   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5058   ;;
5059 esac
5060 fi
5061 MAKE=$ac_cv_path_MAKE
5062 if test -n "$MAKE"; then
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5064 $as_echo "$MAKE" >&6; }
5065 else
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5068 fi
5069
5070
5071 fi
5072 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5073 if test -z "$makever"; then
5074   as_fn_error $? "GNU Make is not installed.  Please download and install it
5075                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
5076 fi
5077
5078 # Extract the first word of "git", so it can be a program name with args.
5079 set dummy git; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_GIT+:} false; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   if test -n "$GIT"; then
5086   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095     ac_cv_prog_GIT="yes"
5096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100   done
5101 IFS=$as_save_IFS
5102
5103   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5104 fi
5105 fi
5106 GIT=$ac_cv_prog_GIT
5107 if test -n "$GIT"; then
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5109 $as_echo "$GIT" >&6; }
5110 else
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115
5116
5117
5118 # Check whether --with-system-libltdl was given.
5119 if test "${with_system_libltdl+set}" = set; then :
5120   withval=$with_system_libltdl;
5121 LIBLTDL="-lltdl"
5122 INCLTDL=-DWITH_SYSTEM_LTDL
5123 LTDL_SUBDIRS=
5124
5125 else
5126
5127 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
5129 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
5130 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   ac_check_lib_save_LIBS=$LIBS
5134 LIBS="-lltdl  $LIBS"
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137
5138 /* Override any GCC internal prototype to avoid an error.
5139    Use char because int might match the return type of a GCC
5140    builtin and then its argument prototype would still apply.  */
5141 #ifdef __cplusplus
5142 extern "C"
5143 #endif
5144 char lt_dlinit ();
5145 int
5146 main ()
5147 {
5148 return lt_dlinit ();
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 if ac_fn_c_try_link "$LINENO"; then :
5154   ac_cv_lib_ltdl_lt_dlinit=yes
5155 else
5156   ac_cv_lib_ltdl_lt_dlinit=no
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext \
5159     conftest$ac_exeext conftest.$ac_ext
5160 LIBS=$ac_check_lib_save_LIBS
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5163 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5164 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5165   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5166 else
5167   if test x"$enable_ltdl_install" = xno; then
5168      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5169 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5170    else
5171      enable_ltdl_install=yes
5172    fi
5173
5174 fi
5175
5176   if test x"$enable_ltdl_install" = x"yes"; then
5177     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5178     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5179     LTDLINCL='-I${top_srcdir}/''libltdl'
5180   else
5181     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5182     LIBLTDL="-lltdl"
5183     LTDLINCL=
5184   fi
5185   # For backwards non-gettext consistent compatibility...
5186   INCLTDL="$LTDLINCL"
5187
5188
5189 if test x"$enable_ltdl_install" = x"yes"; then
5190   LTDL_SUBDIRS=libltdl
5191 fi
5192
5193 fi
5194
5195
5196
5197 LTCFLAGS=" "
5198
5199 # Check whether --enable-shared was given.
5200 if test "${enable_shared+set}" = set; then :
5201   enableval=$enable_shared; p=${PACKAGE-default}
5202     case $enableval in
5203     yes) enable_shared=yes ;;
5204     no) enable_shared=no ;;
5205     *)
5206       enable_shared=no
5207       # Look at the argument we got.  We use all the common list separators.
5208       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5209       for pkg in $enableval; do
5210         IFS="$lt_save_ifs"
5211         if test "X$pkg" = "X$p"; then
5212           enable_shared=yes
5213         fi
5214       done
5215       IFS="$lt_save_ifs"
5216       ;;
5217     esac
5218 else
5219   enable_shared=yes
5220 fi
5221
5222
5223 # Check whether --enable-static was given.
5224 if test "${enable_static+set}" = set; then :
5225   enableval=$enable_static; p=${PACKAGE-default}
5226     case $enableval in
5227     yes) enable_static=yes ;;
5228     no) enable_static=no ;;
5229     *)
5230      enable_static=no
5231       # Look at the argument we got.  We use all the common list separators.
5232       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5233       for pkg in $enableval; do
5234         IFS="$lt_save_ifs"
5235         if test "X$pkg" = "X$p"; then
5236           enable_static=yes
5237         fi
5238       done
5239       IFS="$lt_save_ifs"
5240       ;;
5241     esac
5242 else
5243   enable_static=yes
5244 fi
5245
5246
5247 # Check whether --enable-fast-install was given.
5248 if test "${enable_fast_install+set}" = set; then :
5249   enableval=$enable_fast_install; p=${PACKAGE-default}
5250     case $enableval in
5251     yes) enable_fast_install=yes ;;
5252     no) enable_fast_install=no ;;
5253     *)
5254       enable_fast_install=no
5255       # Look at the argument we got.  We use all the common list separators.
5256       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5257       for pkg in $enableval; do
5258         IFS="$lt_save_ifs"
5259         if test "X$pkg" = "X$p"; then
5260           enable_fast_install=yes
5261         fi
5262       done
5263       IFS="$lt_save_ifs"
5264       ;;
5265     esac
5266 else
5267   enable_fast_install=yes
5268 fi
5269
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5272 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5273 if ${lt_cv_path_SED+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   # Loop through the user's path and test for sed and gsed.
5277 # Then use that list of sed's as ones to test for truncation.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281   IFS=$as_save_IFS
5282   test -z "$as_dir" && as_dir=.
5283   for lt_ac_prog in sed gsed; do
5284     for ac_exec_ext in '' $ac_executable_extensions; do
5285       if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5286         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5287       fi
5288     done
5289   done
5290 done
5291 IFS=$as_save_IFS
5292 lt_ac_max=0
5293 lt_ac_count=0
5294 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5295 # along with /bin/sed that truncates output.
5296 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5297   test ! -f $lt_ac_sed && continue
5298   cat /dev/null > conftest.in
5299   lt_ac_count=0
5300   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5301   # Check for GNU sed and select it if it is found.
5302   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5303     lt_cv_path_SED=$lt_ac_sed
5304     break
5305   fi
5306   while true; do
5307     cat conftest.in conftest.in >conftest.tmp
5308     mv conftest.tmp conftest.in
5309     cp conftest.in conftest.nl
5310     echo >>conftest.nl
5311     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5312     cmp -s conftest.out conftest.nl || break
5313     # 10000 chars as input seems more than enough
5314     test $lt_ac_count -gt 10 && break
5315     lt_ac_count=`expr $lt_ac_count + 1`
5316     if test $lt_ac_count -gt $lt_ac_max; then
5317       lt_ac_max=$lt_ac_count
5318       lt_cv_path_SED=$lt_ac_sed
5319     fi
5320   done
5321 done
5322
5323 fi
5324
5325 SED=$lt_cv_path_SED
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5328 $as_echo "$SED" >&6; }
5329
5330
5331 # Check whether --with-gnu-ld was given.
5332 if test "${with_gnu_ld+set}" = set; then :
5333   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5334 else
5335   with_gnu_ld=no
5336 fi
5337
5338 ac_prog=ld
5339 if test "$GCC" = yes; then
5340   # Check if gcc -print-prog-name=ld gives a path.
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5342 $as_echo_n "checking for ld used by $CC... " >&6; }
5343   case $host in
5344   *-*-mingw*)
5345     # gcc leaves a trailing carriage return which upsets mingw
5346     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5347   *)
5348     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5349   esac
5350   case $ac_prog in
5351     # Accept absolute paths.
5352     [\\/]* | ?:[\\/]*)
5353       re_direlt='/[^/][^/]*/\.\./'
5354       # Canonicalize the pathname of ld
5355       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5356       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5357         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5358       done
5359       test -z "$LD" && LD="$ac_prog"
5360       ;;
5361   "")
5362     # If it fails, then pretend we aren't using GCC.
5363     ac_prog=ld
5364     ;;
5365   *)
5366     # If it is relative, then search for the first ld in PATH.
5367     with_gnu_ld=unknown
5368     ;;
5369   esac
5370 elif test "$with_gnu_ld" = yes; then
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5372 $as_echo_n "checking for GNU ld... " >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5375 $as_echo_n "checking for non-GNU ld... " >&6; }
5376 fi
5377 if ${lt_cv_path_LD+:} false; then :
5378   $as_echo_n "(cached) " >&6
5379 else
5380   if test -z "$LD"; then
5381   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5382   for ac_dir in $PATH; do
5383     IFS="$lt_save_ifs"
5384     test -z "$ac_dir" && ac_dir=.
5385     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5386       lt_cv_path_LD="$ac_dir/$ac_prog"
5387       # Check to see if the program is GNU ld.  I'd rather use --version,
5388       # but apparently some variants of GNU ld only accept -v.
5389       # Break only if it was the GNU/non-GNU ld that we prefer.
5390       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5391       *GNU* | *'with BFD'*)
5392         test "$with_gnu_ld" != no && break
5393         ;;
5394       *)
5395         test "$with_gnu_ld" != yes && break
5396         ;;
5397       esac
5398     fi
5399   done
5400   IFS="$lt_save_ifs"
5401 else
5402   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5403 fi
5404 fi
5405
5406 LD="$lt_cv_path_LD"
5407 if test -n "$LD"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5409 $as_echo "$LD" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5416 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5417 if ${lt_cv_prog_gnu_ld+:} false; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5421 case `$LD -v 2>&1 </dev/null` in
5422 *GNU* | *'with BFD'*)
5423   lt_cv_prog_gnu_ld=yes
5424   ;;
5425 *)
5426   lt_cv_prog_gnu_ld=no
5427   ;;
5428 esac
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5431 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5432 with_gnu_ld=$lt_cv_prog_gnu_ld
5433
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5436 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5437 if ${lt_cv_ld_reload_flag+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   lt_cv_ld_reload_flag='-r'
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5443 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5444 reload_flag=$lt_cv_ld_reload_flag
5445 case $reload_flag in
5446 "" | " "*) ;;
5447 *) reload_flag=" $reload_flag" ;;
5448 esac
5449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5450 case $host_os in
5451   darwin*)
5452     if test "$GCC" = yes; then
5453       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5454     else
5455       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456     fi
5457     ;;
5458 esac
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5461 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5462 if ${lt_cv_path_NM+:} false; then :
5463   $as_echo_n "(cached) " >&6
5464 else
5465   if test -n "$NM"; then
5466   # Let the user override the test.
5467   lt_cv_path_NM="$NM"
5468 else
5469   lt_nm_to_check="${ac_tool_prefix}nm"
5470   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5471     lt_nm_to_check="$lt_nm_to_check nm"
5472   fi
5473   for lt_tmp_nm in $lt_nm_to_check; do
5474     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5475     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5476       IFS="$lt_save_ifs"
5477       test -z "$ac_dir" && ac_dir=.
5478       tmp_nm="$ac_dir/$lt_tmp_nm"
5479       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5480         # Check to see if the nm accepts a BSD-compat flag.
5481         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5482         #   nm: unknown option "B" ignored
5483         # Tru64's nm complains that /dev/null is an invalid object file
5484         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5485         */dev/null* | *'Invalid file or object type'*)
5486           lt_cv_path_NM="$tmp_nm -B"
5487           break
5488           ;;
5489         *)
5490           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5491           */dev/null*)
5492             lt_cv_path_NM="$tmp_nm -p"
5493             break
5494             ;;
5495           *)
5496             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5497             continue # so that we can try to find one that supports BSD flags
5498             ;;
5499           esac
5500           ;;
5501         esac
5502       fi
5503     done
5504     IFS="$lt_save_ifs"
5505   done
5506   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5507 fi
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5510 $as_echo "$lt_cv_path_NM" >&6; }
5511 NM="$lt_cv_path_NM"
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5514 $as_echo_n "checking whether ln -s works... " >&6; }
5515 LN_S=$as_ln_s
5516 if test "$LN_S" = "ln -s"; then
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5518 $as_echo "yes" >&6; }
5519 else
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5521 $as_echo "no, using $LN_S" >&6; }
5522 fi
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5525 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5526 if ${lt_cv_deplibs_check_method+:} false; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   lt_cv_file_magic_cmd='$MAGIC_CMD'
5530 lt_cv_file_magic_test_file=
5531 lt_cv_deplibs_check_method='unknown'
5532 # Need to set the preceding variable on all platforms that support
5533 # interlibrary dependencies.
5534 # 'none' -- dependencies not supported.
5535 # `unknown' -- same as none, but documents that we really don't know.
5536 # 'pass_all' -- all dependencies passed with no checks.
5537 # 'test_compile' -- check by making test program.
5538 # 'file_magic [[regex]]' -- check by looking for files in library path
5539 # which responds to the $file_magic_cmd with a given extended regex.
5540 # If you have `file' or equivalent on your system and you're not sure
5541 # whether `pass_all' will *always* work, you probably want this one.
5542
5543 case $host_os in
5544 aix[4-9]*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 beos*)
5549   lt_cv_deplibs_check_method=pass_all
5550   ;;
5551
5552 bsdi[45]*)
5553   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5554   lt_cv_file_magic_cmd='/usr/bin/file -L'
5555   lt_cv_file_magic_test_file=/shlib/libc.so
5556   ;;
5557
5558 cygwin*)
5559   # func_win32_libid is a shell function defined in ltmain.sh
5560   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5561   lt_cv_file_magic_cmd='func_win32_libid'
5562   ;;
5563
5564 mingw* | pw32*)
5565   # Base MSYS/MinGW do not provide the 'file' command needed by
5566   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5567   # unless we find 'file', for example because we are cross-compiling.
5568   if ( file / ) >/dev/null 2>&1; then
5569     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5570     lt_cv_file_magic_cmd='func_win32_libid'
5571   else
5572     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5573     lt_cv_file_magic_cmd='$OBJDUMP -f'
5574   fi
5575   ;;
5576
5577 darwin* | rhapsody*)
5578   lt_cv_deplibs_check_method=pass_all
5579   ;;
5580
5581 freebsd* | dragonfly*)
5582   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5583     case $host_cpu in
5584     i*86 )
5585       # Not sure whether the presence of OpenBSD here was a mistake.
5586       # Let's accept both of them until this is cleared up.
5587       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5588       lt_cv_file_magic_cmd=/usr/bin/file
5589       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5590       ;;
5591     esac
5592   else
5593     lt_cv_deplibs_check_method=pass_all
5594   fi
5595   ;;
5596
5597 gnu*)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 hpux10.20* | hpux11*)
5602   lt_cv_file_magic_cmd=/usr/bin/file
5603   case $host_cpu in
5604   ia64*)
5605     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607     ;;
5608   hppa*64*)
5609     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]'
5610     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611     ;;
5612   *)
5613     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5614     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5615     ;;
5616   esac
5617   ;;
5618
5619 interix[3-9]*)
5620   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5622   ;;
5623
5624 irix5* | irix6* | nonstopux*)
5625   case $LD in
5626   *-32|*"-32 ") libmagic=32-bit;;
5627   *-n32|*"-n32 ") libmagic=N32;;
5628   *-64|*"-64 ") libmagic=64-bit;;
5629   *) libmagic=never-match;;
5630   esac
5631   lt_cv_deplibs_check_method=pass_all
5632   ;;
5633
5634 # This must be Linux ELF.
5635 linux* | k*bsd*-gnu)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 netbsd* | netbsdelf*-gnu)
5640   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5641     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642   else
5643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644   fi
5645   ;;
5646
5647 newos6*)
5648   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649   lt_cv_file_magic_cmd=/usr/bin/file
5650   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5651   ;;
5652
5653 nto-qnx*)
5654   lt_cv_deplibs_check_method=unknown
5655   ;;
5656
5657 openbsd*)
5658   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5659     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5660   else
5661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662   fi
5663   ;;
5664
5665 osf3* | osf4* | osf5*)
5666   lt_cv_deplibs_check_method=pass_all
5667   ;;
5668
5669 rdos*)
5670   lt_cv_deplibs_check_method=pass_all
5671   ;;
5672
5673 solaris*)
5674   lt_cv_deplibs_check_method=pass_all
5675   ;;
5676
5677 sysv4 | sysv4.3*)
5678   case $host_vendor in
5679   motorola)
5680     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]'
5681     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5682     ;;
5683   ncr)
5684     lt_cv_deplibs_check_method=pass_all
5685     ;;
5686   sequent)
5687     lt_cv_file_magic_cmd='/bin/file'
5688     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5689     ;;
5690   sni)
5691     lt_cv_file_magic_cmd='/bin/file'
5692     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5693     lt_cv_file_magic_test_file=/lib/libc.so
5694     ;;
5695   siemens)
5696     lt_cv_deplibs_check_method=pass_all
5697     ;;
5698   pc)
5699     lt_cv_deplibs_check_method=pass_all
5700     ;;
5701   esac
5702   ;;
5703
5704 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5705   lt_cv_deplibs_check_method=pass_all
5706   ;;
5707 esac
5708
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5712 file_magic_cmd=$lt_cv_file_magic_cmd
5713 deplibs_check_method=$lt_cv_deplibs_check_method
5714 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5715
5716
5717
5718
5719 # If no C compiler was specified, use CC.
5720 LTCC=${LTCC-"$CC"}
5721
5722 # If no C compiler flags were specified, use CFLAGS.
5723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5724
5725 # Allow CC to be a program name with arguments.
5726 compiler=$CC
5727
5728 # Check whether --enable-libtool-lock was given.
5729 if test "${enable_libtool_lock+set}" = set; then :
5730   enableval=$enable_libtool_lock;
5731 fi
5732
5733 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5734
5735 # Some flags need to be propagated to the compiler or linker for good
5736 # libtool support.
5737 case $host in
5738 ia64-*-hpux*)
5739   # Find out which ABI we are using.
5740   echo 'int i;' > conftest.$ac_ext
5741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5742   (eval $ac_compile) 2>&5
5743   ac_status=$?
5744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745   test $ac_status = 0; }; then
5746     case `/usr/bin/file conftest.$ac_objext` in
5747     *ELF-32*)
5748       HPUX_IA64_MODE="32"
5749       ;;
5750     *ELF-64*)
5751       HPUX_IA64_MODE="64"
5752       ;;
5753     esac
5754   fi
5755   rm -rf conftest*
5756   ;;
5757 *-*-irix6*)
5758   # Find out which ABI we are using.
5759   echo '#line 5755 "configure"' > conftest.$ac_ext
5760   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5761   (eval $ac_compile) 2>&5
5762   ac_status=$?
5763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764   test $ac_status = 0; }; then
5765    if test "$lt_cv_prog_gnu_ld" = yes; then
5766     case `/usr/bin/file conftest.$ac_objext` in
5767     *32-bit*)
5768       LD="${LD-ld} -melf32bsmip"
5769       ;;
5770     *N32*)
5771       LD="${LD-ld} -melf32bmipn32"
5772       ;;
5773     *64-bit*)
5774       LD="${LD-ld} -melf64bmip"
5775       ;;
5776     esac
5777    else
5778     case `/usr/bin/file conftest.$ac_objext` in
5779     *32-bit*)
5780       LD="${LD-ld} -32"
5781       ;;
5782     *N32*)
5783       LD="${LD-ld} -n32"
5784       ;;
5785     *64-bit*)
5786       LD="${LD-ld} -64"
5787       ;;
5788     esac
5789    fi
5790   fi
5791   rm -rf conftest*
5792   ;;
5793
5794 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5795 s390*-*linux*|sparc*-*linux*)
5796   # Find out which ABI we are using.
5797   echo 'int i;' > conftest.$ac_ext
5798   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5799   (eval $ac_compile) 2>&5
5800   ac_status=$?
5801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802   test $ac_status = 0; }; then
5803     case `/usr/bin/file conftest.o` in
5804     *32-bit*)
5805       case $host in
5806         x86_64-*kfreebsd*-gnu)
5807           LD="${LD-ld} -m elf_i386_fbsd"
5808           ;;
5809         x86_64-*linux*)
5810           LD="${LD-ld} -m elf_i386"
5811           ;;
5812         ppc64-*linux*|powerpc64-*linux*)
5813           LD="${LD-ld} -m elf32ppclinux"
5814           ;;
5815         s390x-*linux*)
5816           LD="${LD-ld} -m elf_s390"
5817           ;;
5818         sparc64-*linux*)
5819           LD="${LD-ld} -m elf32_sparc"
5820           ;;
5821       esac
5822       ;;
5823     *64-bit*)
5824       case $host in
5825         x86_64-*kfreebsd*-gnu)
5826           LD="${LD-ld} -m elf_x86_64_fbsd"
5827           ;;
5828         x86_64-*linux*)
5829           LD="${LD-ld} -m elf_x86_64"
5830           ;;
5831         ppc*-*linux*|powerpc*-*linux*)
5832           LD="${LD-ld} -m elf64ppc"
5833           ;;
5834         s390*-*linux*)
5835           LD="${LD-ld} -m elf64_s390"
5836           ;;
5837         sparc*-*linux*)
5838           LD="${LD-ld} -m elf64_sparc"
5839           ;;
5840       esac
5841       ;;
5842     esac
5843   fi
5844   rm -rf conftest*
5845   ;;
5846
5847 *-*-sco3.2v5*)
5848   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5849   SAVE_CFLAGS="$CFLAGS"
5850   CFLAGS="$CFLAGS -belf"
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5852 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5853 if ${lt_cv_cc_needs_belf+:} false; then :
5854   $as_echo_n "(cached) " >&6
5855 else
5856   ac_ext=c
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861
5862      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h.  */
5864
5865 int
5866 main ()
5867 {
5868
5869   ;
5870   return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_link "$LINENO"; then :
5874   lt_cv_cc_needs_belf=yes
5875 else
5876   lt_cv_cc_needs_belf=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext \
5879     conftest$ac_exeext conftest.$ac_ext
5880      ac_ext=c
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5888 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5889   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5890     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5891     CFLAGS="$SAVE_CFLAGS"
5892   fi
5893   ;;
5894 sparc*-*solaris*)
5895   # Find out which ABI we are using.
5896   echo 'int i;' > conftest.$ac_ext
5897   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5898   (eval $ac_compile) 2>&5
5899   ac_status=$?
5900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901   test $ac_status = 0; }; then
5902     case `/usr/bin/file conftest.o` in
5903     *64-bit*)
5904       case $lt_cv_prog_gnu_ld in
5905       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5906       *)
5907         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5908           LD="${LD-ld} -64"
5909         fi
5910         ;;
5911       esac
5912       ;;
5913     esac
5914   fi
5915   rm -rf conftest*
5916   ;;
5917
5918
5919 esac
5920
5921 need_locks="$enable_libtool_lock"
5922
5923
5924 for ac_header in dlfcn.h
5925 do :
5926   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5927 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5928   cat >>confdefs.h <<_ACEOF
5929 #define HAVE_DLFCN_H 1
5930 _ACEOF
5931
5932 fi
5933
5934 done
5935
5936
5937
5938 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5939     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5940     (test "X$CXX" != "Xg++"))) ; then
5941   ac_ext=cpp
5942 ac_cpp='$CXXCPP $CPPFLAGS'
5943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5947 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5948 if test -z "$CXXCPP"; then
5949   if ${ac_cv_prog_CXXCPP+:} false; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952       # Double quotes because CXXCPP needs to be expanded
5953     for CXXCPP in "$CXX -E" "/lib/cpp"
5954     do
5955       ac_preproc_ok=false
5956 for ac_cxx_preproc_warn_flag in '' yes
5957 do
5958   # Use a header file that comes with gcc, so configuring glibc
5959   # with a fresh cross-compiler works.
5960   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961   # <limits.h> exists even on freestanding compilers.
5962   # On the NeXT, cc -E runs the code through the compiler's parser,
5963   # not just through cpp. "Syntax error" is here to catch this case.
5964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h.  */
5966 #ifdef __STDC__
5967 # include <limits.h>
5968 #else
5969 # include <assert.h>
5970 #endif
5971                      Syntax error
5972 _ACEOF
5973 if ac_fn_cxx_try_cpp "$LINENO"; then :
5974
5975 else
5976   # Broken: fails on valid input.
5977 continue
5978 fi
5979 rm -f conftest.err conftest.i conftest.$ac_ext
5980
5981   # OK, works on sane cases.  Now check whether nonexistent headers
5982   # can be detected and how.
5983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h.  */
5985 #include <ac_nonexistent.h>
5986 _ACEOF
5987 if ac_fn_cxx_try_cpp "$LINENO"; then :
5988   # Broken: success on invalid input.
5989 continue
5990 else
5991   # Passes both tests.
5992 ac_preproc_ok=:
5993 break
5994 fi
5995 rm -f conftest.err conftest.i conftest.$ac_ext
5996
5997 done
5998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5999 rm -f conftest.i conftest.err conftest.$ac_ext
6000 if $ac_preproc_ok; then :
6001   break
6002 fi
6003
6004     done
6005     ac_cv_prog_CXXCPP=$CXXCPP
6006
6007 fi
6008   CXXCPP=$ac_cv_prog_CXXCPP
6009 else
6010   ac_cv_prog_CXXCPP=$CXXCPP
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6013 $as_echo "$CXXCPP" >&6; }
6014 ac_preproc_ok=false
6015 for ac_cxx_preproc_warn_flag in '' yes
6016 do
6017   # Use a header file that comes with gcc, so configuring glibc
6018   # with a fresh cross-compiler works.
6019   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020   # <limits.h> exists even on freestanding compilers.
6021   # On the NeXT, cc -E runs the code through the compiler's parser,
6022   # not just through cpp. "Syntax error" is here to catch this case.
6023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h.  */
6025 #ifdef __STDC__
6026 # include <limits.h>
6027 #else
6028 # include <assert.h>
6029 #endif
6030                      Syntax error
6031 _ACEOF
6032 if ac_fn_cxx_try_cpp "$LINENO"; then :
6033
6034 else
6035   # Broken: fails on valid input.
6036 continue
6037 fi
6038 rm -f conftest.err conftest.i conftest.$ac_ext
6039
6040   # OK, works on sane cases.  Now check whether nonexistent headers
6041   # can be detected and how.
6042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h.  */
6044 #include <ac_nonexistent.h>
6045 _ACEOF
6046 if ac_fn_cxx_try_cpp "$LINENO"; then :
6047   # Broken: success on invalid input.
6048 continue
6049 else
6050   # Passes both tests.
6051 ac_preproc_ok=:
6052 break
6053 fi
6054 rm -f conftest.err conftest.i conftest.$ac_ext
6055
6056 done
6057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6058 rm -f conftest.i conftest.err conftest.$ac_ext
6059 if $ac_preproc_ok; then :
6060
6061 else
6062   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6064 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6065 See \`config.log' for more details" "$LINENO" 5; }
6066 fi
6067
6068 ac_ext=cpp
6069 ac_cpp='$CXXCPP $CPPFLAGS'
6070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6073
6074 fi
6075
6076
6077 ac_ext=f
6078 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6079 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6081 if test -n "$ac_tool_prefix"; then
6082   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
6083   do
6084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_prog_F77+:} false; then :
6089   $as_echo_n "(cached) " >&6
6090 else
6091   if test -n "$F77"; then
6092   ac_cv_prog_F77="$F77" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099     for ac_exec_ext in '' $ac_executable_extensions; do
6100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103     break 2
6104   fi
6105 done
6106   done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 F77=$ac_cv_prog_F77
6112 if test -n "$F77"; then
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6114 $as_echo "$F77" >&6; }
6115 else
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6118 fi
6119
6120
6121     test -n "$F77" && break
6122   done
6123 fi
6124 if test -z "$F77"; then
6125   ac_ct_F77=$F77
6126   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
6127 do
6128   # Extract the first word of "$ac_prog", so it can be a program name with args.
6129 set dummy $ac_prog; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   if test -n "$ac_ct_F77"; then
6136   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143     for ac_exec_ext in '' $ac_executable_extensions; do
6144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145     ac_cv_prog_ac_ct_F77="$ac_prog"
6146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150   done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6156 if test -n "$ac_ct_F77"; then
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6158 $as_echo "$ac_ct_F77" >&6; }
6159 else
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164
6165   test -n "$ac_ct_F77" && break
6166 done
6167
6168   if test "x$ac_ct_F77" = x; then
6169     F77=""
6170   else
6171     case $cross_compiling:$ac_tool_warned in
6172 yes:)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177     F77=$ac_ct_F77
6178   fi
6179 fi
6180
6181
6182 # Provide some information about the compiler.
6183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6184 set X $ac_compile
6185 ac_compiler=$2
6186 for ac_option in --version -v -V -qversion; do
6187   { { ac_try="$ac_compiler $ac_option >&5"
6188 case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6193 $as_echo "$ac_try_echo"; } >&5
6194   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6195   ac_status=$?
6196   if test -s conftest.err; then
6197     sed '10a\
6198 ... rest of stderr output deleted ...
6199          10q' conftest.err >conftest.er1
6200     cat conftest.er1 >&5
6201   fi
6202   rm -f conftest.er1 conftest.err
6203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204   test $ac_status = 0; }
6205 done
6206 rm -f a.out
6207
6208 # If we don't use `.F' as extension, the preprocessor is not run on the
6209 # input file.  (Note that this only needs to work for GNU compilers.)
6210 ac_save_ext=$ac_ext
6211 ac_ext=F
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6213 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6214 if ${ac_cv_f77_compiler_gnu+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   cat > conftest.$ac_ext <<_ACEOF
6218       program main
6219 #ifndef __GNUC__
6220        choke me
6221 #endif
6222
6223       end
6224 _ACEOF
6225 if ac_fn_f77_try_compile "$LINENO"; then :
6226   ac_compiler_gnu=yes
6227 else
6228   ac_compiler_gnu=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6232
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6235 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6236 ac_ext=$ac_save_ext
6237 ac_test_FFLAGS=${FFLAGS+set}
6238 ac_save_FFLAGS=$FFLAGS
6239 FFLAGS=
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6241 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6242 if ${ac_cv_prog_f77_g+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   FFLAGS=-g
6246 cat > conftest.$ac_ext <<_ACEOF
6247       program main
6248
6249       end
6250 _ACEOF
6251 if ac_fn_f77_try_compile "$LINENO"; then :
6252   ac_cv_prog_f77_g=yes
6253 else
6254   ac_cv_prog_f77_g=no
6255 fi
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257
6258 fi
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6260 $as_echo "$ac_cv_prog_f77_g" >&6; }
6261 if test "$ac_test_FFLAGS" = set; then
6262   FFLAGS=$ac_save_FFLAGS
6263 elif test $ac_cv_prog_f77_g = yes; then
6264   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6265     FFLAGS="-g -O2"
6266   else
6267     FFLAGS="-g"
6268   fi
6269 else
6270   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6271     FFLAGS="-O2"
6272   else
6273     FFLAGS=
6274   fi
6275 fi
6276
6277 if test $ac_compiler_gnu = yes; then
6278   G77=yes
6279 else
6280   G77=
6281 fi
6282 ac_ext=c
6283 ac_cpp='$CPP $CPPFLAGS'
6284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6287
6288
6289
6290 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6291 # find the maximum length of command line arguments
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6293 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6294 if ${lt_cv_sys_max_cmd_len+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297     i=0
6298   teststring="ABCD"
6299
6300   case $build_os in
6301   msdosdjgpp*)
6302     # On DJGPP, this test can blow up pretty badly due to problems in libc
6303     # (any single argument exceeding 2000 bytes causes a buffer overrun
6304     # during glob expansion).  Even if it were fixed, the result of this
6305     # check would be larger than it should be.
6306     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6307     ;;
6308
6309   gnu*)
6310     # Under GNU Hurd, this test is not required because there is
6311     # no limit to the length of command line arguments.
6312     # Libtool will interpret -1 as no limit whatsoever
6313     lt_cv_sys_max_cmd_len=-1;
6314     ;;
6315
6316   cygwin* | mingw*)
6317     # On Win9x/ME, this test blows up -- it succeeds, but takes
6318     # about 5 minutes as the teststring grows exponentially.
6319     # Worse, since 9x/ME are not pre-emptively multitasking,
6320     # you end up with a "frozen" computer, even though with patience
6321     # the test eventually succeeds (with a max line length of 256k).
6322     # Instead, let's just punt: use the minimum linelength reported by
6323     # all of the supported platforms: 8192 (on NT/2K/XP).
6324     lt_cv_sys_max_cmd_len=8192;
6325     ;;
6326
6327   amigaos*)
6328     # On AmigaOS with pdksh, this test takes hours, literally.
6329     # So we just punt and use a minimum line length of 8192.
6330     lt_cv_sys_max_cmd_len=8192;
6331     ;;
6332
6333   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6334     # This has been around since 386BSD, at least.  Likely further.
6335     if test -x /sbin/sysctl; then
6336       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6337     elif test -x /usr/sbin/sysctl; then
6338       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6339     else
6340       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6341     fi
6342     # And add a safety zone
6343     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6344     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6345     ;;
6346
6347   interix*)
6348     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6349     lt_cv_sys_max_cmd_len=196608
6350     ;;
6351
6352   osf*)
6353     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6354     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6355     # nice to cause kernel panics so lets avoid the loop below.
6356     # First set a reasonable default.
6357     lt_cv_sys_max_cmd_len=16384
6358     #
6359     if test -x /sbin/sysconfig; then
6360       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6361         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6362       esac
6363     fi
6364     ;;
6365   sco3.2v5*)
6366     lt_cv_sys_max_cmd_len=102400
6367     ;;
6368   sysv5* | sco5v6* | sysv4.2uw2*)
6369     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6370     if test -n "$kargmax"; then
6371       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6372     else
6373       lt_cv_sys_max_cmd_len=32768
6374     fi
6375     ;;
6376   *)
6377     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6378     if test -n "$lt_cv_sys_max_cmd_len"; then
6379       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6380       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6381     else
6382       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6383       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6384                = "XX$teststring") >/dev/null 2>&1 &&
6385               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6386               lt_cv_sys_max_cmd_len=$new_result &&
6387               test $i != 17 # 1/2 MB should be enough
6388       do
6389         i=`expr $i + 1`
6390         teststring=$teststring$teststring
6391       done
6392       teststring=
6393       # Add a significant safety factor because C++ compilers can tack on massive
6394       # amounts of additional arguments before passing them to the linker.
6395       # It appears as though 1/2 is a usable value.
6396       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6397     fi
6398     ;;
6399   esac
6400
6401 fi
6402
6403 if test -n $lt_cv_sys_max_cmd_len ; then
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6405 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6406 else
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6408 $as_echo "none" >&6; }
6409 fi
6410
6411
6412
6413
6414
6415 # Check for command to grab the raw symbol name followed by C symbol from nm.
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6417 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6418 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421
6422 # These are sane defaults that work on at least a few old systems.
6423 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6424
6425 # Character class describing NM global symbol codes.
6426 symcode='[BCDEGRST]'
6427
6428 # Regexp to match symbols that can be accessed directly from C.
6429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6430
6431 # Transform an extracted symbol line into a proper C declaration
6432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6433
6434 # Transform an extracted symbol line into symbol name and symbol address
6435 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'"
6436
6437 # Define system-specific variables.
6438 case $host_os in
6439 aix*)
6440   symcode='[BCDT]'
6441   ;;
6442 cygwin* | mingw* | pw32*)
6443   symcode='[ABCDGISTW]'
6444   ;;
6445 hpux*) # Its linker distinguishes data from code symbols
6446   if test "$host_cpu" = ia64; then
6447     symcode='[ABCDEGRST]'
6448   fi
6449   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6450   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'"
6451   ;;
6452 linux* | k*bsd*-gnu)
6453   if test "$host_cpu" = ia64; then
6454     symcode='[ABCDGIRSTW]'
6455     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6456     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'"
6457   fi
6458   ;;
6459 irix* | nonstopux*)
6460   symcode='[BCDEGRST]'
6461   ;;
6462 osf*)
6463   symcode='[BCDEGQRST]'
6464   ;;
6465 solaris*)
6466   symcode='[BDRT]'
6467   ;;
6468 sco3.2v5*)
6469   symcode='[DT]'
6470   ;;
6471 sysv4.2uw2*)
6472   symcode='[DT]'
6473   ;;
6474 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6475   symcode='[ABDT]'
6476   ;;
6477 sysv4)
6478   symcode='[DFNSTU]'
6479   ;;
6480 esac
6481
6482 # Handle CRLF in mingw tool chain
6483 opt_cr=
6484 case $build_os in
6485 mingw*)
6486   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6487   ;;
6488 esac
6489
6490 # If we're using GNU nm, then use its standard symbol codes.
6491 case `$NM -V 2>&1` in
6492 *GNU* | *'with BFD'*)
6493   symcode='[ABCDGIRSTW]' ;;
6494 esac
6495
6496 # Try without a prefix undercore, then with it.
6497 for ac_symprfx in "" "_"; do
6498
6499   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6500   symxfrm="\\1 $ac_symprfx\\2 \\2"
6501
6502   # Write the raw and C identifiers.
6503   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6504
6505   # Check to see that the pipe works correctly.
6506   pipe_works=no
6507
6508   rm -f conftest*
6509   cat > conftest.$ac_ext <<EOF
6510 #ifdef __cplusplus
6511 extern "C" {
6512 #endif
6513 char nm_test_var;
6514 void nm_test_func(){}
6515 #ifdef __cplusplus
6516 }
6517 #endif
6518 int main(){nm_test_var='a';nm_test_func();return(0);}
6519 EOF
6520
6521   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6522   (eval $ac_compile) 2>&5
6523   ac_status=$?
6524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525   test $ac_status = 0; }; then
6526     # Now try to grab the symbols.
6527     nlist=conftest.nm
6528     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6529   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6530   ac_status=$?
6531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532   test $ac_status = 0; } && test -s "$nlist"; then
6533       # Try sorting and uniquifying the output.
6534       if sort "$nlist" | uniq > "$nlist"T; then
6535         mv -f "$nlist"T "$nlist"
6536       else
6537         rm -f "$nlist"T
6538       fi
6539
6540       # Make sure that we snagged all the symbols we need.
6541       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6542         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6543           cat <<EOF > conftest.$ac_ext
6544 #ifdef __cplusplus
6545 extern "C" {
6546 #endif
6547
6548 EOF
6549           # Now generate the symbol file.
6550           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6551
6552           cat <<EOF >> conftest.$ac_ext
6553 #if defined (__STDC__) && __STDC__
6554 # define lt_ptr_t void *
6555 #else
6556 # define lt_ptr_t char *
6557 # define const
6558 #endif
6559
6560 /* The mapping between symbol names and symbols. */
6561 const struct {
6562   const char *name;
6563   lt_ptr_t address;
6564 }
6565 lt_preloaded_symbols[] =
6566 {
6567 EOF
6568           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6569           cat <<\EOF >> conftest.$ac_ext
6570   {0, (lt_ptr_t) 0}
6571 };
6572
6573 #ifdef __cplusplus
6574 }
6575 #endif
6576 EOF
6577           # Now try linking the two files.
6578           mv conftest.$ac_objext conftstm.$ac_objext
6579           lt_save_LIBS="$LIBS"
6580           lt_save_CFLAGS="$CFLAGS"
6581           LIBS="conftstm.$ac_objext"
6582           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6583           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6584   (eval $ac_link) 2>&5
6585   ac_status=$?
6586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6587   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6588             pipe_works=yes
6589           fi
6590           LIBS="$lt_save_LIBS"
6591           CFLAGS="$lt_save_CFLAGS"
6592         else
6593           echo "cannot find nm_test_func in $nlist" >&5
6594         fi
6595       else
6596         echo "cannot find nm_test_var in $nlist" >&5
6597       fi
6598     else
6599       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6600     fi
6601   else
6602     echo "$progname: failed program was:" >&5
6603     cat conftest.$ac_ext >&5
6604   fi
6605   rm -rf conftest* conftst*
6606
6607   # Do not use the global_symbol_pipe unless it works.
6608   if test "$pipe_works" = yes; then
6609     break
6610   else
6611     lt_cv_sys_global_symbol_pipe=
6612   fi
6613 done
6614
6615 fi
6616
6617 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6618   lt_cv_sys_global_symbol_to_cdecl=
6619 fi
6620 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6622 $as_echo "failed" >&6; }
6623 else
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6625 $as_echo "ok" >&6; }
6626 fi
6627
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6629 $as_echo_n "checking for objdir... " >&6; }
6630 if ${lt_cv_objdir+:} false; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   rm -f .libs 2>/dev/null
6634 mkdir .libs 2>/dev/null
6635 if test -d .libs; then
6636   lt_cv_objdir=.libs
6637 else
6638   # MS-DOS does not allow filenames that begin with a dot.
6639   lt_cv_objdir=_libs
6640 fi
6641 rmdir .libs 2>/dev/null
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6644 $as_echo "$lt_cv_objdir" >&6; }
6645 objdir=$lt_cv_objdir
6646
6647
6648
6649
6650
6651 case $host_os in
6652 aix3*)
6653   # AIX sometimes has problems with the GCC collect2 program.  For some
6654   # reason, if we set the COLLECT_NAMES environment variable, the problems
6655   # vanish in a puff of smoke.
6656   if test "X${COLLECT_NAMES+set}" != Xset; then
6657     COLLECT_NAMES=
6658     export COLLECT_NAMES
6659   fi
6660   ;;
6661 esac
6662
6663 # Sed substitution that helps us do robust quoting.  It backslashifies
6664 # metacharacters that are still active within double-quoted strings.
6665 Xsed='sed -e 1s/^X//'
6666 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6667
6668 # Same as above, but do not quote variable references.
6669 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6670
6671 # Sed substitution to delay expansion of an escaped shell variable in a
6672 # double_quote_subst'ed string.
6673 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6674
6675 # Sed substitution to avoid accidental globbing in evaled expressions
6676 no_glob_subst='s/\*/\\\*/g'
6677
6678 # Constants:
6679 rm="rm -f"
6680
6681 # Global variables:
6682 default_ofile=libtool
6683 can_build_shared=yes
6684
6685 # All known linkers require a `.a' archive for static linking (except MSVC,
6686 # which needs '.lib').
6687 libext=a
6688 ltmain="$ac_aux_dir/ltmain.sh"
6689 ofile="$default_ofile"
6690 with_gnu_ld="$lt_cv_prog_gnu_ld"
6691
6692 if test -n "$ac_tool_prefix"; then
6693   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}ar; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_AR+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   if test -n "$AR"; then
6701   ac_cv_prog_AR="$AR" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708     for ac_exec_ext in '' $ac_executable_extensions; do
6709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710     ac_cv_prog_AR="${ac_tool_prefix}ar"
6711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715   done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 AR=$ac_cv_prog_AR
6721 if test -n "$AR"; then
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6723 $as_echo "$AR" >&6; }
6724 else
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729
6730 fi
6731 if test -z "$ac_cv_prog_AR"; then
6732   ac_ct_AR=$AR
6733   # Extract the first word of "ar", so it can be a program name with args.
6734 set dummy ar; 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_ac_ct_AR+:} false; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   if test -n "$ac_ct_AR"; then
6741   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6761 if test -n "$ac_ct_AR"; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6763 $as_echo "$ac_ct_AR" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769   if test "x$ac_ct_AR" = x; then
6770     AR="false"
6771   else
6772     case $cross_compiling:$ac_tool_warned in
6773 yes:)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6777 esac
6778     AR=$ac_ct_AR
6779   fi
6780 else
6781   AR="$ac_cv_prog_AR"
6782 fi
6783
6784 if test -n "$ac_tool_prefix"; then
6785   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_RANLIB+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   if test -n "$RANLIB"; then
6793   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800     for ac_exec_ext in '' $ac_executable_extensions; do
6801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807   done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 RANLIB=$ac_cv_prog_RANLIB
6813 if test -n "$RANLIB"; then
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6815 $as_echo "$RANLIB" >&6; }
6816 else
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821
6822 fi
6823 if test -z "$ac_cv_prog_RANLIB"; then
6824   ac_ct_RANLIB=$RANLIB
6825   # Extract the first word of "ranlib", so it can be a program name with args.
6826 set dummy ranlib; 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_ac_ct_RANLIB+:} false; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   if test -n "$ac_ct_RANLIB"; then
6833   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6853 if test -n "$ac_ct_RANLIB"; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6855 $as_echo "$ac_ct_RANLIB" >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861   if test "x$ac_ct_RANLIB" = x; then
6862     RANLIB=":"
6863   else
6864     case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6869 esac
6870     RANLIB=$ac_ct_RANLIB
6871   fi
6872 else
6873   RANLIB="$ac_cv_prog_RANLIB"
6874 fi
6875
6876 if test -n "$ac_tool_prefix"; then
6877   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}strip; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_STRIP+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   if test -n "$STRIP"; then
6885   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892     for ac_exec_ext in '' $ac_executable_extensions; do
6893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899   done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 STRIP=$ac_cv_prog_STRIP
6905 if test -n "$STRIP"; then
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6907 $as_echo "$STRIP" >&6; }
6908 else
6909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913
6914 fi
6915 if test -z "$ac_cv_prog_STRIP"; then
6916   ac_ct_STRIP=$STRIP
6917   # Extract the first word of "strip", so it can be a program name with args.
6918 set dummy strip; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   if test -n "$ac_ct_STRIP"; then
6925   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932     for ac_exec_ext in '' $ac_executable_extensions; do
6933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934     ac_cv_prog_ac_ct_STRIP="strip"
6935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936     break 2
6937   fi
6938 done
6939   done
6940 IFS=$as_save_IFS
6941
6942 fi
6943 fi
6944 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6945 if test -n "$ac_ct_STRIP"; then
6946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6947 $as_echo "$ac_ct_STRIP" >&6; }
6948 else
6949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6951 fi
6952
6953   if test "x$ac_ct_STRIP" = x; then
6954     STRIP=":"
6955   else
6956     case $cross_compiling:$ac_tool_warned in
6957 yes:)
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962     STRIP=$ac_ct_STRIP
6963   fi
6964 else
6965   STRIP="$ac_cv_prog_STRIP"
6966 fi
6967
6968
6969 old_CC="$CC"
6970 old_CFLAGS="$CFLAGS"
6971
6972 # Set sane defaults for various variables
6973 test -z "$AR" && AR=ar
6974 test -z "$AR_FLAGS" && AR_FLAGS=cru
6975 test -z "$AS" && AS=as
6976 test -z "$CC" && CC=cc
6977 test -z "$LTCC" && LTCC=$CC
6978 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6979 test -z "$DLLTOOL" && DLLTOOL=dlltool
6980 test -z "$LD" && LD=ld
6981 test -z "$LN_S" && LN_S="ln -s"
6982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6983 test -z "$NM" && NM=nm
6984 test -z "$SED" && SED=sed
6985 test -z "$OBJDUMP" && OBJDUMP=objdump
6986 test -z "$RANLIB" && RANLIB=:
6987 test -z "$STRIP" && STRIP=:
6988 test -z "$ac_objext" && ac_objext=o
6989
6990 # Determine commands to create old-style static archives.
6991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6992 old_postinstall_cmds='chmod 644 $oldlib'
6993 old_postuninstall_cmds=
6994
6995 if test -n "$RANLIB"; then
6996   case $host_os in
6997   openbsd*)
6998     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6999     ;;
7000   *)
7001     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7002     ;;
7003   esac
7004   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7005 fi
7006
7007 for cc_temp in $compiler""; do
7008   case $cc_temp in
7009     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7010     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7011     \-*) ;;
7012     *) break;;
7013   esac
7014 done
7015 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7016
7017
7018 # Only perform the check for file, if the check method requires it
7019 case $deplibs_check_method in
7020 file_magic*)
7021   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7023 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7024 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   case $MAGIC_CMD in
7028 [\\/*] |  ?:[\\/]*)
7029   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7030   ;;
7031 *)
7032   lt_save_MAGIC_CMD="$MAGIC_CMD"
7033   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7034   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7035   for ac_dir in $ac_dummy; do
7036     IFS="$lt_save_ifs"
7037     test -z "$ac_dir" && ac_dir=.
7038     if test -f $ac_dir/${ac_tool_prefix}file; then
7039       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7040       if test -n "$file_magic_test_file"; then
7041         case $deplibs_check_method in
7042         "file_magic "*)
7043           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7044           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7045           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7046             $EGREP "$file_magic_regex" > /dev/null; then
7047             :
7048           else
7049             cat <<EOF 1>&2
7050
7051 *** Warning: the command libtool uses to detect shared libraries,
7052 *** $file_magic_cmd, produces output that libtool cannot recognize.
7053 *** The result is that libtool may fail to recognize shared libraries
7054 *** as such.  This will affect the creation of libtool libraries that
7055 *** depend on shared libraries, but programs linked with such libtool
7056 *** libraries will work regardless of this problem.  Nevertheless, you
7057 *** may want to report the problem to your system manager and/or to
7058 *** bug-libtool@gnu.org
7059
7060 EOF
7061           fi ;;
7062         esac
7063       fi
7064       break
7065     fi
7066   done
7067   IFS="$lt_save_ifs"
7068   MAGIC_CMD="$lt_save_MAGIC_CMD"
7069   ;;
7070 esac
7071 fi
7072
7073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7074 if test -n "$MAGIC_CMD"; then
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7076 $as_echo "$MAGIC_CMD" >&6; }
7077 else
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082 if test -z "$lt_cv_path_MAGIC_CMD"; then
7083   if test -n "$ac_tool_prefix"; then
7084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7085 $as_echo_n "checking for file... " >&6; }
7086 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   case $MAGIC_CMD in
7090 [\\/*] |  ?:[\\/]*)
7091   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7092   ;;
7093 *)
7094   lt_save_MAGIC_CMD="$MAGIC_CMD"
7095   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7096   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7097   for ac_dir in $ac_dummy; do
7098     IFS="$lt_save_ifs"
7099     test -z "$ac_dir" && ac_dir=.
7100     if test -f $ac_dir/file; then
7101       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7102       if test -n "$file_magic_test_file"; then
7103         case $deplibs_check_method in
7104         "file_magic "*)
7105           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7106           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7107           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7108             $EGREP "$file_magic_regex" > /dev/null; then
7109             :
7110           else
7111             cat <<EOF 1>&2
7112
7113 *** Warning: the command libtool uses to detect shared libraries,
7114 *** $file_magic_cmd, produces output that libtool cannot recognize.
7115 *** The result is that libtool may fail to recognize shared libraries
7116 *** as such.  This will affect the creation of libtool libraries that
7117 *** depend on shared libraries, but programs linked with such libtool
7118 *** libraries will work regardless of this problem.  Nevertheless, you
7119 *** may want to report the problem to your system manager and/or to
7120 *** bug-libtool@gnu.org
7121
7122 EOF
7123           fi ;;
7124         esac
7125       fi
7126       break
7127     fi
7128   done
7129   IFS="$lt_save_ifs"
7130   MAGIC_CMD="$lt_save_MAGIC_CMD"
7131   ;;
7132 esac
7133 fi
7134
7135 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7136 if test -n "$MAGIC_CMD"; then
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7138 $as_echo "$MAGIC_CMD" >&6; }
7139 else
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144   else
7145     MAGIC_CMD=:
7146   fi
7147 fi
7148
7149   fi
7150   ;;
7151 esac
7152
7153
7154   case $host_os in
7155     rhapsody* | darwin*)
7156     if test -n "$ac_tool_prefix"; then
7157   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   if test -n "$DSYMUTIL"; then
7165   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172     for ac_exec_ext in '' $ac_executable_extensions; do
7173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179   done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7185 if test -n "$DSYMUTIL"; then
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7187 $as_echo "$DSYMUTIL" >&6; }
7188 else
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_DSYMUTIL"; then
7196   ac_ct_DSYMUTIL=$DSYMUTIL
7197   # Extract the first word of "dsymutil", so it can be a program name with args.
7198 set dummy dsymutil; 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_ac_ct_DSYMUTIL+:} false; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   if test -n "$ac_ct_DSYMUTIL"; then
7205   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_ac_ct_DSYMUTIL="dsymutil"
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 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7225 if test -n "$ac_ct_DSYMUTIL"; then
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7227 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7228 else
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233   if test "x$ac_ct_DSYMUTIL" = x; then
7234     DSYMUTIL=":"
7235   else
7236     case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242     DSYMUTIL=$ac_ct_DSYMUTIL
7243   fi
7244 else
7245   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7246 fi
7247
7248     if test -n "$ac_tool_prefix"; then
7249   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_NMEDIT+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$NMEDIT"; then
7257   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 NMEDIT=$ac_cv_prog_NMEDIT
7277 if test -n "$NMEDIT"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7279 $as_echo "$NMEDIT" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_NMEDIT"; then
7288   ac_ct_NMEDIT=$NMEDIT
7289   # Extract the first word of "nmedit", so it can be a program name with args.
7290 set dummy nmedit; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$ac_ct_NMEDIT"; then
7297   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7317 if test -n "$ac_ct_NMEDIT"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7319 $as_echo "$ac_ct_NMEDIT" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325   if test "x$ac_ct_NMEDIT" = x; then
7326     NMEDIT=":"
7327   else
7328     case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334     NMEDIT=$ac_ct_NMEDIT
7335   fi
7336 else
7337   NMEDIT="$ac_cv_prog_NMEDIT"
7338 fi
7339
7340
7341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7342 $as_echo_n "checking for -single_module linker flag... " >&6; }
7343 if ${lt_cv_apple_cc_single_mod+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   lt_cv_apple_cc_single_mod=no
7347       if test -z "${LT_MULTI_MODULE}"; then
7348    # By default we will add the -single_module flag. You can override
7349    # by either setting the environment variable LT_MULTI_MODULE
7350    # non-empty at configure time, or by adding -multi_module to the
7351    # link flags.
7352    echo "int foo(void){return 1;}" > conftest.c
7353    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7354      -dynamiclib ${wl}-single_module conftest.c
7355    if test -f libconftest.dylib; then
7356      lt_cv_apple_cc_single_mod=yes
7357      rm -rf libconftest.dylib*
7358    fi
7359    rm conftest.c
7360       fi
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7363 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7365 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7366 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   lt_cv_ld_exported_symbols_list=no
7370       save_LDFLAGS=$LDFLAGS
7371       echo "_main" > conftest.sym
7372       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7373       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h.  */
7375
7376 int
7377 main ()
7378 {
7379
7380   ;
7381   return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_link "$LINENO"; then :
7385   lt_cv_ld_exported_symbols_list=yes
7386 else
7387   lt_cv_ld_exported_symbols_list=no
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext \
7390     conftest$ac_exeext conftest.$ac_ext
7391    LDFLAGS="$save_LDFLAGS"
7392
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7395 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7396     case $host_os in
7397     rhapsody* | darwin1.[0123])
7398       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7399     darwin1.*)
7400      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7401     darwin*)
7402       # if running on 10.5 or later, the deployment target defaults
7403       # to the OS version, if on x86, and 10.4, the deployment
7404       # target defaults to 10.4. Don't you love it?
7405       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7406    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7407      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7408    10.[012]*)
7409      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7410    10.*)
7411      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7412       esac
7413     ;;
7414   esac
7415     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7416       _lt_dar_single_mod='$single_module'
7417     fi
7418     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7419       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7420     else
7421       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7422     fi
7423     if test "$DSYMUTIL" != ":"; then
7424       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7425     else
7426       _lt_dsymutil=
7427     fi
7428     ;;
7429   esac
7430
7431
7432 enable_dlopen=yes
7433 enable_win32_dll=no
7434
7435 # Check whether --enable-libtool-lock was given.
7436 if test "${enable_libtool_lock+set}" = set; then :
7437   enableval=$enable_libtool_lock;
7438 fi
7439
7440 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7441
7442
7443 # Check whether --with-pic was given.
7444 if test "${with_pic+set}" = set; then :
7445   withval=$with_pic; pic_mode="$withval"
7446 else
7447   pic_mode=default
7448 fi
7449
7450 test -z "$pic_mode" && pic_mode=default
7451
7452 # Use C for the default configuration in the libtool script
7453 tagname=
7454 lt_save_CC="$CC"
7455 ac_ext=c
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
7461
7462 # Source file extension for C test sources.
7463 ac_ext=c
7464
7465 # Object file extension for compiled C test sources.
7466 objext=o
7467 objext=$objext
7468
7469 # Code to be used in simple compile tests
7470 lt_simple_compile_test_code="int some_variable = 0;"
7471
7472 # Code to be used in simple link tests
7473 lt_simple_link_test_code='int main(){return(0);}'
7474
7475
7476 # If no C compiler was specified, use CC.
7477 LTCC=${LTCC-"$CC"}
7478
7479 # If no C compiler flags were specified, use CFLAGS.
7480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7481
7482 # Allow CC to be a program name with arguments.
7483 compiler=$CC
7484
7485
7486 # save warnings/boilerplate of simple test code
7487 ac_outfile=conftest.$ac_objext
7488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7490 _lt_compiler_boilerplate=`cat conftest.err`
7491 $rm conftest*
7492
7493 ac_outfile=conftest.$ac_objext
7494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7496 _lt_linker_boilerplate=`cat conftest.err`
7497 $rm -r conftest*
7498
7499
7500
7501 lt_prog_compiler_no_builtin_flag=
7502
7503 if test "$GCC" = yes; then
7504   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7505
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7508 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7509 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   lt_cv_prog_compiler_rtti_exceptions=no
7513   ac_outfile=conftest.$ac_objext
7514    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7515    lt_compiler_flag="-fno-rtti -fno-exceptions"
7516    # Insert the option either (1) after the last *FLAGS variable, or
7517    # (2) before a word containing "conftest.", or (3) at the end.
7518    # Note that $ac_compile itself does not contain backslashes and begins
7519    # with a dollar sign (not a hyphen), so the echo should work correctly.
7520    # The option is referenced via a variable to avoid confusing sed.
7521    lt_compile=`echo "$ac_compile" | $SED \
7522    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7523    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7524    -e 's:$: $lt_compiler_flag:'`
7525    (eval echo "\"\$as_me:7521: $lt_compile\"" >&5)
7526    (eval "$lt_compile" 2>conftest.err)
7527    ac_status=$?
7528    cat conftest.err >&5
7529    echo "$as_me:7525: \$? = $ac_status" >&5
7530    if (exit $ac_status) && test -s "$ac_outfile"; then
7531      # The compiler can only warn and ignore the option if not recognized
7532      # So say no if there are warnings other than the usual output.
7533      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7534      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7535      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7536        lt_cv_prog_compiler_rtti_exceptions=yes
7537      fi
7538    fi
7539    $rm conftest*
7540
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7543 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7544
7545 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7546     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7547 else
7548     :
7549 fi
7550
7551 fi
7552
7553 lt_prog_compiler_wl=
7554 lt_prog_compiler_pic=
7555 lt_prog_compiler_static=
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7558 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7559
7560   if test "$GCC" = yes; then
7561     lt_prog_compiler_wl='-Wl,'
7562     lt_prog_compiler_static='-static'
7563
7564     case $host_os in
7565       aix*)
7566       # All AIX code is PIC.
7567       if test "$host_cpu" = ia64; then
7568         # AIX 5 now supports IA64 processor
7569         lt_prog_compiler_static='-Bstatic'
7570       fi
7571       ;;
7572
7573     amigaos*)
7574       # FIXME: we need at least 68020 code to build shared libraries, but
7575       # adding the `-m68020' flag to GCC prevents building anything better,
7576       # like `-m68040'.
7577       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7578       ;;
7579
7580     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7581       # PIC is the default for these OSes.
7582       ;;
7583
7584     mingw* | cygwin* | pw32* | os2*)
7585       # This hack is so that the source file can tell whether it is being
7586       # built for inclusion in a dll (and should export symbols for example).
7587       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7588       # (--disable-auto-import) libraries
7589       lt_prog_compiler_pic='-DDLL_EXPORT'
7590       ;;
7591
7592     darwin* | rhapsody*)
7593       # PIC is the default on this platform
7594       # Common symbols not allowed in MH_DYLIB files
7595       lt_prog_compiler_pic='-fno-common'
7596       ;;
7597
7598     interix[3-9]*)
7599       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7600       # Instead, we relocate shared libraries at runtime.
7601       ;;
7602
7603     msdosdjgpp*)
7604       # Just because we use GCC doesn't mean we suddenly get shared libraries
7605       # on systems that don't support them.
7606       lt_prog_compiler_can_build_shared=no
7607       enable_shared=no
7608       ;;
7609
7610     sysv4*MP*)
7611       if test -d /usr/nec; then
7612         lt_prog_compiler_pic=-Kconform_pic
7613       fi
7614       ;;
7615
7616     hpux*)
7617       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7618       # not for PA HP-UX.
7619       case $host_cpu in
7620       hppa*64*|ia64*)
7621         # +Z the default
7622         ;;
7623       *)
7624         lt_prog_compiler_pic='-fPIC'
7625         ;;
7626       esac
7627       ;;
7628
7629     *)
7630       lt_prog_compiler_pic='-fPIC'
7631       ;;
7632     esac
7633   else
7634     # PORTME Check for flag to pass linker flags through the system compiler.
7635     case $host_os in
7636     aix*)
7637       lt_prog_compiler_wl='-Wl,'
7638       if test "$host_cpu" = ia64; then
7639         # AIX 5 now supports IA64 processor
7640         lt_prog_compiler_static='-Bstatic'
7641       else
7642         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7643       fi
7644       ;;
7645       darwin*)
7646         # PIC is the default on this platform
7647         # Common symbols not allowed in MH_DYLIB files
7648        case $cc_basename in
7649          xlc*)
7650          lt_prog_compiler_pic='-qnocommon'
7651          lt_prog_compiler_wl='-Wl,'
7652          ;;
7653        esac
7654        ;;
7655
7656     mingw* | cygwin* | pw32* | os2*)
7657       # This hack is so that the source file can tell whether it is being
7658       # built for inclusion in a dll (and should export symbols for example).
7659       lt_prog_compiler_pic='-DDLL_EXPORT'
7660       ;;
7661
7662     hpux9* | hpux10* | hpux11*)
7663       lt_prog_compiler_wl='-Wl,'
7664       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7665       # not for PA HP-UX.
7666       case $host_cpu in
7667       hppa*64*|ia64*)
7668         # +Z the default
7669         ;;
7670       *)
7671         lt_prog_compiler_pic='+Z'
7672         ;;
7673       esac
7674       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7675       lt_prog_compiler_static='${wl}-a ${wl}archive'
7676       ;;
7677
7678     irix5* | irix6* | nonstopux*)
7679       lt_prog_compiler_wl='-Wl,'
7680       # PIC (with -KPIC) is the default.
7681       lt_prog_compiler_static='-non_shared'
7682       ;;
7683
7684     newsos6)
7685       lt_prog_compiler_pic='-KPIC'
7686       lt_prog_compiler_static='-Bstatic'
7687       ;;
7688
7689     linux* | k*bsd*-gnu)
7690       case $cc_basename in
7691       icc* | ecc*)
7692         lt_prog_compiler_wl='-Wl,'
7693         lt_prog_compiler_pic='-KPIC'
7694         lt_prog_compiler_static='-static'
7695         ;;
7696       pgcc* | pgf77* | pgf90* | pgf95*)
7697         # Portland Group compilers (*not* the Pentium gcc compiler,
7698         # which looks to be a dead project)
7699         lt_prog_compiler_wl='-Wl,'
7700         lt_prog_compiler_pic='-fpic'
7701         lt_prog_compiler_static='-Bstatic'
7702         ;;
7703       ccc*)
7704         lt_prog_compiler_wl='-Wl,'
7705         # All Alpha code is PIC.
7706         lt_prog_compiler_static='-non_shared'
7707         ;;
7708       *)
7709         case `$CC -V 2>&1 | sed 5q` in
7710         *Sun\ C*)
7711           # Sun C 5.9
7712           lt_prog_compiler_pic='-KPIC'
7713           lt_prog_compiler_static='-Bstatic'
7714           lt_prog_compiler_wl='-Wl,'
7715           ;;
7716         *Sun\ F*)
7717           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7718           lt_prog_compiler_pic='-KPIC'
7719           lt_prog_compiler_static='-Bstatic'
7720           lt_prog_compiler_wl=''
7721           ;;
7722         esac
7723         ;;
7724       esac
7725       ;;
7726
7727     osf3* | osf4* | osf5*)
7728       lt_prog_compiler_wl='-Wl,'
7729       # All OSF/1 code is PIC.
7730       lt_prog_compiler_static='-non_shared'
7731       ;;
7732
7733     rdos*)
7734       lt_prog_compiler_static='-non_shared'
7735       ;;
7736
7737     solaris*)
7738       lt_prog_compiler_pic='-KPIC'
7739       lt_prog_compiler_static='-Bstatic'
7740       case $cc_basename in
7741       f77* | f90* | f95*)
7742         lt_prog_compiler_wl='-Qoption ld ';;
7743       *)
7744         lt_prog_compiler_wl='-Wl,';;
7745       esac
7746       ;;
7747
7748     sunos4*)
7749       lt_prog_compiler_wl='-Qoption ld '
7750       lt_prog_compiler_pic='-PIC'
7751       lt_prog_compiler_static='-Bstatic'
7752       ;;
7753
7754     sysv4 | sysv4.2uw2* | sysv4.3*)
7755       lt_prog_compiler_wl='-Wl,'
7756       lt_prog_compiler_pic='-KPIC'
7757       lt_prog_compiler_static='-Bstatic'
7758       ;;
7759
7760     sysv4*MP*)
7761       if test -d /usr/nec ;then
7762         lt_prog_compiler_pic='-Kconform_pic'
7763         lt_prog_compiler_static='-Bstatic'
7764       fi
7765       ;;
7766
7767     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7768       lt_prog_compiler_wl='-Wl,'
7769       lt_prog_compiler_pic='-KPIC'
7770       lt_prog_compiler_static='-Bstatic'
7771       ;;
7772
7773     unicos*)
7774       lt_prog_compiler_wl='-Wl,'
7775       lt_prog_compiler_can_build_shared=no
7776       ;;
7777
7778     uts4*)
7779       lt_prog_compiler_pic='-pic'
7780       lt_prog_compiler_static='-Bstatic'
7781       ;;
7782
7783     *)
7784       lt_prog_compiler_can_build_shared=no
7785       ;;
7786     esac
7787   fi
7788
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7790 $as_echo "$lt_prog_compiler_pic" >&6; }
7791
7792 #
7793 # Check to make sure the PIC flag actually works.
7794 #
7795 if test -n "$lt_prog_compiler_pic"; then
7796
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7798 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7799 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7800   $as_echo_n "(cached) " >&6
7801 else
7802   lt_cv_prog_compiler_pic_works=no
7803   ac_outfile=conftest.$ac_objext
7804    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7805    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7806    # Insert the option either (1) after the last *FLAGS variable, or
7807    # (2) before a word containing "conftest.", or (3) at the end.
7808    # Note that $ac_compile itself does not contain backslashes and begins
7809    # with a dollar sign (not a hyphen), so the echo should work correctly.
7810    # The option is referenced via a variable to avoid confusing sed.
7811    lt_compile=`echo "$ac_compile" | $SED \
7812    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7813    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7814    -e 's:$: $lt_compiler_flag:'`
7815    (eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
7816    (eval "$lt_compile" 2>conftest.err)
7817    ac_status=$?
7818    cat conftest.err >&5
7819    echo "$as_me:7815: \$? = $ac_status" >&5
7820    if (exit $ac_status) && test -s "$ac_outfile"; then
7821      # The compiler can only warn and ignore the option if not recognized
7822      # So say no if there are warnings other than the usual output.
7823      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7824      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7825      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7826        lt_cv_prog_compiler_pic_works=yes
7827      fi
7828    fi
7829    $rm conftest*
7830
7831 fi
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7833 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7834
7835 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7836     case $lt_prog_compiler_pic in
7837      "" | " "*) ;;
7838      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7839      esac
7840 else
7841     lt_prog_compiler_pic=
7842      lt_prog_compiler_can_build_shared=no
7843 fi
7844
7845 fi
7846 case $host_os in
7847   # For platforms which do not support PIC, -DPIC is meaningless:
7848   *djgpp*)
7849     lt_prog_compiler_pic=
7850     ;;
7851   *)
7852     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853     ;;
7854 esac
7855
7856 #
7857 # Check to make sure the static flag actually works.
7858 #
7859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7862 if ${lt_cv_prog_compiler_static_works+:} false; then :
7863   $as_echo_n "(cached) " >&6
7864 else
7865   lt_cv_prog_compiler_static_works=no
7866    save_LDFLAGS="$LDFLAGS"
7867    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7868    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7869    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7870      # The linker can only warn and ignore the option if not recognized
7871      # So say no if there are warnings
7872      if test -s conftest.err; then
7873        # Append any errors to the config.log.
7874        cat conftest.err 1>&5
7875        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7876        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7877        if diff conftest.exp conftest.er2 >/dev/null; then
7878          lt_cv_prog_compiler_static_works=yes
7879        fi
7880      else
7881        lt_cv_prog_compiler_static_works=yes
7882      fi
7883    fi
7884    $rm -r conftest*
7885    LDFLAGS="$save_LDFLAGS"
7886
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7890
7891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7892     :
7893 else
7894     lt_prog_compiler_static=
7895 fi
7896
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7900 if ${lt_cv_prog_compiler_c_o+:} false; then :
7901   $as_echo_n "(cached) " >&6
7902 else
7903   lt_cv_prog_compiler_c_o=no
7904    $rm -r conftest 2>/dev/null
7905    mkdir conftest
7906    cd conftest
7907    mkdir out
7908    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7909
7910    lt_compiler_flag="-o out/conftest2.$ac_objext"
7911    # Insert the option either (1) after the last *FLAGS variable, or
7912    # (2) before a word containing "conftest.", or (3) at the end.
7913    # Note that $ac_compile itself does not contain backslashes and begins
7914    # with a dollar sign (not a hyphen), so the echo should work correctly.
7915    lt_compile=`echo "$ac_compile" | $SED \
7916    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918    -e 's:$: $lt_compiler_flag:'`
7919    (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7920    (eval "$lt_compile" 2>out/conftest.err)
7921    ac_status=$?
7922    cat out/conftest.err >&5
7923    echo "$as_me:7919: \$? = $ac_status" >&5
7924    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7925    then
7926      # The compiler can only warn and ignore the option if not recognized
7927      # So say no if there are warnings
7928      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7929      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7930      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7931        lt_cv_prog_compiler_c_o=yes
7932      fi
7933    fi
7934    chmod u+w . 2>&5
7935    $rm conftest*
7936    # SGI C++ compiler will create directory out/ii_files/ for
7937    # template instantiation
7938    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7939    $rm out/* && rmdir out
7940    cd ..
7941    rmdir conftest
7942    $rm conftest*
7943
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7946 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7947
7948
7949 hard_links="nottested"
7950 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7951   # do not overwrite the value of need_locks provided by the user
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7953 $as_echo_n "checking if we can lock with hard links... " >&6; }
7954   hard_links=yes
7955   $rm conftest*
7956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7957   touch conftest.a
7958   ln conftest.a conftest.b 2>&5 || hard_links=no
7959   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7961 $as_echo "$hard_links" >&6; }
7962   if test "$hard_links" = no; then
7963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7964 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7965     need_locks=warn
7966   fi
7967 else
7968   need_locks=no
7969 fi
7970
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7973
7974   runpath_var=
7975   allow_undefined_flag=
7976   enable_shared_with_static_runtimes=no
7977   archive_cmds=
7978   archive_expsym_cmds=
7979   old_archive_From_new_cmds=
7980   old_archive_from_expsyms_cmds=
7981   export_dynamic_flag_spec=
7982   whole_archive_flag_spec=
7983   thread_safe_flag_spec=
7984   hardcode_libdir_flag_spec=
7985   hardcode_libdir_flag_spec_ld=
7986   hardcode_libdir_separator=
7987   hardcode_direct=no
7988   hardcode_minus_L=no
7989   hardcode_shlibpath_var=unsupported
7990   link_all_deplibs=unknown
7991   hardcode_automatic=no
7992   module_cmds=
7993   module_expsym_cmds=
7994   always_export_symbols=no
7995   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7996   # include_expsyms should be a list of space-separated symbols to be *always*
7997   # included in the symbol list
7998   include_expsyms=
7999   # exclude_expsyms can be an extended regexp of symbols to exclude
8000   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8001   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8002   # as well as any symbol that contains `d'.
8003   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8004   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8005   # platforms (ab)use it in PIC code, but their linkers get confused if
8006   # the symbol is explicitly referenced.  Since portable code cannot
8007   # rely on this symbol name, it's probably fine to never include it in
8008   # preloaded symbol tables.
8009   # Exclude shared library initialization/finalization symbols.
8010   extract_expsyms_cmds=
8011   # Just being paranoid about ensuring that cc_basename is set.
8012   for cc_temp in $compiler""; do
8013   case $cc_temp in
8014     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8015     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8016     \-*) ;;
8017     *) break;;
8018   esac
8019 done
8020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8021
8022   case $host_os in
8023   cygwin* | mingw* | pw32*)
8024     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8025     # When not using gcc, we currently assume that we are using
8026     # Microsoft Visual C++.
8027     if test "$GCC" != yes; then
8028       with_gnu_ld=no
8029     fi
8030     ;;
8031   interix*)
8032     # we just hope/assume this is gcc and not c89 (= MSVC++)
8033     with_gnu_ld=yes
8034     ;;
8035   openbsd*)
8036     with_gnu_ld=no
8037     ;;
8038   esac
8039
8040   ld_shlibs=yes
8041   if test "$with_gnu_ld" = yes; then
8042     # If archive_cmds runs LD, not CC, wlarc should be empty
8043     wlarc='${wl}'
8044
8045     # Set some defaults for GNU ld with shared library support. These
8046     # are reset later if shared libraries are not supported. Putting them
8047     # here allows them to be overridden if necessary.
8048     runpath_var=LD_RUN_PATH
8049     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8050     export_dynamic_flag_spec='${wl}--export-dynamic'
8051     # ancient GNU ld didn't support --whole-archive et. al.
8052     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8053         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8054       else
8055         whole_archive_flag_spec=
8056     fi
8057     supports_anon_versioning=no
8058     case `$LD -v 2>/dev/null` in
8059       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8060       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8061       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8062       *\ 2.11.*) ;; # other 2.11 versions
8063       *) supports_anon_versioning=yes ;;
8064     esac
8065
8066     # See if GNU ld supports shared libraries.
8067     case $host_os in
8068     aix[3-9]*)
8069       # On AIX/PPC, the GNU linker is very broken
8070       if test "$host_cpu" != ia64; then
8071         ld_shlibs=no
8072         cat <<EOF 1>&2
8073
8074 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8075 *** to be unable to reliably create shared libraries on AIX.
8076 *** Therefore, libtool is disabling shared libraries support.  If you
8077 *** really care for shared libraries, you may want to modify your PATH
8078 *** so that a non-GNU linker is found, and then restart.
8079
8080 EOF
8081       fi
8082       ;;
8083
8084     amigaos*)
8085       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)'
8086       hardcode_libdir_flag_spec='-L$libdir'
8087       hardcode_minus_L=yes
8088
8089       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8090       # that the semantics of dynamic libraries on AmigaOS, at least up
8091       # to version 4, is to share data among multiple programs linked
8092       # with the same dynamic library.  Since this doesn't match the
8093       # behavior of shared libraries on other platforms, we can't use
8094       # them.
8095       ld_shlibs=no
8096       ;;
8097
8098     beos*)
8099       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8100         allow_undefined_flag=unsupported
8101         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8102         # support --undefined.  This deserves some investigation.  FIXME
8103         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8104       else
8105         ld_shlibs=no
8106       fi
8107       ;;
8108
8109     cygwin* | mingw* | pw32*)
8110       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8111       # as there is no search path for DLLs.
8112       hardcode_libdir_flag_spec='-L$libdir'
8113       allow_undefined_flag=unsupported
8114       always_export_symbols=no
8115       enable_shared_with_static_runtimes=yes
8116       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8117
8118       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8119         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8120         # If the export-symbols file already is a .def file (1st line
8121         # is EXPORTS), use it as is; otherwise, prepend...
8122         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8123           cp $export_symbols $output_objdir/$soname.def;
8124         else
8125           echo EXPORTS > $output_objdir/$soname.def;
8126           cat $export_symbols >> $output_objdir/$soname.def;
8127         fi~
8128         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8129       else
8130         ld_shlibs=no
8131       fi
8132       ;;
8133
8134     interix[3-9]*)
8135       hardcode_direct=no
8136       hardcode_shlibpath_var=no
8137       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8138       export_dynamic_flag_spec='${wl}-E'
8139       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8140       # Instead, shared libraries are loaded at an image base (0x10000000 by
8141       # default) and relocated if they conflict, which is a slow very memory
8142       # consuming and fragmenting process.  To avoid this, we pick a random,
8143       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8144       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8145       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8146       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'
8147       ;;
8148
8149     gnu* | linux* | k*bsd*-gnu)
8150       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8151         tmp_addflag=
8152         case $cc_basename,$host_cpu in
8153         pgcc*)                          # Portland Group C compiler
8154           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'
8155           tmp_addflag=' $pic_flag'
8156           ;;
8157         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8158           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'
8159           tmp_addflag=' $pic_flag -Mnomain' ;;
8160         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8161           tmp_addflag=' -i_dynamic' ;;
8162         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8163           tmp_addflag=' -i_dynamic -nofor_main' ;;
8164         ifc* | ifort*)                  # Intel Fortran compiler
8165           tmp_addflag=' -nofor_main' ;;
8166         esac
8167         case `$CC -V 2>&1 | sed 5q` in
8168         *Sun\ C*)                       # Sun C 5.9
8169           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'
8170           tmp_sharedflag='-G' ;;
8171         *Sun\ F*)                       # Sun Fortran 8.3
8172           tmp_sharedflag='-G' ;;
8173         *)
8174           tmp_sharedflag='-shared' ;;
8175         esac
8176         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177
8178         if test $supports_anon_versioning = yes; then
8179           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8180   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8181   $echo "local: *; };" >> $output_objdir/$libname.ver~
8182           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8183         fi
8184         link_all_deplibs=no
8185       else
8186         ld_shlibs=no
8187       fi
8188       ;;
8189
8190     netbsd* | netbsdelf*-gnu)
8191       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8192         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8193         wlarc=
8194       else
8195         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8197       fi
8198       ;;
8199
8200     solaris*)
8201       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8202         ld_shlibs=no
8203         cat <<EOF 1>&2
8204
8205 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8206 *** create shared libraries on Solaris systems.  Therefore, libtool
8207 *** is disabling shared libraries support.  We urge you to upgrade GNU
8208 *** binutils to release 2.9.1 or newer.  Another option is to modify
8209 *** your PATH or compiler configuration so that the native linker is
8210 *** used, and then restart.
8211
8212 EOF
8213       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8214         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8216       else
8217         ld_shlibs=no
8218       fi
8219       ;;
8220
8221     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8222       case `$LD -v 2>&1` in
8223         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8224         ld_shlibs=no
8225         cat <<_LT_EOF 1>&2
8226
8227 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8228 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8229 *** is disabling shared libraries support.  We urge you to upgrade GNU
8230 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8231 *** your PATH or compiler configuration so that the native linker is
8232 *** used, and then restart.
8233
8234 _LT_EOF
8235         ;;
8236         *)
8237           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8238             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8239             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8240             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8241           else
8242             ld_shlibs=no
8243           fi
8244         ;;
8245       esac
8246       ;;
8247
8248     sunos4*)
8249       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8250       wlarc=
8251       hardcode_direct=yes
8252       hardcode_shlibpath_var=no
8253       ;;
8254
8255     *)
8256       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8259       else
8260         ld_shlibs=no
8261       fi
8262       ;;
8263     esac
8264
8265     if test "$ld_shlibs" = no; then
8266       runpath_var=
8267       hardcode_libdir_flag_spec=
8268       export_dynamic_flag_spec=
8269       whole_archive_flag_spec=
8270     fi
8271   else
8272     # PORTME fill in a description of your system's linker (not GNU ld)
8273     case $host_os in
8274     aix3*)
8275       allow_undefined_flag=unsupported
8276       always_export_symbols=yes
8277       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'
8278       # Note: this linker hardcodes the directories in LIBPATH if there
8279       # are no directories specified by -L.
8280       hardcode_minus_L=yes
8281       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8282         # Neither direct hardcoding nor static linking is supported with a
8283         # broken collect2.
8284         hardcode_direct=unsupported
8285       fi
8286       ;;
8287
8288     aix[4-9]*)
8289       if test "$host_cpu" = ia64; then
8290         # On IA64, the linker does run time linking by default, so we don't
8291         # have to do anything special.
8292         aix_use_runtimelinking=no
8293         exp_sym_flag='-Bexport'
8294         no_entry_flag=""
8295       else
8296         # If we're using GNU nm, then we don't want the "-C" option.
8297         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8298         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8299           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'
8300         else
8301           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'
8302         fi
8303         aix_use_runtimelinking=no
8304
8305         # Test if we are trying to use run time linking or normal
8306         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8307         # need to do runtime linking.
8308         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8309           for ld_flag in $LDFLAGS; do
8310           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8311             aix_use_runtimelinking=yes
8312             break
8313           fi
8314           done
8315           ;;
8316         esac
8317
8318         exp_sym_flag='-bexport'
8319         no_entry_flag='-bnoentry'
8320       fi
8321
8322       # When large executables or shared objects are built, AIX ld can
8323       # have problems creating the table of contents.  If linking a library
8324       # or program results in "error TOC overflow" add -mminimal-toc to
8325       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8326       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8327
8328       archive_cmds=''
8329       hardcode_direct=yes
8330       hardcode_libdir_separator=':'
8331       link_all_deplibs=yes
8332
8333       if test "$GCC" = yes; then
8334         case $host_os in aix4.[012]|aix4.[012].*)
8335         # We only want to do this on AIX 4.2 and lower, the check
8336         # below for broken collect2 doesn't work under 4.3+
8337           collect2name=`${CC} -print-prog-name=collect2`
8338           if test -f "$collect2name" && \
8339            strings "$collect2name" | grep resolve_lib_name >/dev/null
8340           then
8341           # We have reworked collect2
8342           :
8343           else
8344           # We have old collect2
8345           hardcode_direct=unsupported
8346           # It fails to find uninstalled libraries when the uninstalled
8347           # path is not listed in the libpath.  Setting hardcode_minus_L
8348           # to unsupported forces relinking
8349           hardcode_minus_L=yes
8350           hardcode_libdir_flag_spec='-L$libdir'
8351           hardcode_libdir_separator=
8352           fi
8353           ;;
8354         esac
8355         shared_flag='-shared'
8356         if test "$aix_use_runtimelinking" = yes; then
8357           shared_flag="$shared_flag "'${wl}-G'
8358         fi
8359       else
8360         # not using gcc
8361         if test "$host_cpu" = ia64; then
8362         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8363         # chokes on -Wl,-G. The following line is correct:
8364           shared_flag='-G'
8365         else
8366           if test "$aix_use_runtimelinking" = yes; then
8367             shared_flag='${wl}-G'
8368           else
8369             shared_flag='${wl}-bM:SRE'
8370           fi
8371         fi
8372       fi
8373
8374       # It seems that -bexpall does not export symbols beginning with
8375       # underscore (_), so it is better to generate a list of symbols to export.
8376       always_export_symbols=yes
8377       if test "$aix_use_runtimelinking" = yes; then
8378         # Warning - without using the other runtime loading flags (-brtl),
8379         # -berok will link without error, but may produce a broken library.
8380         allow_undefined_flag='-berok'
8381        # Determine the default libpath from the value encoded in an empty executable.
8382        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h.  */
8384
8385 int
8386 main ()
8387 {
8388
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 if ac_fn_c_try_link "$LINENO"; then :
8394
8395 lt_aix_libpath_sed='
8396     /Import File Strings/,/^$/ {
8397         /^0/ {
8398             s/^0  *\(.*\)$/\1/
8399             p
8400         }
8401     }'
8402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8403 # Check for a 64-bit object if we didn't find anything.
8404 if test -z "$aix_libpath"; then
8405   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8406 fi
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext \
8409     conftest$ac_exeext conftest.$ac_ext
8410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8411
8412        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413         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"
8414        else
8415         if test "$host_cpu" = ia64; then
8416           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8417           allow_undefined_flag="-z nodefs"
8418           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"
8419         else
8420          # Determine the default libpath from the value encoded in an empty executable.
8421          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h.  */
8423
8424 int
8425 main ()
8426 {
8427
8428   ;
8429   return 0;
8430 }
8431 _ACEOF
8432 if ac_fn_c_try_link "$LINENO"; then :
8433
8434 lt_aix_libpath_sed='
8435     /Import File Strings/,/^$/ {
8436         /^0/ {
8437             s/^0  *\(.*\)$/\1/
8438             p
8439         }
8440     }'
8441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8442 # Check for a 64-bit object if we didn't find anything.
8443 if test -z "$aix_libpath"; then
8444   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8445 fi
8446 fi
8447 rm -f core conftest.err conftest.$ac_objext \
8448     conftest$ac_exeext conftest.$ac_ext
8449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8450
8451          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8452           # Warning - without using the other run time loading flags,
8453           # -berok will link without error, but may produce a broken library.
8454           no_undefined_flag=' ${wl}-bernotok'
8455           allow_undefined_flag=' ${wl}-berok'
8456           # Exported symbols can be pulled into shared objects from archives
8457           whole_archive_flag_spec='$convenience'
8458           archive_cmds_need_lc=yes
8459           # This is similar to how AIX traditionally builds its shared libraries.
8460           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'
8461         fi
8462       fi
8463       ;;
8464
8465     amigaos*)
8466       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)'
8467       hardcode_libdir_flag_spec='-L$libdir'
8468       hardcode_minus_L=yes
8469       # see comment about different semantics on the GNU ld section
8470       ld_shlibs=no
8471       ;;
8472
8473     bsdi[45]*)
8474       export_dynamic_flag_spec=-rdynamic
8475       ;;
8476
8477     cygwin* | mingw* | pw32*)
8478       # When not using gcc, we currently assume that we are using
8479       # Microsoft Visual C++.
8480       # hardcode_libdir_flag_spec is actually meaningless, as there is
8481       # no search path for DLLs.
8482       hardcode_libdir_flag_spec=' '
8483       allow_undefined_flag=unsupported
8484       # Tell ltmain to make .lib files, not .a files.
8485       libext=lib
8486       # Tell ltmain to make .dll files, not .so files.
8487       shrext_cmds=".dll"
8488       # FIXME: Setting linknames here is a bad hack.
8489       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8490       # The linker will automatically build a .lib file if we build a DLL.
8491       old_archive_From_new_cmds='true'
8492       # FIXME: Should let the user specify the lib program.
8493       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8494       fix_srcfile_path='`cygpath -w "$srcfile"`'
8495       enable_shared_with_static_runtimes=yes
8496       ;;
8497
8498     darwin* | rhapsody*)
8499       case $host_os in
8500         rhapsody* | darwin1.[012])
8501          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8502          ;;
8503        *) # Darwin 1.3 on
8504          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8505            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8506          else
8507            case ${MACOSX_DEPLOYMENT_TARGET} in
8508              10.[012])
8509                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8510                ;;
8511              10.*)
8512                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8513                ;;
8514            esac
8515          fi
8516          ;;
8517       esac
8518       archive_cmds_need_lc=no
8519       hardcode_direct=no
8520       hardcode_automatic=yes
8521       hardcode_shlibpath_var=unsupported
8522       whole_archive_flag_spec=''
8523       link_all_deplibs=yes
8524     if test "$GCC" = yes ; then
8525         output_verbose_link_cmd='echo'
8526         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8527         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8528         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}"
8529         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}"
8530     else
8531       case $cc_basename in
8532         xlc*)
8533          output_verbose_link_cmd='echo'
8534          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8535          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8536           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8537          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}'
8538           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}'
8539           ;;
8540        *)
8541          ld_shlibs=no
8542           ;;
8543       esac
8544     fi
8545       ;;
8546
8547     dgux*)
8548       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8549       hardcode_libdir_flag_spec='-L$libdir'
8550       hardcode_shlibpath_var=no
8551       ;;
8552
8553     freebsd1*)
8554       ld_shlibs=no
8555       ;;
8556
8557     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8558     # support.  Future versions do this automatically, but an explicit c++rt0.o
8559     # does not break anything, and helps significantly (at the cost of a little
8560     # extra space).
8561     freebsd2.2*)
8562       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8563       hardcode_libdir_flag_spec='-R$libdir'
8564       hardcode_direct=yes
8565       hardcode_shlibpath_var=no
8566       ;;
8567
8568     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8569     freebsd2*)
8570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8571       hardcode_direct=yes
8572       hardcode_minus_L=yes
8573       hardcode_shlibpath_var=no
8574       ;;
8575
8576     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8577     freebsd* | dragonfly*)
8578       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8579       hardcode_libdir_flag_spec='-R$libdir'
8580       hardcode_direct=yes
8581       hardcode_shlibpath_var=no
8582       ;;
8583
8584     hpux9*)
8585       if test "$GCC" = yes; then
8586         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'
8587       else
8588         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'
8589       fi
8590       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8591       hardcode_libdir_separator=:
8592       hardcode_direct=yes
8593
8594       # hardcode_minus_L: Not really in the search PATH,
8595       # but as the default location of the library.
8596       hardcode_minus_L=yes
8597       export_dynamic_flag_spec='${wl}-E'
8598       ;;
8599
8600     hpux10*)
8601       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8602         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8603       else
8604         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8605       fi
8606       if test "$with_gnu_ld" = no; then
8607         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8608         hardcode_libdir_separator=:
8609
8610         hardcode_direct=yes
8611         export_dynamic_flag_spec='${wl}-E'
8612
8613         # hardcode_minus_L: Not really in the search PATH,
8614         # but as the default location of the library.
8615         hardcode_minus_L=yes
8616       fi
8617       ;;
8618
8619     hpux11*)
8620       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8621         case $host_cpu in
8622         hppa*64*)
8623           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8624           ;;
8625         ia64*)
8626           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8627           ;;
8628         *)
8629           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8630           ;;
8631         esac
8632       else
8633         case $host_cpu in
8634         hppa*64*)
8635           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8636           ;;
8637         ia64*)
8638           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8639           ;;
8640         *)
8641           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8642           ;;
8643         esac
8644       fi
8645       if test "$with_gnu_ld" = no; then
8646         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8647         hardcode_libdir_separator=:
8648
8649         case $host_cpu in
8650         hppa*64*|ia64*)
8651           hardcode_libdir_flag_spec_ld='+b $libdir'
8652           hardcode_direct=no
8653           hardcode_shlibpath_var=no
8654           ;;
8655         *)
8656           hardcode_direct=yes
8657           export_dynamic_flag_spec='${wl}-E'
8658
8659           # hardcode_minus_L: Not really in the search PATH,
8660           # but as the default location of the library.
8661           hardcode_minus_L=yes
8662           ;;
8663         esac
8664       fi
8665       ;;
8666
8667     irix5* | irix6* | nonstopux*)
8668       if test "$GCC" = yes; then
8669         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'
8670       else
8671         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'
8672         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8673       fi
8674       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8675       hardcode_libdir_separator=:
8676       link_all_deplibs=yes
8677       ;;
8678
8679     netbsd* | netbsdelf*-gnu)
8680       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8681         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8682       else
8683         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8684       fi
8685       hardcode_libdir_flag_spec='-R$libdir'
8686       hardcode_direct=yes
8687       hardcode_shlibpath_var=no
8688       ;;
8689
8690     newsos6)
8691       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692       hardcode_direct=yes
8693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8694       hardcode_libdir_separator=:
8695       hardcode_shlibpath_var=no
8696       ;;
8697
8698     openbsd*)
8699       if test -f /usr/libexec/ld.so; then
8700         hardcode_direct=yes
8701         hardcode_shlibpath_var=no
8702         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8703           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8704           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8705           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8706           export_dynamic_flag_spec='${wl}-E'
8707         else
8708           case $host_os in
8709            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8710              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8711              hardcode_libdir_flag_spec='-R$libdir'
8712              ;;
8713            *)
8714              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8715              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8716              ;;
8717           esac
8718         fi
8719       else
8720         ld_shlibs=no
8721       fi
8722       ;;
8723
8724     os2*)
8725       hardcode_libdir_flag_spec='-L$libdir'
8726       hardcode_minus_L=yes
8727       allow_undefined_flag=unsupported
8728       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'
8729       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8730       ;;
8731
8732     osf3*)
8733       if test "$GCC" = yes; then
8734         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8735         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'
8736       else
8737         allow_undefined_flag=' -expect_unresolved \*'
8738         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'
8739       fi
8740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741       hardcode_libdir_separator=:
8742       ;;
8743
8744     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8745       if test "$GCC" = yes; then
8746         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8747         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'
8748         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749       else
8750         allow_undefined_flag=' -expect_unresolved \*'
8751         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'
8752         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8753         $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'
8754
8755         # Both c and cxx compiler support -rpath directly
8756         hardcode_libdir_flag_spec='-rpath $libdir'
8757       fi
8758       hardcode_libdir_separator=:
8759       ;;
8760
8761     solaris*)
8762       no_undefined_flag=' -z text'
8763       if test "$GCC" = yes; then
8764         wlarc='${wl}'
8765         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8767           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8768       else
8769         wlarc=''
8770         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8772         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8773       fi
8774       hardcode_libdir_flag_spec='-R$libdir'
8775       hardcode_shlibpath_var=no
8776       case $host_os in
8777       solaris2.[0-5] | solaris2.[0-5].*) ;;
8778       *)
8779         # The compiler driver will combine and reorder linker options,
8780         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8781         # but is careful enough not to reorder.
8782         # Supported since Solaris 2.6 (maybe 2.5.1?)
8783         if test "$GCC" = yes; then
8784           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8785         else
8786           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8787         fi
8788         ;;
8789       esac
8790       link_all_deplibs=yes
8791       ;;
8792
8793     sunos4*)
8794       if test "x$host_vendor" = xsequent; then
8795         # Use $CC to link under sequent, because it throws in some extra .o
8796         # files that make .init and .fini sections work.
8797         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8798       else
8799         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8800       fi
8801       hardcode_libdir_flag_spec='-L$libdir'
8802       hardcode_direct=yes
8803       hardcode_minus_L=yes
8804       hardcode_shlibpath_var=no
8805       ;;
8806
8807     sysv4)
8808       case $host_vendor in
8809         sni)
8810           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811           hardcode_direct=yes # is this really true???
8812         ;;
8813         siemens)
8814           ## LD is ld it makes a PLAMLIB
8815           ## CC just makes a GrossModule.
8816           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8817           reload_cmds='$CC -r -o $output$reload_objs'
8818           hardcode_direct=no
8819         ;;
8820         motorola)
8821           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8823         ;;
8824       esac
8825       runpath_var='LD_RUN_PATH'
8826       hardcode_shlibpath_var=no
8827       ;;
8828
8829     sysv4.3*)
8830       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8831       hardcode_shlibpath_var=no
8832       export_dynamic_flag_spec='-Bexport'
8833       ;;
8834
8835     sysv4*MP*)
8836       if test -d /usr/nec; then
8837         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838         hardcode_shlibpath_var=no
8839         runpath_var=LD_RUN_PATH
8840         hardcode_runpath_var=yes
8841         ld_shlibs=yes
8842       fi
8843       ;;
8844
8845     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8846       no_undefined_flag='${wl}-z,text'
8847       archive_cmds_need_lc=no
8848       hardcode_shlibpath_var=no
8849       runpath_var='LD_RUN_PATH'
8850
8851       if test "$GCC" = yes; then
8852         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854       else
8855         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8856         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8857       fi
8858       ;;
8859
8860     sysv5* | sco3.2v5* | sco5v6*)
8861       # Note: We can NOT use -z defs as we might desire, because we do not
8862       # link with -lc, and that would cause any symbols used from libc to
8863       # always be unresolved, which means just about no library would
8864       # ever link correctly.  If we're not using GNU ld we use -z text
8865       # though, which does catch some bad symbols but isn't as heavy-handed
8866       # as -z defs.
8867       no_undefined_flag='${wl}-z,text'
8868       allow_undefined_flag='${wl}-z,nodefs'
8869       archive_cmds_need_lc=no
8870       hardcode_shlibpath_var=no
8871       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8872       hardcode_libdir_separator=':'
8873       link_all_deplibs=yes
8874       export_dynamic_flag_spec='${wl}-Bexport'
8875       runpath_var='LD_RUN_PATH'
8876
8877       if test "$GCC" = yes; then
8878         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8879         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8880       else
8881         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8882         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8883       fi
8884       ;;
8885
8886     uts4*)
8887       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888       hardcode_libdir_flag_spec='-L$libdir'
8889       hardcode_shlibpath_var=no
8890       ;;
8891
8892     *)
8893       ld_shlibs=no
8894       ;;
8895     esac
8896   fi
8897
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8899 $as_echo "$ld_shlibs" >&6; }
8900 test "$ld_shlibs" = no && can_build_shared=no
8901
8902 #
8903 # Do we need to explicitly link libc?
8904 #
8905 case "x$archive_cmds_need_lc" in
8906 x|xyes)
8907   # Assume -lc should be added
8908   archive_cmds_need_lc=yes
8909
8910   if test "$enable_shared" = yes && test "$GCC" = yes; then
8911     case $archive_cmds in
8912     *'~'*)
8913       # FIXME: we may have to deal with multi-command sequences.
8914       ;;
8915     '$CC '*)
8916       # Test whether the compiler implicitly links with -lc since on some
8917       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8918       # to ld, don't add -lc before -lgcc.
8919       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8920 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8921       $rm conftest*
8922       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923
8924       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8925   (eval $ac_compile) 2>&5
8926   ac_status=$?
8927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8928   test $ac_status = 0; } 2>conftest.err; then
8929         soname=conftest
8930         lib=conftest
8931         libobjs=conftest.$ac_objext
8932         deplibs=
8933         wl=$lt_prog_compiler_wl
8934         pic_flag=$lt_prog_compiler_pic
8935         compiler_flags=-v
8936         linker_flags=-v
8937         verstring=
8938         output_objdir=.
8939         libname=conftest
8940         lt_save_allow_undefined_flag=$allow_undefined_flag
8941         allow_undefined_flag=
8942         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8943   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8944   ac_status=$?
8945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8946   test $ac_status = 0; }
8947         then
8948           archive_cmds_need_lc=no
8949         else
8950           archive_cmds_need_lc=yes
8951         fi
8952         allow_undefined_flag=$lt_save_allow_undefined_flag
8953       else
8954         cat conftest.err 1>&5
8955       fi
8956       $rm conftest*
8957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8958 $as_echo "$archive_cmds_need_lc" >&6; }
8959       ;;
8960     esac
8961   fi
8962   ;;
8963 esac
8964
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8966 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8967 library_names_spec=
8968 libname_spec='lib$name'
8969 soname_spec=
8970 shrext_cmds=".so"
8971 postinstall_cmds=
8972 postuninstall_cmds=
8973 finish_cmds=
8974 finish_eval=
8975 shlibpath_var=
8976 shlibpath_overrides_runpath=unknown
8977 version_type=none
8978 dynamic_linker="$host_os ld.so"
8979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8980
8981 if test "$GCC" = yes; then
8982   case $host_os in
8983     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8984     *) lt_awk_arg="/^libraries:/" ;;
8985   esac
8986   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8987   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8988     # if the path contains ";" then we assume it to be the separator
8989     # otherwise default to the standard path separator (i.e. ":") - it is
8990     # assumed that no part of a normal pathname contains ";" but that should
8991     # okay in the real world where ";" in dirpaths is itself problematic.
8992     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8993   else
8994     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8995   fi
8996   # Ok, now we have the path, separated by spaces, we can step through it
8997   # and add multilib dir if necessary.
8998   lt_tmp_lt_search_path_spec=
8999   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9000   for lt_sys_path in $lt_search_path_spec; do
9001     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9002       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9003     else
9004       test -d "$lt_sys_path" && \
9005         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9006     fi
9007   done
9008   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9009 BEGIN {RS=" "; FS="/|\n";} {
9010   lt_foo="";
9011   lt_count=0;
9012   for (lt_i = NF; lt_i > 0; lt_i--) {
9013     if ($lt_i != "" && $lt_i != ".") {
9014       if ($lt_i == "..") {
9015         lt_count++;
9016       } else {
9017         if (lt_count == 0) {
9018           lt_foo="/" $lt_i lt_foo;
9019         } else {
9020           lt_count--;
9021         }
9022       }
9023     }
9024   }
9025   if (lt_foo != "") { lt_freq[lt_foo]++; }
9026   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9027 }'`
9028   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9029 else
9030   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9031 fi
9032 need_lib_prefix=unknown
9033 hardcode_into_libs=no
9034
9035 # when you set need_version to no, make sure it does not cause -set_version
9036 # flags to be left without arguments
9037 need_version=unknown
9038
9039 case $host_os in
9040 aix3*)
9041   version_type=linux
9042   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9043   shlibpath_var=LIBPATH
9044
9045   # AIX 3 has no versioning support, so we append a major version to the name.
9046   soname_spec='${libname}${release}${shared_ext}$major'
9047   ;;
9048
9049 aix[4-9]*)
9050   version_type=linux
9051   need_lib_prefix=no
9052   need_version=no
9053   hardcode_into_libs=yes
9054   if test "$host_cpu" = ia64; then
9055     # AIX 5 supports IA64
9056     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9057     shlibpath_var=LD_LIBRARY_PATH
9058   else
9059     # With GCC up to 2.95.x, collect2 would create an import file
9060     # for dependence libraries.  The import file would start with
9061     # the line `#! .'.  This would cause the generated library to
9062     # depend on `.', always an invalid library.  This was fixed in
9063     # development snapshots of GCC prior to 3.0.
9064     case $host_os in
9065       aix4 | aix4.[01] | aix4.[01].*)
9066       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9067            echo ' yes '
9068            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9069         :
9070       else
9071         can_build_shared=no
9072       fi
9073       ;;
9074     esac
9075     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9076     # soname into executable. Probably we can add versioning support to
9077     # collect2, so additional links can be useful in future.
9078     if test "$aix_use_runtimelinking" = yes; then
9079       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9080       # instead of lib<name>.a to let people know that these are not
9081       # typical AIX shared libraries.
9082       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083     else
9084       # We preserve .a as extension for shared libraries through AIX4.2
9085       # and later when we are not doing run time linking.
9086       library_names_spec='${libname}${release}.a $libname.a'
9087       soname_spec='${libname}${release}${shared_ext}$major'
9088     fi
9089     shlibpath_var=LIBPATH
9090   fi
9091   ;;
9092
9093 amigaos*)
9094   library_names_spec='$libname.ixlibrary $libname.a'
9095   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9096   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'
9097   ;;
9098
9099 beos*)
9100   library_names_spec='${libname}${shared_ext}'
9101   dynamic_linker="$host_os ld.so"
9102   shlibpath_var=LIBRARY_PATH
9103   ;;
9104
9105 bsdi[45]*)
9106   version_type=linux
9107   need_version=no
9108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109   soname_spec='${libname}${release}${shared_ext}$major'
9110   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9111   shlibpath_var=LD_LIBRARY_PATH
9112   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9113   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9114   # the default ld.so.conf also contains /usr/contrib/lib and
9115   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9116   # libtool to hard-code these into programs
9117   ;;
9118
9119 cygwin* | mingw* | pw32*)
9120   version_type=windows
9121   shrext_cmds=".dll"
9122   need_version=no
9123   need_lib_prefix=no
9124
9125   case $GCC,$host_os in
9126   yes,cygwin* | yes,mingw* | yes,pw32*)
9127     library_names_spec='$libname.dll.a'
9128     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9129     postinstall_cmds='base_file=`basename \${file}`~
9130       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9131       dldir=$destdir/`dirname \$dlpath`~
9132       test -d \$dldir || mkdir -p \$dldir~
9133       $install_prog $dir/$dlname \$dldir/$dlname~
9134       chmod a+x \$dldir/$dlname'
9135     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9136       dlpath=$dir/\$dldll~
9137        $rm \$dlpath'
9138     shlibpath_overrides_runpath=yes
9139
9140     case $host_os in
9141     cygwin*)
9142       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9143       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9144       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9145       ;;
9146     mingw*)
9147       # MinGW DLLs use traditional 'lib' prefix
9148       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9149       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9150       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9151         # It is most probably a Windows format PATH printed by
9152         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9153         # path with ; separators, and with drive letters. We can handle the
9154         # drive letters (cygwin fileutils understands them), so leave them,
9155         # especially as we might pass files found there to a mingw objdump,
9156         # which wouldn't understand a cygwinified path. Ahh.
9157         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9158       else
9159         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9160       fi
9161       ;;
9162     pw32*)
9163       # pw32 DLLs use 'pw' prefix rather than 'lib'
9164       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9165       ;;
9166     esac
9167     ;;
9168
9169   *)
9170     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9171     ;;
9172   esac
9173   dynamic_linker='Win32 ld.exe'
9174   # FIXME: first we should search . and the directory the executable is in
9175   shlibpath_var=PATH
9176   ;;
9177
9178 darwin* | rhapsody*)
9179   dynamic_linker="$host_os dyld"
9180   version_type=darwin
9181   need_lib_prefix=no
9182   need_version=no
9183   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9184   soname_spec='${libname}${release}${major}$shared_ext'
9185   shlibpath_overrides_runpath=yes
9186   shlibpath_var=DYLD_LIBRARY_PATH
9187   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9188
9189   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9190   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9191   ;;
9192
9193 dgux*)
9194   version_type=linux
9195   need_lib_prefix=no
9196   need_version=no
9197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9198   soname_spec='${libname}${release}${shared_ext}$major'
9199   shlibpath_var=LD_LIBRARY_PATH
9200   ;;
9201
9202 freebsd1*)
9203   dynamic_linker=no
9204   ;;
9205
9206 freebsd* | dragonfly*)
9207   # DragonFly does not have aout.  When/if they implement a new
9208   # versioning mechanism, adjust this.
9209   if test -x /usr/bin/objformat; then
9210     objformat=`/usr/bin/objformat`
9211   else
9212     case $host_os in
9213     freebsd[123]*) objformat=aout ;;
9214     *) objformat=elf ;;
9215     esac
9216   fi
9217   version_type=freebsd-$objformat
9218   case $version_type in
9219     freebsd-elf*)
9220       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9221       need_version=no
9222       need_lib_prefix=no
9223       ;;
9224     freebsd-*)
9225       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9226       need_version=yes
9227       ;;
9228   esac
9229   shlibpath_var=LD_LIBRARY_PATH
9230   case $host_os in
9231   freebsd2*)
9232     shlibpath_overrides_runpath=yes
9233     ;;
9234   freebsd3.[01]* | freebsdelf3.[01]*)
9235     shlibpath_overrides_runpath=yes
9236     hardcode_into_libs=yes
9237     ;;
9238   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9239   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9240     shlibpath_overrides_runpath=no
9241     hardcode_into_libs=yes
9242     ;;
9243   *) # from 4.6 on, and DragonFly
9244     shlibpath_overrides_runpath=yes
9245     hardcode_into_libs=yes
9246     ;;
9247   esac
9248   ;;
9249
9250 gnu*)
9251   version_type=linux
9252   need_lib_prefix=no
9253   need_version=no
9254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9255   soname_spec='${libname}${release}${shared_ext}$major'
9256   shlibpath_var=LD_LIBRARY_PATH
9257   hardcode_into_libs=yes
9258   ;;
9259
9260 hpux9* | hpux10* | hpux11*)
9261   # Give a soname corresponding to the major version so that dld.sl refuses to
9262   # link against other versions.
9263   version_type=sunos
9264   need_lib_prefix=no
9265   need_version=no
9266   case $host_cpu in
9267   ia64*)
9268     shrext_cmds='.so'
9269     hardcode_into_libs=yes
9270     dynamic_linker="$host_os dld.so"
9271     shlibpath_var=LD_LIBRARY_PATH
9272     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274     soname_spec='${libname}${release}${shared_ext}$major'
9275     if test "X$HPUX_IA64_MODE" = X32; then
9276       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9277     else
9278       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9279     fi
9280     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9281     ;;
9282    hppa*64*)
9283      shrext_cmds='.sl'
9284      hardcode_into_libs=yes
9285      dynamic_linker="$host_os dld.sl"
9286      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9287      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9288      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289      soname_spec='${libname}${release}${shared_ext}$major'
9290      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9291      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9292      ;;
9293    *)
9294     shrext_cmds='.sl'
9295     dynamic_linker="$host_os dld.sl"
9296     shlibpath_var=SHLIB_PATH
9297     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299     soname_spec='${libname}${release}${shared_ext}$major'
9300     ;;
9301   esac
9302   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9303   postinstall_cmds='chmod 555 $lib'
9304   ;;
9305
9306 interix[3-9]*)
9307   version_type=linux
9308   need_lib_prefix=no
9309   need_version=no
9310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9311   soname_spec='${libname}${release}${shared_ext}$major'
9312   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9313   shlibpath_var=LD_LIBRARY_PATH
9314   shlibpath_overrides_runpath=no
9315   hardcode_into_libs=yes
9316   ;;
9317
9318 irix5* | irix6* | nonstopux*)
9319   case $host_os in
9320     nonstopux*) version_type=nonstopux ;;
9321     *)
9322         if test "$lt_cv_prog_gnu_ld" = yes; then
9323                 version_type=linux
9324         else
9325                 version_type=irix
9326         fi ;;
9327   esac
9328   need_lib_prefix=no
9329   need_version=no
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9332   case $host_os in
9333   irix5* | nonstopux*)
9334     libsuff= shlibsuff=
9335     ;;
9336   *)
9337     case $LD in # libtool.m4 will add one of these switches to LD
9338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9339       libsuff= shlibsuff= libmagic=32-bit;;
9340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9341       libsuff=32 shlibsuff=N32 libmagic=N32;;
9342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9344     *) libsuff= shlibsuff= libmagic=never-match;;
9345     esac
9346     ;;
9347   esac
9348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9349   shlibpath_overrides_runpath=no
9350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9352   hardcode_into_libs=yes
9353   ;;
9354
9355 # No shared lib support for Linux oldld, aout, or coff.
9356 linux*oldld* | linux*aout* | linux*coff*)
9357   dynamic_linker=no
9358   ;;
9359
9360 # This must be Linux ELF.
9361 linux* | k*bsd*-gnu)
9362   version_type=linux
9363   need_lib_prefix=no
9364   need_version=no
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366   soname_spec='${libname}${release}${shared_ext}$major'
9367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9368   shlibpath_var=LD_LIBRARY_PATH
9369   shlibpath_overrides_runpath=no
9370   # This implies no fast_install, which is unacceptable.
9371   # Some rework will be needed to allow for fast_install
9372   # before this can be enabled.
9373   hardcode_into_libs=yes
9374
9375   # Append ld.so.conf contents to the search path
9376   if test -f /etc/ld.so.conf; then
9377     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' ' '`
9378     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9379   fi
9380
9381   # We used to test for /lib/ld.so.1 and disable shared libraries on
9382   # powerpc, because MkLinux only supported shared libraries with the
9383   # GNU dynamic linker.  Since this was broken with cross compilers,
9384   # most powerpc-linux boxes support dynamic linking these days and
9385   # people can always --disable-shared, the test was removed, and we
9386   # assume the GNU/Linux dynamic linker is in use.
9387   dynamic_linker='GNU/Linux ld.so'
9388   ;;
9389
9390 netbsdelf*-gnu)
9391   version_type=linux
9392   need_lib_prefix=no
9393   need_version=no
9394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9395   soname_spec='${libname}${release}${shared_ext}$major'
9396   shlibpath_var=LD_LIBRARY_PATH
9397   shlibpath_overrides_runpath=no
9398   hardcode_into_libs=yes
9399   dynamic_linker='NetBSD ld.elf_so'
9400   ;;
9401
9402 netbsd*)
9403   version_type=sunos
9404   need_lib_prefix=no
9405   need_version=no
9406   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409     dynamic_linker='NetBSD (a.out) ld.so'
9410   else
9411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9412     soname_spec='${libname}${release}${shared_ext}$major'
9413     dynamic_linker='NetBSD ld.elf_so'
9414   fi
9415   shlibpath_var=LD_LIBRARY_PATH
9416   shlibpath_overrides_runpath=yes
9417   hardcode_into_libs=yes
9418   ;;
9419
9420 newsos6)
9421   version_type=linux
9422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423   shlibpath_var=LD_LIBRARY_PATH
9424   shlibpath_overrides_runpath=yes
9425   ;;
9426
9427 nto-qnx*)
9428   version_type=linux
9429   need_lib_prefix=no
9430   need_version=no
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432   soname_spec='${libname}${release}${shared_ext}$major'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   shlibpath_overrides_runpath=yes
9435   ;;
9436
9437 openbsd*)
9438   version_type=sunos
9439   sys_lib_dlsearch_path_spec="/usr/lib"
9440   need_lib_prefix=no
9441   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9442   case $host_os in
9443     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9444     *)                         need_version=no  ;;
9445   esac
9446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9447   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9448   shlibpath_var=LD_LIBRARY_PATH
9449   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9450     case $host_os in
9451       openbsd2.[89] | openbsd2.[89].*)
9452         shlibpath_overrides_runpath=no
9453         ;;
9454       *)
9455         shlibpath_overrides_runpath=yes
9456         ;;
9457       esac
9458   else
9459     shlibpath_overrides_runpath=yes
9460   fi
9461   ;;
9462
9463 os2*)
9464   libname_spec='$name'
9465   shrext_cmds=".dll"
9466   need_lib_prefix=no
9467   library_names_spec='$libname${shared_ext} $libname.a'
9468   dynamic_linker='OS/2 ld.exe'
9469   shlibpath_var=LIBPATH
9470   ;;
9471
9472 osf3* | osf4* | osf5*)
9473   version_type=osf
9474   need_lib_prefix=no
9475   need_version=no
9476   soname_spec='${libname}${release}${shared_ext}$major'
9477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478   shlibpath_var=LD_LIBRARY_PATH
9479   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9480   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9481   ;;
9482
9483 rdos*)
9484   dynamic_linker=no
9485   ;;
9486
9487 solaris*)
9488   version_type=linux
9489   need_lib_prefix=no
9490   need_version=no
9491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492   soname_spec='${libname}${release}${shared_ext}$major'
9493   shlibpath_var=LD_LIBRARY_PATH
9494   shlibpath_overrides_runpath=yes
9495   hardcode_into_libs=yes
9496   # ldd complains unless libraries are executable
9497   postinstall_cmds='chmod +x $lib'
9498   ;;
9499
9500 sunos4*)
9501   version_type=sunos
9502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9503   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9504   shlibpath_var=LD_LIBRARY_PATH
9505   shlibpath_overrides_runpath=yes
9506   if test "$with_gnu_ld" = yes; then
9507     need_lib_prefix=no
9508   fi
9509   need_version=yes
9510   ;;
9511
9512 sysv4 | sysv4.3*)
9513   version_type=linux
9514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515   soname_spec='${libname}${release}${shared_ext}$major'
9516   shlibpath_var=LD_LIBRARY_PATH
9517   case $host_vendor in
9518     sni)
9519       shlibpath_overrides_runpath=no
9520       need_lib_prefix=no
9521       export_dynamic_flag_spec='${wl}-Blargedynsym'
9522       runpath_var=LD_RUN_PATH
9523       ;;
9524     siemens)
9525       need_lib_prefix=no
9526       ;;
9527     motorola)
9528       need_lib_prefix=no
9529       need_version=no
9530       shlibpath_overrides_runpath=no
9531       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9532       ;;
9533   esac
9534   ;;
9535
9536 sysv4*MP*)
9537   if test -d /usr/nec ;then
9538     version_type=linux
9539     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9540     soname_spec='$libname${shared_ext}.$major'
9541     shlibpath_var=LD_LIBRARY_PATH
9542   fi
9543   ;;
9544
9545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9546   version_type=freebsd-elf
9547   need_lib_prefix=no
9548   need_version=no
9549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9550   soname_spec='${libname}${release}${shared_ext}$major'
9551   shlibpath_var=LD_LIBRARY_PATH
9552   hardcode_into_libs=yes
9553   if test "$with_gnu_ld" = yes; then
9554     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9555     shlibpath_overrides_runpath=no
9556   else
9557     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9558     shlibpath_overrides_runpath=yes
9559     case $host_os in
9560       sco3.2v5*)
9561         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9562         ;;
9563     esac
9564   fi
9565   sys_lib_dlsearch_path_spec='/usr/lib'
9566   ;;
9567
9568 uts4*)
9569   version_type=linux
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571   soname_spec='${libname}${release}${shared_ext}$major'
9572   shlibpath_var=LD_LIBRARY_PATH
9573   ;;
9574
9575 *)
9576   dynamic_linker=no
9577   ;;
9578 esac
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9580 $as_echo "$dynamic_linker" >&6; }
9581 test "$dynamic_linker" = no && can_build_shared=no
9582
9583 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9584   $as_echo_n "(cached) " >&6
9585 else
9586   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9587 fi
9588
9589 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9590 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9591   $as_echo_n "(cached) " >&6
9592 else
9593   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9594 fi
9595
9596 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9597
9598 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9599 if test "$GCC" = yes; then
9600   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9601 fi
9602
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9604 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9605 hardcode_action=
9606 if test -n "$hardcode_libdir_flag_spec" || \
9607    test -n "$runpath_var" || \
9608    test "X$hardcode_automatic" = "Xyes" ; then
9609
9610   # We can hardcode non-existant directories.
9611   if test "$hardcode_direct" != no &&
9612      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9613      # have to relink, otherwise we might link with an installed library
9614      # when we should be linking with a yet-to-be-installed one
9615      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9616      test "$hardcode_minus_L" != no; then
9617     # Linking always hardcodes the temporary library directory.
9618     hardcode_action=relink
9619   else
9620     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9621     hardcode_action=immediate
9622   fi
9623 else
9624   # We cannot hardcode anything, or else we can only hardcode existing
9625   # directories.
9626   hardcode_action=unsupported
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9629 $as_echo "$hardcode_action" >&6; }
9630
9631 if test "$hardcode_action" = relink; then
9632   # Fast installation is not supported
9633   enable_fast_install=no
9634 elif test "$shlibpath_overrides_runpath" = yes ||
9635      test "$enable_shared" = no; then
9636   # Fast installation is not necessary
9637   enable_fast_install=needless
9638 fi
9639
9640 striplib=
9641 old_striplib=
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9643 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9644 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9645   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9646   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9648 $as_echo "yes" >&6; }
9649 else
9650 # FIXME - insert some real tests, host_os isn't really good enough
9651   case $host_os in
9652    darwin*)
9653        if test -n "$STRIP" ; then
9654          striplib="$STRIP -x"
9655          old_striplib="$STRIP -S"
9656          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9657 $as_echo "yes" >&6; }
9658        else
9659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9661 fi
9662        ;;
9663    *)
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9666     ;;
9667   esac
9668 fi
9669
9670 if test "x$enable_dlopen" != xyes; then
9671   enable_dlopen=unknown
9672   enable_dlopen_self=unknown
9673   enable_dlopen_self_static=unknown
9674 else
9675   lt_cv_dlopen=no
9676   lt_cv_dlopen_libs=
9677
9678   case $host_os in
9679   beos*)
9680     lt_cv_dlopen="load_add_on"
9681     lt_cv_dlopen_libs=
9682     lt_cv_dlopen_self=yes
9683     ;;
9684
9685   mingw* | pw32*)
9686     lt_cv_dlopen="LoadLibrary"
9687     lt_cv_dlopen_libs=
9688    ;;
9689
9690   cygwin*)
9691     lt_cv_dlopen="dlopen"
9692     lt_cv_dlopen_libs=
9693    ;;
9694
9695   darwin*)
9696   # if libdl is installed we need to link against it
9697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9698 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9699 if ${ac_cv_lib_dl_dlopen+:} false; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   ac_check_lib_save_LIBS=$LIBS
9703 LIBS="-ldl  $LIBS"
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h.  */
9706
9707 /* Override any GCC internal prototype to avoid an error.
9708    Use char because int might match the return type of a GCC
9709    builtin and then its argument prototype would still apply.  */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char dlopen ();
9714 int
9715 main ()
9716 {
9717 return dlopen ();
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 if ac_fn_c_try_link "$LINENO"; then :
9723   ac_cv_lib_dl_dlopen=yes
9724 else
9725   ac_cv_lib_dl_dlopen=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext \
9728     conftest$ac_exeext conftest.$ac_ext
9729 LIBS=$ac_check_lib_save_LIBS
9730 fi
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9732 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9733 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9734   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9735 else
9736
9737     lt_cv_dlopen="dyld"
9738     lt_cv_dlopen_libs=
9739     lt_cv_dlopen_self=yes
9740
9741 fi
9742
9743    ;;
9744
9745   *)
9746     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9747 if test "x$ac_cv_func_shl_load" = xyes; then :
9748   lt_cv_dlopen="shl_load"
9749 else
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9751 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9752 if ${ac_cv_lib_dld_shl_load+:} false; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   ac_check_lib_save_LIBS=$LIBS
9756 LIBS="-ldld  $LIBS"
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h.  */
9759
9760 /* Override any GCC internal prototype to avoid an error.
9761    Use char because int might match the return type of a GCC
9762    builtin and then its argument prototype would still apply.  */
9763 #ifdef __cplusplus
9764 extern "C"
9765 #endif
9766 char shl_load ();
9767 int
9768 main ()
9769 {
9770 return shl_load ();
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 if ac_fn_c_try_link "$LINENO"; then :
9776   ac_cv_lib_dld_shl_load=yes
9777 else
9778   ac_cv_lib_dld_shl_load=no
9779 fi
9780 rm -f core conftest.err conftest.$ac_objext \
9781     conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_lib_save_LIBS
9783 fi
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9785 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9786 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9787   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9788 else
9789   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9790 if test "x$ac_cv_func_dlopen" = xyes; then :
9791   lt_cv_dlopen="dlopen"
9792 else
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9794 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9795 if ${ac_cv_lib_dl_dlopen+:} false; then :
9796   $as_echo_n "(cached) " >&6
9797 else
9798   ac_check_lib_save_LIBS=$LIBS
9799 LIBS="-ldl  $LIBS"
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h.  */
9802
9803 /* Override any GCC internal prototype to avoid an error.
9804    Use char because int might match the return type of a GCC
9805    builtin and then its argument prototype would still apply.  */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 char dlopen ();
9810 int
9811 main ()
9812 {
9813 return dlopen ();
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 if ac_fn_c_try_link "$LINENO"; then :
9819   ac_cv_lib_dl_dlopen=yes
9820 else
9821   ac_cv_lib_dl_dlopen=no
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext \
9824     conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9828 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9829 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9830   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9831 else
9832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9833 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9834 if ${ac_cv_lib_svld_dlopen+:} false; then :
9835   $as_echo_n "(cached) " >&6
9836 else
9837   ac_check_lib_save_LIBS=$LIBS
9838 LIBS="-lsvld  $LIBS"
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h.  */
9841
9842 /* Override any GCC internal prototype to avoid an error.
9843    Use char because int might match the return type of a GCC
9844    builtin and then its argument prototype would still apply.  */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 char dlopen ();
9849 int
9850 main ()
9851 {
9852 return dlopen ();
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_c_try_link "$LINENO"; then :
9858   ac_cv_lib_svld_dlopen=yes
9859 else
9860   ac_cv_lib_svld_dlopen=no
9861 fi
9862 rm -f core conftest.err conftest.$ac_objext \
9863     conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9867 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9868 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9869   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9870 else
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9872 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9873 if ${ac_cv_lib_dld_dld_link+:} false; then :
9874   $as_echo_n "(cached) " >&6
9875 else
9876   ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldld  $LIBS"
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h.  */
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882    Use char because int might match the return type of a GCC
9883    builtin and then its argument prototype would still apply.  */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char dld_link ();
9888 int
9889 main ()
9890 {
9891 return dld_link ();
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897   ac_cv_lib_dld_dld_link=yes
9898 else
9899   ac_cv_lib_dld_dld_link=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext \
9902     conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9904 fi
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9906 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9907 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9908   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9909 fi
9910
9911
9912 fi
9913
9914
9915 fi
9916
9917
9918 fi
9919
9920
9921 fi
9922
9923
9924 fi
9925
9926     ;;
9927   esac
9928
9929   if test "x$lt_cv_dlopen" != xno; then
9930     enable_dlopen=yes
9931   else
9932     enable_dlopen=no
9933   fi
9934
9935   case $lt_cv_dlopen in
9936   dlopen)
9937     save_CPPFLAGS="$CPPFLAGS"
9938     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9939
9940     save_LDFLAGS="$LDFLAGS"
9941     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9942
9943     save_LIBS="$LIBS"
9944     LIBS="$lt_cv_dlopen_libs $LIBS"
9945
9946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9947 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9948 if ${lt_cv_dlopen_self+:} false; then :
9949   $as_echo_n "(cached) " >&6
9950 else
9951           if test "$cross_compiling" = yes; then :
9952   lt_cv_dlopen_self=cross
9953 else
9954   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9955   lt_status=$lt_dlunknown
9956   cat > conftest.$ac_ext <<EOF
9957 #line 9953 "configure"
9958 #include "confdefs.h"
9959
9960 #if HAVE_DLFCN_H
9961 #include <dlfcn.h>
9962 #endif
9963
9964 #include <stdio.h>
9965
9966 #ifdef RTLD_GLOBAL
9967 #  define LT_DLGLOBAL           RTLD_GLOBAL
9968 #else
9969 #  ifdef DL_GLOBAL
9970 #    define LT_DLGLOBAL         DL_GLOBAL
9971 #  else
9972 #    define LT_DLGLOBAL         0
9973 #  endif
9974 #endif
9975
9976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9977    find out it does not work in some platform. */
9978 #ifndef LT_DLLAZY_OR_NOW
9979 #  ifdef RTLD_LAZY
9980 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9981 #  else
9982 #    ifdef DL_LAZY
9983 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9984 #    else
9985 #      ifdef RTLD_NOW
9986 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9987 #      else
9988 #        ifdef DL_NOW
9989 #          define LT_DLLAZY_OR_NOW      DL_NOW
9990 #        else
9991 #          define LT_DLLAZY_OR_NOW      0
9992 #        endif
9993 #      endif
9994 #    endif
9995 #  endif
9996 #endif
9997
9998 #ifdef __cplusplus
9999 extern "C" void exit (int);
10000 #endif
10001
10002 void fnord() { int i=42;}
10003 int main ()
10004 {
10005   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10006   int status = $lt_dlunknown;
10007
10008   if (self)
10009     {
10010       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10011       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10012       /* dlclose (self); */
10013     }
10014   else
10015     puts (dlerror ());
10016
10017     exit (status);
10018 }
10019 EOF
10020   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10021   (eval $ac_link) 2>&5
10022   ac_status=$?
10023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10024   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10025     (./conftest; exit; ) >&5 2>/dev/null
10026     lt_status=$?
10027     case x$lt_status in
10028       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10029       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10030       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10031     esac
10032   else :
10033     # compilation failed
10034     lt_cv_dlopen_self=no
10035   fi
10036 fi
10037 rm -fr conftest*
10038
10039
10040 fi
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10042 $as_echo "$lt_cv_dlopen_self" >&6; }
10043
10044     if test "x$lt_cv_dlopen_self" = xyes; then
10045       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10046       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10048 if ${lt_cv_dlopen_self_static+:} false; then :
10049   $as_echo_n "(cached) " >&6
10050 else
10051           if test "$cross_compiling" = yes; then :
10052   lt_cv_dlopen_self_static=cross
10053 else
10054   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10055   lt_status=$lt_dlunknown
10056   cat > conftest.$ac_ext <<EOF
10057 #line 10053 "configure"
10058 #include "confdefs.h"
10059
10060 #if HAVE_DLFCN_H
10061 #include <dlfcn.h>
10062 #endif
10063
10064 #include <stdio.h>
10065
10066 #ifdef RTLD_GLOBAL
10067 #  define LT_DLGLOBAL           RTLD_GLOBAL
10068 #else
10069 #  ifdef DL_GLOBAL
10070 #    define LT_DLGLOBAL         DL_GLOBAL
10071 #  else
10072 #    define LT_DLGLOBAL         0
10073 #  endif
10074 #endif
10075
10076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10077    find out it does not work in some platform. */
10078 #ifndef LT_DLLAZY_OR_NOW
10079 #  ifdef RTLD_LAZY
10080 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10081 #  else
10082 #    ifdef DL_LAZY
10083 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10084 #    else
10085 #      ifdef RTLD_NOW
10086 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10087 #      else
10088 #        ifdef DL_NOW
10089 #          define LT_DLLAZY_OR_NOW      DL_NOW
10090 #        else
10091 #          define LT_DLLAZY_OR_NOW      0
10092 #        endif
10093 #      endif
10094 #    endif
10095 #  endif
10096 #endif
10097
10098 #ifdef __cplusplus
10099 extern "C" void exit (int);
10100 #endif
10101
10102 void fnord() { int i=42;}
10103 int main ()
10104 {
10105   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10106   int status = $lt_dlunknown;
10107
10108   if (self)
10109     {
10110       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10111       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10112       /* dlclose (self); */
10113     }
10114   else
10115     puts (dlerror ());
10116
10117     exit (status);
10118 }
10119 EOF
10120   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10121   (eval $ac_link) 2>&5
10122   ac_status=$?
10123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10125     (./conftest; exit; ) >&5 2>/dev/null
10126     lt_status=$?
10127     case x$lt_status in
10128       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10129       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10130       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10131     esac
10132   else :
10133     # compilation failed
10134     lt_cv_dlopen_self_static=no
10135   fi
10136 fi
10137 rm -fr conftest*
10138
10139
10140 fi
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10142 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10143     fi
10144
10145     CPPFLAGS="$save_CPPFLAGS"
10146     LDFLAGS="$save_LDFLAGS"
10147     LIBS="$save_LIBS"
10148     ;;
10149   esac
10150
10151   case $lt_cv_dlopen_self in
10152   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10153   *) enable_dlopen_self=unknown ;;
10154   esac
10155
10156   case $lt_cv_dlopen_self_static in
10157   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10158   *) enable_dlopen_self_static=unknown ;;
10159   esac
10160 fi
10161
10162
10163 # Report which library types will actually be built
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10165 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10167 $as_echo "$can_build_shared" >&6; }
10168
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10170 $as_echo_n "checking whether to build shared libraries... " >&6; }
10171 test "$can_build_shared" = "no" && enable_shared=no
10172
10173 # On AIX, shared libraries and static libraries use the same namespace, and
10174 # are all built from PIC.
10175 case $host_os in
10176 aix3*)
10177   test "$enable_shared" = yes && enable_static=no
10178   if test -n "$RANLIB"; then
10179     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10180     postinstall_cmds='$RANLIB $lib'
10181   fi
10182   ;;
10183
10184 aix[4-9]*)
10185   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10186     test "$enable_shared" = yes && enable_static=no
10187   fi
10188     ;;
10189 esac
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10191 $as_echo "$enable_shared" >&6; }
10192
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10194 $as_echo_n "checking whether to build static libraries... " >&6; }
10195 # Make sure either enable_shared or enable_static is yes.
10196 test "$enable_shared" = yes || enable_static=yes
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10198 $as_echo "$enable_static" >&6; }
10199
10200 # The else clause should only fire when bootstrapping the
10201 # libtool distribution, otherwise you forgot to ship ltmain.sh
10202 # with your package, and you will get complaints that there are
10203 # no rules to generate ltmain.sh.
10204 if test -f "$ltmain"; then
10205   # See if we are running on zsh, and set the options which allow our commands through
10206   # without removal of \ escapes.
10207   if test -n "${ZSH_VERSION+set}" ; then
10208     setopt NO_GLOB_SUBST
10209   fi
10210   # Now quote all the things that may contain metacharacters while being
10211   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10212   # variables and quote the copies for generation of the libtool script.
10213   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10214     SED SHELL STRIP \
10215     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10216     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10217     deplibs_check_method reload_flag reload_cmds need_locks \
10218     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10219     lt_cv_sys_global_symbol_to_c_name_address \
10220     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10221     old_postinstall_cmds old_postuninstall_cmds \
10222     compiler \
10223     CC \
10224     LD \
10225     lt_prog_compiler_wl \
10226     lt_prog_compiler_pic \
10227     lt_prog_compiler_static \
10228     lt_prog_compiler_no_builtin_flag \
10229     export_dynamic_flag_spec \
10230     thread_safe_flag_spec \
10231     whole_archive_flag_spec \
10232     enable_shared_with_static_runtimes \
10233     old_archive_cmds \
10234     old_archive_from_new_cmds \
10235     predep_objects \
10236     postdep_objects \
10237     predeps \
10238     postdeps \
10239     compiler_lib_search_path \
10240     compiler_lib_search_dirs \
10241     archive_cmds \
10242     archive_expsym_cmds \
10243     postinstall_cmds \
10244     postuninstall_cmds \
10245     old_archive_from_expsyms_cmds \
10246     allow_undefined_flag \
10247     no_undefined_flag \
10248     export_symbols_cmds \
10249     hardcode_libdir_flag_spec \
10250     hardcode_libdir_flag_spec_ld \
10251     hardcode_libdir_separator \
10252     hardcode_automatic \
10253     module_cmds \
10254     module_expsym_cmds \
10255     lt_cv_prog_compiler_c_o \
10256     fix_srcfile_path \
10257     exclude_expsyms \
10258     include_expsyms; do
10259
10260     case $var in
10261     old_archive_cmds | \
10262     old_archive_from_new_cmds | \
10263     archive_cmds | \
10264     archive_expsym_cmds | \
10265     module_cmds | \
10266     module_expsym_cmds | \
10267     old_archive_from_expsyms_cmds | \
10268     export_symbols_cmds | \
10269     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10270     postinstall_cmds | postuninstall_cmds | \
10271     old_postinstall_cmds | old_postuninstall_cmds | \
10272     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10273       # Double-quote double-evaled strings.
10274       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10275       ;;
10276     *)
10277       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10278       ;;
10279     esac
10280   done
10281
10282   case $lt_echo in
10283   *'\$0 --fallback-echo"')
10284     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10285     ;;
10286   esac
10287
10288 cfgfile="${ofile}T"
10289   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10290   $rm -f "$cfgfile"
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10292 $as_echo "$as_me: creating $ofile" >&6;}
10293
10294   cat <<__EOF__ >> "$cfgfile"
10295 #! $SHELL
10296
10297 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10298 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10299 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10300 #
10301 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10302 # Free Software Foundation, Inc.
10303 #
10304 # This file is part of GNU Libtool:
10305 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10306 #
10307 # This program is free software; you can redistribute it and/or modify
10308 # it under the terms of the GNU General Public License as published by
10309 # the Free Software Foundation; either version 2 of the License, or
10310 # (at your option) any later version.
10311 #
10312 # This program is distributed in the hope that it will be useful, but
10313 # WITHOUT ANY WARRANTY; without even the implied warranty of
10314 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10315 # General Public License for more details.
10316 #
10317 # You should have received a copy of the GNU General Public License
10318 # along with this program; if not, write to the Free Software
10319 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10320 #
10321 # As a special exception to the GNU General Public License, if you
10322 # distribute this file as part of a program that contains a
10323 # configuration script generated by Autoconf, you may include it under
10324 # the same distribution terms that you use for the rest of that program.
10325
10326 # A sed program that does not truncate output.
10327 SED=$lt_SED
10328
10329 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10330 Xsed="$SED -e 1s/^X//"
10331
10332 # The HP-UX ksh and POSIX shell print the target directory to stdout
10333 # if CDPATH is set.
10334 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10335
10336 # The names of the tagged configurations supported by this script.
10337 available_tags=
10338
10339 # ### BEGIN LIBTOOL CONFIG
10340
10341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10342
10343 # Shell to use when invoking shell scripts.
10344 SHELL=$lt_SHELL
10345
10346 # Whether or not to build shared libraries.
10347 build_libtool_libs=$enable_shared
10348
10349 # Whether or not to build static libraries.
10350 build_old_libs=$enable_static
10351
10352 # Whether or not to add -lc for building shared libraries.
10353 build_libtool_need_lc=$archive_cmds_need_lc
10354
10355 # Whether or not to disallow shared libs when runtime libs are static
10356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10357
10358 # Whether or not to optimize for fast installation.
10359 fast_install=$enable_fast_install
10360
10361 # The host system.
10362 host_alias=$host_alias
10363 host=$host
10364 host_os=$host_os
10365
10366 # The build system.
10367 build_alias=$build_alias
10368 build=$build
10369 build_os=$build_os
10370
10371 # An echo program that does not interpret backslashes.
10372 echo=$lt_echo
10373
10374 # The archiver.
10375 AR=$lt_AR
10376 AR_FLAGS=$lt_AR_FLAGS
10377
10378 # A C compiler.
10379 LTCC=$lt_LTCC
10380
10381 # LTCC compiler flags.
10382 LTCFLAGS=$lt_LTCFLAGS
10383
10384 # A language-specific compiler.
10385 CC=$lt_compiler
10386
10387 # Is the compiler the GNU C compiler?
10388 with_gcc=$GCC
10389
10390 # An ERE matcher.
10391 EGREP=$lt_EGREP
10392
10393 # The linker used to build libraries.
10394 LD=$lt_LD
10395
10396 # Whether we need hard or soft links.
10397 LN_S=$lt_LN_S
10398
10399 # A BSD-compatible nm program.
10400 NM=$lt_NM
10401
10402 # A symbol stripping program
10403 STRIP=$lt_STRIP
10404
10405 # Used to examine libraries when file_magic_cmd begins "file"
10406 MAGIC_CMD=$MAGIC_CMD
10407
10408 # Used on cygwin: DLL creation program.
10409 DLLTOOL="$DLLTOOL"
10410
10411 # Used on cygwin: object dumper.
10412 OBJDUMP="$OBJDUMP"
10413
10414 # Used on cygwin: assembler.
10415 AS="$AS"
10416
10417 # The name of the directory that contains temporary libtool files.
10418 objdir=$objdir
10419
10420 # How to create reloadable object files.
10421 reload_flag=$lt_reload_flag
10422 reload_cmds=$lt_reload_cmds
10423
10424 # How to pass a linker flag through the compiler.
10425 wl=$lt_lt_prog_compiler_wl
10426
10427 # Object file suffix (normally "o").
10428 objext="$ac_objext"
10429
10430 # Old archive suffix (normally "a").
10431 libext="$libext"
10432
10433 # Shared library suffix (normally ".so").
10434 shrext_cmds='$shrext_cmds'
10435
10436 # Executable file suffix (normally "").
10437 exeext="$exeext"
10438
10439 # Additional compiler flags for building library objects.
10440 pic_flag=$lt_lt_prog_compiler_pic
10441 pic_mode=$pic_mode
10442
10443 # What is the maximum length of a command?
10444 max_cmd_len=$lt_cv_sys_max_cmd_len
10445
10446 # Does compiler simultaneously support -c and -o options?
10447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10448
10449 # Must we lock files when doing compilation?
10450 need_locks=$lt_need_locks
10451
10452 # Do we need the lib prefix for modules?
10453 need_lib_prefix=$need_lib_prefix
10454
10455 # Do we need a version for libraries?
10456 need_version=$need_version
10457
10458 # Whether dlopen is supported.
10459 dlopen_support=$enable_dlopen
10460
10461 # Whether dlopen of programs is supported.
10462 dlopen_self=$enable_dlopen_self
10463
10464 # Whether dlopen of statically linked programs is supported.
10465 dlopen_self_static=$enable_dlopen_self_static
10466
10467 # Compiler flag to prevent dynamic linking.
10468 link_static_flag=$lt_lt_prog_compiler_static
10469
10470 # Compiler flag to turn off builtin functions.
10471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10472
10473 # Compiler flag to allow reflexive dlopens.
10474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10475
10476 # Compiler flag to generate shared objects directly from archives.
10477 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10478
10479 # Compiler flag to generate thread-safe objects.
10480 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10481
10482 # Library versioning type.
10483 version_type=$version_type
10484
10485 # Format of library name prefix.
10486 libname_spec=$lt_libname_spec
10487
10488 # List of archive names.  First name is the real one, the rest are links.
10489 # The last name is the one that the linker finds with -lNAME.
10490 library_names_spec=$lt_library_names_spec
10491
10492 # The coded name of the library, if different from the real name.
10493 soname_spec=$lt_soname_spec
10494
10495 # Commands used to build and install an old-style archive.
10496 RANLIB=$lt_RANLIB
10497 old_archive_cmds=$lt_old_archive_cmds
10498 old_postinstall_cmds=$lt_old_postinstall_cmds
10499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10500
10501 # Create an old-style archive from a shared archive.
10502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10503
10504 # Create a temporary old-style archive to link instead of a shared archive.
10505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10506
10507 # Commands used to build and install a shared archive.
10508 archive_cmds=$lt_archive_cmds
10509 archive_expsym_cmds=$lt_archive_expsym_cmds
10510 postinstall_cmds=$lt_postinstall_cmds
10511 postuninstall_cmds=$lt_postuninstall_cmds
10512
10513 # Commands used to build a loadable module (assumed same as above if empty)
10514 module_cmds=$lt_module_cmds
10515 module_expsym_cmds=$lt_module_expsym_cmds
10516
10517 # Commands to strip libraries.
10518 old_striplib=$lt_old_striplib
10519 striplib=$lt_striplib
10520
10521 # Dependencies to place before the objects being linked to create a
10522 # shared library.
10523 predep_objects=$lt_predep_objects
10524
10525 # Dependencies to place after the objects being linked to create a
10526 # shared library.
10527 postdep_objects=$lt_postdep_objects
10528
10529 # Dependencies to place before the objects being linked to create a
10530 # shared library.
10531 predeps=$lt_predeps
10532
10533 # Dependencies to place after the objects being linked to create a
10534 # shared library.
10535 postdeps=$lt_postdeps
10536
10537 # The directories searched by this compiler when creating a shared
10538 # library
10539 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10540
10541 # The library search path used internally by the compiler when linking
10542 # a shared library.
10543 compiler_lib_search_path=$lt_compiler_lib_search_path
10544
10545 # Method to check whether dependent libraries are shared objects.
10546 deplibs_check_method=$lt_deplibs_check_method
10547
10548 # Command to use when deplibs_check_method == file_magic.
10549 file_magic_cmd=$lt_file_magic_cmd
10550
10551 # Flag that allows shared libraries with undefined symbols to be built.
10552 allow_undefined_flag=$lt_allow_undefined_flag
10553
10554 # Flag that forces no undefined symbols.
10555 no_undefined_flag=$lt_no_undefined_flag
10556
10557 # Commands used to finish a libtool library installation in a directory.
10558 finish_cmds=$lt_finish_cmds
10559
10560 # Same as above, but a single script fragment to be evaled but not shown.
10561 finish_eval=$lt_finish_eval
10562
10563 # Take the output of nm and produce a listing of raw symbols and C names.
10564 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10565
10566 # Transform the output of nm in a proper C declaration
10567 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10568
10569 # Transform the output of nm in a C name address pair
10570 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10571
10572 # This is the shared library runtime path variable.
10573 runpath_var=$runpath_var
10574
10575 # This is the shared library path variable.
10576 shlibpath_var=$shlibpath_var
10577
10578 # Is shlibpath searched before the hard-coded library search path?
10579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10580
10581 # How to hardcode a shared library path into an executable.
10582 hardcode_action=$hardcode_action
10583
10584 # Whether we should hardcode library paths into libraries.
10585 hardcode_into_libs=$hardcode_into_libs
10586
10587 # Flag to hardcode \$libdir into a binary during linking.
10588 # This must work even if \$libdir does not exist.
10589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10590
10591 # If ld is used when linking, flag to hardcode \$libdir into
10592 # a binary during linking. This must work even if \$libdir does
10593 # not exist.
10594 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10595
10596 # Whether we need a single -rpath flag with a separated argument.
10597 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10598
10599 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10600 # resulting binary.
10601 hardcode_direct=$hardcode_direct
10602
10603 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10604 # resulting binary.
10605 hardcode_minus_L=$hardcode_minus_L
10606
10607 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10608 # the resulting binary.
10609 hardcode_shlibpath_var=$hardcode_shlibpath_var
10610
10611 # Set to yes if building a shared library automatically hardcodes DIR into the library
10612 # and all subsequent libraries and executables linked against it.
10613 hardcode_automatic=$hardcode_automatic
10614
10615 # Variables whose values should be saved in libtool wrapper scripts and
10616 # restored at relink time.
10617 variables_saved_for_relink="$variables_saved_for_relink"
10618
10619 # Whether libtool must link a program against all its dependency libraries.
10620 link_all_deplibs=$link_all_deplibs
10621
10622 # Compile-time system search path for libraries
10623 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10624
10625 # Run-time system search path for libraries
10626 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10627
10628 # Fix the shell variable \$srcfile for the compiler.
10629 fix_srcfile_path=$lt_fix_srcfile_path
10630
10631 # Set to yes if exported symbols are required.
10632 always_export_symbols=$always_export_symbols
10633
10634 # The commands to list exported symbols.
10635 export_symbols_cmds=$lt_export_symbols_cmds
10636
10637 # The commands to extract the exported symbol list from a shared archive.
10638 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10639
10640 # Symbols that should not be listed in the preloaded symbols.
10641 exclude_expsyms=$lt_exclude_expsyms
10642
10643 # Symbols that must always be exported.
10644 include_expsyms=$lt_include_expsyms
10645
10646 # ### END LIBTOOL CONFIG
10647
10648 __EOF__
10649
10650
10651   case $host_os in
10652   aix3*)
10653     cat <<\EOF >> "$cfgfile"
10654
10655 # AIX sometimes has problems with the GCC collect2 program.  For some
10656 # reason, if we set the COLLECT_NAMES environment variable, the problems
10657 # vanish in a puff of smoke.
10658 if test "X${COLLECT_NAMES+set}" != Xset; then
10659   COLLECT_NAMES=
10660   export COLLECT_NAMES
10661 fi
10662 EOF
10663     ;;
10664   esac
10665
10666   # We use sed instead of cat because bash on DJGPP gets confused if
10667   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10668   # text mode, it properly converts lines to CR/LF.  This bash problem
10669   # is reportedly fixed, but why not run on old versions too?
10670   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10671
10672   mv -f "$cfgfile" "$ofile" || \
10673     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10674   chmod +x "$ofile"
10675
10676 else
10677   # If there is no Makefile yet, we rely on a make rule to execute
10678   # `config.status --recheck' to rerun these tests and create the
10679   # libtool script then.
10680   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10681   if test -f "$ltmain_in"; then
10682     test -f Makefile && make "$ltmain"
10683   fi
10684 fi
10685
10686
10687 ac_ext=c
10688 ac_cpp='$CPP $CPPFLAGS'
10689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10692
10693 CC="$lt_save_CC"
10694
10695
10696 # Check whether --with-tags was given.
10697 if test "${with_tags+set}" = set; then :
10698   withval=$with_tags; tagnames="$withval"
10699 fi
10700
10701
10702 if test -f "$ltmain" && test -n "$tagnames"; then
10703   if test ! -f "${ofile}"; then
10704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10705 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10706   fi
10707
10708   if test -z "$LTCC"; then
10709     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10710     if test -z "$LTCC"; then
10711       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10712 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10713     else
10714       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10715 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10716     fi
10717   fi
10718   if test -z "$LTCFLAGS"; then
10719     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10720   fi
10721
10722   # Extract list of available tagged configurations in $ofile.
10723   # Note that this assumes the entire list is on one line.
10724   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10725
10726   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10727   for tagname in $tagnames; do
10728     IFS="$lt_save_ifs"
10729     # Check whether tagname contains only valid characters
10730     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10731     "") ;;
10732     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10733         ;;
10734     esac
10735
10736     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10737     then
10738       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10739     fi
10740
10741     # Update the list of available tags.
10742     if test -n "$tagname"; then
10743       echo appending configuration tag \"$tagname\" to $ofile
10744
10745       case $tagname in
10746       CXX)
10747         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10748             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10749             (test "X$CXX" != "Xg++"))) ; then
10750           ac_ext=cpp
10751 ac_cpp='$CXXCPP $CPPFLAGS'
10752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10755
10756
10757
10758
10759 archive_cmds_need_lc_CXX=no
10760 allow_undefined_flag_CXX=
10761 always_export_symbols_CXX=no
10762 archive_expsym_cmds_CXX=
10763 export_dynamic_flag_spec_CXX=
10764 hardcode_direct_CXX=no
10765 hardcode_libdir_flag_spec_CXX=
10766 hardcode_libdir_flag_spec_ld_CXX=
10767 hardcode_libdir_separator_CXX=
10768 hardcode_minus_L_CXX=no
10769 hardcode_shlibpath_var_CXX=unsupported
10770 hardcode_automatic_CXX=no
10771 module_cmds_CXX=
10772 module_expsym_cmds_CXX=
10773 link_all_deplibs_CXX=unknown
10774 old_archive_cmds_CXX=$old_archive_cmds
10775 no_undefined_flag_CXX=
10776 whole_archive_flag_spec_CXX=
10777 enable_shared_with_static_runtimes_CXX=no
10778
10779 # Dependencies to place before and after the object being linked:
10780 predep_objects_CXX=
10781 postdep_objects_CXX=
10782 predeps_CXX=
10783 postdeps_CXX=
10784 compiler_lib_search_path_CXX=
10785 compiler_lib_search_dirs_CXX=
10786
10787 # Source file extension for C++ test sources.
10788 ac_ext=cpp
10789
10790 # Object file extension for compiled C++ test sources.
10791 objext=o
10792 objext_CXX=$objext
10793
10794 # Code to be used in simple compile tests
10795 lt_simple_compile_test_code="int some_variable = 0;"
10796
10797 # Code to be used in simple link tests
10798 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10799
10800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10801
10802 # If no C compiler was specified, use CC.
10803 LTCC=${LTCC-"$CC"}
10804
10805 # If no C compiler flags were specified, use CFLAGS.
10806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10807
10808 # Allow CC to be a program name with arguments.
10809 compiler=$CC
10810
10811
10812 # save warnings/boilerplate of simple test code
10813 ac_outfile=conftest.$ac_objext
10814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10816 _lt_compiler_boilerplate=`cat conftest.err`
10817 $rm conftest*
10818
10819 ac_outfile=conftest.$ac_objext
10820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10822 _lt_linker_boilerplate=`cat conftest.err`
10823 $rm -r conftest*
10824
10825
10826 # Allow CC to be a program name with arguments.
10827 lt_save_CC=$CC
10828 lt_save_LD=$LD
10829 lt_save_GCC=$GCC
10830 GCC=$GXX
10831 lt_save_with_gnu_ld=$with_gnu_ld
10832 lt_save_path_LD=$lt_cv_path_LD
10833 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10834   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10835 else
10836   $as_unset lt_cv_prog_gnu_ld
10837 fi
10838 if test -n "${lt_cv_path_LDCXX+set}"; then
10839   lt_cv_path_LD=$lt_cv_path_LDCXX
10840 else
10841   $as_unset lt_cv_path_LD
10842 fi
10843 test -z "${LDCXX+set}" || LD=$LDCXX
10844 CC=${CXX-"c++"}
10845 compiler=$CC
10846 compiler_CXX=$CC
10847 for cc_temp in $compiler""; do
10848   case $cc_temp in
10849     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10850     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10851     \-*) ;;
10852     *) break;;
10853   esac
10854 done
10855 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10856
10857
10858 # We don't want -fno-exception wen compiling C++ code, so set the
10859 # no_builtin_flag separately
10860 if test "$GXX" = yes; then
10861   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10862 else
10863   lt_prog_compiler_no_builtin_flag_CXX=
10864 fi
10865
10866 if test "$GXX" = yes; then
10867   # Set up default GNU C++ configuration
10868
10869
10870 # Check whether --with-gnu-ld was given.
10871 if test "${with_gnu_ld+set}" = set; then :
10872   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10873 else
10874   with_gnu_ld=no
10875 fi
10876
10877 ac_prog=ld
10878 if test "$GCC" = yes; then
10879   # Check if gcc -print-prog-name=ld gives a path.
10880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10881 $as_echo_n "checking for ld used by $CC... " >&6; }
10882   case $host in
10883   *-*-mingw*)
10884     # gcc leaves a trailing carriage return which upsets mingw
10885     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10886   *)
10887     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10888   esac
10889   case $ac_prog in
10890     # Accept absolute paths.
10891     [\\/]* | ?:[\\/]*)
10892       re_direlt='/[^/][^/]*/\.\./'
10893       # Canonicalize the pathname of ld
10894       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10895       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10896         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10897       done
10898       test -z "$LD" && LD="$ac_prog"
10899       ;;
10900   "")
10901     # If it fails, then pretend we aren't using GCC.
10902     ac_prog=ld
10903     ;;
10904   *)
10905     # If it is relative, then search for the first ld in PATH.
10906     with_gnu_ld=unknown
10907     ;;
10908   esac
10909 elif test "$with_gnu_ld" = yes; then
10910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10911 $as_echo_n "checking for GNU ld... " >&6; }
10912 else
10913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10914 $as_echo_n "checking for non-GNU ld... " >&6; }
10915 fi
10916 if ${lt_cv_path_LD+:} false; then :
10917   $as_echo_n "(cached) " >&6
10918 else
10919   if test -z "$LD"; then
10920   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10921   for ac_dir in $PATH; do
10922     IFS="$lt_save_ifs"
10923     test -z "$ac_dir" && ac_dir=.
10924     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10925       lt_cv_path_LD="$ac_dir/$ac_prog"
10926       # Check to see if the program is GNU ld.  I'd rather use --version,
10927       # but apparently some variants of GNU ld only accept -v.
10928       # Break only if it was the GNU/non-GNU ld that we prefer.
10929       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10930       *GNU* | *'with BFD'*)
10931         test "$with_gnu_ld" != no && break
10932         ;;
10933       *)
10934         test "$with_gnu_ld" != yes && break
10935         ;;
10936       esac
10937     fi
10938   done
10939   IFS="$lt_save_ifs"
10940 else
10941   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10942 fi
10943 fi
10944
10945 LD="$lt_cv_path_LD"
10946 if test -n "$LD"; then
10947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10948 $as_echo "$LD" >&6; }
10949 else
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10952 fi
10953 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10956 if ${lt_cv_prog_gnu_ld+:} false; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10960 case `$LD -v 2>&1 </dev/null` in
10961 *GNU* | *'with BFD'*)
10962   lt_cv_prog_gnu_ld=yes
10963   ;;
10964 *)
10965   lt_cv_prog_gnu_ld=no
10966   ;;
10967 esac
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10970 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10971 with_gnu_ld=$lt_cv_prog_gnu_ld
10972
10973
10974
10975   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10976   # archiving commands below assume that GNU ld is being used.
10977   if test "$with_gnu_ld" = yes; then
10978     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10979     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'
10980
10981     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10982     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10983
10984     # If archive_cmds runs LD, not CC, wlarc should be empty
10985     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10986     #     investigate it a little bit more. (MM)
10987     wlarc='${wl}'
10988
10989     # ancient GNU ld didn't support --whole-archive et. al.
10990     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10991         grep 'no-whole-archive' > /dev/null; then
10992       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10993     else
10994       whole_archive_flag_spec_CXX=
10995     fi
10996   else
10997     with_gnu_ld=no
10998     wlarc=
10999
11000     # A generic and very simple default shared library creation
11001     # command for GNU C++ for the case where it uses the native
11002     # linker, instead of GNU ld.  If possible, this setting should
11003     # overridden to take advantage of the native linker features on
11004     # the platform it is being used on.
11005     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11006   fi
11007
11008   # Commands to make compiler produce verbose output that lists
11009   # what "hidden" libraries, object files and flags are used when
11010   # linking a shared library.
11011   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11012
11013 else
11014   GXX=no
11015   with_gnu_ld=no
11016   wlarc=
11017 fi
11018
11019 # PORTME: fill in a description of your system's C++ link characteristics
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11022 ld_shlibs_CXX=yes
11023 case $host_os in
11024   aix3*)
11025     # FIXME: insert proper C++ library support
11026     ld_shlibs_CXX=no
11027     ;;
11028   aix[4-9]*)
11029     if test "$host_cpu" = ia64; then
11030       # On IA64, the linker does run time linking by default, so we don't
11031       # have to do anything special.
11032       aix_use_runtimelinking=no
11033       exp_sym_flag='-Bexport'
11034       no_entry_flag=""
11035     else
11036       aix_use_runtimelinking=no
11037
11038       # Test if we are trying to use run time linking or normal
11039       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11040       # need to do runtime linking.
11041       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11042         for ld_flag in $LDFLAGS; do
11043           case $ld_flag in
11044           *-brtl*)
11045             aix_use_runtimelinking=yes
11046             break
11047             ;;
11048           esac
11049         done
11050         ;;
11051       esac
11052
11053       exp_sym_flag='-bexport'
11054       no_entry_flag='-bnoentry'
11055     fi
11056
11057     # When large executables or shared objects are built, AIX ld can
11058     # have problems creating the table of contents.  If linking a library
11059     # or program results in "error TOC overflow" add -mminimal-toc to
11060     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11061     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11062
11063     archive_cmds_CXX=''
11064     hardcode_direct_CXX=yes
11065     hardcode_libdir_separator_CXX=':'
11066     link_all_deplibs_CXX=yes
11067
11068     if test "$GXX" = yes; then
11069       case $host_os in aix4.[012]|aix4.[012].*)
11070       # We only want to do this on AIX 4.2 and lower, the check
11071       # below for broken collect2 doesn't work under 4.3+
11072         collect2name=`${CC} -print-prog-name=collect2`
11073         if test -f "$collect2name" && \
11074            strings "$collect2name" | grep resolve_lib_name >/dev/null
11075         then
11076           # We have reworked collect2
11077           :
11078         else
11079           # We have old collect2
11080           hardcode_direct_CXX=unsupported
11081           # It fails to find uninstalled libraries when the uninstalled
11082           # path is not listed in the libpath.  Setting hardcode_minus_L
11083           # to unsupported forces relinking
11084           hardcode_minus_L_CXX=yes
11085           hardcode_libdir_flag_spec_CXX='-L$libdir'
11086           hardcode_libdir_separator_CXX=
11087         fi
11088         ;;
11089       esac
11090       shared_flag='-shared'
11091       if test "$aix_use_runtimelinking" = yes; then
11092         shared_flag="$shared_flag "'${wl}-G'
11093       fi
11094     else
11095       # not using gcc
11096       if test "$host_cpu" = ia64; then
11097         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11098         # chokes on -Wl,-G. The following line is correct:
11099         shared_flag='-G'
11100       else
11101         if test "$aix_use_runtimelinking" = yes; then
11102           shared_flag='${wl}-G'
11103         else
11104           shared_flag='${wl}-bM:SRE'
11105         fi
11106       fi
11107     fi
11108
11109     # It seems that -bexpall does not export symbols beginning with
11110     # underscore (_), so it is better to generate a list of symbols to export.
11111     always_export_symbols_CXX=yes
11112     if test "$aix_use_runtimelinking" = yes; then
11113       # Warning - without using the other runtime loading flags (-brtl),
11114       # -berok will link without error, but may produce a broken library.
11115       allow_undefined_flag_CXX='-berok'
11116       # Determine the default libpath from the value encoded in an empty executable.
11117       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h.  */
11119
11120 int
11121 main ()
11122 {
11123
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 if ac_fn_cxx_try_link "$LINENO"; then :
11129
11130 lt_aix_libpath_sed='
11131     /Import File Strings/,/^$/ {
11132         /^0/ {
11133             s/^0  *\(.*\)$/\1/
11134             p
11135         }
11136     }'
11137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11138 # Check for a 64-bit object if we didn't find anything.
11139 if test -z "$aix_libpath"; then
11140   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141 fi
11142 fi
11143 rm -f core conftest.err conftest.$ac_objext \
11144     conftest$ac_exeext conftest.$ac_ext
11145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11146
11147       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11148
11149       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"
11150      else
11151       if test "$host_cpu" = ia64; then
11152         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11153         allow_undefined_flag_CXX="-z nodefs"
11154         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"
11155       else
11156         # Determine the default libpath from the value encoded in an empty executable.
11157         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h.  */
11159
11160 int
11161 main ()
11162 {
11163
11164   ;
11165   return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_cxx_try_link "$LINENO"; then :
11169
11170 lt_aix_libpath_sed='
11171     /Import File Strings/,/^$/ {
11172         /^0/ {
11173             s/^0  *\(.*\)$/\1/
11174             p
11175         }
11176     }'
11177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11178 # Check for a 64-bit object if we didn't find anything.
11179 if test -z "$aix_libpath"; then
11180   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11181 fi
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext \
11184     conftest$ac_exeext conftest.$ac_ext
11185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11186
11187         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11188         # Warning - without using the other run time loading flags,
11189         # -berok will link without error, but may produce a broken library.
11190         no_undefined_flag_CXX=' ${wl}-bernotok'
11191         allow_undefined_flag_CXX=' ${wl}-berok'
11192         # Exported symbols can be pulled into shared objects from archives
11193         whole_archive_flag_spec_CXX='$convenience'
11194         archive_cmds_need_lc_CXX=yes
11195         # This is similar to how AIX traditionally builds its shared libraries.
11196         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'
11197       fi
11198     fi
11199     ;;
11200
11201   beos*)
11202     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11203       allow_undefined_flag_CXX=unsupported
11204       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11205       # support --undefined.  This deserves some investigation.  FIXME
11206       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11207     else
11208       ld_shlibs_CXX=no
11209     fi
11210     ;;
11211
11212   chorus*)
11213     case $cc_basename in
11214       *)
11215         # FIXME: insert proper C++ library support
11216         ld_shlibs_CXX=no
11217         ;;
11218     esac
11219     ;;
11220
11221   cygwin* | mingw* | pw32*)
11222     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11223     # as there is no search path for DLLs.
11224     hardcode_libdir_flag_spec_CXX='-L$libdir'
11225     allow_undefined_flag_CXX=unsupported
11226     always_export_symbols_CXX=no
11227     enable_shared_with_static_runtimes_CXX=yes
11228
11229     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11230       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'
11231       # If the export-symbols file already is a .def file (1st line
11232       # is EXPORTS), use it as is; otherwise, prepend...
11233       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11234         cp $export_symbols $output_objdir/$soname.def;
11235       else
11236         echo EXPORTS > $output_objdir/$soname.def;
11237         cat $export_symbols >> $output_objdir/$soname.def;
11238       fi~
11239       $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'
11240     else
11241       ld_shlibs_CXX=no
11242     fi
11243   ;;
11244       darwin* | rhapsody*)
11245       archive_cmds_need_lc_CXX=no
11246       hardcode_direct_CXX=no
11247       hardcode_automatic_CXX=yes
11248       hardcode_shlibpath_var_CXX=unsupported
11249       whole_archive_flag_spec_CXX=''
11250       link_all_deplibs_CXX=yes
11251       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11252       if test "$GXX" = yes ; then
11253       output_verbose_link_cmd='echo'
11254       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}"
11255       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11256       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}"
11257       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}"
11258       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11259         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}"
11260         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}"
11261       fi
11262       else
11263       case $cc_basename in
11264         xlc*)
11265          output_verbose_link_cmd='echo'
11266           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'
11267           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11268           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11269           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}'
11270           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}'
11271           ;;
11272        *)
11273          ld_shlibs_CXX=no
11274           ;;
11275       esac
11276       fi
11277         ;;
11278
11279   dgux*)
11280     case $cc_basename in
11281       ec++*)
11282         # FIXME: insert proper C++ library support
11283         ld_shlibs_CXX=no
11284         ;;
11285       ghcx*)
11286         # Green Hills C++ Compiler
11287         # FIXME: insert proper C++ library support
11288         ld_shlibs_CXX=no
11289         ;;
11290       *)
11291         # FIXME: insert proper C++ library support
11292         ld_shlibs_CXX=no
11293         ;;
11294     esac
11295     ;;
11296   freebsd[12]*)
11297     # C++ shared libraries reported to be fairly broken before switch to ELF
11298     ld_shlibs_CXX=no
11299     ;;
11300   freebsd-elf*)
11301     archive_cmds_need_lc_CXX=no
11302     ;;
11303   freebsd* | dragonfly*)
11304     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11305     # conventions
11306     ld_shlibs_CXX=yes
11307     ;;
11308   gnu*)
11309     ;;
11310   hpux9*)
11311     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11312     hardcode_libdir_separator_CXX=:
11313     export_dynamic_flag_spec_CXX='${wl}-E'
11314     hardcode_direct_CXX=yes
11315     hardcode_minus_L_CXX=yes # Not in the search PATH,
11316                                 # but as the default
11317                                 # location of the library.
11318
11319     case $cc_basename in
11320     CC*)
11321       # FIXME: insert proper C++ library support
11322       ld_shlibs_CXX=no
11323       ;;
11324     aCC*)
11325       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'
11326       # Commands to make compiler produce verbose output that lists
11327       # what "hidden" libraries, object files and flags are used when
11328       # linking a shared library.
11329       #
11330       # There doesn't appear to be a way to prevent this compiler from
11331       # explicitly linking system object files so we need to strip them
11332       # from the output so that they don't get included in the library
11333       # dependencies.
11334       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'
11335       ;;
11336     *)
11337       if test "$GXX" = yes; then
11338         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'
11339       else
11340         # FIXME: insert proper C++ library support
11341         ld_shlibs_CXX=no
11342       fi
11343       ;;
11344     esac
11345     ;;
11346   hpux10*|hpux11*)
11347     if test $with_gnu_ld = no; then
11348       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11349       hardcode_libdir_separator_CXX=:
11350
11351       case $host_cpu in
11352       hppa*64*|ia64*) ;;
11353       *)
11354         export_dynamic_flag_spec_CXX='${wl}-E'
11355         ;;
11356       esac
11357     fi
11358     case $host_cpu in
11359     hppa*64*|ia64*)
11360       hardcode_direct_CXX=no
11361       hardcode_shlibpath_var_CXX=no
11362       ;;
11363     *)
11364       hardcode_direct_CXX=yes
11365       hardcode_minus_L_CXX=yes # Not in the search PATH,
11366                                               # but as the default
11367                                               # location of the library.
11368       ;;
11369     esac
11370
11371     case $cc_basename in
11372       CC*)
11373         # FIXME: insert proper C++ library support
11374         ld_shlibs_CXX=no
11375         ;;
11376       aCC*)
11377         case $host_cpu in
11378         hppa*64*)
11379           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11380           ;;
11381         ia64*)
11382           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11383           ;;
11384         *)
11385           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11386           ;;
11387         esac
11388         # Commands to make compiler produce verbose output that lists
11389         # what "hidden" libraries, object files and flags are used when
11390         # linking a shared library.
11391         #
11392         # There doesn't appear to be a way to prevent this compiler from
11393         # explicitly linking system object files so we need to strip them
11394         # from the output so that they don't get included in the library
11395         # dependencies.
11396         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'
11397         ;;
11398       *)
11399         if test "$GXX" = yes; then
11400           if test $with_gnu_ld = no; then
11401             case $host_cpu in
11402             hppa*64*)
11403               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11404               ;;
11405             ia64*)
11406               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11407               ;;
11408             *)
11409               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'
11410               ;;
11411             esac
11412           fi
11413         else
11414           # FIXME: insert proper C++ library support
11415           ld_shlibs_CXX=no
11416         fi
11417         ;;
11418     esac
11419     ;;
11420   interix[3-9]*)
11421     hardcode_direct_CXX=no
11422     hardcode_shlibpath_var_CXX=no
11423     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11424     export_dynamic_flag_spec_CXX='${wl}-E'
11425     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11426     # Instead, shared libraries are loaded at an image base (0x10000000 by
11427     # default) and relocated if they conflict, which is a slow very memory
11428     # consuming and fragmenting process.  To avoid this, we pick a random,
11429     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11430     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11431     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'
11432     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'
11433     ;;
11434   irix5* | irix6*)
11435     case $cc_basename in
11436       CC*)
11437         # SGI C++
11438         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'
11439
11440         # Archives containing C++ object files must be created using
11441         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11442         # necessary to make sure instantiated templates are included
11443         # in the archive.
11444         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11445         ;;
11446       *)
11447         if test "$GXX" = yes; then
11448           if test "$with_gnu_ld" = no; then
11449             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'
11450           else
11451             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'
11452           fi
11453         fi
11454         link_all_deplibs_CXX=yes
11455         ;;
11456     esac
11457     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11458     hardcode_libdir_separator_CXX=:
11459     ;;
11460   linux* | k*bsd*-gnu)
11461     case $cc_basename in
11462       KCC*)
11463         # Kuck and Associates, Inc. (KAI) C++ Compiler
11464
11465         # KCC will only create a shared library if the output file
11466         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11467         # to its proper name (with version) after linking.
11468         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'
11469         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'
11470         # Commands to make compiler produce verbose output that lists
11471         # what "hidden" libraries, object files and flags are used when
11472         # linking a shared library.
11473         #
11474         # There doesn't appear to be a way to prevent this compiler from
11475         # explicitly linking system object files so we need to strip them
11476         # from the output so that they don't get included in the library
11477         # dependencies.
11478         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'
11479
11480         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11481         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11482
11483         # Archives containing C++ object files must be created using
11484         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11485         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11486         ;;
11487       icpc*)
11488         # Intel C++
11489         with_gnu_ld=yes
11490         # version 8.0 and above of icpc choke on multiply defined symbols
11491         # if we add $predep_objects and $postdep_objects, however 7.1 and
11492         # earlier do not add the objects themselves.
11493         case `$CC -V 2>&1` in
11494         *"Version 7."*)
11495           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11496           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'
11497           ;;
11498         *)  # Version 8.0 or newer
11499           tmp_idyn=
11500           case $host_cpu in
11501             ia64*) tmp_idyn=' -i_dynamic';;
11502           esac
11503           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504           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'
11505           ;;
11506         esac
11507         archive_cmds_need_lc_CXX=no
11508         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11509         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11510         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11511         ;;
11512       pgCC* | pgcpp*)
11513         # Portland Group C++ compiler
11514         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11515         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'
11516
11517         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11518         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11519         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'
11520         ;;
11521       cxx*)
11522         # Compaq C++
11523         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11524         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'
11525
11526         runpath_var=LD_RUN_PATH
11527         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11528         hardcode_libdir_separator_CXX=:
11529
11530         # Commands to make compiler produce verbose output that lists
11531         # what "hidden" libraries, object files and flags are used when
11532         # linking a shared library.
11533         #
11534         # There doesn't appear to be a way to prevent this compiler from
11535         # explicitly linking system object files so we need to strip them
11536         # from the output so that they don't get included in the library
11537         # dependencies.
11538         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'
11539         ;;
11540       *)
11541         case `$CC -V 2>&1 | sed 5q` in
11542         *Sun\ C*)
11543           # Sun C++ 5.9
11544           no_undefined_flag_CXX=' -zdefs'
11545           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11546           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'
11547           hardcode_libdir_flag_spec_CXX='-R$libdir'
11548           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'
11549
11550           # Not sure whether something based on
11551           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11552           # would be better.
11553           output_verbose_link_cmd='echo'
11554
11555           # Archives containing C++ object files must be created using
11556           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11557           # necessary to make sure instantiated templates are included
11558           # in the archive.
11559           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11560           ;;
11561         esac
11562         ;;
11563     esac
11564     ;;
11565   lynxos*)
11566     # FIXME: insert proper C++ library support
11567     ld_shlibs_CXX=no
11568     ;;
11569   m88k*)
11570     # FIXME: insert proper C++ library support
11571     ld_shlibs_CXX=no
11572     ;;
11573   mvs*)
11574     case $cc_basename in
11575       cxx*)
11576         # FIXME: insert proper C++ library support
11577         ld_shlibs_CXX=no
11578         ;;
11579       *)
11580         # FIXME: insert proper C++ library support
11581         ld_shlibs_CXX=no
11582         ;;
11583     esac
11584     ;;
11585   netbsd* | netbsdelf*-gnu)
11586     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11587       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11588       wlarc=
11589       hardcode_libdir_flag_spec_CXX='-R$libdir'
11590       hardcode_direct_CXX=yes
11591       hardcode_shlibpath_var_CXX=no
11592     fi
11593     # Workaround some broken pre-1.5 toolchains
11594     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11595     ;;
11596   openbsd2*)
11597     # C++ shared libraries are fairly broken
11598     ld_shlibs_CXX=no
11599     ;;
11600   openbsd*)
11601     if test -f /usr/libexec/ld.so; then
11602       hardcode_direct_CXX=yes
11603       hardcode_shlibpath_var_CXX=no
11604       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11605       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11606       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11607         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11608         export_dynamic_flag_spec_CXX='${wl}-E'
11609         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11610       fi
11611       output_verbose_link_cmd='echo'
11612     else
11613       ld_shlibs_CXX=no
11614     fi
11615     ;;
11616   osf3*)
11617     case $cc_basename in
11618       KCC*)
11619         # Kuck and Associates, Inc. (KAI) C++ Compiler
11620
11621         # KCC will only create a shared library if the output file
11622         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11623         # to its proper name (with version) after linking.
11624         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'
11625
11626         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11627         hardcode_libdir_separator_CXX=:
11628
11629         # Archives containing C++ object files must be created using
11630         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11631         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11632
11633         ;;
11634       RCC*)
11635         # Rational C++ 2.4.1
11636         # FIXME: insert proper C++ library support
11637         ld_shlibs_CXX=no
11638         ;;
11639       cxx*)
11640         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11641         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'
11642
11643         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11644         hardcode_libdir_separator_CXX=:
11645
11646         # Commands to make compiler produce verbose output that lists
11647         # what "hidden" libraries, object files and flags are used when
11648         # linking a shared library.
11649         #
11650         # There doesn't appear to be a way to prevent this compiler from
11651         # explicitly linking system object files so we need to strip them
11652         # from the output so that they don't get included in the library
11653         # dependencies.
11654         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'
11655         ;;
11656       *)
11657         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11658           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11659           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'
11660
11661           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11662           hardcode_libdir_separator_CXX=:
11663
11664           # Commands to make compiler produce verbose output that lists
11665           # what "hidden" libraries, object files and flags are used when
11666           # linking a shared library.
11667           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11668
11669         else
11670           # FIXME: insert proper C++ library support
11671           ld_shlibs_CXX=no
11672         fi
11673         ;;
11674     esac
11675     ;;
11676   osf4* | osf5*)
11677     case $cc_basename in
11678       KCC*)
11679         # Kuck and Associates, Inc. (KAI) C++ Compiler
11680
11681         # KCC will only create a shared library if the output file
11682         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11683         # to its proper name (with version) after linking.
11684         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'
11685
11686         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11687         hardcode_libdir_separator_CXX=:
11688
11689         # Archives containing C++ object files must be created using
11690         # the KAI C++ compiler.
11691         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11692         ;;
11693       RCC*)
11694         # Rational C++ 2.4.1
11695         # FIXME: insert proper C++ library support
11696         ld_shlibs_CXX=no
11697         ;;
11698       cxx*)
11699         allow_undefined_flag_CXX=' -expect_unresolved \*'
11700         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'
11701         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11702           echo "-hidden">> $lib.exp~
11703           $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~
11704           $rm $lib.exp'
11705
11706         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11707         hardcode_libdir_separator_CXX=:
11708
11709         # Commands to make compiler produce verbose output that lists
11710         # what "hidden" libraries, object files and flags are used when
11711         # linking a shared library.
11712         #
11713         # There doesn't appear to be a way to prevent this compiler from
11714         # explicitly linking system object files so we need to strip them
11715         # from the output so that they don't get included in the library
11716         # dependencies.
11717         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'
11718         ;;
11719       *)
11720         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11722          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'
11723
11724           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11725           hardcode_libdir_separator_CXX=:
11726
11727           # Commands to make compiler produce verbose output that lists
11728           # what "hidden" libraries, object files and flags are used when
11729           # linking a shared library.
11730           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11731
11732         else
11733           # FIXME: insert proper C++ library support
11734           ld_shlibs_CXX=no
11735         fi
11736         ;;
11737     esac
11738     ;;
11739   psos*)
11740     # FIXME: insert proper C++ library support
11741     ld_shlibs_CXX=no
11742     ;;
11743   sunos4*)
11744     case $cc_basename in
11745       CC*)
11746         # Sun C++ 4.x
11747         # FIXME: insert proper C++ library support
11748         ld_shlibs_CXX=no
11749         ;;
11750       lcc*)
11751         # Lucid
11752         # FIXME: insert proper C++ library support
11753         ld_shlibs_CXX=no
11754         ;;
11755       *)
11756         # FIXME: insert proper C++ library support
11757         ld_shlibs_CXX=no
11758         ;;
11759     esac
11760     ;;
11761   solaris*)
11762     case $cc_basename in
11763       CC*)
11764         # Sun C++ 4.2, 5.x and Centerline C++
11765         archive_cmds_need_lc_CXX=yes
11766         no_undefined_flag_CXX=' -zdefs'
11767         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11768         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11769         $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'
11770
11771         hardcode_libdir_flag_spec_CXX='-R$libdir'
11772         hardcode_shlibpath_var_CXX=no
11773         case $host_os in
11774           solaris2.[0-5] | solaris2.[0-5].*) ;;
11775           *)
11776             # The compiler driver will combine and reorder linker options,
11777             # but understands `-z linker_flag'.
11778             # Supported since Solaris 2.6 (maybe 2.5.1?)
11779             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11780             ;;
11781         esac
11782         link_all_deplibs_CXX=yes
11783
11784         output_verbose_link_cmd='echo'
11785
11786         # Archives containing C++ object files must be created using
11787         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11788         # necessary to make sure instantiated templates are included
11789         # in the archive.
11790         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11791         ;;
11792       gcx*)
11793         # Green Hills C++ Compiler
11794         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11795
11796         # The C++ compiler must be used to create the archive.
11797         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11798         ;;
11799       *)
11800         # GNU C++ compiler with Solaris linker
11801         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11802           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11803           if $CC --version | grep -v '^2\.7' > /dev/null; then
11804             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11805             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11806                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11807
11808             # Commands to make compiler produce verbose output that lists
11809             # what "hidden" libraries, object files and flags are used when
11810             # linking a shared library.
11811             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11812           else
11813             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11814             # platform.
11815             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11816             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11817                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11818
11819             # Commands to make compiler produce verbose output that lists
11820             # what "hidden" libraries, object files and flags are used when
11821             # linking a shared library.
11822             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11823           fi
11824
11825           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11826           case $host_os in
11827           solaris2.[0-5] | solaris2.[0-5].*) ;;
11828           *)
11829             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11830             ;;
11831           esac
11832         fi
11833         ;;
11834     esac
11835     ;;
11836   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11837     no_undefined_flag_CXX='${wl}-z,text'
11838     archive_cmds_need_lc_CXX=no
11839     hardcode_shlibpath_var_CXX=no
11840     runpath_var='LD_RUN_PATH'
11841
11842     case $cc_basename in
11843       CC*)
11844         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11846         ;;
11847       *)
11848         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11849         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11850         ;;
11851     esac
11852     ;;
11853   sysv5* | sco3.2v5* | sco5v6*)
11854     # Note: We can NOT use -z defs as we might desire, because we do not
11855     # link with -lc, and that would cause any symbols used from libc to
11856     # always be unresolved, which means just about no library would
11857     # ever link correctly.  If we're not using GNU ld we use -z text
11858     # though, which does catch some bad symbols but isn't as heavy-handed
11859     # as -z defs.
11860     # For security reasons, it is highly recommended that you always
11861     # use absolute paths for naming shared libraries, and exclude the
11862     # DT_RUNPATH tag from executables and libraries.  But doing so
11863     # requires that you compile everything twice, which is a pain.
11864     # So that behaviour is only enabled if SCOABSPATH is set to a
11865     # non-empty value in the environment.  Most likely only useful for
11866     # creating official distributions of packages.
11867     # This is a hack until libtool officially supports absolute path
11868     # names for shared libraries.
11869     no_undefined_flag_CXX='${wl}-z,text'
11870     allow_undefined_flag_CXX='${wl}-z,nodefs'
11871     archive_cmds_need_lc_CXX=no
11872     hardcode_shlibpath_var_CXX=no
11873     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11874     hardcode_libdir_separator_CXX=':'
11875     link_all_deplibs_CXX=yes
11876     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11877     runpath_var='LD_RUN_PATH'
11878
11879     case $cc_basename in
11880       CC*)
11881         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11883         ;;
11884       *)
11885         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11886         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11887         ;;
11888     esac
11889     ;;
11890   tandem*)
11891     case $cc_basename in
11892       NCC*)
11893         # NonStop-UX NCC 3.20
11894         # FIXME: insert proper C++ library support
11895         ld_shlibs_CXX=no
11896         ;;
11897       *)
11898         # FIXME: insert proper C++ library support
11899         ld_shlibs_CXX=no
11900         ;;
11901     esac
11902     ;;
11903   vxworks*)
11904     # FIXME: insert proper C++ library support
11905     ld_shlibs_CXX=no
11906     ;;
11907   *)
11908     # FIXME: insert proper C++ library support
11909     ld_shlibs_CXX=no
11910     ;;
11911 esac
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11913 $as_echo "$ld_shlibs_CXX" >&6; }
11914 test "$ld_shlibs_CXX" = no && can_build_shared=no
11915
11916 GCC_CXX="$GXX"
11917 LD_CXX="$LD"
11918
11919 cat > conftest.$ac_ext <<EOF
11920 class Foo
11921 {
11922 public:
11923   Foo (void) { a = 0; }
11924 private:
11925   int a;
11926 };
11927 EOF
11928
11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11930   (eval $ac_compile) 2>&5
11931   ac_status=$?
11932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933   test $ac_status = 0; }; then
11934   # Parse the compiler output and extract the necessary
11935   # objects, libraries and library flags.
11936
11937   # Sentinel used to keep track of whether or not we are before
11938   # the conftest object file.
11939   pre_test_object_deps_done=no
11940
11941   # The `*' in the case matches for architectures that use `case' in
11942   # $output_verbose_cmd can trigger glob expansion during the loop
11943   # eval without this substitution.
11944   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11945
11946   for p in `eval $output_verbose_link_cmd`; do
11947     case $p in
11948
11949     -L* | -R* | -l*)
11950        # Some compilers place space between "-{L,R}" and the path.
11951        # Remove the space.
11952        if test $p = "-L" \
11953           || test $p = "-R"; then
11954          prev=$p
11955          continue
11956        else
11957          prev=
11958        fi
11959
11960        if test "$pre_test_object_deps_done" = no; then
11961          case $p in
11962          -L* | -R*)
11963            # Internal compiler library paths should come after those
11964            # provided the user.  The postdeps already come after the
11965            # user supplied libs so there is no need to process them.
11966            if test -z "$compiler_lib_search_path_CXX"; then
11967              compiler_lib_search_path_CXX="${prev}${p}"
11968            else
11969              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11970            fi
11971            ;;
11972          # The "-l" case would never come before the object being
11973          # linked, so don't bother handling this case.
11974          esac
11975        else
11976          if test -z "$postdeps_CXX"; then
11977            postdeps_CXX="${prev}${p}"
11978          else
11979            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11980          fi
11981        fi
11982        ;;
11983
11984     *.$objext)
11985        # This assumes that the test object file only shows up
11986        # once in the compiler output.
11987        if test "$p" = "conftest.$objext"; then
11988          pre_test_object_deps_done=yes
11989          continue
11990        fi
11991
11992        if test "$pre_test_object_deps_done" = no; then
11993          if test -z "$predep_objects_CXX"; then
11994            predep_objects_CXX="$p"
11995          else
11996            predep_objects_CXX="$predep_objects_CXX $p"
11997          fi
11998        else
11999          if test -z "$postdep_objects_CXX"; then
12000            postdep_objects_CXX="$p"
12001          else
12002            postdep_objects_CXX="$postdep_objects_CXX $p"
12003          fi
12004        fi
12005        ;;
12006
12007     *) ;; # Ignore the rest.
12008
12009     esac
12010   done
12011
12012   # Clean up.
12013   rm -f a.out a.exe
12014 else
12015   echo "libtool.m4: error: problem compiling CXX test program"
12016 fi
12017
12018 $rm -f confest.$objext
12019
12020 compiler_lib_search_dirs_CXX=
12021 if test -n "$compiler_lib_search_path_CXX"; then
12022   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12023 fi
12024
12025 # PORTME: override above test on systems where it is broken
12026 case $host_os in
12027 interix[3-9]*)
12028   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12029   # hack all around it, let's just trust "g++" to DTRT.
12030   predep_objects_CXX=
12031   postdep_objects_CXX=
12032   postdeps_CXX=
12033   ;;
12034
12035 linux*)
12036   case `$CC -V 2>&1 | sed 5q` in
12037   *Sun\ C*)
12038     # Sun C++ 5.9
12039     #
12040     # The more standards-conforming stlport4 library is
12041     # incompatible with the Cstd library. Avoid specifying
12042     # it if it's in CXXFLAGS. Ignore libCrun as
12043     # -library=stlport4 depends on it.
12044     case " $CXX $CXXFLAGS " in
12045     *" -library=stlport4 "*)
12046       solaris_use_stlport4=yes
12047       ;;
12048     esac
12049     if test "$solaris_use_stlport4" != yes; then
12050       postdeps_CXX='-library=Cstd -library=Crun'
12051     fi
12052     ;;
12053   esac
12054   ;;
12055
12056 solaris*)
12057   case $cc_basename in
12058   CC*)
12059     # The more standards-conforming stlport4 library is
12060     # incompatible with the Cstd library. Avoid specifying
12061     # it if it's in CXXFLAGS. Ignore libCrun as
12062     # -library=stlport4 depends on it.
12063     case " $CXX $CXXFLAGS " in
12064     *" -library=stlport4 "*)
12065       solaris_use_stlport4=yes
12066       ;;
12067     esac
12068
12069     # Adding this requires a known-good setup of shared libraries for
12070     # Sun compiler versions before 5.6, else PIC objects from an old
12071     # archive will be linked into the output, leading to subtle bugs.
12072     if test "$solaris_use_stlport4" != yes; then
12073       postdeps_CXX='-library=Cstd -library=Crun'
12074     fi
12075     ;;
12076   esac
12077   ;;
12078 esac
12079
12080 case " $postdeps_CXX " in
12081 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12082 esac
12083
12084 lt_prog_compiler_wl_CXX=
12085 lt_prog_compiler_pic_CXX=
12086 lt_prog_compiler_static_CXX=
12087
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12090
12091   # C++ specific cases for pic, static, wl, etc.
12092   if test "$GXX" = yes; then
12093     lt_prog_compiler_wl_CXX='-Wl,'
12094     lt_prog_compiler_static_CXX='-static'
12095
12096     case $host_os in
12097     aix*)
12098       # All AIX code is PIC.
12099       if test "$host_cpu" = ia64; then
12100         # AIX 5 now supports IA64 processor
12101         lt_prog_compiler_static_CXX='-Bstatic'
12102       fi
12103       ;;
12104     amigaos*)
12105       # FIXME: we need at least 68020 code to build shared libraries, but
12106       # adding the `-m68020' flag to GCC prevents building anything better,
12107       # like `-m68040'.
12108       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12109       ;;
12110     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12111       # PIC is the default for these OSes.
12112       ;;
12113     mingw* | cygwin* | os2* | pw32*)
12114       # This hack is so that the source file can tell whether it is being
12115       # built for inclusion in a dll (and should export symbols for example).
12116       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12117       # (--disable-auto-import) libraries
12118       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12119       ;;
12120     darwin* | rhapsody*)
12121       # PIC is the default on this platform
12122       # Common symbols not allowed in MH_DYLIB files
12123       lt_prog_compiler_pic_CXX='-fno-common'
12124       ;;
12125     *djgpp*)
12126       # DJGPP does not support shared libraries at all
12127       lt_prog_compiler_pic_CXX=
12128       ;;
12129     interix[3-9]*)
12130       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12131       # Instead, we relocate shared libraries at runtime.
12132       ;;
12133     sysv4*MP*)
12134       if test -d /usr/nec; then
12135         lt_prog_compiler_pic_CXX=-Kconform_pic
12136       fi
12137       ;;
12138     hpux*)
12139       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12140       # not for PA HP-UX.
12141       case $host_cpu in
12142       hppa*64*|ia64*)
12143         ;;
12144       *)
12145         lt_prog_compiler_pic_CXX='-fPIC'
12146         ;;
12147       esac
12148       ;;
12149     *)
12150       lt_prog_compiler_pic_CXX='-fPIC'
12151       ;;
12152     esac
12153   else
12154     case $host_os in
12155       aix[4-9]*)
12156         # All AIX code is PIC.
12157         if test "$host_cpu" = ia64; then
12158           # AIX 5 now supports IA64 processor
12159           lt_prog_compiler_static_CXX='-Bstatic'
12160         else
12161           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12162         fi
12163         ;;
12164       chorus*)
12165         case $cc_basename in
12166         cxch68*)
12167           # Green Hills C++ Compiler
12168           # _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"
12169           ;;
12170         esac
12171         ;;
12172        darwin*)
12173          # PIC is the default on this platform
12174          # Common symbols not allowed in MH_DYLIB files
12175          case $cc_basename in
12176            xlc*)
12177            lt_prog_compiler_pic_CXX='-qnocommon'
12178            lt_prog_compiler_wl_CXX='-Wl,'
12179            ;;
12180          esac
12181        ;;
12182       dgux*)
12183         case $cc_basename in
12184           ec++*)
12185             lt_prog_compiler_pic_CXX='-KPIC'
12186             ;;
12187           ghcx*)
12188             # Green Hills C++ Compiler
12189             lt_prog_compiler_pic_CXX='-pic'
12190             ;;
12191           *)
12192             ;;
12193         esac
12194         ;;
12195       freebsd* | dragonfly*)
12196         # FreeBSD uses GNU C++
12197         ;;
12198       hpux9* | hpux10* | hpux11*)
12199         case $cc_basename in
12200           CC*)
12201             lt_prog_compiler_wl_CXX='-Wl,'
12202             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12203             if test "$host_cpu" != ia64; then
12204               lt_prog_compiler_pic_CXX='+Z'
12205             fi
12206             ;;
12207           aCC*)
12208             lt_prog_compiler_wl_CXX='-Wl,'
12209             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12210             case $host_cpu in
12211             hppa*64*|ia64*)
12212               # +Z the default
12213               ;;
12214             *)
12215               lt_prog_compiler_pic_CXX='+Z'
12216               ;;
12217             esac
12218             ;;
12219           *)
12220             ;;
12221         esac
12222         ;;
12223       interix*)
12224         # This is c89, which is MS Visual C++ (no shared libs)
12225         # Anyone wants to do a port?
12226         ;;
12227       irix5* | irix6* | nonstopux*)
12228         case $cc_basename in
12229           CC*)
12230             lt_prog_compiler_wl_CXX='-Wl,'
12231             lt_prog_compiler_static_CXX='-non_shared'
12232             # CC pic flag -KPIC is the default.
12233             ;;
12234           *)
12235             ;;
12236         esac
12237         ;;
12238       linux* | k*bsd*-gnu)
12239         case $cc_basename in
12240           KCC*)
12241             # KAI C++ Compiler
12242             lt_prog_compiler_wl_CXX='--backend -Wl,'
12243             lt_prog_compiler_pic_CXX='-fPIC'
12244             ;;
12245           icpc* | ecpc*)
12246             # Intel C++
12247             lt_prog_compiler_wl_CXX='-Wl,'
12248             lt_prog_compiler_pic_CXX='-KPIC'
12249             lt_prog_compiler_static_CXX='-static'
12250             ;;
12251           pgCC* | pgcpp*)
12252             # Portland Group C++ compiler.
12253             lt_prog_compiler_wl_CXX='-Wl,'
12254             lt_prog_compiler_pic_CXX='-fpic'
12255             lt_prog_compiler_static_CXX='-Bstatic'
12256             ;;
12257           cxx*)
12258             # Compaq C++
12259             # Make sure the PIC flag is empty.  It appears that all Alpha
12260             # Linux and Compaq Tru64 Unix objects are PIC.
12261             lt_prog_compiler_pic_CXX=
12262             lt_prog_compiler_static_CXX='-non_shared'
12263             ;;
12264           *)
12265             case `$CC -V 2>&1 | sed 5q` in
12266             *Sun\ C*)
12267               # Sun C++ 5.9
12268               lt_prog_compiler_pic_CXX='-KPIC'
12269               lt_prog_compiler_static_CXX='-Bstatic'
12270               lt_prog_compiler_wl_CXX='-Qoption ld '
12271               ;;
12272             esac
12273             ;;
12274         esac
12275         ;;
12276       lynxos*)
12277         ;;
12278       m88k*)
12279         ;;
12280       mvs*)
12281         case $cc_basename in
12282           cxx*)
12283             lt_prog_compiler_pic_CXX='-W c,exportall'
12284             ;;
12285           *)
12286             ;;
12287         esac
12288         ;;
12289       netbsd* | netbsdelf*-gnu)
12290         ;;
12291       osf3* | osf4* | osf5*)
12292         case $cc_basename in
12293           KCC*)
12294             lt_prog_compiler_wl_CXX='--backend -Wl,'
12295             ;;
12296           RCC*)
12297             # Rational C++ 2.4.1
12298             lt_prog_compiler_pic_CXX='-pic'
12299             ;;
12300           cxx*)
12301             # Digital/Compaq C++
12302             lt_prog_compiler_wl_CXX='-Wl,'
12303             # Make sure the PIC flag is empty.  It appears that all Alpha
12304             # Linux and Compaq Tru64 Unix objects are PIC.
12305             lt_prog_compiler_pic_CXX=
12306             lt_prog_compiler_static_CXX='-non_shared'
12307             ;;
12308           *)
12309             ;;
12310         esac
12311         ;;
12312       psos*)
12313         ;;
12314       solaris*)
12315         case $cc_basename in
12316           CC*)
12317             # Sun C++ 4.2, 5.x and Centerline C++
12318             lt_prog_compiler_pic_CXX='-KPIC'
12319             lt_prog_compiler_static_CXX='-Bstatic'
12320             lt_prog_compiler_wl_CXX='-Qoption ld '
12321             ;;
12322           gcx*)
12323             # Green Hills C++ Compiler
12324             lt_prog_compiler_pic_CXX='-PIC'
12325             ;;
12326           *)
12327             ;;
12328         esac
12329         ;;
12330       sunos4*)
12331         case $cc_basename in
12332           CC*)
12333             # Sun C++ 4.x
12334             lt_prog_compiler_pic_CXX='-pic'
12335             lt_prog_compiler_static_CXX='-Bstatic'
12336             ;;
12337           lcc*)
12338             # Lucid
12339             lt_prog_compiler_pic_CXX='-pic'
12340             ;;
12341           *)
12342             ;;
12343         esac
12344         ;;
12345       tandem*)
12346         case $cc_basename in
12347           NCC*)
12348             # NonStop-UX NCC 3.20
12349             lt_prog_compiler_pic_CXX='-KPIC'
12350             ;;
12351           *)
12352             ;;
12353         esac
12354         ;;
12355       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12356         case $cc_basename in
12357           CC*)
12358             lt_prog_compiler_wl_CXX='-Wl,'
12359             lt_prog_compiler_pic_CXX='-KPIC'
12360             lt_prog_compiler_static_CXX='-Bstatic'
12361             ;;
12362         esac
12363         ;;
12364       vxworks*)
12365         ;;
12366       *)
12367         lt_prog_compiler_can_build_shared_CXX=no
12368         ;;
12369     esac
12370   fi
12371
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12373 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12374
12375 #
12376 # Check to make sure the PIC flag actually works.
12377 #
12378 if test -n "$lt_prog_compiler_pic_CXX"; then
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12381 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12382 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385   lt_cv_prog_compiler_pic_works_CXX=no
12386   ac_outfile=conftest.$ac_objext
12387    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12388    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12389    # Insert the option either (1) after the last *FLAGS variable, or
12390    # (2) before a word containing "conftest.", or (3) at the end.
12391    # Note that $ac_compile itself does not contain backslashes and begins
12392    # with a dollar sign (not a hyphen), so the echo should work correctly.
12393    # The option is referenced via a variable to avoid confusing sed.
12394    lt_compile=`echo "$ac_compile" | $SED \
12395    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12396    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12397    -e 's:$: $lt_compiler_flag:'`
12398    (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
12399    (eval "$lt_compile" 2>conftest.err)
12400    ac_status=$?
12401    cat conftest.err >&5
12402    echo "$as_me:12398: \$? = $ac_status" >&5
12403    if (exit $ac_status) && test -s "$ac_outfile"; then
12404      # The compiler can only warn and ignore the option if not recognized
12405      # So say no if there are warnings other than the usual output.
12406      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12407      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12408      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12409        lt_cv_prog_compiler_pic_works_CXX=yes
12410      fi
12411    fi
12412    $rm conftest*
12413
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12416 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12417
12418 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12419     case $lt_prog_compiler_pic_CXX in
12420      "" | " "*) ;;
12421      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12422      esac
12423 else
12424     lt_prog_compiler_pic_CXX=
12425      lt_prog_compiler_can_build_shared_CXX=no
12426 fi
12427
12428 fi
12429 case $host_os in
12430   # For platforms which do not support PIC, -DPIC is meaningless:
12431   *djgpp*)
12432     lt_prog_compiler_pic_CXX=
12433     ;;
12434   *)
12435     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12436     ;;
12437 esac
12438
12439 #
12440 # Check to make sure the static flag actually works.
12441 #
12442 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12444 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12445 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12446   $as_echo_n "(cached) " >&6
12447 else
12448   lt_cv_prog_compiler_static_works_CXX=no
12449    save_LDFLAGS="$LDFLAGS"
12450    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12451    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12452    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12453      # The linker can only warn and ignore the option if not recognized
12454      # So say no if there are warnings
12455      if test -s conftest.err; then
12456        # Append any errors to the config.log.
12457        cat conftest.err 1>&5
12458        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12459        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12460        if diff conftest.exp conftest.er2 >/dev/null; then
12461          lt_cv_prog_compiler_static_works_CXX=yes
12462        fi
12463      else
12464        lt_cv_prog_compiler_static_works_CXX=yes
12465      fi
12466    fi
12467    $rm -r conftest*
12468    LDFLAGS="$save_LDFLAGS"
12469
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12472 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12473
12474 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12475     :
12476 else
12477     lt_prog_compiler_static_CXX=
12478 fi
12479
12480
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12482 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12483 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486   lt_cv_prog_compiler_c_o_CXX=no
12487    $rm -r conftest 2>/dev/null
12488    mkdir conftest
12489    cd conftest
12490    mkdir out
12491    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12492
12493    lt_compiler_flag="-o out/conftest2.$ac_objext"
12494    # Insert the option either (1) after the last *FLAGS variable, or
12495    # (2) before a word containing "conftest.", or (3) at the end.
12496    # Note that $ac_compile itself does not contain backslashes and begins
12497    # with a dollar sign (not a hyphen), so the echo should work correctly.
12498    lt_compile=`echo "$ac_compile" | $SED \
12499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12501    -e 's:$: $lt_compiler_flag:'`
12502    (eval echo "\"\$as_me:12498: $lt_compile\"" >&5)
12503    (eval "$lt_compile" 2>out/conftest.err)
12504    ac_status=$?
12505    cat out/conftest.err >&5
12506    echo "$as_me:12502: \$? = $ac_status" >&5
12507    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12508    then
12509      # The compiler can only warn and ignore the option if not recognized
12510      # So say no if there are warnings
12511      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12512      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12513      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12514        lt_cv_prog_compiler_c_o_CXX=yes
12515      fi
12516    fi
12517    chmod u+w . 2>&5
12518    $rm conftest*
12519    # SGI C++ compiler will create directory out/ii_files/ for
12520    # template instantiation
12521    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12522    $rm out/* && rmdir out
12523    cd ..
12524    rmdir conftest
12525    $rm conftest*
12526
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12529 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12530
12531
12532 hard_links="nottested"
12533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12534   # do not overwrite the value of need_locks provided by the user
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12536 $as_echo_n "checking if we can lock with hard links... " >&6; }
12537   hard_links=yes
12538   $rm conftest*
12539   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12540   touch conftest.a
12541   ln conftest.a conftest.b 2>&5 || hard_links=no
12542   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12544 $as_echo "$hard_links" >&6; }
12545   if test "$hard_links" = no; then
12546     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12548     need_locks=warn
12549   fi
12550 else
12551   need_locks=no
12552 fi
12553
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12555 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12556
12557   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12558   case $host_os in
12559   aix[4-9]*)
12560     # If we're using GNU nm, then we don't want the "-C" option.
12561     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12562     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12563       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'
12564     else
12565       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'
12566     fi
12567     ;;
12568   pw32*)
12569     export_symbols_cmds_CXX="$ltdll_cmds"
12570   ;;
12571   cygwin* | mingw*)
12572     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'
12573   ;;
12574   linux* | k*bsd*-gnu)
12575     link_all_deplibs_CXX=no
12576   ;;
12577   *)
12578     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12579   ;;
12580   esac
12581   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12582
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12584 $as_echo "$ld_shlibs_CXX" >&6; }
12585 test "$ld_shlibs_CXX" = no && can_build_shared=no
12586
12587 #
12588 # Do we need to explicitly link libc?
12589 #
12590 case "x$archive_cmds_need_lc_CXX" in
12591 x|xyes)
12592   # Assume -lc should be added
12593   archive_cmds_need_lc_CXX=yes
12594
12595   if test "$enable_shared" = yes && test "$GCC" = yes; then
12596     case $archive_cmds_CXX in
12597     *'~'*)
12598       # FIXME: we may have to deal with multi-command sequences.
12599       ;;
12600     '$CC '*)
12601       # Test whether the compiler implicitly links with -lc since on some
12602       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12603       # to ld, don't add -lc before -lgcc.
12604       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12605 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12606       $rm conftest*
12607       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12608
12609       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12610   (eval $ac_compile) 2>&5
12611   ac_status=$?
12612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12613   test $ac_status = 0; } 2>conftest.err; then
12614         soname=conftest
12615         lib=conftest
12616         libobjs=conftest.$ac_objext
12617         deplibs=
12618         wl=$lt_prog_compiler_wl_CXX
12619         pic_flag=$lt_prog_compiler_pic_CXX
12620         compiler_flags=-v
12621         linker_flags=-v
12622         verstring=
12623         output_objdir=.
12624         libname=conftest
12625         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12626         allow_undefined_flag_CXX=
12627         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12628   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12629   ac_status=$?
12630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631   test $ac_status = 0; }
12632         then
12633           archive_cmds_need_lc_CXX=no
12634         else
12635           archive_cmds_need_lc_CXX=yes
12636         fi
12637         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12638       else
12639         cat conftest.err 1>&5
12640       fi
12641       $rm conftest*
12642       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12643 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12644       ;;
12645     esac
12646   fi
12647   ;;
12648 esac
12649
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12651 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12652 library_names_spec=
12653 libname_spec='lib$name'
12654 soname_spec=
12655 shrext_cmds=".so"
12656 postinstall_cmds=
12657 postuninstall_cmds=
12658 finish_cmds=
12659 finish_eval=
12660 shlibpath_var=
12661 shlibpath_overrides_runpath=unknown
12662 version_type=none
12663 dynamic_linker="$host_os ld.so"
12664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12665
12666 need_lib_prefix=unknown
12667 hardcode_into_libs=no
12668
12669 # when you set need_version to no, make sure it does not cause -set_version
12670 # flags to be left without arguments
12671 need_version=unknown
12672
12673 case $host_os in
12674 aix3*)
12675   version_type=linux
12676   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12677   shlibpath_var=LIBPATH
12678
12679   # AIX 3 has no versioning support, so we append a major version to the name.
12680   soname_spec='${libname}${release}${shared_ext}$major'
12681   ;;
12682
12683 aix[4-9]*)
12684   version_type=linux
12685   need_lib_prefix=no
12686   need_version=no
12687   hardcode_into_libs=yes
12688   if test "$host_cpu" = ia64; then
12689     # AIX 5 supports IA64
12690     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12691     shlibpath_var=LD_LIBRARY_PATH
12692   else
12693     # With GCC up to 2.95.x, collect2 would create an import file
12694     # for dependence libraries.  The import file would start with
12695     # the line `#! .'.  This would cause the generated library to
12696     # depend on `.', always an invalid library.  This was fixed in
12697     # development snapshots of GCC prior to 3.0.
12698     case $host_os in
12699       aix4 | aix4.[01] | aix4.[01].*)
12700       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12701            echo ' yes '
12702            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12703         :
12704       else
12705         can_build_shared=no
12706       fi
12707       ;;
12708     esac
12709     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12710     # soname into executable. Probably we can add versioning support to
12711     # collect2, so additional links can be useful in future.
12712     if test "$aix_use_runtimelinking" = yes; then
12713       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12714       # instead of lib<name>.a to let people know that these are not
12715       # typical AIX shared libraries.
12716       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12717     else
12718       # We preserve .a as extension for shared libraries through AIX4.2
12719       # and later when we are not doing run time linking.
12720       library_names_spec='${libname}${release}.a $libname.a'
12721       soname_spec='${libname}${release}${shared_ext}$major'
12722     fi
12723     shlibpath_var=LIBPATH
12724   fi
12725   ;;
12726
12727 amigaos*)
12728   library_names_spec='$libname.ixlibrary $libname.a'
12729   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12730   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'
12731   ;;
12732
12733 beos*)
12734   library_names_spec='${libname}${shared_ext}'
12735   dynamic_linker="$host_os ld.so"
12736   shlibpath_var=LIBRARY_PATH
12737   ;;
12738
12739 bsdi[45]*)
12740   version_type=linux
12741   need_version=no
12742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12743   soname_spec='${libname}${release}${shared_ext}$major'
12744   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12745   shlibpath_var=LD_LIBRARY_PATH
12746   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12747   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12748   # the default ld.so.conf also contains /usr/contrib/lib and
12749   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12750   # libtool to hard-code these into programs
12751   ;;
12752
12753 cygwin* | mingw* | pw32*)
12754   version_type=windows
12755   shrext_cmds=".dll"
12756   need_version=no
12757   need_lib_prefix=no
12758
12759   case $GCC,$host_os in
12760   yes,cygwin* | yes,mingw* | yes,pw32*)
12761     library_names_spec='$libname.dll.a'
12762     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12763     postinstall_cmds='base_file=`basename \${file}`~
12764       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12765       dldir=$destdir/`dirname \$dlpath`~
12766       test -d \$dldir || mkdir -p \$dldir~
12767       $install_prog $dir/$dlname \$dldir/$dlname~
12768       chmod a+x \$dldir/$dlname'
12769     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12770       dlpath=$dir/\$dldll~
12771        $rm \$dlpath'
12772     shlibpath_overrides_runpath=yes
12773
12774     case $host_os in
12775     cygwin*)
12776       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12777       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12778       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12779       ;;
12780     mingw*)
12781       # MinGW DLLs use traditional 'lib' prefix
12782       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12783       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12784       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12785         # It is most probably a Windows format PATH printed by
12786         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12787         # path with ; separators, and with drive letters. We can handle the
12788         # drive letters (cygwin fileutils understands them), so leave them,
12789         # especially as we might pass files found there to a mingw objdump,
12790         # which wouldn't understand a cygwinified path. Ahh.
12791         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12792       else
12793         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12794       fi
12795       ;;
12796     pw32*)
12797       # pw32 DLLs use 'pw' prefix rather than 'lib'
12798       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12799       ;;
12800     esac
12801     ;;
12802
12803   *)
12804     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12805     ;;
12806   esac
12807   dynamic_linker='Win32 ld.exe'
12808   # FIXME: first we should search . and the directory the executable is in
12809   shlibpath_var=PATH
12810   ;;
12811
12812 darwin* | rhapsody*)
12813   dynamic_linker="$host_os dyld"
12814   version_type=darwin
12815   need_lib_prefix=no
12816   need_version=no
12817   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12818   soname_spec='${libname}${release}${major}$shared_ext'
12819   shlibpath_overrides_runpath=yes
12820   shlibpath_var=DYLD_LIBRARY_PATH
12821   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12822
12823   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12824   ;;
12825
12826 dgux*)
12827   version_type=linux
12828   need_lib_prefix=no
12829   need_version=no
12830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12831   soname_spec='${libname}${release}${shared_ext}$major'
12832   shlibpath_var=LD_LIBRARY_PATH
12833   ;;
12834
12835 freebsd1*)
12836   dynamic_linker=no
12837   ;;
12838
12839 freebsd* | dragonfly*)
12840   # DragonFly does not have aout.  When/if they implement a new
12841   # versioning mechanism, adjust this.
12842   if test -x /usr/bin/objformat; then
12843     objformat=`/usr/bin/objformat`
12844   else
12845     case $host_os in
12846     freebsd[123]*) objformat=aout ;;
12847     *) objformat=elf ;;
12848     esac
12849   fi
12850   version_type=freebsd-$objformat
12851   case $version_type in
12852     freebsd-elf*)
12853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12854       need_version=no
12855       need_lib_prefix=no
12856       ;;
12857     freebsd-*)
12858       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12859       need_version=yes
12860       ;;
12861   esac
12862   shlibpath_var=LD_LIBRARY_PATH
12863   case $host_os in
12864   freebsd2*)
12865     shlibpath_overrides_runpath=yes
12866     ;;
12867   freebsd3.[01]* | freebsdelf3.[01]*)
12868     shlibpath_overrides_runpath=yes
12869     hardcode_into_libs=yes
12870     ;;
12871   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12872   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12873     shlibpath_overrides_runpath=no
12874     hardcode_into_libs=yes
12875     ;;
12876   *) # from 4.6 on, and DragonFly
12877     shlibpath_overrides_runpath=yes
12878     hardcode_into_libs=yes
12879     ;;
12880   esac
12881   ;;
12882
12883 gnu*)
12884   version_type=linux
12885   need_lib_prefix=no
12886   need_version=no
12887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12888   soname_spec='${libname}${release}${shared_ext}$major'
12889   shlibpath_var=LD_LIBRARY_PATH
12890   hardcode_into_libs=yes
12891   ;;
12892
12893 hpux9* | hpux10* | hpux11*)
12894   # Give a soname corresponding to the major version so that dld.sl refuses to
12895   # link against other versions.
12896   version_type=sunos
12897   need_lib_prefix=no
12898   need_version=no
12899   case $host_cpu in
12900   ia64*)
12901     shrext_cmds='.so'
12902     hardcode_into_libs=yes
12903     dynamic_linker="$host_os dld.so"
12904     shlibpath_var=LD_LIBRARY_PATH
12905     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12907     soname_spec='${libname}${release}${shared_ext}$major'
12908     if test "X$HPUX_IA64_MODE" = X32; then
12909       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12910     else
12911       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12912     fi
12913     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12914     ;;
12915    hppa*64*)
12916      shrext_cmds='.sl'
12917      hardcode_into_libs=yes
12918      dynamic_linker="$host_os dld.sl"
12919      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12920      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12921      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922      soname_spec='${libname}${release}${shared_ext}$major'
12923      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12924      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12925      ;;
12926    *)
12927     shrext_cmds='.sl'
12928     dynamic_linker="$host_os dld.sl"
12929     shlibpath_var=SHLIB_PATH
12930     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932     soname_spec='${libname}${release}${shared_ext}$major'
12933     ;;
12934   esac
12935   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12936   postinstall_cmds='chmod 555 $lib'
12937   ;;
12938
12939 interix[3-9]*)
12940   version_type=linux
12941   need_lib_prefix=no
12942   need_version=no
12943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12944   soname_spec='${libname}${release}${shared_ext}$major'
12945   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12946   shlibpath_var=LD_LIBRARY_PATH
12947   shlibpath_overrides_runpath=no
12948   hardcode_into_libs=yes
12949   ;;
12950
12951 irix5* | irix6* | nonstopux*)
12952   case $host_os in
12953     nonstopux*) version_type=nonstopux ;;
12954     *)
12955         if test "$lt_cv_prog_gnu_ld" = yes; then
12956                 version_type=linux
12957         else
12958                 version_type=irix
12959         fi ;;
12960   esac
12961   need_lib_prefix=no
12962   need_version=no
12963   soname_spec='${libname}${release}${shared_ext}$major'
12964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12965   case $host_os in
12966   irix5* | nonstopux*)
12967     libsuff= shlibsuff=
12968     ;;
12969   *)
12970     case $LD in # libtool.m4 will add one of these switches to LD
12971     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12972       libsuff= shlibsuff= libmagic=32-bit;;
12973     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12974       libsuff=32 shlibsuff=N32 libmagic=N32;;
12975     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12976       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12977     *) libsuff= shlibsuff= libmagic=never-match;;
12978     esac
12979     ;;
12980   esac
12981   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12982   shlibpath_overrides_runpath=no
12983   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12984   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12985   hardcode_into_libs=yes
12986   ;;
12987
12988 # No shared lib support for Linux oldld, aout, or coff.
12989 linux*oldld* | linux*aout* | linux*coff*)
12990   dynamic_linker=no
12991   ;;
12992
12993 # This must be Linux ELF.
12994 linux* | k*bsd*-gnu)
12995   version_type=linux
12996   need_lib_prefix=no
12997   need_version=no
12998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999   soname_spec='${libname}${release}${shared_ext}$major'
13000   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13001   shlibpath_var=LD_LIBRARY_PATH
13002   shlibpath_overrides_runpath=no
13003   # This implies no fast_install, which is unacceptable.
13004   # Some rework will be needed to allow for fast_install
13005   # before this can be enabled.
13006   hardcode_into_libs=yes
13007
13008   # Append ld.so.conf contents to the search path
13009   if test -f /etc/ld.so.conf; then
13010     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' ' '`
13011     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13012   fi
13013
13014   # We used to test for /lib/ld.so.1 and disable shared libraries on
13015   # powerpc, because MkLinux only supported shared libraries with the
13016   # GNU dynamic linker.  Since this was broken with cross compilers,
13017   # most powerpc-linux boxes support dynamic linking these days and
13018   # people can always --disable-shared, the test was removed, and we
13019   # assume the GNU/Linux dynamic linker is in use.
13020   dynamic_linker='GNU/Linux ld.so'
13021   ;;
13022
13023 netbsdelf*-gnu)
13024   version_type=linux
13025   need_lib_prefix=no
13026   need_version=no
13027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13028   soname_spec='${libname}${release}${shared_ext}$major'
13029   shlibpath_var=LD_LIBRARY_PATH
13030   shlibpath_overrides_runpath=no
13031   hardcode_into_libs=yes
13032   dynamic_linker='NetBSD ld.elf_so'
13033   ;;
13034
13035 netbsd*)
13036   version_type=sunos
13037   need_lib_prefix=no
13038   need_version=no
13039   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13041     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13042     dynamic_linker='NetBSD (a.out) ld.so'
13043   else
13044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13045     soname_spec='${libname}${release}${shared_ext}$major'
13046     dynamic_linker='NetBSD ld.elf_so'
13047   fi
13048   shlibpath_var=LD_LIBRARY_PATH
13049   shlibpath_overrides_runpath=yes
13050   hardcode_into_libs=yes
13051   ;;
13052
13053 newsos6)
13054   version_type=linux
13055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056   shlibpath_var=LD_LIBRARY_PATH
13057   shlibpath_overrides_runpath=yes
13058   ;;
13059
13060 nto-qnx*)
13061   version_type=linux
13062   need_lib_prefix=no
13063   need_version=no
13064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065   soname_spec='${libname}${release}${shared_ext}$major'
13066   shlibpath_var=LD_LIBRARY_PATH
13067   shlibpath_overrides_runpath=yes
13068   ;;
13069
13070 openbsd*)
13071   version_type=sunos
13072   sys_lib_dlsearch_path_spec="/usr/lib"
13073   need_lib_prefix=no
13074   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13075   case $host_os in
13076     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13077     *)                         need_version=no  ;;
13078   esac
13079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13080   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13081   shlibpath_var=LD_LIBRARY_PATH
13082   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13083     case $host_os in
13084       openbsd2.[89] | openbsd2.[89].*)
13085         shlibpath_overrides_runpath=no
13086         ;;
13087       *)
13088         shlibpath_overrides_runpath=yes
13089         ;;
13090       esac
13091   else
13092     shlibpath_overrides_runpath=yes
13093   fi
13094   ;;
13095
13096 os2*)
13097   libname_spec='$name'
13098   shrext_cmds=".dll"
13099   need_lib_prefix=no
13100   library_names_spec='$libname${shared_ext} $libname.a'
13101   dynamic_linker='OS/2 ld.exe'
13102   shlibpath_var=LIBPATH
13103   ;;
13104
13105 osf3* | osf4* | osf5*)
13106   version_type=osf
13107   need_lib_prefix=no
13108   need_version=no
13109   soname_spec='${libname}${release}${shared_ext}$major'
13110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111   shlibpath_var=LD_LIBRARY_PATH
13112   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13113   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13114   ;;
13115
13116 rdos*)
13117   dynamic_linker=no
13118   ;;
13119
13120 solaris*)
13121   version_type=linux
13122   need_lib_prefix=no
13123   need_version=no
13124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125   soname_spec='${libname}${release}${shared_ext}$major'
13126   shlibpath_var=LD_LIBRARY_PATH
13127   shlibpath_overrides_runpath=yes
13128   hardcode_into_libs=yes
13129   # ldd complains unless libraries are executable
13130   postinstall_cmds='chmod +x $lib'
13131   ;;
13132
13133 sunos4*)
13134   version_type=sunos
13135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13136   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13137   shlibpath_var=LD_LIBRARY_PATH
13138   shlibpath_overrides_runpath=yes
13139   if test "$with_gnu_ld" = yes; then
13140     need_lib_prefix=no
13141   fi
13142   need_version=yes
13143   ;;
13144
13145 sysv4 | sysv4.3*)
13146   version_type=linux
13147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148   soname_spec='${libname}${release}${shared_ext}$major'
13149   shlibpath_var=LD_LIBRARY_PATH
13150   case $host_vendor in
13151     sni)
13152       shlibpath_overrides_runpath=no
13153       need_lib_prefix=no
13154       export_dynamic_flag_spec='${wl}-Blargedynsym'
13155       runpath_var=LD_RUN_PATH
13156       ;;
13157     siemens)
13158       need_lib_prefix=no
13159       ;;
13160     motorola)
13161       need_lib_prefix=no
13162       need_version=no
13163       shlibpath_overrides_runpath=no
13164       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13165       ;;
13166   esac
13167   ;;
13168
13169 sysv4*MP*)
13170   if test -d /usr/nec ;then
13171     version_type=linux
13172     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13173     soname_spec='$libname${shared_ext}.$major'
13174     shlibpath_var=LD_LIBRARY_PATH
13175   fi
13176   ;;
13177
13178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13179   version_type=freebsd-elf
13180   need_lib_prefix=no
13181   need_version=no
13182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13183   soname_spec='${libname}${release}${shared_ext}$major'
13184   shlibpath_var=LD_LIBRARY_PATH
13185   hardcode_into_libs=yes
13186   if test "$with_gnu_ld" = yes; then
13187     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13188     shlibpath_overrides_runpath=no
13189   else
13190     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13191     shlibpath_overrides_runpath=yes
13192     case $host_os in
13193       sco3.2v5*)
13194         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13195         ;;
13196     esac
13197   fi
13198   sys_lib_dlsearch_path_spec='/usr/lib'
13199   ;;
13200
13201 uts4*)
13202   version_type=linux
13203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204   soname_spec='${libname}${release}${shared_ext}$major'
13205   shlibpath_var=LD_LIBRARY_PATH
13206   ;;
13207
13208 *)
13209   dynamic_linker=no
13210   ;;
13211 esac
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13213 $as_echo "$dynamic_linker" >&6; }
13214 test "$dynamic_linker" = no && can_build_shared=no
13215
13216 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13217   $as_echo_n "(cached) " >&6
13218 else
13219   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13220 fi
13221
13222 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13223 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13224   $as_echo_n "(cached) " >&6
13225 else
13226   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13227 fi
13228
13229 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13230
13231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13232 if test "$GCC" = yes; then
13233   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13234 fi
13235
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13237 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13238 hardcode_action_CXX=
13239 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13240    test -n "$runpath_var_CXX" || \
13241    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13242
13243   # We can hardcode non-existant directories.
13244   if test "$hardcode_direct_CXX" != no &&
13245      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13246      # have to relink, otherwise we might link with an installed library
13247      # when we should be linking with a yet-to-be-installed one
13248      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13249      test "$hardcode_minus_L_CXX" != no; then
13250     # Linking always hardcodes the temporary library directory.
13251     hardcode_action_CXX=relink
13252   else
13253     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13254     hardcode_action_CXX=immediate
13255   fi
13256 else
13257   # We cannot hardcode anything, or else we can only hardcode existing
13258   # directories.
13259   hardcode_action_CXX=unsupported
13260 fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13262 $as_echo "$hardcode_action_CXX" >&6; }
13263
13264 if test "$hardcode_action_CXX" = relink; then
13265   # Fast installation is not supported
13266   enable_fast_install=no
13267 elif test "$shlibpath_overrides_runpath" = yes ||
13268      test "$enable_shared" = no; then
13269   # Fast installation is not necessary
13270   enable_fast_install=needless
13271 fi
13272
13273
13274 # The else clause should only fire when bootstrapping the
13275 # libtool distribution, otherwise you forgot to ship ltmain.sh
13276 # with your package, and you will get complaints that there are
13277 # no rules to generate ltmain.sh.
13278 if test -f "$ltmain"; then
13279   # See if we are running on zsh, and set the options which allow our commands through
13280   # without removal of \ escapes.
13281   if test -n "${ZSH_VERSION+set}" ; then
13282     setopt NO_GLOB_SUBST
13283   fi
13284   # Now quote all the things that may contain metacharacters while being
13285   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13286   # variables and quote the copies for generation of the libtool script.
13287   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13288     SED SHELL STRIP \
13289     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13290     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13291     deplibs_check_method reload_flag reload_cmds need_locks \
13292     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13293     lt_cv_sys_global_symbol_to_c_name_address \
13294     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13295     old_postinstall_cmds old_postuninstall_cmds \
13296     compiler_CXX \
13297     CC_CXX \
13298     LD_CXX \
13299     lt_prog_compiler_wl_CXX \
13300     lt_prog_compiler_pic_CXX \
13301     lt_prog_compiler_static_CXX \
13302     lt_prog_compiler_no_builtin_flag_CXX \
13303     export_dynamic_flag_spec_CXX \
13304     thread_safe_flag_spec_CXX \
13305     whole_archive_flag_spec_CXX \
13306     enable_shared_with_static_runtimes_CXX \
13307     old_archive_cmds_CXX \
13308     old_archive_from_new_cmds_CXX \
13309     predep_objects_CXX \
13310     postdep_objects_CXX \
13311     predeps_CXX \
13312     postdeps_CXX \
13313     compiler_lib_search_path_CXX \
13314     compiler_lib_search_dirs_CXX \
13315     archive_cmds_CXX \
13316     archive_expsym_cmds_CXX \
13317     postinstall_cmds_CXX \
13318     postuninstall_cmds_CXX \
13319     old_archive_from_expsyms_cmds_CXX \
13320     allow_undefined_flag_CXX \
13321     no_undefined_flag_CXX \
13322     export_symbols_cmds_CXX \
13323     hardcode_libdir_flag_spec_CXX \
13324     hardcode_libdir_flag_spec_ld_CXX \
13325     hardcode_libdir_separator_CXX \
13326     hardcode_automatic_CXX \
13327     module_cmds_CXX \
13328     module_expsym_cmds_CXX \
13329     lt_cv_prog_compiler_c_o_CXX \
13330     fix_srcfile_path_CXX \
13331     exclude_expsyms_CXX \
13332     include_expsyms_CXX; do
13333
13334     case $var in
13335     old_archive_cmds_CXX | \
13336     old_archive_from_new_cmds_CXX | \
13337     archive_cmds_CXX | \
13338     archive_expsym_cmds_CXX | \
13339     module_cmds_CXX | \
13340     module_expsym_cmds_CXX | \
13341     old_archive_from_expsyms_cmds_CXX | \
13342     export_symbols_cmds_CXX | \
13343     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13344     postinstall_cmds | postuninstall_cmds | \
13345     old_postinstall_cmds | old_postuninstall_cmds | \
13346     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13347       # Double-quote double-evaled strings.
13348       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13349       ;;
13350     *)
13351       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13352       ;;
13353     esac
13354   done
13355
13356   case $lt_echo in
13357   *'\$0 --fallback-echo"')
13358     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13359     ;;
13360   esac
13361
13362 cfgfile="$ofile"
13363
13364   cat <<__EOF__ >> "$cfgfile"
13365 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13366
13367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13368
13369 # Shell to use when invoking shell scripts.
13370 SHELL=$lt_SHELL
13371
13372 # Whether or not to build shared libraries.
13373 build_libtool_libs=$enable_shared
13374
13375 # Whether or not to build static libraries.
13376 build_old_libs=$enable_static
13377
13378 # Whether or not to add -lc for building shared libraries.
13379 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13380
13381 # Whether or not to disallow shared libs when runtime libs are static
13382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13383
13384 # Whether or not to optimize for fast installation.
13385 fast_install=$enable_fast_install
13386
13387 # The host system.
13388 host_alias=$host_alias
13389 host=$host
13390 host_os=$host_os
13391
13392 # The build system.
13393 build_alias=$build_alias
13394 build=$build
13395 build_os=$build_os
13396
13397 # An echo program that does not interpret backslashes.
13398 echo=$lt_echo
13399
13400 # The archiver.
13401 AR=$lt_AR
13402 AR_FLAGS=$lt_AR_FLAGS
13403
13404 # A C compiler.
13405 LTCC=$lt_LTCC
13406
13407 # LTCC compiler flags.
13408 LTCFLAGS=$lt_LTCFLAGS
13409
13410 # A language-specific compiler.
13411 CC=$lt_compiler_CXX
13412
13413 # Is the compiler the GNU C compiler?
13414 with_gcc=$GCC_CXX
13415
13416 # An ERE matcher.
13417 EGREP=$lt_EGREP
13418
13419 # The linker used to build libraries.
13420 LD=$lt_LD_CXX
13421
13422 # Whether we need hard or soft links.
13423 LN_S=$lt_LN_S
13424
13425 # A BSD-compatible nm program.
13426 NM=$lt_NM
13427
13428 # A symbol stripping program
13429 STRIP=$lt_STRIP
13430
13431 # Used to examine libraries when file_magic_cmd begins "file"
13432 MAGIC_CMD=$MAGIC_CMD
13433
13434 # Used on cygwin: DLL creation program.
13435 DLLTOOL="$DLLTOOL"
13436
13437 # Used on cygwin: object dumper.
13438 OBJDUMP="$OBJDUMP"
13439
13440 # Used on cygwin: assembler.
13441 AS="$AS"
13442
13443 # The name of the directory that contains temporary libtool files.
13444 objdir=$objdir
13445
13446 # How to create reloadable object files.
13447 reload_flag=$lt_reload_flag
13448 reload_cmds=$lt_reload_cmds
13449
13450 # How to pass a linker flag through the compiler.
13451 wl=$lt_lt_prog_compiler_wl_CXX
13452
13453 # Object file suffix (normally "o").
13454 objext="$ac_objext"
13455
13456 # Old archive suffix (normally "a").
13457 libext="$libext"
13458
13459 # Shared library suffix (normally ".so").
13460 shrext_cmds='$shrext_cmds'
13461
13462 # Executable file suffix (normally "").
13463 exeext="$exeext"
13464
13465 # Additional compiler flags for building library objects.
13466 pic_flag=$lt_lt_prog_compiler_pic_CXX
13467 pic_mode=$pic_mode
13468
13469 # What is the maximum length of a command?
13470 max_cmd_len=$lt_cv_sys_max_cmd_len
13471
13472 # Does compiler simultaneously support -c and -o options?
13473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13474
13475 # Must we lock files when doing compilation?
13476 need_locks=$lt_need_locks
13477
13478 # Do we need the lib prefix for modules?
13479 need_lib_prefix=$need_lib_prefix
13480
13481 # Do we need a version for libraries?
13482 need_version=$need_version
13483
13484 # Whether dlopen is supported.
13485 dlopen_support=$enable_dlopen
13486
13487 # Whether dlopen of programs is supported.
13488 dlopen_self=$enable_dlopen_self
13489
13490 # Whether dlopen of statically linked programs is supported.
13491 dlopen_self_static=$enable_dlopen_self_static
13492
13493 # Compiler flag to prevent dynamic linking.
13494 link_static_flag=$lt_lt_prog_compiler_static_CXX
13495
13496 # Compiler flag to turn off builtin functions.
13497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13498
13499 # Compiler flag to allow reflexive dlopens.
13500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13501
13502 # Compiler flag to generate shared objects directly from archives.
13503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13504
13505 # Compiler flag to generate thread-safe objects.
13506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13507
13508 # Library versioning type.
13509 version_type=$version_type
13510
13511 # Format of library name prefix.
13512 libname_spec=$lt_libname_spec
13513
13514 # List of archive names.  First name is the real one, the rest are links.
13515 # The last name is the one that the linker finds with -lNAME.
13516 library_names_spec=$lt_library_names_spec
13517
13518 # The coded name of the library, if different from the real name.
13519 soname_spec=$lt_soname_spec
13520
13521 # Commands used to build and install an old-style archive.
13522 RANLIB=$lt_RANLIB
13523 old_archive_cmds=$lt_old_archive_cmds_CXX
13524 old_postinstall_cmds=$lt_old_postinstall_cmds
13525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13526
13527 # Create an old-style archive from a shared archive.
13528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13529
13530 # Create a temporary old-style archive to link instead of a shared archive.
13531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13532
13533 # Commands used to build and install a shared archive.
13534 archive_cmds=$lt_archive_cmds_CXX
13535 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13536 postinstall_cmds=$lt_postinstall_cmds
13537 postuninstall_cmds=$lt_postuninstall_cmds
13538
13539 # Commands used to build a loadable module (assumed same as above if empty)
13540 module_cmds=$lt_module_cmds_CXX
13541 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13542
13543 # Commands to strip libraries.
13544 old_striplib=$lt_old_striplib
13545 striplib=$lt_striplib
13546
13547 # Dependencies to place before the objects being linked to create a
13548 # shared library.
13549 predep_objects=$lt_predep_objects_CXX
13550
13551 # Dependencies to place after the objects being linked to create a
13552 # shared library.
13553 postdep_objects=$lt_postdep_objects_CXX
13554
13555 # Dependencies to place before the objects being linked to create a
13556 # shared library.
13557 predeps=$lt_predeps_CXX
13558
13559 # Dependencies to place after the objects being linked to create a
13560 # shared library.
13561 postdeps=$lt_postdeps_CXX
13562
13563 # The directories searched by this compiler when creating a shared
13564 # library
13565 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13566
13567 # The library search path used internally by the compiler when linking
13568 # a shared library.
13569 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13570
13571 # Method to check whether dependent libraries are shared objects.
13572 deplibs_check_method=$lt_deplibs_check_method
13573
13574 # Command to use when deplibs_check_method == file_magic.
13575 file_magic_cmd=$lt_file_magic_cmd
13576
13577 # Flag that allows shared libraries with undefined symbols to be built.
13578 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13579
13580 # Flag that forces no undefined symbols.
13581 no_undefined_flag=$lt_no_undefined_flag_CXX
13582
13583 # Commands used to finish a libtool library installation in a directory.
13584 finish_cmds=$lt_finish_cmds
13585
13586 # Same as above, but a single script fragment to be evaled but not shown.
13587 finish_eval=$lt_finish_eval
13588
13589 # Take the output of nm and produce a listing of raw symbols and C names.
13590 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13591
13592 # Transform the output of nm in a proper C declaration
13593 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13594
13595 # Transform the output of nm in a C name address pair
13596 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13597
13598 # This is the shared library runtime path variable.
13599 runpath_var=$runpath_var
13600
13601 # This is the shared library path variable.
13602 shlibpath_var=$shlibpath_var
13603
13604 # Is shlibpath searched before the hard-coded library search path?
13605 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13606
13607 # How to hardcode a shared library path into an executable.
13608 hardcode_action=$hardcode_action_CXX
13609
13610 # Whether we should hardcode library paths into libraries.
13611 hardcode_into_libs=$hardcode_into_libs
13612
13613 # Flag to hardcode \$libdir into a binary during linking.
13614 # This must work even if \$libdir does not exist.
13615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13616
13617 # If ld is used when linking, flag to hardcode \$libdir into
13618 # a binary during linking. This must work even if \$libdir does
13619 # not exist.
13620 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13621
13622 # Whether we need a single -rpath flag with a separated argument.
13623 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13624
13625 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13626 # resulting binary.
13627 hardcode_direct=$hardcode_direct_CXX
13628
13629 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13630 # resulting binary.
13631 hardcode_minus_L=$hardcode_minus_L_CXX
13632
13633 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13634 # the resulting binary.
13635 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13636
13637 # Set to yes if building a shared library automatically hardcodes DIR into the library
13638 # and all subsequent libraries and executables linked against it.
13639 hardcode_automatic=$hardcode_automatic_CXX
13640
13641 # Variables whose values should be saved in libtool wrapper scripts and
13642 # restored at relink time.
13643 variables_saved_for_relink="$variables_saved_for_relink"
13644
13645 # Whether libtool must link a program against all its dependency libraries.
13646 link_all_deplibs=$link_all_deplibs_CXX
13647
13648 # Compile-time system search path for libraries
13649 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13650
13651 # Run-time system search path for libraries
13652 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13653
13654 # Fix the shell variable \$srcfile for the compiler.
13655 fix_srcfile_path=$lt_fix_srcfile_path
13656
13657 # Set to yes if exported symbols are required.
13658 always_export_symbols=$always_export_symbols_CXX
13659
13660 # The commands to list exported symbols.
13661 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13662
13663 # The commands to extract the exported symbol list from a shared archive.
13664 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13665
13666 # Symbols that should not be listed in the preloaded symbols.
13667 exclude_expsyms=$lt_exclude_expsyms_CXX
13668
13669 # Symbols that must always be exported.
13670 include_expsyms=$lt_include_expsyms_CXX
13671
13672 # ### END LIBTOOL TAG CONFIG: $tagname
13673
13674 __EOF__
13675
13676
13677 else
13678   # If there is no Makefile yet, we rely on a make rule to execute
13679   # `config.status --recheck' to rerun these tests and create the
13680   # libtool script then.
13681   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13682   if test -f "$ltmain_in"; then
13683     test -f Makefile && make "$ltmain"
13684   fi
13685 fi
13686
13687
13688 ac_ext=c
13689 ac_cpp='$CPP $CPPFLAGS'
13690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13693
13694 CC=$lt_save_CC
13695 LDCXX=$LD
13696 LD=$lt_save_LD
13697 GCC=$lt_save_GCC
13698 with_gnu_ldcxx=$with_gnu_ld
13699 with_gnu_ld=$lt_save_with_gnu_ld
13700 lt_cv_path_LDCXX=$lt_cv_path_LD
13701 lt_cv_path_LD=$lt_save_path_LD
13702 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13703 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13704
13705         else
13706           tagname=""
13707         fi
13708         ;;
13709
13710       F77)
13711         if test -n "$F77" && test "X$F77" != "Xno"; then
13712
13713 ac_ext=f
13714 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13715 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13717
13718
13719 archive_cmds_need_lc_F77=no
13720 allow_undefined_flag_F77=
13721 always_export_symbols_F77=no
13722 archive_expsym_cmds_F77=
13723 export_dynamic_flag_spec_F77=
13724 hardcode_direct_F77=no
13725 hardcode_libdir_flag_spec_F77=
13726 hardcode_libdir_flag_spec_ld_F77=
13727 hardcode_libdir_separator_F77=
13728 hardcode_minus_L_F77=no
13729 hardcode_automatic_F77=no
13730 module_cmds_F77=
13731 module_expsym_cmds_F77=
13732 link_all_deplibs_F77=unknown
13733 old_archive_cmds_F77=$old_archive_cmds
13734 no_undefined_flag_F77=
13735 whole_archive_flag_spec_F77=
13736 enable_shared_with_static_runtimes_F77=no
13737
13738 # Source file extension for f77 test sources.
13739 ac_ext=f
13740
13741 # Object file extension for compiled f77 test sources.
13742 objext=o
13743 objext_F77=$objext
13744
13745 # Code to be used in simple compile tests
13746 lt_simple_compile_test_code="\
13747       subroutine t
13748       return
13749       end
13750 "
13751
13752 # Code to be used in simple link tests
13753 lt_simple_link_test_code="\
13754       program t
13755       end
13756 "
13757
13758 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13759
13760 # If no C compiler was specified, use CC.
13761 LTCC=${LTCC-"$CC"}
13762
13763 # If no C compiler flags were specified, use CFLAGS.
13764 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13765
13766 # Allow CC to be a program name with arguments.
13767 compiler=$CC
13768
13769
13770 # save warnings/boilerplate of simple test code
13771 ac_outfile=conftest.$ac_objext
13772 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13773 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13774 _lt_compiler_boilerplate=`cat conftest.err`
13775 $rm conftest*
13776
13777 ac_outfile=conftest.$ac_objext
13778 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13779 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13780 _lt_linker_boilerplate=`cat conftest.err`
13781 $rm -r conftest*
13782
13783
13784 # Allow CC to be a program name with arguments.
13785 lt_save_CC="$CC"
13786 CC=${F77-"f77"}
13787 compiler=$CC
13788 compiler_F77=$CC
13789 for cc_temp in $compiler""; do
13790   case $cc_temp in
13791     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13792     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13793     \-*) ;;
13794     *) break;;
13795   esac
13796 done
13797 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13798
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13801 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13803 $as_echo "$can_build_shared" >&6; }
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13806 $as_echo_n "checking whether to build shared libraries... " >&6; }
13807 test "$can_build_shared" = "no" && enable_shared=no
13808
13809 # On AIX, shared libraries and static libraries use the same namespace, and
13810 # are all built from PIC.
13811 case $host_os in
13812 aix3*)
13813   test "$enable_shared" = yes && enable_static=no
13814   if test -n "$RANLIB"; then
13815     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13816     postinstall_cmds='$RANLIB $lib'
13817   fi
13818   ;;
13819 aix[4-9]*)
13820   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13821     test "$enable_shared" = yes && enable_static=no
13822   fi
13823   ;;
13824 esac
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13826 $as_echo "$enable_shared" >&6; }
13827
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13829 $as_echo_n "checking whether to build static libraries... " >&6; }
13830 # Make sure either enable_shared or enable_static is yes.
13831 test "$enable_shared" = yes || enable_static=yes
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13833 $as_echo "$enable_static" >&6; }
13834
13835 GCC_F77="$G77"
13836 LD_F77="$LD"
13837
13838 lt_prog_compiler_wl_F77=
13839 lt_prog_compiler_pic_F77=
13840 lt_prog_compiler_static_F77=
13841
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13843 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13844
13845   if test "$GCC" = yes; then
13846     lt_prog_compiler_wl_F77='-Wl,'
13847     lt_prog_compiler_static_F77='-static'
13848
13849     case $host_os in
13850       aix*)
13851       # All AIX code is PIC.
13852       if test "$host_cpu" = ia64; then
13853         # AIX 5 now supports IA64 processor
13854         lt_prog_compiler_static_F77='-Bstatic'
13855       fi
13856       ;;
13857
13858     amigaos*)
13859       # FIXME: we need at least 68020 code to build shared libraries, but
13860       # adding the `-m68020' flag to GCC prevents building anything better,
13861       # like `-m68040'.
13862       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13863       ;;
13864
13865     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13866       # PIC is the default for these OSes.
13867       ;;
13868
13869     mingw* | cygwin* | pw32* | os2*)
13870       # This hack is so that the source file can tell whether it is being
13871       # built for inclusion in a dll (and should export symbols for example).
13872       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13873       # (--disable-auto-import) libraries
13874       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13875       ;;
13876
13877     darwin* | rhapsody*)
13878       # PIC is the default on this platform
13879       # Common symbols not allowed in MH_DYLIB files
13880       lt_prog_compiler_pic_F77='-fno-common'
13881       ;;
13882
13883     interix[3-9]*)
13884       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13885       # Instead, we relocate shared libraries at runtime.
13886       ;;
13887
13888     msdosdjgpp*)
13889       # Just because we use GCC doesn't mean we suddenly get shared libraries
13890       # on systems that don't support them.
13891       lt_prog_compiler_can_build_shared_F77=no
13892       enable_shared=no
13893       ;;
13894
13895     sysv4*MP*)
13896       if test -d /usr/nec; then
13897         lt_prog_compiler_pic_F77=-Kconform_pic
13898       fi
13899       ;;
13900
13901     hpux*)
13902       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13903       # not for PA HP-UX.
13904       case $host_cpu in
13905       hppa*64*|ia64*)
13906         # +Z the default
13907         ;;
13908       *)
13909         lt_prog_compiler_pic_F77='-fPIC'
13910         ;;
13911       esac
13912       ;;
13913
13914     *)
13915       lt_prog_compiler_pic_F77='-fPIC'
13916       ;;
13917     esac
13918   else
13919     # PORTME Check for flag to pass linker flags through the system compiler.
13920     case $host_os in
13921     aix*)
13922       lt_prog_compiler_wl_F77='-Wl,'
13923       if test "$host_cpu" = ia64; then
13924         # AIX 5 now supports IA64 processor
13925         lt_prog_compiler_static_F77='-Bstatic'
13926       else
13927         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13928       fi
13929       ;;
13930       darwin*)
13931         # PIC is the default on this platform
13932         # Common symbols not allowed in MH_DYLIB files
13933        case $cc_basename in
13934          xlc*)
13935          lt_prog_compiler_pic_F77='-qnocommon'
13936          lt_prog_compiler_wl_F77='-Wl,'
13937          ;;
13938        esac
13939        ;;
13940
13941     mingw* | cygwin* | pw32* | os2*)
13942       # This hack is so that the source file can tell whether it is being
13943       # built for inclusion in a dll (and should export symbols for example).
13944       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13945       ;;
13946
13947     hpux9* | hpux10* | hpux11*)
13948       lt_prog_compiler_wl_F77='-Wl,'
13949       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13950       # not for PA HP-UX.
13951       case $host_cpu in
13952       hppa*64*|ia64*)
13953         # +Z the default
13954         ;;
13955       *)
13956         lt_prog_compiler_pic_F77='+Z'
13957         ;;
13958       esac
13959       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13960       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13961       ;;
13962
13963     irix5* | irix6* | nonstopux*)
13964       lt_prog_compiler_wl_F77='-Wl,'
13965       # PIC (with -KPIC) is the default.
13966       lt_prog_compiler_static_F77='-non_shared'
13967       ;;
13968
13969     newsos6)
13970       lt_prog_compiler_pic_F77='-KPIC'
13971       lt_prog_compiler_static_F77='-Bstatic'
13972       ;;
13973
13974     linux* | k*bsd*-gnu)
13975       case $cc_basename in
13976       icc* | ecc*)
13977         lt_prog_compiler_wl_F77='-Wl,'
13978         lt_prog_compiler_pic_F77='-KPIC'
13979         lt_prog_compiler_static_F77='-static'
13980         ;;
13981       pgcc* | pgf77* | pgf90* | pgf95*)
13982         # Portland Group compilers (*not* the Pentium gcc compiler,
13983         # which looks to be a dead project)
13984         lt_prog_compiler_wl_F77='-Wl,'
13985         lt_prog_compiler_pic_F77='-fpic'
13986         lt_prog_compiler_static_F77='-Bstatic'
13987         ;;
13988       ccc*)
13989         lt_prog_compiler_wl_F77='-Wl,'
13990         # All Alpha code is PIC.
13991         lt_prog_compiler_static_F77='-non_shared'
13992         ;;
13993       *)
13994         case `$CC -V 2>&1 | sed 5q` in
13995         *Sun\ C*)
13996           # Sun C 5.9
13997           lt_prog_compiler_pic_F77='-KPIC'
13998           lt_prog_compiler_static_F77='-Bstatic'
13999           lt_prog_compiler_wl_F77='-Wl,'
14000           ;;
14001         *Sun\ F*)
14002           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14003           lt_prog_compiler_pic_F77='-KPIC'
14004           lt_prog_compiler_static_F77='-Bstatic'
14005           lt_prog_compiler_wl_F77=''
14006           ;;
14007         esac
14008         ;;
14009       esac
14010       ;;
14011
14012     osf3* | osf4* | osf5*)
14013       lt_prog_compiler_wl_F77='-Wl,'
14014       # All OSF/1 code is PIC.
14015       lt_prog_compiler_static_F77='-non_shared'
14016       ;;
14017
14018     rdos*)
14019       lt_prog_compiler_static_F77='-non_shared'
14020       ;;
14021
14022     solaris*)
14023       lt_prog_compiler_pic_F77='-KPIC'
14024       lt_prog_compiler_static_F77='-Bstatic'
14025       case $cc_basename in
14026       f77* | f90* | f95*)
14027         lt_prog_compiler_wl_F77='-Qoption ld ';;
14028       *)
14029         lt_prog_compiler_wl_F77='-Wl,';;
14030       esac
14031       ;;
14032
14033     sunos4*)
14034       lt_prog_compiler_wl_F77='-Qoption ld '
14035       lt_prog_compiler_pic_F77='-PIC'
14036       lt_prog_compiler_static_F77='-Bstatic'
14037       ;;
14038
14039     sysv4 | sysv4.2uw2* | sysv4.3*)
14040       lt_prog_compiler_wl_F77='-Wl,'
14041       lt_prog_compiler_pic_F77='-KPIC'
14042       lt_prog_compiler_static_F77='-Bstatic'
14043       ;;
14044
14045     sysv4*MP*)
14046       if test -d /usr/nec ;then
14047         lt_prog_compiler_pic_F77='-Kconform_pic'
14048         lt_prog_compiler_static_F77='-Bstatic'
14049       fi
14050       ;;
14051
14052     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14053       lt_prog_compiler_wl_F77='-Wl,'
14054       lt_prog_compiler_pic_F77='-KPIC'
14055       lt_prog_compiler_static_F77='-Bstatic'
14056       ;;
14057
14058     unicos*)
14059       lt_prog_compiler_wl_F77='-Wl,'
14060       lt_prog_compiler_can_build_shared_F77=no
14061       ;;
14062
14063     uts4*)
14064       lt_prog_compiler_pic_F77='-pic'
14065       lt_prog_compiler_static_F77='-Bstatic'
14066       ;;
14067
14068     *)
14069       lt_prog_compiler_can_build_shared_F77=no
14070       ;;
14071     esac
14072   fi
14073
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14075 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14076
14077 #
14078 # Check to make sure the PIC flag actually works.
14079 #
14080 if test -n "$lt_prog_compiler_pic_F77"; then
14081
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14083 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14084 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14085   $as_echo_n "(cached) " >&6
14086 else
14087   lt_cv_prog_compiler_pic_works_F77=no
14088   ac_outfile=conftest.$ac_objext
14089    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14090    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14091    # Insert the option either (1) after the last *FLAGS variable, or
14092    # (2) before a word containing "conftest.", or (3) at the end.
14093    # Note that $ac_compile itself does not contain backslashes and begins
14094    # with a dollar sign (not a hyphen), so the echo should work correctly.
14095    # The option is referenced via a variable to avoid confusing sed.
14096    lt_compile=`echo "$ac_compile" | $SED \
14097    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14098    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14099    -e 's:$: $lt_compiler_flag:'`
14100    (eval echo "\"\$as_me:14096: $lt_compile\"" >&5)
14101    (eval "$lt_compile" 2>conftest.err)
14102    ac_status=$?
14103    cat conftest.err >&5
14104    echo "$as_me:14100: \$? = $ac_status" >&5
14105    if (exit $ac_status) && test -s "$ac_outfile"; then
14106      # The compiler can only warn and ignore the option if not recognized
14107      # So say no if there are warnings other than the usual output.
14108      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14109      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14110      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14111        lt_cv_prog_compiler_pic_works_F77=yes
14112      fi
14113    fi
14114    $rm conftest*
14115
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14118 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14119
14120 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14121     case $lt_prog_compiler_pic_F77 in
14122      "" | " "*) ;;
14123      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14124      esac
14125 else
14126     lt_prog_compiler_pic_F77=
14127      lt_prog_compiler_can_build_shared_F77=no
14128 fi
14129
14130 fi
14131 case $host_os in
14132   # For platforms which do not support PIC, -DPIC is meaningless:
14133   *djgpp*)
14134     lt_prog_compiler_pic_F77=
14135     ;;
14136   *)
14137     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14138     ;;
14139 esac
14140
14141 #
14142 # Check to make sure the static flag actually works.
14143 #
14144 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14146 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14147 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14148   $as_echo_n "(cached) " >&6
14149 else
14150   lt_cv_prog_compiler_static_works_F77=no
14151    save_LDFLAGS="$LDFLAGS"
14152    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14153    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14154    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14155      # The linker can only warn and ignore the option if not recognized
14156      # So say no if there are warnings
14157      if test -s conftest.err; then
14158        # Append any errors to the config.log.
14159        cat conftest.err 1>&5
14160        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14161        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14162        if diff conftest.exp conftest.er2 >/dev/null; then
14163          lt_cv_prog_compiler_static_works_F77=yes
14164        fi
14165      else
14166        lt_cv_prog_compiler_static_works_F77=yes
14167      fi
14168    fi
14169    $rm -r conftest*
14170    LDFLAGS="$save_LDFLAGS"
14171
14172 fi
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14174 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14175
14176 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14177     :
14178 else
14179     lt_prog_compiler_static_F77=
14180 fi
14181
14182
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14185 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14186   $as_echo_n "(cached) " >&6
14187 else
14188   lt_cv_prog_compiler_c_o_F77=no
14189    $rm -r conftest 2>/dev/null
14190    mkdir conftest
14191    cd conftest
14192    mkdir out
14193    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14194
14195    lt_compiler_flag="-o out/conftest2.$ac_objext"
14196    # Insert the option either (1) after the last *FLAGS variable, or
14197    # (2) before a word containing "conftest.", or (3) at the end.
14198    # Note that $ac_compile itself does not contain backslashes and begins
14199    # with a dollar sign (not a hyphen), so the echo should work correctly.
14200    lt_compile=`echo "$ac_compile" | $SED \
14201    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14203    -e 's:$: $lt_compiler_flag:'`
14204    (eval echo "\"\$as_me:14200: $lt_compile\"" >&5)
14205    (eval "$lt_compile" 2>out/conftest.err)
14206    ac_status=$?
14207    cat out/conftest.err >&5
14208    echo "$as_me:14204: \$? = $ac_status" >&5
14209    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14210    then
14211      # The compiler can only warn and ignore the option if not recognized
14212      # So say no if there are warnings
14213      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14214      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14215      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14216        lt_cv_prog_compiler_c_o_F77=yes
14217      fi
14218    fi
14219    chmod u+w . 2>&5
14220    $rm conftest*
14221    # SGI C++ compiler will create directory out/ii_files/ for
14222    # template instantiation
14223    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14224    $rm out/* && rmdir out
14225    cd ..
14226    rmdir conftest
14227    $rm conftest*
14228
14229 fi
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14231 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14232
14233
14234 hard_links="nottested"
14235 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14236   # do not overwrite the value of need_locks provided by the user
14237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14238 $as_echo_n "checking if we can lock with hard links... " >&6; }
14239   hard_links=yes
14240   $rm conftest*
14241   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14242   touch conftest.a
14243   ln conftest.a conftest.b 2>&5 || hard_links=no
14244   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14246 $as_echo "$hard_links" >&6; }
14247   if test "$hard_links" = no; then
14248     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14249 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14250     need_locks=warn
14251   fi
14252 else
14253   need_locks=no
14254 fi
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14258
14259   runpath_var=
14260   allow_undefined_flag_F77=
14261   enable_shared_with_static_runtimes_F77=no
14262   archive_cmds_F77=
14263   archive_expsym_cmds_F77=
14264   old_archive_From_new_cmds_F77=
14265   old_archive_from_expsyms_cmds_F77=
14266   export_dynamic_flag_spec_F77=
14267   whole_archive_flag_spec_F77=
14268   thread_safe_flag_spec_F77=
14269   hardcode_libdir_flag_spec_F77=
14270   hardcode_libdir_flag_spec_ld_F77=
14271   hardcode_libdir_separator_F77=
14272   hardcode_direct_F77=no
14273   hardcode_minus_L_F77=no
14274   hardcode_shlibpath_var_F77=unsupported
14275   link_all_deplibs_F77=unknown
14276   hardcode_automatic_F77=no
14277   module_cmds_F77=
14278   module_expsym_cmds_F77=
14279   always_export_symbols_F77=no
14280   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14281   # include_expsyms should be a list of space-separated symbols to be *always*
14282   # included in the symbol list
14283   include_expsyms_F77=
14284   # exclude_expsyms can be an extended regexp of symbols to exclude
14285   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14286   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14287   # as well as any symbol that contains `d'.
14288   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14289   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14290   # platforms (ab)use it in PIC code, but their linkers get confused if
14291   # the symbol is explicitly referenced.  Since portable code cannot
14292   # rely on this symbol name, it's probably fine to never include it in
14293   # preloaded symbol tables.
14294   # Exclude shared library initialization/finalization symbols.
14295   extract_expsyms_cmds=
14296   # Just being paranoid about ensuring that cc_basename is set.
14297   for cc_temp in $compiler""; do
14298   case $cc_temp in
14299     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14300     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14301     \-*) ;;
14302     *) break;;
14303   esac
14304 done
14305 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14306
14307   case $host_os in
14308   cygwin* | mingw* | pw32*)
14309     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14310     # When not using gcc, we currently assume that we are using
14311     # Microsoft Visual C++.
14312     if test "$GCC" != yes; then
14313       with_gnu_ld=no
14314     fi
14315     ;;
14316   interix*)
14317     # we just hope/assume this is gcc and not c89 (= MSVC++)
14318     with_gnu_ld=yes
14319     ;;
14320   openbsd*)
14321     with_gnu_ld=no
14322     ;;
14323   esac
14324
14325   ld_shlibs_F77=yes
14326   if test "$with_gnu_ld" = yes; then
14327     # If archive_cmds runs LD, not CC, wlarc should be empty
14328     wlarc='${wl}'
14329
14330     # Set some defaults for GNU ld with shared library support. These
14331     # are reset later if shared libraries are not supported. Putting them
14332     # here allows them to be overridden if necessary.
14333     runpath_var=LD_RUN_PATH
14334     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14335     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14336     # ancient GNU ld didn't support --whole-archive et. al.
14337     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14338         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14339       else
14340         whole_archive_flag_spec_F77=
14341     fi
14342     supports_anon_versioning=no
14343     case `$LD -v 2>/dev/null` in
14344       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14345       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14346       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14347       *\ 2.11.*) ;; # other 2.11 versions
14348       *) supports_anon_versioning=yes ;;
14349     esac
14350
14351     # See if GNU ld supports shared libraries.
14352     case $host_os in
14353     aix[3-9]*)
14354       # On AIX/PPC, the GNU linker is very broken
14355       if test "$host_cpu" != ia64; then
14356         ld_shlibs_F77=no
14357         cat <<EOF 1>&2
14358
14359 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14360 *** to be unable to reliably create shared libraries on AIX.
14361 *** Therefore, libtool is disabling shared libraries support.  If you
14362 *** really care for shared libraries, you may want to modify your PATH
14363 *** so that a non-GNU linker is found, and then restart.
14364
14365 EOF
14366       fi
14367       ;;
14368
14369     amigaos*)
14370       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)'
14371       hardcode_libdir_flag_spec_F77='-L$libdir'
14372       hardcode_minus_L_F77=yes
14373
14374       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14375       # that the semantics of dynamic libraries on AmigaOS, at least up
14376       # to version 4, is to share data among multiple programs linked
14377       # with the same dynamic library.  Since this doesn't match the
14378       # behavior of shared libraries on other platforms, we can't use
14379       # them.
14380       ld_shlibs_F77=no
14381       ;;
14382
14383     beos*)
14384       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14385         allow_undefined_flag_F77=unsupported
14386         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14387         # support --undefined.  This deserves some investigation.  FIXME
14388         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14389       else
14390         ld_shlibs_F77=no
14391       fi
14392       ;;
14393
14394     cygwin* | mingw* | pw32*)
14395       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14396       # as there is no search path for DLLs.
14397       hardcode_libdir_flag_spec_F77='-L$libdir'
14398       allow_undefined_flag_F77=unsupported
14399       always_export_symbols_F77=no
14400       enable_shared_with_static_runtimes_F77=yes
14401       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14402
14403       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14404         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14405         # If the export-symbols file already is a .def file (1st line
14406         # is EXPORTS), use it as is; otherwise, prepend...
14407         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14408           cp $export_symbols $output_objdir/$soname.def;
14409         else
14410           echo EXPORTS > $output_objdir/$soname.def;
14411           cat $export_symbols >> $output_objdir/$soname.def;
14412         fi~
14413         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14414       else
14415         ld_shlibs_F77=no
14416       fi
14417       ;;
14418
14419     interix[3-9]*)
14420       hardcode_direct_F77=no
14421       hardcode_shlibpath_var_F77=no
14422       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14423       export_dynamic_flag_spec_F77='${wl}-E'
14424       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14425       # Instead, shared libraries are loaded at an image base (0x10000000 by
14426       # default) and relocated if they conflict, which is a slow very memory
14427       # consuming and fragmenting process.  To avoid this, we pick a random,
14428       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14429       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14430       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'
14431       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'
14432       ;;
14433
14434     gnu* | linux* | k*bsd*-gnu)
14435       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14436         tmp_addflag=
14437         case $cc_basename,$host_cpu in
14438         pgcc*)                          # Portland Group C compiler
14439           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'
14440           tmp_addflag=' $pic_flag'
14441           ;;
14442         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14443           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'
14444           tmp_addflag=' $pic_flag -Mnomain' ;;
14445         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14446           tmp_addflag=' -i_dynamic' ;;
14447         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14448           tmp_addflag=' -i_dynamic -nofor_main' ;;
14449         ifc* | ifort*)                  # Intel Fortran compiler
14450           tmp_addflag=' -nofor_main' ;;
14451         esac
14452         case `$CC -V 2>&1 | sed 5q` in
14453         *Sun\ C*)                       # Sun C 5.9
14454           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'
14455           tmp_sharedflag='-G' ;;
14456         *Sun\ F*)                       # Sun Fortran 8.3
14457           tmp_sharedflag='-G' ;;
14458         *)
14459           tmp_sharedflag='-shared' ;;
14460         esac
14461         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462
14463         if test $supports_anon_versioning = yes; then
14464           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14465   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14466   $echo "local: *; };" >> $output_objdir/$libname.ver~
14467           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14468         fi
14469         link_all_deplibs_F77=no
14470       else
14471         ld_shlibs_F77=no
14472       fi
14473       ;;
14474
14475     netbsd* | netbsdelf*-gnu)
14476       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14477         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14478         wlarc=
14479       else
14480         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14482       fi
14483       ;;
14484
14485     solaris*)
14486       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14487         ld_shlibs_F77=no
14488         cat <<EOF 1>&2
14489
14490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14491 *** create shared libraries on Solaris systems.  Therefore, libtool
14492 *** is disabling shared libraries support.  We urge you to upgrade GNU
14493 *** binutils to release 2.9.1 or newer.  Another option is to modify
14494 *** your PATH or compiler configuration so that the native linker is
14495 *** used, and then restart.
14496
14497 EOF
14498       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14499         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14500         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14501       else
14502         ld_shlibs_F77=no
14503       fi
14504       ;;
14505
14506     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14507       case `$LD -v 2>&1` in
14508         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14509         ld_shlibs_F77=no
14510         cat <<_LT_EOF 1>&2
14511
14512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14513 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14514 *** is disabling shared libraries support.  We urge you to upgrade GNU
14515 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14516 *** your PATH or compiler configuration so that the native linker is
14517 *** used, and then restart.
14518
14519 _LT_EOF
14520         ;;
14521         *)
14522           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14523             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14524             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14525             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14526           else
14527             ld_shlibs_F77=no
14528           fi
14529         ;;
14530       esac
14531       ;;
14532
14533     sunos4*)
14534       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14535       wlarc=
14536       hardcode_direct_F77=yes
14537       hardcode_shlibpath_var_F77=no
14538       ;;
14539
14540     *)
14541       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14542         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14543         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14544       else
14545         ld_shlibs_F77=no
14546       fi
14547       ;;
14548     esac
14549
14550     if test "$ld_shlibs_F77" = no; then
14551       runpath_var=
14552       hardcode_libdir_flag_spec_F77=
14553       export_dynamic_flag_spec_F77=
14554       whole_archive_flag_spec_F77=
14555     fi
14556   else
14557     # PORTME fill in a description of your system's linker (not GNU ld)
14558     case $host_os in
14559     aix3*)
14560       allow_undefined_flag_F77=unsupported
14561       always_export_symbols_F77=yes
14562       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'
14563       # Note: this linker hardcodes the directories in LIBPATH if there
14564       # are no directories specified by -L.
14565       hardcode_minus_L_F77=yes
14566       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14567         # Neither direct hardcoding nor static linking is supported with a
14568         # broken collect2.
14569         hardcode_direct_F77=unsupported
14570       fi
14571       ;;
14572
14573     aix[4-9]*)
14574       if test "$host_cpu" = ia64; then
14575         # On IA64, the linker does run time linking by default, so we don't
14576         # have to do anything special.
14577         aix_use_runtimelinking=no
14578         exp_sym_flag='-Bexport'
14579         no_entry_flag=""
14580       else
14581         # If we're using GNU nm, then we don't want the "-C" option.
14582         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14583         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14584           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'
14585         else
14586           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'
14587         fi
14588         aix_use_runtimelinking=no
14589
14590         # Test if we are trying to use run time linking or normal
14591         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14592         # need to do runtime linking.
14593         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14594           for ld_flag in $LDFLAGS; do
14595           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14596             aix_use_runtimelinking=yes
14597             break
14598           fi
14599           done
14600           ;;
14601         esac
14602
14603         exp_sym_flag='-bexport'
14604         no_entry_flag='-bnoentry'
14605       fi
14606
14607       # When large executables or shared objects are built, AIX ld can
14608       # have problems creating the table of contents.  If linking a library
14609       # or program results in "error TOC overflow" add -mminimal-toc to
14610       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14611       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14612
14613       archive_cmds_F77=''
14614       hardcode_direct_F77=yes
14615       hardcode_libdir_separator_F77=':'
14616       link_all_deplibs_F77=yes
14617
14618       if test "$GCC" = yes; then
14619         case $host_os in aix4.[012]|aix4.[012].*)
14620         # We only want to do this on AIX 4.2 and lower, the check
14621         # below for broken collect2 doesn't work under 4.3+
14622           collect2name=`${CC} -print-prog-name=collect2`
14623           if test -f "$collect2name" && \
14624            strings "$collect2name" | grep resolve_lib_name >/dev/null
14625           then
14626           # We have reworked collect2
14627           :
14628           else
14629           # We have old collect2
14630           hardcode_direct_F77=unsupported
14631           # It fails to find uninstalled libraries when the uninstalled
14632           # path is not listed in the libpath.  Setting hardcode_minus_L
14633           # to unsupported forces relinking
14634           hardcode_minus_L_F77=yes
14635           hardcode_libdir_flag_spec_F77='-L$libdir'
14636           hardcode_libdir_separator_F77=
14637           fi
14638           ;;
14639         esac
14640         shared_flag='-shared'
14641         if test "$aix_use_runtimelinking" = yes; then
14642           shared_flag="$shared_flag "'${wl}-G'
14643         fi
14644       else
14645         # not using gcc
14646         if test "$host_cpu" = ia64; then
14647         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14648         # chokes on -Wl,-G. The following line is correct:
14649           shared_flag='-G'
14650         else
14651           if test "$aix_use_runtimelinking" = yes; then
14652             shared_flag='${wl}-G'
14653           else
14654             shared_flag='${wl}-bM:SRE'
14655           fi
14656         fi
14657       fi
14658
14659       # It seems that -bexpall does not export symbols beginning with
14660       # underscore (_), so it is better to generate a list of symbols to export.
14661       always_export_symbols_F77=yes
14662       if test "$aix_use_runtimelinking" = yes; then
14663         # Warning - without using the other runtime loading flags (-brtl),
14664         # -berok will link without error, but may produce a broken library.
14665         allow_undefined_flag_F77='-berok'
14666        # Determine the default libpath from the value encoded in an empty executable.
14667        cat > conftest.$ac_ext <<_ACEOF
14668       program main
14669
14670       end
14671 _ACEOF
14672 if ac_fn_f77_try_link "$LINENO"; then :
14673
14674 lt_aix_libpath_sed='
14675     /Import File Strings/,/^$/ {
14676         /^0/ {
14677             s/^0  *\(.*\)$/\1/
14678             p
14679         }
14680     }'
14681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14682 # Check for a 64-bit object if we didn't find anything.
14683 if test -z "$aix_libpath"; then
14684   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14685 fi
14686 fi
14687 rm -f core conftest.err conftest.$ac_objext \
14688     conftest$ac_exeext conftest.$ac_ext
14689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14690
14691        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14692         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"
14693        else
14694         if test "$host_cpu" = ia64; then
14695           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14696           allow_undefined_flag_F77="-z nodefs"
14697           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"
14698         else
14699          # Determine the default libpath from the value encoded in an empty executable.
14700          cat > conftest.$ac_ext <<_ACEOF
14701       program main
14702
14703       end
14704 _ACEOF
14705 if ac_fn_f77_try_link "$LINENO"; then :
14706
14707 lt_aix_libpath_sed='
14708     /Import File Strings/,/^$/ {
14709         /^0/ {
14710             s/^0  *\(.*\)$/\1/
14711             p
14712         }
14713     }'
14714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14715 # Check for a 64-bit object if we didn't find anything.
14716 if test -z "$aix_libpath"; then
14717   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14718 fi
14719 fi
14720 rm -f core conftest.err conftest.$ac_objext \
14721     conftest$ac_exeext conftest.$ac_ext
14722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14723
14724          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14725           # Warning - without using the other run time loading flags,
14726           # -berok will link without error, but may produce a broken library.
14727           no_undefined_flag_F77=' ${wl}-bernotok'
14728           allow_undefined_flag_F77=' ${wl}-berok'
14729           # Exported symbols can be pulled into shared objects from archives
14730           whole_archive_flag_spec_F77='$convenience'
14731           archive_cmds_need_lc_F77=yes
14732           # This is similar to how AIX traditionally builds its shared libraries.
14733           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'
14734         fi
14735       fi
14736       ;;
14737
14738     amigaos*)
14739       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)'
14740       hardcode_libdir_flag_spec_F77='-L$libdir'
14741       hardcode_minus_L_F77=yes
14742       # see comment about different semantics on the GNU ld section
14743       ld_shlibs_F77=no
14744       ;;
14745
14746     bsdi[45]*)
14747       export_dynamic_flag_spec_F77=-rdynamic
14748       ;;
14749
14750     cygwin* | mingw* | pw32*)
14751       # When not using gcc, we currently assume that we are using
14752       # Microsoft Visual C++.
14753       # hardcode_libdir_flag_spec is actually meaningless, as there is
14754       # no search path for DLLs.
14755       hardcode_libdir_flag_spec_F77=' '
14756       allow_undefined_flag_F77=unsupported
14757       # Tell ltmain to make .lib files, not .a files.
14758       libext=lib
14759       # Tell ltmain to make .dll files, not .so files.
14760       shrext_cmds=".dll"
14761       # FIXME: Setting linknames here is a bad hack.
14762       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14763       # The linker will automatically build a .lib file if we build a DLL.
14764       old_archive_From_new_cmds_F77='true'
14765       # FIXME: Should let the user specify the lib program.
14766       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14767       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14768       enable_shared_with_static_runtimes_F77=yes
14769       ;;
14770
14771     darwin* | rhapsody*)
14772       case $host_os in
14773         rhapsody* | darwin1.[012])
14774          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14775          ;;
14776        *) # Darwin 1.3 on
14777          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14778            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14779          else
14780            case ${MACOSX_DEPLOYMENT_TARGET} in
14781              10.[012])
14782                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14783                ;;
14784              10.*)
14785                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14786                ;;
14787            esac
14788          fi
14789          ;;
14790       esac
14791       archive_cmds_need_lc_F77=no
14792       hardcode_direct_F77=no
14793       hardcode_automatic_F77=yes
14794       hardcode_shlibpath_var_F77=unsupported
14795       whole_archive_flag_spec_F77=''
14796       link_all_deplibs_F77=yes
14797     if test "$GCC" = yes ; then
14798         output_verbose_link_cmd='echo'
14799         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}"
14800         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14801         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}"
14802         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}"
14803     else
14804       case $cc_basename in
14805         xlc*)
14806          output_verbose_link_cmd='echo'
14807          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14808          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14809           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14810          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}'
14811           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}'
14812           ;;
14813        *)
14814          ld_shlibs_F77=no
14815           ;;
14816       esac
14817     fi
14818       ;;
14819
14820     dgux*)
14821       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14822       hardcode_libdir_flag_spec_F77='-L$libdir'
14823       hardcode_shlibpath_var_F77=no
14824       ;;
14825
14826     freebsd1*)
14827       ld_shlibs_F77=no
14828       ;;
14829
14830     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14831     # support.  Future versions do this automatically, but an explicit c++rt0.o
14832     # does not break anything, and helps significantly (at the cost of a little
14833     # extra space).
14834     freebsd2.2*)
14835       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14836       hardcode_libdir_flag_spec_F77='-R$libdir'
14837       hardcode_direct_F77=yes
14838       hardcode_shlibpath_var_F77=no
14839       ;;
14840
14841     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14842     freebsd2*)
14843       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14844       hardcode_direct_F77=yes
14845       hardcode_minus_L_F77=yes
14846       hardcode_shlibpath_var_F77=no
14847       ;;
14848
14849     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14850     freebsd* | dragonfly*)
14851       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14852       hardcode_libdir_flag_spec_F77='-R$libdir'
14853       hardcode_direct_F77=yes
14854       hardcode_shlibpath_var_F77=no
14855       ;;
14856
14857     hpux9*)
14858       if test "$GCC" = yes; then
14859         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'
14860       else
14861         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'
14862       fi
14863       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14864       hardcode_libdir_separator_F77=:
14865       hardcode_direct_F77=yes
14866
14867       # hardcode_minus_L: Not really in the search PATH,
14868       # but as the default location of the library.
14869       hardcode_minus_L_F77=yes
14870       export_dynamic_flag_spec_F77='${wl}-E'
14871       ;;
14872
14873     hpux10*)
14874       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14875         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14876       else
14877         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14878       fi
14879       if test "$with_gnu_ld" = no; then
14880         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14881         hardcode_libdir_separator_F77=:
14882
14883         hardcode_direct_F77=yes
14884         export_dynamic_flag_spec_F77='${wl}-E'
14885
14886         # hardcode_minus_L: Not really in the search PATH,
14887         # but as the default location of the library.
14888         hardcode_minus_L_F77=yes
14889       fi
14890       ;;
14891
14892     hpux11*)
14893       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14894         case $host_cpu in
14895         hppa*64*)
14896           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14897           ;;
14898         ia64*)
14899           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14900           ;;
14901         *)
14902           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14903           ;;
14904         esac
14905       else
14906         case $host_cpu in
14907         hppa*64*)
14908           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14909           ;;
14910         ia64*)
14911           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14912           ;;
14913         *)
14914           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14915           ;;
14916         esac
14917       fi
14918       if test "$with_gnu_ld" = no; then
14919         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14920         hardcode_libdir_separator_F77=:
14921
14922         case $host_cpu in
14923         hppa*64*|ia64*)
14924           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14925           hardcode_direct_F77=no
14926           hardcode_shlibpath_var_F77=no
14927           ;;
14928         *)
14929           hardcode_direct_F77=yes
14930           export_dynamic_flag_spec_F77='${wl}-E'
14931
14932           # hardcode_minus_L: Not really in the search PATH,
14933           # but as the default location of the library.
14934           hardcode_minus_L_F77=yes
14935           ;;
14936         esac
14937       fi
14938       ;;
14939
14940     irix5* | irix6* | nonstopux*)
14941       if test "$GCC" = yes; then
14942         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'
14943       else
14944         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'
14945         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14946       fi
14947       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14948       hardcode_libdir_separator_F77=:
14949       link_all_deplibs_F77=yes
14950       ;;
14951
14952     netbsd* | netbsdelf*-gnu)
14953       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14954         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14955       else
14956         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14957       fi
14958       hardcode_libdir_flag_spec_F77='-R$libdir'
14959       hardcode_direct_F77=yes
14960       hardcode_shlibpath_var_F77=no
14961       ;;
14962
14963     newsos6)
14964       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14965       hardcode_direct_F77=yes
14966       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14967       hardcode_libdir_separator_F77=:
14968       hardcode_shlibpath_var_F77=no
14969       ;;
14970
14971     openbsd*)
14972       if test -f /usr/libexec/ld.so; then
14973         hardcode_direct_F77=yes
14974         hardcode_shlibpath_var_F77=no
14975         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14976           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14977           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14978           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14979           export_dynamic_flag_spec_F77='${wl}-E'
14980         else
14981           case $host_os in
14982            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14983              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14984              hardcode_libdir_flag_spec_F77='-R$libdir'
14985              ;;
14986            *)
14987              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14988              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14989              ;;
14990           esac
14991         fi
14992       else
14993         ld_shlibs_F77=no
14994       fi
14995       ;;
14996
14997     os2*)
14998       hardcode_libdir_flag_spec_F77='-L$libdir'
14999       hardcode_minus_L_F77=yes
15000       allow_undefined_flag_F77=unsupported
15001       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'
15002       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15003       ;;
15004
15005     osf3*)
15006       if test "$GCC" = yes; then
15007         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15008         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'
15009       else
15010         allow_undefined_flag_F77=' -expect_unresolved \*'
15011         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'
15012       fi
15013       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15014       hardcode_libdir_separator_F77=:
15015       ;;
15016
15017     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15018       if test "$GCC" = yes; then
15019         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15020         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'
15021         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15022       else
15023         allow_undefined_flag_F77=' -expect_unresolved \*'
15024         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'
15025         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~
15026         $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'
15027
15028         # Both c and cxx compiler support -rpath directly
15029         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15030       fi
15031       hardcode_libdir_separator_F77=:
15032       ;;
15033
15034     solaris*)
15035       no_undefined_flag_F77=' -z text'
15036       if test "$GCC" = yes; then
15037         wlarc='${wl}'
15038         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15039         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15040           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15041       else
15042         wlarc=''
15043         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15044         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15045         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15046       fi
15047       hardcode_libdir_flag_spec_F77='-R$libdir'
15048       hardcode_shlibpath_var_F77=no
15049       case $host_os in
15050       solaris2.[0-5] | solaris2.[0-5].*) ;;
15051       *)
15052         # The compiler driver will combine and reorder linker options,
15053         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15054         # but is careful enough not to reorder.
15055         # Supported since Solaris 2.6 (maybe 2.5.1?)
15056         if test "$GCC" = yes; then
15057           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15058         else
15059           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15060         fi
15061         ;;
15062       esac
15063       link_all_deplibs_F77=yes
15064       ;;
15065
15066     sunos4*)
15067       if test "x$host_vendor" = xsequent; then
15068         # Use $CC to link under sequent, because it throws in some extra .o
15069         # files that make .init and .fini sections work.
15070         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15071       else
15072         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15073       fi
15074       hardcode_libdir_flag_spec_F77='-L$libdir'
15075       hardcode_direct_F77=yes
15076       hardcode_minus_L_F77=yes
15077       hardcode_shlibpath_var_F77=no
15078       ;;
15079
15080     sysv4)
15081       case $host_vendor in
15082         sni)
15083           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084           hardcode_direct_F77=yes # is this really true???
15085         ;;
15086         siemens)
15087           ## LD is ld it makes a PLAMLIB
15088           ## CC just makes a GrossModule.
15089           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15090           reload_cmds_F77='$CC -r -o $output$reload_objs'
15091           hardcode_direct_F77=no
15092         ;;
15093         motorola)
15094           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15096         ;;
15097       esac
15098       runpath_var='LD_RUN_PATH'
15099       hardcode_shlibpath_var_F77=no
15100       ;;
15101
15102     sysv4.3*)
15103       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104       hardcode_shlibpath_var_F77=no
15105       export_dynamic_flag_spec_F77='-Bexport'
15106       ;;
15107
15108     sysv4*MP*)
15109       if test -d /usr/nec; then
15110         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15111         hardcode_shlibpath_var_F77=no
15112         runpath_var=LD_RUN_PATH
15113         hardcode_runpath_var=yes
15114         ld_shlibs_F77=yes
15115       fi
15116       ;;
15117
15118     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15119       no_undefined_flag_F77='${wl}-z,text'
15120       archive_cmds_need_lc_F77=no
15121       hardcode_shlibpath_var_F77=no
15122       runpath_var='LD_RUN_PATH'
15123
15124       if test "$GCC" = yes; then
15125         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15126         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127       else
15128         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15130       fi
15131       ;;
15132
15133     sysv5* | sco3.2v5* | sco5v6*)
15134       # Note: We can NOT use -z defs as we might desire, because we do not
15135       # link with -lc, and that would cause any symbols used from libc to
15136       # always be unresolved, which means just about no library would
15137       # ever link correctly.  If we're not using GNU ld we use -z text
15138       # though, which does catch some bad symbols but isn't as heavy-handed
15139       # as -z defs.
15140       no_undefined_flag_F77='${wl}-z,text'
15141       allow_undefined_flag_F77='${wl}-z,nodefs'
15142       archive_cmds_need_lc_F77=no
15143       hardcode_shlibpath_var_F77=no
15144       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15145       hardcode_libdir_separator_F77=':'
15146       link_all_deplibs_F77=yes
15147       export_dynamic_flag_spec_F77='${wl}-Bexport'
15148       runpath_var='LD_RUN_PATH'
15149
15150       if test "$GCC" = yes; then
15151         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15152         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153       else
15154         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15156       fi
15157       ;;
15158
15159     uts4*)
15160       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161       hardcode_libdir_flag_spec_F77='-L$libdir'
15162       hardcode_shlibpath_var_F77=no
15163       ;;
15164
15165     *)
15166       ld_shlibs_F77=no
15167       ;;
15168     esac
15169   fi
15170
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15172 $as_echo "$ld_shlibs_F77" >&6; }
15173 test "$ld_shlibs_F77" = no && can_build_shared=no
15174
15175 #
15176 # Do we need to explicitly link libc?
15177 #
15178 case "x$archive_cmds_need_lc_F77" in
15179 x|xyes)
15180   # Assume -lc should be added
15181   archive_cmds_need_lc_F77=yes
15182
15183   if test "$enable_shared" = yes && test "$GCC" = yes; then
15184     case $archive_cmds_F77 in
15185     *'~'*)
15186       # FIXME: we may have to deal with multi-command sequences.
15187       ;;
15188     '$CC '*)
15189       # Test whether the compiler implicitly links with -lc since on some
15190       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15191       # to ld, don't add -lc before -lgcc.
15192       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15193 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15194       $rm conftest*
15195       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15196
15197       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15198   (eval $ac_compile) 2>&5
15199   ac_status=$?
15200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15201   test $ac_status = 0; } 2>conftest.err; then
15202         soname=conftest
15203         lib=conftest
15204         libobjs=conftest.$ac_objext
15205         deplibs=
15206         wl=$lt_prog_compiler_wl_F77
15207         pic_flag=$lt_prog_compiler_pic_F77
15208         compiler_flags=-v
15209         linker_flags=-v
15210         verstring=
15211         output_objdir=.
15212         libname=conftest
15213         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15214         allow_undefined_flag_F77=
15215         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15216   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15217   ac_status=$?
15218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15219   test $ac_status = 0; }
15220         then
15221           archive_cmds_need_lc_F77=no
15222         else
15223           archive_cmds_need_lc_F77=yes
15224         fi
15225         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15226       else
15227         cat conftest.err 1>&5
15228       fi
15229       $rm conftest*
15230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15231 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15232       ;;
15233     esac
15234   fi
15235   ;;
15236 esac
15237
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15240 library_names_spec=
15241 libname_spec='lib$name'
15242 soname_spec=
15243 shrext_cmds=".so"
15244 postinstall_cmds=
15245 postuninstall_cmds=
15246 finish_cmds=
15247 finish_eval=
15248 shlibpath_var=
15249 shlibpath_overrides_runpath=unknown
15250 version_type=none
15251 dynamic_linker="$host_os ld.so"
15252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15253
15254 need_lib_prefix=unknown
15255 hardcode_into_libs=no
15256
15257 # when you set need_version to no, make sure it does not cause -set_version
15258 # flags to be left without arguments
15259 need_version=unknown
15260
15261 case $host_os in
15262 aix3*)
15263   version_type=linux
15264   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15265   shlibpath_var=LIBPATH
15266
15267   # AIX 3 has no versioning support, so we append a major version to the name.
15268   soname_spec='${libname}${release}${shared_ext}$major'
15269   ;;
15270
15271 aix[4-9]*)
15272   version_type=linux
15273   need_lib_prefix=no
15274   need_version=no
15275   hardcode_into_libs=yes
15276   if test "$host_cpu" = ia64; then
15277     # AIX 5 supports IA64
15278     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15279     shlibpath_var=LD_LIBRARY_PATH
15280   else
15281     # With GCC up to 2.95.x, collect2 would create an import file
15282     # for dependence libraries.  The import file would start with
15283     # the line `#! .'.  This would cause the generated library to
15284     # depend on `.', always an invalid library.  This was fixed in
15285     # development snapshots of GCC prior to 3.0.
15286     case $host_os in
15287       aix4 | aix4.[01] | aix4.[01].*)
15288       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15289            echo ' yes '
15290            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15291         :
15292       else
15293         can_build_shared=no
15294       fi
15295       ;;
15296     esac
15297     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15298     # soname into executable. Probably we can add versioning support to
15299     # collect2, so additional links can be useful in future.
15300     if test "$aix_use_runtimelinking" = yes; then
15301       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15302       # instead of lib<name>.a to let people know that these are not
15303       # typical AIX shared libraries.
15304       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305     else
15306       # We preserve .a as extension for shared libraries through AIX4.2
15307       # and later when we are not doing run time linking.
15308       library_names_spec='${libname}${release}.a $libname.a'
15309       soname_spec='${libname}${release}${shared_ext}$major'
15310     fi
15311     shlibpath_var=LIBPATH
15312   fi
15313   ;;
15314
15315 amigaos*)
15316   library_names_spec='$libname.ixlibrary $libname.a'
15317   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15318   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'
15319   ;;
15320
15321 beos*)
15322   library_names_spec='${libname}${shared_ext}'
15323   dynamic_linker="$host_os ld.so"
15324   shlibpath_var=LIBRARY_PATH
15325   ;;
15326
15327 bsdi[45]*)
15328   version_type=linux
15329   need_version=no
15330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331   soname_spec='${libname}${release}${shared_ext}$major'
15332   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15333   shlibpath_var=LD_LIBRARY_PATH
15334   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15335   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15336   # the default ld.so.conf also contains /usr/contrib/lib and
15337   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15338   # libtool to hard-code these into programs
15339   ;;
15340
15341 cygwin* | mingw* | pw32*)
15342   version_type=windows
15343   shrext_cmds=".dll"
15344   need_version=no
15345   need_lib_prefix=no
15346
15347   case $GCC,$host_os in
15348   yes,cygwin* | yes,mingw* | yes,pw32*)
15349     library_names_spec='$libname.dll.a'
15350     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15351     postinstall_cmds='base_file=`basename \${file}`~
15352       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15353       dldir=$destdir/`dirname \$dlpath`~
15354       test -d \$dldir || mkdir -p \$dldir~
15355       $install_prog $dir/$dlname \$dldir/$dlname~
15356       chmod a+x \$dldir/$dlname'
15357     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15358       dlpath=$dir/\$dldll~
15359        $rm \$dlpath'
15360     shlibpath_overrides_runpath=yes
15361
15362     case $host_os in
15363     cygwin*)
15364       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15365       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15366       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15367       ;;
15368     mingw*)
15369       # MinGW DLLs use traditional 'lib' prefix
15370       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15371       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15372       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15373         # It is most probably a Windows format PATH printed by
15374         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15375         # path with ; separators, and with drive letters. We can handle the
15376         # drive letters (cygwin fileutils understands them), so leave them,
15377         # especially as we might pass files found there to a mingw objdump,
15378         # which wouldn't understand a cygwinified path. Ahh.
15379         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15380       else
15381         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15382       fi
15383       ;;
15384     pw32*)
15385       # pw32 DLLs use 'pw' prefix rather than 'lib'
15386       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15387       ;;
15388     esac
15389     ;;
15390
15391   *)
15392     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15393     ;;
15394   esac
15395   dynamic_linker='Win32 ld.exe'
15396   # FIXME: first we should search . and the directory the executable is in
15397   shlibpath_var=PATH
15398   ;;
15399
15400 darwin* | rhapsody*)
15401   dynamic_linker="$host_os dyld"
15402   version_type=darwin
15403   need_lib_prefix=no
15404   need_version=no
15405   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15406   soname_spec='${libname}${release}${major}$shared_ext'
15407   shlibpath_overrides_runpath=yes
15408   shlibpath_var=DYLD_LIBRARY_PATH
15409   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15410
15411   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15412   ;;
15413
15414 dgux*)
15415   version_type=linux
15416   need_lib_prefix=no
15417   need_version=no
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   shlibpath_var=LD_LIBRARY_PATH
15421   ;;
15422
15423 freebsd1*)
15424   dynamic_linker=no
15425   ;;
15426
15427 freebsd* | dragonfly*)
15428   # DragonFly does not have aout.  When/if they implement a new
15429   # versioning mechanism, adjust this.
15430   if test -x /usr/bin/objformat; then
15431     objformat=`/usr/bin/objformat`
15432   else
15433     case $host_os in
15434     freebsd[123]*) objformat=aout ;;
15435     *) objformat=elf ;;
15436     esac
15437   fi
15438   version_type=freebsd-$objformat
15439   case $version_type in
15440     freebsd-elf*)
15441       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15442       need_version=no
15443       need_lib_prefix=no
15444       ;;
15445     freebsd-*)
15446       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15447       need_version=yes
15448       ;;
15449   esac
15450   shlibpath_var=LD_LIBRARY_PATH
15451   case $host_os in
15452   freebsd2*)
15453     shlibpath_overrides_runpath=yes
15454     ;;
15455   freebsd3.[01]* | freebsdelf3.[01]*)
15456     shlibpath_overrides_runpath=yes
15457     hardcode_into_libs=yes
15458     ;;
15459   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15460   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15461     shlibpath_overrides_runpath=no
15462     hardcode_into_libs=yes
15463     ;;
15464   *) # from 4.6 on, and DragonFly
15465     shlibpath_overrides_runpath=yes
15466     hardcode_into_libs=yes
15467     ;;
15468   esac
15469   ;;
15470
15471 gnu*)
15472   version_type=linux
15473   need_lib_prefix=no
15474   need_version=no
15475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15476   soname_spec='${libname}${release}${shared_ext}$major'
15477   shlibpath_var=LD_LIBRARY_PATH
15478   hardcode_into_libs=yes
15479   ;;
15480
15481 hpux9* | hpux10* | hpux11*)
15482   # Give a soname corresponding to the major version so that dld.sl refuses to
15483   # link against other versions.
15484   version_type=sunos
15485   need_lib_prefix=no
15486   need_version=no
15487   case $host_cpu in
15488   ia64*)
15489     shrext_cmds='.so'
15490     hardcode_into_libs=yes
15491     dynamic_linker="$host_os dld.so"
15492     shlibpath_var=LD_LIBRARY_PATH
15493     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495     soname_spec='${libname}${release}${shared_ext}$major'
15496     if test "X$HPUX_IA64_MODE" = X32; then
15497       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15498     else
15499       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15500     fi
15501     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15502     ;;
15503    hppa*64*)
15504      shrext_cmds='.sl'
15505      hardcode_into_libs=yes
15506      dynamic_linker="$host_os dld.sl"
15507      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15508      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15509      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510      soname_spec='${libname}${release}${shared_ext}$major'
15511      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15512      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15513      ;;
15514    *)
15515     shrext_cmds='.sl'
15516     dynamic_linker="$host_os dld.sl"
15517     shlibpath_var=SHLIB_PATH
15518     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15520     soname_spec='${libname}${release}${shared_ext}$major'
15521     ;;
15522   esac
15523   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15524   postinstall_cmds='chmod 555 $lib'
15525   ;;
15526
15527 interix[3-9]*)
15528   version_type=linux
15529   need_lib_prefix=no
15530   need_version=no
15531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15532   soname_spec='${libname}${release}${shared_ext}$major'
15533   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15534   shlibpath_var=LD_LIBRARY_PATH
15535   shlibpath_overrides_runpath=no
15536   hardcode_into_libs=yes
15537   ;;
15538
15539 irix5* | irix6* | nonstopux*)
15540   case $host_os in
15541     nonstopux*) version_type=nonstopux ;;
15542     *)
15543         if test "$lt_cv_prog_gnu_ld" = yes; then
15544                 version_type=linux
15545         else
15546                 version_type=irix
15547         fi ;;
15548   esac
15549   need_lib_prefix=no
15550   need_version=no
15551   soname_spec='${libname}${release}${shared_ext}$major'
15552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15553   case $host_os in
15554   irix5* | nonstopux*)
15555     libsuff= shlibsuff=
15556     ;;
15557   *)
15558     case $LD in # libtool.m4 will add one of these switches to LD
15559     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15560       libsuff= shlibsuff= libmagic=32-bit;;
15561     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15562       libsuff=32 shlibsuff=N32 libmagic=N32;;
15563     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15564       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15565     *) libsuff= shlibsuff= libmagic=never-match;;
15566     esac
15567     ;;
15568   esac
15569   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15570   shlibpath_overrides_runpath=no
15571   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15572   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15573   hardcode_into_libs=yes
15574   ;;
15575
15576 # No shared lib support for Linux oldld, aout, or coff.
15577 linux*oldld* | linux*aout* | linux*coff*)
15578   dynamic_linker=no
15579   ;;
15580
15581 # This must be Linux ELF.
15582 linux* | k*bsd*-gnu)
15583   version_type=linux
15584   need_lib_prefix=no
15585   need_version=no
15586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587   soname_spec='${libname}${release}${shared_ext}$major'
15588   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15589   shlibpath_var=LD_LIBRARY_PATH
15590   shlibpath_overrides_runpath=no
15591   # This implies no fast_install, which is unacceptable.
15592   # Some rework will be needed to allow for fast_install
15593   # before this can be enabled.
15594   hardcode_into_libs=yes
15595
15596   # Append ld.so.conf contents to the search path
15597   if test -f /etc/ld.so.conf; then
15598     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' ' '`
15599     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15600   fi
15601
15602   # We used to test for /lib/ld.so.1 and disable shared libraries on
15603   # powerpc, because MkLinux only supported shared libraries with the
15604   # GNU dynamic linker.  Since this was broken with cross compilers,
15605   # most powerpc-linux boxes support dynamic linking these days and
15606   # people can always --disable-shared, the test was removed, and we
15607   # assume the GNU/Linux dynamic linker is in use.
15608   dynamic_linker='GNU/Linux ld.so'
15609   ;;
15610
15611 netbsdelf*-gnu)
15612   version_type=linux
15613   need_lib_prefix=no
15614   need_version=no
15615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15616   soname_spec='${libname}${release}${shared_ext}$major'
15617   shlibpath_var=LD_LIBRARY_PATH
15618   shlibpath_overrides_runpath=no
15619   hardcode_into_libs=yes
15620   dynamic_linker='NetBSD ld.elf_so'
15621   ;;
15622
15623 netbsd*)
15624   version_type=sunos
15625   need_lib_prefix=no
15626   need_version=no
15627   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15629     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15630     dynamic_linker='NetBSD (a.out) ld.so'
15631   else
15632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15633     soname_spec='${libname}${release}${shared_ext}$major'
15634     dynamic_linker='NetBSD ld.elf_so'
15635   fi
15636   shlibpath_var=LD_LIBRARY_PATH
15637   shlibpath_overrides_runpath=yes
15638   hardcode_into_libs=yes
15639   ;;
15640
15641 newsos6)
15642   version_type=linux
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   shlibpath_var=LD_LIBRARY_PATH
15645   shlibpath_overrides_runpath=yes
15646   ;;
15647
15648 nto-qnx*)
15649   version_type=linux
15650   need_lib_prefix=no
15651   need_version=no
15652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653   soname_spec='${libname}${release}${shared_ext}$major'
15654   shlibpath_var=LD_LIBRARY_PATH
15655   shlibpath_overrides_runpath=yes
15656   ;;
15657
15658 openbsd*)
15659   version_type=sunos
15660   sys_lib_dlsearch_path_spec="/usr/lib"
15661   need_lib_prefix=no
15662   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15663   case $host_os in
15664     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15665     *)                         need_version=no  ;;
15666   esac
15667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15671     case $host_os in
15672       openbsd2.[89] | openbsd2.[89].*)
15673         shlibpath_overrides_runpath=no
15674         ;;
15675       *)
15676         shlibpath_overrides_runpath=yes
15677         ;;
15678       esac
15679   else
15680     shlibpath_overrides_runpath=yes
15681   fi
15682   ;;
15683
15684 os2*)
15685   libname_spec='$name'
15686   shrext_cmds=".dll"
15687   need_lib_prefix=no
15688   library_names_spec='$libname${shared_ext} $libname.a'
15689   dynamic_linker='OS/2 ld.exe'
15690   shlibpath_var=LIBPATH
15691   ;;
15692
15693 osf3* | osf4* | osf5*)
15694   version_type=osf
15695   need_lib_prefix=no
15696   need_version=no
15697   soname_spec='${libname}${release}${shared_ext}$major'
15698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15699   shlibpath_var=LD_LIBRARY_PATH
15700   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15701   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15702   ;;
15703
15704 rdos*)
15705   dynamic_linker=no
15706   ;;
15707
15708 solaris*)
15709   version_type=linux
15710   need_lib_prefix=no
15711   need_version=no
15712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713   soname_spec='${libname}${release}${shared_ext}$major'
15714   shlibpath_var=LD_LIBRARY_PATH
15715   shlibpath_overrides_runpath=yes
15716   hardcode_into_libs=yes
15717   # ldd complains unless libraries are executable
15718   postinstall_cmds='chmod +x $lib'
15719   ;;
15720
15721 sunos4*)
15722   version_type=sunos
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15724   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   shlibpath_overrides_runpath=yes
15727   if test "$with_gnu_ld" = yes; then
15728     need_lib_prefix=no
15729   fi
15730   need_version=yes
15731   ;;
15732
15733 sysv4 | sysv4.3*)
15734   version_type=linux
15735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736   soname_spec='${libname}${release}${shared_ext}$major'
15737   shlibpath_var=LD_LIBRARY_PATH
15738   case $host_vendor in
15739     sni)
15740       shlibpath_overrides_runpath=no
15741       need_lib_prefix=no
15742       export_dynamic_flag_spec='${wl}-Blargedynsym'
15743       runpath_var=LD_RUN_PATH
15744       ;;
15745     siemens)
15746       need_lib_prefix=no
15747       ;;
15748     motorola)
15749       need_lib_prefix=no
15750       need_version=no
15751       shlibpath_overrides_runpath=no
15752       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15753       ;;
15754   esac
15755   ;;
15756
15757 sysv4*MP*)
15758   if test -d /usr/nec ;then
15759     version_type=linux
15760     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15761     soname_spec='$libname${shared_ext}.$major'
15762     shlibpath_var=LD_LIBRARY_PATH
15763   fi
15764   ;;
15765
15766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15767   version_type=freebsd-elf
15768   need_lib_prefix=no
15769   need_version=no
15770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15771   soname_spec='${libname}${release}${shared_ext}$major'
15772   shlibpath_var=LD_LIBRARY_PATH
15773   hardcode_into_libs=yes
15774   if test "$with_gnu_ld" = yes; then
15775     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15776     shlibpath_overrides_runpath=no
15777   else
15778     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15779     shlibpath_overrides_runpath=yes
15780     case $host_os in
15781       sco3.2v5*)
15782         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15783         ;;
15784     esac
15785   fi
15786   sys_lib_dlsearch_path_spec='/usr/lib'
15787   ;;
15788
15789 uts4*)
15790   version_type=linux
15791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792   soname_spec='${libname}${release}${shared_ext}$major'
15793   shlibpath_var=LD_LIBRARY_PATH
15794   ;;
15795
15796 *)
15797   dynamic_linker=no
15798   ;;
15799 esac
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15801 $as_echo "$dynamic_linker" >&6; }
15802 test "$dynamic_linker" = no && can_build_shared=no
15803
15804 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15805   $as_echo_n "(cached) " >&6
15806 else
15807   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15808 fi
15809
15810 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15811 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15812   $as_echo_n "(cached) " >&6
15813 else
15814   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15815 fi
15816
15817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15818
15819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15820 if test "$GCC" = yes; then
15821   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15822 fi
15823
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15825 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15826 hardcode_action_F77=
15827 if test -n "$hardcode_libdir_flag_spec_F77" || \
15828    test -n "$runpath_var_F77" || \
15829    test "X$hardcode_automatic_F77" = "Xyes" ; then
15830
15831   # We can hardcode non-existant directories.
15832   if test "$hardcode_direct_F77" != no &&
15833      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15834      # have to relink, otherwise we might link with an installed library
15835      # when we should be linking with a yet-to-be-installed one
15836      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15837      test "$hardcode_minus_L_F77" != no; then
15838     # Linking always hardcodes the temporary library directory.
15839     hardcode_action_F77=relink
15840   else
15841     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15842     hardcode_action_F77=immediate
15843   fi
15844 else
15845   # We cannot hardcode anything, or else we can only hardcode existing
15846   # directories.
15847   hardcode_action_F77=unsupported
15848 fi
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15850 $as_echo "$hardcode_action_F77" >&6; }
15851
15852 if test "$hardcode_action_F77" = relink; then
15853   # Fast installation is not supported
15854   enable_fast_install=no
15855 elif test "$shlibpath_overrides_runpath" = yes ||
15856      test "$enable_shared" = no; then
15857   # Fast installation is not necessary
15858   enable_fast_install=needless
15859 fi
15860
15861
15862 # The else clause should only fire when bootstrapping the
15863 # libtool distribution, otherwise you forgot to ship ltmain.sh
15864 # with your package, and you will get complaints that there are
15865 # no rules to generate ltmain.sh.
15866 if test -f "$ltmain"; then
15867   # See if we are running on zsh, and set the options which allow our commands through
15868   # without removal of \ escapes.
15869   if test -n "${ZSH_VERSION+set}" ; then
15870     setopt NO_GLOB_SUBST
15871   fi
15872   # Now quote all the things that may contain metacharacters while being
15873   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15874   # variables and quote the copies for generation of the libtool script.
15875   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15876     SED SHELL STRIP \
15877     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15878     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15879     deplibs_check_method reload_flag reload_cmds need_locks \
15880     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15881     lt_cv_sys_global_symbol_to_c_name_address \
15882     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15883     old_postinstall_cmds old_postuninstall_cmds \
15884     compiler_F77 \
15885     CC_F77 \
15886     LD_F77 \
15887     lt_prog_compiler_wl_F77 \
15888     lt_prog_compiler_pic_F77 \
15889     lt_prog_compiler_static_F77 \
15890     lt_prog_compiler_no_builtin_flag_F77 \
15891     export_dynamic_flag_spec_F77 \
15892     thread_safe_flag_spec_F77 \
15893     whole_archive_flag_spec_F77 \
15894     enable_shared_with_static_runtimes_F77 \
15895     old_archive_cmds_F77 \
15896     old_archive_from_new_cmds_F77 \
15897     predep_objects_F77 \
15898     postdep_objects_F77 \
15899     predeps_F77 \
15900     postdeps_F77 \
15901     compiler_lib_search_path_F77 \
15902     compiler_lib_search_dirs_F77 \
15903     archive_cmds_F77 \
15904     archive_expsym_cmds_F77 \
15905     postinstall_cmds_F77 \
15906     postuninstall_cmds_F77 \
15907     old_archive_from_expsyms_cmds_F77 \
15908     allow_undefined_flag_F77 \
15909     no_undefined_flag_F77 \
15910     export_symbols_cmds_F77 \
15911     hardcode_libdir_flag_spec_F77 \
15912     hardcode_libdir_flag_spec_ld_F77 \
15913     hardcode_libdir_separator_F77 \
15914     hardcode_automatic_F77 \
15915     module_cmds_F77 \
15916     module_expsym_cmds_F77 \
15917     lt_cv_prog_compiler_c_o_F77 \
15918     fix_srcfile_path_F77 \
15919     exclude_expsyms_F77 \
15920     include_expsyms_F77; do
15921
15922     case $var in
15923     old_archive_cmds_F77 | \
15924     old_archive_from_new_cmds_F77 | \
15925     archive_cmds_F77 | \
15926     archive_expsym_cmds_F77 | \
15927     module_cmds_F77 | \
15928     module_expsym_cmds_F77 | \
15929     old_archive_from_expsyms_cmds_F77 | \
15930     export_symbols_cmds_F77 | \
15931     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15932     postinstall_cmds | postuninstall_cmds | \
15933     old_postinstall_cmds | old_postuninstall_cmds | \
15934     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15935       # Double-quote double-evaled strings.
15936       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15937       ;;
15938     *)
15939       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15940       ;;
15941     esac
15942   done
15943
15944   case $lt_echo in
15945   *'\$0 --fallback-echo"')
15946     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15947     ;;
15948   esac
15949
15950 cfgfile="$ofile"
15951
15952   cat <<__EOF__ >> "$cfgfile"
15953 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15954
15955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15956
15957 # Shell to use when invoking shell scripts.
15958 SHELL=$lt_SHELL
15959
15960 # Whether or not to build shared libraries.
15961 build_libtool_libs=$enable_shared
15962
15963 # Whether or not to build static libraries.
15964 build_old_libs=$enable_static
15965
15966 # Whether or not to add -lc for building shared libraries.
15967 build_libtool_need_lc=$archive_cmds_need_lc_F77
15968
15969 # Whether or not to disallow shared libs when runtime libs are static
15970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15971
15972 # Whether or not to optimize for fast installation.
15973 fast_install=$enable_fast_install
15974
15975 # The host system.
15976 host_alias=$host_alias
15977 host=$host
15978 host_os=$host_os
15979
15980 # The build system.
15981 build_alias=$build_alias
15982 build=$build
15983 build_os=$build_os
15984
15985 # An echo program that does not interpret backslashes.
15986 echo=$lt_echo
15987
15988 # The archiver.
15989 AR=$lt_AR
15990 AR_FLAGS=$lt_AR_FLAGS
15991
15992 # A C compiler.
15993 LTCC=$lt_LTCC
15994
15995 # LTCC compiler flags.
15996 LTCFLAGS=$lt_LTCFLAGS
15997
15998 # A language-specific compiler.
15999 CC=$lt_compiler_F77
16000
16001 # Is the compiler the GNU C compiler?
16002 with_gcc=$GCC_F77
16003
16004 # An ERE matcher.
16005 EGREP=$lt_EGREP
16006
16007 # The linker used to build libraries.
16008 LD=$lt_LD_F77
16009
16010 # Whether we need hard or soft links.
16011 LN_S=$lt_LN_S
16012
16013 # A BSD-compatible nm program.
16014 NM=$lt_NM
16015
16016 # A symbol stripping program
16017 STRIP=$lt_STRIP
16018
16019 # Used to examine libraries when file_magic_cmd begins "file"
16020 MAGIC_CMD=$MAGIC_CMD
16021
16022 # Used on cygwin: DLL creation program.
16023 DLLTOOL="$DLLTOOL"
16024
16025 # Used on cygwin: object dumper.
16026 OBJDUMP="$OBJDUMP"
16027
16028 # Used on cygwin: assembler.
16029 AS="$AS"
16030
16031 # The name of the directory that contains temporary libtool files.
16032 objdir=$objdir
16033
16034 # How to create reloadable object files.
16035 reload_flag=$lt_reload_flag
16036 reload_cmds=$lt_reload_cmds
16037
16038 # How to pass a linker flag through the compiler.
16039 wl=$lt_lt_prog_compiler_wl_F77
16040
16041 # Object file suffix (normally "o").
16042 objext="$ac_objext"
16043
16044 # Old archive suffix (normally "a").
16045 libext="$libext"
16046
16047 # Shared library suffix (normally ".so").
16048 shrext_cmds='$shrext_cmds'
16049
16050 # Executable file suffix (normally "").
16051 exeext="$exeext"
16052
16053 # Additional compiler flags for building library objects.
16054 pic_flag=$lt_lt_prog_compiler_pic_F77
16055 pic_mode=$pic_mode
16056
16057 # What is the maximum length of a command?
16058 max_cmd_len=$lt_cv_sys_max_cmd_len
16059
16060 # Does compiler simultaneously support -c and -o options?
16061 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16062
16063 # Must we lock files when doing compilation?
16064 need_locks=$lt_need_locks
16065
16066 # Do we need the lib prefix for modules?
16067 need_lib_prefix=$need_lib_prefix
16068
16069 # Do we need a version for libraries?
16070 need_version=$need_version
16071
16072 # Whether dlopen is supported.
16073 dlopen_support=$enable_dlopen
16074
16075 # Whether dlopen of programs is supported.
16076 dlopen_self=$enable_dlopen_self
16077
16078 # Whether dlopen of statically linked programs is supported.
16079 dlopen_self_static=$enable_dlopen_self_static
16080
16081 # Compiler flag to prevent dynamic linking.
16082 link_static_flag=$lt_lt_prog_compiler_static_F77
16083
16084 # Compiler flag to turn off builtin functions.
16085 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16086
16087 # Compiler flag to allow reflexive dlopens.
16088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16089
16090 # Compiler flag to generate shared objects directly from archives.
16091 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16092
16093 # Compiler flag to generate thread-safe objects.
16094 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16095
16096 # Library versioning type.
16097 version_type=$version_type
16098
16099 # Format of library name prefix.
16100 libname_spec=$lt_libname_spec
16101
16102 # List of archive names.  First name is the real one, the rest are links.
16103 # The last name is the one that the linker finds with -lNAME.
16104 library_names_spec=$lt_library_names_spec
16105
16106 # The coded name of the library, if different from the real name.
16107 soname_spec=$lt_soname_spec
16108
16109 # Commands used to build and install an old-style archive.
16110 RANLIB=$lt_RANLIB
16111 old_archive_cmds=$lt_old_archive_cmds_F77
16112 old_postinstall_cmds=$lt_old_postinstall_cmds
16113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16114
16115 # Create an old-style archive from a shared archive.
16116 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16117
16118 # Create a temporary old-style archive to link instead of a shared archive.
16119 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16120
16121 # Commands used to build and install a shared archive.
16122 archive_cmds=$lt_archive_cmds_F77
16123 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16124 postinstall_cmds=$lt_postinstall_cmds
16125 postuninstall_cmds=$lt_postuninstall_cmds
16126
16127 # Commands used to build a loadable module (assumed same as above if empty)
16128 module_cmds=$lt_module_cmds_F77
16129 module_expsym_cmds=$lt_module_expsym_cmds_F77
16130
16131 # Commands to strip libraries.
16132 old_striplib=$lt_old_striplib
16133 striplib=$lt_striplib
16134
16135 # Dependencies to place before the objects being linked to create a
16136 # shared library.
16137 predep_objects=$lt_predep_objects_F77
16138
16139 # Dependencies to place after the objects being linked to create a
16140 # shared library.
16141 postdep_objects=$lt_postdep_objects_F77
16142
16143 # Dependencies to place before the objects being linked to create a
16144 # shared library.
16145 predeps=$lt_predeps_F77
16146
16147 # Dependencies to place after the objects being linked to create a
16148 # shared library.
16149 postdeps=$lt_postdeps_F77
16150
16151 # The directories searched by this compiler when creating a shared
16152 # library
16153 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16154
16155 # The library search path used internally by the compiler when linking
16156 # a shared library.
16157 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16158
16159 # Method to check whether dependent libraries are shared objects.
16160 deplibs_check_method=$lt_deplibs_check_method
16161
16162 # Command to use when deplibs_check_method == file_magic.
16163 file_magic_cmd=$lt_file_magic_cmd
16164
16165 # Flag that allows shared libraries with undefined symbols to be built.
16166 allow_undefined_flag=$lt_allow_undefined_flag_F77
16167
16168 # Flag that forces no undefined symbols.
16169 no_undefined_flag=$lt_no_undefined_flag_F77
16170
16171 # Commands used to finish a libtool library installation in a directory.
16172 finish_cmds=$lt_finish_cmds
16173
16174 # Same as above, but a single script fragment to be evaled but not shown.
16175 finish_eval=$lt_finish_eval
16176
16177 # Take the output of nm and produce a listing of raw symbols and C names.
16178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16179
16180 # Transform the output of nm in a proper C declaration
16181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16182
16183 # Transform the output of nm in a C name address pair
16184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16185
16186 # This is the shared library runtime path variable.
16187 runpath_var=$runpath_var
16188
16189 # This is the shared library path variable.
16190 shlibpath_var=$shlibpath_var
16191
16192 # Is shlibpath searched before the hard-coded library search path?
16193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16194
16195 # How to hardcode a shared library path into an executable.
16196 hardcode_action=$hardcode_action_F77
16197
16198 # Whether we should hardcode library paths into libraries.
16199 hardcode_into_libs=$hardcode_into_libs
16200
16201 # Flag to hardcode \$libdir into a binary during linking.
16202 # This must work even if \$libdir does not exist.
16203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16204
16205 # If ld is used when linking, flag to hardcode \$libdir into
16206 # a binary during linking. This must work even if \$libdir does
16207 # not exist.
16208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16209
16210 # Whether we need a single -rpath flag with a separated argument.
16211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16212
16213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16214 # resulting binary.
16215 hardcode_direct=$hardcode_direct_F77
16216
16217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16218 # resulting binary.
16219 hardcode_minus_L=$hardcode_minus_L_F77
16220
16221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16222 # the resulting binary.
16223 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16224
16225 # Set to yes if building a shared library automatically hardcodes DIR into the library
16226 # and all subsequent libraries and executables linked against it.
16227 hardcode_automatic=$hardcode_automatic_F77
16228
16229 # Variables whose values should be saved in libtool wrapper scripts and
16230 # restored at relink time.
16231 variables_saved_for_relink="$variables_saved_for_relink"
16232
16233 # Whether libtool must link a program against all its dependency libraries.
16234 link_all_deplibs=$link_all_deplibs_F77
16235
16236 # Compile-time system search path for libraries
16237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16238
16239 # Run-time system search path for libraries
16240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16241
16242 # Fix the shell variable \$srcfile for the compiler.
16243 fix_srcfile_path=$lt_fix_srcfile_path
16244
16245 # Set to yes if exported symbols are required.
16246 always_export_symbols=$always_export_symbols_F77
16247
16248 # The commands to list exported symbols.
16249 export_symbols_cmds=$lt_export_symbols_cmds_F77
16250
16251 # The commands to extract the exported symbol list from a shared archive.
16252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16253
16254 # Symbols that should not be listed in the preloaded symbols.
16255 exclude_expsyms=$lt_exclude_expsyms_F77
16256
16257 # Symbols that must always be exported.
16258 include_expsyms=$lt_include_expsyms_F77
16259
16260 # ### END LIBTOOL TAG CONFIG: $tagname
16261
16262 __EOF__
16263
16264
16265 else
16266   # If there is no Makefile yet, we rely on a make rule to execute
16267   # `config.status --recheck' to rerun these tests and create the
16268   # libtool script then.
16269   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16270   if test -f "$ltmain_in"; then
16271     test -f Makefile && make "$ltmain"
16272   fi
16273 fi
16274
16275
16276 ac_ext=c
16277 ac_cpp='$CPP $CPPFLAGS'
16278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16281
16282 CC="$lt_save_CC"
16283
16284         else
16285           tagname=""
16286         fi
16287         ;;
16288
16289       GCJ)
16290         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16291
16292
16293 # Source file extension for Java test sources.
16294 ac_ext=java
16295
16296 # Object file extension for compiled Java test sources.
16297 objext=o
16298 objext_GCJ=$objext
16299
16300 # Code to be used in simple compile tests
16301 lt_simple_compile_test_code="class foo {}"
16302
16303 # Code to be used in simple link tests
16304 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16305
16306 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16307
16308 # If no C compiler was specified, use CC.
16309 LTCC=${LTCC-"$CC"}
16310
16311 # If no C compiler flags were specified, use CFLAGS.
16312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16313
16314 # Allow CC to be a program name with arguments.
16315 compiler=$CC
16316
16317
16318 # save warnings/boilerplate of simple test code
16319 ac_outfile=conftest.$ac_objext
16320 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16321 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16322 _lt_compiler_boilerplate=`cat conftest.err`
16323 $rm conftest*
16324
16325 ac_outfile=conftest.$ac_objext
16326 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16327 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16328 _lt_linker_boilerplate=`cat conftest.err`
16329 $rm -r conftest*
16330
16331
16332 # Allow CC to be a program name with arguments.
16333 lt_save_CC="$CC"
16334 CC=${GCJ-"gcj"}
16335 compiler=$CC
16336 compiler_GCJ=$CC
16337 for cc_temp in $compiler""; do
16338   case $cc_temp in
16339     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16340     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16341     \-*) ;;
16342     *) break;;
16343   esac
16344 done
16345 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16346
16347
16348 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16349 archive_cmds_need_lc_GCJ=no
16350
16351 old_archive_cmds_GCJ=$old_archive_cmds
16352
16353
16354 lt_prog_compiler_no_builtin_flag_GCJ=
16355
16356 if test "$GCC" = yes; then
16357   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16358
16359
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16361 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16362 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16363   $as_echo_n "(cached) " >&6
16364 else
16365   lt_cv_prog_compiler_rtti_exceptions=no
16366   ac_outfile=conftest.$ac_objext
16367    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16368    lt_compiler_flag="-fno-rtti -fno-exceptions"
16369    # Insert the option either (1) after the last *FLAGS variable, or
16370    # (2) before a word containing "conftest.", or (3) at the end.
16371    # Note that $ac_compile itself does not contain backslashes and begins
16372    # with a dollar sign (not a hyphen), so the echo should work correctly.
16373    # The option is referenced via a variable to avoid confusing sed.
16374    lt_compile=`echo "$ac_compile" | $SED \
16375    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16376    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16377    -e 's:$: $lt_compiler_flag:'`
16378    (eval echo "\"\$as_me:16374: $lt_compile\"" >&5)
16379    (eval "$lt_compile" 2>conftest.err)
16380    ac_status=$?
16381    cat conftest.err >&5
16382    echo "$as_me:16378: \$? = $ac_status" >&5
16383    if (exit $ac_status) && test -s "$ac_outfile"; then
16384      # The compiler can only warn and ignore the option if not recognized
16385      # So say no if there are warnings other than the usual output.
16386      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16387      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16388      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16389        lt_cv_prog_compiler_rtti_exceptions=yes
16390      fi
16391    fi
16392    $rm conftest*
16393
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16396 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16397
16398 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16399     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16400 else
16401     :
16402 fi
16403
16404 fi
16405
16406 lt_prog_compiler_wl_GCJ=
16407 lt_prog_compiler_pic_GCJ=
16408 lt_prog_compiler_static_GCJ=
16409
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16411 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16412
16413   if test "$GCC" = yes; then
16414     lt_prog_compiler_wl_GCJ='-Wl,'
16415     lt_prog_compiler_static_GCJ='-static'
16416
16417     case $host_os in
16418       aix*)
16419       # All AIX code is PIC.
16420       if test "$host_cpu" = ia64; then
16421         # AIX 5 now supports IA64 processor
16422         lt_prog_compiler_static_GCJ='-Bstatic'
16423       fi
16424       ;;
16425
16426     amigaos*)
16427       # FIXME: we need at least 68020 code to build shared libraries, but
16428       # adding the `-m68020' flag to GCC prevents building anything better,
16429       # like `-m68040'.
16430       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16431       ;;
16432
16433     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16434       # PIC is the default for these OSes.
16435       ;;
16436
16437     mingw* | cygwin* | pw32* | os2*)
16438       # This hack is so that the source file can tell whether it is being
16439       # built for inclusion in a dll (and should export symbols for example).
16440       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16441       # (--disable-auto-import) libraries
16442
16443       ;;
16444
16445     darwin* | rhapsody*)
16446       # PIC is the default on this platform
16447       # Common symbols not allowed in MH_DYLIB files
16448       lt_prog_compiler_pic_GCJ='-fno-common'
16449       ;;
16450
16451     interix[3-9]*)
16452       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16453       # Instead, we relocate shared libraries at runtime.
16454       ;;
16455
16456     msdosdjgpp*)
16457       # Just because we use GCC doesn't mean we suddenly get shared libraries
16458       # on systems that don't support them.
16459       lt_prog_compiler_can_build_shared_GCJ=no
16460       enable_shared=no
16461       ;;
16462
16463     sysv4*MP*)
16464       if test -d /usr/nec; then
16465         lt_prog_compiler_pic_GCJ=-Kconform_pic
16466       fi
16467       ;;
16468
16469     hpux*)
16470       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16471       # not for PA HP-UX.
16472       case $host_cpu in
16473       hppa*64*|ia64*)
16474         # +Z the default
16475         ;;
16476       *)
16477         lt_prog_compiler_pic_GCJ='-fPIC'
16478         ;;
16479       esac
16480       ;;
16481
16482     *)
16483       lt_prog_compiler_pic_GCJ='-fPIC'
16484       ;;
16485     esac
16486   else
16487     # PORTME Check for flag to pass linker flags through the system compiler.
16488     case $host_os in
16489     aix*)
16490       lt_prog_compiler_wl_GCJ='-Wl,'
16491       if test "$host_cpu" = ia64; then
16492         # AIX 5 now supports IA64 processor
16493         lt_prog_compiler_static_GCJ='-Bstatic'
16494       else
16495         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16496       fi
16497       ;;
16498       darwin*)
16499         # PIC is the default on this platform
16500         # Common symbols not allowed in MH_DYLIB files
16501        case $cc_basename in
16502          xlc*)
16503          lt_prog_compiler_pic_GCJ='-qnocommon'
16504          lt_prog_compiler_wl_GCJ='-Wl,'
16505          ;;
16506        esac
16507        ;;
16508
16509     mingw* | cygwin* | pw32* | os2*)
16510       # This hack is so that the source file can tell whether it is being
16511       # built for inclusion in a dll (and should export symbols for example).
16512
16513       ;;
16514
16515     hpux9* | hpux10* | hpux11*)
16516       lt_prog_compiler_wl_GCJ='-Wl,'
16517       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16518       # not for PA HP-UX.
16519       case $host_cpu in
16520       hppa*64*|ia64*)
16521         # +Z the default
16522         ;;
16523       *)
16524         lt_prog_compiler_pic_GCJ='+Z'
16525         ;;
16526       esac
16527       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16528       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16529       ;;
16530
16531     irix5* | irix6* | nonstopux*)
16532       lt_prog_compiler_wl_GCJ='-Wl,'
16533       # PIC (with -KPIC) is the default.
16534       lt_prog_compiler_static_GCJ='-non_shared'
16535       ;;
16536
16537     newsos6)
16538       lt_prog_compiler_pic_GCJ='-KPIC'
16539       lt_prog_compiler_static_GCJ='-Bstatic'
16540       ;;
16541
16542     linux* | k*bsd*-gnu)
16543       case $cc_basename in
16544       icc* | ecc*)
16545         lt_prog_compiler_wl_GCJ='-Wl,'
16546         lt_prog_compiler_pic_GCJ='-KPIC'
16547         lt_prog_compiler_static_GCJ='-static'
16548         ;;
16549       pgcc* | pgf77* | pgf90* | pgf95*)
16550         # Portland Group compilers (*not* the Pentium gcc compiler,
16551         # which looks to be a dead project)
16552         lt_prog_compiler_wl_GCJ='-Wl,'
16553         lt_prog_compiler_pic_GCJ='-fpic'
16554         lt_prog_compiler_static_GCJ='-Bstatic'
16555         ;;
16556       ccc*)
16557         lt_prog_compiler_wl_GCJ='-Wl,'
16558         # All Alpha code is PIC.
16559         lt_prog_compiler_static_GCJ='-non_shared'
16560         ;;
16561       *)
16562         case `$CC -V 2>&1 | sed 5q` in
16563         *Sun\ C*)
16564           # Sun C 5.9
16565           lt_prog_compiler_pic_GCJ='-KPIC'
16566           lt_prog_compiler_static_GCJ='-Bstatic'
16567           lt_prog_compiler_wl_GCJ='-Wl,'
16568           ;;
16569         *Sun\ F*)
16570           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16571           lt_prog_compiler_pic_GCJ='-KPIC'
16572           lt_prog_compiler_static_GCJ='-Bstatic'
16573           lt_prog_compiler_wl_GCJ=''
16574           ;;
16575         esac
16576         ;;
16577       esac
16578       ;;
16579
16580     osf3* | osf4* | osf5*)
16581       lt_prog_compiler_wl_GCJ='-Wl,'
16582       # All OSF/1 code is PIC.
16583       lt_prog_compiler_static_GCJ='-non_shared'
16584       ;;
16585
16586     rdos*)
16587       lt_prog_compiler_static_GCJ='-non_shared'
16588       ;;
16589
16590     solaris*)
16591       lt_prog_compiler_pic_GCJ='-KPIC'
16592       lt_prog_compiler_static_GCJ='-Bstatic'
16593       case $cc_basename in
16594       f77* | f90* | f95*)
16595         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16596       *)
16597         lt_prog_compiler_wl_GCJ='-Wl,';;
16598       esac
16599       ;;
16600
16601     sunos4*)
16602       lt_prog_compiler_wl_GCJ='-Qoption ld '
16603       lt_prog_compiler_pic_GCJ='-PIC'
16604       lt_prog_compiler_static_GCJ='-Bstatic'
16605       ;;
16606
16607     sysv4 | sysv4.2uw2* | sysv4.3*)
16608       lt_prog_compiler_wl_GCJ='-Wl,'
16609       lt_prog_compiler_pic_GCJ='-KPIC'
16610       lt_prog_compiler_static_GCJ='-Bstatic'
16611       ;;
16612
16613     sysv4*MP*)
16614       if test -d /usr/nec ;then
16615         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16616         lt_prog_compiler_static_GCJ='-Bstatic'
16617       fi
16618       ;;
16619
16620     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16621       lt_prog_compiler_wl_GCJ='-Wl,'
16622       lt_prog_compiler_pic_GCJ='-KPIC'
16623       lt_prog_compiler_static_GCJ='-Bstatic'
16624       ;;
16625
16626     unicos*)
16627       lt_prog_compiler_wl_GCJ='-Wl,'
16628       lt_prog_compiler_can_build_shared_GCJ=no
16629       ;;
16630
16631     uts4*)
16632       lt_prog_compiler_pic_GCJ='-pic'
16633       lt_prog_compiler_static_GCJ='-Bstatic'
16634       ;;
16635
16636     *)
16637       lt_prog_compiler_can_build_shared_GCJ=no
16638       ;;
16639     esac
16640   fi
16641
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16643 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16644
16645 #
16646 # Check to make sure the PIC flag actually works.
16647 #
16648 if test -n "$lt_prog_compiler_pic_GCJ"; then
16649
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16651 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16652 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16653   $as_echo_n "(cached) " >&6
16654 else
16655   lt_cv_prog_compiler_pic_works_GCJ=no
16656   ac_outfile=conftest.$ac_objext
16657    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16658    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16659    # Insert the option either (1) after the last *FLAGS variable, or
16660    # (2) before a word containing "conftest.", or (3) at the end.
16661    # Note that $ac_compile itself does not contain backslashes and begins
16662    # with a dollar sign (not a hyphen), so the echo should work correctly.
16663    # The option is referenced via a variable to avoid confusing sed.
16664    lt_compile=`echo "$ac_compile" | $SED \
16665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16667    -e 's:$: $lt_compiler_flag:'`
16668    (eval echo "\"\$as_me:16664: $lt_compile\"" >&5)
16669    (eval "$lt_compile" 2>conftest.err)
16670    ac_status=$?
16671    cat conftest.err >&5
16672    echo "$as_me:16668: \$? = $ac_status" >&5
16673    if (exit $ac_status) && test -s "$ac_outfile"; then
16674      # The compiler can only warn and ignore the option if not recognized
16675      # So say no if there are warnings other than the usual output.
16676      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16677      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16678      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16679        lt_cv_prog_compiler_pic_works_GCJ=yes
16680      fi
16681    fi
16682    $rm conftest*
16683
16684 fi
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16686 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16687
16688 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16689     case $lt_prog_compiler_pic_GCJ in
16690      "" | " "*) ;;
16691      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16692      esac
16693 else
16694     lt_prog_compiler_pic_GCJ=
16695      lt_prog_compiler_can_build_shared_GCJ=no
16696 fi
16697
16698 fi
16699 case $host_os in
16700   # For platforms which do not support PIC, -DPIC is meaningless:
16701   *djgpp*)
16702     lt_prog_compiler_pic_GCJ=
16703     ;;
16704   *)
16705     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16706     ;;
16707 esac
16708
16709 #
16710 # Check to make sure the static flag actually works.
16711 #
16712 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16714 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16715 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16716   $as_echo_n "(cached) " >&6
16717 else
16718   lt_cv_prog_compiler_static_works_GCJ=no
16719    save_LDFLAGS="$LDFLAGS"
16720    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16721    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16722    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16723      # The linker can only warn and ignore the option if not recognized
16724      # So say no if there are warnings
16725      if test -s conftest.err; then
16726        # Append any errors to the config.log.
16727        cat conftest.err 1>&5
16728        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16729        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16730        if diff conftest.exp conftest.er2 >/dev/null; then
16731          lt_cv_prog_compiler_static_works_GCJ=yes
16732        fi
16733      else
16734        lt_cv_prog_compiler_static_works_GCJ=yes
16735      fi
16736    fi
16737    $rm -r conftest*
16738    LDFLAGS="$save_LDFLAGS"
16739
16740 fi
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16742 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16743
16744 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16745     :
16746 else
16747     lt_prog_compiler_static_GCJ=
16748 fi
16749
16750
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16753 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16754   $as_echo_n "(cached) " >&6
16755 else
16756   lt_cv_prog_compiler_c_o_GCJ=no
16757    $rm -r conftest 2>/dev/null
16758    mkdir conftest
16759    cd conftest
16760    mkdir out
16761    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16762
16763    lt_compiler_flag="-o out/conftest2.$ac_objext"
16764    # Insert the option either (1) after the last *FLAGS variable, or
16765    # (2) before a word containing "conftest.", or (3) at the end.
16766    # Note that $ac_compile itself does not contain backslashes and begins
16767    # with a dollar sign (not a hyphen), so the echo should work correctly.
16768    lt_compile=`echo "$ac_compile" | $SED \
16769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16771    -e 's:$: $lt_compiler_flag:'`
16772    (eval echo "\"\$as_me:16768: $lt_compile\"" >&5)
16773    (eval "$lt_compile" 2>out/conftest.err)
16774    ac_status=$?
16775    cat out/conftest.err >&5
16776    echo "$as_me:16772: \$? = $ac_status" >&5
16777    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16778    then
16779      # The compiler can only warn and ignore the option if not recognized
16780      # So say no if there are warnings
16781      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16782      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16783      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16784        lt_cv_prog_compiler_c_o_GCJ=yes
16785      fi
16786    fi
16787    chmod u+w . 2>&5
16788    $rm conftest*
16789    # SGI C++ compiler will create directory out/ii_files/ for
16790    # template instantiation
16791    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16792    $rm out/* && rmdir out
16793    cd ..
16794    rmdir conftest
16795    $rm conftest*
16796
16797 fi
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16799 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16800
16801
16802 hard_links="nottested"
16803 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16804   # do not overwrite the value of need_locks provided by the user
16805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16806 $as_echo_n "checking if we can lock with hard links... " >&6; }
16807   hard_links=yes
16808   $rm conftest*
16809   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16810   touch conftest.a
16811   ln conftest.a conftest.b 2>&5 || hard_links=no
16812   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16814 $as_echo "$hard_links" >&6; }
16815   if test "$hard_links" = no; then
16816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16817 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16818     need_locks=warn
16819   fi
16820 else
16821   need_locks=no
16822 fi
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16825 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16826
16827   runpath_var=
16828   allow_undefined_flag_GCJ=
16829   enable_shared_with_static_runtimes_GCJ=no
16830   archive_cmds_GCJ=
16831   archive_expsym_cmds_GCJ=
16832   old_archive_From_new_cmds_GCJ=
16833   old_archive_from_expsyms_cmds_GCJ=
16834   export_dynamic_flag_spec_GCJ=
16835   whole_archive_flag_spec_GCJ=
16836   thread_safe_flag_spec_GCJ=
16837   hardcode_libdir_flag_spec_GCJ=
16838   hardcode_libdir_flag_spec_ld_GCJ=
16839   hardcode_libdir_separator_GCJ=
16840   hardcode_direct_GCJ=no
16841   hardcode_minus_L_GCJ=no
16842   hardcode_shlibpath_var_GCJ=unsupported
16843   link_all_deplibs_GCJ=unknown
16844   hardcode_automatic_GCJ=no
16845   module_cmds_GCJ=
16846   module_expsym_cmds_GCJ=
16847   always_export_symbols_GCJ=no
16848   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16849   # include_expsyms should be a list of space-separated symbols to be *always*
16850   # included in the symbol list
16851   include_expsyms_GCJ=
16852   # exclude_expsyms can be an extended regexp of symbols to exclude
16853   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16854   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16855   # as well as any symbol that contains `d'.
16856   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16857   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16858   # platforms (ab)use it in PIC code, but their linkers get confused if
16859   # the symbol is explicitly referenced.  Since portable code cannot
16860   # rely on this symbol name, it's probably fine to never include it in
16861   # preloaded symbol tables.
16862   # Exclude shared library initialization/finalization symbols.
16863   extract_expsyms_cmds=
16864   # Just being paranoid about ensuring that cc_basename is set.
16865   for cc_temp in $compiler""; do
16866   case $cc_temp in
16867     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16868     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16869     \-*) ;;
16870     *) break;;
16871   esac
16872 done
16873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16874
16875   case $host_os in
16876   cygwin* | mingw* | pw32*)
16877     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16878     # When not using gcc, we currently assume that we are using
16879     # Microsoft Visual C++.
16880     if test "$GCC" != yes; then
16881       with_gnu_ld=no
16882     fi
16883     ;;
16884   interix*)
16885     # we just hope/assume this is gcc and not c89 (= MSVC++)
16886     with_gnu_ld=yes
16887     ;;
16888   openbsd*)
16889     with_gnu_ld=no
16890     ;;
16891   esac
16892
16893   ld_shlibs_GCJ=yes
16894   if test "$with_gnu_ld" = yes; then
16895     # If archive_cmds runs LD, not CC, wlarc should be empty
16896     wlarc='${wl}'
16897
16898     # Set some defaults for GNU ld with shared library support. These
16899     # are reset later if shared libraries are not supported. Putting them
16900     # here allows them to be overridden if necessary.
16901     runpath_var=LD_RUN_PATH
16902     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16903     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16904     # ancient GNU ld didn't support --whole-archive et. al.
16905     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16906         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16907       else
16908         whole_archive_flag_spec_GCJ=
16909     fi
16910     supports_anon_versioning=no
16911     case `$LD -v 2>/dev/null` in
16912       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16913       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16914       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16915       *\ 2.11.*) ;; # other 2.11 versions
16916       *) supports_anon_versioning=yes ;;
16917     esac
16918
16919     # See if GNU ld supports shared libraries.
16920     case $host_os in
16921     aix[3-9]*)
16922       # On AIX/PPC, the GNU linker is very broken
16923       if test "$host_cpu" != ia64; then
16924         ld_shlibs_GCJ=no
16925         cat <<EOF 1>&2
16926
16927 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16928 *** to be unable to reliably create shared libraries on AIX.
16929 *** Therefore, libtool is disabling shared libraries support.  If you
16930 *** really care for shared libraries, you may want to modify your PATH
16931 *** so that a non-GNU linker is found, and then restart.
16932
16933 EOF
16934       fi
16935       ;;
16936
16937     amigaos*)
16938       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)'
16939       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940       hardcode_minus_L_GCJ=yes
16941
16942       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16943       # that the semantics of dynamic libraries on AmigaOS, at least up
16944       # to version 4, is to share data among multiple programs linked
16945       # with the same dynamic library.  Since this doesn't match the
16946       # behavior of shared libraries on other platforms, we can't use
16947       # them.
16948       ld_shlibs_GCJ=no
16949       ;;
16950
16951     beos*)
16952       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16953         allow_undefined_flag_GCJ=unsupported
16954         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16955         # support --undefined.  This deserves some investigation.  FIXME
16956         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16957       else
16958         ld_shlibs_GCJ=no
16959       fi
16960       ;;
16961
16962     cygwin* | mingw* | pw32*)
16963       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16964       # as there is no search path for DLLs.
16965       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966       allow_undefined_flag_GCJ=unsupported
16967       always_export_symbols_GCJ=no
16968       enable_shared_with_static_runtimes_GCJ=yes
16969       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16970
16971       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16972         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16973         # If the export-symbols file already is a .def file (1st line
16974         # is EXPORTS), use it as is; otherwise, prepend...
16975         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16976           cp $export_symbols $output_objdir/$soname.def;
16977         else
16978           echo EXPORTS > $output_objdir/$soname.def;
16979           cat $export_symbols >> $output_objdir/$soname.def;
16980         fi~
16981         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16982       else
16983         ld_shlibs_GCJ=no
16984       fi
16985       ;;
16986
16987     interix[3-9]*)
16988       hardcode_direct_GCJ=no
16989       hardcode_shlibpath_var_GCJ=no
16990       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16991       export_dynamic_flag_spec_GCJ='${wl}-E'
16992       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16993       # Instead, shared libraries are loaded at an image base (0x10000000 by
16994       # default) and relocated if they conflict, which is a slow very memory
16995       # consuming and fragmenting process.  To avoid this, we pick a random,
16996       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16997       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16998       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'
16999       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'
17000       ;;
17001
17002     gnu* | linux* | k*bsd*-gnu)
17003       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17004         tmp_addflag=
17005         case $cc_basename,$host_cpu in
17006         pgcc*)                          # Portland Group C compiler
17007           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'
17008           tmp_addflag=' $pic_flag'
17009           ;;
17010         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17011           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'
17012           tmp_addflag=' $pic_flag -Mnomain' ;;
17013         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17014           tmp_addflag=' -i_dynamic' ;;
17015         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17016           tmp_addflag=' -i_dynamic -nofor_main' ;;
17017         ifc* | ifort*)                  # Intel Fortran compiler
17018           tmp_addflag=' -nofor_main' ;;
17019         esac
17020         case `$CC -V 2>&1 | sed 5q` in
17021         *Sun\ C*)                       # Sun C 5.9
17022           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'
17023           tmp_sharedflag='-G' ;;
17024         *Sun\ F*)                       # Sun Fortran 8.3
17025           tmp_sharedflag='-G' ;;
17026         *)
17027           tmp_sharedflag='-shared' ;;
17028         esac
17029         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17030
17031         if test $supports_anon_versioning = yes; then
17032           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17033   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17034   $echo "local: *; };" >> $output_objdir/$libname.ver~
17035           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17036         fi
17037         link_all_deplibs_GCJ=no
17038       else
17039         ld_shlibs_GCJ=no
17040       fi
17041       ;;
17042
17043     netbsd* | netbsdelf*-gnu)
17044       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17045         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17046         wlarc=
17047       else
17048         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17050       fi
17051       ;;
17052
17053     solaris*)
17054       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17055         ld_shlibs_GCJ=no
17056         cat <<EOF 1>&2
17057
17058 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17059 *** create shared libraries on Solaris systems.  Therefore, libtool
17060 *** is disabling shared libraries support.  We urge you to upgrade GNU
17061 *** binutils to release 2.9.1 or newer.  Another option is to modify
17062 *** your PATH or compiler configuration so that the native linker is
17063 *** used, and then restart.
17064
17065 EOF
17066       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17067         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17068         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17069       else
17070         ld_shlibs_GCJ=no
17071       fi
17072       ;;
17073
17074     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17075       case `$LD -v 2>&1` in
17076         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17077         ld_shlibs_GCJ=no
17078         cat <<_LT_EOF 1>&2
17079
17080 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17081 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17082 *** is disabling shared libraries support.  We urge you to upgrade GNU
17083 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17084 *** your PATH or compiler configuration so that the native linker is
17085 *** used, and then restart.
17086
17087 _LT_EOF
17088         ;;
17089         *)
17090           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17091             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17092             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17093             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17094           else
17095             ld_shlibs_GCJ=no
17096           fi
17097         ;;
17098       esac
17099       ;;
17100
17101     sunos4*)
17102       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17103       wlarc=
17104       hardcode_direct_GCJ=yes
17105       hardcode_shlibpath_var_GCJ=no
17106       ;;
17107
17108     *)
17109       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17110         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17111         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17112       else
17113         ld_shlibs_GCJ=no
17114       fi
17115       ;;
17116     esac
17117
17118     if test "$ld_shlibs_GCJ" = no; then
17119       runpath_var=
17120       hardcode_libdir_flag_spec_GCJ=
17121       export_dynamic_flag_spec_GCJ=
17122       whole_archive_flag_spec_GCJ=
17123     fi
17124   else
17125     # PORTME fill in a description of your system's linker (not GNU ld)
17126     case $host_os in
17127     aix3*)
17128       allow_undefined_flag_GCJ=unsupported
17129       always_export_symbols_GCJ=yes
17130       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'
17131       # Note: this linker hardcodes the directories in LIBPATH if there
17132       # are no directories specified by -L.
17133       hardcode_minus_L_GCJ=yes
17134       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17135         # Neither direct hardcoding nor static linking is supported with a
17136         # broken collect2.
17137         hardcode_direct_GCJ=unsupported
17138       fi
17139       ;;
17140
17141     aix[4-9]*)
17142       if test "$host_cpu" = ia64; then
17143         # On IA64, the linker does run time linking by default, so we don't
17144         # have to do anything special.
17145         aix_use_runtimelinking=no
17146         exp_sym_flag='-Bexport'
17147         no_entry_flag=""
17148       else
17149         # If we're using GNU nm, then we don't want the "-C" option.
17150         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17151         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17152           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'
17153         else
17154           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'
17155         fi
17156         aix_use_runtimelinking=no
17157
17158         # Test if we are trying to use run time linking or normal
17159         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17160         # need to do runtime linking.
17161         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17162           for ld_flag in $LDFLAGS; do
17163           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17164             aix_use_runtimelinking=yes
17165             break
17166           fi
17167           done
17168           ;;
17169         esac
17170
17171         exp_sym_flag='-bexport'
17172         no_entry_flag='-bnoentry'
17173       fi
17174
17175       # When large executables or shared objects are built, AIX ld can
17176       # have problems creating the table of contents.  If linking a library
17177       # or program results in "error TOC overflow" add -mminimal-toc to
17178       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17179       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17180
17181       archive_cmds_GCJ=''
17182       hardcode_direct_GCJ=yes
17183       hardcode_libdir_separator_GCJ=':'
17184       link_all_deplibs_GCJ=yes
17185
17186       if test "$GCC" = yes; then
17187         case $host_os in aix4.[012]|aix4.[012].*)
17188         # We only want to do this on AIX 4.2 and lower, the check
17189         # below for broken collect2 doesn't work under 4.3+
17190           collect2name=`${CC} -print-prog-name=collect2`
17191           if test -f "$collect2name" && \
17192            strings "$collect2name" | grep resolve_lib_name >/dev/null
17193           then
17194           # We have reworked collect2
17195           :
17196           else
17197           # We have old collect2
17198           hardcode_direct_GCJ=unsupported
17199           # It fails to find uninstalled libraries when the uninstalled
17200           # path is not listed in the libpath.  Setting hardcode_minus_L
17201           # to unsupported forces relinking
17202           hardcode_minus_L_GCJ=yes
17203           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17204           hardcode_libdir_separator_GCJ=
17205           fi
17206           ;;
17207         esac
17208         shared_flag='-shared'
17209         if test "$aix_use_runtimelinking" = yes; then
17210           shared_flag="$shared_flag "'${wl}-G'
17211         fi
17212       else
17213         # not using gcc
17214         if test "$host_cpu" = ia64; then
17215         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17216         # chokes on -Wl,-G. The following line is correct:
17217           shared_flag='-G'
17218         else
17219           if test "$aix_use_runtimelinking" = yes; then
17220             shared_flag='${wl}-G'
17221           else
17222             shared_flag='${wl}-bM:SRE'
17223           fi
17224         fi
17225       fi
17226
17227       # It seems that -bexpall does not export symbols beginning with
17228       # underscore (_), so it is better to generate a list of symbols to export.
17229       always_export_symbols_GCJ=yes
17230       if test "$aix_use_runtimelinking" = yes; then
17231         # Warning - without using the other runtime loading flags (-brtl),
17232         # -berok will link without error, but may produce a broken library.
17233         allow_undefined_flag_GCJ='-berok'
17234        # Determine the default libpath from the value encoded in an empty executable.
17235        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h.  */
17237
17238 int
17239 main ()
17240 {
17241
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 if ac_fn_c_try_link "$LINENO"; then :
17247
17248 lt_aix_libpath_sed='
17249     /Import File Strings/,/^$/ {
17250         /^0/ {
17251             s/^0  *\(.*\)$/\1/
17252             p
17253         }
17254     }'
17255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17256 # Check for a 64-bit object if we didn't find anything.
17257 if test -z "$aix_libpath"; then
17258   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17259 fi
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext \
17262     conftest$ac_exeext conftest.$ac_ext
17263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17264
17265        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17266         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"
17267        else
17268         if test "$host_cpu" = ia64; then
17269           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17270           allow_undefined_flag_GCJ="-z nodefs"
17271           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"
17272         else
17273          # Determine the default libpath from the value encoded in an empty executable.
17274          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h.  */
17276
17277 int
17278 main ()
17279 {
17280
17281   ;
17282   return 0;
17283 }
17284 _ACEOF
17285 if ac_fn_c_try_link "$LINENO"; then :
17286
17287 lt_aix_libpath_sed='
17288     /Import File Strings/,/^$/ {
17289         /^0/ {
17290             s/^0  *\(.*\)$/\1/
17291             p
17292         }
17293     }'
17294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17295 # Check for a 64-bit object if we didn't find anything.
17296 if test -z "$aix_libpath"; then
17297   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17298 fi
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext \
17301     conftest$ac_exeext conftest.$ac_ext
17302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17303
17304          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17305           # Warning - without using the other run time loading flags,
17306           # -berok will link without error, but may produce a broken library.
17307           no_undefined_flag_GCJ=' ${wl}-bernotok'
17308           allow_undefined_flag_GCJ=' ${wl}-berok'
17309           # Exported symbols can be pulled into shared objects from archives
17310           whole_archive_flag_spec_GCJ='$convenience'
17311           archive_cmds_need_lc_GCJ=yes
17312           # This is similar to how AIX traditionally builds its shared libraries.
17313           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'
17314         fi
17315       fi
17316       ;;
17317
17318     amigaos*)
17319       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)'
17320       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17321       hardcode_minus_L_GCJ=yes
17322       # see comment about different semantics on the GNU ld section
17323       ld_shlibs_GCJ=no
17324       ;;
17325
17326     bsdi[45]*)
17327       export_dynamic_flag_spec_GCJ=-rdynamic
17328       ;;
17329
17330     cygwin* | mingw* | pw32*)
17331       # When not using gcc, we currently assume that we are using
17332       # Microsoft Visual C++.
17333       # hardcode_libdir_flag_spec is actually meaningless, as there is
17334       # no search path for DLLs.
17335       hardcode_libdir_flag_spec_GCJ=' '
17336       allow_undefined_flag_GCJ=unsupported
17337       # Tell ltmain to make .lib files, not .a files.
17338       libext=lib
17339       # Tell ltmain to make .dll files, not .so files.
17340       shrext_cmds=".dll"
17341       # FIXME: Setting linknames here is a bad hack.
17342       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17343       # The linker will automatically build a .lib file if we build a DLL.
17344       old_archive_From_new_cmds_GCJ='true'
17345       # FIXME: Should let the user specify the lib program.
17346       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17347       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17348       enable_shared_with_static_runtimes_GCJ=yes
17349       ;;
17350
17351     darwin* | rhapsody*)
17352       case $host_os in
17353         rhapsody* | darwin1.[012])
17354          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17355          ;;
17356        *) # Darwin 1.3 on
17357          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17358            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17359          else
17360            case ${MACOSX_DEPLOYMENT_TARGET} in
17361              10.[012])
17362                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17363                ;;
17364              10.*)
17365                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17366                ;;
17367            esac
17368          fi
17369          ;;
17370       esac
17371       archive_cmds_need_lc_GCJ=no
17372       hardcode_direct_GCJ=no
17373       hardcode_automatic_GCJ=yes
17374       hardcode_shlibpath_var_GCJ=unsupported
17375       whole_archive_flag_spec_GCJ=''
17376       link_all_deplibs_GCJ=yes
17377     if test "$GCC" = yes ; then
17378         output_verbose_link_cmd='echo'
17379         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}"
17380         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17381         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}"
17382         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}"
17383     else
17384       case $cc_basename in
17385         xlc*)
17386          output_verbose_link_cmd='echo'
17387          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17388          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17389           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17390          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}'
17391           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}'
17392           ;;
17393        *)
17394          ld_shlibs_GCJ=no
17395           ;;
17396       esac
17397     fi
17398       ;;
17399
17400     dgux*)
17401       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17402       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17403       hardcode_shlibpath_var_GCJ=no
17404       ;;
17405
17406     freebsd1*)
17407       ld_shlibs_GCJ=no
17408       ;;
17409
17410     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17411     # support.  Future versions do this automatically, but an explicit c++rt0.o
17412     # does not break anything, and helps significantly (at the cost of a little
17413     # extra space).
17414     freebsd2.2*)
17415       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17416       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17417       hardcode_direct_GCJ=yes
17418       hardcode_shlibpath_var_GCJ=no
17419       ;;
17420
17421     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17422     freebsd2*)
17423       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424       hardcode_direct_GCJ=yes
17425       hardcode_minus_L_GCJ=yes
17426       hardcode_shlibpath_var_GCJ=no
17427       ;;
17428
17429     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17430     freebsd* | dragonfly*)
17431       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17432       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17433       hardcode_direct_GCJ=yes
17434       hardcode_shlibpath_var_GCJ=no
17435       ;;
17436
17437     hpux9*)
17438       if test "$GCC" = yes; then
17439         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'
17440       else
17441         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'
17442       fi
17443       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17444       hardcode_libdir_separator_GCJ=:
17445       hardcode_direct_GCJ=yes
17446
17447       # hardcode_minus_L: Not really in the search PATH,
17448       # but as the default location of the library.
17449       hardcode_minus_L_GCJ=yes
17450       export_dynamic_flag_spec_GCJ='${wl}-E'
17451       ;;
17452
17453     hpux10*)
17454       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17455         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17456       else
17457         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17458       fi
17459       if test "$with_gnu_ld" = no; then
17460         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17461         hardcode_libdir_separator_GCJ=:
17462
17463         hardcode_direct_GCJ=yes
17464         export_dynamic_flag_spec_GCJ='${wl}-E'
17465
17466         # hardcode_minus_L: Not really in the search PATH,
17467         # but as the default location of the library.
17468         hardcode_minus_L_GCJ=yes
17469       fi
17470       ;;
17471
17472     hpux11*)
17473       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17474         case $host_cpu in
17475         hppa*64*)
17476           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17477           ;;
17478         ia64*)
17479           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17480           ;;
17481         *)
17482           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17483           ;;
17484         esac
17485       else
17486         case $host_cpu in
17487         hppa*64*)
17488           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17489           ;;
17490         ia64*)
17491           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17492           ;;
17493         *)
17494           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17495           ;;
17496         esac
17497       fi
17498       if test "$with_gnu_ld" = no; then
17499         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17500         hardcode_libdir_separator_GCJ=:
17501
17502         case $host_cpu in
17503         hppa*64*|ia64*)
17504           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17505           hardcode_direct_GCJ=no
17506           hardcode_shlibpath_var_GCJ=no
17507           ;;
17508         *)
17509           hardcode_direct_GCJ=yes
17510           export_dynamic_flag_spec_GCJ='${wl}-E'
17511
17512           # hardcode_minus_L: Not really in the search PATH,
17513           # but as the default location of the library.
17514           hardcode_minus_L_GCJ=yes
17515           ;;
17516         esac
17517       fi
17518       ;;
17519
17520     irix5* | irix6* | nonstopux*)
17521       if test "$GCC" = yes; then
17522         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'
17523       else
17524         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'
17525         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17526       fi
17527       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17528       hardcode_libdir_separator_GCJ=:
17529       link_all_deplibs_GCJ=yes
17530       ;;
17531
17532     netbsd* | netbsdelf*-gnu)
17533       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17534         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17535       else
17536         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17537       fi
17538       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17539       hardcode_direct_GCJ=yes
17540       hardcode_shlibpath_var_GCJ=no
17541       ;;
17542
17543     newsos6)
17544       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545       hardcode_direct_GCJ=yes
17546       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17547       hardcode_libdir_separator_GCJ=:
17548       hardcode_shlibpath_var_GCJ=no
17549       ;;
17550
17551     openbsd*)
17552       if test -f /usr/libexec/ld.so; then
17553         hardcode_direct_GCJ=yes
17554         hardcode_shlibpath_var_GCJ=no
17555         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17556           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17557           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17558           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17559           export_dynamic_flag_spec_GCJ='${wl}-E'
17560         else
17561           case $host_os in
17562            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17563              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17564              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17565              ;;
17566            *)
17567              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17568              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17569              ;;
17570           esac
17571         fi
17572       else
17573         ld_shlibs_GCJ=no
17574       fi
17575       ;;
17576
17577     os2*)
17578       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579       hardcode_minus_L_GCJ=yes
17580       allow_undefined_flag_GCJ=unsupported
17581       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'
17582       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17583       ;;
17584
17585     osf3*)
17586       if test "$GCC" = yes; then
17587         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17588         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'
17589       else
17590         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17591         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'
17592       fi
17593       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594       hardcode_libdir_separator_GCJ=:
17595       ;;
17596
17597     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17598       if test "$GCC" = yes; then
17599         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17600         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'
17601         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17602       else
17603         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17604         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'
17605         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~
17606         $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'
17607
17608         # Both c and cxx compiler support -rpath directly
17609         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17610       fi
17611       hardcode_libdir_separator_GCJ=:
17612       ;;
17613
17614     solaris*)
17615       no_undefined_flag_GCJ=' -z text'
17616       if test "$GCC" = yes; then
17617         wlarc='${wl}'
17618         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17620           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17621       else
17622         wlarc=''
17623         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17625         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17626       fi
17627       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17628       hardcode_shlibpath_var_GCJ=no
17629       case $host_os in
17630       solaris2.[0-5] | solaris2.[0-5].*) ;;
17631       *)
17632         # The compiler driver will combine and reorder linker options,
17633         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17634         # but is careful enough not to reorder.
17635         # Supported since Solaris 2.6 (maybe 2.5.1?)
17636         if test "$GCC" = yes; then
17637           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17638         else
17639           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17640         fi
17641         ;;
17642       esac
17643       link_all_deplibs_GCJ=yes
17644       ;;
17645
17646     sunos4*)
17647       if test "x$host_vendor" = xsequent; then
17648         # Use $CC to link under sequent, because it throws in some extra .o
17649         # files that make .init and .fini sections work.
17650         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17651       else
17652         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17653       fi
17654       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17655       hardcode_direct_GCJ=yes
17656       hardcode_minus_L_GCJ=yes
17657       hardcode_shlibpath_var_GCJ=no
17658       ;;
17659
17660     sysv4)
17661       case $host_vendor in
17662         sni)
17663           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664           hardcode_direct_GCJ=yes # is this really true???
17665         ;;
17666         siemens)
17667           ## LD is ld it makes a PLAMLIB
17668           ## CC just makes a GrossModule.
17669           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17670           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17671           hardcode_direct_GCJ=no
17672         ;;
17673         motorola)
17674           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17675           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17676         ;;
17677       esac
17678       runpath_var='LD_RUN_PATH'
17679       hardcode_shlibpath_var_GCJ=no
17680       ;;
17681
17682     sysv4.3*)
17683       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17684       hardcode_shlibpath_var_GCJ=no
17685       export_dynamic_flag_spec_GCJ='-Bexport'
17686       ;;
17687
17688     sysv4*MP*)
17689       if test -d /usr/nec; then
17690         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691         hardcode_shlibpath_var_GCJ=no
17692         runpath_var=LD_RUN_PATH
17693         hardcode_runpath_var=yes
17694         ld_shlibs_GCJ=yes
17695       fi
17696       ;;
17697
17698     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17699       no_undefined_flag_GCJ='${wl}-z,text'
17700       archive_cmds_need_lc_GCJ=no
17701       hardcode_shlibpath_var_GCJ=no
17702       runpath_var='LD_RUN_PATH'
17703
17704       if test "$GCC" = yes; then
17705         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17706         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17707       else
17708         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17709         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17710       fi
17711       ;;
17712
17713     sysv5* | sco3.2v5* | sco5v6*)
17714       # Note: We can NOT use -z defs as we might desire, because we do not
17715       # link with -lc, and that would cause any symbols used from libc to
17716       # always be unresolved, which means just about no library would
17717       # ever link correctly.  If we're not using GNU ld we use -z text
17718       # though, which does catch some bad symbols but isn't as heavy-handed
17719       # as -z defs.
17720       no_undefined_flag_GCJ='${wl}-z,text'
17721       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17722       archive_cmds_need_lc_GCJ=no
17723       hardcode_shlibpath_var_GCJ=no
17724       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17725       hardcode_libdir_separator_GCJ=':'
17726       link_all_deplibs_GCJ=yes
17727       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17728       runpath_var='LD_RUN_PATH'
17729
17730       if test "$GCC" = yes; then
17731         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17732         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17733       else
17734         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17735         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17736       fi
17737       ;;
17738
17739     uts4*)
17740       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742       hardcode_shlibpath_var_GCJ=no
17743       ;;
17744
17745     *)
17746       ld_shlibs_GCJ=no
17747       ;;
17748     esac
17749   fi
17750
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17752 $as_echo "$ld_shlibs_GCJ" >&6; }
17753 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17754
17755 #
17756 # Do we need to explicitly link libc?
17757 #
17758 case "x$archive_cmds_need_lc_GCJ" in
17759 x|xyes)
17760   # Assume -lc should be added
17761   archive_cmds_need_lc_GCJ=yes
17762
17763   if test "$enable_shared" = yes && test "$GCC" = yes; then
17764     case $archive_cmds_GCJ in
17765     *'~'*)
17766       # FIXME: we may have to deal with multi-command sequences.
17767       ;;
17768     '$CC '*)
17769       # Test whether the compiler implicitly links with -lc since on some
17770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17771       # to ld, don't add -lc before -lgcc.
17772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17774       $rm conftest*
17775       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17776
17777       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17778   (eval $ac_compile) 2>&5
17779   ac_status=$?
17780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17781   test $ac_status = 0; } 2>conftest.err; then
17782         soname=conftest
17783         lib=conftest
17784         libobjs=conftest.$ac_objext
17785         deplibs=
17786         wl=$lt_prog_compiler_wl_GCJ
17787         pic_flag=$lt_prog_compiler_pic_GCJ
17788         compiler_flags=-v
17789         linker_flags=-v
17790         verstring=
17791         output_objdir=.
17792         libname=conftest
17793         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17794         allow_undefined_flag_GCJ=
17795         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17796   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17797   ac_status=$?
17798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17799   test $ac_status = 0; }
17800         then
17801           archive_cmds_need_lc_GCJ=no
17802         else
17803           archive_cmds_need_lc_GCJ=yes
17804         fi
17805         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17806       else
17807         cat conftest.err 1>&5
17808       fi
17809       $rm conftest*
17810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17811 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17812       ;;
17813     esac
17814   fi
17815   ;;
17816 esac
17817
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17820 library_names_spec=
17821 libname_spec='lib$name'
17822 soname_spec=
17823 shrext_cmds=".so"
17824 postinstall_cmds=
17825 postuninstall_cmds=
17826 finish_cmds=
17827 finish_eval=
17828 shlibpath_var=
17829 shlibpath_overrides_runpath=unknown
17830 version_type=none
17831 dynamic_linker="$host_os ld.so"
17832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17833
17834 need_lib_prefix=unknown
17835 hardcode_into_libs=no
17836
17837 # when you set need_version to no, make sure it does not cause -set_version
17838 # flags to be left without arguments
17839 need_version=unknown
17840
17841 case $host_os in
17842 aix3*)
17843   version_type=linux
17844   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17845   shlibpath_var=LIBPATH
17846
17847   # AIX 3 has no versioning support, so we append a major version to the name.
17848   soname_spec='${libname}${release}${shared_ext}$major'
17849   ;;
17850
17851 aix[4-9]*)
17852   version_type=linux
17853   need_lib_prefix=no
17854   need_version=no
17855   hardcode_into_libs=yes
17856   if test "$host_cpu" = ia64; then
17857     # AIX 5 supports IA64
17858     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17859     shlibpath_var=LD_LIBRARY_PATH
17860   else
17861     # With GCC up to 2.95.x, collect2 would create an import file
17862     # for dependence libraries.  The import file would start with
17863     # the line `#! .'.  This would cause the generated library to
17864     # depend on `.', always an invalid library.  This was fixed in
17865     # development snapshots of GCC prior to 3.0.
17866     case $host_os in
17867       aix4 | aix4.[01] | aix4.[01].*)
17868       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17869            echo ' yes '
17870            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17871         :
17872       else
17873         can_build_shared=no
17874       fi
17875       ;;
17876     esac
17877     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17878     # soname into executable. Probably we can add versioning support to
17879     # collect2, so additional links can be useful in future.
17880     if test "$aix_use_runtimelinking" = yes; then
17881       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17882       # instead of lib<name>.a to let people know that these are not
17883       # typical AIX shared libraries.
17884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17885     else
17886       # We preserve .a as extension for shared libraries through AIX4.2
17887       # and later when we are not doing run time linking.
17888       library_names_spec='${libname}${release}.a $libname.a'
17889       soname_spec='${libname}${release}${shared_ext}$major'
17890     fi
17891     shlibpath_var=LIBPATH
17892   fi
17893   ;;
17894
17895 amigaos*)
17896   library_names_spec='$libname.ixlibrary $libname.a'
17897   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17898   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'
17899   ;;
17900
17901 beos*)
17902   library_names_spec='${libname}${shared_ext}'
17903   dynamic_linker="$host_os ld.so"
17904   shlibpath_var=LIBRARY_PATH
17905   ;;
17906
17907 bsdi[45]*)
17908   version_type=linux
17909   need_version=no
17910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911   soname_spec='${libname}${release}${shared_ext}$major'
17912   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17913   shlibpath_var=LD_LIBRARY_PATH
17914   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17915   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17916   # the default ld.so.conf also contains /usr/contrib/lib and
17917   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17918   # libtool to hard-code these into programs
17919   ;;
17920
17921 cygwin* | mingw* | pw32*)
17922   version_type=windows
17923   shrext_cmds=".dll"
17924   need_version=no
17925   need_lib_prefix=no
17926
17927   case $GCC,$host_os in
17928   yes,cygwin* | yes,mingw* | yes,pw32*)
17929     library_names_spec='$libname.dll.a'
17930     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17931     postinstall_cmds='base_file=`basename \${file}`~
17932       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17933       dldir=$destdir/`dirname \$dlpath`~
17934       test -d \$dldir || mkdir -p \$dldir~
17935       $install_prog $dir/$dlname \$dldir/$dlname~
17936       chmod a+x \$dldir/$dlname'
17937     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17938       dlpath=$dir/\$dldll~
17939        $rm \$dlpath'
17940     shlibpath_overrides_runpath=yes
17941
17942     case $host_os in
17943     cygwin*)
17944       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17945       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17946       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17947       ;;
17948     mingw*)
17949       # MinGW DLLs use traditional 'lib' prefix
17950       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17951       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17952       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17953         # It is most probably a Windows format PATH printed by
17954         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17955         # path with ; separators, and with drive letters. We can handle the
17956         # drive letters (cygwin fileutils understands them), so leave them,
17957         # especially as we might pass files found there to a mingw objdump,
17958         # which wouldn't understand a cygwinified path. Ahh.
17959         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17960       else
17961         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17962       fi
17963       ;;
17964     pw32*)
17965       # pw32 DLLs use 'pw' prefix rather than 'lib'
17966       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17967       ;;
17968     esac
17969     ;;
17970
17971   *)
17972     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17973     ;;
17974   esac
17975   dynamic_linker='Win32 ld.exe'
17976   # FIXME: first we should search . and the directory the executable is in
17977   shlibpath_var=PATH
17978   ;;
17979
17980 darwin* | rhapsody*)
17981   dynamic_linker="$host_os dyld"
17982   version_type=darwin
17983   need_lib_prefix=no
17984   need_version=no
17985   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17986   soname_spec='${libname}${release}${major}$shared_ext'
17987   shlibpath_overrides_runpath=yes
17988   shlibpath_var=DYLD_LIBRARY_PATH
17989   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17990
17991   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17992   ;;
17993
17994 dgux*)
17995   version_type=linux
17996   need_lib_prefix=no
17997   need_version=no
17998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17999   soname_spec='${libname}${release}${shared_ext}$major'
18000   shlibpath_var=LD_LIBRARY_PATH
18001   ;;
18002
18003 freebsd1*)
18004   dynamic_linker=no
18005   ;;
18006
18007 freebsd* | dragonfly*)
18008   # DragonFly does not have aout.  When/if they implement a new
18009   # versioning mechanism, adjust this.
18010   if test -x /usr/bin/objformat; then
18011     objformat=`/usr/bin/objformat`
18012   else
18013     case $host_os in
18014     freebsd[123]*) objformat=aout ;;
18015     *) objformat=elf ;;
18016     esac
18017   fi
18018   version_type=freebsd-$objformat
18019   case $version_type in
18020     freebsd-elf*)
18021       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18022       need_version=no
18023       need_lib_prefix=no
18024       ;;
18025     freebsd-*)
18026       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18027       need_version=yes
18028       ;;
18029   esac
18030   shlibpath_var=LD_LIBRARY_PATH
18031   case $host_os in
18032   freebsd2*)
18033     shlibpath_overrides_runpath=yes
18034     ;;
18035   freebsd3.[01]* | freebsdelf3.[01]*)
18036     shlibpath_overrides_runpath=yes
18037     hardcode_into_libs=yes
18038     ;;
18039   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18040   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18041     shlibpath_overrides_runpath=no
18042     hardcode_into_libs=yes
18043     ;;
18044   *) # from 4.6 on, and DragonFly
18045     shlibpath_overrides_runpath=yes
18046     hardcode_into_libs=yes
18047     ;;
18048   esac
18049   ;;
18050
18051 gnu*)
18052   version_type=linux
18053   need_lib_prefix=no
18054   need_version=no
18055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18056   soname_spec='${libname}${release}${shared_ext}$major'
18057   shlibpath_var=LD_LIBRARY_PATH
18058   hardcode_into_libs=yes
18059   ;;
18060
18061 hpux9* | hpux10* | hpux11*)
18062   # Give a soname corresponding to the major version so that dld.sl refuses to
18063   # link against other versions.
18064   version_type=sunos
18065   need_lib_prefix=no
18066   need_version=no
18067   case $host_cpu in
18068   ia64*)
18069     shrext_cmds='.so'
18070     hardcode_into_libs=yes
18071     dynamic_linker="$host_os dld.so"
18072     shlibpath_var=LD_LIBRARY_PATH
18073     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075     soname_spec='${libname}${release}${shared_ext}$major'
18076     if test "X$HPUX_IA64_MODE" = X32; then
18077       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18078     else
18079       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18080     fi
18081     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18082     ;;
18083    hppa*64*)
18084      shrext_cmds='.sl'
18085      hardcode_into_libs=yes
18086      dynamic_linker="$host_os dld.sl"
18087      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18088      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090      soname_spec='${libname}${release}${shared_ext}$major'
18091      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18092      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18093      ;;
18094    *)
18095     shrext_cmds='.sl'
18096     dynamic_linker="$host_os dld.sl"
18097     shlibpath_var=SHLIB_PATH
18098     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100     soname_spec='${libname}${release}${shared_ext}$major'
18101     ;;
18102   esac
18103   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18104   postinstall_cmds='chmod 555 $lib'
18105   ;;
18106
18107 interix[3-9]*)
18108   version_type=linux
18109   need_lib_prefix=no
18110   need_version=no
18111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18112   soname_spec='${libname}${release}${shared_ext}$major'
18113   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18114   shlibpath_var=LD_LIBRARY_PATH
18115   shlibpath_overrides_runpath=no
18116   hardcode_into_libs=yes
18117   ;;
18118
18119 irix5* | irix6* | nonstopux*)
18120   case $host_os in
18121     nonstopux*) version_type=nonstopux ;;
18122     *)
18123         if test "$lt_cv_prog_gnu_ld" = yes; then
18124                 version_type=linux
18125         else
18126                 version_type=irix
18127         fi ;;
18128   esac
18129   need_lib_prefix=no
18130   need_version=no
18131   soname_spec='${libname}${release}${shared_ext}$major'
18132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18133   case $host_os in
18134   irix5* | nonstopux*)
18135     libsuff= shlibsuff=
18136     ;;
18137   *)
18138     case $LD in # libtool.m4 will add one of these switches to LD
18139     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18140       libsuff= shlibsuff= libmagic=32-bit;;
18141     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18142       libsuff=32 shlibsuff=N32 libmagic=N32;;
18143     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18144       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18145     *) libsuff= shlibsuff= libmagic=never-match;;
18146     esac
18147     ;;
18148   esac
18149   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18150   shlibpath_overrides_runpath=no
18151   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18152   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18153   hardcode_into_libs=yes
18154   ;;
18155
18156 # No shared lib support for Linux oldld, aout, or coff.
18157 linux*oldld* | linux*aout* | linux*coff*)
18158   dynamic_linker=no
18159   ;;
18160
18161 # This must be Linux ELF.
18162 linux* | k*bsd*-gnu)
18163   version_type=linux
18164   need_lib_prefix=no
18165   need_version=no
18166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167   soname_spec='${libname}${release}${shared_ext}$major'
18168   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18169   shlibpath_var=LD_LIBRARY_PATH
18170   shlibpath_overrides_runpath=no
18171   # This implies no fast_install, which is unacceptable.
18172   # Some rework will be needed to allow for fast_install
18173   # before this can be enabled.
18174   hardcode_into_libs=yes
18175
18176   # Append ld.so.conf contents to the search path
18177   if test -f /etc/ld.so.conf; then
18178     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' ' '`
18179     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18180   fi
18181
18182   # We used to test for /lib/ld.so.1 and disable shared libraries on
18183   # powerpc, because MkLinux only supported shared libraries with the
18184   # GNU dynamic linker.  Since this was broken with cross compilers,
18185   # most powerpc-linux boxes support dynamic linking these days and
18186   # people can always --disable-shared, the test was removed, and we
18187   # assume the GNU/Linux dynamic linker is in use.
18188   dynamic_linker='GNU/Linux ld.so'
18189   ;;
18190
18191 netbsdelf*-gnu)
18192   version_type=linux
18193   need_lib_prefix=no
18194   need_version=no
18195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196   soname_spec='${libname}${release}${shared_ext}$major'
18197   shlibpath_var=LD_LIBRARY_PATH
18198   shlibpath_overrides_runpath=no
18199   hardcode_into_libs=yes
18200   dynamic_linker='NetBSD ld.elf_so'
18201   ;;
18202
18203 netbsd*)
18204   version_type=sunos
18205   need_lib_prefix=no
18206   need_version=no
18207   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18209     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18210     dynamic_linker='NetBSD (a.out) ld.so'
18211   else
18212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18213     soname_spec='${libname}${release}${shared_ext}$major'
18214     dynamic_linker='NetBSD ld.elf_so'
18215   fi
18216   shlibpath_var=LD_LIBRARY_PATH
18217   shlibpath_overrides_runpath=yes
18218   hardcode_into_libs=yes
18219   ;;
18220
18221 newsos6)
18222   version_type=linux
18223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224   shlibpath_var=LD_LIBRARY_PATH
18225   shlibpath_overrides_runpath=yes
18226   ;;
18227
18228 nto-qnx*)
18229   version_type=linux
18230   need_lib_prefix=no
18231   need_version=no
18232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233   soname_spec='${libname}${release}${shared_ext}$major'
18234   shlibpath_var=LD_LIBRARY_PATH
18235   shlibpath_overrides_runpath=yes
18236   ;;
18237
18238 openbsd*)
18239   version_type=sunos
18240   sys_lib_dlsearch_path_spec="/usr/lib"
18241   need_lib_prefix=no
18242   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18243   case $host_os in
18244     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18245     *)                         need_version=no  ;;
18246   esac
18247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249   shlibpath_var=LD_LIBRARY_PATH
18250   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18251     case $host_os in
18252       openbsd2.[89] | openbsd2.[89].*)
18253         shlibpath_overrides_runpath=no
18254         ;;
18255       *)
18256         shlibpath_overrides_runpath=yes
18257         ;;
18258       esac
18259   else
18260     shlibpath_overrides_runpath=yes
18261   fi
18262   ;;
18263
18264 os2*)
18265   libname_spec='$name'
18266   shrext_cmds=".dll"
18267   need_lib_prefix=no
18268   library_names_spec='$libname${shared_ext} $libname.a'
18269   dynamic_linker='OS/2 ld.exe'
18270   shlibpath_var=LIBPATH
18271   ;;
18272
18273 osf3* | osf4* | osf5*)
18274   version_type=osf
18275   need_lib_prefix=no
18276   need_version=no
18277   soname_spec='${libname}${release}${shared_ext}$major'
18278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279   shlibpath_var=LD_LIBRARY_PATH
18280   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18281   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18282   ;;
18283
18284 rdos*)
18285   dynamic_linker=no
18286   ;;
18287
18288 solaris*)
18289   version_type=linux
18290   need_lib_prefix=no
18291   need_version=no
18292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293   soname_spec='${libname}${release}${shared_ext}$major'
18294   shlibpath_var=LD_LIBRARY_PATH
18295   shlibpath_overrides_runpath=yes
18296   hardcode_into_libs=yes
18297   # ldd complains unless libraries are executable
18298   postinstall_cmds='chmod +x $lib'
18299   ;;
18300
18301 sunos4*)
18302   version_type=sunos
18303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18304   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18305   shlibpath_var=LD_LIBRARY_PATH
18306   shlibpath_overrides_runpath=yes
18307   if test "$with_gnu_ld" = yes; then
18308     need_lib_prefix=no
18309   fi
18310   need_version=yes
18311   ;;
18312
18313 sysv4 | sysv4.3*)
18314   version_type=linux
18315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316   soname_spec='${libname}${release}${shared_ext}$major'
18317   shlibpath_var=LD_LIBRARY_PATH
18318   case $host_vendor in
18319     sni)
18320       shlibpath_overrides_runpath=no
18321       need_lib_prefix=no
18322       export_dynamic_flag_spec='${wl}-Blargedynsym'
18323       runpath_var=LD_RUN_PATH
18324       ;;
18325     siemens)
18326       need_lib_prefix=no
18327       ;;
18328     motorola)
18329       need_lib_prefix=no
18330       need_version=no
18331       shlibpath_overrides_runpath=no
18332       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18333       ;;
18334   esac
18335   ;;
18336
18337 sysv4*MP*)
18338   if test -d /usr/nec ;then
18339     version_type=linux
18340     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18341     soname_spec='$libname${shared_ext}.$major'
18342     shlibpath_var=LD_LIBRARY_PATH
18343   fi
18344   ;;
18345
18346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18347   version_type=freebsd-elf
18348   need_lib_prefix=no
18349   need_version=no
18350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18351   soname_spec='${libname}${release}${shared_ext}$major'
18352   shlibpath_var=LD_LIBRARY_PATH
18353   hardcode_into_libs=yes
18354   if test "$with_gnu_ld" = yes; then
18355     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18356     shlibpath_overrides_runpath=no
18357   else
18358     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18359     shlibpath_overrides_runpath=yes
18360     case $host_os in
18361       sco3.2v5*)
18362         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18363         ;;
18364     esac
18365   fi
18366   sys_lib_dlsearch_path_spec='/usr/lib'
18367   ;;
18368
18369 uts4*)
18370   version_type=linux
18371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372   soname_spec='${libname}${release}${shared_ext}$major'
18373   shlibpath_var=LD_LIBRARY_PATH
18374   ;;
18375
18376 *)
18377   dynamic_linker=no
18378   ;;
18379 esac
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18381 $as_echo "$dynamic_linker" >&6; }
18382 test "$dynamic_linker" = no && can_build_shared=no
18383
18384 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18385   $as_echo_n "(cached) " >&6
18386 else
18387   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18388 fi
18389
18390 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18391 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18392   $as_echo_n "(cached) " >&6
18393 else
18394   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18395 fi
18396
18397 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18398
18399 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18400 if test "$GCC" = yes; then
18401   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18402 fi
18403
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18405 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18406 hardcode_action_GCJ=
18407 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18408    test -n "$runpath_var_GCJ" || \
18409    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18410
18411   # We can hardcode non-existant directories.
18412   if test "$hardcode_direct_GCJ" != no &&
18413      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18414      # have to relink, otherwise we might link with an installed library
18415      # when we should be linking with a yet-to-be-installed one
18416      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18417      test "$hardcode_minus_L_GCJ" != no; then
18418     # Linking always hardcodes the temporary library directory.
18419     hardcode_action_GCJ=relink
18420   else
18421     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18422     hardcode_action_GCJ=immediate
18423   fi
18424 else
18425   # We cannot hardcode anything, or else we can only hardcode existing
18426   # directories.
18427   hardcode_action_GCJ=unsupported
18428 fi
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18430 $as_echo "$hardcode_action_GCJ" >&6; }
18431
18432 if test "$hardcode_action_GCJ" = relink; then
18433   # Fast installation is not supported
18434   enable_fast_install=no
18435 elif test "$shlibpath_overrides_runpath" = yes ||
18436      test "$enable_shared" = no; then
18437   # Fast installation is not necessary
18438   enable_fast_install=needless
18439 fi
18440
18441
18442 # The else clause should only fire when bootstrapping the
18443 # libtool distribution, otherwise you forgot to ship ltmain.sh
18444 # with your package, and you will get complaints that there are
18445 # no rules to generate ltmain.sh.
18446 if test -f "$ltmain"; then
18447   # See if we are running on zsh, and set the options which allow our commands through
18448   # without removal of \ escapes.
18449   if test -n "${ZSH_VERSION+set}" ; then
18450     setopt NO_GLOB_SUBST
18451   fi
18452   # Now quote all the things that may contain metacharacters while being
18453   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18454   # variables and quote the copies for generation of the libtool script.
18455   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18456     SED SHELL STRIP \
18457     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18458     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18459     deplibs_check_method reload_flag reload_cmds need_locks \
18460     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18461     lt_cv_sys_global_symbol_to_c_name_address \
18462     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18463     old_postinstall_cmds old_postuninstall_cmds \
18464     compiler_GCJ \
18465     CC_GCJ \
18466     LD_GCJ \
18467     lt_prog_compiler_wl_GCJ \
18468     lt_prog_compiler_pic_GCJ \
18469     lt_prog_compiler_static_GCJ \
18470     lt_prog_compiler_no_builtin_flag_GCJ \
18471     export_dynamic_flag_spec_GCJ \
18472     thread_safe_flag_spec_GCJ \
18473     whole_archive_flag_spec_GCJ \
18474     enable_shared_with_static_runtimes_GCJ \
18475     old_archive_cmds_GCJ \
18476     old_archive_from_new_cmds_GCJ \
18477     predep_objects_GCJ \
18478     postdep_objects_GCJ \
18479     predeps_GCJ \
18480     postdeps_GCJ \
18481     compiler_lib_search_path_GCJ \
18482     compiler_lib_search_dirs_GCJ \
18483     archive_cmds_GCJ \
18484     archive_expsym_cmds_GCJ \
18485     postinstall_cmds_GCJ \
18486     postuninstall_cmds_GCJ \
18487     old_archive_from_expsyms_cmds_GCJ \
18488     allow_undefined_flag_GCJ \
18489     no_undefined_flag_GCJ \
18490     export_symbols_cmds_GCJ \
18491     hardcode_libdir_flag_spec_GCJ \
18492     hardcode_libdir_flag_spec_ld_GCJ \
18493     hardcode_libdir_separator_GCJ \
18494     hardcode_automatic_GCJ \
18495     module_cmds_GCJ \
18496     module_expsym_cmds_GCJ \
18497     lt_cv_prog_compiler_c_o_GCJ \
18498     fix_srcfile_path_GCJ \
18499     exclude_expsyms_GCJ \
18500     include_expsyms_GCJ; do
18501
18502     case $var in
18503     old_archive_cmds_GCJ | \
18504     old_archive_from_new_cmds_GCJ | \
18505     archive_cmds_GCJ | \
18506     archive_expsym_cmds_GCJ | \
18507     module_cmds_GCJ | \
18508     module_expsym_cmds_GCJ | \
18509     old_archive_from_expsyms_cmds_GCJ | \
18510     export_symbols_cmds_GCJ | \
18511     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18512     postinstall_cmds | postuninstall_cmds | \
18513     old_postinstall_cmds | old_postuninstall_cmds | \
18514     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18515       # Double-quote double-evaled strings.
18516       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18517       ;;
18518     *)
18519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18520       ;;
18521     esac
18522   done
18523
18524   case $lt_echo in
18525   *'\$0 --fallback-echo"')
18526     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18527     ;;
18528   esac
18529
18530 cfgfile="$ofile"
18531
18532   cat <<__EOF__ >> "$cfgfile"
18533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18534
18535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18536
18537 # Shell to use when invoking shell scripts.
18538 SHELL=$lt_SHELL
18539
18540 # Whether or not to build shared libraries.
18541 build_libtool_libs=$enable_shared
18542
18543 # Whether or not to build static libraries.
18544 build_old_libs=$enable_static
18545
18546 # Whether or not to add -lc for building shared libraries.
18547 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18548
18549 # Whether or not to disallow shared libs when runtime libs are static
18550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18551
18552 # Whether or not to optimize for fast installation.
18553 fast_install=$enable_fast_install
18554
18555 # The host system.
18556 host_alias=$host_alias
18557 host=$host
18558 host_os=$host_os
18559
18560 # The build system.
18561 build_alias=$build_alias
18562 build=$build
18563 build_os=$build_os
18564
18565 # An echo program that does not interpret backslashes.
18566 echo=$lt_echo
18567
18568 # The archiver.
18569 AR=$lt_AR
18570 AR_FLAGS=$lt_AR_FLAGS
18571
18572 # A C compiler.
18573 LTCC=$lt_LTCC
18574
18575 # LTCC compiler flags.
18576 LTCFLAGS=$lt_LTCFLAGS
18577
18578 # A language-specific compiler.
18579 CC=$lt_compiler_GCJ
18580
18581 # Is the compiler the GNU C compiler?
18582 with_gcc=$GCC_GCJ
18583
18584 # An ERE matcher.
18585 EGREP=$lt_EGREP
18586
18587 # The linker used to build libraries.
18588 LD=$lt_LD_GCJ
18589
18590 # Whether we need hard or soft links.
18591 LN_S=$lt_LN_S
18592
18593 # A BSD-compatible nm program.
18594 NM=$lt_NM
18595
18596 # A symbol stripping program
18597 STRIP=$lt_STRIP
18598
18599 # Used to examine libraries when file_magic_cmd begins "file"
18600 MAGIC_CMD=$MAGIC_CMD
18601
18602 # Used on cygwin: DLL creation program.
18603 DLLTOOL="$DLLTOOL"
18604
18605 # Used on cygwin: object dumper.
18606 OBJDUMP="$OBJDUMP"
18607
18608 # Used on cygwin: assembler.
18609 AS="$AS"
18610
18611 # The name of the directory that contains temporary libtool files.
18612 objdir=$objdir
18613
18614 # How to create reloadable object files.
18615 reload_flag=$lt_reload_flag
18616 reload_cmds=$lt_reload_cmds
18617
18618 # How to pass a linker flag through the compiler.
18619 wl=$lt_lt_prog_compiler_wl_GCJ
18620
18621 # Object file suffix (normally "o").
18622 objext="$ac_objext"
18623
18624 # Old archive suffix (normally "a").
18625 libext="$libext"
18626
18627 # Shared library suffix (normally ".so").
18628 shrext_cmds='$shrext_cmds'
18629
18630 # Executable file suffix (normally "").
18631 exeext="$exeext"
18632
18633 # Additional compiler flags for building library objects.
18634 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18635 pic_mode=$pic_mode
18636
18637 # What is the maximum length of a command?
18638 max_cmd_len=$lt_cv_sys_max_cmd_len
18639
18640 # Does compiler simultaneously support -c and -o options?
18641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18642
18643 # Must we lock files when doing compilation?
18644 need_locks=$lt_need_locks
18645
18646 # Do we need the lib prefix for modules?
18647 need_lib_prefix=$need_lib_prefix
18648
18649 # Do we need a version for libraries?
18650 need_version=$need_version
18651
18652 # Whether dlopen is supported.
18653 dlopen_support=$enable_dlopen
18654
18655 # Whether dlopen of programs is supported.
18656 dlopen_self=$enable_dlopen_self
18657
18658 # Whether dlopen of statically linked programs is supported.
18659 dlopen_self_static=$enable_dlopen_self_static
18660
18661 # Compiler flag to prevent dynamic linking.
18662 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18663
18664 # Compiler flag to turn off builtin functions.
18665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18666
18667 # Compiler flag to allow reflexive dlopens.
18668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18669
18670 # Compiler flag to generate shared objects directly from archives.
18671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18672
18673 # Compiler flag to generate thread-safe objects.
18674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18675
18676 # Library versioning type.
18677 version_type=$version_type
18678
18679 # Format of library name prefix.
18680 libname_spec=$lt_libname_spec
18681
18682 # List of archive names.  First name is the real one, the rest are links.
18683 # The last name is the one that the linker finds with -lNAME.
18684 library_names_spec=$lt_library_names_spec
18685
18686 # The coded name of the library, if different from the real name.
18687 soname_spec=$lt_soname_spec
18688
18689 # Commands used to build and install an old-style archive.
18690 RANLIB=$lt_RANLIB
18691 old_archive_cmds=$lt_old_archive_cmds_GCJ
18692 old_postinstall_cmds=$lt_old_postinstall_cmds
18693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18694
18695 # Create an old-style archive from a shared archive.
18696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18697
18698 # Create a temporary old-style archive to link instead of a shared archive.
18699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18700
18701 # Commands used to build and install a shared archive.
18702 archive_cmds=$lt_archive_cmds_GCJ
18703 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18704 postinstall_cmds=$lt_postinstall_cmds
18705 postuninstall_cmds=$lt_postuninstall_cmds
18706
18707 # Commands used to build a loadable module (assumed same as above if empty)
18708 module_cmds=$lt_module_cmds_GCJ
18709 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18710
18711 # Commands to strip libraries.
18712 old_striplib=$lt_old_striplib
18713 striplib=$lt_striplib
18714
18715 # Dependencies to place before the objects being linked to create a
18716 # shared library.
18717 predep_objects=$lt_predep_objects_GCJ
18718
18719 # Dependencies to place after the objects being linked to create a
18720 # shared library.
18721 postdep_objects=$lt_postdep_objects_GCJ
18722
18723 # Dependencies to place before the objects being linked to create a
18724 # shared library.
18725 predeps=$lt_predeps_GCJ
18726
18727 # Dependencies to place after the objects being linked to create a
18728 # shared library.
18729 postdeps=$lt_postdeps_GCJ
18730
18731 # The directories searched by this compiler when creating a shared
18732 # library
18733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18734
18735 # The library search path used internally by the compiler when linking
18736 # a shared library.
18737 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18738
18739 # Method to check whether dependent libraries are shared objects.
18740 deplibs_check_method=$lt_deplibs_check_method
18741
18742 # Command to use when deplibs_check_method == file_magic.
18743 file_magic_cmd=$lt_file_magic_cmd
18744
18745 # Flag that allows shared libraries with undefined symbols to be built.
18746 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18747
18748 # Flag that forces no undefined symbols.
18749 no_undefined_flag=$lt_no_undefined_flag_GCJ
18750
18751 # Commands used to finish a libtool library installation in a directory.
18752 finish_cmds=$lt_finish_cmds
18753
18754 # Same as above, but a single script fragment to be evaled but not shown.
18755 finish_eval=$lt_finish_eval
18756
18757 # Take the output of nm and produce a listing of raw symbols and C names.
18758 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18759
18760 # Transform the output of nm in a proper C declaration
18761 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18762
18763 # Transform the output of nm in a C name address pair
18764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18765
18766 # This is the shared library runtime path variable.
18767 runpath_var=$runpath_var
18768
18769 # This is the shared library path variable.
18770 shlibpath_var=$shlibpath_var
18771
18772 # Is shlibpath searched before the hard-coded library search path?
18773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18774
18775 # How to hardcode a shared library path into an executable.
18776 hardcode_action=$hardcode_action_GCJ
18777
18778 # Whether we should hardcode library paths into libraries.
18779 hardcode_into_libs=$hardcode_into_libs
18780
18781 # Flag to hardcode \$libdir into a binary during linking.
18782 # This must work even if \$libdir does not exist.
18783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18784
18785 # If ld is used when linking, flag to hardcode \$libdir into
18786 # a binary during linking. This must work even if \$libdir does
18787 # not exist.
18788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18789
18790 # Whether we need a single -rpath flag with a separated argument.
18791 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18792
18793 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18794 # resulting binary.
18795 hardcode_direct=$hardcode_direct_GCJ
18796
18797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18798 # resulting binary.
18799 hardcode_minus_L=$hardcode_minus_L_GCJ
18800
18801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18802 # the resulting binary.
18803 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18804
18805 # Set to yes if building a shared library automatically hardcodes DIR into the library
18806 # and all subsequent libraries and executables linked against it.
18807 hardcode_automatic=$hardcode_automatic_GCJ
18808
18809 # Variables whose values should be saved in libtool wrapper scripts and
18810 # restored at relink time.
18811 variables_saved_for_relink="$variables_saved_for_relink"
18812
18813 # Whether libtool must link a program against all its dependency libraries.
18814 link_all_deplibs=$link_all_deplibs_GCJ
18815
18816 # Compile-time system search path for libraries
18817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18818
18819 # Run-time system search path for libraries
18820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18821
18822 # Fix the shell variable \$srcfile for the compiler.
18823 fix_srcfile_path=$lt_fix_srcfile_path
18824
18825 # Set to yes if exported symbols are required.
18826 always_export_symbols=$always_export_symbols_GCJ
18827
18828 # The commands to list exported symbols.
18829 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18830
18831 # The commands to extract the exported symbol list from a shared archive.
18832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18833
18834 # Symbols that should not be listed in the preloaded symbols.
18835 exclude_expsyms=$lt_exclude_expsyms_GCJ
18836
18837 # Symbols that must always be exported.
18838 include_expsyms=$lt_include_expsyms_GCJ
18839
18840 # ### END LIBTOOL TAG CONFIG: $tagname
18841
18842 __EOF__
18843
18844
18845 else
18846   # If there is no Makefile yet, we rely on a make rule to execute
18847   # `config.status --recheck' to rerun these tests and create the
18848   # libtool script then.
18849   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18850   if test -f "$ltmain_in"; then
18851     test -f Makefile && make "$ltmain"
18852   fi
18853 fi
18854
18855
18856 ac_ext=c
18857 ac_cpp='$CPP $CPPFLAGS'
18858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18861
18862 CC="$lt_save_CC"
18863
18864         else
18865           tagname=""
18866         fi
18867         ;;
18868
18869       RC)
18870
18871
18872 # Source file extension for RC test sources.
18873 ac_ext=rc
18874
18875 # Object file extension for compiled RC test sources.
18876 objext=o
18877 objext_RC=$objext
18878
18879 # Code to be used in simple compile tests
18880 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18881
18882 # Code to be used in simple link tests
18883 lt_simple_link_test_code="$lt_simple_compile_test_code"
18884
18885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18886
18887 # If no C compiler was specified, use CC.
18888 LTCC=${LTCC-"$CC"}
18889
18890 # If no C compiler flags were specified, use CFLAGS.
18891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18892
18893 # Allow CC to be a program name with arguments.
18894 compiler=$CC
18895
18896
18897 # save warnings/boilerplate of simple test code
18898 ac_outfile=conftest.$ac_objext
18899 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18901 _lt_compiler_boilerplate=`cat conftest.err`
18902 $rm conftest*
18903
18904 ac_outfile=conftest.$ac_objext
18905 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18907 _lt_linker_boilerplate=`cat conftest.err`
18908 $rm -r conftest*
18909
18910
18911 # Allow CC to be a program name with arguments.
18912 lt_save_CC="$CC"
18913 CC=${RC-"windres"}
18914 compiler=$CC
18915 compiler_RC=$CC
18916 for cc_temp in $compiler""; do
18917   case $cc_temp in
18918     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18919     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18920     \-*) ;;
18921     *) break;;
18922   esac
18923 done
18924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18925
18926 lt_cv_prog_compiler_c_o_RC=yes
18927
18928 # The else clause should only fire when bootstrapping the
18929 # libtool distribution, otherwise you forgot to ship ltmain.sh
18930 # with your package, and you will get complaints that there are
18931 # no rules to generate ltmain.sh.
18932 if test -f "$ltmain"; then
18933   # See if we are running on zsh, and set the options which allow our commands through
18934   # without removal of \ escapes.
18935   if test -n "${ZSH_VERSION+set}" ; then
18936     setopt NO_GLOB_SUBST
18937   fi
18938   # Now quote all the things that may contain metacharacters while being
18939   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18940   # variables and quote the copies for generation of the libtool script.
18941   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18942     SED SHELL STRIP \
18943     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18944     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18945     deplibs_check_method reload_flag reload_cmds need_locks \
18946     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18947     lt_cv_sys_global_symbol_to_c_name_address \
18948     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18949     old_postinstall_cmds old_postuninstall_cmds \
18950     compiler_RC \
18951     CC_RC \
18952     LD_RC \
18953     lt_prog_compiler_wl_RC \
18954     lt_prog_compiler_pic_RC \
18955     lt_prog_compiler_static_RC \
18956     lt_prog_compiler_no_builtin_flag_RC \
18957     export_dynamic_flag_spec_RC \
18958     thread_safe_flag_spec_RC \
18959     whole_archive_flag_spec_RC \
18960     enable_shared_with_static_runtimes_RC \
18961     old_archive_cmds_RC \
18962     old_archive_from_new_cmds_RC \
18963     predep_objects_RC \
18964     postdep_objects_RC \
18965     predeps_RC \
18966     postdeps_RC \
18967     compiler_lib_search_path_RC \
18968     compiler_lib_search_dirs_RC \
18969     archive_cmds_RC \
18970     archive_expsym_cmds_RC \
18971     postinstall_cmds_RC \
18972     postuninstall_cmds_RC \
18973     old_archive_from_expsyms_cmds_RC \
18974     allow_undefined_flag_RC \
18975     no_undefined_flag_RC \
18976     export_symbols_cmds_RC \
18977     hardcode_libdir_flag_spec_RC \
18978     hardcode_libdir_flag_spec_ld_RC \
18979     hardcode_libdir_separator_RC \
18980     hardcode_automatic_RC \
18981     module_cmds_RC \
18982     module_expsym_cmds_RC \
18983     lt_cv_prog_compiler_c_o_RC \
18984     fix_srcfile_path_RC \
18985     exclude_expsyms_RC \
18986     include_expsyms_RC; do
18987
18988     case $var in
18989     old_archive_cmds_RC | \
18990     old_archive_from_new_cmds_RC | \
18991     archive_cmds_RC | \
18992     archive_expsym_cmds_RC | \
18993     module_cmds_RC | \
18994     module_expsym_cmds_RC | \
18995     old_archive_from_expsyms_cmds_RC | \
18996     export_symbols_cmds_RC | \
18997     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18998     postinstall_cmds | postuninstall_cmds | \
18999     old_postinstall_cmds | old_postuninstall_cmds | \
19000     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19001       # Double-quote double-evaled strings.
19002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19003       ;;
19004     *)
19005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19006       ;;
19007     esac
19008   done
19009
19010   case $lt_echo in
19011   *'\$0 --fallback-echo"')
19012     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19013     ;;
19014   esac
19015
19016 cfgfile="$ofile"
19017
19018   cat <<__EOF__ >> "$cfgfile"
19019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19020
19021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19022
19023 # Shell to use when invoking shell scripts.
19024 SHELL=$lt_SHELL
19025
19026 # Whether or not to build shared libraries.
19027 build_libtool_libs=$enable_shared
19028
19029 # Whether or not to build static libraries.
19030 build_old_libs=$enable_static
19031
19032 # Whether or not to add -lc for building shared libraries.
19033 build_libtool_need_lc=$archive_cmds_need_lc_RC
19034
19035 # Whether or not to disallow shared libs when runtime libs are static
19036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19037
19038 # Whether or not to optimize for fast installation.
19039 fast_install=$enable_fast_install
19040
19041 # The host system.
19042 host_alias=$host_alias
19043 host=$host
19044 host_os=$host_os
19045
19046 # The build system.
19047 build_alias=$build_alias
19048 build=$build
19049 build_os=$build_os
19050
19051 # An echo program that does not interpret backslashes.
19052 echo=$lt_echo
19053
19054 # The archiver.
19055 AR=$lt_AR
19056 AR_FLAGS=$lt_AR_FLAGS
19057
19058 # A C compiler.
19059 LTCC=$lt_LTCC
19060
19061 # LTCC compiler flags.
19062 LTCFLAGS=$lt_LTCFLAGS
19063
19064 # A language-specific compiler.
19065 CC=$lt_compiler_RC
19066
19067 # Is the compiler the GNU C compiler?
19068 with_gcc=$GCC_RC
19069
19070 # An ERE matcher.
19071 EGREP=$lt_EGREP
19072
19073 # The linker used to build libraries.
19074 LD=$lt_LD_RC
19075
19076 # Whether we need hard or soft links.
19077 LN_S=$lt_LN_S
19078
19079 # A BSD-compatible nm program.
19080 NM=$lt_NM
19081
19082 # A symbol stripping program
19083 STRIP=$lt_STRIP
19084
19085 # Used to examine libraries when file_magic_cmd begins "file"
19086 MAGIC_CMD=$MAGIC_CMD
19087
19088 # Used on cygwin: DLL creation program.
19089 DLLTOOL="$DLLTOOL"
19090
19091 # Used on cygwin: object dumper.
19092 OBJDUMP="$OBJDUMP"
19093
19094 # Used on cygwin: assembler.
19095 AS="$AS"
19096
19097 # The name of the directory that contains temporary libtool files.
19098 objdir=$objdir
19099
19100 # How to create reloadable object files.
19101 reload_flag=$lt_reload_flag
19102 reload_cmds=$lt_reload_cmds
19103
19104 # How to pass a linker flag through the compiler.
19105 wl=$lt_lt_prog_compiler_wl_RC
19106
19107 # Object file suffix (normally "o").
19108 objext="$ac_objext"
19109
19110 # Old archive suffix (normally "a").
19111 libext="$libext"
19112
19113 # Shared library suffix (normally ".so").
19114 shrext_cmds='$shrext_cmds'
19115
19116 # Executable file suffix (normally "").
19117 exeext="$exeext"
19118
19119 # Additional compiler flags for building library objects.
19120 pic_flag=$lt_lt_prog_compiler_pic_RC
19121 pic_mode=$pic_mode
19122
19123 # What is the maximum length of a command?
19124 max_cmd_len=$lt_cv_sys_max_cmd_len
19125
19126 # Does compiler simultaneously support -c and -o options?
19127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19128
19129 # Must we lock files when doing compilation?
19130 need_locks=$lt_need_locks
19131
19132 # Do we need the lib prefix for modules?
19133 need_lib_prefix=$need_lib_prefix
19134
19135 # Do we need a version for libraries?
19136 need_version=$need_version
19137
19138 # Whether dlopen is supported.
19139 dlopen_support=$enable_dlopen
19140
19141 # Whether dlopen of programs is supported.
19142 dlopen_self=$enable_dlopen_self
19143
19144 # Whether dlopen of statically linked programs is supported.
19145 dlopen_self_static=$enable_dlopen_self_static
19146
19147 # Compiler flag to prevent dynamic linking.
19148 link_static_flag=$lt_lt_prog_compiler_static_RC
19149
19150 # Compiler flag to turn off builtin functions.
19151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19152
19153 # Compiler flag to allow reflexive dlopens.
19154 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19155
19156 # Compiler flag to generate shared objects directly from archives.
19157 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19158
19159 # Compiler flag to generate thread-safe objects.
19160 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19161
19162 # Library versioning type.
19163 version_type=$version_type
19164
19165 # Format of library name prefix.
19166 libname_spec=$lt_libname_spec
19167
19168 # List of archive names.  First name is the real one, the rest are links.
19169 # The last name is the one that the linker finds with -lNAME.
19170 library_names_spec=$lt_library_names_spec
19171
19172 # The coded name of the library, if different from the real name.
19173 soname_spec=$lt_soname_spec
19174
19175 # Commands used to build and install an old-style archive.
19176 RANLIB=$lt_RANLIB
19177 old_archive_cmds=$lt_old_archive_cmds_RC
19178 old_postinstall_cmds=$lt_old_postinstall_cmds
19179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19180
19181 # Create an old-style archive from a shared archive.
19182 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19183
19184 # Create a temporary old-style archive to link instead of a shared archive.
19185 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19186
19187 # Commands used to build and install a shared archive.
19188 archive_cmds=$lt_archive_cmds_RC
19189 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19190 postinstall_cmds=$lt_postinstall_cmds
19191 postuninstall_cmds=$lt_postuninstall_cmds
19192
19193 # Commands used to build a loadable module (assumed same as above if empty)
19194 module_cmds=$lt_module_cmds_RC
19195 module_expsym_cmds=$lt_module_expsym_cmds_RC
19196
19197 # Commands to strip libraries.
19198 old_striplib=$lt_old_striplib
19199 striplib=$lt_striplib
19200
19201 # Dependencies to place before the objects being linked to create a
19202 # shared library.
19203 predep_objects=$lt_predep_objects_RC
19204
19205 # Dependencies to place after the objects being linked to create a
19206 # shared library.
19207 postdep_objects=$lt_postdep_objects_RC
19208
19209 # Dependencies to place before the objects being linked to create a
19210 # shared library.
19211 predeps=$lt_predeps_RC
19212
19213 # Dependencies to place after the objects being linked to create a
19214 # shared library.
19215 postdeps=$lt_postdeps_RC
19216
19217 # The directories searched by this compiler when creating a shared
19218 # library
19219 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19220
19221 # The library search path used internally by the compiler when linking
19222 # a shared library.
19223 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19224
19225 # Method to check whether dependent libraries are shared objects.
19226 deplibs_check_method=$lt_deplibs_check_method
19227
19228 # Command to use when deplibs_check_method == file_magic.
19229 file_magic_cmd=$lt_file_magic_cmd
19230
19231 # Flag that allows shared libraries with undefined symbols to be built.
19232 allow_undefined_flag=$lt_allow_undefined_flag_RC
19233
19234 # Flag that forces no undefined symbols.
19235 no_undefined_flag=$lt_no_undefined_flag_RC
19236
19237 # Commands used to finish a libtool library installation in a directory.
19238 finish_cmds=$lt_finish_cmds
19239
19240 # Same as above, but a single script fragment to be evaled but not shown.
19241 finish_eval=$lt_finish_eval
19242
19243 # Take the output of nm and produce a listing of raw symbols and C names.
19244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19245
19246 # Transform the output of nm in a proper C declaration
19247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19248
19249 # Transform the output of nm in a C name address pair
19250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19251
19252 # This is the shared library runtime path variable.
19253 runpath_var=$runpath_var
19254
19255 # This is the shared library path variable.
19256 shlibpath_var=$shlibpath_var
19257
19258 # Is shlibpath searched before the hard-coded library search path?
19259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19260
19261 # How to hardcode a shared library path into an executable.
19262 hardcode_action=$hardcode_action_RC
19263
19264 # Whether we should hardcode library paths into libraries.
19265 hardcode_into_libs=$hardcode_into_libs
19266
19267 # Flag to hardcode \$libdir into a binary during linking.
19268 # This must work even if \$libdir does not exist.
19269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19270
19271 # If ld is used when linking, flag to hardcode \$libdir into
19272 # a binary during linking. This must work even if \$libdir does
19273 # not exist.
19274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19275
19276 # Whether we need a single -rpath flag with a separated argument.
19277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19278
19279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19280 # resulting binary.
19281 hardcode_direct=$hardcode_direct_RC
19282
19283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19284 # resulting binary.
19285 hardcode_minus_L=$hardcode_minus_L_RC
19286
19287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19288 # the resulting binary.
19289 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19290
19291 # Set to yes if building a shared library automatically hardcodes DIR into the library
19292 # and all subsequent libraries and executables linked against it.
19293 hardcode_automatic=$hardcode_automatic_RC
19294
19295 # Variables whose values should be saved in libtool wrapper scripts and
19296 # restored at relink time.
19297 variables_saved_for_relink="$variables_saved_for_relink"
19298
19299 # Whether libtool must link a program against all its dependency libraries.
19300 link_all_deplibs=$link_all_deplibs_RC
19301
19302 # Compile-time system search path for libraries
19303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19304
19305 # Run-time system search path for libraries
19306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19307
19308 # Fix the shell variable \$srcfile for the compiler.
19309 fix_srcfile_path=$lt_fix_srcfile_path
19310
19311 # Set to yes if exported symbols are required.
19312 always_export_symbols=$always_export_symbols_RC
19313
19314 # The commands to list exported symbols.
19315 export_symbols_cmds=$lt_export_symbols_cmds_RC
19316
19317 # The commands to extract the exported symbol list from a shared archive.
19318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19319
19320 # Symbols that should not be listed in the preloaded symbols.
19321 exclude_expsyms=$lt_exclude_expsyms_RC
19322
19323 # Symbols that must always be exported.
19324 include_expsyms=$lt_include_expsyms_RC
19325
19326 # ### END LIBTOOL TAG CONFIG: $tagname
19327
19328 __EOF__
19329
19330
19331 else
19332   # If there is no Makefile yet, we rely on a make rule to execute
19333   # `config.status --recheck' to rerun these tests and create the
19334   # libtool script then.
19335   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19336   if test -f "$ltmain_in"; then
19337     test -f Makefile && make "$ltmain"
19338   fi
19339 fi
19340
19341
19342 ac_ext=c
19343 ac_cpp='$CPP $CPPFLAGS'
19344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19347
19348 CC="$lt_save_CC"
19349
19350         ;;
19351
19352       *)
19353         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19354         ;;
19355       esac
19356
19357       # Append the new tag name to the list of available tags.
19358       if test -n "$tagname" ; then
19359       available_tags="$available_tags $tagname"
19360     fi
19361     fi
19362   done
19363   IFS="$lt_save_ifs"
19364
19365   # Now substitute the updated list of available tags.
19366   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19367     mv "${ofile}T" "$ofile"
19368     chmod +x "$ofile"
19369   else
19370     rm -f "${ofile}T"
19371     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19372   fi
19373 fi
19374
19375
19376
19377 # This can be used to rebuild libtool when needed
19378 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19379
19380 # Always use our own libtool.
19381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19382
19383 # Prevent multiple expansion
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396 # Check whether --with-system-libtool was given.
19397 if test "${with_system_libtool+set}" = set; then :
19398   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19399 set dummy libtool; ac_word=$2
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19401 $as_echo_n "checking for $ac_word... " >&6; }
19402 if ${ac_cv_path_LIBTOOL+:} false; then :
19403   $as_echo_n "(cached) " >&6
19404 else
19405   case $LIBTOOL in
19406   [\\/]* | ?:[\\/]*)
19407   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19408   ;;
19409   *)
19410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19411 as_dummy="$PATH:/usr/local/bin"
19412 for as_dir in $as_dummy
19413 do
19414   IFS=$as_save_IFS
19415   test -z "$as_dir" && as_dir=.
19416     for ac_exec_ext in '' $ac_executable_extensions; do
19417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19418     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19420     break 2
19421   fi
19422 done
19423   done
19424 IFS=$as_save_IFS
19425
19426   ;;
19427 esac
19428 fi
19429 LIBTOOL=$ac_cv_path_LIBTOOL
19430 if test -n "$LIBTOOL"; then
19431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19432 $as_echo "$LIBTOOL" >&6; }
19433 else
19434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19435 $as_echo "no" >&6; }
19436 fi
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449 else
19450
19451   LIBTOOL="`pwd`/libtool"
19452
19453
19454
19455
19456
19457
19458 fi
19459
19460
19461
19462
19463 # Check whether --enable-strict-dependencies was given.
19464 if test "${enable_strict_dependencies+set}" = set; then :
19465   enableval=$enable_strict_dependencies;
19466 fi
19467
19468
19469 docdir='${datadir}/doc/freeradius'
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19471 $as_echo_n "checking docdir... " >&6; }
19472
19473 # Check whether --with-docdir was given.
19474 if test "${with_docdir+set}" = set; then :
19475   withval=$with_docdir;  case "$withval" in
19476     no)
19477         docdir=no
19478         ;;
19479     yes)
19480         ;;
19481     [\\/$]* | ?:[\\/]* )
19482         docdir="$withval"
19483         ;;
19484     *)
19485         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19486         ;;
19487   esac
19488
19489 fi
19490
19491
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19493 $as_echo "$docdir" >&6; }
19494 if test "x$docdir" = xno; then
19495         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19496 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19497 fi
19498
19499 logdir='${localstatedir}/log/radius'
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19501 $as_echo_n "checking logdir... " >&6; }
19502
19503 # Check whether --with-logdir was given.
19504 if test "${with_logdir+set}" = set; then :
19505   withval=$with_logdir;  case "$withval" in
19506     no)
19507         as_fn_error $? "Need logdir" "$LINENO" 5
19508         ;;
19509     yes)
19510         ;;
19511     [\\/$]* | ?:[\\/]* )
19512         logdir="$withval"
19513         ;;
19514     *)
19515         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19516         ;;
19517   esac
19518
19519 fi
19520
19521
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19523 $as_echo "$logdir" >&6; }
19524
19525 radacctdir='${logdir}/radacct'
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19527 $as_echo_n "checking radacctdir... " >&6; }
19528
19529 # Check whether --with-radacctdir was given.
19530 if test "${with_radacctdir+set}" = set; then :
19531   withval=$with_radacctdir;  case "$withval" in
19532     no)
19533         as_fn_error $? "Need radacctdir" "$LINENO" 5
19534         ;;
19535     yes)
19536         ;;
19537     [\\/$]* | ?:[\\/]* )
19538         radacctdir="$withval"
19539         ;;
19540     *)
19541         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19542         ;;
19543   esac
19544
19545 fi
19546
19547
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19549 $as_echo "$radacctdir" >&6; }
19550
19551 raddbdir='${sysconfdir}/raddb'
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19553 $as_echo_n "checking raddbdir... " >&6; }
19554
19555 # Check whether --with-raddbdir was given.
19556 if test "${with_raddbdir+set}" = set; then :
19557   withval=$with_raddbdir;  case "$withval" in
19558     no)
19559         as_fn_error $? "Need raddbdir" "$LINENO" 5
19560         ;;
19561     yes)
19562         ;;
19563     [\\/$]* | ?:[\\/]* )
19564         raddbdir="$withval"
19565         ;;
19566     *)
19567         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19568         ;;
19569   esac
19570
19571 fi
19572
19573
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19575 $as_echo "$raddbdir" >&6; }
19576
19577 ASCEND_BINARY=yes
19578
19579 # Check whether --with-ascend-binary was given.
19580 if test "${with_ascend_binary+set}" = set; then :
19581   withval=$with_ascend_binary;  case "$withval" in
19582     yes)
19583         ;;
19584     *)
19585         ASCEND_BINARY=""
19586   esac
19587
19588 fi
19589
19590 if test "X$ASCEND_BINARY" = "Xyes"; then
19591
19592 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19593
19594 fi
19595
19596 WITH_THREADS=yes
19597
19598 # Check whether --with-threads was given.
19599 if test "${with_threads+set}" = set; then :
19600   withval=$with_threads;  case "$withval" in
19601     yes)
19602         ;;
19603     *)
19604         WITH_THREADS=""
19605   esac
19606
19607 fi
19608
19609
19610 WITH_VMPS=yes
19611
19612 # Check whether --with-vmps was given.
19613 if test "${with_vmps+set}" = set; then :
19614   withval=$with_vmps;  case "$withval" in
19615     yes)
19616         ;;
19617     *)
19618         WITH_VMPS=no
19619   esac
19620
19621 fi
19622
19623 if test "x$WITH_VMPS" = "xyes"; then
19624
19625 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19626
19627 fi
19628
19629 WITH_DHCP=yes
19630
19631 # Check whether --with-dhcp was given.
19632 if test "${with_dhcp+set}" = set; then :
19633   withval=$with_dhcp;  case "$withval" in
19634     yes)
19635         ;;
19636     *)
19637         WITH_DHCP=no
19638   esac
19639
19640 fi
19641
19642 if test "x$WITH_DHCP" = "xyes"; then
19643
19644 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19645
19646 fi
19647
19648
19649 WITH_POST_PROXY_AUTHORIZE=
19650
19651 # Check whether --with-post-proxy-authorize was given.
19652 if test "${with_post_proxy_authorize+set}" = set; then :
19653   withval=$with_post_proxy_authorize;  case "$withval" in
19654     yes)
19655         WITH_POST_PROXY_AUTHORIZE=""
19656         ;;
19657     *)
19658         ;;
19659   esac
19660
19661 fi
19662
19663
19664 STATIC_MODULES=
19665
19666 # Check whether --with-static_modules was given.
19667 if test "${with_static_modules+set}" = set; then :
19668   withval=$with_static_modules;
19669   for i in $withval; do
19670     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19671   done
19672
19673 fi
19674
19675
19676 MODULES=
19677
19678 # Check whether --with-modules was given.
19679 if test "${with_modules+set}" = set; then :
19680   withval=$with_modules;
19681  for i in $withval; do
19682    MODULES="$MODULES $i"
19683  done
19684
19685 fi
19686
19687
19688 # Check whether --enable-developer was given.
19689 if test "${enable_developer+set}" = set; then :
19690   enableval=$enable_developer;  case "$enableval" in
19691     no)
19692         developer=no
19693         ;;
19694     *)
19695         developer=yes
19696   esac
19697
19698 fi
19699
19700
19701 if test -d $srcdir/.git; then
19702   if test "x$developer" != "xno"; then
19703         developer="yes"
19704   fi
19705
19706     if test "x$GIT" = "xyes"; then
19707         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19708   fi
19709 fi
19710
19711 EXPERIMENTAL=
19712
19713 # Check whether --with-experimental-modules was given.
19714 if test "${with_experimental_modules+set}" = set; then :
19715   withval=$with_experimental_modules;  case "$withval" in
19716     yes)
19717         EXPERIMENTAL=yes
19718         ;;
19719     *)
19720   esac
19721
19722 fi
19723
19724
19725 WITH_OPENSSL=yes
19726
19727 # Check whether --with-openssl was given.
19728 if test "${with_openssl+set}" = set; then :
19729   withval=$with_openssl;  case "$withval" in
19730     no)
19731         WITH_OPENSSL=no
19732         ;;
19733     *)
19734         WITH_OPENSSL=yes
19735         ;;
19736   esac
19737
19738 fi
19739
19740
19741 OPENSSL_INCLUDE_DIR=
19742
19743 # Check whether --with-openssl-includes was given.
19744 if test "${with_openssl_includes+set}" = set; then :
19745   withval=$with_openssl_includes;  case "$withval" in
19746     *) OPENSSL_INCLUDE_DIR="$withval"
19747         ;;
19748   esac
19749
19750 fi
19751
19752
19753 OPENSSL_LIB_DIR=
19754
19755 # Check whether --with-openssl-libraries was given.
19756 if test "${with_openssl_libraries+set}" = set; then :
19757   withval=$with_openssl_libraries;  case "$withval" in
19758     *) OPENSSL_LIB_DIR="$withval"
19759         ;;
19760   esac
19761
19762 fi
19763
19764
19765 # Check whether --enable-openssl-version-check was given.
19766 if test "${enable_openssl_version_check+set}" = set; then :
19767   enableval=$enable_openssl_version_check;
19768 fi
19769
19770 if test "x$enable_openssl_version_check" != "xno"; then
19771
19772 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
19773
19774   openssl_version_check_config="\
19775         #
19776         #  allow_vulnerable_openssl: Allow the server to start with
19777         #  versions of OpenSSL known to have critical vulnerabilities.
19778         #
19779         #  This check is based on the version number reported by libssl
19780         #  and may not reflect patches applied to libssl by
19781         #  distribution maintainers.
19782         #
19783         allow_vulnerable_openssl = no"
19784 else
19785   openssl_version_check_config=
19786 fi
19787
19788
19789
19790
19791 # Check whether --with-rlm-FOO-lib-dir was given.
19792 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19793   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19794     *)
19795         ;;
19796   esac
19797
19798 fi
19799
19800
19801
19802 # Check whether --with-rlm-FOO-include-dir was given.
19803 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19804   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19805     *)
19806         ;;
19807   esac
19808
19809 fi
19810
19811
19812
19813 WITH_UDPFROMTO=no
19814
19815 # Check whether --with-udpfromto was given.
19816 if test "${with_udpfromto+set}" = set; then :
19817   withval=$with_udpfromto;  case "$withval" in
19818     yes)
19819         WITH_UDPFROMTO=yes
19820         ;;
19821     *)
19822         WITH_UDPFROMTO=no
19823   esac
19824
19825 fi
19826
19827
19828 if test "x$WITH_UDPFROMTO" = "xyes"; then
19829
19830 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19831
19832 fi
19833
19834
19835 CHECKRAD=checkrad.pl
19836 # Extract the first word of "perl", so it can be a program name with args.
19837 set dummy perl; ac_word=$2
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19839 $as_echo_n "checking for $ac_word... " >&6; }
19840 if ${ac_cv_path_PERL+:} false; then :
19841   $as_echo_n "(cached) " >&6
19842 else
19843   case $PERL in
19844   [\\/]* | ?:[\\/]*)
19845   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19846   ;;
19847   *)
19848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19849 for as_dir in $PATH
19850 do
19851   IFS=$as_save_IFS
19852   test -z "$as_dir" && as_dir=.
19853     for ac_exec_ext in '' $ac_executable_extensions; do
19854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19855     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19857     break 2
19858   fi
19859 done
19860   done
19861 IFS=$as_save_IFS
19862
19863   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19864   ;;
19865 esac
19866 fi
19867 PERL=$ac_cv_path_PERL
19868 if test -n "$PERL"; then
19869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19870 $as_echo "$PERL" >&6; }
19871 else
19872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873 $as_echo "no" >&6; }
19874 fi
19875
19876
19877 if test "x$ac_cv_path_PERL" = "x"; then
19878   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19879 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19880 fi
19881 # Extract the first word of "snmpget", so it can be a program name with args.
19882 set dummy snmpget; ac_word=$2
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19884 $as_echo_n "checking for $ac_word... " >&6; }
19885 if ${ac_cv_path_SNMPGET+:} false; then :
19886   $as_echo_n "(cached) " >&6
19887 else
19888   case $SNMPGET in
19889   [\\/]* | ?:[\\/]*)
19890   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19891   ;;
19892   *)
19893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19894 for as_dir in $PATH
19895 do
19896   IFS=$as_save_IFS
19897   test -z "$as_dir" && as_dir=.
19898     for ac_exec_ext in '' $ac_executable_extensions; do
19899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19900     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19902     break 2
19903   fi
19904 done
19905   done
19906 IFS=$as_save_IFS
19907
19908   ;;
19909 esac
19910 fi
19911 SNMPGET=$ac_cv_path_SNMPGET
19912 if test -n "$SNMPGET"; then
19913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19914 $as_echo "$SNMPGET" >&6; }
19915 else
19916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19917 $as_echo "no" >&6; }
19918 fi
19919
19920
19921 if test "x$ac_cv_path_SNMPGET" = "x"; then
19922   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19923 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19924 fi
19925
19926 # Extract the first word of "snmpwalk", so it can be a program name with args.
19927 set dummy snmpwalk; ac_word=$2
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19929 $as_echo_n "checking for $ac_word... " >&6; }
19930 if ${ac_cv_path_SNMPWALK+:} false; then :
19931   $as_echo_n "(cached) " >&6
19932 else
19933   case $SNMPWALK in
19934   [\\/]* | ?:[\\/]*)
19935   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19936   ;;
19937   *)
19938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19939 for as_dir in $PATH
19940 do
19941   IFS=$as_save_IFS
19942   test -z "$as_dir" && as_dir=.
19943     for ac_exec_ext in '' $ac_executable_extensions; do
19944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19945     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19947     break 2
19948   fi
19949 done
19950   done
19951 IFS=$as_save_IFS
19952
19953   ;;
19954 esac
19955 fi
19956 SNMPWALK=$ac_cv_path_SNMPWALK
19957 if test -n "$SNMPWALK"; then
19958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19959 $as_echo "$SNMPWALK" >&6; }
19960 else
19961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19963 fi
19964
19965
19966 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19967   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19968 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19969 fi
19970
19971 # Extract the first word of "rusers", so it can be a program name with args.
19972 set dummy rusers; ac_word=$2
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19974 $as_echo_n "checking for $ac_word... " >&6; }
19975 if ${ac_cv_path_RUSERS+:} false; then :
19976   $as_echo_n "(cached) " >&6
19977 else
19978   case $RUSERS in
19979   [\\/]* | ?:[\\/]*)
19980   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19981   ;;
19982   *)
19983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984 for as_dir in $PATH
19985 do
19986   IFS=$as_save_IFS
19987   test -z "$as_dir" && as_dir=.
19988     for ac_exec_ext in '' $ac_executable_extensions; do
19989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19990     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19992     break 2
19993   fi
19994 done
19995   done
19996 IFS=$as_save_IFS
19997
19998   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19999   ;;
20000 esac
20001 fi
20002 RUSERS=$ac_cv_path_RUSERS
20003 if test -n "$RUSERS"; then
20004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
20005 $as_echo "$RUSERS" >&6; }
20006 else
20007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20008 $as_echo "no" >&6; }
20009 fi
20010
20011
20012
20013 missing_dir=`cd $ac_aux_dir && pwd`
20014 # expand $ac_aux_dir to an absolute path
20015 am_aux_dir=`cd $ac_aux_dir && pwd`
20016
20017 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20018 # Use eval to expand $SHELL
20019 if eval "$MISSING --run true"; then
20020   am_missing_run="$MISSING --run "
20021 else
20022   am_missing_run=
20023   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
20024 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20025 fi
20026
20027
20028 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20029
20030
20031 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20032
20033
20034 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20035
20036
20037 # Extract the first word of "locate", so it can be a program name with args.
20038 set dummy locate; ac_word=$2
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20040 $as_echo_n "checking for $ac_word... " >&6; }
20041 if ${ac_cv_path_LOCATE+:} false; then :
20042   $as_echo_n "(cached) " >&6
20043 else
20044   case $LOCATE in
20045   [\\/]* | ?:[\\/]*)
20046   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20047   ;;
20048   *)
20049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20050 for as_dir in $PATH
20051 do
20052   IFS=$as_save_IFS
20053   test -z "$as_dir" && as_dir=.
20054     for ac_exec_ext in '' $ac_executable_extensions; do
20055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20056     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20058     break 2
20059   fi
20060 done
20061   done
20062 IFS=$as_save_IFS
20063
20064   ;;
20065 esac
20066 fi
20067 LOCATE=$ac_cv_path_LOCATE
20068 if test -n "$LOCATE"; then
20069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20070 $as_echo "$LOCATE" >&6; }
20071 else
20072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20073 $as_echo "no" >&6; }
20074 fi
20075
20076
20077 # Extract the first word of "dirname", so it can be a program name with args.
20078 set dummy dirname; ac_word=$2
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20080 $as_echo_n "checking for $ac_word... " >&6; }
20081 if ${ac_cv_path_DIRNAME+:} false; then :
20082   $as_echo_n "(cached) " >&6
20083 else
20084   case $DIRNAME in
20085   [\\/]* | ?:[\\/]*)
20086   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20087   ;;
20088   *)
20089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20090 for as_dir in $PATH
20091 do
20092   IFS=$as_save_IFS
20093   test -z "$as_dir" && as_dir=.
20094     for ac_exec_ext in '' $ac_executable_extensions; do
20095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20096     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20098     break 2
20099   fi
20100 done
20101   done
20102 IFS=$as_save_IFS
20103
20104   ;;
20105 esac
20106 fi
20107 DIRNAME=$ac_cv_path_DIRNAME
20108 if test -n "$DIRNAME"; then
20109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20110 $as_echo "$DIRNAME" >&6; }
20111 else
20112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113 $as_echo "no" >&6; }
20114 fi
20115
20116
20117 # Extract the first word of "grep", so it can be a program name with args.
20118 set dummy grep; ac_word=$2
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20120 $as_echo_n "checking for $ac_word... " >&6; }
20121 if ${ac_cv_path_GREP+:} false; then :
20122   $as_echo_n "(cached) " >&6
20123 else
20124   case $GREP in
20125   [\\/]* | ?:[\\/]*)
20126   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20127   ;;
20128   *)
20129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20130 for as_dir in $PATH
20131 do
20132   IFS=$as_save_IFS
20133   test -z "$as_dir" && as_dir=.
20134     for ac_exec_ext in '' $ac_executable_extensions; do
20135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20136     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20138     break 2
20139   fi
20140 done
20141   done
20142 IFS=$as_save_IFS
20143
20144   ;;
20145 esac
20146 fi
20147 GREP=$ac_cv_path_GREP
20148 if test -n "$GREP"; then
20149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20150 $as_echo "$GREP" >&6; }
20151 else
20152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20153 $as_echo "no" >&6; }
20154 fi
20155
20156
20157
20158
20159 old_CFLAGS=$CFLAGS
20160 if test "x$WITH_THREADS" = "xyes"; then
20161   if test $ac_cv_prog_suncc = "yes"; then
20162     CFLAGS="$CFLAGS -mt"
20163   fi
20164
20165   for ac_header in pthread.h
20166 do :
20167   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20168 if test "x$ac_cv_header_pthread_h" = xyes; then :
20169   cat >>confdefs.h <<_ACEOF
20170 #define HAVE_PTHREAD_H 1
20171 _ACEOF
20172
20173 else
20174    WITH_THREADS="no"
20175 fi
20176
20177 done
20178
20179
20180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20181 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20182 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20183   $as_echo_n "(cached) " >&6
20184 else
20185   ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lpthread  $LIBS"
20187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188 /* end confdefs.h.  */
20189
20190 /* Override any GCC internal prototype to avoid an error.
20191    Use char because int might match the return type of a GCC
20192    builtin and then its argument prototype would still apply.  */
20193 #ifdef __cplusplus
20194 extern "C"
20195 #endif
20196 char pthread_create ();
20197 int
20198 main ()
20199 {
20200 return pthread_create ();
20201   ;
20202   return 0;
20203 }
20204 _ACEOF
20205 if ac_fn_c_try_link "$LINENO"; then :
20206   ac_cv_lib_pthread_pthread_create=yes
20207 else
20208   ac_cv_lib_pthread_pthread_create=no
20209 fi
20210 rm -f core conftest.err conftest.$ac_objext \
20211     conftest$ac_exeext conftest.$ac_ext
20212 LIBS=$ac_check_lib_save_LIBS
20213 fi
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20215 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20216 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20217    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20218                   LIBS="-lpthread $LIBS"
20219 else
20220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20221 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20222 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20223   $as_echo_n "(cached) " >&6
20224 else
20225   ac_check_lib_save_LIBS=$LIBS
20226 LIBS="-lc_r  $LIBS"
20227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20228 /* end confdefs.h.  */
20229
20230 /* Override any GCC internal prototype to avoid an error.
20231    Use char because int might match the return type of a GCC
20232    builtin and then its argument prototype would still apply.  */
20233 #ifdef __cplusplus
20234 extern "C"
20235 #endif
20236 char pthread_create ();
20237 int
20238 main ()
20239 {
20240 return pthread_create ();
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 if ac_fn_c_try_link "$LINENO"; then :
20246   ac_cv_lib_c_r_pthread_create=yes
20247 else
20248   ac_cv_lib_c_r_pthread_create=no
20249 fi
20250 rm -f core conftest.err conftest.$ac_objext \
20251     conftest$ac_exeext conftest.$ac_ext
20252 LIBS=$ac_check_lib_save_LIBS
20253 fi
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20255 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20256 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20257    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20258 else
20259    WITH_THREADS="no"
20260
20261 fi
20262
20263
20264 fi
20265
20266 fi
20267
20268 if test "x$WITH_THREADS" != "xyes"; then
20269   CFLAGS=$old_CFLAGS
20270   ac_cv_header_pthread_h="no"
20271   WITH_THREADS=no
20272 else
20273
20274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20275 $as_echo_n "checking for library containing sem_init... " >&6; }
20276 if ${ac_cv_search_sem_init+:} false; then :
20277   $as_echo_n "(cached) " >&6
20278 else
20279   ac_func_search_save_LIBS=$LIBS
20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h.  */
20282
20283 /* Override any GCC internal prototype to avoid an error.
20284    Use char because int might match the return type of a GCC
20285    builtin and then its argument prototype would still apply.  */
20286 #ifdef __cplusplus
20287 extern "C"
20288 #endif
20289 char sem_init ();
20290 int
20291 main ()
20292 {
20293 return sem_init ();
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 for ac_lib in '' pthread sem posix4 rt semaphore; do
20299   if test -z "$ac_lib"; then
20300     ac_res="none required"
20301   else
20302     ac_res=-l$ac_lib
20303     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20304   fi
20305   if ac_fn_c_try_link "$LINENO"; then :
20306   ac_cv_search_sem_init=$ac_res
20307 fi
20308 rm -f core conftest.err conftest.$ac_objext \
20309     conftest$ac_exeext
20310   if ${ac_cv_search_sem_init+:} false; then :
20311   break
20312 fi
20313 done
20314 if ${ac_cv_search_sem_init+:} false; then :
20315
20316 else
20317   ac_cv_search_sem_init=no
20318 fi
20319 rm conftest.$ac_ext
20320 LIBS=$ac_func_search_save_LIBS
20321 fi
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20323 $as_echo "$ac_cv_search_sem_init" >&6; }
20324 ac_res=$ac_cv_search_sem_init
20325 if test "$ac_res" != no; then :
20326   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20327
20328 else
20329   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
20330
20331 fi
20332
20333 fi
20334
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20336 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20337 if ${ac_cv_lib_socket_getsockname+:} false; then :
20338   $as_echo_n "(cached) " >&6
20339 else
20340   ac_check_lib_save_LIBS=$LIBS
20341 LIBS="-lsocket  $LIBS"
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h.  */
20344
20345 /* Override any GCC internal prototype to avoid an error.
20346    Use char because int might match the return type of a GCC
20347    builtin and then its argument prototype would still apply.  */
20348 #ifdef __cplusplus
20349 extern "C"
20350 #endif
20351 char getsockname ();
20352 int
20353 main ()
20354 {
20355 return getsockname ();
20356   ;
20357   return 0;
20358 }
20359 _ACEOF
20360 if ac_fn_c_try_link "$LINENO"; then :
20361   ac_cv_lib_socket_getsockname=yes
20362 else
20363   ac_cv_lib_socket_getsockname=no
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext \
20366     conftest$ac_exeext conftest.$ac_ext
20367 LIBS=$ac_check_lib_save_LIBS
20368 fi
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20370 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20371 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20372   cat >>confdefs.h <<_ACEOF
20373 #define HAVE_LIBSOCKET 1
20374 _ACEOF
20375
20376   LIBS="-lsocket $LIBS"
20377
20378 fi
20379
20380
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20382 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20383 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20384   $as_echo_n "(cached) " >&6
20385 else
20386   ac_check_lib_save_LIBS=$LIBS
20387 LIBS="-lresolv  $LIBS"
20388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20389 /* end confdefs.h.  */
20390
20391 /* Override any GCC internal prototype to avoid an error.
20392    Use char because int might match the return type of a GCC
20393    builtin and then its argument prototype would still apply.  */
20394 #ifdef __cplusplus
20395 extern "C"
20396 #endif
20397 char inet_aton ();
20398 int
20399 main ()
20400 {
20401 return inet_aton ();
20402   ;
20403   return 0;
20404 }
20405 _ACEOF
20406 if ac_fn_c_try_link "$LINENO"; then :
20407   ac_cv_lib_resolv_inet_aton=yes
20408 else
20409   ac_cv_lib_resolv_inet_aton=no
20410 fi
20411 rm -f core conftest.err conftest.$ac_objext \
20412     conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20414 fi
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20416 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20417 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20418   cat >>confdefs.h <<_ACEOF
20419 #define HAVE_LIBRESOLV 1
20420 _ACEOF
20421
20422   LIBS="-lresolv $LIBS"
20423
20424 fi
20425
20426
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20428 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20429 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20430   $as_echo_n "(cached) " >&6
20431 else
20432   ac_check_lib_save_LIBS=$LIBS
20433 LIBS="-lnsl  $LIBS"
20434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435 /* end confdefs.h.  */
20436
20437 /* Override any GCC internal prototype to avoid an error.
20438    Use char because int might match the return type of a GCC
20439    builtin and then its argument prototype would still apply.  */
20440 #ifdef __cplusplus
20441 extern "C"
20442 #endif
20443 char inet_ntoa ();
20444 int
20445 main ()
20446 {
20447 return inet_ntoa ();
20448   ;
20449   return 0;
20450 }
20451 _ACEOF
20452 if ac_fn_c_try_link "$LINENO"; then :
20453   ac_cv_lib_nsl_inet_ntoa=yes
20454 else
20455   ac_cv_lib_nsl_inet_ntoa=no
20456 fi
20457 rm -f core conftest.err conftest.$ac_objext \
20458     conftest$ac_exeext conftest.$ac_ext
20459 LIBS=$ac_check_lib_save_LIBS
20460 fi
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20462 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20463 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20464   cat >>confdefs.h <<_ACEOF
20465 #define HAVE_LIBNSL 1
20466 _ACEOF
20467
20468   LIBS="-lnsl $LIBS"
20469
20470 fi
20471
20472
20473 OPENSSL_LIBS=
20474 if test "x$WITH_OPENSSL" = xyes; then
20475   old_LIBS=$LIBS
20476   old_LDFLAGS="$LDFLAGS"
20477   if test "x$OPENSSL_LIB_DIR" != "x"; then
20478     LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
20479   fi
20480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20481 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20482 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20483   $as_echo_n "(cached) " >&6
20484 else
20485   ac_check_lib_save_LIBS=$LIBS
20486 LIBS="-lcrypto  $LIBS"
20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h.  */
20489
20490 /* Override any GCC internal prototype to avoid an error.
20491    Use char because int might match the return type of a GCC
20492    builtin and then its argument prototype would still apply.  */
20493 #ifdef __cplusplus
20494 extern "C"
20495 #endif
20496 char DH_new ();
20497 int
20498 main ()
20499 {
20500 return DH_new ();
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 if ac_fn_c_try_link "$LINENO"; then :
20506   ac_cv_lib_crypto_DH_new=yes
20507 else
20508   ac_cv_lib_crypto_DH_new=no
20509 fi
20510 rm -f core conftest.err conftest.$ac_objext \
20511     conftest$ac_exeext conftest.$ac_ext
20512 LIBS=$ac_check_lib_save_LIBS
20513 fi
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20515 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20516 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20517
20518         LIBS="-lcrypto $LIBS"
20519
20520 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20521
20522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20523 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20524 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20525   $as_echo_n "(cached) " >&6
20526 else
20527   ac_check_lib_save_LIBS=$LIBS
20528 LIBS="-lssl  $LIBS"
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h.  */
20531
20532 /* Override any GCC internal prototype to avoid an error.
20533    Use char because int might match the return type of a GCC
20534    builtin and then its argument prototype would still apply.  */
20535 #ifdef __cplusplus
20536 extern "C"
20537 #endif
20538 char SSL_new ();
20539 int
20540 main ()
20541 {
20542 return SSL_new ();
20543   ;
20544   return 0;
20545 }
20546 _ACEOF
20547 if ac_fn_c_try_link "$LINENO"; then :
20548   ac_cv_lib_ssl_SSL_new=yes
20549 else
20550   ac_cv_lib_ssl_SSL_new=no
20551 fi
20552 rm -f core conftest.err conftest.$ac_objext \
20553     conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20555 fi
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20557 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20558 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20559
20560
20561 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20562
20563                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20564                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20565                 fi
20566                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20567
20568 fi
20569
20570
20571 fi
20572
20573   LIBS=$old_LIBS
20574   LDFLAGS="$old_LDFLAGS"
20575 fi
20576
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20578 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20579 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20580   $as_echo_n "(cached) " >&6
20581 else
20582   ac_check_lib_save_LIBS=$LIBS
20583 LIBS="-lws2_32  $LIBS"
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h.  */
20586
20587 /* Override any GCC internal prototype to avoid an error.
20588    Use char because int might match the return type of a GCC
20589    builtin and then its argument prototype would still apply.  */
20590 #ifdef __cplusplus
20591 extern "C"
20592 #endif
20593 char htonl ();
20594 int
20595 main ()
20596 {
20597 return htonl ();
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 if ac_fn_c_try_link "$LINENO"; then :
20603   ac_cv_lib_ws2_32_htonl=yes
20604 else
20605   ac_cv_lib_ws2_32_htonl=no
20606 fi
20607 rm -f core conftest.err conftest.$ac_objext \
20608     conftest$ac_exeext conftest.$ac_ext
20609 LIBS=$ac_check_lib_save_LIBS
20610 fi
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20612 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20613 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20614   cat >>confdefs.h <<_ACEOF
20615 #define HAVE_LIBWS2_32 1
20616 _ACEOF
20617
20618   LIBS="-lws2_32 $LIBS"
20619
20620 fi
20621
20622
20623 PCAP_LIBS=
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20625 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20626 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20627   $as_echo_n "(cached) " >&6
20628 else
20629   ac_check_lib_save_LIBS=$LIBS
20630 LIBS="-lpcap  $LIBS"
20631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20632 /* end confdefs.h.  */
20633
20634 /* Override any GCC internal prototype to avoid an error.
20635    Use char because int might match the return type of a GCC
20636    builtin and then its argument prototype would still apply.  */
20637 #ifdef __cplusplus
20638 extern "C"
20639 #endif
20640 char pcap_open_live ();
20641 int
20642 main ()
20643 {
20644 return pcap_open_live ();
20645   ;
20646   return 0;
20647 }
20648 _ACEOF
20649 if ac_fn_c_try_link "$LINENO"; then :
20650   ac_cv_lib_pcap_pcap_open_live=yes
20651 else
20652   ac_cv_lib_pcap_pcap_open_live=no
20653 fi
20654 rm -f core conftest.err conftest.$ac_objext \
20655     conftest$ac_exeext conftest.$ac_ext
20656 LIBS=$ac_check_lib_save_LIBS
20657 fi
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20659 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20660 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20661    PCAP_LIBS="-lpcap"
20662
20663 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20664
20665
20666 else
20667    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20668 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20669 fi
20670
20671
20672
20673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20674 $as_echo_n "checking for a readline compatible library... " >&6; }
20675 if ${ac_cv_lib_readline+:} false; then :
20676   $as_echo_n "(cached) " >&6
20677 else
20678
20679     ORIG_LIBS=$LIBS
20680     for readline_lib in readline edit editline; do
20681       for termcap_lib in "" termcap curses ncurses; do
20682         if test -z "$termcap_lib"; then
20683           TRY_LIB="-l$readline_lib"
20684         else
20685           TRY_LIB="-l$readline_lib -l$termcap_lib"
20686         fi
20687         LIBS="$ORIG_LIBS $TRY_LIB"
20688         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20689 /* end confdefs.h.  */
20690
20691 /* Override any GCC internal prototype to avoid an error.
20692    Use char because int might match the return type of a GCC
20693    builtin and then its argument prototype would still apply.  */
20694 #ifdef __cplusplus
20695 extern "C"
20696 #endif
20697 char readline ();
20698 int
20699 main ()
20700 {
20701 return readline ();
20702   ;
20703   return 0;
20704 }
20705 _ACEOF
20706 if ac_fn_c_try_link "$LINENO"; then :
20707   ac_cv_lib_readline="$TRY_LIB"
20708 fi
20709 rm -f core conftest.err conftest.$ac_objext \
20710     conftest$ac_exeext conftest.$ac_ext
20711         if test -n "$ac_cv_lib_readline"; then
20712           break
20713         fi
20714       done
20715       if test -n "$ac_cv_lib_readline"; then
20716         break
20717       fi
20718     done
20719     if test -z "$ac_cv_lib_readline"; then
20720       ac_cv_lib_readline="no"
20721     fi
20722     LIBS=$ORIG_LIBS
20723
20724 fi
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20726 $as_echo "$ac_cv_lib_readline" >&6; }
20727
20728   if test "$ac_cv_lib_readline" != "no"; then
20729     LIBREADLINE="$ac_cv_lib_readline"
20730
20731 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20732
20733     for ac_header in readline.h readline/readline.h
20734 do :
20735   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20736 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20738   cat >>confdefs.h <<_ACEOF
20739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20740 _ACEOF
20741
20742 fi
20743
20744 done
20745
20746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20747 $as_echo_n "checking whether readline supports history... " >&6; }
20748 if ${ac_cv_lib_readline_history+:} false; then :
20749   $as_echo_n "(cached) " >&6
20750 else
20751
20752       ac_cv_lib_readline_history="no"
20753       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h.  */
20755
20756 /* Override any GCC internal prototype to avoid an error.
20757    Use char because int might match the return type of a GCC
20758    builtin and then its argument prototype would still apply.  */
20759 #ifdef __cplusplus
20760 extern "C"
20761 #endif
20762 char add_history ();
20763 int
20764 main ()
20765 {
20766 return add_history ();
20767   ;
20768   return 0;
20769 }
20770 _ACEOF
20771 if ac_fn_c_try_link "$LINENO"; then :
20772   ac_cv_lib_readline_history="yes"
20773 fi
20774 rm -f core conftest.err conftest.$ac_objext \
20775     conftest$ac_exeext conftest.$ac_ext
20776
20777 fi
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20779 $as_echo "$ac_cv_lib_readline_history" >&6; }
20780     if test "$ac_cv_lib_readline_history" = "yes"; then
20781
20782 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20783
20784       for ac_header in history.h readline/history.h
20785 do :
20786   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20787 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20789   cat >>confdefs.h <<_ACEOF
20790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20791 _ACEOF
20792
20793 fi
20794
20795 done
20796
20797     fi
20798   fi
20799
20800
20801
20802
20803 case "$host" in
20804 *-interix*)
20805         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20806         ;;
20807 *-darwin*)
20808         CFLAGS="$CFLAGS -DDARWIN"
20809         LIBS="-framework DirectoryService $LIBS"
20810
20811 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
20812
20813         ;;
20814 esac
20815
20816 ac_header_dirent=no
20817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20818   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20820 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20821 if eval \${$as_ac_Header+:} false; then :
20822   $as_echo_n "(cached) " >&6
20823 else
20824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h.  */
20826 #include <sys/types.h>
20827 #include <$ac_hdr>
20828
20829 int
20830 main ()
20831 {
20832 if ((DIR *) 0)
20833 return 0;
20834   ;
20835   return 0;
20836 }
20837 _ACEOF
20838 if ac_fn_c_try_compile "$LINENO"; then :
20839   eval "$as_ac_Header=yes"
20840 else
20841   eval "$as_ac_Header=no"
20842 fi
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 fi
20845 eval ac_res=\$$as_ac_Header
20846                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20847 $as_echo "$ac_res" >&6; }
20848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20849   cat >>confdefs.h <<_ACEOF
20850 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20851 _ACEOF
20852
20853 ac_header_dirent=$ac_hdr; break
20854 fi
20855
20856 done
20857 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20858 if test $ac_header_dirent = dirent.h; then
20859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20860 $as_echo_n "checking for library containing opendir... " >&6; }
20861 if ${ac_cv_search_opendir+:} false; then :
20862   $as_echo_n "(cached) " >&6
20863 else
20864   ac_func_search_save_LIBS=$LIBS
20865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20866 /* end confdefs.h.  */
20867
20868 /* Override any GCC internal prototype to avoid an error.
20869    Use char because int might match the return type of a GCC
20870    builtin and then its argument prototype would still apply.  */
20871 #ifdef __cplusplus
20872 extern "C"
20873 #endif
20874 char opendir ();
20875 int
20876 main ()
20877 {
20878 return opendir ();
20879   ;
20880   return 0;
20881 }
20882 _ACEOF
20883 for ac_lib in '' dir; do
20884   if test -z "$ac_lib"; then
20885     ac_res="none required"
20886   else
20887     ac_res=-l$ac_lib
20888     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20889   fi
20890   if ac_fn_c_try_link "$LINENO"; then :
20891   ac_cv_search_opendir=$ac_res
20892 fi
20893 rm -f core conftest.err conftest.$ac_objext \
20894     conftest$ac_exeext
20895   if ${ac_cv_search_opendir+:} false; then :
20896   break
20897 fi
20898 done
20899 if ${ac_cv_search_opendir+:} false; then :
20900
20901 else
20902   ac_cv_search_opendir=no
20903 fi
20904 rm conftest.$ac_ext
20905 LIBS=$ac_func_search_save_LIBS
20906 fi
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20908 $as_echo "$ac_cv_search_opendir" >&6; }
20909 ac_res=$ac_cv_search_opendir
20910 if test "$ac_res" != no; then :
20911   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20912
20913 fi
20914
20915 else
20916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20917 $as_echo_n "checking for library containing opendir... " >&6; }
20918 if ${ac_cv_search_opendir+:} false; then :
20919   $as_echo_n "(cached) " >&6
20920 else
20921   ac_func_search_save_LIBS=$LIBS
20922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20923 /* end confdefs.h.  */
20924
20925 /* Override any GCC internal prototype to avoid an error.
20926    Use char because int might match the return type of a GCC
20927    builtin and then its argument prototype would still apply.  */
20928 #ifdef __cplusplus
20929 extern "C"
20930 #endif
20931 char opendir ();
20932 int
20933 main ()
20934 {
20935 return opendir ();
20936   ;
20937   return 0;
20938 }
20939 _ACEOF
20940 for ac_lib in '' x; do
20941   if test -z "$ac_lib"; then
20942     ac_res="none required"
20943   else
20944     ac_res=-l$ac_lib
20945     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20946   fi
20947   if ac_fn_c_try_link "$LINENO"; then :
20948   ac_cv_search_opendir=$ac_res
20949 fi
20950 rm -f core conftest.err conftest.$ac_objext \
20951     conftest$ac_exeext
20952   if ${ac_cv_search_opendir+:} false; then :
20953   break
20954 fi
20955 done
20956 if ${ac_cv_search_opendir+:} false; then :
20957
20958 else
20959   ac_cv_search_opendir=no
20960 fi
20961 rm conftest.$ac_ext
20962 LIBS=$ac_func_search_save_LIBS
20963 fi
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20965 $as_echo "$ac_cv_search_opendir" >&6; }
20966 ac_res=$ac_cv_search_opendir
20967 if test "$ac_res" != no; then :
20968   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20969
20970 fi
20971
20972 fi
20973
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20975 $as_echo_n "checking for ANSI C header files... " >&6; }
20976 if ${ac_cv_header_stdc+:} false; then :
20977   $as_echo_n "(cached) " >&6
20978 else
20979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h.  */
20981 #include <stdlib.h>
20982 #include <stdarg.h>
20983 #include <string.h>
20984 #include <float.h>
20985
20986 int
20987 main ()
20988 {
20989
20990   ;
20991   return 0;
20992 }
20993 _ACEOF
20994 if ac_fn_c_try_compile "$LINENO"; then :
20995   ac_cv_header_stdc=yes
20996 else
20997   ac_cv_header_stdc=no
20998 fi
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000
21001 if test $ac_cv_header_stdc = yes; then
21002   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21004 /* end confdefs.h.  */
21005 #include <string.h>
21006
21007 _ACEOF
21008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21009   $EGREP "memchr" >/dev/null 2>&1; then :
21010
21011 else
21012   ac_cv_header_stdc=no
21013 fi
21014 rm -f conftest*
21015
21016 fi
21017
21018 if test $ac_cv_header_stdc = yes; then
21019   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h.  */
21022 #include <stdlib.h>
21023
21024 _ACEOF
21025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21026   $EGREP "free" >/dev/null 2>&1; then :
21027
21028 else
21029   ac_cv_header_stdc=no
21030 fi
21031 rm -f conftest*
21032
21033 fi
21034
21035 if test $ac_cv_header_stdc = yes; then
21036   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21037   if test "$cross_compiling" = yes; then :
21038   :
21039 else
21040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h.  */
21042 #include <ctype.h>
21043 #include <stdlib.h>
21044 #if ((' ' & 0x0FF) == 0x020)
21045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21047 #else
21048 # define ISLOWER(c) \
21049                    (('a' <= (c) && (c) <= 'i') \
21050                      || ('j' <= (c) && (c) <= 'r') \
21051                      || ('s' <= (c) && (c) <= 'z'))
21052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21053 #endif
21054
21055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21056 int
21057 main ()
21058 {
21059   int i;
21060   for (i = 0; i < 256; i++)
21061     if (XOR (islower (i), ISLOWER (i))
21062         || toupper (i) != TOUPPER (i))
21063       return 2;
21064   return 0;
21065 }
21066 _ACEOF
21067 if ac_fn_c_try_run "$LINENO"; then :
21068
21069 else
21070   ac_cv_header_stdc=no
21071 fi
21072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21073   conftest.$ac_objext conftest.beam conftest.$ac_ext
21074 fi
21075
21076 fi
21077 fi
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21079 $as_echo "$ac_cv_header_stdc" >&6; }
21080 if test $ac_cv_header_stdc = yes; then
21081
21082 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21083
21084 fi
21085
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21087 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21088 if ${ac_cv_header_time+:} false; then :
21089   $as_echo_n "(cached) " >&6
21090 else
21091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21092 /* end confdefs.h.  */
21093 #include <sys/types.h>
21094 #include <sys/time.h>
21095 #include <time.h>
21096
21097 int
21098 main ()
21099 {
21100 if ((struct tm *) 0)
21101 return 0;
21102   ;
21103   return 0;
21104 }
21105 _ACEOF
21106 if ac_fn_c_try_compile "$LINENO"; then :
21107   ac_cv_header_time=yes
21108 else
21109   ac_cv_header_time=no
21110 fi
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 fi
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21114 $as_echo "$ac_cv_header_time" >&6; }
21115 if test $ac_cv_header_time = yes; then
21116
21117 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21118
21119 fi
21120
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21122 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21123 if ${ac_cv_header_sys_wait_h+:} false; then :
21124   $as_echo_n "(cached) " >&6
21125 else
21126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h.  */
21128 #include <sys/types.h>
21129 #include <sys/wait.h>
21130 #ifndef WEXITSTATUS
21131 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21132 #endif
21133 #ifndef WIFEXITED
21134 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21135 #endif
21136
21137 int
21138 main ()
21139 {
21140   int s;
21141   wait (&s);
21142   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21143   ;
21144   return 0;
21145 }
21146 _ACEOF
21147 if ac_fn_c_try_compile "$LINENO"; then :
21148   ac_cv_header_sys_wait_h=yes
21149 else
21150   ac_cv_header_sys_wait_h=no
21151 fi
21152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21153 fi
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21155 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21156 if test $ac_cv_header_sys_wait_h = yes; then
21157
21158 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21159
21160 fi
21161
21162
21163 for ac_header in \
21164         unistd.h \
21165         crypt.h \
21166         errno.h \
21167         execinfo.h \
21168         resource.h \
21169         sys/resource.h \
21170         getopt.h \
21171         malloc.h \
21172         utmp.h \
21173         utmpx.h \
21174         signal.h \
21175         sys/select.h \
21176         syslog.h \
21177         inttypes.h \
21178         stdint.h \
21179         stdio.h \
21180         netdb.h \
21181         semaphore.h \
21182         arpa/inet.h \
21183         netinet/in.h \
21184         sys/types.h \
21185         sys/socket.h \
21186         winsock.h \
21187         sys/time.h \
21188         sys/wait.h \
21189         sys/security.h \
21190         fcntl.h \
21191         sys/fcntl.h \
21192         sys/prctl.h \
21193         sys/un.h \
21194         glob.h \
21195         prot.h \
21196         pwd.h \
21197         grp.h \
21198         stddef.h \
21199         fnmatch.h \
21200         sia.h \
21201         siad.h
21202
21203 do :
21204   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21205 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21207   cat >>confdefs.h <<_ACEOF
21208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21209 _ACEOF
21210
21211 fi
21212
21213 done
21214
21215
21216 for ac_header in net/if.h
21217 do :
21218   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21219 # include <sys/socket.h>
21220 # endif
21221
21222 "
21223 if test "x$ac_cv_header_net_if_h" = xyes; then :
21224   cat >>confdefs.h <<_ACEOF
21225 #define HAVE_NET_IF_H 1
21226 _ACEOF
21227
21228 fi
21229
21230 done
21231
21232
21233 REGEX=no
21234 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21235 if test "x$ac_cv_header_regex_h" = xyes; then :
21236
21237 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21238
21239 fi
21240
21241
21242 if test "x$ac_cv_header_regex_h" = "xyes"; then
21243   REGEX_EXTENDED=no
21244   REGEX=yes
21245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21246 /* end confdefs.h.  */
21247 #include <regex.h>
21248      #ifdef REG_EXTENDED
21249        yes
21250      #endif
21251
21252 _ACEOF
21253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21254   $EGREP "yes" >/dev/null 2>&1; then :
21255
21256 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21257  REGEX_EXTENDED=yes
21258 fi
21259 rm -f conftest*
21260
21261 fi
21262
21263
21264
21265 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21266 then
21267
21268 $as_echo "#define OSFC2 /**/" >>confdefs.h
21269
21270 fi
21271
21272 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21273 then
21274
21275 $as_echo "#define OSFSIA /**/" >>confdefs.h
21276
21277 fi
21278
21279 if test "x$WITH_OPENSSL" = xyes; then
21280   old_LIBS=$LIBS
21281   old_LDFLAGS="$LDFLAGS"
21282
21283   OPENSSL_INCLUDE="-DNO_OPENSSL"
21284   OPENSSL_LIBS=
21285   if test "x$OPENSSL_LIB_DIR" != "x"; then
21286     LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
21287   fi
21288
21289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
21290 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
21291 if ${ac_cv_lib_crypto_DH_new+:} false; then :
21292   $as_echo_n "(cached) " >&6
21293 else
21294   ac_check_lib_save_LIBS=$LIBS
21295 LIBS="-lcrypto  $LIBS"
21296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297 /* end confdefs.h.  */
21298
21299 /* Override any GCC internal prototype to avoid an error.
21300    Use char because int might match the return type of a GCC
21301    builtin and then its argument prototype would still apply.  */
21302 #ifdef __cplusplus
21303 extern "C"
21304 #endif
21305 char DH_new ();
21306 int
21307 main ()
21308 {
21309 return DH_new ();
21310   ;
21311   return 0;
21312 }
21313 _ACEOF
21314 if ac_fn_c_try_link "$LINENO"; then :
21315   ac_cv_lib_crypto_DH_new=yes
21316 else
21317   ac_cv_lib_crypto_DH_new=no
21318 fi
21319 rm -f core conftest.err conftest.$ac_objext \
21320     conftest$ac_exeext conftest.$ac_ext
21321 LIBS=$ac_check_lib_save_LIBS
21322 fi
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
21324 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
21325 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
21326
21327       LIBS="-lcrypto $LIBS"
21328
21329 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21330
21331       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
21332 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
21333 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
21334   $as_echo_n "(cached) " >&6
21335 else
21336   ac_check_lib_save_LIBS=$LIBS
21337 LIBS="-lssl  $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 SSL_new ();
21348 int
21349 main ()
21350 {
21351 return SSL_new ();
21352   ;
21353   return 0;
21354 }
21355 _ACEOF
21356 if ac_fn_c_try_link "$LINENO"; then :
21357   ac_cv_lib_ssl_SSL_new=yes
21358 else
21359   ac_cv_lib_ssl_SSL_new=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_ssl_SSL_new" >&5
21366 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
21367 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
21368
21369
21370 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
21371
21372           if test "x$OPENSSL_LIB_DIR" != "x"; then
21373             OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21374           fi
21375           OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21376           LIBS="$OPENSSL_LIBS $LIBS"
21377
21378 else
21379
21380           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21382 as_fn_error $? "failed linking to libssl
21383 See \`config.log' for more details" "$LINENO" 5; }
21384
21385
21386 fi
21387
21388
21389 fi
21390
21391
21392         old_CPPFLAGS=$CPPFLAGS
21393   old_CFLAGS=$CFLAGS
21394   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21395     CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21396     CFLAGS="-I$OPENSSL_INCLUDE_DIR $CFLAGS"
21397   fi
21398
21399         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21400   for ac_header in \
21401     openssl/ssl.h \
21402     openssl/crypto.h \
21403     openssl/err.h \
21404     openssl/evp.h \
21405     openssl/md5.h \
21406     openssl/md4.h \
21407     openssl/sha.h \
21408     openssl/ocsp.h \
21409     openssl/engine.h
21410 do :
21411   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21412 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21414   cat >>confdefs.h <<_ACEOF
21415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21416 _ACEOF
21417
21418 else
21419
21420       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21422 as_fn_error $? "failed locating OpenSSL headers
21423 See \`config.log' for more details" "$LINENO" 5; }
21424
21425
21426 fi
21427
21428 done
21429
21430
21431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21432 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h.  */
21435 #include <openssl/crypto.h>
21436      #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21437      yes
21438      #endif
21439
21440 _ACEOF
21441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21442   $EGREP "yes" >/dev/null 2>&1; then :
21443
21444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21445 $as_echo "yes" >&6; }
21446
21447 else
21448
21449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21450 $as_echo "no" >&6; }
21451       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21453 as_fn_error $? "OpenSSL version too old
21454 See \`config.log' for more details" "$LINENO" 5; }
21455
21456
21457 fi
21458 rm -f conftest*
21459
21460
21461   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21462     OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21463   else
21464     OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21465   fi
21466
21467         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
21468 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
21469   if test "$cross_compiling" = yes; then :
21470   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21472 as_fn_error $? "cannot run test program while cross compiling
21473 See \`config.log' for more details" "$LINENO" 5; }
21474 else
21475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21476 /* end confdefs.h.  */
21477
21478         #include <stdio.h>
21479         #include <openssl/opensslv.h>
21480         #include <openssl/crypto.h>
21481
21482 int
21483 main ()
21484 {
21485
21486         if (SSLeay() == OPENSSL_VERSION_NUMBER) {
21487           return 0;
21488         } else {
21489           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
21490           return 1;
21491         }
21492
21493
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 if ac_fn_c_try_run "$LINENO"; then :
21499
21500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21501 $as_echo "yes" >&6; }
21502
21503 else
21504
21505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506 $as_echo "no" >&6; }
21507       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21509 as_fn_error $? "OpenSSL library version does not match header version
21510 See \`config.log' for more details" "$LINENO" 5; }
21511
21512
21513 fi
21514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21515   conftest.$ac_objext conftest.beam conftest.$ac_ext
21516 fi
21517
21518
21519   if test "x$OPENSSL_LIBS" = x; then
21520     LIBS=$old_LIBS
21521     LDFLAGS="$old_LDFLAGS"
21522   fi
21523   if test "x$OPENSSL_INCLUDE" = x; then
21524     CPPFLAGS=$old_CPPFLAGS
21525     CFLAGS=$old_CFLAGS
21526   fi
21527 fi
21528
21529
21530
21531 export OPENSSL_LIBS
21532
21533 if test "x$PCAP_LIBS" = x; then
21534     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21535 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21536 else
21537     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21538 if test "x$ac_cv_header_pcap_h" = xyes; then :
21539
21540 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21541
21542 else
21543    PCAP_LIBS=
21544         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21545 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21546
21547 fi
21548
21549
21550
21551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21552 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21553 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21554   $as_echo_n "(cached) " >&6
21555 else
21556   ac_check_lib_save_LIBS=$LIBS
21557 LIBS="-lpcap  $LIBS"
21558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h.  */
21560
21561 /* Override any GCC internal prototype to avoid an error.
21562    Use char because int might match the return type of a GCC
21563    builtin and then its argument prototype would still apply.  */
21564 #ifdef __cplusplus
21565 extern "C"
21566 #endif
21567 char pcap_fopen_offline ();
21568 int
21569 main ()
21570 {
21571 return pcap_fopen_offline ();
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 if ac_fn_c_try_link "$LINENO"; then :
21577   ac_cv_lib_pcap_pcap_fopen_offline=yes
21578 else
21579   ac_cv_lib_pcap_pcap_fopen_offline=no
21580 fi
21581 rm -f core conftest.err conftest.$ac_objext \
21582     conftest$ac_exeext conftest.$ac_ext
21583 LIBS=$ac_check_lib_save_LIBS
21584 fi
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21586 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21587 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21588
21589 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21590
21591
21592 fi
21593
21594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21595 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21596 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21597   $as_echo_n "(cached) " >&6
21598 else
21599   ac_check_lib_save_LIBS=$LIBS
21600 LIBS="-lpcap  $LIBS"
21601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21602 /* end confdefs.h.  */
21603
21604 /* Override any GCC internal prototype to avoid an error.
21605    Use char because int might match the return type of a GCC
21606    builtin and then its argument prototype would still apply.  */
21607 #ifdef __cplusplus
21608 extern "C"
21609 #endif
21610 char pcap_dump_fopen ();
21611 int
21612 main ()
21613 {
21614 return pcap_dump_fopen ();
21615   ;
21616   return 0;
21617 }
21618 _ACEOF
21619 if ac_fn_c_try_link "$LINENO"; then :
21620   ac_cv_lib_pcap_pcap_dump_fopen=yes
21621 else
21622   ac_cv_lib_pcap_pcap_dump_fopen=no
21623 fi
21624 rm -f core conftest.err conftest.$ac_objext \
21625     conftest$ac_exeext conftest.$ac_ext
21626 LIBS=$ac_check_lib_save_LIBS
21627 fi
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21629 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21630 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21631
21632 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21633
21634
21635 fi
21636
21637 fi
21638
21639
21640
21641 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21642 if test "x$ac_cv_type_off_t" = xyes; then :
21643
21644 else
21645
21646 cat >>confdefs.h <<_ACEOF
21647 #define off_t long int
21648 _ACEOF
21649
21650 fi
21651
21652 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21653 if test "x$ac_cv_type_pid_t" = xyes; then :
21654
21655 else
21656
21657 cat >>confdefs.h <<_ACEOF
21658 #define pid_t int
21659 _ACEOF
21660
21661 fi
21662
21663 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21664 if test "x$ac_cv_type_size_t" = xyes; then :
21665
21666 else
21667
21668 cat >>confdefs.h <<_ACEOF
21669 #define size_t unsigned int
21670 _ACEOF
21671
21672 fi
21673
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21675 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21676 if ${ac_cv_type_uid_t+:} false; then :
21677   $as_echo_n "(cached) " >&6
21678 else
21679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21680 /* end confdefs.h.  */
21681 #include <sys/types.h>
21682
21683 _ACEOF
21684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21685   $EGREP "uid_t" >/dev/null 2>&1; then :
21686   ac_cv_type_uid_t=yes
21687 else
21688   ac_cv_type_uid_t=no
21689 fi
21690 rm -f conftest*
21691
21692 fi
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21694 $as_echo "$ac_cv_type_uid_t" >&6; }
21695 if test $ac_cv_type_uid_t = no; then
21696
21697 $as_echo "#define uid_t int" >>confdefs.h
21698
21699
21700 $as_echo "#define gid_t int" >>confdefs.h
21701
21702 fi
21703
21704
21705
21706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21707 $as_echo_n "checking for socklen_t... " >&6; }
21708 if ${ac_cv_type_socklen_t+:} false; then :
21709   $as_echo_n "(cached) " >&6
21710 else
21711    ac_cv_type_socklen_t=no
21712       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h.  */
21714 #ifdef HAVE_SYS_TYPES_H
21715 #include <sys/types.h>
21716 #endif
21717 #ifdef HAVE_SYS_SOCKET_H
21718 #include <sys/socket.h>
21719 #endif
21720
21721 int
21722 main ()
21723 {
21724 socklen_t foo
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 if ac_fn_c_try_compile "$LINENO"; then :
21730   ac_cv_type_socklen_t=yes
21731 fi
21732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733
21734
21735 fi
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21737 $as_echo "$ac_cv_type_socklen_t" >&6; }
21738
21739   if test "$ac_cv_type_socklen_t" != "yes"; then
21740
21741 $as_echo "#define socklen_t int" >>confdefs.h
21742
21743   fi
21744
21745
21746
21747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21748 $as_echo_n "checking for uint8_t... " >&6; }
21749 if ${ac_cv_type_uint8_t+:} false; then :
21750   $as_echo_n "(cached) " >&6
21751 else
21752    ac_cv_type_uint8_t=no
21753       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754 /* end confdefs.h.  */
21755 #ifdef HAVE_INTTYPES_H
21756 #include <inttypes.h>
21757 #endif
21758 #ifdef HAVE_STDINT_H
21759 #include <stdint.h>
21760 #endif
21761
21762 int
21763 main ()
21764 {
21765 uint8_t foo
21766   ;
21767   return 0;
21768 }
21769 _ACEOF
21770 if ac_fn_c_try_compile "$LINENO"; then :
21771   ac_cv_type_uint8_t=yes
21772 fi
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774
21775
21776 fi
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21778 $as_echo "$ac_cv_type_uint8_t" >&6; }
21779
21780   if test "$ac_cv_type_uint8_t" != "yes"; then
21781
21782 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21783
21784   fi
21785
21786
21787
21788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21789 $as_echo_n "checking for uint16_t... " >&6; }
21790 if ${ac_cv_type_uint16_t+:} false; then :
21791   $as_echo_n "(cached) " >&6
21792 else
21793    ac_cv_type_uint16_t=no
21794       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h.  */
21796 #ifdef HAVE_INTTYPES_H
21797 #include <inttypes.h>
21798 #endif
21799 #ifdef HAVE_STDINT_H
21800 #include <stdint.h>
21801 #endif
21802
21803 int
21804 main ()
21805 {
21806 uint16_t foo
21807   ;
21808   return 0;
21809 }
21810 _ACEOF
21811 if ac_fn_c_try_compile "$LINENO"; then :
21812   ac_cv_type_uint16_t=yes
21813 fi
21814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815
21816
21817 fi
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21819 $as_echo "$ac_cv_type_uint16_t" >&6; }
21820
21821   if test "$ac_cv_type_uint16_t" != "yes"; then
21822
21823 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21824
21825   fi
21826
21827
21828
21829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21830 $as_echo_n "checking for uint32_t... " >&6; }
21831 if ${ac_cv_type_uint32_t+:} false; then :
21832   $as_echo_n "(cached) " >&6
21833 else
21834    ac_cv_type_uint32_t=no
21835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21836 /* end confdefs.h.  */
21837 #ifdef HAVE_INTTYPES_H
21838 #include <inttypes.h>
21839 #endif
21840 #ifdef HAVE_STDINT_H
21841 #include <stdint.h>
21842 #endif
21843
21844 int
21845 main ()
21846 {
21847 uint32_t foo
21848   ;
21849   return 0;
21850 }
21851 _ACEOF
21852 if ac_fn_c_try_compile "$LINENO"; then :
21853   ac_cv_type_uint32_t=yes
21854 fi
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856
21857
21858 fi
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21860 $as_echo "$ac_cv_type_uint32_t" >&6; }
21861
21862   if test "$ac_cv_type_uint32_t" != "yes"; then
21863
21864 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21865
21866   fi
21867
21868
21869 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "
21870     #ifdef HAVE_SIGNAL_H
21871     #  include <signal.h>
21872     #endif
21873
21874 "
21875 if test "x$ac_cv_type_sig_t" = xyes; then :
21876
21877 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
21878
21879 fi
21880
21881
21882 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21883 #ifdef HAVE_NETINET_IN_H
21884 #include <netinet/in.h>
21885 #endif
21886
21887 "
21888 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21889
21890 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21891
21892 fi
21893
21894
21895 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21896 #ifdef HAVE_NETINET_IN_H
21897 #include <netinet/in.h>
21898 #endif
21899 #ifdef HAVE_SYS_SOCKET_H
21900 #include <sys/socket.h>
21901 #endif
21902
21903 "
21904 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21905
21906 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21907
21908 fi
21909
21910
21911 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21912 #ifdef HAVE_NETINET_IN_H
21913 #include <netinet/in.h>
21914 #endif
21915
21916 "
21917 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21918
21919 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21920
21921 fi
21922
21923
21924 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21925 #ifdef HAVE_SYS_TYPES_H
21926 #include <sys/types.h>
21927 #endif
21928 #ifdef HAVE_SYS_SOCKET_H
21929 #include <sys/socket.h>
21930 #endif
21931 #ifdef HAVE_NETDB_H
21932 #include <netdb.h>
21933 #endif
21934
21935 "
21936 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21937
21938 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21939
21940 fi
21941
21942
21943 for ac_func in \
21944         getopt_long \
21945         lockf \
21946         strsignal \
21947         sigaction \
21948         sigprocmask \
21949         pthread_sigmask \
21950         snprintf \
21951         vsnprintf \
21952         setsid \
21953         strncasecmp \
21954         strcasecmp \
21955         localtime_r \
21956         ctime_r \
21957         gmtime_r \
21958         strsep \
21959         inet_aton \
21960         inet_pton \
21961         inet_ntop \
21962         setlinebuf \
21963         setvbuf \
21964         getusershell \
21965         initgroups \
21966         getaddrinfo \
21967         getnameinfo \
21968         closefrom \
21969         gettimeofday \
21970         getpeereid \
21971         setuid \
21972         setresuid \
21973         getresuid \
21974         strlcat \
21975         strlcpy
21976
21977 do :
21978   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21981   cat >>confdefs.h <<_ACEOF
21982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21983 _ACEOF
21984
21985 fi
21986 done
21987
21988 for ac_func in \
21989         crypt \
21990         strncasecmp \
21991         strcasecmp \
21992         inet_aton \
21993         setlinebuf \
21994         getusershell \
21995         endusershell
21996
21997 do
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21999 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
22000 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
22001   $as_echo_n "(cached) " >&6
22002 else
22003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22004 /* end confdefs.h.  */
22005
22006 #include <stdio.h>
22007 #include <string.h>
22008 #ifdef HAVE_UNISTD_H
22009 #include <unistd.h>
22010 #endif
22011 #ifdef HAVE_CRYPT_H
22012 #include <crypt.h>
22013 #endif
22014 #ifdef HAVE_ERRNO_H
22015 #include <errno.h>
22016 #endif
22017 #ifdef HAVE_RESOURCE_H
22018 #include <resource.h>
22019 #endif
22020 #ifdef HAVE_GETOPT_H
22021 #include <getopt.h>
22022 #endif
22023 #ifdef HAVE_MALLOC_H
22024 #include <malloc.h>
22025 #endif
22026 #ifdef HAVE_UTMP_H
22027 #include <utmp.h>
22028 #endif
22029 #ifdef HAVE_UTMPX_H
22030 #include <utmpx.h>
22031 #endif
22032 #ifdef HAVE_SYS_SELECT_H
22033 #include <sys/select.h>
22034 #endif
22035 #ifdef HAVE_DLFCN_H
22036 #include <dlfcn.h>
22037 #endif
22038 #ifdef HAVE_REGEX_H
22039 #include <regex.h>
22040 #endif
22041 #ifdef HAVE_SYSLOG_H
22042 #include <syslog.h>
22043 #endif
22044 #ifdef HAVE_INTTYPES_H
22045 #include <inttypes.h>
22046 #endif
22047 #ifdef HAVE_STDINT_H
22048 #include <stdint.h>
22049 #endif
22050 #ifdef HAVE_ARPA_INET_H
22051 #include <arpa/inet.h>
22052 #endif
22053
22054 int
22055 main ()
22056 {
22057 char *(*pfn) = (char *(*)) $ac_func
22058   ;
22059   return 0;
22060 }
22061 _ACEOF
22062 if ac_fn_c_try_compile "$LINENO"; then :
22063   eval "radius_cv_decl_needed_$ac_func=no"
22064 else
22065   eval "radius_cv_decl_needed_$ac_func=yes"
22066 fi
22067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22068 fi
22069
22070 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22072 $as_echo "yes" >&6; }
22073   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22074   cat >>confdefs.h <<_ACEOF
22075 #define $radius_tr_decl 1
22076 _ACEOF
22077
22078 else
22079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22080 $as_echo "no" >&6; }
22081 fi
22082
22083 done
22084
22085
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22087 $as_echo_n "checking return type of signal handlers... " >&6; }
22088 if ${ac_cv_type_signal+:} false; then :
22089   $as_echo_n "(cached) " >&6
22090 else
22091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h.  */
22093 #include <sys/types.h>
22094 #include <signal.h>
22095
22096 int
22097 main ()
22098 {
22099 return *(signal (0, 0)) (0) == 1;
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 if ac_fn_c_try_compile "$LINENO"; then :
22105   ac_cv_type_signal=int
22106 else
22107   ac_cv_type_signal=void
22108 fi
22109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110 fi
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22112 $as_echo "$ac_cv_type_signal" >&6; }
22113
22114 cat >>confdefs.h <<_ACEOF
22115 #define RETSIGTYPE $ac_cv_type_signal
22116 _ACEOF
22117
22118
22119
22120 if test "x$ac_cv_header_utmpx_h" = "xyes"
22121 then
22122
22123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
22124 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
22125
22126
22127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h.  */
22129
22130 #include <utmpx.h>
22131 #ifdef HAVE_STDDEF_H
22132 #include <stddef.h>
22133 #endif
22134 #ifndef offsetof
22135 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22136 #endif
22137
22138 int
22139 main ()
22140 {
22141  int foo = offsetof(struct utmpx, ut_xtime)
22142   ;
22143   return 0;
22144 }
22145 _ACEOF
22146 if ac_fn_c_try_compile "$LINENO"; then :
22147   has_element=" "
22148 else
22149   has_element=
22150 fi
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152
22153   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22154   if test "x$has_element" != "x"; then
22155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22156 $as_echo "yes" >&6; }
22157     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22158   else
22159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22160 $as_echo "no" >&6; }
22161     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22162  fi
22163
22164  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22165  then
22166
22167 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
22168
22169  fi
22170 fi
22171
22172
22173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
22174 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
22175
22176
22177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178 /* end confdefs.h.  */
22179
22180 #include <netinet/in.h>
22181 #ifdef HAVE_STDDEF_H
22182 #include <stddef.h>
22183 #endif
22184 #ifndef offsetof
22185 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22186 #endif
22187
22188 int
22189 main ()
22190 {
22191  int foo = offsetof(struct in_pktinfo, ipi_addr)
22192   ;
22193   return 0;
22194 }
22195 _ACEOF
22196 if ac_fn_c_try_compile "$LINENO"; then :
22197   has_element=" "
22198 else
22199   has_element=
22200 fi
22201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202
22203   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22204   if test "x$has_element" != "x"; then
22205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22206 $as_echo "yes" >&6; }
22207     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22208   else
22209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22210 $as_echo "no" >&6; }
22211     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22212  fi
22213
22214 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22215 then
22216
22217 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
22218
22219 fi
22220
22221
22222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
22223 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
22224
22225
22226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h.  */
22228
22229 #include <netinet/in.h>
22230 #ifdef HAVE_STDDEF_H
22231 #include <stddef.h>
22232 #endif
22233 #ifndef offsetof
22234 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22235 #endif
22236
22237 int
22238 main ()
22239 {
22240  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22241   ;
22242   return 0;
22243 }
22244 _ACEOF
22245 if ac_fn_c_try_compile "$LINENO"; then :
22246   has_element=" "
22247 else
22248   has_element=
22249 fi
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251
22252   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22253   if test "x$has_element" != "x"; then
22254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22255 $as_echo "yes" >&6; }
22256     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22257   else
22258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22259 $as_echo "no" >&6; }
22260     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22261  fi
22262
22263 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22264 then
22265
22266 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22267
22268 fi
22269
22270
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22272 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22273 if ${ac_cv_c_const+:} false; then :
22274   $as_echo_n "(cached) " >&6
22275 else
22276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277 /* end confdefs.h.  */
22278
22279 int
22280 main ()
22281 {
22282
22283 #ifndef __cplusplus
22284   /* Ultrix mips cc rejects this sort of thing.  */
22285   typedef int charset[2];
22286   const charset cs = { 0, 0 };
22287   /* SunOS 4.1.1 cc rejects this.  */
22288   char const *const *pcpcc;
22289   char **ppc;
22290   /* NEC SVR4.0.2 mips cc rejects this.  */
22291   struct point {int x, y;};
22292   static struct point const zero = {0,0};
22293   /* AIX XL C 1.02.0.0 rejects this.
22294      It does not let you subtract one const X* pointer from another in
22295      an arm of an if-expression whose if-part is not a constant
22296      expression */
22297   const char *g = "string";
22298   pcpcc = &g + (g ? g-g : 0);
22299   /* HPUX 7.0 cc rejects these. */
22300   ++pcpcc;
22301   ppc = (char**) pcpcc;
22302   pcpcc = (char const *const *) ppc;
22303   { /* SCO 3.2v4 cc rejects this sort of thing.  */
22304     char tx;
22305     char *t = &tx;
22306     char const *s = 0 ? (char *) 0 : (char const *) 0;
22307
22308     *t++ = 0;
22309     if (s) return 0;
22310   }
22311   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22312     int x[] = {25, 17};
22313     const int *foo = &x[0];
22314     ++foo;
22315   }
22316   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22317     typedef const int *iptr;
22318     iptr p = 0;
22319     ++p;
22320   }
22321   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22322        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22323     struct s { int j; const int *ap[3]; } bx;
22324     struct s *b = &bx; b->j = 5;
22325   }
22326   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22327     const int foo = 10;
22328     if (!foo) return 0;
22329   }
22330   return !cs[0] && !zero.x;
22331 #endif
22332
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 if ac_fn_c_try_compile "$LINENO"; then :
22338   ac_cv_c_const=yes
22339 else
22340   ac_cv_c_const=no
22341 fi
22342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 fi
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22345 $as_echo "$ac_cv_c_const" >&6; }
22346 if test $ac_cv_c_const = no; then
22347
22348 $as_echo "#define const /**/" >>confdefs.h
22349
22350 fi
22351
22352
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22354 $as_echo_n "checking type of OS... " >&6; }
22355 OS=`uname -s`
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22357 $as_echo "$OS" >&6; }
22358 if test "$OS" = "OS/2"; then
22359         LIBPREFIX=
22360 else
22361         LIBPREFIX=lib
22362 fi
22363
22364
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22366 $as_echo_n "checking for developer gcc flags... " >&6; }
22367 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22368   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22369   CFLAGS="$CFLAGS $devflags"
22370   INSTALLSTRIP=""
22371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
22372 $as_echo "yes.  Using $devflags" >&6; }
22373 else
22374   devflags=""
22375   CFLAGS="$CFLAGS -DNDEBUG"
22376   INSTALLSTRIP=""
22377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22378 $as_echo "no." >&6; }
22379 fi
22380
22381
22382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22383 $as_echo_n "checking for TLS... " >&6; }
22384     if test "$cross_compiling" = yes; then :
22385   have_tls=no
22386 else
22387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h.  */
22389  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22390 _ACEOF
22391 if ac_fn_c_try_run "$LINENO"; then :
22392   have_tls=yes
22393 else
22394   have_tls=no
22395 fi
22396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22397   conftest.$ac_objext conftest.beam conftest.$ac_ext
22398 fi
22399
22400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22401 $as_echo "$have_tls" >&6; }
22402     if test "$have_tls" = "yes"; then
22403
22404 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22405
22406     fi
22407
22408
22409
22410 old_LIBS="$LIBS"
22411 LIBS="$LIBS $LIBLTDL"
22412 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22413 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22414
22415 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22416
22417 fi
22418
22419 LIBS="$old_LIBS"
22420
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22422 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22423 if ${ac_cv_lib_crypt_crypt+:} false; then :
22424   $as_echo_n "(cached) " >&6
22425 else
22426   ac_check_lib_save_LIBS=$LIBS
22427 LIBS="-lcrypt  $LIBS"
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h.  */
22430
22431 /* Override any GCC internal prototype to avoid an error.
22432    Use char because int might match the return type of a GCC
22433    builtin and then its argument prototype would still apply.  */
22434 #ifdef __cplusplus
22435 extern "C"
22436 #endif
22437 char crypt ();
22438 int
22439 main ()
22440 {
22441 return crypt ();
22442   ;
22443   return 0;
22444 }
22445 _ACEOF
22446 if ac_fn_c_try_link "$LINENO"; then :
22447   ac_cv_lib_crypt_crypt=yes
22448 else
22449   ac_cv_lib_crypt_crypt=no
22450 fi
22451 rm -f core conftest.err conftest.$ac_objext \
22452     conftest$ac_exeext conftest.$ac_ext
22453 LIBS=$ac_check_lib_save_LIBS
22454 fi
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22456 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22457 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22458   CRYPTLIB="-lcrypt"
22459
22460 fi
22461
22462 if test "$CRYPTLIB" != ""; then
22463
22464 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22465
22466 else
22467   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22468 if test "x$ac_cv_func_crypt" = xyes; then :
22469
22470 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22471
22472 fi
22473
22474 fi
22475
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22477 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22478 if ${ac_cv_lib_cipher_setkey+:} false; then :
22479   $as_echo_n "(cached) " >&6
22480 else
22481   ac_check_lib_save_LIBS=$LIBS
22482 LIBS="-lcipher  $LIBS"
22483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h.  */
22485
22486 /* Override any GCC internal prototype to avoid an error.
22487    Use char because int might match the return type of a GCC
22488    builtin and then its argument prototype would still apply.  */
22489 #ifdef __cplusplus
22490 extern "C"
22491 #endif
22492 char setkey ();
22493 int
22494 main ()
22495 {
22496 return setkey ();
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 if ac_fn_c_try_link "$LINENO"; then :
22502   ac_cv_lib_cipher_setkey=yes
22503 else
22504   ac_cv_lib_cipher_setkey=no
22505 fi
22506 rm -f core conftest.err conftest.$ac_objext \
22507     conftest$ac_exeext conftest.$ac_ext
22508 LIBS=$ac_check_lib_save_LIBS
22509 fi
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22511 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22512 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22513   CRYPTLIB="${CRYPTLIB} -lcipher"
22514
22515 fi
22516
22517
22518
22519
22520 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22521
22522
22523 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22524
22525
22526 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22527
22528 gethostbyaddrrstyle=""
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22530 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22531 case "$host" in
22532 *-freebsd*)
22533         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22534 #ifdef HAVE_NETDB_H
22535 #include <netdb.h>
22536 #endif
22537
22538 "
22539 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22540   ac_have_decl=1
22541 else
22542   ac_have_decl=0
22543 fi
22544
22545 cat >>confdefs.h <<_ACEOF
22546 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22547 _ACEOF
22548 if test $ac_have_decl = 1; then :
22549
22550 else
22551
22552
22553 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22554
22555                 gethostbyaddrrstyle=BSD
22556                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22557 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22558
22559 fi
22560
22561         ;;
22562 esac
22563 if test "x$gethostbyaddrrstyle" = "x"; then
22564         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22565 /* end confdefs.h.  */
22566
22567 #include <stdio.h>
22568 #include <netdb.h>
22569
22570 int
22571 main ()
22572 {
22573  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22574   ;
22575   return 0;
22576 }
22577 _ACEOF
22578 if ac_fn_c_try_link "$LINENO"; then :
22579
22580
22581 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22582
22583         gethostbyaddrrstyle=GNU
22584
22585 fi
22586 rm -f core conftest.err conftest.$ac_objext \
22587     conftest$ac_exeext conftest.$ac_ext
22588 fi
22589 if test "x$gethostbyaddrrstyle" = "x"; then
22590         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22591 /* end confdefs.h.  */
22592
22593 #include <stdio.h>
22594 #include <netdb.h>
22595
22596 int
22597 main ()
22598 {
22599  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22600   ;
22601   return 0;
22602 }
22603 _ACEOF
22604 if ac_fn_c_try_link "$LINENO"; then :
22605
22606
22607 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22608
22609                 gethostbyaddrrstyle=SYSV
22610
22611 fi
22612 rm -f core conftest.err conftest.$ac_objext \
22613     conftest$ac_exeext conftest.$ac_ext
22614 fi
22615 if test "x$gethostbyaddrrstyle" = "x"; then
22616         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h.  */
22618
22619 #include <stdio.h>
22620 #include <netdb.h>
22621
22622 int
22623 main ()
22624 {
22625  gethostbyaddr(NULL, 0, 0)
22626   ;
22627   return 0;
22628 }
22629 _ACEOF
22630 if ac_fn_c_try_link "$LINENO"; then :
22631
22632
22633 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22634
22635                 gethostbyaddrrstyle=BSD
22636
22637 fi
22638 rm -f core conftest.err conftest.$ac_objext \
22639     conftest$ac_exeext conftest.$ac_ext
22640 fi
22641
22642 if test "x$gethostbyaddrrstyle" = "x"; then
22643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22644 $as_echo "none!  It must not exist, here." >&6; }
22645 else
22646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22647 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22648 fi
22649
22650 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22651         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22652 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22653 fi
22654
22655 gethostbynamerstyle=""
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22657 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659 /* end confdefs.h.  */
22660
22661 #include <stdio.h>
22662 #include <netdb.h>
22663
22664 int
22665 main ()
22666 {
22667  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22668   ;
22669   return 0;
22670 }
22671 _ACEOF
22672 if ac_fn_c_try_link "$LINENO"; then :
22673
22674
22675 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22676
22677         gethostbynamerstyle=GNU
22678
22679 fi
22680 rm -f core conftest.err conftest.$ac_objext \
22681     conftest$ac_exeext conftest.$ac_ext
22682 if test "x$gethostbynamerstyle" = "x"; then
22683         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22684 /* end confdefs.h.  */
22685
22686 #include <stdio.h>
22687 #include <netdb.h>
22688
22689 int
22690 main ()
22691 {
22692  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 if ac_fn_c_try_link "$LINENO"; then :
22698
22699
22700 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22701
22702                 gethostbynamerstyle=SYSV
22703
22704 fi
22705 rm -f core conftest.err conftest.$ac_objext \
22706     conftest$ac_exeext conftest.$ac_ext
22707 fi
22708 if test "x$gethostbynamerstyle" = "x"; then
22709         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22710 /* end confdefs.h.  */
22711
22712 #include <stdio.h>
22713 #include <netdb.h>
22714
22715 int
22716 main ()
22717 {
22718  gethostbyname(NULL)
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 if ac_fn_c_try_link "$LINENO"; then :
22724
22725
22726 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22727
22728                 gethostbynamerstyle=BSD
22729
22730 fi
22731 rm -f core conftest.err conftest.$ac_objext \
22732     conftest$ac_exeext conftest.$ac_ext
22733 fi
22734
22735 if test "x$gethostbynamerstyle" = "x"; then
22736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22737 $as_echo "none!  It must not exist, here." >&6; }
22738 else
22739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22740 $as_echo "${gethostbynamerstyle}-style" >&6; }
22741 fi
22742
22743 if test "x$gethostbynamerstyle" = "xBSD"; then
22744         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22745 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22746 fi
22747
22748
22749 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22750
22751
22752 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22753
22754 ctimerstyle=""
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22756 $as_echo_n "checking ctime_r() syntax... " >&6; }
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h.  */
22759
22760 #include <time.h>
22761
22762 int
22763 main ()
22764 {
22765  ctime_r(NULL, NULL, 0)
22766   ;
22767   return 0;
22768 }
22769 _ACEOF
22770 if ac_fn_c_try_link "$LINENO"; then :
22771
22772
22773 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22774
22775         ctimerstyle="SOLARIS"
22776
22777 fi
22778 rm -f core conftest.err conftest.$ac_objext \
22779     conftest$ac_exeext conftest.$ac_ext
22780 if test "x$ctimerstyle" = "x"; then
22781         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782 /* end confdefs.h.  */
22783
22784 #include <time.h>
22785
22786 int
22787 main ()
22788 {
22789  ctime_r(NULL, NULL)
22790   ;
22791   return 0;
22792 }
22793 _ACEOF
22794 if ac_fn_c_try_link "$LINENO"; then :
22795
22796
22797 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22798
22799                 ctimerstyle="POSIX"
22800
22801 fi
22802 rm -f core conftest.err conftest.$ac_objext \
22803     conftest$ac_exeext conftest.$ac_ext
22804 fi
22805
22806 if test "x$ctimerstyle" = "x"; then
22807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22808 $as_echo "none!  It must not exist, here." >&6; }
22809 else
22810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22811 $as_echo "${ctimerstyle}-style" >&6; }
22812 fi
22813
22814 HOSTINFO=$host
22815
22816
22817 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22818
22819 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22820
22821 fi
22822
22823
22824 top_builddir=`pwd`
22825 export top_builddir
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22827 $as_echo "top_builddir=$top_builddir" >&6; }
22828
22829
22830
22831
22832
22833 mysubdirs="$LIBLTDLPATH"
22834 if test "x$EXPERIMENTAL" = "xyes"; then
22835   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22836     mysubdirs=`echo $mysubdirs $bar`
22837 else
22838         for bar in `cat "${srcdir}"/src/modules/stable`; do
22839     if test -f "${srcdir}"/src/modules/$bar/configure; then
22840       mysubdirs="$mysubdirs src/modules/$bar"
22841     fi
22842   done
22843 fi
22844
22845 if test "x$EXPERIMENTAL" = "xyes"; then
22846   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22847     MODULES="$MODULES $foo"
22848   done
22849 else
22850             for foo in `cat "${srcdir}"/src/modules/stable`; do
22851     MODULES="$MODULES $foo"
22852    done
22853 fi
22854
22855
22856
22857 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22858
22859
22860
22861
22862 ac_config_commands="$ac_config_commands stamp-h"
22863
22864 ac_config_commands="$ac_config_commands build-radpaths-h"
22865
22866 ac_config_commands="$ac_config_commands main-chmod"
22867
22868 ac_config_commands="$ac_config_commands scripts-chmod"
22869
22870
22871
22872
22873
22874 USE_SHARED_LIBS=$enable_shared
22875
22876 USE_STATIC_LIBS=$enable_static
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887   unset ac_cv_env_LIBS_set
22888   unset ac_cv_env_LIBS_value
22889
22890   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"
22891
22892 cat >confcache <<\_ACEOF
22893 # This file is a shell script that caches the results of configure
22894 # tests run on this system so they can be shared between configure
22895 # scripts and configure runs, see configure's option --config-cache.
22896 # It is not useful on other systems.  If it contains results you don't
22897 # want to keep, you may remove or edit it.
22898 #
22899 # config.status only pays attention to the cache file if you give it
22900 # the --recheck option to rerun configure.
22901 #
22902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22904 # following values.
22905
22906 _ACEOF
22907
22908 # The following way of writing the cache mishandles newlines in values,
22909 # but we know of no workaround that is simple, portable, and efficient.
22910 # So, we kill variables containing newlines.
22911 # Ultrix sh set writes to stderr and can't be redirected directly,
22912 # and sets the high bit in the cache file unless we assign to the vars.
22913 (
22914   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22915     eval ac_val=\$$ac_var
22916     case $ac_val in #(
22917     *${as_nl}*)
22918       case $ac_var in #(
22919       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22921       esac
22922       case $ac_var in #(
22923       _ | IFS | as_nl) ;; #(
22924       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22925       *) { eval $ac_var=; unset $ac_var;} ;;
22926       esac ;;
22927     esac
22928   done
22929
22930   (set) 2>&1 |
22931     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22932     *${as_nl}ac_space=\ *)
22933       # `set' does not quote correctly, so add quotes: double-quote
22934       # substitution turns \\\\ into \\, and sed turns \\ into \.
22935       sed -n \
22936         "s/'/'\\\\''/g;
22937           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22938       ;; #(
22939     *)
22940       # `set' quotes correctly as required by POSIX, so do not add quotes.
22941       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22942       ;;
22943     esac |
22944     sort
22945 ) |
22946   sed '
22947      /^ac_cv_env_/b end
22948      t clear
22949      :clear
22950      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22951      t end
22952      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22953      :end' >>confcache
22954 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22955   if test -w "$cache_file"; then
22956     if test "x$cache_file" != "x/dev/null"; then
22957       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22958 $as_echo "$as_me: updating cache $cache_file" >&6;}
22959       if test ! -f "$cache_file" || test -h "$cache_file"; then
22960         cat confcache >"$cache_file"
22961       else
22962         case $cache_file in #(
22963         */* | ?:*)
22964           mv -f confcache "$cache_file"$$ &&
22965           mv -f "$cache_file"$$ "$cache_file" ;; #(
22966         *)
22967           mv -f confcache "$cache_file" ;;
22968         esac
22969       fi
22970     fi
22971   else
22972     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22973 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22974   fi
22975 fi
22976 rm -f confcache
22977
22978 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22979 # Let make expand exec_prefix.
22980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22981
22982 DEFS=-DHAVE_CONFIG_H
22983
22984 ac_libobjs=
22985 ac_ltlibobjs=
22986 U=
22987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22988   # 1. Remove the extension, and $U if already installed.
22989   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22990   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22991   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22992   #    will be set to the directory where LIBOBJS objects are built.
22993   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22994   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22995 done
22996 LIBOBJS=$ac_libobjs
22997
22998 LTLIBOBJS=$ac_ltlibobjs
22999
23000
23001
23002
23003 : "${CONFIG_STATUS=./config.status}"
23004 ac_write_fail=0
23005 ac_clean_files_save=$ac_clean_files
23006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23008 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23009 as_write_fail=0
23010 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23011 #! $SHELL
23012 # Generated by $as_me.
23013 # Run this file to recreate the current configuration.
23014 # Compiler output produced by configure, useful for debugging
23015 # configure, is in config.log if it exists.
23016
23017 debug=false
23018 ac_cs_recheck=false
23019 ac_cs_silent=false
23020
23021 SHELL=\${CONFIG_SHELL-$SHELL}
23022 export SHELL
23023 _ASEOF
23024 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23025 ## -------------------- ##
23026 ## M4sh Initialization. ##
23027 ## -------------------- ##
23028
23029 # Be more Bourne compatible
23030 DUALCASE=1; export DUALCASE # for MKS sh
23031 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23032   emulate sh
23033   NULLCMD=:
23034   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23035   # is contrary to our usage.  Disable this feature.
23036   alias -g '${1+"$@"}'='"$@"'
23037   setopt NO_GLOB_SUBST
23038 else
23039   case `(set -o) 2>/dev/null` in #(
23040   *posix*) :
23041     set -o posix ;; #(
23042   *) :
23043      ;;
23044 esac
23045 fi
23046
23047
23048 as_nl='
23049 '
23050 export as_nl
23051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23055 # Prefer a ksh shell builtin over an external printf program on Solaris,
23056 # but without wasting forks for bash or zsh.
23057 if test -z "$BASH_VERSION$ZSH_VERSION" \
23058     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23059   as_echo='print -r --'
23060   as_echo_n='print -rn --'
23061 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23062   as_echo='printf %s\n'
23063   as_echo_n='printf %s'
23064 else
23065   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23066     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23067     as_echo_n='/usr/ucb/echo -n'
23068   else
23069     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23070     as_echo_n_body='eval
23071       arg=$1;
23072       case $arg in #(
23073       *"$as_nl"*)
23074         expr "X$arg" : "X\\(.*\\)$as_nl";
23075         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23076       esac;
23077       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23078     '
23079     export as_echo_n_body
23080     as_echo_n='sh -c $as_echo_n_body as_echo'
23081   fi
23082   export as_echo_body
23083   as_echo='sh -c $as_echo_body as_echo'
23084 fi
23085
23086 # The user is always right.
23087 if test "${PATH_SEPARATOR+set}" != set; then
23088   PATH_SEPARATOR=:
23089   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23090     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23091       PATH_SEPARATOR=';'
23092   }
23093 fi
23094
23095
23096 # IFS
23097 # We need space, tab and new line, in precisely that order.  Quoting is
23098 # there to prevent editors from complaining about space-tab.
23099 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23100 # splitting by setting IFS to empty value.)
23101 IFS=" ""        $as_nl"
23102
23103 # Find who we are.  Look in the path if we contain no directory separator.
23104 as_myself=
23105 case $0 in #((
23106   *[\\/]* ) as_myself=$0 ;;
23107   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23108 for as_dir in $PATH
23109 do
23110   IFS=$as_save_IFS
23111   test -z "$as_dir" && as_dir=.
23112     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23113   done
23114 IFS=$as_save_IFS
23115
23116      ;;
23117 esac
23118 # We did not find ourselves, most probably we were run as `sh COMMAND'
23119 # in which case we are not to be found in the path.
23120 if test "x$as_myself" = x; then
23121   as_myself=$0
23122 fi
23123 if test ! -f "$as_myself"; then
23124   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23125   exit 1
23126 fi
23127
23128 # Unset variables that we do not need and which cause bugs (e.g. in
23129 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23130 # suppresses any "Segmentation fault" message there.  '((' could
23131 # trigger a bug in pdksh 5.2.14.
23132 for as_var in BASH_ENV ENV MAIL MAILPATH
23133 do eval test x\${$as_var+set} = xset \
23134   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23135 done
23136 PS1='$ '
23137 PS2='> '
23138 PS4='+ '
23139
23140 # NLS nuisances.
23141 LC_ALL=C
23142 export LC_ALL
23143 LANGUAGE=C
23144 export LANGUAGE
23145
23146 # CDPATH.
23147 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23148
23149
23150 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23151 # ----------------------------------------
23152 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23153 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23154 # script with STATUS, using 1 if that was 0.
23155 as_fn_error ()
23156 {
23157   as_status=$1; test $as_status -eq 0 && as_status=1
23158   if test "$4"; then
23159     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23160     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23161   fi
23162   $as_echo "$as_me: error: $2" >&2
23163   as_fn_exit $as_status
23164 } # as_fn_error
23165
23166
23167 # as_fn_set_status STATUS
23168 # -----------------------
23169 # Set $? to STATUS, without forking.
23170 as_fn_set_status ()
23171 {
23172   return $1
23173 } # as_fn_set_status
23174
23175 # as_fn_exit STATUS
23176 # -----------------
23177 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23178 as_fn_exit ()
23179 {
23180   set +e
23181   as_fn_set_status $1
23182   exit $1
23183 } # as_fn_exit
23184
23185 # as_fn_unset VAR
23186 # ---------------
23187 # Portably unset VAR.
23188 as_fn_unset ()
23189 {
23190   { eval $1=; unset $1;}
23191 }
23192 as_unset=as_fn_unset
23193 # as_fn_append VAR VALUE
23194 # ----------------------
23195 # Append the text in VALUE to the end of the definition contained in VAR. Take
23196 # advantage of any shell optimizations that allow amortized linear growth over
23197 # repeated appends, instead of the typical quadratic growth present in naive
23198 # implementations.
23199 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23200   eval 'as_fn_append ()
23201   {
23202     eval $1+=\$2
23203   }'
23204 else
23205   as_fn_append ()
23206   {
23207     eval $1=\$$1\$2
23208   }
23209 fi # as_fn_append
23210
23211 # as_fn_arith ARG...
23212 # ------------------
23213 # Perform arithmetic evaluation on the ARGs, and store the result in the
23214 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23215 # must be portable across $(()) and expr.
23216 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23217   eval 'as_fn_arith ()
23218   {
23219     as_val=$(( $* ))
23220   }'
23221 else
23222   as_fn_arith ()
23223   {
23224     as_val=`expr "$@" || test $? -eq 1`
23225   }
23226 fi # as_fn_arith
23227
23228
23229 if expr a : '\(a\)' >/dev/null 2>&1 &&
23230    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23231   as_expr=expr
23232 else
23233   as_expr=false
23234 fi
23235
23236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23237   as_basename=basename
23238 else
23239   as_basename=false
23240 fi
23241
23242 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23243   as_dirname=dirname
23244 else
23245   as_dirname=false
23246 fi
23247
23248 as_me=`$as_basename -- "$0" ||
23249 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23250          X"$0" : 'X\(//\)$' \| \
23251          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23252 $as_echo X/"$0" |
23253     sed '/^.*\/\([^/][^/]*\)\/*$/{
23254             s//\1/
23255             q
23256           }
23257           /^X\/\(\/\/\)$/{
23258             s//\1/
23259             q
23260           }
23261           /^X\/\(\/\).*/{
23262             s//\1/
23263             q
23264           }
23265           s/.*/./; q'`
23266
23267 # Avoid depending upon Character Ranges.
23268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23271 as_cr_digits='0123456789'
23272 as_cr_alnum=$as_cr_Letters$as_cr_digits
23273
23274 ECHO_C= ECHO_N= ECHO_T=
23275 case `echo -n x` in #(((((
23276 -n*)
23277   case `echo 'xy\c'` in
23278   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23279   xy)  ECHO_C='\c';;
23280   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23281        ECHO_T=' ';;
23282   esac;;
23283 *)
23284   ECHO_N='-n';;
23285 esac
23286
23287 rm -f conf$$ conf$$.exe conf$$.file
23288 if test -d conf$$.dir; then
23289   rm -f conf$$.dir/conf$$.file
23290 else
23291   rm -f conf$$.dir
23292   mkdir conf$$.dir 2>/dev/null
23293 fi
23294 if (echo >conf$$.file) 2>/dev/null; then
23295   if ln -s conf$$.file conf$$ 2>/dev/null; then
23296     as_ln_s='ln -s'
23297     # ... but there are two gotchas:
23298     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23299     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23300     # In both cases, we have to default to `cp -pR'.
23301     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23302       as_ln_s='cp -pR'
23303   elif ln conf$$.file conf$$ 2>/dev/null; then
23304     as_ln_s=ln
23305   else
23306     as_ln_s='cp -pR'
23307   fi
23308 else
23309   as_ln_s='cp -pR'
23310 fi
23311 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23312 rmdir conf$$.dir 2>/dev/null
23313
23314
23315 # as_fn_mkdir_p
23316 # -------------
23317 # Create "$as_dir" as a directory, including parents if necessary.
23318 as_fn_mkdir_p ()
23319 {
23320
23321   case $as_dir in #(
23322   -*) as_dir=./$as_dir;;
23323   esac
23324   test -d "$as_dir" || eval $as_mkdir_p || {
23325     as_dirs=
23326     while :; do
23327       case $as_dir in #(
23328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23329       *) as_qdir=$as_dir;;
23330       esac
23331       as_dirs="'$as_qdir' $as_dirs"
23332       as_dir=`$as_dirname -- "$as_dir" ||
23333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23334          X"$as_dir" : 'X\(//\)[^/]' \| \
23335          X"$as_dir" : 'X\(//\)$' \| \
23336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23337 $as_echo X"$as_dir" |
23338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23339             s//\1/
23340             q
23341           }
23342           /^X\(\/\/\)[^/].*/{
23343             s//\1/
23344             q
23345           }
23346           /^X\(\/\/\)$/{
23347             s//\1/
23348             q
23349           }
23350           /^X\(\/\).*/{
23351             s//\1/
23352             q
23353           }
23354           s/.*/./; q'`
23355       test -d "$as_dir" && break
23356     done
23357     test -z "$as_dirs" || eval "mkdir $as_dirs"
23358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23359
23360
23361 } # as_fn_mkdir_p
23362 if mkdir -p . 2>/dev/null; then
23363   as_mkdir_p='mkdir -p "$as_dir"'
23364 else
23365   test -d ./-p && rmdir ./-p
23366   as_mkdir_p=false
23367 fi
23368
23369
23370 # as_fn_executable_p FILE
23371 # -----------------------
23372 # Test if FILE is an executable regular file.
23373 as_fn_executable_p ()
23374 {
23375   test -f "$1" && test -x "$1"
23376 } # as_fn_executable_p
23377 as_test_x='test -x'
23378 as_executable_p=as_fn_executable_p
23379
23380 # Sed expression to map a string onto a valid CPP name.
23381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23382
23383 # Sed expression to map a string onto a valid variable name.
23384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23385
23386
23387 exec 6>&1
23388 ## ----------------------------------- ##
23389 ## Main body of $CONFIG_STATUS script. ##
23390 ## ----------------------------------- ##
23391 _ASEOF
23392 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23393
23394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23395 # Save the log message, to keep $0 and so on meaningful, and to
23396 # report actual input values of CONFIG_FILES etc. instead of their
23397 # values after options handling.
23398 ac_log="
23399 This file was extended by $as_me, which was
23400 generated by GNU Autoconf 2.69.  Invocation command line was
23401
23402   CONFIG_FILES    = $CONFIG_FILES
23403   CONFIG_HEADERS  = $CONFIG_HEADERS
23404   CONFIG_LINKS    = $CONFIG_LINKS
23405   CONFIG_COMMANDS = $CONFIG_COMMANDS
23406   $ $0 $@
23407
23408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23409 "
23410
23411 _ACEOF
23412
23413 case $ac_config_files in *"
23414 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23415 esac
23416
23417 case $ac_config_headers in *"
23418 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23419 esac
23420
23421
23422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23423 # Files that config.status was made for.
23424 config_files="$ac_config_files"
23425 config_headers="$ac_config_headers"
23426 config_commands="$ac_config_commands"
23427
23428 _ACEOF
23429
23430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23431 ac_cs_usage="\
23432 \`$as_me' instantiates files and other configuration actions
23433 from templates according to the current configuration.  Unless the files
23434 and actions are specified as TAGs, all are instantiated by default.
23435
23436 Usage: $0 [OPTION]... [TAG]...
23437
23438   -h, --help       print this help, then exit
23439   -V, --version    print version number and configuration settings, then exit
23440       --config     print configuration, then exit
23441   -q, --quiet, --silent
23442                    do not print progress messages
23443   -d, --debug      don't remove temporary files
23444       --recheck    update $as_me by reconfiguring in the same conditions
23445       --file=FILE[:TEMPLATE]
23446                    instantiate the configuration file FILE
23447       --header=FILE[:TEMPLATE]
23448                    instantiate the configuration header FILE
23449
23450 Configuration files:
23451 $config_files
23452
23453 Configuration headers:
23454 $config_headers
23455
23456 Configuration commands:
23457 $config_commands
23458
23459 Report bugs to the package provider."
23460
23461 _ACEOF
23462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23463 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23464 ac_cs_version="\\
23465 config.status
23466 configured by $0, generated by GNU Autoconf 2.69,
23467   with options \\"\$ac_cs_config\\"
23468
23469 Copyright (C) 2012 Free Software Foundation, Inc.
23470 This config.status script is free software; the Free Software Foundation
23471 gives unlimited permission to copy, distribute and modify it."
23472
23473 ac_pwd='$ac_pwd'
23474 srcdir='$srcdir'
23475 test -n "\$AWK" || AWK=awk
23476 _ACEOF
23477
23478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23479 # The default lists apply if the user does not specify any file.
23480 ac_need_defaults=:
23481 while test $# != 0
23482 do
23483   case $1 in
23484   --*=?*)
23485     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23486     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23487     ac_shift=:
23488     ;;
23489   --*=)
23490     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23491     ac_optarg=
23492     ac_shift=:
23493     ;;
23494   *)
23495     ac_option=$1
23496     ac_optarg=$2
23497     ac_shift=shift
23498     ;;
23499   esac
23500
23501   case $ac_option in
23502   # Handling of the options.
23503   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23504     ac_cs_recheck=: ;;
23505   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23506     $as_echo "$ac_cs_version"; exit ;;
23507   --config | --confi | --conf | --con | --co | --c )
23508     $as_echo "$ac_cs_config"; exit ;;
23509   --debug | --debu | --deb | --de | --d | -d )
23510     debug=: ;;
23511   --file | --fil | --fi | --f )
23512     $ac_shift
23513     case $ac_optarg in
23514     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23515     '') as_fn_error $? "missing file argument" ;;
23516     esac
23517     as_fn_append CONFIG_FILES " '$ac_optarg'"
23518     ac_need_defaults=false;;
23519   --header | --heade | --head | --hea )
23520     $ac_shift
23521     case $ac_optarg in
23522     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23523     esac
23524     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23525     ac_need_defaults=false;;
23526   --he | --h)
23527     # Conflict between --help and --header
23528     as_fn_error $? "ambiguous option: \`$1'
23529 Try \`$0 --help' for more information.";;
23530   --help | --hel | -h )
23531     $as_echo "$ac_cs_usage"; exit ;;
23532   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23533   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23534     ac_cs_silent=: ;;
23535
23536   # This is an error.
23537   -*) as_fn_error $? "unrecognized option: \`$1'
23538 Try \`$0 --help' for more information." ;;
23539
23540   *) as_fn_append ac_config_targets " $1"
23541      ac_need_defaults=false ;;
23542
23543   esac
23544   shift
23545 done
23546
23547 ac_configure_extra_args=
23548
23549 if $ac_cs_silent; then
23550   exec 6>/dev/null
23551   ac_configure_extra_args="$ac_configure_extra_args --silent"
23552 fi
23553
23554 _ACEOF
23555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23556 if \$ac_cs_recheck; then
23557   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23558   shift
23559   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23560   CONFIG_SHELL='$SHELL'
23561   export CONFIG_SHELL
23562   exec "\$@"
23563 fi
23564
23565 _ACEOF
23566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23567 exec 5>>config.log
23568 {
23569   echo
23570   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23571 ## Running $as_me. ##
23572 _ASBOX
23573   $as_echo "$ac_log"
23574 } >&5
23575
23576 _ACEOF
23577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23578 _ACEOF
23579
23580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23581
23582 # Handling of arguments.
23583 for ac_config_target in $ac_config_targets
23584 do
23585   case $ac_config_target in
23586     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23587     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23588     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23589     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23590     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23591     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23592     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23593     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23594     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23595     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23596     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23597     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23598     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23599     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23600     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23601     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23602     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23603     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23604     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23605
23606   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23607   esac
23608 done
23609
23610
23611 # If the user did not use the arguments to specify the items to instantiate,
23612 # then the envvar interface is used.  Set only those that are not.
23613 # We use the long form for the default assignment because of an extremely
23614 # bizarre bug on SunOS 4.1.3.
23615 if $ac_need_defaults; then
23616   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23617   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23618   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23619 fi
23620
23621 # Have a temporary directory for convenience.  Make it in the build tree
23622 # simply because there is no reason against having it here, and in addition,
23623 # creating and moving files from /tmp can sometimes cause problems.
23624 # Hook for its removal unless debugging.
23625 # Note that there is a small window in which the directory will not be cleaned:
23626 # after its creation but before its name has been assigned to `$tmp'.
23627 $debug ||
23628 {
23629   tmp= ac_tmp=
23630   trap 'exit_status=$?
23631   : "${ac_tmp:=$tmp}"
23632   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23633 ' 0
23634   trap 'as_fn_exit 1' 1 2 13 15
23635 }
23636 # Create a (secure) tmp directory for tmp files.
23637
23638 {
23639   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23640   test -d "$tmp"
23641 }  ||
23642 {
23643   tmp=./conf$$-$RANDOM
23644   (umask 077 && mkdir "$tmp")
23645 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23646 ac_tmp=$tmp
23647
23648 # Set up the scripts for CONFIG_FILES section.
23649 # No need to generate them if there are no CONFIG_FILES.
23650 # This happens for instance with `./config.status config.h'.
23651 if test -n "$CONFIG_FILES"; then
23652
23653
23654 ac_cr=`echo X | tr X '\015'`
23655 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23656 # But we know of no other shell where ac_cr would be empty at this
23657 # point, so we can use a bashism as a fallback.
23658 if test "x$ac_cr" = x; then
23659   eval ac_cr=\$\'\\r\'
23660 fi
23661 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23662 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23663   ac_cs_awk_cr='\\r'
23664 else
23665   ac_cs_awk_cr=$ac_cr
23666 fi
23667
23668 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23669 _ACEOF
23670
23671
23672 {
23673   echo "cat >conf$$subs.awk <<_ACEOF" &&
23674   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23675   echo "_ACEOF"
23676 } >conf$$subs.sh ||
23677   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23678 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23679 ac_delim='%!_!# '
23680 for ac_last_try in false false false false false :; do
23681   . ./conf$$subs.sh ||
23682     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23683
23684   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23685   if test $ac_delim_n = $ac_delim_num; then
23686     break
23687   elif $ac_last_try; then
23688     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23689   else
23690     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23691   fi
23692 done
23693 rm -f conf$$subs.sh
23694
23695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23696 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23697 _ACEOF
23698 sed -n '
23699 h
23700 s/^/S["/; s/!.*/"]=/
23701 p
23702 g
23703 s/^[^!]*!//
23704 :repl
23705 t repl
23706 s/'"$ac_delim"'$//
23707 t delim
23708 :nl
23709 h
23710 s/\(.\{148\}\)..*/\1/
23711 t more1
23712 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23713 p
23714 n
23715 b repl
23716 :more1
23717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23718 p
23719 g
23720 s/.\{148\}//
23721 t nl
23722 :delim
23723 h
23724 s/\(.\{148\}\)..*/\1/
23725 t more2
23726 s/["\\]/\\&/g; s/^/"/; s/$/"/
23727 p
23728 b
23729 :more2
23730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23731 p
23732 g
23733 s/.\{148\}//
23734 t delim
23735 ' <conf$$subs.awk | sed '
23736 /^[^""]/{
23737   N
23738   s/\n//
23739 }
23740 ' >>$CONFIG_STATUS || ac_write_fail=1
23741 rm -f conf$$subs.awk
23742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23743 _ACAWK
23744 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23745   for (key in S) S_is_set[key] = 1
23746   FS = "\a"
23747
23748 }
23749 {
23750   line = $ 0
23751   nfields = split(line, field, "@")
23752   substed = 0
23753   len = length(field[1])
23754   for (i = 2; i < nfields; i++) {
23755     key = field[i]
23756     keylen = length(key)
23757     if (S_is_set[key]) {
23758       value = S[key]
23759       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23760       len += length(value) + length(field[++i])
23761       substed = 1
23762     } else
23763       len += 1 + keylen
23764   }
23765
23766   print line
23767 }
23768
23769 _ACAWK
23770 _ACEOF
23771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23772 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23773   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23774 else
23775   cat
23776 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23777   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23778 _ACEOF
23779
23780 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23781 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23782 # trailing colons and then remove the whole line if VPATH becomes empty
23783 # (actually we leave an empty line to preserve line numbers).
23784 if test "x$srcdir" = x.; then
23785   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23786 h
23787 s///
23788 s/^/:/
23789 s/[      ]*$/:/
23790 s/:\$(srcdir):/:/g
23791 s/:\${srcdir}:/:/g
23792 s/:@srcdir@:/:/g
23793 s/^:*//
23794 s/:*$//
23795 x
23796 s/\(=[   ]*\).*/\1/
23797 G
23798 s/\n//
23799 s/^[^=]*=[       ]*$//
23800 }'
23801 fi
23802
23803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23804 fi # test -n "$CONFIG_FILES"
23805
23806 # Set up the scripts for CONFIG_HEADERS section.
23807 # No need to generate them if there are no CONFIG_HEADERS.
23808 # This happens for instance with `./config.status Makefile'.
23809 if test -n "$CONFIG_HEADERS"; then
23810 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23811 BEGIN {
23812 _ACEOF
23813
23814 # Transform confdefs.h into an awk script `defines.awk', embedded as
23815 # here-document in config.status, that substitutes the proper values into
23816 # config.h.in to produce config.h.
23817
23818 # Create a delimiter string that does not exist in confdefs.h, to ease
23819 # handling of long lines.
23820 ac_delim='%!_!# '
23821 for ac_last_try in false false :; do
23822   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23823   if test -z "$ac_tt"; then
23824     break
23825   elif $ac_last_try; then
23826     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23827   else
23828     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23829   fi
23830 done
23831
23832 # For the awk script, D is an array of macro values keyed by name,
23833 # likewise P contains macro parameters if any.  Preserve backslash
23834 # newline sequences.
23835
23836 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23837 sed -n '
23838 s/.\{148\}/&'"$ac_delim"'/g
23839 t rset
23840 :rset
23841 s/^[     ]*#[    ]*define[       ][      ]*/ /
23842 t def
23843 d
23844 :def
23845 s/\\$//
23846 t bsnl
23847 s/["\\]/\\&/g
23848 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23849 D["\1"]=" \3"/p
23850 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23851 d
23852 :bsnl
23853 s/["\\]/\\&/g
23854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23855 D["\1"]=" \3\\\\\\n"\\/p
23856 t cont
23857 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23858 t cont
23859 d
23860 :cont
23861 n
23862 s/.\{148\}/&'"$ac_delim"'/g
23863 t clear
23864 :clear
23865 s/\\$//
23866 t bsnlc
23867 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23868 d
23869 :bsnlc
23870 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23871 b cont
23872 ' <confdefs.h | sed '
23873 s/'"$ac_delim"'/"\\\
23874 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23875
23876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23877   for (key in D) D_is_set[key] = 1
23878   FS = "\a"
23879 }
23880 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23881   line = \$ 0
23882   split(line, arg, " ")
23883   if (arg[1] == "#") {
23884     defundef = arg[2]
23885     mac1 = arg[3]
23886   } else {
23887     defundef = substr(arg[1], 2)
23888     mac1 = arg[2]
23889   }
23890   split(mac1, mac2, "(") #)
23891   macro = mac2[1]
23892   prefix = substr(line, 1, index(line, defundef) - 1)
23893   if (D_is_set[macro]) {
23894     # Preserve the white space surrounding the "#".
23895     print prefix "define", macro P[macro] D[macro]
23896     next
23897   } else {
23898     # Replace #undef with comments.  This is necessary, for example,
23899     # in the case of _POSIX_SOURCE, which is predefined and required
23900     # on some systems where configure will not decide to define it.
23901     if (defundef == "undef") {
23902       print "/*", prefix defundef, macro, "*/"
23903       next
23904     }
23905   }
23906 }
23907 { print }
23908 _ACAWK
23909 _ACEOF
23910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23911   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23912 fi # test -n "$CONFIG_HEADERS"
23913
23914
23915 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23916 shift
23917 for ac_tag
23918 do
23919   case $ac_tag in
23920   :[FHLC]) ac_mode=$ac_tag; continue;;
23921   esac
23922   case $ac_mode$ac_tag in
23923   :[FHL]*:*);;
23924   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23925   :[FH]-) ac_tag=-:-;;
23926   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23927   esac
23928   ac_save_IFS=$IFS
23929   IFS=:
23930   set x $ac_tag
23931   IFS=$ac_save_IFS
23932   shift
23933   ac_file=$1
23934   shift
23935
23936   case $ac_mode in
23937   :L) ac_source=$1;;
23938   :[FH])
23939     ac_file_inputs=
23940     for ac_f
23941     do
23942       case $ac_f in
23943       -) ac_f="$ac_tmp/stdin";;
23944       *) # Look for the file first in the build tree, then in the source tree
23945          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23946          # because $ac_f cannot contain `:'.
23947          test -f "$ac_f" ||
23948            case $ac_f in
23949            [\\/$]*) false;;
23950            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23951            esac ||
23952            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23953       esac
23954       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23955       as_fn_append ac_file_inputs " '$ac_f'"
23956     done
23957
23958     # Let's still pretend it is `configure' which instantiates (i.e., don't
23959     # use $as_me), people would be surprised to read:
23960     #    /* config.h.  Generated by config.status.  */
23961     configure_input='Generated from '`
23962           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23963         `' by configure.'
23964     if test x"$ac_file" != x-; then
23965       configure_input="$ac_file.  $configure_input"
23966       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23967 $as_echo "$as_me: creating $ac_file" >&6;}
23968     fi
23969     # Neutralize special characters interpreted by sed in replacement strings.
23970     case $configure_input in #(
23971     *\&* | *\|* | *\\* )
23972        ac_sed_conf_input=`$as_echo "$configure_input" |
23973        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23974     *) ac_sed_conf_input=$configure_input;;
23975     esac
23976
23977     case $ac_tag in
23978     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23979       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23980     esac
23981     ;;
23982   esac
23983
23984   ac_dir=`$as_dirname -- "$ac_file" ||
23985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23986          X"$ac_file" : 'X\(//\)[^/]' \| \
23987          X"$ac_file" : 'X\(//\)$' \| \
23988          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23989 $as_echo X"$ac_file" |
23990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23991             s//\1/
23992             q
23993           }
23994           /^X\(\/\/\)[^/].*/{
23995             s//\1/
23996             q
23997           }
23998           /^X\(\/\/\)$/{
23999             s//\1/
24000             q
24001           }
24002           /^X\(\/\).*/{
24003             s//\1/
24004             q
24005           }
24006           s/.*/./; q'`
24007   as_dir="$ac_dir"; as_fn_mkdir_p
24008   ac_builddir=.
24009
24010 case "$ac_dir" in
24011 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24012 *)
24013   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24014   # A ".." for each directory in $ac_dir_suffix.
24015   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24016   case $ac_top_builddir_sub in
24017   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24018   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24019   esac ;;
24020 esac
24021 ac_abs_top_builddir=$ac_pwd
24022 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24023 # for backward compatibility:
24024 ac_top_builddir=$ac_top_build_prefix
24025
24026 case $srcdir in
24027   .)  # We are building in place.
24028     ac_srcdir=.
24029     ac_top_srcdir=$ac_top_builddir_sub
24030     ac_abs_top_srcdir=$ac_pwd ;;
24031   [\\/]* | ?:[\\/]* )  # Absolute name.
24032     ac_srcdir=$srcdir$ac_dir_suffix;
24033     ac_top_srcdir=$srcdir
24034     ac_abs_top_srcdir=$srcdir ;;
24035   *) # Relative name.
24036     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24037     ac_top_srcdir=$ac_top_build_prefix$srcdir
24038     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24039 esac
24040 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24041
24042
24043   case $ac_mode in
24044   :F)
24045   #
24046   # CONFIG_FILE
24047   #
24048
24049 _ACEOF
24050
24051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24052 # If the template does not know about datarootdir, expand it.
24053 # FIXME: This hack should be removed a few years after 2.60.
24054 ac_datarootdir_hack=; ac_datarootdir_seen=
24055 ac_sed_dataroot='
24056 /datarootdir/ {
24057   p
24058   q
24059 }
24060 /@datadir@/p
24061 /@docdir@/p
24062 /@infodir@/p
24063 /@localedir@/p
24064 /@mandir@/p'
24065 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24066 *datarootdir*) ac_datarootdir_seen=yes;;
24067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24068   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24069 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24070 _ACEOF
24071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24072   ac_datarootdir_hack='
24073   s&@datadir@&$datadir&g
24074   s&@docdir@&$docdir&g
24075   s&@infodir@&$infodir&g
24076   s&@localedir@&$localedir&g
24077   s&@mandir@&$mandir&g
24078   s&\\\${datarootdir}&$datarootdir&g' ;;
24079 esac
24080 _ACEOF
24081
24082 # Neutralize VPATH when `$srcdir' = `.'.
24083 # Shell code in configure.ac might set extrasub.
24084 # FIXME: do we really want to maintain this feature?
24085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24086 ac_sed_extra="$ac_vpsub
24087 $extrasub
24088 _ACEOF
24089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24090 :t
24091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24092 s|@configure_input@|$ac_sed_conf_input|;t t
24093 s&@top_builddir@&$ac_top_builddir_sub&;t t
24094 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24095 s&@srcdir@&$ac_srcdir&;t t
24096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24097 s&@top_srcdir@&$ac_top_srcdir&;t t
24098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24099 s&@builddir@&$ac_builddir&;t t
24100 s&@abs_builddir@&$ac_abs_builddir&;t t
24101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24102 $ac_datarootdir_hack
24103 "
24104 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24105   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24106
24107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24108   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24109   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
24110       "$ac_tmp/out"`; test -z "$ac_out"; } &&
24111   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24112 which seems to be undefined.  Please make sure it is defined" >&5
24113 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24114 which seems to be undefined.  Please make sure it is defined" >&2;}
24115
24116   rm -f "$ac_tmp/stdin"
24117   case $ac_file in
24118   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24119   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24120   esac \
24121   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24122  ;;
24123   :H)
24124   #
24125   # CONFIG_HEADER
24126   #
24127   if test x"$ac_file" != x-; then
24128     {
24129       $as_echo "/* $configure_input  */" \
24130       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24131     } >"$ac_tmp/config.h" \
24132       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24133     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24134       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24135 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24136     else
24137       rm -f "$ac_file"
24138       mv "$ac_tmp/config.h" "$ac_file" \
24139         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24140     fi
24141   else
24142     $as_echo "/* $configure_input  */" \
24143       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24144       || as_fn_error $? "could not create -" "$LINENO" 5
24145   fi
24146  ;;
24147
24148   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24149 $as_echo "$as_me: executing $ac_file commands" >&6;}
24150  ;;
24151   esac
24152
24153
24154   case $ac_file$ac_mode in
24155     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
24156     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
24157     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
24158     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
24159
24160   esac
24161 done # for ac_tag
24162
24163
24164 as_fn_exit 0
24165 _ACEOF
24166 ac_clean_files=$ac_clean_files_save
24167
24168 test $ac_write_fail = 0 ||
24169   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24170
24171
24172 # configure is writing to config.log, and then calls config.status.
24173 # config.status does its own redirection, appending to config.log.
24174 # Unfortunately, on DOS this fails, as config.log is still kept open
24175 # by configure, so config.status won't be able to write to it; its
24176 # output is simply discarded.  So we exec the FD to /dev/null,
24177 # effectively closing config.log, so it can be properly (re)opened and
24178 # appended to by config.status.  When coming back to configure, we
24179 # need to make the FD available again.
24180 if test "$no_create" != yes; then
24181   ac_cs_success=:
24182   ac_config_status_args=
24183   test "$silent" = yes &&
24184     ac_config_status_args="$ac_config_status_args --quiet"
24185   exec 5>/dev/null
24186   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24187   exec 5>>config.log
24188   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24189   # would make configure fail if this is the last instruction.
24190   $ac_cs_success || as_fn_exit 1
24191 fi
24192
24193 #
24194 # CONFIG_SUBDIRS section.
24195 #
24196 if test "$no_recursion" != yes; then
24197
24198   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24199   # so they do not pile up.
24200   ac_sub_configure_args=
24201   ac_prev=
24202   eval "set x $ac_configure_args"
24203   shift
24204   for ac_arg
24205   do
24206     if test -n "$ac_prev"; then
24207       ac_prev=
24208       continue
24209     fi
24210     case $ac_arg in
24211     -cache-file | --cache-file | --cache-fil | --cache-fi \
24212     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24213       ac_prev=cache_file ;;
24214     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24215     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24216     | --c=*)
24217       ;;
24218     --config-cache | -C)
24219       ;;
24220     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24221       ac_prev=srcdir ;;
24222     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24223       ;;
24224     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24225       ac_prev=prefix ;;
24226     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24227       ;;
24228     --disable-option-checking)
24229       ;;
24230     *)
24231       case $ac_arg in
24232       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24233       esac
24234       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24235     esac
24236   done
24237
24238   # Always prepend --prefix to ensure using the same prefix
24239   # in subdir configurations.
24240   ac_arg="--prefix=$prefix"
24241   case $ac_arg in
24242   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24243   esac
24244   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24245
24246   # Pass --silent
24247   if test "$silent" = yes; then
24248     ac_sub_configure_args="--silent $ac_sub_configure_args"
24249   fi
24250
24251   # Always prepend --disable-option-checking to silence warnings, since
24252   # different subdirs can have different --enable and --with options.
24253   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24254
24255   ac_popdir=`pwd`
24256   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24257
24258     # Do not complain, so a configure script can configure whichever
24259     # parts of a large source tree are present.
24260     test -d "$srcdir/$ac_dir" || continue
24261
24262     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24263     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24264     $as_echo "$ac_msg" >&6
24265     as_dir="$ac_dir"; as_fn_mkdir_p
24266     ac_builddir=.
24267
24268 case "$ac_dir" in
24269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24270 *)
24271   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24272   # A ".." for each directory in $ac_dir_suffix.
24273   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24274   case $ac_top_builddir_sub in
24275   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24276   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24277   esac ;;
24278 esac
24279 ac_abs_top_builddir=$ac_pwd
24280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24281 # for backward compatibility:
24282 ac_top_builddir=$ac_top_build_prefix
24283
24284 case $srcdir in
24285   .)  # We are building in place.
24286     ac_srcdir=.
24287     ac_top_srcdir=$ac_top_builddir_sub
24288     ac_abs_top_srcdir=$ac_pwd ;;
24289   [\\/]* | ?:[\\/]* )  # Absolute name.
24290     ac_srcdir=$srcdir$ac_dir_suffix;
24291     ac_top_srcdir=$srcdir
24292     ac_abs_top_srcdir=$srcdir ;;
24293   *) # Relative name.
24294     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24295     ac_top_srcdir=$ac_top_build_prefix$srcdir
24296     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24297 esac
24298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24299
24300
24301     cd "$ac_dir"
24302
24303     # Check for guested configure; otherwise get Cygnus style configure.
24304     if test -f "$ac_srcdir/configure.gnu"; then
24305       ac_sub_configure=$ac_srcdir/configure.gnu
24306     elif test -f "$ac_srcdir/configure"; then
24307       ac_sub_configure=$ac_srcdir/configure
24308     elif test -f "$ac_srcdir/configure.in"; then
24309       # This should be Cygnus configure.
24310       ac_sub_configure=$ac_aux_dir/configure
24311     else
24312       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24313 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24314       ac_sub_configure=
24315     fi
24316
24317     # The recursion is here.
24318     if test -n "$ac_sub_configure"; then
24319       # Make the cache file name correct relative to the subdirectory.
24320       case $cache_file in
24321       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24322       *) # Relative name.
24323         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24324       esac
24325
24326       { $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
24327 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24328       # The eval makes quoting arguments work.
24329       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24330            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24331         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24332     fi
24333
24334     cd "$ac_popdir"
24335   done
24336 fi
24337 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24338   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24339 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24340 fi
24341
24342