Merge remote-tracking branch 'origin/master' into debian
[radsecproxy.git] / lib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libradsec 0.0.4.dev.
4 #
5 # Report bugs to <linus+libradsec@nordu.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: linus+libradsec@nordu.net about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libradsec'
592 PACKAGE_TARNAME='libradsec'
593 PACKAGE_VERSION='0.0.4.dev'
594 PACKAGE_STRING='libradsec 0.0.4.dev'
595 PACKAGE_BUGREPORT='linus+libradsec@nordu.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="radsec.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 RS_ENABLE_TLS_PSK_FALSE
640 RS_ENABLE_TLS_PSK_TRUE
641 RS_ENABLE_TLS_FALSE
642 RS_ENABLE_TLS_TRUE
643 CPP
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 ac_ct_AR
652 AR
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 EGREP
662 GREP
663 SED
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 LIBTOOL
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_shared
755 enable_static
756 with_pic
757 enable_fast_install
758 enable_dependency_tracking
759 with_gnu_ld
760 with_sysroot
761 enable_libtool_lock
762 enable_tls
763 enable_tls_psk
764 '
765       ac_precious_vars='build_alias
766 host_alias
767 target_alias
768 CC
769 CFLAGS
770 LDFLAGS
771 LIBS
772 CPPFLAGS
773 CPP'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
797
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828   # If the previous option needs an argument, assign it.
829   if test -n "$ac_prev"; then
830     eval $ac_prev=\$ac_option
831     ac_prev=
832     continue
833   fi
834
835   case $ac_option in
836   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837   *=)   ac_optarg= ;;
838   *)    ac_optarg=yes ;;
839   esac
840
841   # Accept the important Cygnus configure options, so we can diagnose typos.
842
843   case $ac_dashdash$ac_option in
844   --)
845     ac_dashdash=yes ;;
846
847   -bindir | --bindir | --bindi | --bind | --bin | --bi)
848     ac_prev=bindir ;;
849   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850     bindir=$ac_optarg ;;
851
852   -build | --build | --buil | --bui | --bu)
853     ac_prev=build_alias ;;
854   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855     build_alias=$ac_optarg ;;
856
857   -cache-file | --cache-file | --cache-fil | --cache-fi \
858   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859     ac_prev=cache_file ;;
860   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862     cache_file=$ac_optarg ;;
863
864   --config-cache | -C)
865     cache_file=config.cache ;;
866
867   -datadir | --datadir | --datadi | --datad)
868     ac_prev=datadir ;;
869   -datadir=* | --datadir=* | --datadi=* | --datad=*)
870     datadir=$ac_optarg ;;
871
872   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873   | --dataroo | --dataro | --datar)
874     ac_prev=datarootdir ;;
875   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877     datarootdir=$ac_optarg ;;
878
879   -disable-* | --disable-*)
880     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881     # Reject names that are not valid shell variable names.
882     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883       as_fn_error $? "invalid feature name: $ac_useropt"
884     ac_useropt_orig=$ac_useropt
885     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886     case $ac_user_opts in
887       *"
888 "enable_$ac_useropt"
889 "*) ;;
890       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891          ac_unrecognized_sep=', ';;
892     esac
893     eval enable_$ac_useropt=no ;;
894
895   -docdir | --docdir | --docdi | --doc | --do)
896     ac_prev=docdir ;;
897   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898     docdir=$ac_optarg ;;
899
900   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901     ac_prev=dvidir ;;
902   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903     dvidir=$ac_optarg ;;
904
905   -enable-* | --enable-*)
906     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907     # Reject names that are not valid shell variable names.
908     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909       as_fn_error $? "invalid feature name: $ac_useropt"
910     ac_useropt_orig=$ac_useropt
911     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912     case $ac_user_opts in
913       *"
914 "enable_$ac_useropt"
915 "*) ;;
916       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917          ac_unrecognized_sep=', ';;
918     esac
919     eval enable_$ac_useropt=\$ac_optarg ;;
920
921   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923   | --exec | --exe | --ex)
924     ac_prev=exec_prefix ;;
925   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927   | --exec=* | --exe=* | --ex=*)
928     exec_prefix=$ac_optarg ;;
929
930   -gas | --gas | --ga | --g)
931     # Obsolete; use --with-gas.
932     with_gas=yes ;;
933
934   -help | --help | --hel | --he | -h)
935     ac_init_help=long ;;
936   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937     ac_init_help=recursive ;;
938   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939     ac_init_help=short ;;
940
941   -host | --host | --hos | --ho)
942     ac_prev=host_alias ;;
943   -host=* | --host=* | --hos=* | --ho=*)
944     host_alias=$ac_optarg ;;
945
946   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947     ac_prev=htmldir ;;
948   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949   | --ht=*)
950     htmldir=$ac_optarg ;;
951
952   -includedir | --includedir | --includedi | --included | --include \
953   | --includ | --inclu | --incl | --inc)
954     ac_prev=includedir ;;
955   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956   | --includ=* | --inclu=* | --incl=* | --inc=*)
957     includedir=$ac_optarg ;;
958
959   -infodir | --infodir | --infodi | --infod | --info | --inf)
960     ac_prev=infodir ;;
961   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962     infodir=$ac_optarg ;;
963
964   -libdir | --libdir | --libdi | --libd)
965     ac_prev=libdir ;;
966   -libdir=* | --libdir=* | --libdi=* | --libd=*)
967     libdir=$ac_optarg ;;
968
969   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970   | --libexe | --libex | --libe)
971     ac_prev=libexecdir ;;
972   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973   | --libexe=* | --libex=* | --libe=*)
974     libexecdir=$ac_optarg ;;
975
976   -localedir | --localedir | --localedi | --localed | --locale)
977     ac_prev=localedir ;;
978   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979     localedir=$ac_optarg ;;
980
981   -localstatedir | --localstatedir | --localstatedi | --localstated \
982   | --localstate | --localstat | --localsta | --localst | --locals)
983     ac_prev=localstatedir ;;
984   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986     localstatedir=$ac_optarg ;;
987
988   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989     ac_prev=mandir ;;
990   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991     mandir=$ac_optarg ;;
992
993   -nfp | --nfp | --nf)
994     # Obsolete; use --without-fp.
995     with_fp=no ;;
996
997   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998   | --no-cr | --no-c | -n)
999     no_create=yes ;;
1000
1001   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003     no_recursion=yes ;;
1004
1005   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007   | --oldin | --oldi | --old | --ol | --o)
1008     ac_prev=oldincludedir ;;
1009   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012     oldincludedir=$ac_optarg ;;
1013
1014   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015     ac_prev=prefix ;;
1016   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017     prefix=$ac_optarg ;;
1018
1019   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020   | --program-pre | --program-pr | --program-p)
1021     ac_prev=program_prefix ;;
1022   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024     program_prefix=$ac_optarg ;;
1025
1026   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027   | --program-suf | --program-su | --program-s)
1028     ac_prev=program_suffix ;;
1029   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031     program_suffix=$ac_optarg ;;
1032
1033   -program-transform-name | --program-transform-name \
1034   | --program-transform-nam | --program-transform-na \
1035   | --program-transform-n | --program-transform- \
1036   | --program-transform | --program-transfor \
1037   | --program-transfo | --program-transf \
1038   | --program-trans | --program-tran \
1039   | --progr-tra | --program-tr | --program-t)
1040     ac_prev=program_transform_name ;;
1041   -program-transform-name=* | --program-transform-name=* \
1042   | --program-transform-nam=* | --program-transform-na=* \
1043   | --program-transform-n=* | --program-transform-=* \
1044   | --program-transform=* | --program-transfor=* \
1045   | --program-transfo=* | --program-transf=* \
1046   | --program-trans=* | --program-tran=* \
1047   | --progr-tra=* | --program-tr=* | --program-t=*)
1048     program_transform_name=$ac_optarg ;;
1049
1050   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051     ac_prev=pdfdir ;;
1052   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053     pdfdir=$ac_optarg ;;
1054
1055   -psdir | --psdir | --psdi | --psd | --ps)
1056     ac_prev=psdir ;;
1057   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058     psdir=$ac_optarg ;;
1059
1060   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061   | -silent | --silent | --silen | --sile | --sil)
1062     silent=yes ;;
1063
1064   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065     ac_prev=sbindir ;;
1066   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067   | --sbi=* | --sb=*)
1068     sbindir=$ac_optarg ;;
1069
1070   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072   | --sharedst | --shareds | --shared | --share | --shar \
1073   | --sha | --sh)
1074     ac_prev=sharedstatedir ;;
1075   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078   | --sha=* | --sh=*)
1079     sharedstatedir=$ac_optarg ;;
1080
1081   -site | --site | --sit)
1082     ac_prev=site ;;
1083   -site=* | --site=* | --sit=*)
1084     site=$ac_optarg ;;
1085
1086   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087     ac_prev=srcdir ;;
1088   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089     srcdir=$ac_optarg ;;
1090
1091   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092   | --syscon | --sysco | --sysc | --sys | --sy)
1093     ac_prev=sysconfdir ;;
1094   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096     sysconfdir=$ac_optarg ;;
1097
1098   -target | --target | --targe | --targ | --tar | --ta | --t)
1099     ac_prev=target_alias ;;
1100   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101     target_alias=$ac_optarg ;;
1102
1103   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104     verbose=yes ;;
1105
1106   -version | --version | --versio | --versi | --vers | -V)
1107     ac_init_version=: ;;
1108
1109   -with-* | --with-*)
1110     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113       as_fn_error $? "invalid package name: $ac_useropt"
1114     ac_useropt_orig=$ac_useropt
1115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116     case $ac_user_opts in
1117       *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121          ac_unrecognized_sep=', ';;
1122     esac
1123     eval with_$ac_useropt=\$ac_optarg ;;
1124
1125   -without-* | --without-*)
1126     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129       as_fn_error $? "invalid package name: $ac_useropt"
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133       *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137          ac_unrecognized_sep=', ';;
1138     esac
1139     eval with_$ac_useropt=no ;;
1140
1141   --x)
1142     # Obsolete; use --with-x.
1143     with_x=yes ;;
1144
1145   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146   | --x-incl | --x-inc | --x-in | --x-i)
1147     ac_prev=x_includes ;;
1148   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150     x_includes=$ac_optarg ;;
1151
1152   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154     ac_prev=x_libraries ;;
1155   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157     x_libraries=$ac_optarg ;;
1158
1159   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1161     ;;
1162
1163   *=*)
1164     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165     # Reject names that are not valid shell variable names.
1166     case $ac_envvar in #(
1167       '' | [0-9]* | *[!_$as_cr_alnum]* )
1168       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169     esac
1170     eval $ac_envvar=\$ac_optarg
1171     export $ac_envvar ;;
1172
1173   *)
1174     # FIXME: should be removed in autoconf 3.0.
1175     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179     ;;
1180
1181   esac
1182 done
1183
1184 if test -n "$ac_prev"; then
1185   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186   as_fn_error $? "missing argument to $ac_option"
1187 fi
1188
1189 if test -n "$ac_unrecognized_opts"; then
1190   case $enable_option_checking in
1191     no) ;;
1192     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194   esac
1195 fi
1196
1197 # Check all directory arguments for consistency.
1198 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199                 datadir sysconfdir sharedstatedir localstatedir includedir \
1200                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201                 libdir localedir mandir
1202 do
1203   eval ac_val=\$$ac_var
1204   # Remove trailing slashes.
1205   case $ac_val in
1206     */ )
1207       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208       eval $ac_var=\$ac_val;;
1209   esac
1210   # Be sure to have absolute directory names.
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   as_fn_error $? "working directory cannot be determined"
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245   as_fn_error $? "pwd does not report name of working directory"
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250   ac_srcdir_defaulted=yes
1251   # Try the directory containing this script, then the parent directory.
1252   ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254          X"$as_myself" : 'X\(//\)[^/]' \| \
1255          X"$as_myself" : 'X\(//\)$' \| \
1256          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)[^/].*/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\).*/{
1271             s//\1/
1272             q
1273           }
1274           s/.*/./; q'`
1275   srcdir=$ac_confdir
1276   if test ! -r "$srcdir/$ac_unique_file"; then
1277     srcdir=..
1278   fi
1279 else
1280   ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 fi
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 ac_abs_confdir=`(
1288         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289         pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292   srcdir=.
1293 fi
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_env_${ac_var}_value=\$${ac_var}
1303   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1306
1307 #
1308 # Report the --help message.
1309 #
1310 if test "$ac_init_help" = "long"; then
1311   # Omit some internal or obsolete options to make the list less imposing.
1312   # This message is too long to be a string in the A/UX 3.1 sh.
1313   cat <<_ACEOF
1314 \`configure' configures libradsec 0.0.4.dev to adapt to many kinds of systems.
1315
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE.  See below for descriptions of some of the useful variables.
1320
1321 Defaults for the options are specified in brackets.
1322
1323 Configuration:
1324   -h, --help              display this help and exit
1325       --help=short        display options specific to this package
1326       --help=recursive    display the short help of all the included packages
1327   -V, --version           display version information and exit
1328   -q, --quiet, --silent   do not print \`checking ...' messages
1329       --cache-file=FILE   cache test results in FILE [disabled]
1330   -C, --config-cache      alias for \`--cache-file=config.cache'
1331   -n, --no-create         do not create output files
1332       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1333
1334 Installation directories:
1335   --prefix=PREFIX         install architecture-independent files in PREFIX
1336                           [$ac_default_prefix]
1337   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1338                           [PREFIX]
1339
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1344
1345 For better control, use the options below.
1346
1347 Fine tuning of the installation directories:
1348   --bindir=DIR            user executables [EPREFIX/bin]
1349   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1350   --libexecdir=DIR        program executables [EPREFIX/libexec]
1351   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1352   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1353   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1354   --libdir=DIR            object code libraries [EPREFIX/lib]
1355   --includedir=DIR        C header files [PREFIX/include]
1356   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1357   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1358   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1359   --infodir=DIR           info documentation [DATAROOTDIR/info]
1360   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1361   --mandir=DIR            man documentation [DATAROOTDIR/man]
1362   --docdir=DIR            documentation root [DATAROOTDIR/doc/libradsec]
1363   --htmldir=DIR           html documentation [DOCDIR]
1364   --dvidir=DIR            dvi documentation [DOCDIR]
1365   --pdfdir=DIR            pdf documentation [DOCDIR]
1366   --psdir=DIR             ps documentation [DOCDIR]
1367 _ACEOF
1368
1369   cat <<\_ACEOF
1370
1371 Program names:
1372   --program-prefix=PREFIX            prepend PREFIX to installed program names
1373   --program-suffix=SUFFIX            append SUFFIX to installed program names
1374   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of libradsec 0.0.4.dev:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-option-checking  ignore unrecognized --enable/--with options
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-shared[=PKGS]  build shared libraries [default=yes]
1393   --enable-static[=PKGS]  build static libraries [default=yes]
1394   --enable-fast-install[=PKGS]
1395                           optimize for fast installation [default=yes]
1396   --disable-dependency-tracking  speeds up one-time build
1397   --enable-dependency-tracking   do not reject slow dependency extractors
1398   --disable-libtool-lock  avoid locking (might break parallel builds)
1399   --enable-tls            enable TLS (RadSec)
1400   --enable-tls-psk        enable TLS-PSK (TLS preshared keys)
1401
1402 Optional Packages:
1403   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1404   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1405   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1406                           both]
1407   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1408   --with-sysroot=DIR Search for dependent libraries within DIR
1409                         (or the compiler's sysroot if not specified).
1410
1411 Some influential environment variables:
1412   CC          C compiler command
1413   CFLAGS      C compiler flags
1414   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1415               nonstandard directory <lib dir>
1416   LIBS        libraries to pass to the linker, e.g. -l<library>
1417   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1418               you have headers in a nonstandard directory <include dir>
1419   CPP         C preprocessor
1420
1421 Use these variables to override the choices made by `configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1423
1424 Report bugs to <linus+libradsec@nordu.net>.
1425 _ACEOF
1426 ac_status=$?
1427 fi
1428
1429 if test "$ac_init_help" = "recursive"; then
1430   # If there are subdirs, report their specific --help.
1431   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432     test -d "$ac_dir" ||
1433       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434       continue
1435     ac_builddir=.
1436
1437 case "$ac_dir" in
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *)
1440   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441   # A ".." for each directory in $ac_dir_suffix.
1442   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443   case $ac_top_builddir_sub in
1444   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446   esac ;;
1447 esac
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1452
1453 case $srcdir in
1454   .)  # We are building in place.
1455     ac_srcdir=.
1456     ac_top_srcdir=$ac_top_builddir_sub
1457     ac_abs_top_srcdir=$ac_pwd ;;
1458   [\\/]* | ?:[\\/]* )  # Absolute name.
1459     ac_srcdir=$srcdir$ac_dir_suffix;
1460     ac_top_srcdir=$srcdir
1461     ac_abs_top_srcdir=$srcdir ;;
1462   *) # Relative name.
1463     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464     ac_top_srcdir=$ac_top_build_prefix$srcdir
1465     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 esac
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468
1469     cd "$ac_dir" || { ac_status=$?; continue; }
1470     # Check for guested configure.
1471     if test -f "$ac_srcdir/configure.gnu"; then
1472       echo &&
1473       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474     elif test -f "$ac_srcdir/configure"; then
1475       echo &&
1476       $SHELL "$ac_srcdir/configure" --help=recursive
1477     else
1478       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479     fi || ac_status=$?
1480     cd "$ac_pwd" || { ac_status=$?; break; }
1481   done
1482 fi
1483
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1486   cat <<\_ACEOF
1487 libradsec configure 0.0.4.dev
1488 generated by GNU Autoconf 2.69
1489
1490 Copyright (C) 2012 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494   exit
1495 fi
1496
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1500
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1505 {
1506   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507   rm -f conftest.$ac_objext
1508   if { { ac_try="$ac_compile"
1509 case "(($ac_try" in
1510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511   *) ac_try_echo=$ac_try;;
1512 esac
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515   (eval "$ac_compile") 2>conftest.err
1516   ac_status=$?
1517   if test -s conftest.err; then
1518     grep -v '^ *+' conftest.err >conftest.er1
1519     cat conftest.er1 >&5
1520     mv -f conftest.er1 conftest.err
1521   fi
1522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523   test $ac_status = 0; } && {
1524          test -z "$ac_c_werror_flag" ||
1525          test ! -s conftest.err
1526        } && test -s conftest.$ac_objext; then :
1527   ac_retval=0
1528 else
1529   $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1531
1532         ac_retval=1
1533 fi
1534   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535   as_fn_set_status $ac_retval
1536
1537 } # ac_fn_c_try_compile
1538
1539 # ac_fn_c_try_link LINENO
1540 # -----------------------
1541 # Try to link conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_link ()
1543 {
1544   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545   rm -f conftest.$ac_objext conftest$ac_exeext
1546   if { { ac_try="$ac_link"
1547 case "(($ac_try" in
1548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549   *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553   (eval "$ac_link") 2>conftest.err
1554   ac_status=$?
1555   if test -s conftest.err; then
1556     grep -v '^ *+' conftest.err >conftest.er1
1557     cat conftest.er1 >&5
1558     mv -f conftest.er1 conftest.err
1559   fi
1560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561   test $ac_status = 0; } && {
1562          test -z "$ac_c_werror_flag" ||
1563          test ! -s conftest.err
1564        } && test -s conftest$ac_exeext && {
1565          test "$cross_compiling" = yes ||
1566          test -x conftest$ac_exeext
1567        }; then :
1568   ac_retval=0
1569 else
1570   $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573         ac_retval=1
1574 fi
1575   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1576   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1577   # interfere with the next link command; also delete a directory that is
1578   # left behind by Apple's compiler.  We do this before executing the actions.
1579   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1580   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581   as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_link
1584
1585 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1586 # -------------------------------------------------------
1587 # Tests whether HEADER exists and can be compiled using the include files in
1588 # INCLUDES, setting the cache variable VAR accordingly.
1589 ac_fn_c_check_header_compile ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if eval \${$3+:} false; then :
1595   $as_echo_n "(cached) " >&6
1596 else
1597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h.  */
1599 $4
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603   eval "$3=yes"
1604 else
1605   eval "$3=no"
1606 fi
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 fi
1609 eval ac_res=\$$3
1610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613
1614 } # ac_fn_c_check_header_compile
1615
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_cpp ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 case "(($ac_try" in
1624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625   *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630   ac_status=$?
1631   if test -s conftest.err; then
1632     grep -v '^ *+' conftest.err >conftest.er1
1633     cat conftest.er1 >&5
1634     mv -f conftest.er1 conftest.err
1635   fi
1636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637   test $ac_status = 0; } > conftest.i && {
1638          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639          test ! -s conftest.err
1640        }; then :
1641   ac_retval=0
1642 else
1643   $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646     ac_retval=1
1647 fi
1648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649   as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_cpp
1652
1653 # ac_fn_c_try_run LINENO
1654 # ----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1656 # that executables *can* be run.
1657 ac_fn_c_try_run ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_link") 2>&5
1668   ac_status=$?
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1671   { { case "(($ac_try" in
1672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673   *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677   (eval "$ac_try") 2>&5
1678   ac_status=$?
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; }; }; then :
1681   ac_retval=0
1682 else
1683   $as_echo "$as_me: program exited with status $ac_status" >&5
1684        $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687        ac_retval=$ac_status
1688 fi
1689   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691   as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_run
1694
1695 # ac_fn_c_check_func LINENO FUNC VAR
1696 # ----------------------------------
1697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1698 ac_fn_c_check_func ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704   $as_echo_n "(cached) " >&6
1705 else
1706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h.  */
1708 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1710 #define $2 innocuous_$2
1711
1712 /* System header to define __stub macros and hopefully few prototypes,
1713     which can conflict with char $2 (); below.
1714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1715     <limits.h> exists even on freestanding compilers.  */
1716
1717 #ifdef __STDC__
1718 # include <limits.h>
1719 #else
1720 # include <assert.h>
1721 #endif
1722
1723 #undef $2
1724
1725 /* Override any GCC internal prototype to avoid an error.
1726    Use char because int might match the return type of a GCC
1727    builtin and then its argument prototype would still apply.  */
1728 #ifdef __cplusplus
1729 extern "C"
1730 #endif
1731 char $2 ();
1732 /* The GNU C library defines this for functions which it implements
1733     to always fail with ENOSYS.  Some functions are actually named
1734     something starting with __ and the normal name is an alias.  */
1735 #if defined __stub_$2 || defined __stub___$2
1736 choke me
1737 #endif
1738
1739 int
1740 main ()
1741 {
1742 return $2 ();
1743   ;
1744   return 0;
1745 }
1746 _ACEOF
1747 if ac_fn_c_try_link "$LINENO"; then :
1748   eval "$3=yes"
1749 else
1750   eval "$3=no"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext \
1753     conftest$ac_exeext conftest.$ac_ext
1754 fi
1755 eval ac_res=\$$3
1756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_func
1761
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1766 # accordingly.
1767 ac_fn_c_check_header_mongrel ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   if eval \${$3+:} false; then :
1771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774   $as_echo_n "(cached) " >&6
1775 fi
1776 eval ac_res=\$$3
1777                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 else
1780   # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h.  */
1785 $4
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789   ac_header_compiler=yes
1790 else
1791   ac_header_compiler=no
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1796
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h.  */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805   ac_header_preproc=yes
1806 else
1807   ac_header_preproc=no
1808 fi
1809 rm -f conftest.err conftest.i conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1812
1813 # So?  What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815   yes:no: )
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820     ;;
1821   no:yes:* )
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ( $as_echo "## ---------------------------------------- ##
1833 ## Report this to linus+libradsec@nordu.net ##
1834 ## ---------------------------------------- ##"
1835      ) | sed "s/^/$as_me: WARNING:     /" >&2
1836     ;;
1837 esac
1838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841   $as_echo_n "(cached) " >&6
1842 else
1843   eval "$3=\$ac_header_compiler"
1844 fi
1845 eval ac_res=\$$3
1846                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 fi
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_header_mongrel
1852
1853 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1854 # -------------------------------------------
1855 # Tests whether TYPE exists after having included INCLUDES, setting cache
1856 # variable VAR accordingly.
1857 ac_fn_c_check_type ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863   $as_echo_n "(cached) " >&6
1864 else
1865   eval "$3=no"
1866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 $4
1869 int
1870 main ()
1871 {
1872 if (sizeof ($2))
1873          return 0;
1874   ;
1875   return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h.  */
1881 $4
1882 int
1883 main ()
1884 {
1885 if (sizeof (($2)))
1886             return 0;
1887   ;
1888   return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892
1893 else
1894   eval "$3=yes"
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_type
1906
1907 # ac_fn_c_find_uintX_t LINENO BITS VAR
1908 # ------------------------------------
1909 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1910 # accordingly.
1911 ac_fn_c_find_uintX_t ()
1912 {
1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1915 $as_echo_n "checking for uint$2_t... " >&6; }
1916 if eval \${$3+:} false; then :
1917   $as_echo_n "(cached) " >&6
1918 else
1919   eval "$3=no"
1920      # Order is important - never check a type that is potentially smaller
1921      # than half of the expected target width.
1922      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1923          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1924        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 $ac_includes_default
1927 int
1928 main ()
1929 {
1930 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1931 test_array [0] = 0;
1932 return test_array [0];
1933
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939   case $ac_type in #(
1940   uint$2_t) :
1941     eval "$3=yes" ;; #(
1942   *) :
1943     eval "$3=\$ac_type" ;;
1944 esac
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947        if eval test \"x\$"$3"\" = x"no"; then :
1948
1949 else
1950   break
1951 fi
1952      done
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_find_uintX_t
1960 cat >config.log <<_ACEOF
1961 This file contains any messages produced by compilers while
1962 running configure, to aid debugging if configure makes a mistake.
1963
1964 It was created by libradsec $as_me 0.0.4.dev, which was
1965 generated by GNU Autoconf 2.69.  Invocation command line was
1966
1967   $ $0 $@
1968
1969 _ACEOF
1970 exec 5>>config.log
1971 {
1972 cat <<_ASUNAME
1973 ## --------- ##
1974 ## Platform. ##
1975 ## --------- ##
1976
1977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982
1983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1985
1986 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1987 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1989 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1990 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1991 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1992 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1993
1994 _ASUNAME
1995
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001     $as_echo "PATH: $as_dir"
2002   done
2003 IFS=$as_save_IFS
2004
2005 } >&5
2006
2007 cat >&5 <<_ACEOF
2008
2009
2010 ## ----------- ##
2011 ## Core tests. ##
2012 ## ----------- ##
2013
2014 _ACEOF
2015
2016
2017 # Keep a trace of the command line.
2018 # Strip out --no-create and --no-recursion so they do not pile up.
2019 # Strip out --silent because we don't want to record it for future runs.
2020 # Also quote any args containing shell meta-characters.
2021 # Make two passes to allow for proper duplicate-argument suppression.
2022 ac_configure_args=
2023 ac_configure_args0=
2024 ac_configure_args1=
2025 ac_must_keep_next=false
2026 for ac_pass in 1 2
2027 do
2028   for ac_arg
2029   do
2030     case $ac_arg in
2031     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033     | -silent | --silent | --silen | --sile | --sil)
2034       continue ;;
2035     *\'*)
2036       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2037     esac
2038     case $ac_pass in
2039     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2040     2)
2041       as_fn_append ac_configure_args1 " '$ac_arg'"
2042       if test $ac_must_keep_next = true; then
2043         ac_must_keep_next=false # Got value, back to normal.
2044       else
2045         case $ac_arg in
2046           *=* | --config-cache | -C | -disable-* | --disable-* \
2047           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049           | -with-* | --with-* | -without-* | --without-* | --x)
2050             case "$ac_configure_args0 " in
2051               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052             esac
2053             ;;
2054           -* ) ac_must_keep_next=true ;;
2055         esac
2056       fi
2057       as_fn_append ac_configure_args " '$ac_arg'"
2058       ;;
2059     esac
2060   done
2061 done
2062 { ac_configure_args0=; unset ac_configure_args0;}
2063 { ac_configure_args1=; unset ac_configure_args1;}
2064
2065 # When interrupted or exit'd, cleanup temporary files, and complete
2066 # config.log.  We remove comments because anyway the quotes in there
2067 # would cause problems or look ugly.
2068 # WARNING: Use '\'' to represent an apostrophe within the trap.
2069 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2070 trap 'exit_status=$?
2071   # Save into config.log some information that might help in debugging.
2072   {
2073     echo
2074
2075     $as_echo "## ---------------- ##
2076 ## Cache variables. ##
2077 ## ---------------- ##"
2078     echo
2079     # The following way of writing the cache mishandles newlines in values,
2080 (
2081   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2082     eval ac_val=\$$ac_var
2083     case $ac_val in #(
2084     *${as_nl}*)
2085       case $ac_var in #(
2086       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2087 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2088       esac
2089       case $ac_var in #(
2090       _ | IFS | as_nl) ;; #(
2091       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2092       *) { eval $ac_var=; unset $ac_var;} ;;
2093       esac ;;
2094     esac
2095   done
2096   (set) 2>&1 |
2097     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2098     *${as_nl}ac_space=\ *)
2099       sed -n \
2100         "s/'\''/'\''\\\\'\'''\''/g;
2101           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2102       ;; #(
2103     *)
2104       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105       ;;
2106     esac |
2107     sort
2108 )
2109     echo
2110
2111     $as_echo "## ----------------- ##
2112 ## Output variables. ##
2113 ## ----------------- ##"
2114     echo
2115     for ac_var in $ac_subst_vars
2116     do
2117       eval ac_val=\$$ac_var
2118       case $ac_val in
2119       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120       esac
2121       $as_echo "$ac_var='\''$ac_val'\''"
2122     done | sort
2123     echo
2124
2125     if test -n "$ac_subst_files"; then
2126       $as_echo "## ------------------- ##
2127 ## File substitutions. ##
2128 ## ------------------- ##"
2129       echo
2130       for ac_var in $ac_subst_files
2131       do
2132         eval ac_val=\$$ac_var
2133         case $ac_val in
2134         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135         esac
2136         $as_echo "$ac_var='\''$ac_val'\''"
2137       done | sort
2138       echo
2139     fi
2140
2141     if test -s confdefs.h; then
2142       $as_echo "## ----------- ##
2143 ## confdefs.h. ##
2144 ## ----------- ##"
2145       echo
2146       cat confdefs.h
2147       echo
2148     fi
2149     test "$ac_signal" != 0 &&
2150       $as_echo "$as_me: caught signal $ac_signal"
2151     $as_echo "$as_me: exit $exit_status"
2152   } >&5
2153   rm -f core *.core core.conftest.* &&
2154     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155     exit $exit_status
2156 ' 0
2157 for ac_signal in 1 2 13 15; do
2158   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2159 done
2160 ac_signal=0
2161
2162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2163 rm -f -r conftest* confdefs.h
2164
2165 $as_echo "/* confdefs.h */" > confdefs.h
2166
2167 # Predefined preprocessor variables.
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_NAME "$PACKAGE_NAME"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_STRING "$PACKAGE_STRING"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_URL "$PACKAGE_URL"
2191 _ACEOF
2192
2193
2194 # Let the site file select an alternate cache file if it wants to.
2195 # Prefer an explicitly selected file to automatically selected ones.
2196 ac_site_file1=NONE
2197 ac_site_file2=NONE
2198 if test -n "$CONFIG_SITE"; then
2199   # We do not want a PATH search for config.site.
2200   case $CONFIG_SITE in #((
2201     -*)  ac_site_file1=./$CONFIG_SITE;;
2202     */*) ac_site_file1=$CONFIG_SITE;;
2203     *)   ac_site_file1=./$CONFIG_SITE;;
2204   esac
2205 elif test "x$prefix" != xNONE; then
2206   ac_site_file1=$prefix/share/config.site
2207   ac_site_file2=$prefix/etc/config.site
2208 else
2209   ac_site_file1=$ac_default_prefix/share/config.site
2210   ac_site_file2=$ac_default_prefix/etc/config.site
2211 fi
2212 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213 do
2214   test "x$ac_site_file" = xNONE && continue
2215   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2216     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218     sed 's/^/| /' "$ac_site_file" >&5
2219     . "$ac_site_file" \
2220       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 as_fn_error $? "failed to load site script $ac_site_file
2223 See \`config.log' for more details" "$LINENO" 5; }
2224   fi
2225 done
2226
2227 if test -r "$cache_file"; then
2228   # Some versions of bash will fail to source /dev/null (special files
2229   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2230   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232 $as_echo "$as_me: loading cache $cache_file" >&6;}
2233     case $cache_file in
2234       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235       *)                      . "./$cache_file";;
2236     esac
2237   fi
2238 else
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240 $as_echo "$as_me: creating cache $cache_file" >&6;}
2241   >$cache_file
2242 fi
2243
2244 # Check that the precious variables saved in the cache have kept the same
2245 # value.
2246 ac_cache_corrupted=false
2247 for ac_var in $ac_precious_vars; do
2248   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249   eval ac_new_set=\$ac_env_${ac_var}_set
2250   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251   eval ac_new_val=\$ac_env_${ac_var}_value
2252   case $ac_old_set,$ac_new_set in
2253     set,)
2254       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256       ac_cache_corrupted=: ;;
2257     ,set)
2258       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2259 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2260       ac_cache_corrupted=: ;;
2261     ,);;
2262     *)
2263       if test "x$ac_old_val" != "x$ac_new_val"; then
2264         # differences in whitespace do not lead to failure.
2265         ac_old_val_w=`echo x $ac_old_val`
2266         ac_new_val_w=`echo x $ac_new_val`
2267         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2270           ac_cache_corrupted=:
2271         else
2272           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2273 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274           eval $ac_var=\$ac_old_val
2275         fi
2276         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2277 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2278         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2279 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2280       fi;;
2281   esac
2282   # Pass precious variables to config.status.
2283   if test "$ac_new_set" = set; then
2284     case $ac_new_val in
2285     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2286     *) ac_arg=$ac_var=$ac_new_val ;;
2287     esac
2288     case " $ac_configure_args " in
2289       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2290       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2291     esac
2292   fi
2293 done
2294 if $ac_cache_corrupted; then
2295   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2300 fi
2301 ## -------------------- ##
2302 ## Main body of script. ##
2303 ## -------------------- ##
2304
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310
2311
2312
2313
2314 ac_aux_dir=
2315 for ac_dir in build-aux "$srcdir"/build-aux; do
2316   if test -f "$ac_dir/install-sh"; then
2317     ac_aux_dir=$ac_dir
2318     ac_install_sh="$ac_aux_dir/install-sh -c"
2319     break
2320   elif test -f "$ac_dir/install.sh"; then
2321     ac_aux_dir=$ac_dir
2322     ac_install_sh="$ac_aux_dir/install.sh -c"
2323     break
2324   elif test -f "$ac_dir/shtool"; then
2325     ac_aux_dir=$ac_dir
2326     ac_install_sh="$ac_aux_dir/shtool install -c"
2327     break
2328   fi
2329 done
2330 if test -z "$ac_aux_dir"; then
2331   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2332 fi
2333
2334 # These three variables are undocumented and unsupported,
2335 # and are intended to be withdrawn in a future Autoconf release.
2336 # They can cause serious problems if a builder's source tree is in a directory
2337 # whose full name contains unusual characters.
2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2340 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2341
2342
2343 ac_config_headers="$ac_config_headers config.h"
2344
2345 am__api_version='1.11'
2346
2347 # Find a good install program.  We prefer a C program (faster),
2348 # so one script is as good as another.  But avoid the broken or
2349 # incompatible versions:
2350 # SysV /etc/install, /usr/sbin/install
2351 # SunOS /usr/etc/install
2352 # IRIX /sbin/install
2353 # AIX /bin/install
2354 # AmigaOS /C/install, which installs bootblocks on floppy discs
2355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2358 # OS/2's system install, which has a completely different semantic
2359 # ./install, which can be erroneously created by make from ./install.sh.
2360 # Reject install programs that cannot install multiple files.
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2362 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2363 if test -z "$INSTALL"; then
2364 if ${ac_cv_path_install+:} false; then :
2365   $as_echo_n "(cached) " >&6
2366 else
2367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372     # Account for people who put trailing slashes in PATH elements.
2373 case $as_dir/ in #((
2374   ./ | .// | /[cC]/* | \
2375   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2376   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2377   /usr/ucb/* ) ;;
2378   *)
2379     # OSF1 and SCO ODT 3.0 have their own names for install.
2380     # Don't use installbsd from OSF since it installs stuff as root
2381     # by default.
2382     for ac_prog in ginstall scoinst install; do
2383       for ac_exec_ext in '' $ac_executable_extensions; do
2384         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2385           if test $ac_prog = install &&
2386             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387             # AIX install.  It has an incompatible calling convention.
2388             :
2389           elif test $ac_prog = install &&
2390             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391             # program-specific install script used by HP pwplus--don't use.
2392             :
2393           else
2394             rm -rf conftest.one conftest.two conftest.dir
2395             echo one > conftest.one
2396             echo two > conftest.two
2397             mkdir conftest.dir
2398             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2399               test -s conftest.one && test -s conftest.two &&
2400               test -s conftest.dir/conftest.one &&
2401               test -s conftest.dir/conftest.two
2402             then
2403               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2404               break 3
2405             fi
2406           fi
2407         fi
2408       done
2409     done
2410     ;;
2411 esac
2412
2413   done
2414 IFS=$as_save_IFS
2415
2416 rm -rf conftest.one conftest.two conftest.dir
2417
2418 fi
2419   if test "${ac_cv_path_install+set}" = set; then
2420     INSTALL=$ac_cv_path_install
2421   else
2422     # As a last resort, use the slow shell script.  Don't cache a
2423     # value for INSTALL within a source directory, because that will
2424     # break other packages using the cache if that directory is
2425     # removed, or if the value is a relative name.
2426     INSTALL=$ac_install_sh
2427   fi
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2430 $as_echo "$INSTALL" >&6; }
2431
2432 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2433 # It thinks the first close brace ends the variable substitution.
2434 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2435
2436 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2437
2438 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2439
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2441 $as_echo_n "checking whether build environment is sane... " >&6; }
2442 # Just in case
2443 sleep 1
2444 echo timestamp > conftest.file
2445 # Reject unsafe characters in $srcdir or the absolute working directory
2446 # name.  Accept space and tab only in the latter.
2447 am_lf='
2448 '
2449 case `pwd` in
2450   *[\\\"\#\$\&\'\`$am_lf]*)
2451     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2452 esac
2453 case $srcdir in
2454   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2455     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2456 esac
2457
2458 # Do `set' in a subshell so we don't clobber the current shell's
2459 # arguments.  Must try -L first in case configure is actually a
2460 # symlink; some systems play weird games with the mod time of symlinks
2461 # (eg FreeBSD returns the mod time of the symlink's containing
2462 # directory).
2463 if (
2464    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2465    if test "$*" = "X"; then
2466       # -L didn't work.
2467       set X `ls -t "$srcdir/configure" conftest.file`
2468    fi
2469    rm -f conftest.file
2470    if test "$*" != "X $srcdir/configure conftest.file" \
2471       && test "$*" != "X conftest.file $srcdir/configure"; then
2472
2473       # If neither matched, then we have a broken ls.  This can happen
2474       # if, for instance, CONFIG_SHELL is bash and it inherits a
2475       # broken ls alias from the environment.  This has actually
2476       # happened.  Such a system could not be considered "sane".
2477       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2478 alias in your environment" "$LINENO" 5
2479    fi
2480
2481    test "$2" = conftest.file
2482    )
2483 then
2484    # Ok.
2485    :
2486 else
2487    as_fn_error $? "newly created file is older than distributed files!
2488 Check your system clock" "$LINENO" 5
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2491 $as_echo "yes" >&6; }
2492 test "$program_prefix" != NONE &&
2493   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497 # Double any \ or $.
2498 # By default was `s,x,x', remove it if useless.
2499 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501
2502 # expand $ac_aux_dir to an absolute path
2503 am_aux_dir=`cd $ac_aux_dir && pwd`
2504
2505 if test x"${MISSING+set}" != xset; then
2506   case $am_aux_dir in
2507   *\ * | *\     *)
2508     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2509   *)
2510     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2511   esac
2512 fi
2513 # Use eval to expand $SHELL
2514 if eval "$MISSING --run true"; then
2515   am_missing_run="$MISSING --run "
2516 else
2517   am_missing_run=
2518   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2519 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2520 fi
2521
2522 if test x"${install_sh}" != xset; then
2523   case $am_aux_dir in
2524   *\ * | *\     *)
2525     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2526   *)
2527     install_sh="\${SHELL} $am_aux_dir/install-sh"
2528   esac
2529 fi
2530
2531 # Installed binaries are usually stripped using `strip' when the user
2532 # run `make install-strip'.  However `strip' might not be the right
2533 # tool to use in cross-compilation environments, therefore Automake
2534 # will honor the `STRIP' environment variable to overrule this program.
2535 if test "$cross_compiling" != no; then
2536   if test -n "$ac_tool_prefix"; then
2537   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}strip; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_STRIP+:} false; then :
2542   $as_echo_n "(cached) " >&6
2543 else
2544   if test -n "$STRIP"; then
2545   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552     for ac_exec_ext in '' $ac_executable_extensions; do
2553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559   done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 STRIP=$ac_cv_prog_STRIP
2565 if test -n "$STRIP"; then
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2567 $as_echo "$STRIP" >&6; }
2568 else
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573
2574 fi
2575 if test -z "$ac_cv_prog_STRIP"; then
2576   ac_ct_STRIP=$STRIP
2577   # Extract the first word of "strip", so it can be a program name with args.
2578 set dummy strip; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   if test -n "$ac_ct_STRIP"; then
2585   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592     for ac_exec_ext in '' $ac_executable_extensions; do
2593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594     ac_cv_prog_ac_ct_STRIP="strip"
2595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599   done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2605 if test -n "$ac_ct_STRIP"; then
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2607 $as_echo "$ac_ct_STRIP" >&6; }
2608 else
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613   if test "x$ac_ct_STRIP" = x; then
2614     STRIP=":"
2615   else
2616     case $cross_compiling:$ac_tool_warned in
2617 yes:)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620 ac_tool_warned=yes ;;
2621 esac
2622     STRIP=$ac_ct_STRIP
2623   fi
2624 else
2625   STRIP="$ac_cv_prog_STRIP"
2626 fi
2627
2628 fi
2629 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2630
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2632 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2633 if test -z "$MKDIR_P"; then
2634   if ${ac_cv_path_mkdir+:} false; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642     for ac_prog in mkdir gmkdir; do
2643          for ac_exec_ext in '' $ac_executable_extensions; do
2644            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2645            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2646              'mkdir (GNU coreutils) '* | \
2647              'mkdir (coreutils) '* | \
2648              'mkdir (fileutils) '4.1*)
2649                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2650                break 3;;
2651            esac
2652          done
2653        done
2654   done
2655 IFS=$as_save_IFS
2656
2657 fi
2658
2659   test -d ./--version && rmdir ./--version
2660   if test "${ac_cv_path_mkdir+set}" = set; then
2661     MKDIR_P="$ac_cv_path_mkdir -p"
2662   else
2663     # As a last resort, use the slow shell script.  Don't cache a
2664     # value for MKDIR_P within a source directory, because that will
2665     # break other packages using the cache if that directory is
2666     # removed, or if the value is a relative name.
2667     MKDIR_P="$ac_install_sh -d"
2668   fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2671 $as_echo "$MKDIR_P" >&6; }
2672
2673 mkdir_p="$MKDIR_P"
2674 case $mkdir_p in
2675   [\\/$]* | ?:[\\/]*) ;;
2676   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2677 esac
2678
2679 for ac_prog in gawk mawk nawk awk
2680 do
2681   # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_AWK+:} false; then :
2686   $as_echo_n "(cached) " >&6
2687 else
2688   if test -n "$AWK"; then
2689   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696     for ac_exec_ext in '' $ac_executable_extensions; do
2697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698     ac_cv_prog_AWK="$ac_prog"
2699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701   fi
2702 done
2703   done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 AWK=$ac_cv_prog_AWK
2709 if test -n "$AWK"; then
2710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2711 $as_echo "$AWK" >&6; }
2712 else
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717
2718   test -n "$AWK" && break
2719 done
2720
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2722 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2723 set x ${MAKE-make}
2724 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2725 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   cat >conftest.make <<\_ACEOF
2729 SHELL = /bin/sh
2730 all:
2731         @echo '@@@%%%=$(MAKE)=@@@%%%'
2732 _ACEOF
2733 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2734 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2735   *@@@%%%=?*=@@@%%%*)
2736     eval ac_cv_prog_make_${ac_make}_set=yes;;
2737   *)
2738     eval ac_cv_prog_make_${ac_make}_set=no;;
2739 esac
2740 rm -f conftest.make
2741 fi
2742 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2744 $as_echo "yes" >&6; }
2745   SET_MAKE=
2746 else
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749   SET_MAKE="MAKE=${MAKE-make}"
2750 fi
2751
2752 rm -rf .tst 2>/dev/null
2753 mkdir .tst 2>/dev/null
2754 if test -d .tst; then
2755   am__leading_dot=.
2756 else
2757   am__leading_dot=_
2758 fi
2759 rmdir .tst 2>/dev/null
2760
2761 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2762   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2763   # is not polluted with repeated "-I."
2764   am__isrc=' -I$(srcdir)'
2765   # test to see if srcdir already configured
2766   if test -f $srcdir/config.status; then
2767     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2768   fi
2769 fi
2770
2771 # test whether we have cygpath
2772 if test -z "$CYGPATH_W"; then
2773   if (cygpath --version) >/dev/null 2>/dev/null; then
2774     CYGPATH_W='cygpath -w'
2775   else
2776     CYGPATH_W=echo
2777   fi
2778 fi
2779
2780
2781 # Define the identity of the package.
2782  PACKAGE='libradsec'
2783  VERSION='0.0.4.dev'
2784
2785
2786 cat >>confdefs.h <<_ACEOF
2787 #define PACKAGE "$PACKAGE"
2788 _ACEOF
2789
2790
2791 cat >>confdefs.h <<_ACEOF
2792 #define VERSION "$VERSION"
2793 _ACEOF
2794
2795 # Some tools Automake needs.
2796
2797 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2798
2799
2800 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2801
2802
2803 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2804
2805
2806 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2807
2808
2809 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2810
2811 # We need awk for the "check" target.  The system "awk" is bad on
2812 # some platforms.
2813 # Always define AMTAR for backward compatibility.  Yes, it's still used
2814 # in the wild :-(  We should find a proper way to deprecate it ...
2815 AMTAR='$${TAR-tar}'
2816
2817 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2818
2819
2820
2821
2822
2823 case `pwd` in
2824   *\ * | *\     *)
2825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2826 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2827 esac
2828
2829
2830
2831 macro_version='2.4.2'
2832 macro_revision='1.3337'
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846 ltmain="$ac_aux_dir/ltmain.sh"
2847
2848 # Make sure we can run config.sub.
2849 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2850   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2853 $as_echo_n "checking build system type... " >&6; }
2854 if ${ac_cv_build+:} false; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   ac_build_alias=$build_alias
2858 test "x$ac_build_alias" = x &&
2859   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2860 test "x$ac_build_alias" = x &&
2861   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2862 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2863   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2864
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2867 $as_echo "$ac_cv_build" >&6; }
2868 case $ac_cv_build in
2869 *-*-*) ;;
2870 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2871 esac
2872 build=$ac_cv_build
2873 ac_save_IFS=$IFS; IFS='-'
2874 set x $ac_cv_build
2875 shift
2876 build_cpu=$1
2877 build_vendor=$2
2878 shift; shift
2879 # Remember, the first character of IFS is used to create $*,
2880 # except with old shells:
2881 build_os=$*
2882 IFS=$ac_save_IFS
2883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2884
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2887 $as_echo_n "checking host system type... " >&6; }
2888 if ${ac_cv_host+:} false; then :
2889   $as_echo_n "(cached) " >&6
2890 else
2891   if test "x$host_alias" = x; then
2892   ac_cv_host=$ac_cv_build
2893 else
2894   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2895     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2896 fi
2897
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2900 $as_echo "$ac_cv_host" >&6; }
2901 case $ac_cv_host in
2902 *-*-*) ;;
2903 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2904 esac
2905 host=$ac_cv_host
2906 ac_save_IFS=$IFS; IFS='-'
2907 set x $ac_cv_host
2908 shift
2909 host_cpu=$1
2910 host_vendor=$2
2911 shift; shift
2912 # Remember, the first character of IFS is used to create $*,
2913 # except with old shells:
2914 host_os=$*
2915 IFS=$ac_save_IFS
2916 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2917
2918
2919 # Backslashify metacharacters that are still active within
2920 # double-quoted strings.
2921 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2922
2923 # Same as above, but do not quote variable references.
2924 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2925
2926 # Sed substitution to delay expansion of an escaped shell variable in a
2927 # double_quote_subst'ed string.
2928 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2929
2930 # Sed substitution to delay expansion of an escaped single quote.
2931 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2932
2933 # Sed substitution to avoid accidental globbing in evaled expressions
2934 no_glob_subst='s/\*/\\\*/g'
2935
2936 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2937 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2938 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2939
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2941 $as_echo_n "checking how to print strings... " >&6; }
2942 # Test print first, because it will be a builtin if present.
2943 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2944    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2945   ECHO='print -r --'
2946 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2947   ECHO='printf %s\n'
2948 else
2949   # Use this function as a fallback that always works.
2950   func_fallback_echo ()
2951   {
2952     eval 'cat <<_LTECHO_EOF
2953 $1
2954 _LTECHO_EOF'
2955   }
2956   ECHO='func_fallback_echo'
2957 fi
2958
2959 # func_echo_all arg...
2960 # Invoke $ECHO with all args, space-separated.
2961 func_echo_all ()
2962 {
2963     $ECHO ""
2964 }
2965
2966 case "$ECHO" in
2967   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2968 $as_echo "printf" >&6; } ;;
2969   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2970 $as_echo "print -r" >&6; } ;;
2971   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2972 $as_echo "cat" >&6; } ;;
2973 esac
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988 DEPDIR="${am__leading_dot}deps"
2989
2990 ac_config_commands="$ac_config_commands depfiles"
2991
2992
2993 am_make=${MAKE-make}
2994 cat > confinc << 'END'
2995 am__doit:
2996         @echo this is the am__doit target
2997 .PHONY: am__doit
2998 END
2999 # If we don't find an include directive, just comment out the code.
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3001 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3002 am__include="#"
3003 am__quote=
3004 _am_result=none
3005 # First try GNU make style include.
3006 echo "include confinc" > confmf
3007 # Ignore all kinds of additional output from `make'.
3008 case `$am_make -s -f confmf 2> /dev/null` in #(
3009 *the\ am__doit\ target*)
3010   am__include=include
3011   am__quote=
3012   _am_result=GNU
3013   ;;
3014 esac
3015 # Now try BSD make style include.
3016 if test "$am__include" = "#"; then
3017    echo '.include "confinc"' > confmf
3018    case `$am_make -s -f confmf 2> /dev/null` in #(
3019    *the\ am__doit\ target*)
3020      am__include=.include
3021      am__quote="\""
3022      _am_result=BSD
3023      ;;
3024    esac
3025 fi
3026
3027
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3029 $as_echo "$_am_result" >&6; }
3030 rm -f confinc confmf
3031
3032 # Check whether --enable-dependency-tracking was given.
3033 if test "${enable_dependency_tracking+set}" = set; then :
3034   enableval=$enable_dependency_tracking;
3035 fi
3036
3037 if test "x$enable_dependency_tracking" != xno; then
3038   am_depcomp="$ac_aux_dir/depcomp"
3039   AMDEPBACKSLASH='\'
3040   am__nodep='_no'
3041 fi
3042  if test "x$enable_dependency_tracking" != xno; then
3043   AMDEP_TRUE=
3044   AMDEP_FALSE='#'
3045 else
3046   AMDEP_TRUE='#'
3047   AMDEP_FALSE=
3048 fi
3049
3050
3051 ac_ext=c
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 if test -n "$ac_tool_prefix"; then
3057   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_CC+:} false; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   if test -n "$CC"; then
3065   ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077   fi
3078 done
3079   done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3088 else
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094 fi
3095 if test -z "$ac_cv_prog_CC"; then
3096   ac_ct_CC=$CC
3097   # Extract the first word of "gcc", so it can be a program name with args.
3098 set dummy gcc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3102   $as_echo_n "(cached) " >&6
3103 else
3104   if test -n "$ac_ct_CC"; then
3105   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110   IFS=$as_save_IFS
3111   test -z "$as_dir" && as_dir=.
3112     for ac_exec_ext in '' $ac_executable_extensions; do
3113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114     ac_cv_prog_ac_ct_CC="gcc"
3115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116     break 2
3117   fi
3118 done
3119   done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3125 if test -n "$ac_ct_CC"; then
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3127 $as_echo "$ac_ct_CC" >&6; }
3128 else
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133   if test "x$ac_ct_CC" = x; then
3134     CC=""
3135   else
3136     case $cross_compiling:$ac_tool_warned in
3137 yes:)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned=yes ;;
3141 esac
3142     CC=$ac_ct_CC
3143   fi
3144 else
3145   CC="$ac_cv_prog_CC"
3146 fi
3147
3148 if test -z "$CC"; then
3149           if test -n "$ac_tool_prefix"; then
3150     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}cc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_CC+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$CC"; then
3158   ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167     ac_cv_prog_CC="${ac_tool_prefix}cc"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187   fi
3188 fi
3189 if test -z "$CC"; then
3190   # Extract the first word of "cc", so it can be a program name with args.
3191 set dummy cc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if ${ac_cv_prog_CC+:} false; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$CC"; then
3198   ac_cv_prog_CC="$CC" # Let the user override the test.
3199 else
3200   ac_prog_rejected=no
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3209        ac_prog_rejected=yes
3210        continue
3211      fi
3212     ac_cv_prog_CC="cc"
3213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214     break 2
3215   fi
3216 done
3217   done
3218 IFS=$as_save_IFS
3219
3220 if test $ac_prog_rejected = yes; then
3221   # We found a bogon in the path, so make sure we never use it.
3222   set dummy $ac_cv_prog_CC
3223   shift
3224   if test $# != 0; then
3225     # We chose a different compiler from the bogus one.
3226     # However, it has the same basename, so the bogon will be chosen
3227     # first if we set CC to just the basename; use the full file name.
3228     shift
3229     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3230   fi
3231 fi
3232 fi
3233 fi
3234 CC=$ac_cv_prog_CC
3235 if test -n "$CC"; then
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237 $as_echo "$CC" >&6; }
3238 else
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244 fi
3245 if test -z "$CC"; then
3246   if test -n "$ac_tool_prefix"; then
3247   for ac_prog in cl.exe
3248   do
3249     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_CC+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   if test -n "$CC"; then
3257   ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264     for ac_exec_ext in '' $ac_executable_extensions; do
3265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271   done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286     test -n "$CC" && break
3287   done
3288 fi
3289 if test -z "$CC"; then
3290   ac_ct_CC=$CC
3291   for ac_prog in cl.exe
3292 do
3293   # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3298   $as_echo_n "(cached) " >&6
3299 else
3300   if test -n "$ac_ct_CC"; then
3301   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308     for ac_exec_ext in '' $ac_executable_extensions; do
3309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310     ac_cv_prog_ac_ct_CC="$ac_prog"
3311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315   done
3316 IFS=$as_save_IFS
3317
3318 fi
3319 fi
3320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3321 if test -n "$ac_ct_CC"; then
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3323 $as_echo "$ac_ct_CC" >&6; }
3324 else
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 fi
3328
3329
3330   test -n "$ac_ct_CC" && break
3331 done
3332
3333   if test "x$ac_ct_CC" = x; then
3334     CC=""
3335   else
3336     case $cross_compiling:$ac_tool_warned in
3337 yes:)
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3340 ac_tool_warned=yes ;;
3341 esac
3342     CC=$ac_ct_CC
3343   fi
3344 fi
3345
3346 fi
3347
3348
3349 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "no acceptable C compiler found in \$PATH
3352 See \`config.log' for more details" "$LINENO" 5; }
3353
3354 # Provide some information about the compiler.
3355 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3356 set X $ac_compile
3357 ac_compiler=$2
3358 for ac_option in --version -v -V -qversion; do
3359   { { ac_try="$ac_compiler $ac_option >&5"
3360 case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3367   ac_status=$?
3368   if test -s conftest.err; then
3369     sed '10a\
3370 ... rest of stderr output deleted ...
3371          10q' conftest.err >conftest.er1
3372     cat conftest.er1 >&5
3373   fi
3374   rm -f conftest.er1 conftest.err
3375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376   test $ac_status = 0; }
3377 done
3378
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h.  */
3381
3382 int
3383 main ()
3384 {
3385
3386   ;
3387   return 0;
3388 }
3389 _ACEOF
3390 ac_clean_files_save=$ac_clean_files
3391 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3392 # Try to create an executable without -o first, disregard a.out.
3393 # It will help us diagnose broken compilers, and finding out an intuition
3394 # of exeext.
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3396 $as_echo_n "checking whether the C compiler works... " >&6; }
3397 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3398
3399 # The possible output files:
3400 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3401
3402 ac_rmfiles=
3403 for ac_file in $ac_files
3404 do
3405   case $ac_file in
3406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3408   esac
3409 done
3410 rm -f $ac_rmfiles
3411
3412 if { { ac_try="$ac_link_default"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419   (eval "$ac_link_default") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422   test $ac_status = 0; }; then :
3423   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3424 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3425 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3426 # so that the user can short-circuit this test for compilers unknown to
3427 # Autoconf.
3428 for ac_file in $ac_files ''
3429 do
3430   test -f "$ac_file" || continue
3431   case $ac_file in
3432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3433         ;;
3434     [ab].out )
3435         # We found the default executable, but exeext='' is most
3436         # certainly right.
3437         break;;
3438     *.* )
3439         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3440         then :; else
3441            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442         fi
3443         # We set ac_cv_exeext here because the later test for it is not
3444         # safe: cross compilers may not add the suffix if given an `-o'
3445         # argument, so we may need to know it at that point already.
3446         # Even if this section looks crufty: it has the advantage of
3447         # actually working.
3448         break;;
3449     * )
3450         break;;
3451   esac
3452 done
3453 test "$ac_cv_exeext" = no && ac_cv_exeext=
3454
3455 else
3456   ac_file=''
3457 fi
3458 if test -z "$ac_file"; then :
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error 77 "C compiler cannot create executables
3467 See \`config.log' for more details" "$LINENO" 5; }
3468 else
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470 $as_echo "yes" >&6; }
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3473 $as_echo_n "checking for C compiler default output file name... " >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3475 $as_echo "$ac_file" >&6; }
3476 ac_exeext=$ac_cv_exeext
3477
3478 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3479 ac_clean_files=$ac_clean_files_save
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3481 $as_echo_n "checking for suffix of executables... " >&6; }
3482 if { { ac_try="$ac_link"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489   (eval "$ac_link") 2>&5
3490   ac_status=$?
3491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492   test $ac_status = 0; }; then :
3493   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3494 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3495 # work properly (i.e., refer to `conftest.exe'), while it won't with
3496 # `rm'.
3497 for ac_file in conftest.exe conftest conftest.*; do
3498   test -f "$ac_file" || continue
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3502           break;;
3503     * ) break;;
3504   esac
3505 done
3506 else
3507   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3510 See \`config.log' for more details" "$LINENO" 5; }
3511 fi
3512 rm -f conftest conftest$ac_cv_exeext
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3514 $as_echo "$ac_cv_exeext" >&6; }
3515
3516 rm -f conftest.$ac_ext
3517 EXEEXT=$ac_cv_exeext
3518 ac_exeext=$EXEEXT
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521 #include <stdio.h>
3522 int
3523 main ()
3524 {
3525 FILE *f = fopen ("conftest.out", "w");
3526  return ferror (f) || fclose (f) != 0;
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 ac_clean_files="$ac_clean_files conftest.out"
3533 # Check that the compiler produces executables we can run.  If not, either
3534 # the compiler is broken, or we cross compile.
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3536 $as_echo_n "checking whether we are cross compiling... " >&6; }
3537 if test "$cross_compiling" != yes; then
3538   { { ac_try="$ac_link"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545   (eval "$ac_link") 2>&5
3546   ac_status=$?
3547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548   test $ac_status = 0; }
3549   if { ac_try='./conftest$ac_cv_exeext'
3550   { { case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556   (eval "$ac_try") 2>&5
3557   ac_status=$?
3558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559   test $ac_status = 0; }; }; then
3560     cross_compiling=no
3561   else
3562     if test "$cross_compiling" = maybe; then
3563         cross_compiling=yes
3564     else
3565         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "cannot run C compiled programs.
3568 If you meant to cross compile, use \`--host'.
3569 See \`config.log' for more details" "$LINENO" 5; }
3570     fi
3571   fi
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3574 $as_echo "$cross_compiling" >&6; }
3575
3576 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3577 ac_clean_files=$ac_clean_files_save
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3579 $as_echo_n "checking for suffix of object files... " >&6; }
3580 if ${ac_cv_objext+:} false; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h.  */
3585
3586 int
3587 main ()
3588 {
3589
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 rm -f conftest.o conftest.obj
3595 if { { ac_try="$ac_compile"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602   (eval "$ac_compile") 2>&5
3603   ac_status=$?
3604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605   test $ac_status = 0; }; then :
3606   for ac_file in conftest.o conftest.obj conftest.*; do
3607   test -f "$ac_file" || continue;
3608   case $ac_file in
3609     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3610     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3611        break;;
3612   esac
3613 done
3614 else
3615   $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "cannot compute suffix of object files: cannot compile
3621 See \`config.log' for more details" "$LINENO" 5; }
3622 fi
3623 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3626 $as_echo "$ac_cv_objext" >&6; }
3627 OBJEXT=$ac_cv_objext
3628 ac_objext=$OBJEXT
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3630 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3631 if ${ac_cv_c_compiler_gnu+:} false; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640 #ifndef __GNUC__
3641        choke me
3642 #endif
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649   ac_compiler_gnu=yes
3650 else
3651   ac_compiler_gnu=no
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3655
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3658 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3659 if test $ac_compiler_gnu = yes; then
3660   GCC=yes
3661 else
3662   GCC=
3663 fi
3664 ac_test_CFLAGS=${CFLAGS+set}
3665 ac_save_CFLAGS=$CFLAGS
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3667 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3668 if ${ac_cv_prog_cc_g+:} false; then :
3669   $as_echo_n "(cached) " >&6
3670 else
3671   ac_save_c_werror_flag=$ac_c_werror_flag
3672    ac_c_werror_flag=yes
3673    ac_cv_prog_cc_g=no
3674    CFLAGS="-g"
3675    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h.  */
3677
3678 int
3679 main ()
3680 {
3681
3682   ;
3683   return 0;
3684 }
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687   ac_cv_prog_cc_g=yes
3688 else
3689   CFLAGS=""
3690       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h.  */
3692
3693 int
3694 main ()
3695 {
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702
3703 else
3704   ac_c_werror_flag=$ac_save_c_werror_flag
3705          CFLAGS="-g"
3706          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h.  */
3708
3709 int
3710 main ()
3711 {
3712
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718   ac_cv_prog_cc_g=yes
3719 fi
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 fi
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725    ac_c_werror_flag=$ac_save_c_werror_flag
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730   CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732   if test "$GCC" = yes; then
3733     CFLAGS="-g -O2"
3734   else
3735     CFLAGS="-g"
3736   fi
3737 else
3738   if test "$GCC" = yes; then
3739     CFLAGS="-O2"
3740   else
3741     CFLAGS=
3742   fi
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if ${ac_cv_prog_cc_c89+:} false; then :
3747   $as_echo_n "(cached) " >&6
3748 else
3749   ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h.  */
3753 #include <stdarg.h>
3754 #include <stdio.h>
3755 struct stat;
3756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3757 struct buf { int x; };
3758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3759 static char *e (p, i)
3760      char **p;
3761      int i;
3762 {
3763   return p[i];
3764 }
3765 static char *f (char * (*g) (char **, int), char **p, ...)
3766 {
3767   char *s;
3768   va_list v;
3769   va_start (v,p);
3770   s = g (p, va_arg (v,int));
3771   va_end (v);
3772   return s;
3773 }
3774
3775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3776    function prototypes and stuff, but not '\xHH' hex character constants.
3777    These don't provoke an error unfortunately, instead are silently treated
3778    as 'x'.  The following induces an error, until -std is added to get
3779    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3780    array size at least.  It's necessary to write '\x00'==0 to get something
3781    that's true only with -std.  */
3782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3783
3784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3785    inside strings and character constants.  */
3786 #define FOO(x) 'x'
3787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3788
3789 int test (int i, double x);
3790 struct s1 {int (*f) (int a);};
3791 struct s2 {int (*f) (double a);};
3792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3793 int argc;
3794 char **argv;
3795 int
3796 main ()
3797 {
3798 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3804         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 do
3806   CC="$ac_save_CC $ac_arg"
3807   if ac_fn_c_try_compile "$LINENO"; then :
3808   ac_cv_prog_cc_c89=$ac_arg
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext
3811   test "x$ac_cv_prog_cc_c89" != "xno" && break
3812 done
3813 rm -f conftest.$ac_ext
3814 CC=$ac_save_CC
3815
3816 fi
3817 # AC_CACHE_VAL
3818 case "x$ac_cv_prog_cc_c89" in
3819   x)
3820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3821 $as_echo "none needed" >&6; } ;;
3822   xno)
3823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3824 $as_echo "unsupported" >&6; } ;;
3825   *)
3826     CC="$CC $ac_cv_prog_cc_c89"
3827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3829 esac
3830 if test "x$ac_cv_prog_cc_c89" != xno; then :
3831
3832 fi
3833
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
3840 depcc="$CC"   am_compiler_list=
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843 $as_echo_n "checking dependency style of $depcc... " >&6; }
3844 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848   # We make a subdir and do the tests there.  Otherwise we can end up
3849   # making bogus files that we don't know about and never remove.  For
3850   # instance it was reported that on HP-UX the gcc test will end up
3851   # making a dummy file named `D' -- because `-MD' means `put the output
3852   # in D'.
3853   rm -rf conftest.dir
3854   mkdir conftest.dir
3855   # Copy depcomp to subdir because otherwise we won't find it if we're
3856   # using a relative directory.
3857   cp "$am_depcomp" conftest.dir
3858   cd conftest.dir
3859   # We will build objects and dependencies in a subdirectory because
3860   # it helps to detect inapplicable dependency modes.  For instance
3861   # both Tru64's cc and ICC support -MD to output dependencies as a
3862   # side effect of compilation, but ICC will put the dependencies in
3863   # the current directory while Tru64 will put them in the object
3864   # directory.
3865   mkdir sub
3866
3867   am_cv_CC_dependencies_compiler_type=none
3868   if test "$am_compiler_list" = ""; then
3869      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3870   fi
3871   am__universal=false
3872   case " $depcc " in #(
3873      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874      esac
3875
3876   for depmode in $am_compiler_list; do
3877     # Setup a source with many dependencies, because some compilers
3878     # like to wrap large dependency lists on column 80 (with \), and
3879     # we should not choose a depcomp mode which is confused by this.
3880     #
3881     # We need to recreate these files for each test, as the compiler may
3882     # overwrite some of them when testing with obscure command lines.
3883     # This happens at least with the AIX C compiler.
3884     : > sub/conftest.c
3885     for i in 1 2 3 4 5 6; do
3886       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888       # Solaris 8's {/usr,}/bin/sh.
3889       touch sub/conftst$i.h
3890     done
3891     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3892
3893     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894     # mode.  It turns out that the SunPro C++ compiler does not properly
3895     # handle `-M -o', and we need to detect this.  Also, some Intel
3896     # versions had trouble with output in subdirs
3897     am__obj=sub/conftest.${OBJEXT-o}
3898     am__minus_obj="-o $am__obj"
3899     case $depmode in
3900     gcc)
3901       # This depmode causes a compiler race in universal mode.
3902       test "$am__universal" = false || continue
3903       ;;
3904     nosideeffect)
3905       # after this tag, mechanisms are not by side-effect, so they'll
3906       # only be used when explicitly requested
3907       if test "x$enable_dependency_tracking" = xyes; then
3908         continue
3909       else
3910         break
3911       fi
3912       ;;
3913     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3914       # This compiler won't grok `-c -o', but also, the minuso test has
3915       # not run yet.  These depmodes are late enough in the game, and
3916       # so weak that their functioning should not be impacted.
3917       am__obj=conftest.${OBJEXT-o}
3918       am__minus_obj=
3919       ;;
3920     none) break ;;
3921     esac
3922     if depmode=$depmode \
3923        source=sub/conftest.c object=$am__obj \
3924        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926          >/dev/null 2>conftest.err &&
3927        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931       # icc doesn't choke on unknown options, it will just issue warnings
3932       # or remarks (even with -Werror).  So we grep stderr for any message
3933       # that says an option was ignored or not supported.
3934       # When given -MP, icc 7.0 and 7.1 complain thusly:
3935       #   icc: Command line warning: ignoring option '-M'; no argument required
3936       # The diagnosis changed in icc 8.0:
3937       #   icc: Command line remark: option '-MP' not supported
3938       if (grep 'ignoring option' conftest.err ||
3939           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940         am_cv_CC_dependencies_compiler_type=$depmode
3941         break
3942       fi
3943     fi
3944   done
3945
3946   cd ..
3947   rm -rf conftest.dir
3948 else
3949   am_cv_CC_dependencies_compiler_type=none
3950 fi
3951
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3954 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3956
3957  if
3958   test "x$enable_dependency_tracking" != xno \
3959   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960   am__fastdepCC_TRUE=
3961   am__fastdepCC_FALSE='#'
3962 else
3963   am__fastdepCC_TRUE='#'
3964   am__fastdepCC_FALSE=
3965 fi
3966
3967
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3969 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3970 if ${ac_cv_path_SED+:} false; then :
3971   $as_echo_n "(cached) " >&6
3972 else
3973             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3974      for ac_i in 1 2 3 4 5 6 7; do
3975        ac_script="$ac_script$as_nl$ac_script"
3976      done
3977      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3978      { ac_script=; unset ac_script;}
3979      if test -z "$SED"; then
3980   ac_path_SED_found=false
3981   # Loop through the user's path and test for each of PROGNAME-LIST
3982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987     for ac_prog in sed gsed; do
3988     for ac_exec_ext in '' $ac_executable_extensions; do
3989       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3990       as_fn_executable_p "$ac_path_SED" || continue
3991 # Check for GNU ac_path_SED and select it if it is found.
3992   # Check for GNU $ac_path_SED
3993 case `"$ac_path_SED" --version 2>&1` in
3994 *GNU*)
3995   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3996 *)
3997   ac_count=0
3998   $as_echo_n 0123456789 >"conftest.in"
3999   while :
4000   do
4001     cat "conftest.in" "conftest.in" >"conftest.tmp"
4002     mv "conftest.tmp" "conftest.in"
4003     cp "conftest.in" "conftest.nl"
4004     $as_echo '' >> "conftest.nl"
4005     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007     as_fn_arith $ac_count + 1 && ac_count=$as_val
4008     if test $ac_count -gt ${ac_path_SED_max-0}; then
4009       # Best one so far, save it but keep looking for a better one
4010       ac_cv_path_SED="$ac_path_SED"
4011       ac_path_SED_max=$ac_count
4012     fi
4013     # 10*(2^10) chars as input seems more than enough
4014     test $ac_count -gt 10 && break
4015   done
4016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017 esac
4018
4019       $ac_path_SED_found && break 3
4020     done
4021   done
4022   done
4023 IFS=$as_save_IFS
4024   if test -z "$ac_cv_path_SED"; then
4025     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4026   fi
4027 else
4028   ac_cv_path_SED=$SED
4029 fi
4030
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4033 $as_echo "$ac_cv_path_SED" >&6; }
4034  SED="$ac_cv_path_SED"
4035   rm -f conftest.sed
4036
4037 test -z "$SED" && SED=sed
4038 Xsed="$SED -e 1s/^X//"
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4051 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4052 if ${ac_cv_path_GREP+:} false; then :
4053   $as_echo_n "(cached) " >&6
4054 else
4055   if test -z "$GREP"; then
4056   ac_path_GREP_found=false
4057   # Loop through the user's path and test for each of PROGNAME-LIST
4058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4060 do
4061   IFS=$as_save_IFS
4062   test -z "$as_dir" && as_dir=.
4063     for ac_prog in grep ggrep; do
4064     for ac_exec_ext in '' $ac_executable_extensions; do
4065       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4066       as_fn_executable_p "$ac_path_GREP" || continue
4067 # Check for GNU ac_path_GREP and select it if it is found.
4068   # Check for GNU $ac_path_GREP
4069 case `"$ac_path_GREP" --version 2>&1` in
4070 *GNU*)
4071   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4072 *)
4073   ac_count=0
4074   $as_echo_n 0123456789 >"conftest.in"
4075   while :
4076   do
4077     cat "conftest.in" "conftest.in" >"conftest.tmp"
4078     mv "conftest.tmp" "conftest.in"
4079     cp "conftest.in" "conftest.nl"
4080     $as_echo 'GREP' >> "conftest.nl"
4081     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4082     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4083     as_fn_arith $ac_count + 1 && ac_count=$as_val
4084     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4085       # Best one so far, save it but keep looking for a better one
4086       ac_cv_path_GREP="$ac_path_GREP"
4087       ac_path_GREP_max=$ac_count
4088     fi
4089     # 10*(2^10) chars as input seems more than enough
4090     test $ac_count -gt 10 && break
4091   done
4092   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4093 esac
4094
4095       $ac_path_GREP_found && break 3
4096     done
4097   done
4098   done
4099 IFS=$as_save_IFS
4100   if test -z "$ac_cv_path_GREP"; then
4101     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4102   fi
4103 else
4104   ac_cv_path_GREP=$GREP
4105 fi
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4109 $as_echo "$ac_cv_path_GREP" >&6; }
4110  GREP="$ac_cv_path_GREP"
4111
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4114 $as_echo_n "checking for egrep... " >&6; }
4115 if ${ac_cv_path_EGREP+:} false; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4119    then ac_cv_path_EGREP="$GREP -E"
4120    else
4121      if test -z "$EGREP"; then
4122   ac_path_EGREP_found=false
4123   # Loop through the user's path and test for each of PROGNAME-LIST
4124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129     for ac_prog in egrep; do
4130     for ac_exec_ext in '' $ac_executable_extensions; do
4131       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4132       as_fn_executable_p "$ac_path_EGREP" || continue
4133 # Check for GNU ac_path_EGREP and select it if it is found.
4134   # Check for GNU $ac_path_EGREP
4135 case `"$ac_path_EGREP" --version 2>&1` in
4136 *GNU*)
4137   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4138 *)
4139   ac_count=0
4140   $as_echo_n 0123456789 >"conftest.in"
4141   while :
4142   do
4143     cat "conftest.in" "conftest.in" >"conftest.tmp"
4144     mv "conftest.tmp" "conftest.in"
4145     cp "conftest.in" "conftest.nl"
4146     $as_echo 'EGREP' >> "conftest.nl"
4147     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149     as_fn_arith $ac_count + 1 && ac_count=$as_val
4150     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4151       # Best one so far, save it but keep looking for a better one
4152       ac_cv_path_EGREP="$ac_path_EGREP"
4153       ac_path_EGREP_max=$ac_count
4154     fi
4155     # 10*(2^10) chars as input seems more than enough
4156     test $ac_count -gt 10 && break
4157   done
4158   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 esac
4160
4161       $ac_path_EGREP_found && break 3
4162     done
4163   done
4164   done
4165 IFS=$as_save_IFS
4166   if test -z "$ac_cv_path_EGREP"; then
4167     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4168   fi
4169 else
4170   ac_cv_path_EGREP=$EGREP
4171 fi
4172
4173    fi
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4176 $as_echo "$ac_cv_path_EGREP" >&6; }
4177  EGREP="$ac_cv_path_EGREP"
4178
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4181 $as_echo_n "checking for fgrep... " >&6; }
4182 if ${ac_cv_path_FGREP+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4186    then ac_cv_path_FGREP="$GREP -F"
4187    else
4188      if test -z "$FGREP"; then
4189   ac_path_FGREP_found=false
4190   # Loop through the user's path and test for each of PROGNAME-LIST
4191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196     for ac_prog in fgrep; do
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4199       as_fn_executable_p "$ac_path_FGREP" || continue
4200 # Check for GNU ac_path_FGREP and select it if it is found.
4201   # Check for GNU $ac_path_FGREP
4202 case `"$ac_path_FGREP" --version 2>&1` in
4203 *GNU*)
4204   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4205 *)
4206   ac_count=0
4207   $as_echo_n 0123456789 >"conftest.in"
4208   while :
4209   do
4210     cat "conftest.in" "conftest.in" >"conftest.tmp"
4211     mv "conftest.tmp" "conftest.in"
4212     cp "conftest.in" "conftest.nl"
4213     $as_echo 'FGREP' >> "conftest.nl"
4214     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4215     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4216     as_fn_arith $ac_count + 1 && ac_count=$as_val
4217     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4218       # Best one so far, save it but keep looking for a better one
4219       ac_cv_path_FGREP="$ac_path_FGREP"
4220       ac_path_FGREP_max=$ac_count
4221     fi
4222     # 10*(2^10) chars as input seems more than enough
4223     test $ac_count -gt 10 && break
4224   done
4225   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4226 esac
4227
4228       $ac_path_FGREP_found && break 3
4229     done
4230   done
4231   done
4232 IFS=$as_save_IFS
4233   if test -z "$ac_cv_path_FGREP"; then
4234     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4235   fi
4236 else
4237   ac_cv_path_FGREP=$FGREP
4238 fi
4239
4240    fi
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4243 $as_echo "$ac_cv_path_FGREP" >&6; }
4244  FGREP="$ac_cv_path_FGREP"
4245
4246
4247 test -z "$GREP" && GREP=grep
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 # Check whether --with-gnu-ld was given.
4268 if test "${with_gnu_ld+set}" = set; then :
4269   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4270 else
4271   with_gnu_ld=no
4272 fi
4273
4274 ac_prog=ld
4275 if test "$GCC" = yes; then
4276   # Check if gcc -print-prog-name=ld gives a path.
4277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4278 $as_echo_n "checking for ld used by $CC... " >&6; }
4279   case $host in
4280   *-*-mingw*)
4281     # gcc leaves a trailing carriage return which upsets mingw
4282     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4283   *)
4284     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4285   esac
4286   case $ac_prog in
4287     # Accept absolute paths.
4288     [\\/]* | ?:[\\/]*)
4289       re_direlt='/[^/][^/]*/\.\./'
4290       # Canonicalize the pathname of ld
4291       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4292       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4293         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4294       done
4295       test -z "$LD" && LD="$ac_prog"
4296       ;;
4297   "")
4298     # If it fails, then pretend we aren't using GCC.
4299     ac_prog=ld
4300     ;;
4301   *)
4302     # If it is relative, then search for the first ld in PATH.
4303     with_gnu_ld=unknown
4304     ;;
4305   esac
4306 elif test "$with_gnu_ld" = yes; then
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4308 $as_echo_n "checking for GNU ld... " >&6; }
4309 else
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4311 $as_echo_n "checking for non-GNU ld... " >&6; }
4312 fi
4313 if ${lt_cv_path_LD+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   if test -z "$LD"; then
4317   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4318   for ac_dir in $PATH; do
4319     IFS="$lt_save_ifs"
4320     test -z "$ac_dir" && ac_dir=.
4321     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4322       lt_cv_path_LD="$ac_dir/$ac_prog"
4323       # Check to see if the program is GNU ld.  I'd rather use --version,
4324       # but apparently some variants of GNU ld only accept -v.
4325       # Break only if it was the GNU/non-GNU ld that we prefer.
4326       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4327       *GNU* | *'with BFD'*)
4328         test "$with_gnu_ld" != no && break
4329         ;;
4330       *)
4331         test "$with_gnu_ld" != yes && break
4332         ;;
4333       esac
4334     fi
4335   done
4336   IFS="$lt_save_ifs"
4337 else
4338   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4339 fi
4340 fi
4341
4342 LD="$lt_cv_path_LD"
4343 if test -n "$LD"; then
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4345 $as_echo "$LD" >&6; }
4346 else
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4352 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4353 if ${lt_cv_prog_gnu_ld+:} false; then :
4354   $as_echo_n "(cached) " >&6
4355 else
4356   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4357 case `$LD -v 2>&1 </dev/null` in
4358 *GNU* | *'with BFD'*)
4359   lt_cv_prog_gnu_ld=yes
4360   ;;
4361 *)
4362   lt_cv_prog_gnu_ld=no
4363   ;;
4364 esac
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4367 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4368 with_gnu_ld=$lt_cv_prog_gnu_ld
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4379 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4380 if ${lt_cv_path_NM+:} false; then :
4381   $as_echo_n "(cached) " >&6
4382 else
4383   if test -n "$NM"; then
4384   # Let the user override the test.
4385   lt_cv_path_NM="$NM"
4386 else
4387   lt_nm_to_check="${ac_tool_prefix}nm"
4388   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4389     lt_nm_to_check="$lt_nm_to_check nm"
4390   fi
4391   for lt_tmp_nm in $lt_nm_to_check; do
4392     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4393     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4394       IFS="$lt_save_ifs"
4395       test -z "$ac_dir" && ac_dir=.
4396       tmp_nm="$ac_dir/$lt_tmp_nm"
4397       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4398         # Check to see if the nm accepts a BSD-compat flag.
4399         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4400         #   nm: unknown option "B" ignored
4401         # Tru64's nm complains that /dev/null is an invalid object file
4402         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4403         */dev/null* | *'Invalid file or object type'*)
4404           lt_cv_path_NM="$tmp_nm -B"
4405           break
4406           ;;
4407         *)
4408           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4409           */dev/null*)
4410             lt_cv_path_NM="$tmp_nm -p"
4411             break
4412             ;;
4413           *)
4414             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4415             continue # so that we can try to find one that supports BSD flags
4416             ;;
4417           esac
4418           ;;
4419         esac
4420       fi
4421     done
4422     IFS="$lt_save_ifs"
4423   done
4424   : ${lt_cv_path_NM=no}
4425 fi
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4428 $as_echo "$lt_cv_path_NM" >&6; }
4429 if test "$lt_cv_path_NM" != "no"; then
4430   NM="$lt_cv_path_NM"
4431 else
4432   # Didn't find any BSD compatible name lister, look for dumpbin.
4433   if test -n "$DUMPBIN"; then :
4434     # Let the user override the test.
4435   else
4436     if test -n "$ac_tool_prefix"; then
4437   for ac_prog in dumpbin "link -dump"
4438   do
4439     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_prog_DUMPBIN+:} false; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   if test -n "$DUMPBIN"; then
4447   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_exec_ext in '' $ac_executable_extensions; do
4455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461   done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 DUMPBIN=$ac_cv_prog_DUMPBIN
4467 if test -n "$DUMPBIN"; then
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4469 $as_echo "$DUMPBIN" >&6; }
4470 else
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476     test -n "$DUMPBIN" && break
4477   done
4478 fi
4479 if test -z "$DUMPBIN"; then
4480   ac_ct_DUMPBIN=$DUMPBIN
4481   for ac_prog in dumpbin "link -dump"
4482 do
4483   # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   if test -n "$ac_ct_DUMPBIN"; then
4491   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498     for ac_exec_ext in '' $ac_executable_extensions; do
4499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502     break 2
4503   fi
4504 done
4505   done
4506 IFS=$as_save_IFS
4507
4508 fi
4509 fi
4510 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4511 if test -n "$ac_ct_DUMPBIN"; then
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4513 $as_echo "$ac_ct_DUMPBIN" >&6; }
4514 else
4515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4517 fi
4518
4519
4520   test -n "$ac_ct_DUMPBIN" && break
4521 done
4522
4523   if test "x$ac_ct_DUMPBIN" = x; then
4524     DUMPBIN=":"
4525   else
4526     case $cross_compiling:$ac_tool_warned in
4527 yes:)
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4530 ac_tool_warned=yes ;;
4531 esac
4532     DUMPBIN=$ac_ct_DUMPBIN
4533   fi
4534 fi
4535
4536     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4537     *COFF*)
4538       DUMPBIN="$DUMPBIN -symbols"
4539       ;;
4540     *)
4541       DUMPBIN=:
4542       ;;
4543     esac
4544   fi
4545
4546   if test "$DUMPBIN" != ":"; then
4547     NM="$DUMPBIN"
4548   fi
4549 fi
4550 test -z "$NM" && NM=nm
4551
4552
4553
4554
4555
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4558 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4559 if ${lt_cv_nm_interface+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   lt_cv_nm_interface="BSD nm"
4563   echo "int some_variable = 0;" > conftest.$ac_ext
4564   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4565   (eval "$ac_compile" 2>conftest.err)
4566   cat conftest.err >&5
4567   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4568   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4569   cat conftest.err >&5
4570   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4571   cat conftest.out >&5
4572   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4573     lt_cv_nm_interface="MS dumpbin"
4574   fi
4575   rm -f conftest*
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4578 $as_echo "$lt_cv_nm_interface" >&6; }
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4581 $as_echo_n "checking whether ln -s works... " >&6; }
4582 LN_S=$as_ln_s
4583 if test "$LN_S" = "ln -s"; then
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 $as_echo "yes" >&6; }
4586 else
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4588 $as_echo "no, using $LN_S" >&6; }
4589 fi
4590
4591 # find the maximum length of command line arguments
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4593 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4594 if ${lt_cv_sys_max_cmd_len+:} false; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597     i=0
4598   teststring="ABCD"
4599
4600   case $build_os in
4601   msdosdjgpp*)
4602     # On DJGPP, this test can blow up pretty badly due to problems in libc
4603     # (any single argument exceeding 2000 bytes causes a buffer overrun
4604     # during glob expansion).  Even if it were fixed, the result of this
4605     # check would be larger than it should be.
4606     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4607     ;;
4608
4609   gnu*)
4610     # Under GNU Hurd, this test is not required because there is
4611     # no limit to the length of command line arguments.
4612     # Libtool will interpret -1 as no limit whatsoever
4613     lt_cv_sys_max_cmd_len=-1;
4614     ;;
4615
4616   cygwin* | mingw* | cegcc*)
4617     # On Win9x/ME, this test blows up -- it succeeds, but takes
4618     # about 5 minutes as the teststring grows exponentially.
4619     # Worse, since 9x/ME are not pre-emptively multitasking,
4620     # you end up with a "frozen" computer, even though with patience
4621     # the test eventually succeeds (with a max line length of 256k).
4622     # Instead, let's just punt: use the minimum linelength reported by
4623     # all of the supported platforms: 8192 (on NT/2K/XP).
4624     lt_cv_sys_max_cmd_len=8192;
4625     ;;
4626
4627   mint*)
4628     # On MiNT this can take a long time and run out of memory.
4629     lt_cv_sys_max_cmd_len=8192;
4630     ;;
4631
4632   amigaos*)
4633     # On AmigaOS with pdksh, this test takes hours, literally.
4634     # So we just punt and use a minimum line length of 8192.
4635     lt_cv_sys_max_cmd_len=8192;
4636     ;;
4637
4638   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4639     # This has been around since 386BSD, at least.  Likely further.
4640     if test -x /sbin/sysctl; then
4641       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4642     elif test -x /usr/sbin/sysctl; then
4643       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4644     else
4645       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4646     fi
4647     # And add a safety zone
4648     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4649     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4650     ;;
4651
4652   interix*)
4653     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4654     lt_cv_sys_max_cmd_len=196608
4655     ;;
4656
4657   os2*)
4658     # The test takes a long time on OS/2.
4659     lt_cv_sys_max_cmd_len=8192
4660     ;;
4661
4662   osf*)
4663     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4664     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4665     # nice to cause kernel panics so lets avoid the loop below.
4666     # First set a reasonable default.
4667     lt_cv_sys_max_cmd_len=16384
4668     #
4669     if test -x /sbin/sysconfig; then
4670       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4671         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4672       esac
4673     fi
4674     ;;
4675   sco3.2v5*)
4676     lt_cv_sys_max_cmd_len=102400
4677     ;;
4678   sysv5* | sco5v6* | sysv4.2uw2*)
4679     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4680     if test -n "$kargmax"; then
4681       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4682     else
4683       lt_cv_sys_max_cmd_len=32768
4684     fi
4685     ;;
4686   *)
4687     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4688     if test -n "$lt_cv_sys_max_cmd_len"; then
4689       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4690       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4691     else
4692       # Make teststring a little bigger before we do anything with it.
4693       # a 1K string should be a reasonable start.
4694       for i in 1 2 3 4 5 6 7 8 ; do
4695         teststring=$teststring$teststring
4696       done
4697       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4698       # If test is not a shell built-in, we'll probably end up computing a
4699       # maximum length that is only half of the actual maximum length, but
4700       # we can't tell.
4701       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4702                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4703               test $i != 17 # 1/2 MB should be enough
4704       do
4705         i=`expr $i + 1`
4706         teststring=$teststring$teststring
4707       done
4708       # Only check the string length outside the loop.
4709       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4710       teststring=
4711       # Add a significant safety factor because C++ compilers can tack on
4712       # massive amounts of additional arguments before passing them to the
4713       # linker.  It appears as though 1/2 is a usable value.
4714       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4715     fi
4716     ;;
4717   esac
4718
4719 fi
4720
4721 if test -n $lt_cv_sys_max_cmd_len ; then
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4723 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4724 else
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4726 $as_echo "none" >&6; }
4727 fi
4728 max_cmd_len=$lt_cv_sys_max_cmd_len
4729
4730
4731
4732
4733
4734
4735 : ${CP="cp -f"}
4736 : ${MV="mv -f"}
4737 : ${RM="rm -f"}
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4740 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4741 # Try some XSI features
4742 xsi_shell=no
4743 ( _lt_dummy="a/b/c"
4744   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4745       = c,a/b,b/c, \
4746     && eval 'test $(( 1 + 1 )) -eq 2 \
4747     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4748   && xsi_shell=yes
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4750 $as_echo "$xsi_shell" >&6; }
4751
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4754 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4755 lt_shell_append=no
4756 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4757     >/dev/null 2>&1 \
4758   && lt_shell_append=yes
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4760 $as_echo "$lt_shell_append" >&6; }
4761
4762
4763 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4764   lt_unset=unset
4765 else
4766   lt_unset=false
4767 fi
4768
4769
4770
4771
4772
4773 # test EBCDIC or ASCII
4774 case `echo X|tr X '\101'` in
4775  A) # ASCII based system
4776     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4777   lt_SP2NL='tr \040 \012'
4778   lt_NL2SP='tr \015\012 \040\040'
4779   ;;
4780  *) # EBCDIC based system
4781   lt_SP2NL='tr \100 \n'
4782   lt_NL2SP='tr \r\n \100\100'
4783   ;;
4784 esac
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4795 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4796 if ${lt_cv_to_host_file_cmd+:} false; then :
4797   $as_echo_n "(cached) " >&6
4798 else
4799   case $host in
4800   *-*-mingw* )
4801     case $build in
4802       *-*-mingw* ) # actually msys
4803         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4804         ;;
4805       *-*-cygwin* )
4806         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4807         ;;
4808       * ) # otherwise, assume *nix
4809         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4810         ;;
4811     esac
4812     ;;
4813   *-*-cygwin* )
4814     case $build in
4815       *-*-mingw* ) # actually msys
4816         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4817         ;;
4818       *-*-cygwin* )
4819         lt_cv_to_host_file_cmd=func_convert_file_noop
4820         ;;
4821       * ) # otherwise, assume *nix
4822         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4823         ;;
4824     esac
4825     ;;
4826   * ) # unhandled hosts (and "normal" native builds)
4827     lt_cv_to_host_file_cmd=func_convert_file_noop
4828     ;;
4829 esac
4830
4831 fi
4832
4833 to_host_file_cmd=$lt_cv_to_host_file_cmd
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4835 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4836
4837
4838
4839
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4842 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4843 if ${lt_cv_to_tool_file_cmd+:} false; then :
4844   $as_echo_n "(cached) " >&6
4845 else
4846   #assume ordinary cross tools, or native build.
4847 lt_cv_to_tool_file_cmd=func_convert_file_noop
4848 case $host in
4849   *-*-mingw* )
4850     case $build in
4851       *-*-mingw* ) # actually msys
4852         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4853         ;;
4854     esac
4855     ;;
4856 esac
4857
4858 fi
4859
4860 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4862 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4863
4864
4865
4866
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4869 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4870 if ${lt_cv_ld_reload_flag+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   lt_cv_ld_reload_flag='-r'
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4876 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4877 reload_flag=$lt_cv_ld_reload_flag
4878 case $reload_flag in
4879 "" | " "*) ;;
4880 *) reload_flag=" $reload_flag" ;;
4881 esac
4882 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4883 case $host_os in
4884   cygwin* | mingw* | pw32* | cegcc*)
4885     if test "$GCC" != yes; then
4886       reload_cmds=false
4887     fi
4888     ;;
4889   darwin*)
4890     if test "$GCC" = yes; then
4891       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4892     else
4893       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4894     fi
4895     ;;
4896 esac
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906 if test -n "$ac_tool_prefix"; then
4907   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4908 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_OBJDUMP+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   if test -n "$OBJDUMP"; then
4915   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_exec_ext in '' $ac_executable_extensions; do
4923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929   done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 OBJDUMP=$ac_cv_prog_OBJDUMP
4935 if test -n "$OBJDUMP"; then
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4937 $as_echo "$OBJDUMP" >&6; }
4938 else
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943
4944 fi
4945 if test -z "$ac_cv_prog_OBJDUMP"; then
4946   ac_ct_OBJDUMP=$OBJDUMP
4947   # Extract the first word of "objdump", so it can be a program name with args.
4948 set dummy objdump; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   if test -n "$ac_ct_OBJDUMP"; then
4955   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969   done
4970 IFS=$as_save_IFS
4971
4972 fi
4973 fi
4974 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4975 if test -n "$ac_ct_OBJDUMP"; then
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4977 $as_echo "$ac_ct_OBJDUMP" >&6; }
4978 else
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983   if test "x$ac_ct_OBJDUMP" = x; then
4984     OBJDUMP="false"
4985   else
4986     case $cross_compiling:$ac_tool_warned in
4987 yes:)
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990 ac_tool_warned=yes ;;
4991 esac
4992     OBJDUMP=$ac_ct_OBJDUMP
4993   fi
4994 else
4995   OBJDUMP="$ac_cv_prog_OBJDUMP"
4996 fi
4997
4998 test -z "$OBJDUMP" && OBJDUMP=objdump
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5009 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5010 if ${lt_cv_deplibs_check_method+:} false; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013   lt_cv_file_magic_cmd='$MAGIC_CMD'
5014 lt_cv_file_magic_test_file=
5015 lt_cv_deplibs_check_method='unknown'
5016 # Need to set the preceding variable on all platforms that support
5017 # interlibrary dependencies.
5018 # 'none' -- dependencies not supported.
5019 # `unknown' -- same as none, but documents that we really don't know.
5020 # 'pass_all' -- all dependencies passed with no checks.
5021 # 'test_compile' -- check by making test program.
5022 # 'file_magic [[regex]]' -- check by looking for files in library path
5023 # which responds to the $file_magic_cmd with a given extended regex.
5024 # If you have `file' or equivalent on your system and you're not sure
5025 # whether `pass_all' will *always* work, you probably want this one.
5026
5027 case $host_os in
5028 aix[4-9]*)
5029   lt_cv_deplibs_check_method=pass_all
5030   ;;
5031
5032 beos*)
5033   lt_cv_deplibs_check_method=pass_all
5034   ;;
5035
5036 bsdi[45]*)
5037   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5038   lt_cv_file_magic_cmd='/usr/bin/file -L'
5039   lt_cv_file_magic_test_file=/shlib/libc.so
5040   ;;
5041
5042 cygwin*)
5043   # func_win32_libid is a shell function defined in ltmain.sh
5044   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5045   lt_cv_file_magic_cmd='func_win32_libid'
5046   ;;
5047
5048 mingw* | pw32*)
5049   # Base MSYS/MinGW do not provide the 'file' command needed by
5050   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5051   # unless we find 'file', for example because we are cross-compiling.
5052   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5053   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5054     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5055     lt_cv_file_magic_cmd='func_win32_libid'
5056   else
5057     # Keep this pattern in sync with the one in func_win32_libid.
5058     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5059     lt_cv_file_magic_cmd='$OBJDUMP -f'
5060   fi
5061   ;;
5062
5063 cegcc*)
5064   # use the weaker test based on 'objdump'. See mingw*.
5065   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5066   lt_cv_file_magic_cmd='$OBJDUMP -f'
5067   ;;
5068
5069 darwin* | rhapsody*)
5070   lt_cv_deplibs_check_method=pass_all
5071   ;;
5072
5073 freebsd* | dragonfly*)
5074   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5075     case $host_cpu in
5076     i*86 )
5077       # Not sure whether the presence of OpenBSD here was a mistake.
5078       # Let's accept both of them until this is cleared up.
5079       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5080       lt_cv_file_magic_cmd=/usr/bin/file
5081       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5082       ;;
5083     esac
5084   else
5085     lt_cv_deplibs_check_method=pass_all
5086   fi
5087   ;;
5088
5089 haiku*)
5090   lt_cv_deplibs_check_method=pass_all
5091   ;;
5092
5093 hpux10.20* | hpux11*)
5094   lt_cv_file_magic_cmd=/usr/bin/file
5095   case $host_cpu in
5096   ia64*)
5097     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5098     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5099     ;;
5100   hppa*64*)
5101     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5102     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5103     ;;
5104   *)
5105     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5106     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5107     ;;
5108   esac
5109   ;;
5110
5111 interix[3-9]*)
5112   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5113   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5114   ;;
5115
5116 irix5* | irix6* | nonstopux*)
5117   case $LD in
5118   *-32|*"-32 ") libmagic=32-bit;;
5119   *-n32|*"-n32 ") libmagic=N32;;
5120   *-64|*"-64 ") libmagic=64-bit;;
5121   *) libmagic=never-match;;
5122   esac
5123   lt_cv_deplibs_check_method=pass_all
5124   ;;
5125
5126 # This must be glibc/ELF.
5127 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5128   lt_cv_deplibs_check_method=pass_all
5129   ;;
5130
5131 netbsd* | netbsdelf*-gnu)
5132   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5133     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5134   else
5135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5136   fi
5137   ;;
5138
5139 newos6*)
5140   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5141   lt_cv_file_magic_cmd=/usr/bin/file
5142   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5143   ;;
5144
5145 *nto* | *qnx*)
5146   lt_cv_deplibs_check_method=pass_all
5147   ;;
5148
5149 openbsd*)
5150   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5152   else
5153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5154   fi
5155   ;;
5156
5157 osf3* | osf4* | osf5*)
5158   lt_cv_deplibs_check_method=pass_all
5159   ;;
5160
5161 rdos*)
5162   lt_cv_deplibs_check_method=pass_all
5163   ;;
5164
5165 solaris*)
5166   lt_cv_deplibs_check_method=pass_all
5167   ;;
5168
5169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5170   lt_cv_deplibs_check_method=pass_all
5171   ;;
5172
5173 sysv4 | sysv4.3*)
5174   case $host_vendor in
5175   motorola)
5176     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]'
5177     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5178     ;;
5179   ncr)
5180     lt_cv_deplibs_check_method=pass_all
5181     ;;
5182   sequent)
5183     lt_cv_file_magic_cmd='/bin/file'
5184     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5185     ;;
5186   sni)
5187     lt_cv_file_magic_cmd='/bin/file'
5188     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5189     lt_cv_file_magic_test_file=/lib/libc.so
5190     ;;
5191   siemens)
5192     lt_cv_deplibs_check_method=pass_all
5193     ;;
5194   pc)
5195     lt_cv_deplibs_check_method=pass_all
5196     ;;
5197   esac
5198   ;;
5199
5200 tpf*)
5201   lt_cv_deplibs_check_method=pass_all
5202   ;;
5203 esac
5204
5205 fi
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5207 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5208
5209 file_magic_glob=
5210 want_nocaseglob=no
5211 if test "$build" = "$host"; then
5212   case $host_os in
5213   mingw* | pw32*)
5214     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5215       want_nocaseglob=yes
5216     else
5217       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5218     fi
5219     ;;
5220   esac
5221 fi
5222
5223 file_magic_cmd=$lt_cv_file_magic_cmd
5224 deplibs_check_method=$lt_cv_deplibs_check_method
5225 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 if test -n "$ac_tool_prefix"; then
5249   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_DLLTOOL+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   if test -n "$DLLTOOL"; then
5257   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271   done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 DLLTOOL=$ac_cv_prog_DLLTOOL
5277 if test -n "$DLLTOOL"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5279 $as_echo "$DLLTOOL" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 fi
5287 if test -z "$ac_cv_prog_DLLTOOL"; then
5288   ac_ct_DLLTOOL=$DLLTOOL
5289   # Extract the first word of "dlltool", so it can be a program name with args.
5290 set dummy dlltool; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   if test -n "$ac_ct_DLLTOOL"; then
5297   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302   IFS=$as_save_IFS
5303   test -z "$as_dir" && as_dir=.
5304     for ac_exec_ext in '' $ac_executable_extensions; do
5305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308     break 2
5309   fi
5310 done
5311   done
5312 IFS=$as_save_IFS
5313
5314 fi
5315 fi
5316 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5317 if test -n "$ac_ct_DLLTOOL"; then
5318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5319 $as_echo "$ac_ct_DLLTOOL" >&6; }
5320 else
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5323 fi
5324
5325   if test "x$ac_ct_DLLTOOL" = x; then
5326     DLLTOOL="false"
5327   else
5328     case $cross_compiling:$ac_tool_warned in
5329 yes:)
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332 ac_tool_warned=yes ;;
5333 esac
5334     DLLTOOL=$ac_ct_DLLTOOL
5335   fi
5336 else
5337   DLLTOOL="$ac_cv_prog_DLLTOOL"
5338 fi
5339
5340 test -z "$DLLTOOL" && DLLTOOL=dlltool
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5352 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5353 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   lt_cv_sharedlib_from_linklib_cmd='unknown'
5357
5358 case $host_os in
5359 cygwin* | mingw* | pw32* | cegcc*)
5360   # two different shell functions defined in ltmain.sh
5361   # decide which to use based on capabilities of $DLLTOOL
5362   case `$DLLTOOL --help 2>&1` in
5363   *--identify-strict*)
5364     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5365     ;;
5366   *)
5367     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5368     ;;
5369   esac
5370   ;;
5371 *)
5372   # fallback: assume linklib IS sharedlib
5373   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5374   ;;
5375 esac
5376
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5379 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5380 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5381 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5382
5383
5384
5385
5386
5387
5388
5389
5390 if test -n "$ac_tool_prefix"; then
5391   for ac_prog in ar
5392   do
5393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_AR+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if test -n "$AR"; then
5401   ac_cv_prog_AR="$AR" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 AR=$ac_cv_prog_AR
5421 if test -n "$AR"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5423 $as_echo "$AR" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430     test -n "$AR" && break
5431   done
5432 fi
5433 if test -z "$AR"; then
5434   ac_ct_AR=$AR
5435   for ac_prog in ar
5436 do
5437   # Extract the first word of "$ac_prog", so it can be a program name with args.
5438 set dummy $ac_prog; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   if test -n "$ac_ct_AR"; then
5445   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454     ac_cv_prog_ac_ct_AR="$ac_prog"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5465 if test -n "$ac_ct_AR"; then
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5467 $as_echo "$ac_ct_AR" >&6; }
5468 else
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473
5474   test -n "$ac_ct_AR" && break
5475 done
5476
5477   if test "x$ac_ct_AR" = x; then
5478     AR="false"
5479   else
5480     case $cross_compiling:$ac_tool_warned in
5481 yes:)
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5485 esac
5486     AR=$ac_ct_AR
5487   fi
5488 fi
5489
5490 : ${AR=ar}
5491 : ${AR_FLAGS=cru}
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5504 $as_echo_n "checking for archiver @FILE support... " >&6; }
5505 if ${lt_cv_ar_at_file+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   lt_cv_ar_at_file=no
5509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h.  */
5511
5512 int
5513 main ()
5514 {
5515
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"; then :
5521   echo conftest.$ac_objext > conftest.lst
5522       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5523       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5524   (eval $lt_ar_try) 2>&5
5525   ac_status=$?
5526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5527   test $ac_status = 0; }
5528       if test "$ac_status" -eq 0; then
5529         # Ensure the archiver fails upon bogus file names.
5530         rm -f conftest.$ac_objext libconftest.a
5531         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5532   (eval $lt_ar_try) 2>&5
5533   ac_status=$?
5534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5535   test $ac_status = 0; }
5536         if test "$ac_status" -ne 0; then
5537           lt_cv_ar_at_file=@
5538         fi
5539       fi
5540       rm -f conftest.* libconftest.a
5541
5542 fi
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5547 $as_echo "$lt_cv_ar_at_file" >&6; }
5548
5549 if test "x$lt_cv_ar_at_file" = xno; then
5550   archiver_list_spec=
5551 else
5552   archiver_list_spec=$lt_cv_ar_at_file
5553 fi
5554
5555
5556
5557
5558
5559
5560
5561 if test -n "$ac_tool_prefix"; then
5562   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}strip; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_STRIP+:} false; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   if test -n "$STRIP"; then
5570   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577     for ac_exec_ext in '' $ac_executable_extensions; do
5578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584   done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 STRIP=$ac_cv_prog_STRIP
5590 if test -n "$STRIP"; then
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5592 $as_echo "$STRIP" >&6; }
5593 else
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599 fi
5600 if test -z "$ac_cv_prog_STRIP"; then
5601   ac_ct_STRIP=$STRIP
5602   # Extract the first word of "strip", so it can be a program name with args.
5603 set dummy strip; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   if test -n "$ac_ct_STRIP"; then
5610   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617     for ac_exec_ext in '' $ac_executable_extensions; do
5618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619     ac_cv_prog_ac_ct_STRIP="strip"
5620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624   done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5630 if test -n "$ac_ct_STRIP"; then
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5632 $as_echo "$ac_ct_STRIP" >&6; }
5633 else
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5636 fi
5637
5638   if test "x$ac_ct_STRIP" = x; then
5639     STRIP=":"
5640   else
5641     case $cross_compiling:$ac_tool_warned in
5642 yes:)
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5646 esac
5647     STRIP=$ac_ct_STRIP
5648   fi
5649 else
5650   STRIP="$ac_cv_prog_STRIP"
5651 fi
5652
5653 test -z "$STRIP" && STRIP=:
5654
5655
5656
5657
5658
5659
5660 if test -n "$ac_tool_prefix"; then
5661   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5662 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_RANLIB+:} false; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   if test -n "$RANLIB"; then
5669   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_exec_ext in '' $ac_executable_extensions; do
5677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 RANLIB=$ac_cv_prog_RANLIB
5689 if test -n "$RANLIB"; then
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5691 $as_echo "$RANLIB" >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697
5698 fi
5699 if test -z "$ac_cv_prog_RANLIB"; then
5700   ac_ct_RANLIB=$RANLIB
5701   # Extract the first word of "ranlib", so it can be a program name with args.
5702 set dummy ranlib; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   if test -n "$ac_ct_RANLIB"; then
5709   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_prog_ac_ct_RANLIB="ranlib"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5729 if test -n "$ac_ct_RANLIB"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5731 $as_echo "$ac_ct_RANLIB" >&6; }
5732 else
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737   if test "x$ac_ct_RANLIB" = x; then
5738     RANLIB=":"
5739   else
5740     case $cross_compiling:$ac_tool_warned in
5741 yes:)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744 ac_tool_warned=yes ;;
5745 esac
5746     RANLIB=$ac_ct_RANLIB
5747   fi
5748 else
5749   RANLIB="$ac_cv_prog_RANLIB"
5750 fi
5751
5752 test -z "$RANLIB" && RANLIB=:
5753
5754
5755
5756
5757
5758
5759 # Determine commands to create old-style static archives.
5760 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5761 old_postinstall_cmds='chmod 644 $oldlib'
5762 old_postuninstall_cmds=
5763
5764 if test -n "$RANLIB"; then
5765   case $host_os in
5766   openbsd*)
5767     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5768     ;;
5769   *)
5770     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5771     ;;
5772   esac
5773   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5774 fi
5775
5776 case $host_os in
5777   darwin*)
5778     lock_old_archive_extraction=yes ;;
5779   *)
5780     lock_old_archive_extraction=no ;;
5781 esac
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 # If no C compiler was specified, use CC.
5822 LTCC=${LTCC-"$CC"}
5823
5824 # If no C compiler flags were specified, use CFLAGS.
5825 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5826
5827 # Allow CC to be a program name with arguments.
5828 compiler=$CC
5829
5830
5831 # Check for command to grab the raw symbol name followed by C symbol from nm.
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5833 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5834 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837
5838 # These are sane defaults that work on at least a few old systems.
5839 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5840
5841 # Character class describing NM global symbol codes.
5842 symcode='[BCDEGRST]'
5843
5844 # Regexp to match symbols that can be accessed directly from C.
5845 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5846
5847 # Define system-specific variables.
5848 case $host_os in
5849 aix*)
5850   symcode='[BCDT]'
5851   ;;
5852 cygwin* | mingw* | pw32* | cegcc*)
5853   symcode='[ABCDGISTW]'
5854   ;;
5855 hpux*)
5856   if test "$host_cpu" = ia64; then
5857     symcode='[ABCDEGRST]'
5858   fi
5859   ;;
5860 irix* | nonstopux*)
5861   symcode='[BCDEGRST]'
5862   ;;
5863 osf*)
5864   symcode='[BCDEGQRST]'
5865   ;;
5866 solaris*)
5867   symcode='[BDRT]'
5868   ;;
5869 sco3.2v5*)
5870   symcode='[DT]'
5871   ;;
5872 sysv4.2uw2*)
5873   symcode='[DT]'
5874   ;;
5875 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5876   symcode='[ABDT]'
5877   ;;
5878 sysv4)
5879   symcode='[DFNSTU]'
5880   ;;
5881 esac
5882
5883 # If we're using GNU nm, then use its standard symbol codes.
5884 case `$NM -V 2>&1` in
5885 *GNU* | *'with BFD'*)
5886   symcode='[ABCDGIRSTW]' ;;
5887 esac
5888
5889 # Transform an extracted symbol line into a proper C declaration.
5890 # Some systems (esp. on ia64) link data and code symbols differently,
5891 # so use this general approach.
5892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893
5894 # Transform an extracted symbol line into symbol name and symbol address
5895 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5896 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5897
5898 # Handle CRLF in mingw tool chain
5899 opt_cr=
5900 case $build_os in
5901 mingw*)
5902   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5903   ;;
5904 esac
5905
5906 # Try without a prefix underscore, then with it.
5907 for ac_symprfx in "" "_"; do
5908
5909   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5910   symxfrm="\\1 $ac_symprfx\\2 \\2"
5911
5912   # Write the raw and C identifiers.
5913   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5914     # Fake it for dumpbin and say T for any non-static function
5915     # and D for any global variable.
5916     # Also find C++ and __fastcall symbols from MSVC++,
5917     # which start with @ or ?.
5918     lt_cv_sys_global_symbol_pipe="$AWK '"\
5919 "     {last_section=section; section=\$ 3};"\
5920 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5921 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5922 "     \$ 0!~/External *\|/{next};"\
5923 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5924 "     {if(hide[section]) next};"\
5925 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5926 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5927 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5928 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5929 "     ' prfx=^$ac_symprfx"
5930   else
5931     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5932   fi
5933   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5934
5935   # Check to see that the pipe works correctly.
5936   pipe_works=no
5937
5938   rm -f conftest*
5939   cat > conftest.$ac_ext <<_LT_EOF
5940 #ifdef __cplusplus
5941 extern "C" {
5942 #endif
5943 char nm_test_var;
5944 void nm_test_func(void);
5945 void nm_test_func(void){}
5946 #ifdef __cplusplus
5947 }
5948 #endif
5949 int main(){nm_test_var='a';nm_test_func();return(0);}
5950 _LT_EOF
5951
5952   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5953   (eval $ac_compile) 2>&5
5954   ac_status=$?
5955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956   test $ac_status = 0; }; then
5957     # Now try to grab the symbols.
5958     nlist=conftest.nm
5959     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5960   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5961   ac_status=$?
5962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963   test $ac_status = 0; } && test -s "$nlist"; then
5964       # Try sorting and uniquifying the output.
5965       if sort "$nlist" | uniq > "$nlist"T; then
5966         mv -f "$nlist"T "$nlist"
5967       else
5968         rm -f "$nlist"T
5969       fi
5970
5971       # Make sure that we snagged all the symbols we need.
5972       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5973         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5974           cat <<_LT_EOF > conftest.$ac_ext
5975 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5976 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5977 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5978    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5979 # define LT_DLSYM_CONST
5980 #elif defined(__osf__)
5981 /* This system does not cope well with relocations in const data.  */
5982 # define LT_DLSYM_CONST
5983 #else
5984 # define LT_DLSYM_CONST const
5985 #endif
5986
5987 #ifdef __cplusplus
5988 extern "C" {
5989 #endif
5990
5991 _LT_EOF
5992           # Now generate the symbol file.
5993           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5994
5995           cat <<_LT_EOF >> conftest.$ac_ext
5996
5997 /* The mapping between symbol names and symbols.  */
5998 LT_DLSYM_CONST struct {
5999   const char *name;
6000   void       *address;
6001 }
6002 lt__PROGRAM__LTX_preloaded_symbols[] =
6003 {
6004   { "@PROGRAM@", (void *) 0 },
6005 _LT_EOF
6006           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6007           cat <<\_LT_EOF >> conftest.$ac_ext
6008   {0, (void *) 0}
6009 };
6010
6011 /* This works around a problem in FreeBSD linker */
6012 #ifdef FREEBSD_WORKAROUND
6013 static const void *lt_preloaded_setup() {
6014   return lt__PROGRAM__LTX_preloaded_symbols;
6015 }
6016 #endif
6017
6018 #ifdef __cplusplus
6019 }
6020 #endif
6021 _LT_EOF
6022           # Now try linking the two files.
6023           mv conftest.$ac_objext conftstm.$ac_objext
6024           lt_globsym_save_LIBS=$LIBS
6025           lt_globsym_save_CFLAGS=$CFLAGS
6026           LIBS="conftstm.$ac_objext"
6027           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6028           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6029   (eval $ac_link) 2>&5
6030   ac_status=$?
6031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6033             pipe_works=yes
6034           fi
6035           LIBS=$lt_globsym_save_LIBS
6036           CFLAGS=$lt_globsym_save_CFLAGS
6037         else
6038           echo "cannot find nm_test_func in $nlist" >&5
6039         fi
6040       else
6041         echo "cannot find nm_test_var in $nlist" >&5
6042       fi
6043     else
6044       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6045     fi
6046   else
6047     echo "$progname: failed program was:" >&5
6048     cat conftest.$ac_ext >&5
6049   fi
6050   rm -rf conftest* conftst*
6051
6052   # Do not use the global_symbol_pipe unless it works.
6053   if test "$pipe_works" = yes; then
6054     break
6055   else
6056     lt_cv_sys_global_symbol_pipe=
6057   fi
6058 done
6059
6060 fi
6061
6062 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6063   lt_cv_sys_global_symbol_to_cdecl=
6064 fi
6065 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6067 $as_echo "failed" >&6; }
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6070 $as_echo "ok" >&6; }
6071 fi
6072
6073 # Response file support.
6074 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6075   nm_file_list_spec='@'
6076 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6077   nm_file_list_spec='@'
6078 fi
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6107 $as_echo_n "checking for sysroot... " >&6; }
6108
6109 # Check whether --with-sysroot was given.
6110 if test "${with_sysroot+set}" = set; then :
6111   withval=$with_sysroot;
6112 else
6113   with_sysroot=no
6114 fi
6115
6116
6117 lt_sysroot=
6118 case ${with_sysroot} in #(
6119  yes)
6120    if test "$GCC" = yes; then
6121      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6122    fi
6123    ;; #(
6124  /*)
6125    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6126    ;; #(
6127  no|'')
6128    ;; #(
6129  *)
6130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6131 $as_echo "${with_sysroot}" >&6; }
6132    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6133    ;;
6134 esac
6135
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6137 $as_echo "${lt_sysroot:-no}" >&6; }
6138
6139
6140
6141
6142
6143 # Check whether --enable-libtool-lock was given.
6144 if test "${enable_libtool_lock+set}" = set; then :
6145   enableval=$enable_libtool_lock;
6146 fi
6147
6148 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6149
6150 # Some flags need to be propagated to the compiler or linker for good
6151 # libtool support.
6152 case $host in
6153 ia64-*-hpux*)
6154   # Find out which ABI we are using.
6155   echo 'int i;' > conftest.$ac_ext
6156   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157   (eval $ac_compile) 2>&5
6158   ac_status=$?
6159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160   test $ac_status = 0; }; then
6161     case `/usr/bin/file conftest.$ac_objext` in
6162       *ELF-32*)
6163         HPUX_IA64_MODE="32"
6164         ;;
6165       *ELF-64*)
6166         HPUX_IA64_MODE="64"
6167         ;;
6168     esac
6169   fi
6170   rm -rf conftest*
6171   ;;
6172 *-*-irix6*)
6173   # Find out which ABI we are using.
6174   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6175   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176   (eval $ac_compile) 2>&5
6177   ac_status=$?
6178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179   test $ac_status = 0; }; then
6180     if test "$lt_cv_prog_gnu_ld" = yes; then
6181       case `/usr/bin/file conftest.$ac_objext` in
6182         *32-bit*)
6183           LD="${LD-ld} -melf32bsmip"
6184           ;;
6185         *N32*)
6186           LD="${LD-ld} -melf32bmipn32"
6187           ;;
6188         *64-bit*)
6189           LD="${LD-ld} -melf64bmip"
6190         ;;
6191       esac
6192     else
6193       case `/usr/bin/file conftest.$ac_objext` in
6194         *32-bit*)
6195           LD="${LD-ld} -32"
6196           ;;
6197         *N32*)
6198           LD="${LD-ld} -n32"
6199           ;;
6200         *64-bit*)
6201           LD="${LD-ld} -64"
6202           ;;
6203       esac
6204     fi
6205   fi
6206   rm -rf conftest*
6207   ;;
6208
6209 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6210 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6211   # Find out which ABI we are using.
6212   echo 'int i;' > conftest.$ac_ext
6213   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6214   (eval $ac_compile) 2>&5
6215   ac_status=$?
6216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217   test $ac_status = 0; }; then
6218     case `/usr/bin/file conftest.o` in
6219       *32-bit*)
6220         case $host in
6221           x86_64-*kfreebsd*-gnu)
6222             LD="${LD-ld} -m elf_i386_fbsd"
6223             ;;
6224           x86_64-*linux*)
6225             LD="${LD-ld} -m elf_i386"
6226             ;;
6227           ppc64-*linux*|powerpc64-*linux*)
6228             LD="${LD-ld} -m elf32ppclinux"
6229             ;;
6230           s390x-*linux*)
6231             LD="${LD-ld} -m elf_s390"
6232             ;;
6233           sparc64-*linux*)
6234             LD="${LD-ld} -m elf32_sparc"
6235             ;;
6236         esac
6237         ;;
6238       *64-bit*)
6239         case $host in
6240           x86_64-*kfreebsd*-gnu)
6241             LD="${LD-ld} -m elf_x86_64_fbsd"
6242             ;;
6243           x86_64-*linux*)
6244             LD="${LD-ld} -m elf_x86_64"
6245             ;;
6246           ppc*-*linux*|powerpc*-*linux*)
6247             LD="${LD-ld} -m elf64ppc"
6248             ;;
6249           s390*-*linux*|s390*-*tpf*)
6250             LD="${LD-ld} -m elf64_s390"
6251             ;;
6252           sparc*-*linux*)
6253             LD="${LD-ld} -m elf64_sparc"
6254             ;;
6255         esac
6256         ;;
6257     esac
6258   fi
6259   rm -rf conftest*
6260   ;;
6261
6262 *-*-sco3.2v5*)
6263   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6264   SAVE_CFLAGS="$CFLAGS"
6265   CFLAGS="$CFLAGS -belf"
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6267 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6268 if ${lt_cv_cc_needs_belf+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   ac_ext=c
6272 ac_cpp='$CPP $CPPFLAGS'
6273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276
6277      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h.  */
6279
6280 int
6281 main ()
6282 {
6283
6284   ;
6285   return 0;
6286 }
6287 _ACEOF
6288 if ac_fn_c_try_link "$LINENO"; then :
6289   lt_cv_cc_needs_belf=yes
6290 else
6291   lt_cv_cc_needs_belf=no
6292 fi
6293 rm -f core conftest.err conftest.$ac_objext \
6294     conftest$ac_exeext conftest.$ac_ext
6295      ac_ext=c
6296 ac_cpp='$CPP $CPPFLAGS'
6297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6300
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6303 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6304   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6305     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6306     CFLAGS="$SAVE_CFLAGS"
6307   fi
6308   ;;
6309 *-*solaris*)
6310   # Find out which ABI we are using.
6311   echo 'int i;' > conftest.$ac_ext
6312   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313   (eval $ac_compile) 2>&5
6314   ac_status=$?
6315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316   test $ac_status = 0; }; then
6317     case `/usr/bin/file conftest.o` in
6318     *64-bit*)
6319       case $lt_cv_prog_gnu_ld in
6320       yes*)
6321         case $host in
6322         i?86-*-solaris*)
6323           LD="${LD-ld} -m elf_x86_64"
6324           ;;
6325         sparc*-*-solaris*)
6326           LD="${LD-ld} -m elf64_sparc"
6327           ;;
6328         esac
6329         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6330         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6331           LD="${LD-ld}_sol2"
6332         fi
6333         ;;
6334       *)
6335         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6336           LD="${LD-ld} -64"
6337         fi
6338         ;;
6339       esac
6340       ;;
6341     esac
6342   fi
6343   rm -rf conftest*
6344   ;;
6345 esac
6346
6347 need_locks="$enable_libtool_lock"
6348
6349 if test -n "$ac_tool_prefix"; then
6350   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}mt; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$MANIFEST_TOOL"; then
6358   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365     for ac_exec_ext in '' $ac_executable_extensions; do
6366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372   done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6378 if test -n "$MANIFEST_TOOL"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6380 $as_echo "$MANIFEST_TOOL" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6389   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6390   # Extract the first word of "mt", so it can be a program name with args.
6391 set dummy mt; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$ac_ct_MANIFEST_TOOL"; then
6398   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405     for ac_exec_ext in '' $ac_executable_extensions; do
6406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412   done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6418 if test -n "$ac_ct_MANIFEST_TOOL"; then
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6420 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6421 else
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6427     MANIFEST_TOOL=":"
6428   else
6429     case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6436   fi
6437 else
6438   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6439 fi
6440
6441 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6443 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6444 if ${lt_cv_path_mainfest_tool+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   lt_cv_path_mainfest_tool=no
6448   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6449   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6450   cat conftest.err >&5
6451   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6452     lt_cv_path_mainfest_tool=yes
6453   fi
6454   rm -f conftest*
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6457 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6458 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6459   MANIFEST_TOOL=:
6460 fi
6461
6462
6463
6464
6465
6466
6467   case $host_os in
6468     rhapsody* | darwin*)
6469     if test -n "$ac_tool_prefix"; then
6470   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$DSYMUTIL"; then
6478   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485     for ac_exec_ext in '' $ac_executable_extensions; do
6486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492   done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6498 if test -n "$DSYMUTIL"; then
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6500 $as_echo "$DSYMUTIL" >&6; }
6501 else
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506
6507 fi
6508 if test -z "$ac_cv_prog_DSYMUTIL"; then
6509   ac_ct_DSYMUTIL=$DSYMUTIL
6510   # Extract the first word of "dsymutil", so it can be a program name with args.
6511 set dummy dsymutil; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   if test -n "$ac_ct_DSYMUTIL"; then
6518   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525     for ac_exec_ext in '' $ac_executable_extensions; do
6526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532   done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6538 if test -n "$ac_ct_DSYMUTIL"; then
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6540 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6541 else
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546   if test "x$ac_ct_DSYMUTIL" = x; then
6547     DSYMUTIL=":"
6548   else
6549     case $cross_compiling:$ac_tool_warned in
6550 yes:)
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555     DSYMUTIL=$ac_ct_DSYMUTIL
6556   fi
6557 else
6558   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6559 fi
6560
6561     if test -n "$ac_tool_prefix"; then
6562   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_prog_NMEDIT+:} false; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   if test -n "$NMEDIT"; then
6570   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577     for ac_exec_ext in '' $ac_executable_extensions; do
6578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584   done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 NMEDIT=$ac_cv_prog_NMEDIT
6590 if test -n "$NMEDIT"; then
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6592 $as_echo "$NMEDIT" >&6; }
6593 else
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598
6599 fi
6600 if test -z "$ac_cv_prog_NMEDIT"; then
6601   ac_ct_NMEDIT=$NMEDIT
6602   # Extract the first word of "nmedit", so it can be a program name with args.
6603 set dummy nmedit; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609   if test -n "$ac_ct_NMEDIT"; then
6610   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617     for ac_exec_ext in '' $ac_executable_extensions; do
6618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624   done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6630 if test -n "$ac_ct_NMEDIT"; then
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6632 $as_echo "$ac_ct_NMEDIT" >&6; }
6633 else
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 fi
6637
6638   if test "x$ac_ct_NMEDIT" = x; then
6639     NMEDIT=":"
6640   else
6641     case $cross_compiling:$ac_tool_warned in
6642 yes:)
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645 ac_tool_warned=yes ;;
6646 esac
6647     NMEDIT=$ac_ct_NMEDIT
6648   fi
6649 else
6650   NMEDIT="$ac_cv_prog_NMEDIT"
6651 fi
6652
6653     if test -n "$ac_tool_prefix"; then
6654   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6655 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_LIPO+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$LIPO"; then
6662   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 LIPO=$ac_cv_prog_LIPO
6682 if test -n "$LIPO"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6684 $as_echo "$LIPO" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690
6691 fi
6692 if test -z "$ac_cv_prog_LIPO"; then
6693   ac_ct_LIPO=$LIPO
6694   # Extract the first word of "lipo", so it can be a program name with args.
6695 set dummy lipo; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   if test -n "$ac_ct_LIPO"; then
6702   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709     for ac_exec_ext in '' $ac_executable_extensions; do
6710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711     ac_cv_prog_ac_ct_LIPO="lipo"
6712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716   done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6722 if test -n "$ac_ct_LIPO"; then
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6724 $as_echo "$ac_ct_LIPO" >&6; }
6725 else
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730   if test "x$ac_ct_LIPO" = x; then
6731     LIPO=":"
6732   else
6733     case $cross_compiling:$ac_tool_warned in
6734 yes:)
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739     LIPO=$ac_ct_LIPO
6740   fi
6741 else
6742   LIPO="$ac_cv_prog_LIPO"
6743 fi
6744
6745     if test -n "$ac_tool_prefix"; then
6746   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}otool; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_OTOOL+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test -n "$OTOOL"; then
6754   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 OTOOL=$ac_cv_prog_OTOOL
6774 if test -n "$OTOOL"; then
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6776 $as_echo "$OTOOL" >&6; }
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782
6783 fi
6784 if test -z "$ac_cv_prog_OTOOL"; then
6785   ac_ct_OTOOL=$OTOOL
6786   # Extract the first word of "otool", so it can be a program name with args.
6787 set dummy otool; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   if test -n "$ac_ct_OTOOL"; then
6794   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801     for ac_exec_ext in '' $ac_executable_extensions; do
6802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803     ac_cv_prog_ac_ct_OTOOL="otool"
6804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808   done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6814 if test -n "$ac_ct_OTOOL"; then
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6816 $as_echo "$ac_ct_OTOOL" >&6; }
6817 else
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6820 fi
6821
6822   if test "x$ac_ct_OTOOL" = x; then
6823     OTOOL=":"
6824   else
6825     case $cross_compiling:$ac_tool_warned in
6826 yes:)
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829 ac_tool_warned=yes ;;
6830 esac
6831     OTOOL=$ac_ct_OTOOL
6832   fi
6833 else
6834   OTOOL="$ac_cv_prog_OTOOL"
6835 fi
6836
6837     if test -n "$ac_tool_prefix"; then
6838   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_OTOOL64+:} false; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   if test -n "$OTOOL64"; then
6846   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853     for ac_exec_ext in '' $ac_executable_extensions; do
6854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860   done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 OTOOL64=$ac_cv_prog_OTOOL64
6866 if test -n "$OTOOL64"; then
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6868 $as_echo "$OTOOL64" >&6; }
6869 else
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874
6875 fi
6876 if test -z "$ac_cv_prog_OTOOL64"; then
6877   ac_ct_OTOOL64=$OTOOL64
6878   # Extract the first word of "otool64", so it can be a program name with args.
6879 set dummy otool64; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885   if test -n "$ac_ct_OTOOL64"; then
6886   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893     for ac_exec_ext in '' $ac_executable_extensions; do
6894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895     ac_cv_prog_ac_ct_OTOOL64="otool64"
6896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900   done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6906 if test -n "$ac_ct_OTOOL64"; then
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6908 $as_echo "$ac_ct_OTOOL64" >&6; }
6909 else
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6912 fi
6913
6914   if test "x$ac_ct_OTOOL64" = x; then
6915     OTOOL64=":"
6916   else
6917     case $cross_compiling:$ac_tool_warned in
6918 yes:)
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6922 esac
6923     OTOOL64=$ac_ct_OTOOL64
6924   fi
6925 else
6926   OTOOL64="$ac_cv_prog_OTOOL64"
6927 fi
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6956 $as_echo_n "checking for -single_module linker flag... " >&6; }
6957 if ${lt_cv_apple_cc_single_mod+:} false; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   lt_cv_apple_cc_single_mod=no
6961       if test -z "${LT_MULTI_MODULE}"; then
6962         # By default we will add the -single_module flag. You can override
6963         # by either setting the environment variable LT_MULTI_MODULE
6964         # non-empty at configure time, or by adding -multi_module to the
6965         # link flags.
6966         rm -rf libconftest.dylib*
6967         echo "int foo(void){return 1;}" > conftest.c
6968         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6969 -dynamiclib -Wl,-single_module conftest.c" >&5
6970         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6971           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6972         _lt_result=$?
6973         # If there is a non-empty error log, and "single_module"
6974         # appears in it, assume the flag caused a linker warning
6975         if test -s conftest.err && $GREP single_module conftest.err; then
6976           cat conftest.err >&5
6977         # Otherwise, if the output was created with a 0 exit code from
6978         # the compiler, it worked.
6979         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6980           lt_cv_apple_cc_single_mod=yes
6981         else
6982           cat conftest.err >&5
6983         fi
6984         rm -rf libconftest.dylib*
6985         rm -f conftest.*
6986       fi
6987 fi
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6989 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6990
6991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6992 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6993 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996   lt_cv_ld_exported_symbols_list=no
6997       save_LDFLAGS=$LDFLAGS
6998       echo "_main" > conftest.sym
6999       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7000       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h.  */
7002
7003 int
7004 main ()
7005 {
7006
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_link "$LINENO"; then :
7012   lt_cv_ld_exported_symbols_list=yes
7013 else
7014   lt_cv_ld_exported_symbols_list=no
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext \
7017     conftest$ac_exeext conftest.$ac_ext
7018         LDFLAGS="$save_LDFLAGS"
7019
7020 fi
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7022 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7023
7024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7025 $as_echo_n "checking for -force_load linker flag... " >&6; }
7026 if ${lt_cv_ld_force_load+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   lt_cv_ld_force_load=no
7030       cat > conftest.c << _LT_EOF
7031 int forced_loaded() { return 2;}
7032 _LT_EOF
7033       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7034       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7035       echo "$AR cru libconftest.a conftest.o" >&5
7036       $AR cru libconftest.a conftest.o 2>&5
7037       echo "$RANLIB libconftest.a" >&5
7038       $RANLIB libconftest.a 2>&5
7039       cat > conftest.c << _LT_EOF
7040 int main() { return 0;}
7041 _LT_EOF
7042       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7043       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7044       _lt_result=$?
7045       if test -s conftest.err && $GREP force_load conftest.err; then
7046         cat conftest.err >&5
7047       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7048         lt_cv_ld_force_load=yes
7049       else
7050         cat conftest.err >&5
7051       fi
7052         rm -f conftest.err libconftest.a conftest conftest.c
7053         rm -rf conftest.dSYM
7054
7055 fi
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7057 $as_echo "$lt_cv_ld_force_load" >&6; }
7058     case $host_os in
7059     rhapsody* | darwin1.[012])
7060       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7061     darwin1.*)
7062       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063     darwin*) # darwin 5.x on
7064       # if running on 10.5 or later, the deployment target defaults
7065       # to the OS version, if on x86, and 10.4, the deployment
7066       # target defaults to 10.4. Don't you love it?
7067       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7068         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7069           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7070         10.[012]*)
7071           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7072         10.*)
7073           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7074       esac
7075     ;;
7076   esac
7077     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7078       _lt_dar_single_mod='$single_module'
7079     fi
7080     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7081       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7082     else
7083       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7084     fi
7085     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7086       _lt_dsymutil='~$DSYMUTIL $lib || :'
7087     else
7088       _lt_dsymutil=
7089     fi
7090     ;;
7091   esac
7092
7093 ac_ext=c
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7099 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7100 # On Suns, sometimes $CPP names a directory.
7101 if test -n "$CPP" && test -d "$CPP"; then
7102   CPP=
7103 fi
7104 if test -z "$CPP"; then
7105   if ${ac_cv_prog_CPP+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108       # Double quotes because CPP needs to be expanded
7109     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7110     do
7111       ac_preproc_ok=false
7112 for ac_c_preproc_warn_flag in '' yes
7113 do
7114   # Use a header file that comes with gcc, so configuring glibc
7115   # with a fresh cross-compiler works.
7116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117   # <limits.h> exists even on freestanding compilers.
7118   # On the NeXT, cc -E runs the code through the compiler's parser,
7119   # not just through cpp. "Syntax error" is here to catch this case.
7120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h.  */
7122 #ifdef __STDC__
7123 # include <limits.h>
7124 #else
7125 # include <assert.h>
7126 #endif
7127                      Syntax error
7128 _ACEOF
7129 if ac_fn_c_try_cpp "$LINENO"; then :
7130
7131 else
7132   # Broken: fails on valid input.
7133 continue
7134 fi
7135 rm -f conftest.err conftest.i conftest.$ac_ext
7136
7137   # OK, works on sane cases.  Now check whether nonexistent headers
7138   # can be detected and how.
7139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h.  */
7141 #include <ac_nonexistent.h>
7142 _ACEOF
7143 if ac_fn_c_try_cpp "$LINENO"; then :
7144   # Broken: success on invalid input.
7145 continue
7146 else
7147   # Passes both tests.
7148 ac_preproc_ok=:
7149 break
7150 fi
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153 done
7154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7155 rm -f conftest.i conftest.err conftest.$ac_ext
7156 if $ac_preproc_ok; then :
7157   break
7158 fi
7159
7160     done
7161     ac_cv_prog_CPP=$CPP
7162
7163 fi
7164   CPP=$ac_cv_prog_CPP
7165 else
7166   ac_cv_prog_CPP=$CPP
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7169 $as_echo "$CPP" >&6; }
7170 ac_preproc_ok=false
7171 for ac_c_preproc_warn_flag in '' yes
7172 do
7173   # Use a header file that comes with gcc, so configuring glibc
7174   # with a fresh cross-compiler works.
7175   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176   # <limits.h> exists even on freestanding compilers.
7177   # On the NeXT, cc -E runs the code through the compiler's parser,
7178   # not just through cpp. "Syntax error" is here to catch this case.
7179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181 #ifdef __STDC__
7182 # include <limits.h>
7183 #else
7184 # include <assert.h>
7185 #endif
7186                      Syntax error
7187 _ACEOF
7188 if ac_fn_c_try_cpp "$LINENO"; then :
7189
7190 else
7191   # Broken: fails on valid input.
7192 continue
7193 fi
7194 rm -f conftest.err conftest.i conftest.$ac_ext
7195
7196   # OK, works on sane cases.  Now check whether nonexistent headers
7197   # can be detected and how.
7198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h.  */
7200 #include <ac_nonexistent.h>
7201 _ACEOF
7202 if ac_fn_c_try_cpp "$LINENO"; then :
7203   # Broken: success on invalid input.
7204 continue
7205 else
7206   # Passes both tests.
7207 ac_preproc_ok=:
7208 break
7209 fi
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212 done
7213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7214 rm -f conftest.i conftest.err conftest.$ac_ext
7215 if $ac_preproc_ok; then :
7216
7217 else
7218   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7220 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7221 See \`config.log' for more details" "$LINENO" 5; }
7222 fi
7223
7224 ac_ext=c
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
7230
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7232 $as_echo_n "checking for ANSI C header files... " >&6; }
7233 if ${ac_cv_header_stdc+:} false; then :
7234   $as_echo_n "(cached) " >&6
7235 else
7236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h.  */
7238 #include <stdlib.h>
7239 #include <stdarg.h>
7240 #include <string.h>
7241 #include <float.h>
7242
7243 int
7244 main ()
7245 {
7246
7247   ;
7248   return 0;
7249 }
7250 _ACEOF
7251 if ac_fn_c_try_compile "$LINENO"; then :
7252   ac_cv_header_stdc=yes
7253 else
7254   ac_cv_header_stdc=no
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257
7258 if test $ac_cv_header_stdc = yes; then
7259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h.  */
7262 #include <string.h>
7263
7264 _ACEOF
7265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7266   $EGREP "memchr" >/dev/null 2>&1; then :
7267
7268 else
7269   ac_cv_header_stdc=no
7270 fi
7271 rm -f conftest*
7272
7273 fi
7274
7275 if test $ac_cv_header_stdc = yes; then
7276   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h.  */
7279 #include <stdlib.h>
7280
7281 _ACEOF
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283   $EGREP "free" >/dev/null 2>&1; then :
7284
7285 else
7286   ac_cv_header_stdc=no
7287 fi
7288 rm -f conftest*
7289
7290 fi
7291
7292 if test $ac_cv_header_stdc = yes; then
7293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7294   if test "$cross_compiling" = yes; then :
7295   :
7296 else
7297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h.  */
7299 #include <ctype.h>
7300 #include <stdlib.h>
7301 #if ((' ' & 0x0FF) == 0x020)
7302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7304 #else
7305 # define ISLOWER(c) \
7306                    (('a' <= (c) && (c) <= 'i') \
7307                      || ('j' <= (c) && (c) <= 'r') \
7308                      || ('s' <= (c) && (c) <= 'z'))
7309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7310 #endif
7311
7312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7313 int
7314 main ()
7315 {
7316   int i;
7317   for (i = 0; i < 256; i++)
7318     if (XOR (islower (i), ISLOWER (i))
7319         || toupper (i) != TOUPPER (i))
7320       return 2;
7321   return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_run "$LINENO"; then :
7325
7326 else
7327   ac_cv_header_stdc=no
7328 fi
7329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7330   conftest.$ac_objext conftest.beam conftest.$ac_ext
7331 fi
7332
7333 fi
7334 fi
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7336 $as_echo "$ac_cv_header_stdc" >&6; }
7337 if test $ac_cv_header_stdc = yes; then
7338
7339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7340
7341 fi
7342
7343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7345                   inttypes.h stdint.h unistd.h
7346 do :
7347   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7349 "
7350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7351   cat >>confdefs.h <<_ACEOF
7352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7353 _ACEOF
7354
7355 fi
7356
7357 done
7358
7359
7360 for ac_header in dlfcn.h
7361 do :
7362   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7363 "
7364 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7365   cat >>confdefs.h <<_ACEOF
7366 #define HAVE_DLFCN_H 1
7367 _ACEOF
7368
7369 fi
7370
7371 done
7372
7373
7374
7375
7376
7377 # Set options
7378
7379
7380
7381         enable_dlopen=no
7382
7383
7384   enable_win32_dll=no
7385
7386
7387             # Check whether --enable-shared was given.
7388 if test "${enable_shared+set}" = set; then :
7389   enableval=$enable_shared; p=${PACKAGE-default}
7390     case $enableval in
7391     yes) enable_shared=yes ;;
7392     no) enable_shared=no ;;
7393     *)
7394       enable_shared=no
7395       # Look at the argument we got.  We use all the common list separators.
7396       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397       for pkg in $enableval; do
7398         IFS="$lt_save_ifs"
7399         if test "X$pkg" = "X$p"; then
7400           enable_shared=yes
7401         fi
7402       done
7403       IFS="$lt_save_ifs"
7404       ;;
7405     esac
7406 else
7407   enable_shared=yes
7408 fi
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418   # Check whether --enable-static was given.
7419 if test "${enable_static+set}" = set; then :
7420   enableval=$enable_static; p=${PACKAGE-default}
7421     case $enableval in
7422     yes) enable_static=yes ;;
7423     no) enable_static=no ;;
7424     *)
7425      enable_static=no
7426       # Look at the argument we got.  We use all the common list separators.
7427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428       for pkg in $enableval; do
7429         IFS="$lt_save_ifs"
7430         if test "X$pkg" = "X$p"; then
7431           enable_static=yes
7432         fi
7433       done
7434       IFS="$lt_save_ifs"
7435       ;;
7436     esac
7437 else
7438   enable_static=yes
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450 # Check whether --with-pic was given.
7451 if test "${with_pic+set}" = set; then :
7452   withval=$with_pic; lt_p=${PACKAGE-default}
7453     case $withval in
7454     yes|no) pic_mode=$withval ;;
7455     *)
7456       pic_mode=default
7457       # Look at the argument we got.  We use all the common list separators.
7458       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7459       for lt_pkg in $withval; do
7460         IFS="$lt_save_ifs"
7461         if test "X$lt_pkg" = "X$lt_p"; then
7462           pic_mode=yes
7463         fi
7464       done
7465       IFS="$lt_save_ifs"
7466       ;;
7467     esac
7468 else
7469   pic_mode=default
7470 fi
7471
7472
7473 test -z "$pic_mode" && pic_mode=default
7474
7475
7476
7477
7478
7479
7480
7481   # Check whether --enable-fast-install was given.
7482 if test "${enable_fast_install+set}" = set; then :
7483   enableval=$enable_fast_install; p=${PACKAGE-default}
7484     case $enableval in
7485     yes) enable_fast_install=yes ;;
7486     no) enable_fast_install=no ;;
7487     *)
7488       enable_fast_install=no
7489       # Look at the argument we got.  We use all the common list separators.
7490       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491       for pkg in $enableval; do
7492         IFS="$lt_save_ifs"
7493         if test "X$pkg" = "X$p"; then
7494           enable_fast_install=yes
7495         fi
7496       done
7497       IFS="$lt_save_ifs"
7498       ;;
7499     esac
7500 else
7501   enable_fast_install=yes
7502 fi
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514 # This can be used to rebuild libtool when needed
7515 LIBTOOL_DEPS="$ltmain"
7516
7517 # Always use our own libtool.
7518 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549 test -z "$LN_S" && LN_S="ln -s"
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564 if test -n "${ZSH_VERSION+set}" ; then
7565    setopt NO_GLOB_SUBST
7566 fi
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7569 $as_echo_n "checking for objdir... " >&6; }
7570 if ${lt_cv_objdir+:} false; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   rm -f .libs 2>/dev/null
7574 mkdir .libs 2>/dev/null
7575 if test -d .libs; then
7576   lt_cv_objdir=.libs
7577 else
7578   # MS-DOS does not allow filenames that begin with a dot.
7579   lt_cv_objdir=_libs
7580 fi
7581 rmdir .libs 2>/dev/null
7582 fi
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7584 $as_echo "$lt_cv_objdir" >&6; }
7585 objdir=$lt_cv_objdir
7586
7587
7588
7589
7590
7591 cat >>confdefs.h <<_ACEOF
7592 #define LT_OBJDIR "$lt_cv_objdir/"
7593 _ACEOF
7594
7595
7596
7597
7598 case $host_os in
7599 aix3*)
7600   # AIX sometimes has problems with the GCC collect2 program.  For some
7601   # reason, if we set the COLLECT_NAMES environment variable, the problems
7602   # vanish in a puff of smoke.
7603   if test "X${COLLECT_NAMES+set}" != Xset; then
7604     COLLECT_NAMES=
7605     export COLLECT_NAMES
7606   fi
7607   ;;
7608 esac
7609
7610 # Global variables:
7611 ofile=libtool
7612 can_build_shared=yes
7613
7614 # All known linkers require a `.a' archive for static linking (except MSVC,
7615 # which needs '.lib').
7616 libext=a
7617
7618 with_gnu_ld="$lt_cv_prog_gnu_ld"
7619
7620 old_CC="$CC"
7621 old_CFLAGS="$CFLAGS"
7622
7623 # Set sane defaults for various variables
7624 test -z "$CC" && CC=cc
7625 test -z "$LTCC" && LTCC=$CC
7626 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7627 test -z "$LD" && LD=ld
7628 test -z "$ac_objext" && ac_objext=o
7629
7630 for cc_temp in $compiler""; do
7631   case $cc_temp in
7632     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7633     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7634     \-*) ;;
7635     *) break;;
7636   esac
7637 done
7638 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7639
7640
7641 # Only perform the check for file, if the check method requires it
7642 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7643 case $deplibs_check_method in
7644 file_magic*)
7645   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7647 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7648 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   case $MAGIC_CMD in
7652 [\\/*] |  ?:[\\/]*)
7653   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7654   ;;
7655 *)
7656   lt_save_MAGIC_CMD="$MAGIC_CMD"
7657   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7658   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7659   for ac_dir in $ac_dummy; do
7660     IFS="$lt_save_ifs"
7661     test -z "$ac_dir" && ac_dir=.
7662     if test -f $ac_dir/${ac_tool_prefix}file; then
7663       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7664       if test -n "$file_magic_test_file"; then
7665         case $deplibs_check_method in
7666         "file_magic "*)
7667           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7668           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7669           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7670             $EGREP "$file_magic_regex" > /dev/null; then
7671             :
7672           else
7673             cat <<_LT_EOF 1>&2
7674
7675 *** Warning: the command libtool uses to detect shared libraries,
7676 *** $file_magic_cmd, produces output that libtool cannot recognize.
7677 *** The result is that libtool may fail to recognize shared libraries
7678 *** as such.  This will affect the creation of libtool libraries that
7679 *** depend on shared libraries, but programs linked with such libtool
7680 *** libraries will work regardless of this problem.  Nevertheless, you
7681 *** may want to report the problem to your system manager and/or to
7682 *** bug-libtool@gnu.org
7683
7684 _LT_EOF
7685           fi ;;
7686         esac
7687       fi
7688       break
7689     fi
7690   done
7691   IFS="$lt_save_ifs"
7692   MAGIC_CMD="$lt_save_MAGIC_CMD"
7693   ;;
7694 esac
7695 fi
7696
7697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7698 if test -n "$MAGIC_CMD"; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7700 $as_echo "$MAGIC_CMD" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707
7708
7709
7710 if test -z "$lt_cv_path_MAGIC_CMD"; then
7711   if test -n "$ac_tool_prefix"; then
7712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7713 $as_echo_n "checking for file... " >&6; }
7714 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   case $MAGIC_CMD in
7718 [\\/*] |  ?:[\\/]*)
7719   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7720   ;;
7721 *)
7722   lt_save_MAGIC_CMD="$MAGIC_CMD"
7723   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7724   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7725   for ac_dir in $ac_dummy; do
7726     IFS="$lt_save_ifs"
7727     test -z "$ac_dir" && ac_dir=.
7728     if test -f $ac_dir/file; then
7729       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7730       if test -n "$file_magic_test_file"; then
7731         case $deplibs_check_method in
7732         "file_magic "*)
7733           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7734           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7735           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7736             $EGREP "$file_magic_regex" > /dev/null; then
7737             :
7738           else
7739             cat <<_LT_EOF 1>&2
7740
7741 *** Warning: the command libtool uses to detect shared libraries,
7742 *** $file_magic_cmd, produces output that libtool cannot recognize.
7743 *** The result is that libtool may fail to recognize shared libraries
7744 *** as such.  This will affect the creation of libtool libraries that
7745 *** depend on shared libraries, but programs linked with such libtool
7746 *** libraries will work regardless of this problem.  Nevertheless, you
7747 *** may want to report the problem to your system manager and/or to
7748 *** bug-libtool@gnu.org
7749
7750 _LT_EOF
7751           fi ;;
7752         esac
7753       fi
7754       break
7755     fi
7756   done
7757   IFS="$lt_save_ifs"
7758   MAGIC_CMD="$lt_save_MAGIC_CMD"
7759   ;;
7760 esac
7761 fi
7762
7763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764 if test -n "$MAGIC_CMD"; then
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7766 $as_echo "$MAGIC_CMD" >&6; }
7767 else
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772
7773   else
7774     MAGIC_CMD=:
7775   fi
7776 fi
7777
7778   fi
7779   ;;
7780 esac
7781
7782 # Use C for the default configuration in the libtool script
7783
7784 lt_save_CC="$CC"
7785 ac_ext=c
7786 ac_cpp='$CPP $CPPFLAGS'
7787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790
7791
7792 # Source file extension for C test sources.
7793 ac_ext=c
7794
7795 # Object file extension for compiled C test sources.
7796 objext=o
7797 objext=$objext
7798
7799 # Code to be used in simple compile tests
7800 lt_simple_compile_test_code="int some_variable = 0;"
7801
7802 # Code to be used in simple link tests
7803 lt_simple_link_test_code='int main(){return(0);}'
7804
7805
7806
7807
7808
7809
7810
7811 # If no C compiler was specified, use CC.
7812 LTCC=${LTCC-"$CC"}
7813
7814 # If no C compiler flags were specified, use CFLAGS.
7815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7816
7817 # Allow CC to be a program name with arguments.
7818 compiler=$CC
7819
7820 # Save the default compiler, since it gets overwritten when the other
7821 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7822 compiler_DEFAULT=$CC
7823
7824 # save warnings/boilerplate of simple test code
7825 ac_outfile=conftest.$ac_objext
7826 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7827 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7828 _lt_compiler_boilerplate=`cat conftest.err`
7829 $RM conftest*
7830
7831 ac_outfile=conftest.$ac_objext
7832 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7833 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7834 _lt_linker_boilerplate=`cat conftest.err`
7835 $RM -r conftest*
7836
7837
7838 ## CAVEAT EMPTOR:
7839 ## There is no encapsulation within the following macros, do not change
7840 ## the running order or otherwise move them around unless you know exactly
7841 ## what you are doing...
7842 if test -n "$compiler"; then
7843
7844 lt_prog_compiler_no_builtin_flag=
7845
7846 if test "$GCC" = yes; then
7847   case $cc_basename in
7848   nvcc*)
7849     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7850   *)
7851     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7852   esac
7853
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7855 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7856 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   lt_cv_prog_compiler_rtti_exceptions=no
7860    ac_outfile=conftest.$ac_objext
7861    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7862    lt_compiler_flag="-fno-rtti -fno-exceptions"
7863    # Insert the option either (1) after the last *FLAGS variable, or
7864    # (2) before a word containing "conftest.", or (3) at the end.
7865    # Note that $ac_compile itself does not contain backslashes and begins
7866    # with a dollar sign (not a hyphen), so the echo should work correctly.
7867    # The option is referenced via a variable to avoid confusing sed.
7868    lt_compile=`echo "$ac_compile" | $SED \
7869    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7870    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7871    -e 's:$: $lt_compiler_flag:'`
7872    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7873    (eval "$lt_compile" 2>conftest.err)
7874    ac_status=$?
7875    cat conftest.err >&5
7876    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877    if (exit $ac_status) && test -s "$ac_outfile"; then
7878      # The compiler can only warn and ignore the option if not recognized
7879      # So say no if there are warnings other than the usual output.
7880      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7881      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7882      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7883        lt_cv_prog_compiler_rtti_exceptions=yes
7884      fi
7885    fi
7886    $RM conftest*
7887
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7890 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7891
7892 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7893     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7894 else
7895     :
7896 fi
7897
7898 fi
7899
7900
7901
7902
7903
7904
7905   lt_prog_compiler_wl=
7906 lt_prog_compiler_pic=
7907 lt_prog_compiler_static=
7908
7909
7910   if test "$GCC" = yes; then
7911     lt_prog_compiler_wl='-Wl,'
7912     lt_prog_compiler_static='-static'
7913
7914     case $host_os in
7915       aix*)
7916       # All AIX code is PIC.
7917       if test "$host_cpu" = ia64; then
7918         # AIX 5 now supports IA64 processor
7919         lt_prog_compiler_static='-Bstatic'
7920       fi
7921       ;;
7922
7923     amigaos*)
7924       case $host_cpu in
7925       powerpc)
7926             # see comment about AmigaOS4 .so support
7927             lt_prog_compiler_pic='-fPIC'
7928         ;;
7929       m68k)
7930             # FIXME: we need at least 68020 code to build shared libraries, but
7931             # adding the `-m68020' flag to GCC prevents building anything better,
7932             # like `-m68040'.
7933             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7934         ;;
7935       esac
7936       ;;
7937
7938     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7939       # PIC is the default for these OSes.
7940       ;;
7941
7942     mingw* | cygwin* | pw32* | os2* | cegcc*)
7943       # This hack is so that the source file can tell whether it is being
7944       # built for inclusion in a dll (and should export symbols for example).
7945       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7946       # (--disable-auto-import) libraries
7947       lt_prog_compiler_pic='-DDLL_EXPORT'
7948       ;;
7949
7950     darwin* | rhapsody*)
7951       # PIC is the default on this platform
7952       # Common symbols not allowed in MH_DYLIB files
7953       lt_prog_compiler_pic='-fno-common'
7954       ;;
7955
7956     haiku*)
7957       # PIC is the default for Haiku.
7958       # The "-static" flag exists, but is broken.
7959       lt_prog_compiler_static=
7960       ;;
7961
7962     hpux*)
7963       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7964       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7965       # sets the default TLS model and affects inlining.
7966       case $host_cpu in
7967       hppa*64*)
7968         # +Z the default
7969         ;;
7970       *)
7971         lt_prog_compiler_pic='-fPIC'
7972         ;;
7973       esac
7974       ;;
7975
7976     interix[3-9]*)
7977       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7978       # Instead, we relocate shared libraries at runtime.
7979       ;;
7980
7981     msdosdjgpp*)
7982       # Just because we use GCC doesn't mean we suddenly get shared libraries
7983       # on systems that don't support them.
7984       lt_prog_compiler_can_build_shared=no
7985       enable_shared=no
7986       ;;
7987
7988     *nto* | *qnx*)
7989       # QNX uses GNU C++, but need to define -shared option too, otherwise
7990       # it will coredump.
7991       lt_prog_compiler_pic='-fPIC -shared'
7992       ;;
7993
7994     sysv4*MP*)
7995       if test -d /usr/nec; then
7996         lt_prog_compiler_pic=-Kconform_pic
7997       fi
7998       ;;
7999
8000     *)
8001       lt_prog_compiler_pic='-fPIC'
8002       ;;
8003     esac
8004
8005     case $cc_basename in
8006     nvcc*) # Cuda Compiler Driver 2.2
8007       lt_prog_compiler_wl='-Xlinker '
8008       if test -n "$lt_prog_compiler_pic"; then
8009         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8010       fi
8011       ;;
8012     esac
8013   else
8014     # PORTME Check for flag to pass linker flags through the system compiler.
8015     case $host_os in
8016     aix*)
8017       lt_prog_compiler_wl='-Wl,'
8018       if test "$host_cpu" = ia64; then
8019         # AIX 5 now supports IA64 processor
8020         lt_prog_compiler_static='-Bstatic'
8021       else
8022         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8023       fi
8024       ;;
8025
8026     mingw* | cygwin* | pw32* | os2* | cegcc*)
8027       # This hack is so that the source file can tell whether it is being
8028       # built for inclusion in a dll (and should export symbols for example).
8029       lt_prog_compiler_pic='-DDLL_EXPORT'
8030       ;;
8031
8032     hpux9* | hpux10* | hpux11*)
8033       lt_prog_compiler_wl='-Wl,'
8034       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8035       # not for PA HP-UX.
8036       case $host_cpu in
8037       hppa*64*|ia64*)
8038         # +Z the default
8039         ;;
8040       *)
8041         lt_prog_compiler_pic='+Z'
8042         ;;
8043       esac
8044       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8045       lt_prog_compiler_static='${wl}-a ${wl}archive'
8046       ;;
8047
8048     irix5* | irix6* | nonstopux*)
8049       lt_prog_compiler_wl='-Wl,'
8050       # PIC (with -KPIC) is the default.
8051       lt_prog_compiler_static='-non_shared'
8052       ;;
8053
8054     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8055       case $cc_basename in
8056       # old Intel for x86_64 which still supported -KPIC.
8057       ecc*)
8058         lt_prog_compiler_wl='-Wl,'
8059         lt_prog_compiler_pic='-KPIC'
8060         lt_prog_compiler_static='-static'
8061         ;;
8062       # icc used to be incompatible with GCC.
8063       # ICC 10 doesn't accept -KPIC any more.
8064       icc* | ifort*)
8065         lt_prog_compiler_wl='-Wl,'
8066         lt_prog_compiler_pic='-fPIC'
8067         lt_prog_compiler_static='-static'
8068         ;;
8069       # Lahey Fortran 8.1.
8070       lf95*)
8071         lt_prog_compiler_wl='-Wl,'
8072         lt_prog_compiler_pic='--shared'
8073         lt_prog_compiler_static='--static'
8074         ;;
8075       nagfor*)
8076         # NAG Fortran compiler
8077         lt_prog_compiler_wl='-Wl,-Wl,,'
8078         lt_prog_compiler_pic='-PIC'
8079         lt_prog_compiler_static='-Bstatic'
8080         ;;
8081       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8082         # Portland Group compilers (*not* the Pentium gcc compiler,
8083         # which looks to be a dead project)
8084         lt_prog_compiler_wl='-Wl,'
8085         lt_prog_compiler_pic='-fpic'
8086         lt_prog_compiler_static='-Bstatic'
8087         ;;
8088       ccc*)
8089         lt_prog_compiler_wl='-Wl,'
8090         # All Alpha code is PIC.
8091         lt_prog_compiler_static='-non_shared'
8092         ;;
8093       xl* | bgxl* | bgf* | mpixl*)
8094         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8095         lt_prog_compiler_wl='-Wl,'
8096         lt_prog_compiler_pic='-qpic'
8097         lt_prog_compiler_static='-qstaticlink'
8098         ;;
8099       *)
8100         case `$CC -V 2>&1 | sed 5q` in
8101         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8102           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8103           lt_prog_compiler_pic='-KPIC'
8104           lt_prog_compiler_static='-Bstatic'
8105           lt_prog_compiler_wl=''
8106           ;;
8107         *Sun\ F* | *Sun*Fortran*)
8108           lt_prog_compiler_pic='-KPIC'
8109           lt_prog_compiler_static='-Bstatic'
8110           lt_prog_compiler_wl='-Qoption ld '
8111           ;;
8112         *Sun\ C*)
8113           # Sun C 5.9
8114           lt_prog_compiler_pic='-KPIC'
8115           lt_prog_compiler_static='-Bstatic'
8116           lt_prog_compiler_wl='-Wl,'
8117           ;;
8118         *Intel*\ [CF]*Compiler*)
8119           lt_prog_compiler_wl='-Wl,'
8120           lt_prog_compiler_pic='-fPIC'
8121           lt_prog_compiler_static='-static'
8122           ;;
8123         *Portland\ Group*)
8124           lt_prog_compiler_wl='-Wl,'
8125           lt_prog_compiler_pic='-fpic'
8126           lt_prog_compiler_static='-Bstatic'
8127           ;;
8128         esac
8129         ;;
8130       esac
8131       ;;
8132
8133     newsos6)
8134       lt_prog_compiler_pic='-KPIC'
8135       lt_prog_compiler_static='-Bstatic'
8136       ;;
8137
8138     *nto* | *qnx*)
8139       # QNX uses GNU C++, but need to define -shared option too, otherwise
8140       # it will coredump.
8141       lt_prog_compiler_pic='-fPIC -shared'
8142       ;;
8143
8144     osf3* | osf4* | osf5*)
8145       lt_prog_compiler_wl='-Wl,'
8146       # All OSF/1 code is PIC.
8147       lt_prog_compiler_static='-non_shared'
8148       ;;
8149
8150     rdos*)
8151       lt_prog_compiler_static='-non_shared'
8152       ;;
8153
8154     solaris*)
8155       lt_prog_compiler_pic='-KPIC'
8156       lt_prog_compiler_static='-Bstatic'
8157       case $cc_basename in
8158       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8159         lt_prog_compiler_wl='-Qoption ld ';;
8160       *)
8161         lt_prog_compiler_wl='-Wl,';;
8162       esac
8163       ;;
8164
8165     sunos4*)
8166       lt_prog_compiler_wl='-Qoption ld '
8167       lt_prog_compiler_pic='-PIC'
8168       lt_prog_compiler_static='-Bstatic'
8169       ;;
8170
8171     sysv4 | sysv4.2uw2* | sysv4.3*)
8172       lt_prog_compiler_wl='-Wl,'
8173       lt_prog_compiler_pic='-KPIC'
8174       lt_prog_compiler_static='-Bstatic'
8175       ;;
8176
8177     sysv4*MP*)
8178       if test -d /usr/nec ;then
8179         lt_prog_compiler_pic='-Kconform_pic'
8180         lt_prog_compiler_static='-Bstatic'
8181       fi
8182       ;;
8183
8184     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8185       lt_prog_compiler_wl='-Wl,'
8186       lt_prog_compiler_pic='-KPIC'
8187       lt_prog_compiler_static='-Bstatic'
8188       ;;
8189
8190     unicos*)
8191       lt_prog_compiler_wl='-Wl,'
8192       lt_prog_compiler_can_build_shared=no
8193       ;;
8194
8195     uts4*)
8196       lt_prog_compiler_pic='-pic'
8197       lt_prog_compiler_static='-Bstatic'
8198       ;;
8199
8200     *)
8201       lt_prog_compiler_can_build_shared=no
8202       ;;
8203     esac
8204   fi
8205
8206 case $host_os in
8207   # For platforms which do not support PIC, -DPIC is meaningless:
8208   *djgpp*)
8209     lt_prog_compiler_pic=
8210     ;;
8211   *)
8212     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8213     ;;
8214 esac
8215
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8217 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8218 if ${lt_cv_prog_compiler_pic+:} false; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8224 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8225 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8226
8227 #
8228 # Check to make sure the PIC flag actually works.
8229 #
8230 if test -n "$lt_prog_compiler_pic"; then
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8232 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8233 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8234   $as_echo_n "(cached) " >&6
8235 else
8236   lt_cv_prog_compiler_pic_works=no
8237    ac_outfile=conftest.$ac_objext
8238    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8239    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8240    # Insert the option either (1) after the last *FLAGS variable, or
8241    # (2) before a word containing "conftest.", or (3) at the end.
8242    # Note that $ac_compile itself does not contain backslashes and begins
8243    # with a dollar sign (not a hyphen), so the echo should work correctly.
8244    # The option is referenced via a variable to avoid confusing sed.
8245    lt_compile=`echo "$ac_compile" | $SED \
8246    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8248    -e 's:$: $lt_compiler_flag:'`
8249    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8250    (eval "$lt_compile" 2>conftest.err)
8251    ac_status=$?
8252    cat conftest.err >&5
8253    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254    if (exit $ac_status) && test -s "$ac_outfile"; then
8255      # The compiler can only warn and ignore the option if not recognized
8256      # So say no if there are warnings other than the usual output.
8257      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8258      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8259      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8260        lt_cv_prog_compiler_pic_works=yes
8261      fi
8262    fi
8263    $RM conftest*
8264
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8268
8269 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8270     case $lt_prog_compiler_pic in
8271      "" | " "*) ;;
8272      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8273      esac
8274 else
8275     lt_prog_compiler_pic=
8276      lt_prog_compiler_can_build_shared=no
8277 fi
8278
8279 fi
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 #
8292 # Check to make sure the static flag actually works.
8293 #
8294 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8296 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8297 if ${lt_cv_prog_compiler_static_works+:} false; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300   lt_cv_prog_compiler_static_works=no
8301    save_LDFLAGS="$LDFLAGS"
8302    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8303    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8304    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8305      # The linker can only warn and ignore the option if not recognized
8306      # So say no if there are warnings
8307      if test -s conftest.err; then
8308        # Append any errors to the config.log.
8309        cat conftest.err 1>&5
8310        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8311        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8312        if diff conftest.exp conftest.er2 >/dev/null; then
8313          lt_cv_prog_compiler_static_works=yes
8314        fi
8315      else
8316        lt_cv_prog_compiler_static_works=yes
8317      fi
8318    fi
8319    $RM -r conftest*
8320    LDFLAGS="$save_LDFLAGS"
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8324 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8325
8326 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8327     :
8328 else
8329     lt_prog_compiler_static=
8330 fi
8331
8332
8333
8334
8335
8336
8337
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8339 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8340 if ${lt_cv_prog_compiler_c_o+:} false; then :
8341   $as_echo_n "(cached) " >&6
8342 else
8343   lt_cv_prog_compiler_c_o=no
8344    $RM -r conftest 2>/dev/null
8345    mkdir conftest
8346    cd conftest
8347    mkdir out
8348    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349
8350    lt_compiler_flag="-o out/conftest2.$ac_objext"
8351    # Insert the option either (1) after the last *FLAGS variable, or
8352    # (2) before a word containing "conftest.", or (3) at the end.
8353    # Note that $ac_compile itself does not contain backslashes and begins
8354    # with a dollar sign (not a hyphen), so the echo should work correctly.
8355    lt_compile=`echo "$ac_compile" | $SED \
8356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358    -e 's:$: $lt_compiler_flag:'`
8359    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8360    (eval "$lt_compile" 2>out/conftest.err)
8361    ac_status=$?
8362    cat out/conftest.err >&5
8363    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8365    then
8366      # The compiler can only warn and ignore the option if not recognized
8367      # So say no if there are warnings
8368      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8369      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8370      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8371        lt_cv_prog_compiler_c_o=yes
8372      fi
8373    fi
8374    chmod u+w . 2>&5
8375    $RM conftest*
8376    # SGI C++ compiler will create directory out/ii_files/ for
8377    # template instantiation
8378    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8379    $RM out/* && rmdir out
8380    cd ..
8381    $RM -r conftest
8382    $RM conftest*
8383
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8386 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8387
8388
8389
8390
8391
8392
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8395 if ${lt_cv_prog_compiler_c_o+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   lt_cv_prog_compiler_c_o=no
8399    $RM -r conftest 2>/dev/null
8400    mkdir conftest
8401    cd conftest
8402    mkdir out
8403    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8404
8405    lt_compiler_flag="-o out/conftest2.$ac_objext"
8406    # Insert the option either (1) after the last *FLAGS variable, or
8407    # (2) before a word containing "conftest.", or (3) at the end.
8408    # Note that $ac_compile itself does not contain backslashes and begins
8409    # with a dollar sign (not a hyphen), so the echo should work correctly.
8410    lt_compile=`echo "$ac_compile" | $SED \
8411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8413    -e 's:$: $lt_compiler_flag:'`
8414    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8415    (eval "$lt_compile" 2>out/conftest.err)
8416    ac_status=$?
8417    cat out/conftest.err >&5
8418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8420    then
8421      # The compiler can only warn and ignore the option if not recognized
8422      # So say no if there are warnings
8423      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8424      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8425      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8426        lt_cv_prog_compiler_c_o=yes
8427      fi
8428    fi
8429    chmod u+w . 2>&5
8430    $RM conftest*
8431    # SGI C++ compiler will create directory out/ii_files/ for
8432    # template instantiation
8433    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8434    $RM out/* && rmdir out
8435    cd ..
8436    $RM -r conftest
8437    $RM conftest*
8438
8439 fi
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8441 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8442
8443
8444
8445
8446 hard_links="nottested"
8447 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8448   # do not overwrite the value of need_locks provided by the user
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8450 $as_echo_n "checking if we can lock with hard links... " >&6; }
8451   hard_links=yes
8452   $RM conftest*
8453   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8454   touch conftest.a
8455   ln conftest.a conftest.b 2>&5 || hard_links=no
8456   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8458 $as_echo "$hard_links" >&6; }
8459   if test "$hard_links" = no; then
8460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8461 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8462     need_locks=warn
8463   fi
8464 else
8465   need_locks=no
8466 fi
8467
8468
8469
8470
8471
8472
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8474 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8475
8476   runpath_var=
8477   allow_undefined_flag=
8478   always_export_symbols=no
8479   archive_cmds=
8480   archive_expsym_cmds=
8481   compiler_needs_object=no
8482   enable_shared_with_static_runtimes=no
8483   export_dynamic_flag_spec=
8484   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8485   hardcode_automatic=no
8486   hardcode_direct=no
8487   hardcode_direct_absolute=no
8488   hardcode_libdir_flag_spec=
8489   hardcode_libdir_separator=
8490   hardcode_minus_L=no
8491   hardcode_shlibpath_var=unsupported
8492   inherit_rpath=no
8493   link_all_deplibs=unknown
8494   module_cmds=
8495   module_expsym_cmds=
8496   old_archive_from_new_cmds=
8497   old_archive_from_expsyms_cmds=
8498   thread_safe_flag_spec=
8499   whole_archive_flag_spec=
8500   # include_expsyms should be a list of space-separated symbols to be *always*
8501   # included in the symbol list
8502   include_expsyms=
8503   # exclude_expsyms can be an extended regexp of symbols to exclude
8504   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8505   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8506   # as well as any symbol that contains `d'.
8507   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8508   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8509   # platforms (ab)use it in PIC code, but their linkers get confused if
8510   # the symbol is explicitly referenced.  Since portable code cannot
8511   # rely on this symbol name, it's probably fine to never include it in
8512   # preloaded symbol tables.
8513   # Exclude shared library initialization/finalization symbols.
8514   extract_expsyms_cmds=
8515
8516   case $host_os in
8517   cygwin* | mingw* | pw32* | cegcc*)
8518     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8519     # When not using gcc, we currently assume that we are using
8520     # Microsoft Visual C++.
8521     if test "$GCC" != yes; then
8522       with_gnu_ld=no
8523     fi
8524     ;;
8525   interix*)
8526     # we just hope/assume this is gcc and not c89 (= MSVC++)
8527     with_gnu_ld=yes
8528     ;;
8529   openbsd*)
8530     with_gnu_ld=no
8531     ;;
8532   linux* | k*bsd*-gnu | gnu*)
8533     link_all_deplibs=no
8534     ;;
8535   esac
8536
8537   ld_shlibs=yes
8538
8539   # On some targets, GNU ld is compatible enough with the native linker
8540   # that we're better off using the native interface for both.
8541   lt_use_gnu_ld_interface=no
8542   if test "$with_gnu_ld" = yes; then
8543     case $host_os in
8544       aix*)
8545         # The AIX port of GNU ld has always aspired to compatibility
8546         # with the native linker.  However, as the warning in the GNU ld
8547         # block says, versions before 2.19.5* couldn't really create working
8548         # shared libraries, regardless of the interface used.
8549         case `$LD -v 2>&1` in
8550           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8551           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8552           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8553           *)
8554             lt_use_gnu_ld_interface=yes
8555             ;;
8556         esac
8557         ;;
8558       *)
8559         lt_use_gnu_ld_interface=yes
8560         ;;
8561     esac
8562   fi
8563
8564   if test "$lt_use_gnu_ld_interface" = yes; then
8565     # If archive_cmds runs LD, not CC, wlarc should be empty
8566     wlarc='${wl}'
8567
8568     # Set some defaults for GNU ld with shared library support. These
8569     # are reset later if shared libraries are not supported. Putting them
8570     # here allows them to be overridden if necessary.
8571     runpath_var=LD_RUN_PATH
8572     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573     export_dynamic_flag_spec='${wl}--export-dynamic'
8574     # ancient GNU ld didn't support --whole-archive et. al.
8575     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8576       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8577     else
8578       whole_archive_flag_spec=
8579     fi
8580     supports_anon_versioning=no
8581     case `$LD -v 2>&1` in
8582       *GNU\ gold*) supports_anon_versioning=yes ;;
8583       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586       *\ 2.11.*) ;; # other 2.11 versions
8587       *) supports_anon_versioning=yes ;;
8588     esac
8589
8590     # See if GNU ld supports shared libraries.
8591     case $host_os in
8592     aix[3-9]*)
8593       # On AIX/PPC, the GNU linker is very broken
8594       if test "$host_cpu" != ia64; then
8595         ld_shlibs=no
8596         cat <<_LT_EOF 1>&2
8597
8598 *** Warning: the GNU linker, at least up to release 2.19, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support.  If you
8601 *** really care for shared libraries, you may want to install binutils
8602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8603 *** You will then need to restart the configuration process.
8604
8605 _LT_EOF
8606       fi
8607       ;;
8608
8609     amigaos*)
8610       case $host_cpu in
8611       powerpc)
8612             # see comment about AmigaOS4 .so support
8613             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614             archive_expsym_cmds=''
8615         ;;
8616       m68k)
8617             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)'
8618             hardcode_libdir_flag_spec='-L$libdir'
8619             hardcode_minus_L=yes
8620         ;;
8621       esac
8622       ;;
8623
8624     beos*)
8625       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626         allow_undefined_flag=unsupported
8627         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8628         # support --undefined.  This deserves some investigation.  FIXME
8629         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630       else
8631         ld_shlibs=no
8632       fi
8633       ;;
8634
8635     cygwin* | mingw* | pw32* | cegcc*)
8636       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637       # as there is no search path for DLLs.
8638       hardcode_libdir_flag_spec='-L$libdir'
8639       export_dynamic_flag_spec='${wl}--export-all-symbols'
8640       allow_undefined_flag=unsupported
8641       always_export_symbols=no
8642       enable_shared_with_static_runtimes=yes
8643       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8644       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8645
8646       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8647         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8648         # If the export-symbols file already is a .def file (1st line
8649         # is EXPORTS), use it as is; otherwise, prepend...
8650         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8651           cp $export_symbols $output_objdir/$soname.def;
8652         else
8653           echo EXPORTS > $output_objdir/$soname.def;
8654           cat $export_symbols >> $output_objdir/$soname.def;
8655         fi~
8656         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8657       else
8658         ld_shlibs=no
8659       fi
8660       ;;
8661
8662     haiku*)
8663       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664       link_all_deplibs=yes
8665       ;;
8666
8667     interix[3-9]*)
8668       hardcode_direct=no
8669       hardcode_shlibpath_var=no
8670       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8671       export_dynamic_flag_spec='${wl}-E'
8672       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8673       # Instead, shared libraries are loaded at an image base (0x10000000 by
8674       # default) and relocated if they conflict, which is a slow very memory
8675       # consuming and fragmenting process.  To avoid this, we pick a random,
8676       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8677       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8678       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8679       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'
8680       ;;
8681
8682     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8683       tmp_diet=no
8684       if test "$host_os" = linux-dietlibc; then
8685         case $cc_basename in
8686           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8687         esac
8688       fi
8689       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8690          && test "$tmp_diet" = no
8691       then
8692         tmp_addflag=' $pic_flag'
8693         tmp_sharedflag='-shared'
8694         case $cc_basename,$host_cpu in
8695         pgcc*)                          # Portland Group C compiler
8696           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8697           tmp_addflag=' $pic_flag'
8698           ;;
8699         pgf77* | pgf90* | pgf95* | pgfortran*)
8700                                         # Portland Group f77 and f90 compilers
8701           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8702           tmp_addflag=' $pic_flag -Mnomain' ;;
8703         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8704           tmp_addflag=' -i_dynamic' ;;
8705         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8706           tmp_addflag=' -i_dynamic -nofor_main' ;;
8707         ifc* | ifort*)                  # Intel Fortran compiler
8708           tmp_addflag=' -nofor_main' ;;
8709         lf95*)                          # Lahey Fortran 8.1
8710           whole_archive_flag_spec=
8711           tmp_sharedflag='--shared' ;;
8712         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8713           tmp_sharedflag='-qmkshrobj'
8714           tmp_addflag= ;;
8715         nvcc*)  # Cuda Compiler Driver 2.2
8716           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8717           compiler_needs_object=yes
8718           ;;
8719         esac
8720         case `$CC -V 2>&1 | sed 5q` in
8721         *Sun\ C*)                       # Sun C 5.9
8722           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8723           compiler_needs_object=yes
8724           tmp_sharedflag='-G' ;;
8725         *Sun\ F*)                       # Sun Fortran 8.3
8726           tmp_sharedflag='-G' ;;
8727         esac
8728         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729
8730         if test "x$supports_anon_versioning" = xyes; then
8731           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8732             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8733             echo "local: *; };" >> $output_objdir/$libname.ver~
8734             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8735         fi
8736
8737         case $cc_basename in
8738         xlf* | bgf* | bgxlf* | mpixlf*)
8739           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8740           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8741           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8743           if test "x$supports_anon_versioning" = xyes; then
8744             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8745               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8746               echo "local: *; };" >> $output_objdir/$libname.ver~
8747               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8748           fi
8749           ;;
8750         esac
8751       else
8752         ld_shlibs=no
8753       fi
8754       ;;
8755
8756     netbsd* | netbsdelf*-gnu)
8757       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8758         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8759         wlarc=
8760       else
8761         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763       fi
8764       ;;
8765
8766     solaris*)
8767       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8768         ld_shlibs=no
8769         cat <<_LT_EOF 1>&2
8770
8771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8772 *** create shared libraries on Solaris systems.  Therefore, libtool
8773 *** is disabling shared libraries support.  We urge you to upgrade GNU
8774 *** binutils to release 2.9.1 or newer.  Another option is to modify
8775 *** your PATH or compiler configuration so that the native linker is
8776 *** used, and then restart.
8777
8778 _LT_EOF
8779       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8782       else
8783         ld_shlibs=no
8784       fi
8785       ;;
8786
8787     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8788       case `$LD -v 2>&1` in
8789         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8790         ld_shlibs=no
8791         cat <<_LT_EOF 1>&2
8792
8793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8794 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8795 *** is disabling shared libraries support.  We urge you to upgrade GNU
8796 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8797 *** your PATH or compiler configuration so that the native linker is
8798 *** used, and then restart.
8799
8800 _LT_EOF
8801         ;;
8802         *)
8803           # For security reasons, it is highly recommended that you always
8804           # use absolute paths for naming shared libraries, and exclude the
8805           # DT_RUNPATH tag from executables and libraries.  But doing so
8806           # requires that you compile everything twice, which is a pain.
8807           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8811           else
8812             ld_shlibs=no
8813           fi
8814         ;;
8815       esac
8816       ;;
8817
8818     sunos4*)
8819       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8820       wlarc=
8821       hardcode_direct=yes
8822       hardcode_shlibpath_var=no
8823       ;;
8824
8825     *)
8826       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8829       else
8830         ld_shlibs=no
8831       fi
8832       ;;
8833     esac
8834
8835     if test "$ld_shlibs" = no; then
8836       runpath_var=
8837       hardcode_libdir_flag_spec=
8838       export_dynamic_flag_spec=
8839       whole_archive_flag_spec=
8840     fi
8841   else
8842     # PORTME fill in a description of your system's linker (not GNU ld)
8843     case $host_os in
8844     aix3*)
8845       allow_undefined_flag=unsupported
8846       always_export_symbols=yes
8847       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'
8848       # Note: this linker hardcodes the directories in LIBPATH if there
8849       # are no directories specified by -L.
8850       hardcode_minus_L=yes
8851       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8852         # Neither direct hardcoding nor static linking is supported with a
8853         # broken collect2.
8854         hardcode_direct=unsupported
8855       fi
8856       ;;
8857
8858     aix[4-9]*)
8859       if test "$host_cpu" = ia64; then
8860         # On IA64, the linker does run time linking by default, so we don't
8861         # have to do anything special.
8862         aix_use_runtimelinking=no
8863         exp_sym_flag='-Bexport'
8864         no_entry_flag=""
8865       else
8866         # If we're using GNU nm, then we don't want the "-C" option.
8867         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8868         # Also, AIX nm treats weak defined symbols like other global
8869         # defined symbols, whereas GNU nm marks them as "W".
8870         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8871           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8872         else
8873           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'
8874         fi
8875         aix_use_runtimelinking=no
8876
8877         # Test if we are trying to use run time linking or normal
8878         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8879         # need to do runtime linking.
8880         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8881           for ld_flag in $LDFLAGS; do
8882           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8883             aix_use_runtimelinking=yes
8884             break
8885           fi
8886           done
8887           ;;
8888         esac
8889
8890         exp_sym_flag='-bexport'
8891         no_entry_flag='-bnoentry'
8892       fi
8893
8894       # When large executables or shared objects are built, AIX ld can
8895       # have problems creating the table of contents.  If linking a library
8896       # or program results in "error TOC overflow" add -mminimal-toc to
8897       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8898       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8899
8900       archive_cmds=''
8901       hardcode_direct=yes
8902       hardcode_direct_absolute=yes
8903       hardcode_libdir_separator=':'
8904       link_all_deplibs=yes
8905       file_list_spec='${wl}-f,'
8906
8907       if test "$GCC" = yes; then
8908         case $host_os in aix4.[012]|aix4.[012].*)
8909         # We only want to do this on AIX 4.2 and lower, the check
8910         # below for broken collect2 doesn't work under 4.3+
8911           collect2name=`${CC} -print-prog-name=collect2`
8912           if test -f "$collect2name" &&
8913            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8914           then
8915           # We have reworked collect2
8916           :
8917           else
8918           # We have old collect2
8919           hardcode_direct=unsupported
8920           # It fails to find uninstalled libraries when the uninstalled
8921           # path is not listed in the libpath.  Setting hardcode_minus_L
8922           # to unsupported forces relinking
8923           hardcode_minus_L=yes
8924           hardcode_libdir_flag_spec='-L$libdir'
8925           hardcode_libdir_separator=
8926           fi
8927           ;;
8928         esac
8929         shared_flag='-shared'
8930         if test "$aix_use_runtimelinking" = yes; then
8931           shared_flag="$shared_flag "'${wl}-G'
8932         fi
8933         link_all_deplibs=no
8934       else
8935         # not using gcc
8936         if test "$host_cpu" = ia64; then
8937         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8938         # chokes on -Wl,-G. The following line is correct:
8939           shared_flag='-G'
8940         else
8941           if test "$aix_use_runtimelinking" = yes; then
8942             shared_flag='${wl}-G'
8943           else
8944             shared_flag='${wl}-bM:SRE'
8945           fi
8946         fi
8947       fi
8948
8949       export_dynamic_flag_spec='${wl}-bexpall'
8950       # It seems that -bexpall does not export symbols beginning with
8951       # underscore (_), so it is better to generate a list of symbols to export.
8952       always_export_symbols=yes
8953       if test "$aix_use_runtimelinking" = yes; then
8954         # Warning - without using the other runtime loading flags (-brtl),
8955         # -berok will link without error, but may produce a broken library.
8956         allow_undefined_flag='-berok'
8957         # Determine the default libpath from the value encoded in an
8958         # empty executable.
8959         if test "${lt_cv_aix_libpath+set}" = set; then
8960   aix_libpath=$lt_cv_aix_libpath
8961 else
8962   if ${lt_cv_aix_libpath_+:} false; then :
8963   $as_echo_n "(cached) " >&6
8964 else
8965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h.  */
8967
8968 int
8969 main ()
8970 {
8971
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 if ac_fn_c_try_link "$LINENO"; then :
8977
8978   lt_aix_libpath_sed='
8979       /Import File Strings/,/^$/ {
8980           /^0/ {
8981               s/^0  *\([^ ]*\) *$/\1/
8982               p
8983           }
8984       }'
8985   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8986   # Check for a 64-bit object if we didn't find anything.
8987   if test -z "$lt_cv_aix_libpath_"; then
8988     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8989   fi
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext \
8992     conftest$ac_exeext conftest.$ac_ext
8993   if test -z "$lt_cv_aix_libpath_"; then
8994     lt_cv_aix_libpath_="/usr/lib:/lib"
8995   fi
8996
8997 fi
8998
8999   aix_libpath=$lt_cv_aix_libpath_
9000 fi
9001
9002         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9003         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9004       else
9005         if test "$host_cpu" = ia64; then
9006           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9007           allow_undefined_flag="-z nodefs"
9008           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"
9009         else
9010          # Determine the default libpath from the value encoded in an
9011          # empty executable.
9012          if test "${lt_cv_aix_libpath+set}" = set; then
9013   aix_libpath=$lt_cv_aix_libpath
9014 else
9015   if ${lt_cv_aix_libpath_+:} false; then :
9016   $as_echo_n "(cached) " >&6
9017 else
9018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h.  */
9020
9021 int
9022 main ()
9023 {
9024
9025   ;
9026   return 0;
9027 }
9028 _ACEOF
9029 if ac_fn_c_try_link "$LINENO"; then :
9030
9031   lt_aix_libpath_sed='
9032       /Import File Strings/,/^$/ {
9033           /^0/ {
9034               s/^0  *\([^ ]*\) *$/\1/
9035               p
9036           }
9037       }'
9038   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9039   # Check for a 64-bit object if we didn't find anything.
9040   if test -z "$lt_cv_aix_libpath_"; then
9041     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9042   fi
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext \
9045     conftest$ac_exeext conftest.$ac_ext
9046   if test -z "$lt_cv_aix_libpath_"; then
9047     lt_cv_aix_libpath_="/usr/lib:/lib"
9048   fi
9049
9050 fi
9051
9052   aix_libpath=$lt_cv_aix_libpath_
9053 fi
9054
9055          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9056           # Warning - without using the other run time loading flags,
9057           # -berok will link without error, but may produce a broken library.
9058           no_undefined_flag=' ${wl}-bernotok'
9059           allow_undefined_flag=' ${wl}-berok'
9060           if test "$with_gnu_ld" = yes; then
9061             # We only use this code for GNU lds that support --whole-archive.
9062             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9063           else
9064             # Exported symbols can be pulled into shared objects from archives
9065             whole_archive_flag_spec='$convenience'
9066           fi
9067           archive_cmds_need_lc=yes
9068           # This is similar to how AIX traditionally builds its shared libraries.
9069           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'
9070         fi
9071       fi
9072       ;;
9073
9074     amigaos*)
9075       case $host_cpu in
9076       powerpc)
9077             # see comment about AmigaOS4 .so support
9078             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079             archive_expsym_cmds=''
9080         ;;
9081       m68k)
9082             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)'
9083             hardcode_libdir_flag_spec='-L$libdir'
9084             hardcode_minus_L=yes
9085         ;;
9086       esac
9087       ;;
9088
9089     bsdi[45]*)
9090       export_dynamic_flag_spec=-rdynamic
9091       ;;
9092
9093     cygwin* | mingw* | pw32* | cegcc*)
9094       # When not using gcc, we currently assume that we are using
9095       # Microsoft Visual C++.
9096       # hardcode_libdir_flag_spec is actually meaningless, as there is
9097       # no search path for DLLs.
9098       case $cc_basename in
9099       cl*)
9100         # Native MSVC
9101         hardcode_libdir_flag_spec=' '
9102         allow_undefined_flag=unsupported
9103         always_export_symbols=yes
9104         file_list_spec='@'
9105         # Tell ltmain to make .lib files, not .a files.
9106         libext=lib
9107         # Tell ltmain to make .dll files, not .so files.
9108         shrext_cmds=".dll"
9109         # FIXME: Setting linknames here is a bad hack.
9110         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9111         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9112             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9113           else
9114             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9115           fi~
9116           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9117           linknames='
9118         # The linker will not automatically build a static lib if we build a DLL.
9119         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9120         enable_shared_with_static_runtimes=yes
9121         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9122         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9123         # Don't use ranlib
9124         old_postinstall_cmds='chmod 644 $oldlib'
9125         postlink_cmds='lt_outputfile="@OUTPUT@"~
9126           lt_tool_outputfile="@TOOL_OUTPUT@"~
9127           case $lt_outputfile in
9128             *.exe|*.EXE) ;;
9129             *)
9130               lt_outputfile="$lt_outputfile.exe"
9131               lt_tool_outputfile="$lt_tool_outputfile.exe"
9132               ;;
9133           esac~
9134           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9135             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9136             $RM "$lt_outputfile.manifest";
9137           fi'
9138         ;;
9139       *)
9140         # Assume MSVC wrapper
9141         hardcode_libdir_flag_spec=' '
9142         allow_undefined_flag=unsupported
9143         # Tell ltmain to make .lib files, not .a files.
9144         libext=lib
9145         # Tell ltmain to make .dll files, not .so files.
9146         shrext_cmds=".dll"
9147         # FIXME: Setting linknames here is a bad hack.
9148         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9149         # The linker will automatically build a .lib file if we build a DLL.
9150         old_archive_from_new_cmds='true'
9151         # FIXME: Should let the user specify the lib program.
9152         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9153         enable_shared_with_static_runtimes=yes
9154         ;;
9155       esac
9156       ;;
9157
9158     darwin* | rhapsody*)
9159
9160
9161   archive_cmds_need_lc=no
9162   hardcode_direct=no
9163   hardcode_automatic=yes
9164   hardcode_shlibpath_var=unsupported
9165   if test "$lt_cv_ld_force_load" = "yes"; then
9166     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9167
9168   else
9169     whole_archive_flag_spec=''
9170   fi
9171   link_all_deplibs=yes
9172   allow_undefined_flag="$_lt_dar_allow_undefined"
9173   case $cc_basename in
9174      ifort*) _lt_dar_can_shared=yes ;;
9175      *) _lt_dar_can_shared=$GCC ;;
9176   esac
9177   if test "$_lt_dar_can_shared" = "yes"; then
9178     output_verbose_link_cmd=func_echo_all
9179     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9180     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9181     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}"
9182     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}"
9183
9184   else
9185   ld_shlibs=no
9186   fi
9187
9188       ;;
9189
9190     dgux*)
9191       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192       hardcode_libdir_flag_spec='-L$libdir'
9193       hardcode_shlibpath_var=no
9194       ;;
9195
9196     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9197     # support.  Future versions do this automatically, but an explicit c++rt0.o
9198     # does not break anything, and helps significantly (at the cost of a little
9199     # extra space).
9200     freebsd2.2*)
9201       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9202       hardcode_libdir_flag_spec='-R$libdir'
9203       hardcode_direct=yes
9204       hardcode_shlibpath_var=no
9205       ;;
9206
9207     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9208     freebsd2.*)
9209       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210       hardcode_direct=yes
9211       hardcode_minus_L=yes
9212       hardcode_shlibpath_var=no
9213       ;;
9214
9215     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9216     freebsd* | dragonfly*)
9217       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9218       hardcode_libdir_flag_spec='-R$libdir'
9219       hardcode_direct=yes
9220       hardcode_shlibpath_var=no
9221       ;;
9222
9223     hpux9*)
9224       if test "$GCC" = yes; then
9225         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9226       else
9227         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'
9228       fi
9229       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9230       hardcode_libdir_separator=:
9231       hardcode_direct=yes
9232
9233       # hardcode_minus_L: Not really in the search PATH,
9234       # but as the default location of the library.
9235       hardcode_minus_L=yes
9236       export_dynamic_flag_spec='${wl}-E'
9237       ;;
9238
9239     hpux10*)
9240       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9241         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9242       else
9243         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9244       fi
9245       if test "$with_gnu_ld" = no; then
9246         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9247         hardcode_libdir_separator=:
9248         hardcode_direct=yes
9249         hardcode_direct_absolute=yes
9250         export_dynamic_flag_spec='${wl}-E'
9251         # hardcode_minus_L: Not really in the search PATH,
9252         # but as the default location of the library.
9253         hardcode_minus_L=yes
9254       fi
9255       ;;
9256
9257     hpux11*)
9258       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9259         case $host_cpu in
9260         hppa*64*)
9261           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9262           ;;
9263         ia64*)
9264           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9265           ;;
9266         *)
9267           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9268           ;;
9269         esac
9270       else
9271         case $host_cpu in
9272         hppa*64*)
9273           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274           ;;
9275         ia64*)
9276           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9277           ;;
9278         *)
9279
9280           # Older versions of the 11.00 compiler do not understand -b yet
9281           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9282           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9283 $as_echo_n "checking if $CC understands -b... " >&6; }
9284 if ${lt_cv_prog_compiler__b+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   lt_cv_prog_compiler__b=no
9288    save_LDFLAGS="$LDFLAGS"
9289    LDFLAGS="$LDFLAGS -b"
9290    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9291    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9292      # The linker can only warn and ignore the option if not recognized
9293      # So say no if there are warnings
9294      if test -s conftest.err; then
9295        # Append any errors to the config.log.
9296        cat conftest.err 1>&5
9297        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9298        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299        if diff conftest.exp conftest.er2 >/dev/null; then
9300          lt_cv_prog_compiler__b=yes
9301        fi
9302      else
9303        lt_cv_prog_compiler__b=yes
9304      fi
9305    fi
9306    $RM -r conftest*
9307    LDFLAGS="$save_LDFLAGS"
9308
9309 fi
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9311 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9312
9313 if test x"$lt_cv_prog_compiler__b" = xyes; then
9314     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9315 else
9316     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9317 fi
9318
9319           ;;
9320         esac
9321       fi
9322       if test "$with_gnu_ld" = no; then
9323         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9324         hardcode_libdir_separator=:
9325
9326         case $host_cpu in
9327         hppa*64*|ia64*)
9328           hardcode_direct=no
9329           hardcode_shlibpath_var=no
9330           ;;
9331         *)
9332           hardcode_direct=yes
9333           hardcode_direct_absolute=yes
9334           export_dynamic_flag_spec='${wl}-E'
9335
9336           # hardcode_minus_L: Not really in the search PATH,
9337           # but as the default location of the library.
9338           hardcode_minus_L=yes
9339           ;;
9340         esac
9341       fi
9342       ;;
9343
9344     irix5* | irix6* | nonstopux*)
9345       if test "$GCC" = yes; then
9346         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9347         # Try to use the -exported_symbol ld option, if it does not
9348         # work, assume that -exports_file does not work either and
9349         # implicitly export all symbols.
9350         # This should be the same for all languages, so no per-tag cache variable.
9351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9352 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9353 if ${lt_cv_irix_exported_symbol+:} false; then :
9354   $as_echo_n "(cached) " >&6
9355 else
9356   save_LDFLAGS="$LDFLAGS"
9357            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9358            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h.  */
9360 int foo (void) { return 0; }
9361 _ACEOF
9362 if ac_fn_c_try_link "$LINENO"; then :
9363   lt_cv_irix_exported_symbol=yes
9364 else
9365   lt_cv_irix_exported_symbol=no
9366 fi
9367 rm -f core conftest.err conftest.$ac_objext \
9368     conftest$ac_exeext conftest.$ac_ext
9369            LDFLAGS="$save_LDFLAGS"
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9372 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9373         if test "$lt_cv_irix_exported_symbol" = yes; then
9374           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9375         fi
9376       else
9377         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9378         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9379       fi
9380       archive_cmds_need_lc='no'
9381       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382       hardcode_libdir_separator=:
9383       inherit_rpath=yes
9384       link_all_deplibs=yes
9385       ;;
9386
9387     netbsd* | netbsdelf*-gnu)
9388       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9389         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9390       else
9391         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9392       fi
9393       hardcode_libdir_flag_spec='-R$libdir'
9394       hardcode_direct=yes
9395       hardcode_shlibpath_var=no
9396       ;;
9397
9398     newsos6)
9399       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9400       hardcode_direct=yes
9401       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402       hardcode_libdir_separator=:
9403       hardcode_shlibpath_var=no
9404       ;;
9405
9406     *nto* | *qnx*)
9407       ;;
9408
9409     openbsd*)
9410       if test -f /usr/libexec/ld.so; then
9411         hardcode_direct=yes
9412         hardcode_shlibpath_var=no
9413         hardcode_direct_absolute=yes
9414         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9415           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9416           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9417           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9418           export_dynamic_flag_spec='${wl}-E'
9419         else
9420           case $host_os in
9421            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9422              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423              hardcode_libdir_flag_spec='-R$libdir'
9424              ;;
9425            *)
9426              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9427              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9428              ;;
9429           esac
9430         fi
9431       else
9432         ld_shlibs=no
9433       fi
9434       ;;
9435
9436     os2*)
9437       hardcode_libdir_flag_spec='-L$libdir'
9438       hardcode_minus_L=yes
9439       allow_undefined_flag=unsupported
9440       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'
9441       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9442       ;;
9443
9444     osf3*)
9445       if test "$GCC" = yes; then
9446         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9447         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9448       else
9449         allow_undefined_flag=' -expect_unresolved \*'
9450         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9451       fi
9452       archive_cmds_need_lc='no'
9453       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454       hardcode_libdir_separator=:
9455       ;;
9456
9457     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9458       if test "$GCC" = yes; then
9459         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9460         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9461         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9462       else
9463         allow_undefined_flag=' -expect_unresolved \*'
9464         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9465         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9466         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9467
9468         # Both c and cxx compiler support -rpath directly
9469         hardcode_libdir_flag_spec='-rpath $libdir'
9470       fi
9471       archive_cmds_need_lc='no'
9472       hardcode_libdir_separator=:
9473       ;;
9474
9475     solaris*)
9476       no_undefined_flag=' -z defs'
9477       if test "$GCC" = yes; then
9478         wlarc='${wl}'
9479         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9480         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9481           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9482       else
9483         case `$CC -V 2>&1` in
9484         *"Compilers 5.0"*)
9485           wlarc=''
9486           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9488           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9489           ;;
9490         *)
9491           wlarc='${wl}'
9492           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9493           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9494           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9495           ;;
9496         esac
9497       fi
9498       hardcode_libdir_flag_spec='-R$libdir'
9499       hardcode_shlibpath_var=no
9500       case $host_os in
9501       solaris2.[0-5] | solaris2.[0-5].*) ;;
9502       *)
9503         # The compiler driver will combine and reorder linker options,
9504         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9505         # but is careful enough not to reorder.
9506         # Supported since Solaris 2.6 (maybe 2.5.1?)
9507         if test "$GCC" = yes; then
9508           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9509         else
9510           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9511         fi
9512         ;;
9513       esac
9514       link_all_deplibs=yes
9515       ;;
9516
9517     sunos4*)
9518       if test "x$host_vendor" = xsequent; then
9519         # Use $CC to link under sequent, because it throws in some extra .o
9520         # files that make .init and .fini sections work.
9521         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9522       else
9523         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9524       fi
9525       hardcode_libdir_flag_spec='-L$libdir'
9526       hardcode_direct=yes
9527       hardcode_minus_L=yes
9528       hardcode_shlibpath_var=no
9529       ;;
9530
9531     sysv4)
9532       case $host_vendor in
9533         sni)
9534           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535           hardcode_direct=yes # is this really true???
9536         ;;
9537         siemens)
9538           ## LD is ld it makes a PLAMLIB
9539           ## CC just makes a GrossModule.
9540           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9541           reload_cmds='$CC -r -o $output$reload_objs'
9542           hardcode_direct=no
9543         ;;
9544         motorola)
9545           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9547         ;;
9548       esac
9549       runpath_var='LD_RUN_PATH'
9550       hardcode_shlibpath_var=no
9551       ;;
9552
9553     sysv4.3*)
9554       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555       hardcode_shlibpath_var=no
9556       export_dynamic_flag_spec='-Bexport'
9557       ;;
9558
9559     sysv4*MP*)
9560       if test -d /usr/nec; then
9561         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562         hardcode_shlibpath_var=no
9563         runpath_var=LD_RUN_PATH
9564         hardcode_runpath_var=yes
9565         ld_shlibs=yes
9566       fi
9567       ;;
9568
9569     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9570       no_undefined_flag='${wl}-z,text'
9571       archive_cmds_need_lc=no
9572       hardcode_shlibpath_var=no
9573       runpath_var='LD_RUN_PATH'
9574
9575       if test "$GCC" = yes; then
9576         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578       else
9579         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581       fi
9582       ;;
9583
9584     sysv5* | sco3.2v5* | sco5v6*)
9585       # Note: We can NOT use -z defs as we might desire, because we do not
9586       # link with -lc, and that would cause any symbols used from libc to
9587       # always be unresolved, which means just about no library would
9588       # ever link correctly.  If we're not using GNU ld we use -z text
9589       # though, which does catch some bad symbols but isn't as heavy-handed
9590       # as -z defs.
9591       no_undefined_flag='${wl}-z,text'
9592       allow_undefined_flag='${wl}-z,nodefs'
9593       archive_cmds_need_lc=no
9594       hardcode_shlibpath_var=no
9595       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9596       hardcode_libdir_separator=':'
9597       link_all_deplibs=yes
9598       export_dynamic_flag_spec='${wl}-Bexport'
9599       runpath_var='LD_RUN_PATH'
9600
9601       if test "$GCC" = yes; then
9602         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604       else
9605         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607       fi
9608       ;;
9609
9610     uts4*)
9611       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612       hardcode_libdir_flag_spec='-L$libdir'
9613       hardcode_shlibpath_var=no
9614       ;;
9615
9616     *)
9617       ld_shlibs=no
9618       ;;
9619     esac
9620
9621     if test x$host_vendor = xsni; then
9622       case $host in
9623       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9624         export_dynamic_flag_spec='${wl}-Blargedynsym'
9625         ;;
9626       esac
9627     fi
9628   fi
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9631 $as_echo "$ld_shlibs" >&6; }
9632 test "$ld_shlibs" = no && can_build_shared=no
9633
9634 with_gnu_ld=$with_gnu_ld
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650 #
9651 # Do we need to explicitly link libc?
9652 #
9653 case "x$archive_cmds_need_lc" in
9654 x|xyes)
9655   # Assume -lc should be added
9656   archive_cmds_need_lc=yes
9657
9658   if test "$enable_shared" = yes && test "$GCC" = yes; then
9659     case $archive_cmds in
9660     *'~'*)
9661       # FIXME: we may have to deal with multi-command sequences.
9662       ;;
9663     '$CC '*)
9664       # Test whether the compiler implicitly links with -lc since on some
9665       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9666       # to ld, don't add -lc before -lgcc.
9667       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9668 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9669 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672   $RM conftest*
9673         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9674
9675         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9676   (eval $ac_compile) 2>&5
9677   ac_status=$?
9678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9679   test $ac_status = 0; } 2>conftest.err; then
9680           soname=conftest
9681           lib=conftest
9682           libobjs=conftest.$ac_objext
9683           deplibs=
9684           wl=$lt_prog_compiler_wl
9685           pic_flag=$lt_prog_compiler_pic
9686           compiler_flags=-v
9687           linker_flags=-v
9688           verstring=
9689           output_objdir=.
9690           libname=conftest
9691           lt_save_allow_undefined_flag=$allow_undefined_flag
9692           allow_undefined_flag=
9693           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9694   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9695   ac_status=$?
9696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9697   test $ac_status = 0; }
9698           then
9699             lt_cv_archive_cmds_need_lc=no
9700           else
9701             lt_cv_archive_cmds_need_lc=yes
9702           fi
9703           allow_undefined_flag=$lt_save_allow_undefined_flag
9704         else
9705           cat conftest.err 1>&5
9706         fi
9707         $RM conftest*
9708
9709 fi
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9711 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9712       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9713       ;;
9714     esac
9715   fi
9716   ;;
9717 esac
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9871 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9872
9873 if test "$GCC" = yes; then
9874   case $host_os in
9875     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9876     *) lt_awk_arg="/^libraries:/" ;;
9877   esac
9878   case $host_os in
9879     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9880     *) lt_sed_strip_eq="s,=/,/,g" ;;
9881   esac
9882   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9883   case $lt_search_path_spec in
9884   *\;*)
9885     # if the path contains ";" then we assume it to be the separator
9886     # otherwise default to the standard path separator (i.e. ":") - it is
9887     # assumed that no part of a normal pathname contains ";" but that should
9888     # okay in the real world where ";" in dirpaths is itself problematic.
9889     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9890     ;;
9891   *)
9892     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9893     ;;
9894   esac
9895   # Ok, now we have the path, separated by spaces, we can step through it
9896   # and add multilib dir if necessary.
9897   lt_tmp_lt_search_path_spec=
9898   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9899   for lt_sys_path in $lt_search_path_spec; do
9900     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9901       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9902     else
9903       test -d "$lt_sys_path" && \
9904         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9905     fi
9906   done
9907   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9908 BEGIN {RS=" "; FS="/|\n";} {
9909   lt_foo="";
9910   lt_count=0;
9911   for (lt_i = NF; lt_i > 0; lt_i--) {
9912     if ($lt_i != "" && $lt_i != ".") {
9913       if ($lt_i == "..") {
9914         lt_count++;
9915       } else {
9916         if (lt_count == 0) {
9917           lt_foo="/" $lt_i lt_foo;
9918         } else {
9919           lt_count--;
9920         }
9921       }
9922     }
9923   }
9924   if (lt_foo != "") { lt_freq[lt_foo]++; }
9925   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9926 }'`
9927   # AWK program above erroneously prepends '/' to C:/dos/paths
9928   # for these hosts.
9929   case $host_os in
9930     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9931       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9932   esac
9933   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9934 else
9935   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9936 fi
9937 library_names_spec=
9938 libname_spec='lib$name'
9939 soname_spec=
9940 shrext_cmds=".so"
9941 postinstall_cmds=
9942 postuninstall_cmds=
9943 finish_cmds=
9944 finish_eval=
9945 shlibpath_var=
9946 shlibpath_overrides_runpath=unknown
9947 version_type=none
9948 dynamic_linker="$host_os ld.so"
9949 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9950 need_lib_prefix=unknown
9951 hardcode_into_libs=no
9952
9953 # when you set need_version to no, make sure it does not cause -set_version
9954 # flags to be left without arguments
9955 need_version=unknown
9956
9957 case $host_os in
9958 aix3*)
9959   version_type=linux # correct to gnu/linux during the next big refactor
9960   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9961   shlibpath_var=LIBPATH
9962
9963   # AIX 3 has no versioning support, so we append a major version to the name.
9964   soname_spec='${libname}${release}${shared_ext}$major'
9965   ;;
9966
9967 aix[4-9]*)
9968   version_type=linux # correct to gnu/linux during the next big refactor
9969   need_lib_prefix=no
9970   need_version=no
9971   hardcode_into_libs=yes
9972   if test "$host_cpu" = ia64; then
9973     # AIX 5 supports IA64
9974     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9975     shlibpath_var=LD_LIBRARY_PATH
9976   else
9977     # With GCC up to 2.95.x, collect2 would create an import file
9978     # for dependence libraries.  The import file would start with
9979     # the line `#! .'.  This would cause the generated library to
9980     # depend on `.', always an invalid library.  This was fixed in
9981     # development snapshots of GCC prior to 3.0.
9982     case $host_os in
9983       aix4 | aix4.[01] | aix4.[01].*)
9984       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9985            echo ' yes '
9986            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9987         :
9988       else
9989         can_build_shared=no
9990       fi
9991       ;;
9992     esac
9993     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9994     # soname into executable. Probably we can add versioning support to
9995     # collect2, so additional links can be useful in future.
9996     if test "$aix_use_runtimelinking" = yes; then
9997       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9998       # instead of lib<name>.a to let people know that these are not
9999       # typical AIX shared libraries.
10000       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001     else
10002       # We preserve .a as extension for shared libraries through AIX4.2
10003       # and later when we are not doing run time linking.
10004       library_names_spec='${libname}${release}.a $libname.a'
10005       soname_spec='${libname}${release}${shared_ext}$major'
10006     fi
10007     shlibpath_var=LIBPATH
10008   fi
10009   ;;
10010
10011 amigaos*)
10012   case $host_cpu in
10013   powerpc)
10014     # Since July 2007 AmigaOS4 officially supports .so libraries.
10015     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017     ;;
10018   m68k)
10019     library_names_spec='$libname.ixlibrary $libname.a'
10020     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10021     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10022     ;;
10023   esac
10024   ;;
10025
10026 beos*)
10027   library_names_spec='${libname}${shared_ext}'
10028   dynamic_linker="$host_os ld.so"
10029   shlibpath_var=LIBRARY_PATH
10030   ;;
10031
10032 bsdi[45]*)
10033   version_type=linux # correct to gnu/linux during the next big refactor
10034   need_version=no
10035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036   soname_spec='${libname}${release}${shared_ext}$major'
10037   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10038   shlibpath_var=LD_LIBRARY_PATH
10039   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10040   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10041   # the default ld.so.conf also contains /usr/contrib/lib and
10042   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10043   # libtool to hard-code these into programs
10044   ;;
10045
10046 cygwin* | mingw* | pw32* | cegcc*)
10047   version_type=windows
10048   shrext_cmds=".dll"
10049   need_version=no
10050   need_lib_prefix=no
10051
10052   case $GCC,$cc_basename in
10053   yes,*)
10054     # gcc
10055     library_names_spec='$libname.dll.a'
10056     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10057     postinstall_cmds='base_file=`basename \${file}`~
10058       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10059       dldir=$destdir/`dirname \$dlpath`~
10060       test -d \$dldir || mkdir -p \$dldir~
10061       $install_prog $dir/$dlname \$dldir/$dlname~
10062       chmod a+x \$dldir/$dlname~
10063       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10064         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10065       fi'
10066     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10067       dlpath=$dir/\$dldll~
10068        $RM \$dlpath'
10069     shlibpath_overrides_runpath=yes
10070
10071     case $host_os in
10072     cygwin*)
10073       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10074       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10075
10076       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10077       ;;
10078     mingw* | cegcc*)
10079       # MinGW DLLs use traditional 'lib' prefix
10080       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10081       ;;
10082     pw32*)
10083       # pw32 DLLs use 'pw' prefix rather than 'lib'
10084       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10085       ;;
10086     esac
10087     dynamic_linker='Win32 ld.exe'
10088     ;;
10089
10090   *,cl*)
10091     # Native MSVC
10092     libname_spec='$name'
10093     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10094     library_names_spec='${libname}.dll.lib'
10095
10096     case $build_os in
10097     mingw*)
10098       sys_lib_search_path_spec=
10099       lt_save_ifs=$IFS
10100       IFS=';'
10101       for lt_path in $LIB
10102       do
10103         IFS=$lt_save_ifs
10104         # Let DOS variable expansion print the short 8.3 style file name.
10105         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10106         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10107       done
10108       IFS=$lt_save_ifs
10109       # Convert to MSYS style.
10110       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10111       ;;
10112     cygwin*)
10113       # Convert to unix form, then to dos form, then back to unix form
10114       # but this time dos style (no spaces!) so that the unix form looks
10115       # like /cygdrive/c/PROGRA~1:/cygdr...
10116       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10117       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10118       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10119       ;;
10120     *)
10121       sys_lib_search_path_spec="$LIB"
10122       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10123         # It is most probably a Windows format PATH.
10124         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10125       else
10126         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10127       fi
10128       # FIXME: find the short name or the path components, as spaces are
10129       # common. (e.g. "Program Files" -> "PROGRA~1")
10130       ;;
10131     esac
10132
10133     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10134     postinstall_cmds='base_file=`basename \${file}`~
10135       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10136       dldir=$destdir/`dirname \$dlpath`~
10137       test -d \$dldir || mkdir -p \$dldir~
10138       $install_prog $dir/$dlname \$dldir/$dlname'
10139     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10140       dlpath=$dir/\$dldll~
10141        $RM \$dlpath'
10142     shlibpath_overrides_runpath=yes
10143     dynamic_linker='Win32 link.exe'
10144     ;;
10145
10146   *)
10147     # Assume MSVC wrapper
10148     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10149     dynamic_linker='Win32 ld.exe'
10150     ;;
10151   esac
10152   # FIXME: first we should search . and the directory the executable is in
10153   shlibpath_var=PATH
10154   ;;
10155
10156 darwin* | rhapsody*)
10157   dynamic_linker="$host_os dyld"
10158   version_type=darwin
10159   need_lib_prefix=no
10160   need_version=no
10161   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10162   soname_spec='${libname}${release}${major}$shared_ext'
10163   shlibpath_overrides_runpath=yes
10164   shlibpath_var=DYLD_LIBRARY_PATH
10165   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10166
10167   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10168   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10169   ;;
10170
10171 dgux*)
10172   version_type=linux # correct to gnu/linux during the next big refactor
10173   need_lib_prefix=no
10174   need_version=no
10175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10176   soname_spec='${libname}${release}${shared_ext}$major'
10177   shlibpath_var=LD_LIBRARY_PATH
10178   ;;
10179
10180 freebsd* | dragonfly*)
10181   # DragonFly does not have aout.  When/if they implement a new
10182   # versioning mechanism, adjust this.
10183   if test -x /usr/bin/objformat; then
10184     objformat=`/usr/bin/objformat`
10185   else
10186     case $host_os in
10187     freebsd[23].*) objformat=aout ;;
10188     *) objformat=elf ;;
10189     esac
10190   fi
10191   version_type=freebsd-$objformat
10192   case $version_type in
10193     freebsd-elf*)
10194       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10195       need_version=no
10196       need_lib_prefix=no
10197       ;;
10198     freebsd-*)
10199       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10200       need_version=yes
10201       ;;
10202   esac
10203   shlibpath_var=LD_LIBRARY_PATH
10204   case $host_os in
10205   freebsd2.*)
10206     shlibpath_overrides_runpath=yes
10207     ;;
10208   freebsd3.[01]* | freebsdelf3.[01]*)
10209     shlibpath_overrides_runpath=yes
10210     hardcode_into_libs=yes
10211     ;;
10212   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10213   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10214     shlibpath_overrides_runpath=no
10215     hardcode_into_libs=yes
10216     ;;
10217   *) # from 4.6 on, and DragonFly
10218     shlibpath_overrides_runpath=yes
10219     hardcode_into_libs=yes
10220     ;;
10221   esac
10222   ;;
10223
10224 haiku*)
10225   version_type=linux # correct to gnu/linux during the next big refactor
10226   need_lib_prefix=no
10227   need_version=no
10228   dynamic_linker="$host_os runtime_loader"
10229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10230   soname_spec='${libname}${release}${shared_ext}$major'
10231   shlibpath_var=LIBRARY_PATH
10232   shlibpath_overrides_runpath=yes
10233   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10234   hardcode_into_libs=yes
10235   ;;
10236
10237 hpux9* | hpux10* | hpux11*)
10238   # Give a soname corresponding to the major version so that dld.sl refuses to
10239   # link against other versions.
10240   version_type=sunos
10241   need_lib_prefix=no
10242   need_version=no
10243   case $host_cpu in
10244   ia64*)
10245     shrext_cmds='.so'
10246     hardcode_into_libs=yes
10247     dynamic_linker="$host_os dld.so"
10248     shlibpath_var=LD_LIBRARY_PATH
10249     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251     soname_spec='${libname}${release}${shared_ext}$major'
10252     if test "X$HPUX_IA64_MODE" = X32; then
10253       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10254     else
10255       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10256     fi
10257     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10258     ;;
10259   hppa*64*)
10260     shrext_cmds='.sl'
10261     hardcode_into_libs=yes
10262     dynamic_linker="$host_os dld.sl"
10263     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10264     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266     soname_spec='${libname}${release}${shared_ext}$major'
10267     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10268     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10269     ;;
10270   *)
10271     shrext_cmds='.sl'
10272     dynamic_linker="$host_os dld.sl"
10273     shlibpath_var=SHLIB_PATH
10274     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276     soname_spec='${libname}${release}${shared_ext}$major'
10277     ;;
10278   esac
10279   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10280   postinstall_cmds='chmod 555 $lib'
10281   # or fails outright, so override atomically:
10282   install_override_mode=555
10283   ;;
10284
10285 interix[3-9]*)
10286   version_type=linux # correct to gnu/linux during the next big refactor
10287   need_lib_prefix=no
10288   need_version=no
10289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10290   soname_spec='${libname}${release}${shared_ext}$major'
10291   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   shlibpath_overrides_runpath=no
10294   hardcode_into_libs=yes
10295   ;;
10296
10297 irix5* | irix6* | nonstopux*)
10298   case $host_os in
10299     nonstopux*) version_type=nonstopux ;;
10300     *)
10301         if test "$lt_cv_prog_gnu_ld" = yes; then
10302                 version_type=linux # correct to gnu/linux during the next big refactor
10303         else
10304                 version_type=irix
10305         fi ;;
10306   esac
10307   need_lib_prefix=no
10308   need_version=no
10309   soname_spec='${libname}${release}${shared_ext}$major'
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10311   case $host_os in
10312   irix5* | nonstopux*)
10313     libsuff= shlibsuff=
10314     ;;
10315   *)
10316     case $LD in # libtool.m4 will add one of these switches to LD
10317     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10318       libsuff= shlibsuff= libmagic=32-bit;;
10319     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10320       libsuff=32 shlibsuff=N32 libmagic=N32;;
10321     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10322       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10323     *) libsuff= shlibsuff= libmagic=never-match;;
10324     esac
10325     ;;
10326   esac
10327   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10328   shlibpath_overrides_runpath=no
10329   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10330   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10331   hardcode_into_libs=yes
10332   ;;
10333
10334 # No shared lib support for Linux oldld, aout, or coff.
10335 linux*oldld* | linux*aout* | linux*coff*)
10336   dynamic_linker=no
10337   ;;
10338
10339 # This must be glibc/ELF.
10340 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10341   version_type=linux # correct to gnu/linux during the next big refactor
10342   need_lib_prefix=no
10343   need_version=no
10344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345   soname_spec='${libname}${release}${shared_ext}$major'
10346   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10347   shlibpath_var=LD_LIBRARY_PATH
10348   shlibpath_overrides_runpath=no
10349
10350   # Some binutils ld are patched to set DT_RUNPATH
10351   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10352   $as_echo_n "(cached) " >&6
10353 else
10354   lt_cv_shlibpath_overrides_runpath=no
10355     save_LDFLAGS=$LDFLAGS
10356     save_libdir=$libdir
10357     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10358          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h.  */
10361
10362 int
10363 main ()
10364 {
10365
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10371   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10372   lt_cv_shlibpath_overrides_runpath=yes
10373 fi
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext \
10376     conftest$ac_exeext conftest.$ac_ext
10377     LDFLAGS=$save_LDFLAGS
10378     libdir=$save_libdir
10379
10380 fi
10381
10382   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10383
10384   # This implies no fast_install, which is unacceptable.
10385   # Some rework will be needed to allow for fast_install
10386   # before this can be enabled.
10387   hardcode_into_libs=yes
10388
10389   # Append ld.so.conf contents to the search path
10390   if test -f /etc/ld.so.conf; then
10391     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10392     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10393   fi
10394
10395   # We used to test for /lib/ld.so.1 and disable shared libraries on
10396   # powerpc, because MkLinux only supported shared libraries with the
10397   # GNU dynamic linker.  Since this was broken with cross compilers,
10398   # most powerpc-linux boxes support dynamic linking these days and
10399   # people can always --disable-shared, the test was removed, and we
10400   # assume the GNU/Linux dynamic linker is in use.
10401   dynamic_linker='GNU/Linux ld.so'
10402   ;;
10403
10404 netbsdelf*-gnu)
10405   version_type=linux
10406   need_lib_prefix=no
10407   need_version=no
10408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10409   soname_spec='${libname}${release}${shared_ext}$major'
10410   shlibpath_var=LD_LIBRARY_PATH
10411   shlibpath_overrides_runpath=no
10412   hardcode_into_libs=yes
10413   dynamic_linker='NetBSD ld.elf_so'
10414   ;;
10415
10416 netbsd*)
10417   version_type=sunos
10418   need_lib_prefix=no
10419   need_version=no
10420   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10422     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10423     dynamic_linker='NetBSD (a.out) ld.so'
10424   else
10425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10426     soname_spec='${libname}${release}${shared_ext}$major'
10427     dynamic_linker='NetBSD ld.elf_so'
10428   fi
10429   shlibpath_var=LD_LIBRARY_PATH
10430   shlibpath_overrides_runpath=yes
10431   hardcode_into_libs=yes
10432   ;;
10433
10434 newsos6)
10435   version_type=linux # correct to gnu/linux during the next big refactor
10436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437   shlibpath_var=LD_LIBRARY_PATH
10438   shlibpath_overrides_runpath=yes
10439   ;;
10440
10441 *nto* | *qnx*)
10442   version_type=qnx
10443   need_lib_prefix=no
10444   need_version=no
10445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446   soname_spec='${libname}${release}${shared_ext}$major'
10447   shlibpath_var=LD_LIBRARY_PATH
10448   shlibpath_overrides_runpath=no
10449   hardcode_into_libs=yes
10450   dynamic_linker='ldqnx.so'
10451   ;;
10452
10453 openbsd*)
10454   version_type=sunos
10455   sys_lib_dlsearch_path_spec="/usr/lib"
10456   need_lib_prefix=no
10457   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10458   case $host_os in
10459     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10460     *)                          need_version=no  ;;
10461   esac
10462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10463   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10464   shlibpath_var=LD_LIBRARY_PATH
10465   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10466     case $host_os in
10467       openbsd2.[89] | openbsd2.[89].*)
10468         shlibpath_overrides_runpath=no
10469         ;;
10470       *)
10471         shlibpath_overrides_runpath=yes
10472         ;;
10473       esac
10474   else
10475     shlibpath_overrides_runpath=yes
10476   fi
10477   ;;
10478
10479 os2*)
10480   libname_spec='$name'
10481   shrext_cmds=".dll"
10482   need_lib_prefix=no
10483   library_names_spec='$libname${shared_ext} $libname.a'
10484   dynamic_linker='OS/2 ld.exe'
10485   shlibpath_var=LIBPATH
10486   ;;
10487
10488 osf3* | osf4* | osf5*)
10489   version_type=osf
10490   need_lib_prefix=no
10491   need_version=no
10492   soname_spec='${libname}${release}${shared_ext}$major'
10493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10494   shlibpath_var=LD_LIBRARY_PATH
10495   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10496   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10497   ;;
10498
10499 rdos*)
10500   dynamic_linker=no
10501   ;;
10502
10503 solaris*)
10504   version_type=linux # correct to gnu/linux during the next big refactor
10505   need_lib_prefix=no
10506   need_version=no
10507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508   soname_spec='${libname}${release}${shared_ext}$major'
10509   shlibpath_var=LD_LIBRARY_PATH
10510   shlibpath_overrides_runpath=yes
10511   hardcode_into_libs=yes
10512   # ldd complains unless libraries are executable
10513   postinstall_cmds='chmod +x $lib'
10514   ;;
10515
10516 sunos4*)
10517   version_type=sunos
10518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10519   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10520   shlibpath_var=LD_LIBRARY_PATH
10521   shlibpath_overrides_runpath=yes
10522   if test "$with_gnu_ld" = yes; then
10523     need_lib_prefix=no
10524   fi
10525   need_version=yes
10526   ;;
10527
10528 sysv4 | sysv4.3*)
10529   version_type=linux # correct to gnu/linux during the next big refactor
10530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531   soname_spec='${libname}${release}${shared_ext}$major'
10532   shlibpath_var=LD_LIBRARY_PATH
10533   case $host_vendor in
10534     sni)
10535       shlibpath_overrides_runpath=no
10536       need_lib_prefix=no
10537       runpath_var=LD_RUN_PATH
10538       ;;
10539     siemens)
10540       need_lib_prefix=no
10541       ;;
10542     motorola)
10543       need_lib_prefix=no
10544       need_version=no
10545       shlibpath_overrides_runpath=no
10546       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10547       ;;
10548   esac
10549   ;;
10550
10551 sysv4*MP*)
10552   if test -d /usr/nec ;then
10553     version_type=linux # correct to gnu/linux during the next big refactor
10554     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10555     soname_spec='$libname${shared_ext}.$major'
10556     shlibpath_var=LD_LIBRARY_PATH
10557   fi
10558   ;;
10559
10560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10561   version_type=freebsd-elf
10562   need_lib_prefix=no
10563   need_version=no
10564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10565   soname_spec='${libname}${release}${shared_ext}$major'
10566   shlibpath_var=LD_LIBRARY_PATH
10567   shlibpath_overrides_runpath=yes
10568   hardcode_into_libs=yes
10569   if test "$with_gnu_ld" = yes; then
10570     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10571   else
10572     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10573     case $host_os in
10574       sco3.2v5*)
10575         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10576         ;;
10577     esac
10578   fi
10579   sys_lib_dlsearch_path_spec='/usr/lib'
10580   ;;
10581
10582 tpf*)
10583   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10584   version_type=linux # correct to gnu/linux during the next big refactor
10585   need_lib_prefix=no
10586   need_version=no
10587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588   shlibpath_var=LD_LIBRARY_PATH
10589   shlibpath_overrides_runpath=no
10590   hardcode_into_libs=yes
10591   ;;
10592
10593 uts4*)
10594   version_type=linux # correct to gnu/linux during the next big refactor
10595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596   soname_spec='${libname}${release}${shared_ext}$major'
10597   shlibpath_var=LD_LIBRARY_PATH
10598   ;;
10599
10600 *)
10601   dynamic_linker=no
10602   ;;
10603 esac
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10605 $as_echo "$dynamic_linker" >&6; }
10606 test "$dynamic_linker" = no && can_build_shared=no
10607
10608 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10609 if test "$GCC" = yes; then
10610   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10611 fi
10612
10613 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10614   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10615 fi
10616 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10617   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10618 fi
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10712 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10713 hardcode_action=
10714 if test -n "$hardcode_libdir_flag_spec" ||
10715    test -n "$runpath_var" ||
10716    test "X$hardcode_automatic" = "Xyes" ; then
10717
10718   # We can hardcode non-existent directories.
10719   if test "$hardcode_direct" != no &&
10720      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10721      # have to relink, otherwise we might link with an installed library
10722      # when we should be linking with a yet-to-be-installed one
10723      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10724      test "$hardcode_minus_L" != no; then
10725     # Linking always hardcodes the temporary library directory.
10726     hardcode_action=relink
10727   else
10728     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10729     hardcode_action=immediate
10730   fi
10731 else
10732   # We cannot hardcode anything, or else we can only hardcode existing
10733   # directories.
10734   hardcode_action=unsupported
10735 fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10737 $as_echo "$hardcode_action" >&6; }
10738
10739 if test "$hardcode_action" = relink ||
10740    test "$inherit_rpath" = yes; then
10741   # Fast installation is not supported
10742   enable_fast_install=no
10743 elif test "$shlibpath_overrides_runpath" = yes ||
10744      test "$enable_shared" = no; then
10745   # Fast installation is not necessary
10746   enable_fast_install=needless
10747 fi
10748
10749
10750
10751
10752
10753
10754   if test "x$enable_dlopen" != xyes; then
10755   enable_dlopen=unknown
10756   enable_dlopen_self=unknown
10757   enable_dlopen_self_static=unknown
10758 else
10759   lt_cv_dlopen=no
10760   lt_cv_dlopen_libs=
10761
10762   case $host_os in
10763   beos*)
10764     lt_cv_dlopen="load_add_on"
10765     lt_cv_dlopen_libs=
10766     lt_cv_dlopen_self=yes
10767     ;;
10768
10769   mingw* | pw32* | cegcc*)
10770     lt_cv_dlopen="LoadLibrary"
10771     lt_cv_dlopen_libs=
10772     ;;
10773
10774   cygwin*)
10775     lt_cv_dlopen="dlopen"
10776     lt_cv_dlopen_libs=
10777     ;;
10778
10779   darwin*)
10780   # if libdl is installed we need to link against it
10781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10782 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10783 if ${ac_cv_lib_dl_dlopen+:} false; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   ac_check_lib_save_LIBS=$LIBS
10787 LIBS="-ldl  $LIBS"
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h.  */
10790
10791 /* Override any GCC internal prototype to avoid an error.
10792    Use char because int might match the return type of a GCC
10793    builtin and then its argument prototype would still apply.  */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char dlopen ();
10798 int
10799 main ()
10800 {
10801 return dlopen ();
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 if ac_fn_c_try_link "$LINENO"; then :
10807   ac_cv_lib_dl_dlopen=yes
10808 else
10809   ac_cv_lib_dl_dlopen=no
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext \
10812     conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10814 fi
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10816 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10817 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10818   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10819 else
10820
10821     lt_cv_dlopen="dyld"
10822     lt_cv_dlopen_libs=
10823     lt_cv_dlopen_self=yes
10824
10825 fi
10826
10827     ;;
10828
10829   *)
10830     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10831 if test "x$ac_cv_func_shl_load" = xyes; then :
10832   lt_cv_dlopen="shl_load"
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10835 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10836 if ${ac_cv_lib_dld_shl_load+:} false; then :
10837   $as_echo_n "(cached) " >&6
10838 else
10839   ac_check_lib_save_LIBS=$LIBS
10840 LIBS="-ldld  $LIBS"
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h.  */
10843
10844 /* Override any GCC internal prototype to avoid an error.
10845    Use char because int might match the return type of a GCC
10846    builtin and then its argument prototype would still apply.  */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 char shl_load ();
10851 int
10852 main ()
10853 {
10854 return shl_load ();
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 if ac_fn_c_try_link "$LINENO"; then :
10860   ac_cv_lib_dld_shl_load=yes
10861 else
10862   ac_cv_lib_dld_shl_load=no
10863 fi
10864 rm -f core conftest.err conftest.$ac_objext \
10865     conftest$ac_exeext conftest.$ac_ext
10866 LIBS=$ac_check_lib_save_LIBS
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10869 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10870 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10871   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10872 else
10873   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10874 if test "x$ac_cv_func_dlopen" = xyes; then :
10875   lt_cv_dlopen="dlopen"
10876 else
10877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10878 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10879 if ${ac_cv_lib_dl_dlopen+:} false; then :
10880   $as_echo_n "(cached) " >&6
10881 else
10882   ac_check_lib_save_LIBS=$LIBS
10883 LIBS="-ldl  $LIBS"
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h.  */
10886
10887 /* Override any GCC internal prototype to avoid an error.
10888    Use char because int might match the return type of a GCC
10889    builtin and then its argument prototype would still apply.  */
10890 #ifdef __cplusplus
10891 extern "C"
10892 #endif
10893 char dlopen ();
10894 int
10895 main ()
10896 {
10897 return dlopen ();
10898   ;
10899   return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_c_try_link "$LINENO"; then :
10903   ac_cv_lib_dl_dlopen=yes
10904 else
10905   ac_cv_lib_dl_dlopen=no
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext \
10908     conftest$ac_exeext conftest.$ac_ext
10909 LIBS=$ac_check_lib_save_LIBS
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10912 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10913 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10914   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10915 else
10916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10917 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10918 if ${ac_cv_lib_svld_dlopen+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   ac_check_lib_save_LIBS=$LIBS
10922 LIBS="-lsvld  $LIBS"
10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h.  */
10925
10926 /* Override any GCC internal prototype to avoid an error.
10927    Use char because int might match the return type of a GCC
10928    builtin and then its argument prototype would still apply.  */
10929 #ifdef __cplusplus
10930 extern "C"
10931 #endif
10932 char dlopen ();
10933 int
10934 main ()
10935 {
10936 return dlopen ();
10937   ;
10938   return 0;
10939 }
10940 _ACEOF
10941 if ac_fn_c_try_link "$LINENO"; then :
10942   ac_cv_lib_svld_dlopen=yes
10943 else
10944   ac_cv_lib_svld_dlopen=no
10945 fi
10946 rm -f core conftest.err conftest.$ac_objext \
10947     conftest$ac_exeext conftest.$ac_ext
10948 LIBS=$ac_check_lib_save_LIBS
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10951 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10952 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10953   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10954 else
10955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10956 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10957 if ${ac_cv_lib_dld_dld_link+:} false; then :
10958   $as_echo_n "(cached) " >&6
10959 else
10960   ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-ldld  $LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10964
10965 /* Override any GCC internal prototype to avoid an error.
10966    Use char because int might match the return type of a GCC
10967    builtin and then its argument prototype would still apply.  */
10968 #ifdef __cplusplus
10969 extern "C"
10970 #endif
10971 char dld_link ();
10972 int
10973 main ()
10974 {
10975 return dld_link ();
10976   ;
10977   return 0;
10978 }
10979 _ACEOF
10980 if ac_fn_c_try_link "$LINENO"; then :
10981   ac_cv_lib_dld_dld_link=yes
10982 else
10983   ac_cv_lib_dld_dld_link=no
10984 fi
10985 rm -f core conftest.err conftest.$ac_objext \
10986     conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10988 fi
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10990 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10991 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10992   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10993 fi
10994
10995
10996 fi
10997
10998
10999 fi
11000
11001
11002 fi
11003
11004
11005 fi
11006
11007
11008 fi
11009
11010     ;;
11011   esac
11012
11013   if test "x$lt_cv_dlopen" != xno; then
11014     enable_dlopen=yes
11015   else
11016     enable_dlopen=no
11017   fi
11018
11019   case $lt_cv_dlopen in
11020   dlopen)
11021     save_CPPFLAGS="$CPPFLAGS"
11022     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11023
11024     save_LDFLAGS="$LDFLAGS"
11025     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11026
11027     save_LIBS="$LIBS"
11028     LIBS="$lt_cv_dlopen_libs $LIBS"
11029
11030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11031 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11032 if ${lt_cv_dlopen_self+:} false; then :
11033   $as_echo_n "(cached) " >&6
11034 else
11035           if test "$cross_compiling" = yes; then :
11036   lt_cv_dlopen_self=cross
11037 else
11038   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11039   lt_status=$lt_dlunknown
11040   cat > conftest.$ac_ext <<_LT_EOF
11041 #line $LINENO "configure"
11042 #include "confdefs.h"
11043
11044 #if HAVE_DLFCN_H
11045 #include <dlfcn.h>
11046 #endif
11047
11048 #include <stdio.h>
11049
11050 #ifdef RTLD_GLOBAL
11051 #  define LT_DLGLOBAL           RTLD_GLOBAL
11052 #else
11053 #  ifdef DL_GLOBAL
11054 #    define LT_DLGLOBAL         DL_GLOBAL
11055 #  else
11056 #    define LT_DLGLOBAL         0
11057 #  endif
11058 #endif
11059
11060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11061    find out it does not work in some platform. */
11062 #ifndef LT_DLLAZY_OR_NOW
11063 #  ifdef RTLD_LAZY
11064 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11065 #  else
11066 #    ifdef DL_LAZY
11067 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11068 #    else
11069 #      ifdef RTLD_NOW
11070 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11071 #      else
11072 #        ifdef DL_NOW
11073 #          define LT_DLLAZY_OR_NOW      DL_NOW
11074 #        else
11075 #          define LT_DLLAZY_OR_NOW      0
11076 #        endif
11077 #      endif
11078 #    endif
11079 #  endif
11080 #endif
11081
11082 /* When -fvisbility=hidden is used, assume the code has been annotated
11083    correspondingly for the symbols needed.  */
11084 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11085 int fnord () __attribute__((visibility("default")));
11086 #endif
11087
11088 int fnord () { return 42; }
11089 int main ()
11090 {
11091   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092   int status = $lt_dlunknown;
11093
11094   if (self)
11095     {
11096       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11097       else
11098         {
11099           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11100           else puts (dlerror ());
11101         }
11102       /* dlclose (self); */
11103     }
11104   else
11105     puts (dlerror ());
11106
11107   return status;
11108 }
11109 _LT_EOF
11110   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11111   (eval $ac_link) 2>&5
11112   ac_status=$?
11113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11115     (./conftest; exit; ) >&5 2>/dev/null
11116     lt_status=$?
11117     case x$lt_status in
11118       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11119       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11120       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11121     esac
11122   else :
11123     # compilation failed
11124     lt_cv_dlopen_self=no
11125   fi
11126 fi
11127 rm -fr conftest*
11128
11129
11130 fi
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11132 $as_echo "$lt_cv_dlopen_self" >&6; }
11133
11134     if test "x$lt_cv_dlopen_self" = xyes; then
11135       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11136       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11137 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11138 if ${lt_cv_dlopen_self_static+:} false; then :
11139   $as_echo_n "(cached) " >&6
11140 else
11141           if test "$cross_compiling" = yes; then :
11142   lt_cv_dlopen_self_static=cross
11143 else
11144   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11145   lt_status=$lt_dlunknown
11146   cat > conftest.$ac_ext <<_LT_EOF
11147 #line $LINENO "configure"
11148 #include "confdefs.h"
11149
11150 #if HAVE_DLFCN_H
11151 #include <dlfcn.h>
11152 #endif
11153
11154 #include <stdio.h>
11155
11156 #ifdef RTLD_GLOBAL
11157 #  define LT_DLGLOBAL           RTLD_GLOBAL
11158 #else
11159 #  ifdef DL_GLOBAL
11160 #    define LT_DLGLOBAL         DL_GLOBAL
11161 #  else
11162 #    define LT_DLGLOBAL         0
11163 #  endif
11164 #endif
11165
11166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11167    find out it does not work in some platform. */
11168 #ifndef LT_DLLAZY_OR_NOW
11169 #  ifdef RTLD_LAZY
11170 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11171 #  else
11172 #    ifdef DL_LAZY
11173 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11174 #    else
11175 #      ifdef RTLD_NOW
11176 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11177 #      else
11178 #        ifdef DL_NOW
11179 #          define LT_DLLAZY_OR_NOW      DL_NOW
11180 #        else
11181 #          define LT_DLLAZY_OR_NOW      0
11182 #        endif
11183 #      endif
11184 #    endif
11185 #  endif
11186 #endif
11187
11188 /* When -fvisbility=hidden is used, assume the code has been annotated
11189    correspondingly for the symbols needed.  */
11190 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11191 int fnord () __attribute__((visibility("default")));
11192 #endif
11193
11194 int fnord () { return 42; }
11195 int main ()
11196 {
11197   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11198   int status = $lt_dlunknown;
11199
11200   if (self)
11201     {
11202       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11203       else
11204         {
11205           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11206           else puts (dlerror ());
11207         }
11208       /* dlclose (self); */
11209     }
11210   else
11211     puts (dlerror ());
11212
11213   return status;
11214 }
11215 _LT_EOF
11216   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11217   (eval $ac_link) 2>&5
11218   ac_status=$?
11219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11220   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11221     (./conftest; exit; ) >&5 2>/dev/null
11222     lt_status=$?
11223     case x$lt_status in
11224       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11225       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11226       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11227     esac
11228   else :
11229     # compilation failed
11230     lt_cv_dlopen_self_static=no
11231   fi
11232 fi
11233 rm -fr conftest*
11234
11235
11236 fi
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11238 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11239     fi
11240
11241     CPPFLAGS="$save_CPPFLAGS"
11242     LDFLAGS="$save_LDFLAGS"
11243     LIBS="$save_LIBS"
11244     ;;
11245   esac
11246
11247   case $lt_cv_dlopen_self in
11248   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11249   *) enable_dlopen_self=unknown ;;
11250   esac
11251
11252   case $lt_cv_dlopen_self_static in
11253   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11254   *) enable_dlopen_self_static=unknown ;;
11255   esac
11256 fi
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274 striplib=
11275 old_striplib=
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11277 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11278 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11279   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11280   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11282 $as_echo "yes" >&6; }
11283 else
11284 # FIXME - insert some real tests, host_os isn't really good enough
11285   case $host_os in
11286   darwin*)
11287     if test -n "$STRIP" ; then
11288       striplib="$STRIP -x"
11289       old_striplib="$STRIP -S"
11290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11291 $as_echo "yes" >&6; }
11292     else
11293       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11295     fi
11296     ;;
11297   *)
11298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11300     ;;
11301   esac
11302 fi
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315   # Report which library types will actually be built
11316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11317 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11319 $as_echo "$can_build_shared" >&6; }
11320
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11322 $as_echo_n "checking whether to build shared libraries... " >&6; }
11323   test "$can_build_shared" = "no" && enable_shared=no
11324
11325   # On AIX, shared libraries and static libraries use the same namespace, and
11326   # are all built from PIC.
11327   case $host_os in
11328   aix3*)
11329     test "$enable_shared" = yes && enable_static=no
11330     if test -n "$RANLIB"; then
11331       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11332       postinstall_cmds='$RANLIB $lib'
11333     fi
11334     ;;
11335
11336   aix[4-9]*)
11337     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11338       test "$enable_shared" = yes && enable_static=no
11339     fi
11340     ;;
11341   esac
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11343 $as_echo "$enable_shared" >&6; }
11344
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11346 $as_echo_n "checking whether to build static libraries... " >&6; }
11347   # Make sure either enable_shared or enable_static is yes.
11348   test "$enable_shared" = yes || enable_static=yes
11349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11350 $as_echo "$enable_static" >&6; }
11351
11352
11353
11354
11355 fi
11356 ac_ext=c
11357 ac_cpp='$CPP $CPPFLAGS'
11358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11361
11362 CC="$lt_save_CC"
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378         ac_config_commands="$ac_config_commands libtool"
11379
11380
11381
11382
11383 # Only expand once:
11384
11385
11386
11387 # Checks for programs.
11388 ac_ext=c
11389 ac_cpp='$CPP $CPPFLAGS'
11390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11393 if test -n "$ac_tool_prefix"; then
11394   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if ${ac_cv_prog_CC+:} false; then :
11399   $as_echo_n "(cached) " >&6
11400 else
11401   if test -n "$CC"; then
11402   ac_cv_prog_CC="$CC" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407   IFS=$as_save_IFS
11408   test -z "$as_dir" && as_dir=.
11409     for ac_exec_ext in '' $ac_executable_extensions; do
11410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413     break 2
11414   fi
11415 done
11416   done
11417 IFS=$as_save_IFS
11418
11419 fi
11420 fi
11421 CC=$ac_cv_prog_CC
11422 if test -n "$CC"; then
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11424 $as_echo "$CC" >&6; }
11425 else
11426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431 fi
11432 if test -z "$ac_cv_prog_CC"; then
11433   ac_ct_CC=$CC
11434   # Extract the first word of "gcc", so it can be a program name with args.
11435 set dummy gcc; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11439   $as_echo_n "(cached) " >&6
11440 else
11441   if test -n "$ac_ct_CC"; then
11442   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11443 else
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11446 do
11447   IFS=$as_save_IFS
11448   test -z "$as_dir" && as_dir=.
11449     for ac_exec_ext in '' $ac_executable_extensions; do
11450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451     ac_cv_prog_ac_ct_CC="gcc"
11452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453     break 2
11454   fi
11455 done
11456   done
11457 IFS=$as_save_IFS
11458
11459 fi
11460 fi
11461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11462 if test -n "$ac_ct_CC"; then
11463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11464 $as_echo "$ac_ct_CC" >&6; }
11465 else
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 fi
11469
11470   if test "x$ac_ct_CC" = x; then
11471     CC=""
11472   else
11473     case $cross_compiling:$ac_tool_warned in
11474 yes:)
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11477 ac_tool_warned=yes ;;
11478 esac
11479     CC=$ac_ct_CC
11480   fi
11481 else
11482   CC="$ac_cv_prog_CC"
11483 fi
11484
11485 if test -z "$CC"; then
11486           if test -n "$ac_tool_prefix"; then
11487     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11488 set dummy ${ac_tool_prefix}cc; ac_word=$2
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if ${ac_cv_prog_CC+:} false; then :
11492   $as_echo_n "(cached) " >&6
11493 else
11494   if test -n "$CC"; then
11495   ac_cv_prog_CC="$CC" # Let the user override the test.
11496 else
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11499 do
11500   IFS=$as_save_IFS
11501   test -z "$as_dir" && as_dir=.
11502     for ac_exec_ext in '' $ac_executable_extensions; do
11503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11504     ac_cv_prog_CC="${ac_tool_prefix}cc"
11505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506     break 2
11507   fi
11508 done
11509   done
11510 IFS=$as_save_IFS
11511
11512 fi
11513 fi
11514 CC=$ac_cv_prog_CC
11515 if test -n "$CC"; then
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11517 $as_echo "$CC" >&6; }
11518 else
11519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11521 fi
11522
11523
11524   fi
11525 fi
11526 if test -z "$CC"; then
11527   # Extract the first word of "cc", so it can be a program name with args.
11528 set dummy cc; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if ${ac_cv_prog_CC+:} false; then :
11532   $as_echo_n "(cached) " >&6
11533 else
11534   if test -n "$CC"; then
11535   ac_cv_prog_CC="$CC" # Let the user override the test.
11536 else
11537   ac_prog_rejected=no
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11540 do
11541   IFS=$as_save_IFS
11542   test -z "$as_dir" && as_dir=.
11543     for ac_exec_ext in '' $ac_executable_extensions; do
11544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11546        ac_prog_rejected=yes
11547        continue
11548      fi
11549     ac_cv_prog_CC="cc"
11550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551     break 2
11552   fi
11553 done
11554   done
11555 IFS=$as_save_IFS
11556
11557 if test $ac_prog_rejected = yes; then
11558   # We found a bogon in the path, so make sure we never use it.
11559   set dummy $ac_cv_prog_CC
11560   shift
11561   if test $# != 0; then
11562     # We chose a different compiler from the bogus one.
11563     # However, it has the same basename, so the bogon will be chosen
11564     # first if we set CC to just the basename; use the full file name.
11565     shift
11566     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11567   fi
11568 fi
11569 fi
11570 fi
11571 CC=$ac_cv_prog_CC
11572 if test -n "$CC"; then
11573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11574 $as_echo "$CC" >&6; }
11575 else
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11578 fi
11579
11580
11581 fi
11582 if test -z "$CC"; then
11583   if test -n "$ac_tool_prefix"; then
11584   for ac_prog in cl.exe
11585   do
11586     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589 $as_echo_n "checking for $ac_word... " >&6; }
11590 if ${ac_cv_prog_CC+:} false; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593   if test -n "$CC"; then
11594   ac_cv_prog_CC="$CC" # Let the user override the test.
11595 else
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11598 do
11599   IFS=$as_save_IFS
11600   test -z "$as_dir" && as_dir=.
11601     for ac_exec_ext in '' $ac_executable_extensions; do
11602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605     break 2
11606   fi
11607 done
11608   done
11609 IFS=$as_save_IFS
11610
11611 fi
11612 fi
11613 CC=$ac_cv_prog_CC
11614 if test -n "$CC"; then
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11616 $as_echo "$CC" >&6; }
11617 else
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11620 fi
11621
11622
11623     test -n "$CC" && break
11624   done
11625 fi
11626 if test -z "$CC"; then
11627   ac_ct_CC=$CC
11628   for ac_prog in cl.exe
11629 do
11630   # Extract the first word of "$ac_prog", so it can be a program name with args.
11631 set dummy $ac_prog; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11635   $as_echo_n "(cached) " >&6
11636 else
11637   if test -n "$ac_ct_CC"; then
11638   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11639 else
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11642 do
11643   IFS=$as_save_IFS
11644   test -z "$as_dir" && as_dir=.
11645     for ac_exec_ext in '' $ac_executable_extensions; do
11646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647     ac_cv_prog_ac_ct_CC="$ac_prog"
11648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649     break 2
11650   fi
11651 done
11652   done
11653 IFS=$as_save_IFS
11654
11655 fi
11656 fi
11657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11658 if test -n "$ac_ct_CC"; then
11659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11660 $as_echo "$ac_ct_CC" >&6; }
11661 else
11662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11664 fi
11665
11666
11667   test -n "$ac_ct_CC" && break
11668 done
11669
11670   if test "x$ac_ct_CC" = x; then
11671     CC=""
11672   else
11673     case $cross_compiling:$ac_tool_warned in
11674 yes:)
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11677 ac_tool_warned=yes ;;
11678 esac
11679     CC=$ac_ct_CC
11680   fi
11681 fi
11682
11683 fi
11684
11685
11686 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11688 as_fn_error $? "no acceptable C compiler found in \$PATH
11689 See \`config.log' for more details" "$LINENO" 5; }
11690
11691 # Provide some information about the compiler.
11692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11693 set X $ac_compile
11694 ac_compiler=$2
11695 for ac_option in --version -v -V -qversion; do
11696   { { ac_try="$ac_compiler $ac_option >&5"
11697 case "(($ac_try" in
11698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699   *) ac_try_echo=$ac_try;;
11700 esac
11701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11702 $as_echo "$ac_try_echo"; } >&5
11703   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11704   ac_status=$?
11705   if test -s conftest.err; then
11706     sed '10a\
11707 ... rest of stderr output deleted ...
11708          10q' conftest.err >conftest.er1
11709     cat conftest.er1 >&5
11710   fi
11711   rm -f conftest.er1 conftest.err
11712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11713   test $ac_status = 0; }
11714 done
11715
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11718 if ${ac_cv_c_compiler_gnu+:} false; then :
11719   $as_echo_n "(cached) " >&6
11720 else
11721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h.  */
11723
11724 int
11725 main ()
11726 {
11727 #ifndef __GNUC__
11728        choke me
11729 #endif
11730
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 if ac_fn_c_try_compile "$LINENO"; then :
11736   ac_compiler_gnu=yes
11737 else
11738   ac_compiler_gnu=no
11739 fi
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11742
11743 fi
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11746 if test $ac_compiler_gnu = yes; then
11747   GCC=yes
11748 else
11749   GCC=
11750 fi
11751 ac_test_CFLAGS=${CFLAGS+set}
11752 ac_save_CFLAGS=$CFLAGS
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11755 if ${ac_cv_prog_cc_g+:} false; then :
11756   $as_echo_n "(cached) " >&6
11757 else
11758   ac_save_c_werror_flag=$ac_c_werror_flag
11759    ac_c_werror_flag=yes
11760    ac_cv_prog_cc_g=no
11761    CFLAGS="-g"
11762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h.  */
11764
11765 int
11766 main ()
11767 {
11768
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 if ac_fn_c_try_compile "$LINENO"; then :
11774   ac_cv_prog_cc_g=yes
11775 else
11776   CFLAGS=""
11777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h.  */
11779
11780 int
11781 main ()
11782 {
11783
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 if ac_fn_c_try_compile "$LINENO"; then :
11789
11790 else
11791   ac_c_werror_flag=$ac_save_c_werror_flag
11792          CFLAGS="-g"
11793          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h.  */
11795
11796 int
11797 main ()
11798 {
11799
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 if ac_fn_c_try_compile "$LINENO"; then :
11805   ac_cv_prog_cc_g=yes
11806 fi
11807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11808 fi
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812    ac_c_werror_flag=$ac_save_c_werror_flag
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11815 $as_echo "$ac_cv_prog_cc_g" >&6; }
11816 if test "$ac_test_CFLAGS" = set; then
11817   CFLAGS=$ac_save_CFLAGS
11818 elif test $ac_cv_prog_cc_g = yes; then
11819   if test "$GCC" = yes; then
11820     CFLAGS="-g -O2"
11821   else
11822     CFLAGS="-g"
11823   fi
11824 else
11825   if test "$GCC" = yes; then
11826     CFLAGS="-O2"
11827   else
11828     CFLAGS=
11829   fi
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11833 if ${ac_cv_prog_cc_c89+:} false; then :
11834   $as_echo_n "(cached) " >&6
11835 else
11836   ac_cv_prog_cc_c89=no
11837 ac_save_CC=$CC
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h.  */
11840 #include <stdarg.h>
11841 #include <stdio.h>
11842 struct stat;
11843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11844 struct buf { int x; };
11845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11846 static char *e (p, i)
11847      char **p;
11848      int i;
11849 {
11850   return p[i];
11851 }
11852 static char *f (char * (*g) (char **, int), char **p, ...)
11853 {
11854   char *s;
11855   va_list v;
11856   va_start (v,p);
11857   s = g (p, va_arg (v,int));
11858   va_end (v);
11859   return s;
11860 }
11861
11862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11863    function prototypes and stuff, but not '\xHH' hex character constants.
11864    These don't provoke an error unfortunately, instead are silently treated
11865    as 'x'.  The following induces an error, until -std is added to get
11866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11867    array size at least.  It's necessary to write '\x00'==0 to get something
11868    that's true only with -std.  */
11869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11870
11871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11872    inside strings and character constants.  */
11873 #define FOO(x) 'x'
11874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11875
11876 int test (int i, double x);
11877 struct s1 {int (*f) (int a);};
11878 struct s2 {int (*f) (double a);};
11879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11880 int argc;
11881 char **argv;
11882 int
11883 main ()
11884 {
11885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11891         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11892 do
11893   CC="$ac_save_CC $ac_arg"
11894   if ac_fn_c_try_compile "$LINENO"; then :
11895   ac_cv_prog_cc_c89=$ac_arg
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext
11898   test "x$ac_cv_prog_cc_c89" != "xno" && break
11899 done
11900 rm -f conftest.$ac_ext
11901 CC=$ac_save_CC
11902
11903 fi
11904 # AC_CACHE_VAL
11905 case "x$ac_cv_prog_cc_c89" in
11906   x)
11907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11908 $as_echo "none needed" >&6; } ;;
11909   xno)
11910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11911 $as_echo "unsupported" >&6; } ;;
11912   *)
11913     CC="$CC $ac_cv_prog_cc_c89"
11914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11916 esac
11917 if test "x$ac_cv_prog_cc_c89" != xno; then :
11918
11919 fi
11920
11921 ac_ext=c
11922 ac_cpp='$CPP $CPPFLAGS'
11923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11926
11927 depcc="$CC"   am_compiler_list=
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11930 $as_echo_n "checking dependency style of $depcc... " >&6; }
11931 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11935   # We make a subdir and do the tests there.  Otherwise we can end up
11936   # making bogus files that we don't know about and never remove.  For
11937   # instance it was reported that on HP-UX the gcc test will end up
11938   # making a dummy file named `D' -- because `-MD' means `put the output
11939   # in D'.
11940   rm -rf conftest.dir
11941   mkdir conftest.dir
11942   # Copy depcomp to subdir because otherwise we won't find it if we're
11943   # using a relative directory.
11944   cp "$am_depcomp" conftest.dir
11945   cd conftest.dir
11946   # We will build objects and dependencies in a subdirectory because
11947   # it helps to detect inapplicable dependency modes.  For instance
11948   # both Tru64's cc and ICC support -MD to output dependencies as a
11949   # side effect of compilation, but ICC will put the dependencies in
11950   # the current directory while Tru64 will put them in the object
11951   # directory.
11952   mkdir sub
11953
11954   am_cv_CC_dependencies_compiler_type=none
11955   if test "$am_compiler_list" = ""; then
11956      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11957   fi
11958   am__universal=false
11959   case " $depcc " in #(
11960      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11961      esac
11962
11963   for depmode in $am_compiler_list; do
11964     # Setup a source with many dependencies, because some compilers
11965     # like to wrap large dependency lists on column 80 (with \), and
11966     # we should not choose a depcomp mode which is confused by this.
11967     #
11968     # We need to recreate these files for each test, as the compiler may
11969     # overwrite some of them when testing with obscure command lines.
11970     # This happens at least with the AIX C compiler.
11971     : > sub/conftest.c
11972     for i in 1 2 3 4 5 6; do
11973       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11974       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11975       # Solaris 8's {/usr,}/bin/sh.
11976       touch sub/conftst$i.h
11977     done
11978     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11979
11980     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11981     # mode.  It turns out that the SunPro C++ compiler does not properly
11982     # handle `-M -o', and we need to detect this.  Also, some Intel
11983     # versions had trouble with output in subdirs
11984     am__obj=sub/conftest.${OBJEXT-o}
11985     am__minus_obj="-o $am__obj"
11986     case $depmode in
11987     gcc)
11988       # This depmode causes a compiler race in universal mode.
11989       test "$am__universal" = false || continue
11990       ;;
11991     nosideeffect)
11992       # after this tag, mechanisms are not by side-effect, so they'll
11993       # only be used when explicitly requested
11994       if test "x$enable_dependency_tracking" = xyes; then
11995         continue
11996       else
11997         break
11998       fi
11999       ;;
12000     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12001       # This compiler won't grok `-c -o', but also, the minuso test has
12002       # not run yet.  These depmodes are late enough in the game, and
12003       # so weak that their functioning should not be impacted.
12004       am__obj=conftest.${OBJEXT-o}
12005       am__minus_obj=
12006       ;;
12007     none) break ;;
12008     esac
12009     if depmode=$depmode \
12010        source=sub/conftest.c object=$am__obj \
12011        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12012        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12013          >/dev/null 2>conftest.err &&
12014        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12015        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12016        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12017        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12018       # icc doesn't choke on unknown options, it will just issue warnings
12019       # or remarks (even with -Werror).  So we grep stderr for any message
12020       # that says an option was ignored or not supported.
12021       # When given -MP, icc 7.0 and 7.1 complain thusly:
12022       #   icc: Command line warning: ignoring option '-M'; no argument required
12023       # The diagnosis changed in icc 8.0:
12024       #   icc: Command line remark: option '-MP' not supported
12025       if (grep 'ignoring option' conftest.err ||
12026           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12027         am_cv_CC_dependencies_compiler_type=$depmode
12028         break
12029       fi
12030     fi
12031   done
12032
12033   cd ..
12034   rm -rf conftest.dir
12035 else
12036   am_cv_CC_dependencies_compiler_type=none
12037 fi
12038
12039 fi
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12041 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12043
12044  if
12045   test "x$enable_dependency_tracking" != xno \
12046   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12047   am__fastdepCC_TRUE=
12048   am__fastdepCC_FALSE='#'
12049 else
12050   am__fastdepCC_TRUE='#'
12051   am__fastdepCC_FALSE=
12052 fi
12053
12054
12055
12056 # Checks for libraries.
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfg_init in -lconfuse" >&5
12058 $as_echo_n "checking for cfg_init in -lconfuse... " >&6; }
12059 if ${ac_cv_lib_confuse_cfg_init+:} false; then :
12060   $as_echo_n "(cached) " >&6
12061 else
12062   ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lconfuse  $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h.  */
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068    Use char because int might match the return type of a GCC
12069    builtin and then its argument prototype would still apply.  */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char cfg_init ();
12074 int
12075 main ()
12076 {
12077 return cfg_init ();
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083   ac_cv_lib_confuse_cfg_init=yes
12084 else
12085   ac_cv_lib_confuse_cfg_init=no
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext \
12088     conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_confuse_cfg_init" >&5
12092 $as_echo "$ac_cv_lib_confuse_cfg_init" >&6; }
12093 if test "x$ac_cv_lib_confuse_cfg_init" = xyes; then :
12094   cat >>confdefs.h <<_ACEOF
12095 #define HAVE_LIBCONFUSE 1
12096 _ACEOF
12097
12098   LIBS="-lconfuse $LIBS"
12099
12100 else
12101   as_fn_error $? "required library libconfuse not found" "$LINENO" 5
12102 fi
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_get_version in -levent_core" >&5
12105 $as_echo_n "checking for event_get_version in -levent_core... " >&6; }
12106 if ${ac_cv_lib_event_core_event_get_version+:} false; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   ac_check_lib_save_LIBS=$LIBS
12110 LIBS="-levent_core  $LIBS"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h.  */
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115    Use char because int might match the return type of a GCC
12116    builtin and then its argument prototype would still apply.  */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char event_get_version ();
12121 int
12122 main ()
12123 {
12124 return event_get_version ();
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130   ac_cv_lib_event_core_event_get_version=yes
12131 else
12132   ac_cv_lib_event_core_event_get_version=no
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext \
12135     conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_core_event_get_version" >&5
12139 $as_echo "$ac_cv_lib_event_core_event_get_version" >&6; }
12140 if test "x$ac_cv_lib_event_core_event_get_version" = xyes; then :
12141   cat >>confdefs.h <<_ACEOF
12142 #define HAVE_LIBEVENT_CORE 1
12143 _ACEOF
12144
12145   LIBS="-levent_core $LIBS"
12146
12147 else
12148   as_fn_error $? "required library libevent_core not found" "$LINENO" 5
12149 fi
12150
12151
12152 # Enable-knobs.
12153 ## Enable TLS (RadSec).
12154
12155   # Check whether --enable-tls was given.
12156 if test "${enable_tls+set}" = set; then :
12157   enableval=$enable_tls; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bufferevent_openssl_socket_new in -levent_openssl" >&5
12158 $as_echo_n "checking for bufferevent_openssl_socket_new in -levent_openssl... " >&6; }
12159 if ${ac_cv_lib_event_openssl_bufferevent_openssl_socket_new+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-levent_openssl  $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h.  */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char bufferevent_openssl_socket_new ();
12174 int
12175 main ()
12176 {
12177 return bufferevent_openssl_socket_new ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183   ac_cv_lib_event_openssl_bufferevent_openssl_socket_new=yes
12184 else
12185   ac_cv_lib_event_openssl_bufferevent_openssl_socket_new=no
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188     conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_openssl_bufferevent_openssl_socket_new" >&5
12192 $as_echo "$ac_cv_lib_event_openssl_bufferevent_openssl_socket_new" >&6; }
12193 if test "x$ac_cv_lib_event_openssl_bufferevent_openssl_socket_new" = xyes; then :
12194   cat >>confdefs.h <<_ACEOF
12195 #define HAVE_LIBEVENT_OPENSSL 1
12196 _ACEOF
12197
12198   LIBS="-levent_openssl $LIBS"
12199
12200 else
12201   as_fn_error $? "required library event_openssl not found" "$LINENO" 5
12202 fi
12203
12204      $as_echo "#define RS_ENABLE_TLS 1" >>confdefs.h
12205
12206      $as_echo "#define RADPROT_TLS 1" >>confdefs.h
12207
12208 fi
12209   if test "${enable_tls+set}" = set; then
12210   RS_ENABLE_TLS_TRUE=
12211   RS_ENABLE_TLS_FALSE='#'
12212 else
12213   RS_ENABLE_TLS_TRUE='#'
12214   RS_ENABLE_TLS_FALSE=
12215 fi
12216
12217 ### Define WITHOUT_OPENSSL for radius/client.h.
12218 if test -z "$enable_tls"; then
12219     CPPFLAGS="$CPPFLAGS -DWITHOUT_OPENSSL"
12220 fi
12221 ## Enable TLS-PSK (preshared keys).
12222
12223 # Check whether --enable-tls-psk was given.
12224 if test "${enable_tls_psk+set}" = set; then :
12225   enableval=$enable_tls_psk; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_set_psk_client_callback in -lssl" >&5
12226 $as_echo_n "checking for SSL_set_psk_client_callback in -lssl... " >&6; }
12227 if ${ac_cv_lib_ssl_SSL_set_psk_client_callback+:} false; then :
12228   $as_echo_n "(cached) " >&6
12229 else
12230   ac_check_lib_save_LIBS=$LIBS
12231 LIBS="-lssl  $LIBS"
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h.  */
12234
12235 /* Override any GCC internal prototype to avoid an error.
12236    Use char because int might match the return type of a GCC
12237    builtin and then its argument prototype would still apply.  */
12238 #ifdef __cplusplus
12239 extern "C"
12240 #endif
12241 char SSL_set_psk_client_callback ();
12242 int
12243 main ()
12244 {
12245 return SSL_set_psk_client_callback ();
12246   ;
12247   return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251   ac_cv_lib_ssl_SSL_set_psk_client_callback=yes
12252 else
12253   ac_cv_lib_ssl_SSL_set_psk_client_callback=no
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext \
12256     conftest$ac_exeext conftest.$ac_ext
12257 LIBS=$ac_check_lib_save_LIBS
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_set_psk_client_callback" >&5
12260 $as_echo "$ac_cv_lib_ssl_SSL_set_psk_client_callback" >&6; }
12261 if test "x$ac_cv_lib_ssl_SSL_set_psk_client_callback" = xyes; then :
12262   cat >>confdefs.h <<_ACEOF
12263 #define HAVE_LIBSSL 1
12264 _ACEOF
12265
12266   LIBS="-lssl $LIBS"
12267
12268 else
12269   as_fn_error $? "required library openssl with SSL_set_psk_client_callback() not found" "$LINENO" 5
12270 fi
12271
12272      $as_echo "#define RS_ENABLE_TLS_PSK 1" >>confdefs.h
12273
12274 fi
12275
12276  if test "${enable_tls_psk+set}" = set; then
12277   RS_ENABLE_TLS_PSK_TRUE=
12278   RS_ENABLE_TLS_PSK_FALSE='#'
12279 else
12280   RS_ENABLE_TLS_PSK_TRUE='#'
12281   RS_ENABLE_TLS_PSK_FALSE=
12282 fi
12283
12284
12285 # Checks for header files.
12286 for ac_header in sys/time.h time.h netdb.h netinet/in.h stdint.h stdlib.h strings.h string.h \
12287      sys/socket.h unistd.h syslog.h sys/select.h fcntl.h arpa/inet.h
12288 do :
12289   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12290 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12292   cat >>confdefs.h <<_ACEOF
12293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12294 _ACEOF
12295
12296 fi
12297
12298 done
12299
12300
12301 # Checks for typedefs, structures, and compiler characteristics.
12302 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12303 if test "x$ac_cv_type_size_t" = xyes; then :
12304
12305 else
12306
12307 cat >>confdefs.h <<_ACEOF
12308 #define size_t unsigned int
12309 _ACEOF
12310
12311 fi
12312
12313 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12314 if test "x$ac_cv_type_ssize_t" = xyes; then :
12315
12316 else
12317
12318 cat >>confdefs.h <<_ACEOF
12319 #define ssize_t int
12320 _ACEOF
12321
12322 fi
12323
12324 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
12325 case $ac_cv_c_uint8_t in #(
12326   no|yes) ;; #(
12327   *)
12328
12329 $as_echo "#define _UINT8_T 1" >>confdefs.h
12330
12331
12332 cat >>confdefs.h <<_ACEOF
12333 #define uint8_t $ac_cv_c_uint8_t
12334 _ACEOF
12335 ;;
12336   esac
12337
12338
12339 # Checks for library functions.
12340 for ac_func in memset socket strdup strerror strrchr
12341 do :
12342   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12345   cat >>confdefs.h <<_ACEOF
12346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12347 _ACEOF
12348
12349 fi
12350 done
12351
12352
12353 ac_config_files="$ac_config_files Makefile libradsec.spec radsecproxy/Makefile radius/Makefile include/Makefile examples/Makefile tests/Makefile"
12354
12355 cat >confcache <<\_ACEOF
12356 # This file is a shell script that caches the results of configure
12357 # tests run on this system so they can be shared between configure
12358 # scripts and configure runs, see configure's option --config-cache.
12359 # It is not useful on other systems.  If it contains results you don't
12360 # want to keep, you may remove or edit it.
12361 #
12362 # config.status only pays attention to the cache file if you give it
12363 # the --recheck option to rerun configure.
12364 #
12365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12367 # following values.
12368
12369 _ACEOF
12370
12371 # The following way of writing the cache mishandles newlines in values,
12372 # but we know of no workaround that is simple, portable, and efficient.
12373 # So, we kill variables containing newlines.
12374 # Ultrix sh set writes to stderr and can't be redirected directly,
12375 # and sets the high bit in the cache file unless we assign to the vars.
12376 (
12377   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12378     eval ac_val=\$$ac_var
12379     case $ac_val in #(
12380     *${as_nl}*)
12381       case $ac_var in #(
12382       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12384       esac
12385       case $ac_var in #(
12386       _ | IFS | as_nl) ;; #(
12387       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12388       *) { eval $ac_var=; unset $ac_var;} ;;
12389       esac ;;
12390     esac
12391   done
12392
12393   (set) 2>&1 |
12394     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12395     *${as_nl}ac_space=\ *)
12396       # `set' does not quote correctly, so add quotes: double-quote
12397       # substitution turns \\\\ into \\, and sed turns \\ into \.
12398       sed -n \
12399         "s/'/'\\\\''/g;
12400           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12401       ;; #(
12402     *)
12403       # `set' quotes correctly as required by POSIX, so do not add quotes.
12404       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12405       ;;
12406     esac |
12407     sort
12408 ) |
12409   sed '
12410      /^ac_cv_env_/b end
12411      t clear
12412      :clear
12413      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12414      t end
12415      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12416      :end' >>confcache
12417 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12418   if test -w "$cache_file"; then
12419     if test "x$cache_file" != "x/dev/null"; then
12420       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12421 $as_echo "$as_me: updating cache $cache_file" >&6;}
12422       if test ! -f "$cache_file" || test -h "$cache_file"; then
12423         cat confcache >"$cache_file"
12424       else
12425         case $cache_file in #(
12426         */* | ?:*)
12427           mv -f confcache "$cache_file"$$ &&
12428           mv -f "$cache_file"$$ "$cache_file" ;; #(
12429         *)
12430           mv -f confcache "$cache_file" ;;
12431         esac
12432       fi
12433     fi
12434   else
12435     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12437   fi
12438 fi
12439 rm -f confcache
12440
12441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12442 # Let make expand exec_prefix.
12443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12444
12445 DEFS=-DHAVE_CONFIG_H
12446
12447 ac_libobjs=
12448 ac_ltlibobjs=
12449 U=
12450 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12451   # 1. Remove the extension, and $U if already installed.
12452   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12453   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12454   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12455   #    will be set to the directory where LIBOBJS objects are built.
12456   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12457   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12458 done
12459 LIBOBJS=$ac_libobjs
12460
12461 LTLIBOBJS=$ac_ltlibobjs
12462
12463
12464  if test -n "$EXEEXT"; then
12465   am__EXEEXT_TRUE=
12466   am__EXEEXT_FALSE='#'
12467 else
12468   am__EXEEXT_TRUE='#'
12469   am__EXEEXT_FALSE=
12470 fi
12471
12472 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12473   as_fn_error $? "conditional \"AMDEP\" was never defined.
12474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12475 fi
12476 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12477   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12479 fi
12480 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12481   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12483 fi
12484 if test -z "${RS_ENABLE_TLS_TRUE}" && test -z "${RS_ENABLE_TLS_FALSE}"; then
12485   as_fn_error $? "conditional \"RS_ENABLE_TLS\" was never defined.
12486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12487 fi
12488 if test -z "${RS_ENABLE_TLS_PSK_TRUE}" && test -z "${RS_ENABLE_TLS_PSK_FALSE}"; then
12489   as_fn_error $? "conditional \"RS_ENABLE_TLS_PSK\" was never defined.
12490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12491 fi
12492
12493 : "${CONFIG_STATUS=./config.status}"
12494 ac_write_fail=0
12495 ac_clean_files_save=$ac_clean_files
12496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12499 as_write_fail=0
12500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12501 #! $SHELL
12502 # Generated by $as_me.
12503 # Run this file to recreate the current configuration.
12504 # Compiler output produced by configure, useful for debugging
12505 # configure, is in config.log if it exists.
12506
12507 debug=false
12508 ac_cs_recheck=false
12509 ac_cs_silent=false
12510
12511 SHELL=\${CONFIG_SHELL-$SHELL}
12512 export SHELL
12513 _ASEOF
12514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12515 ## -------------------- ##
12516 ## M4sh Initialization. ##
12517 ## -------------------- ##
12518
12519 # Be more Bourne compatible
12520 DUALCASE=1; export DUALCASE # for MKS sh
12521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12522   emulate sh
12523   NULLCMD=:
12524   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12525   # is contrary to our usage.  Disable this feature.
12526   alias -g '${1+"$@"}'='"$@"'
12527   setopt NO_GLOB_SUBST
12528 else
12529   case `(set -o) 2>/dev/null` in #(
12530   *posix*) :
12531     set -o posix ;; #(
12532   *) :
12533      ;;
12534 esac
12535 fi
12536
12537
12538 as_nl='
12539 '
12540 export as_nl
12541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12545 # Prefer a ksh shell builtin over an external printf program on Solaris,
12546 # but without wasting forks for bash or zsh.
12547 if test -z "$BASH_VERSION$ZSH_VERSION" \
12548     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12549   as_echo='print -r --'
12550   as_echo_n='print -rn --'
12551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12552   as_echo='printf %s\n'
12553   as_echo_n='printf %s'
12554 else
12555   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12556     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12557     as_echo_n='/usr/ucb/echo -n'
12558   else
12559     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12560     as_echo_n_body='eval
12561       arg=$1;
12562       case $arg in #(
12563       *"$as_nl"*)
12564         expr "X$arg" : "X\\(.*\\)$as_nl";
12565         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12566       esac;
12567       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12568     '
12569     export as_echo_n_body
12570     as_echo_n='sh -c $as_echo_n_body as_echo'
12571   fi
12572   export as_echo_body
12573   as_echo='sh -c $as_echo_body as_echo'
12574 fi
12575
12576 # The user is always right.
12577 if test "${PATH_SEPARATOR+set}" != set; then
12578   PATH_SEPARATOR=:
12579   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12580     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12581       PATH_SEPARATOR=';'
12582   }
12583 fi
12584
12585
12586 # IFS
12587 # We need space, tab and new line, in precisely that order.  Quoting is
12588 # there to prevent editors from complaining about space-tab.
12589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12590 # splitting by setting IFS to empty value.)
12591 IFS=" ""        $as_nl"
12592
12593 # Find who we are.  Look in the path if we contain no directory separator.
12594 as_myself=
12595 case $0 in #((
12596   *[\\/]* ) as_myself=$0 ;;
12597   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12603   done
12604 IFS=$as_save_IFS
12605
12606      ;;
12607 esac
12608 # We did not find ourselves, most probably we were run as `sh COMMAND'
12609 # in which case we are not to be found in the path.
12610 if test "x$as_myself" = x; then
12611   as_myself=$0
12612 fi
12613 if test ! -f "$as_myself"; then
12614   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12615   exit 1
12616 fi
12617
12618 # Unset variables that we do not need and which cause bugs (e.g. in
12619 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12620 # suppresses any "Segmentation fault" message there.  '((' could
12621 # trigger a bug in pdksh 5.2.14.
12622 for as_var in BASH_ENV ENV MAIL MAILPATH
12623 do eval test x\${$as_var+set} = xset \
12624   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12625 done
12626 PS1='$ '
12627 PS2='> '
12628 PS4='+ '
12629
12630 # NLS nuisances.
12631 LC_ALL=C
12632 export LC_ALL
12633 LANGUAGE=C
12634 export LANGUAGE
12635
12636 # CDPATH.
12637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12638
12639
12640 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12641 # ----------------------------------------
12642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12644 # script with STATUS, using 1 if that was 0.
12645 as_fn_error ()
12646 {
12647   as_status=$1; test $as_status -eq 0 && as_status=1
12648   if test "$4"; then
12649     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12650     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12651   fi
12652   $as_echo "$as_me: error: $2" >&2
12653   as_fn_exit $as_status
12654 } # as_fn_error
12655
12656
12657 # as_fn_set_status STATUS
12658 # -----------------------
12659 # Set $? to STATUS, without forking.
12660 as_fn_set_status ()
12661 {
12662   return $1
12663 } # as_fn_set_status
12664
12665 # as_fn_exit STATUS
12666 # -----------------
12667 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12668 as_fn_exit ()
12669 {
12670   set +e
12671   as_fn_set_status $1
12672   exit $1
12673 } # as_fn_exit
12674
12675 # as_fn_unset VAR
12676 # ---------------
12677 # Portably unset VAR.
12678 as_fn_unset ()
12679 {
12680   { eval $1=; unset $1;}
12681 }
12682 as_unset=as_fn_unset
12683 # as_fn_append VAR VALUE
12684 # ----------------------
12685 # Append the text in VALUE to the end of the definition contained in VAR. Take
12686 # advantage of any shell optimizations that allow amortized linear growth over
12687 # repeated appends, instead of the typical quadratic growth present in naive
12688 # implementations.
12689 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12690   eval 'as_fn_append ()
12691   {
12692     eval $1+=\$2
12693   }'
12694 else
12695   as_fn_append ()
12696   {
12697     eval $1=\$$1\$2
12698   }
12699 fi # as_fn_append
12700
12701 # as_fn_arith ARG...
12702 # ------------------
12703 # Perform arithmetic evaluation on the ARGs, and store the result in the
12704 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12705 # must be portable across $(()) and expr.
12706 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12707   eval 'as_fn_arith ()
12708   {
12709     as_val=$(( $* ))
12710   }'
12711 else
12712   as_fn_arith ()
12713   {
12714     as_val=`expr "$@" || test $? -eq 1`
12715   }
12716 fi # as_fn_arith
12717
12718
12719 if expr a : '\(a\)' >/dev/null 2>&1 &&
12720    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12721   as_expr=expr
12722 else
12723   as_expr=false
12724 fi
12725
12726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12727   as_basename=basename
12728 else
12729   as_basename=false
12730 fi
12731
12732 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12733   as_dirname=dirname
12734 else
12735   as_dirname=false
12736 fi
12737
12738 as_me=`$as_basename -- "$0" ||
12739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12740          X"$0" : 'X\(//\)$' \| \
12741          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12742 $as_echo X/"$0" |
12743     sed '/^.*\/\([^/][^/]*\)\/*$/{
12744             s//\1/
12745             q
12746           }
12747           /^X\/\(\/\/\)$/{
12748             s//\1/
12749             q
12750           }
12751           /^X\/\(\/\).*/{
12752             s//\1/
12753             q
12754           }
12755           s/.*/./; q'`
12756
12757 # Avoid depending upon Character Ranges.
12758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12761 as_cr_digits='0123456789'
12762 as_cr_alnum=$as_cr_Letters$as_cr_digits
12763
12764 ECHO_C= ECHO_N= ECHO_T=
12765 case `echo -n x` in #(((((
12766 -n*)
12767   case `echo 'xy\c'` in
12768   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12769   xy)  ECHO_C='\c';;
12770   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12771        ECHO_T=' ';;
12772   esac;;
12773 *)
12774   ECHO_N='-n';;
12775 esac
12776
12777 rm -f conf$$ conf$$.exe conf$$.file
12778 if test -d conf$$.dir; then
12779   rm -f conf$$.dir/conf$$.file
12780 else
12781   rm -f conf$$.dir
12782   mkdir conf$$.dir 2>/dev/null
12783 fi
12784 if (echo >conf$$.file) 2>/dev/null; then
12785   if ln -s conf$$.file conf$$ 2>/dev/null; then
12786     as_ln_s='ln -s'
12787     # ... but there are two gotchas:
12788     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12789     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12790     # In both cases, we have to default to `cp -pR'.
12791     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12792       as_ln_s='cp -pR'
12793   elif ln conf$$.file conf$$ 2>/dev/null; then
12794     as_ln_s=ln
12795   else
12796     as_ln_s='cp -pR'
12797   fi
12798 else
12799   as_ln_s='cp -pR'
12800 fi
12801 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12802 rmdir conf$$.dir 2>/dev/null
12803
12804
12805 # as_fn_mkdir_p
12806 # -------------
12807 # Create "$as_dir" as a directory, including parents if necessary.
12808 as_fn_mkdir_p ()
12809 {
12810
12811   case $as_dir in #(
12812   -*) as_dir=./$as_dir;;
12813   esac
12814   test -d "$as_dir" || eval $as_mkdir_p || {
12815     as_dirs=
12816     while :; do
12817       case $as_dir in #(
12818       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12819       *) as_qdir=$as_dir;;
12820       esac
12821       as_dirs="'$as_qdir' $as_dirs"
12822       as_dir=`$as_dirname -- "$as_dir" ||
12823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12824          X"$as_dir" : 'X\(//\)[^/]' \| \
12825          X"$as_dir" : 'X\(//\)$' \| \
12826          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12827 $as_echo X"$as_dir" |
12828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12829             s//\1/
12830             q
12831           }
12832           /^X\(\/\/\)[^/].*/{
12833             s//\1/
12834             q
12835           }
12836           /^X\(\/\/\)$/{
12837             s//\1/
12838             q
12839           }
12840           /^X\(\/\).*/{
12841             s//\1/
12842             q
12843           }
12844           s/.*/./; q'`
12845       test -d "$as_dir" && break
12846     done
12847     test -z "$as_dirs" || eval "mkdir $as_dirs"
12848   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12849
12850
12851 } # as_fn_mkdir_p
12852 if mkdir -p . 2>/dev/null; then
12853   as_mkdir_p='mkdir -p "$as_dir"'
12854 else
12855   test -d ./-p && rmdir ./-p
12856   as_mkdir_p=false
12857 fi
12858
12859
12860 # as_fn_executable_p FILE
12861 # -----------------------
12862 # Test if FILE is an executable regular file.
12863 as_fn_executable_p ()
12864 {
12865   test -f "$1" && test -x "$1"
12866 } # as_fn_executable_p
12867 as_test_x='test -x'
12868 as_executable_p=as_fn_executable_p
12869
12870 # Sed expression to map a string onto a valid CPP name.
12871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12872
12873 # Sed expression to map a string onto a valid variable name.
12874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12875
12876
12877 exec 6>&1
12878 ## ----------------------------------- ##
12879 ## Main body of $CONFIG_STATUS script. ##
12880 ## ----------------------------------- ##
12881 _ASEOF
12882 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12883
12884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12885 # Save the log message, to keep $0 and so on meaningful, and to
12886 # report actual input values of CONFIG_FILES etc. instead of their
12887 # values after options handling.
12888 ac_log="
12889 This file was extended by libradsec $as_me 0.0.4.dev, which was
12890 generated by GNU Autoconf 2.69.  Invocation command line was
12891
12892   CONFIG_FILES    = $CONFIG_FILES
12893   CONFIG_HEADERS  = $CONFIG_HEADERS
12894   CONFIG_LINKS    = $CONFIG_LINKS
12895   CONFIG_COMMANDS = $CONFIG_COMMANDS
12896   $ $0 $@
12897
12898 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12899 "
12900
12901 _ACEOF
12902
12903 case $ac_config_files in *"
12904 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12905 esac
12906
12907 case $ac_config_headers in *"
12908 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12909 esac
12910
12911
12912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12913 # Files that config.status was made for.
12914 config_files="$ac_config_files"
12915 config_headers="$ac_config_headers"
12916 config_commands="$ac_config_commands"
12917
12918 _ACEOF
12919
12920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12921 ac_cs_usage="\
12922 \`$as_me' instantiates files and other configuration actions
12923 from templates according to the current configuration.  Unless the files
12924 and actions are specified as TAGs, all are instantiated by default.
12925
12926 Usage: $0 [OPTION]... [TAG]...
12927
12928   -h, --help       print this help, then exit
12929   -V, --version    print version number and configuration settings, then exit
12930       --config     print configuration, then exit
12931   -q, --quiet, --silent
12932                    do not print progress messages
12933   -d, --debug      don't remove temporary files
12934       --recheck    update $as_me by reconfiguring in the same conditions
12935       --file=FILE[:TEMPLATE]
12936                    instantiate the configuration file FILE
12937       --header=FILE[:TEMPLATE]
12938                    instantiate the configuration header FILE
12939
12940 Configuration files:
12941 $config_files
12942
12943 Configuration headers:
12944 $config_headers
12945
12946 Configuration commands:
12947 $config_commands
12948
12949 Report bugs to <linus+libradsec@nordu.net>."
12950
12951 _ACEOF
12952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12953 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12954 ac_cs_version="\\
12955 libradsec config.status 0.0.4.dev
12956 configured by $0, generated by GNU Autoconf 2.69,
12957   with options \\"\$ac_cs_config\\"
12958
12959 Copyright (C) 2012 Free Software Foundation, Inc.
12960 This config.status script is free software; the Free Software Foundation
12961 gives unlimited permission to copy, distribute and modify it."
12962
12963 ac_pwd='$ac_pwd'
12964 srcdir='$srcdir'
12965 INSTALL='$INSTALL'
12966 MKDIR_P='$MKDIR_P'
12967 AWK='$AWK'
12968 test -n "\$AWK" || AWK=awk
12969 _ACEOF
12970
12971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12972 # The default lists apply if the user does not specify any file.
12973 ac_need_defaults=:
12974 while test $# != 0
12975 do
12976   case $1 in
12977   --*=?*)
12978     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12979     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12980     ac_shift=:
12981     ;;
12982   --*=)
12983     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12984     ac_optarg=
12985     ac_shift=:
12986     ;;
12987   *)
12988     ac_option=$1
12989     ac_optarg=$2
12990     ac_shift=shift
12991     ;;
12992   esac
12993
12994   case $ac_option in
12995   # Handling of the options.
12996   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12997     ac_cs_recheck=: ;;
12998   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12999     $as_echo "$ac_cs_version"; exit ;;
13000   --config | --confi | --conf | --con | --co | --c )
13001     $as_echo "$ac_cs_config"; exit ;;
13002   --debug | --debu | --deb | --de | --d | -d )
13003     debug=: ;;
13004   --file | --fil | --fi | --f )
13005     $ac_shift
13006     case $ac_optarg in
13007     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13008     '') as_fn_error $? "missing file argument" ;;
13009     esac
13010     as_fn_append CONFIG_FILES " '$ac_optarg'"
13011     ac_need_defaults=false;;
13012   --header | --heade | --head | --hea )
13013     $ac_shift
13014     case $ac_optarg in
13015     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13016     esac
13017     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13018     ac_need_defaults=false;;
13019   --he | --h)
13020     # Conflict between --help and --header
13021     as_fn_error $? "ambiguous option: \`$1'
13022 Try \`$0 --help' for more information.";;
13023   --help | --hel | -h )
13024     $as_echo "$ac_cs_usage"; exit ;;
13025   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13026   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13027     ac_cs_silent=: ;;
13028
13029   # This is an error.
13030   -*) as_fn_error $? "unrecognized option: \`$1'
13031 Try \`$0 --help' for more information." ;;
13032
13033   *) as_fn_append ac_config_targets " $1"
13034      ac_need_defaults=false ;;
13035
13036   esac
13037   shift
13038 done
13039
13040 ac_configure_extra_args=
13041
13042 if $ac_cs_silent; then
13043   exec 6>/dev/null
13044   ac_configure_extra_args="$ac_configure_extra_args --silent"
13045 fi
13046
13047 _ACEOF
13048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13049 if \$ac_cs_recheck; then
13050   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13051   shift
13052   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13053   CONFIG_SHELL='$SHELL'
13054   export CONFIG_SHELL
13055   exec "\$@"
13056 fi
13057
13058 _ACEOF
13059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13060 exec 5>>config.log
13061 {
13062   echo
13063   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13064 ## Running $as_me. ##
13065 _ASBOX
13066   $as_echo "$ac_log"
13067 } >&5
13068
13069 _ACEOF
13070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13071 #
13072 # INIT-COMMANDS
13073 #
13074 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13075
13076
13077 # The HP-UX ksh and POSIX shell print the target directory to stdout
13078 # if CDPATH is set.
13079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13080
13081 sed_quote_subst='$sed_quote_subst'
13082 double_quote_subst='$double_quote_subst'
13083 delay_variable_subst='$delay_variable_subst'
13084 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13085 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13086 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13087 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13088 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13089 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13090 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13091 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13092 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13093 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13094 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13095 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13096 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13097 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13098 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13099 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13100 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13101 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13102 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13103 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13104 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13105 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13106 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13107 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13108 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13109 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13110 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13111 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13112 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13113 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13114 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13115 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13116 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13117 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13118 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13119 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13120 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13121 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13122 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13123 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13124 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13125 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13126 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13127 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13128 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13129 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13130 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13131 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13132 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13133 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13134 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13135 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13136 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13137 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13138 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13139 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13140 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13141 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13142 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13143 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13144 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13145 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13146 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13147 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13148 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13149 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13150 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13151 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13152 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13153 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13154 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13155 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13156 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13157 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13158 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13159 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13160 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13161 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13162 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13163 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13164 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13165 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13166 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13167 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13168 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13169 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13170 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13171 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13172 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13173 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13174 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13175 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13176 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13177 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13178 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13179 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13180 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13181 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13182 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13183 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13184 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13185 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13186 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13187 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13188 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13189 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13190 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13191 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13192 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13193 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13194 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13195 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13196 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13197 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13198 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13199 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13200 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13201 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13202 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13203 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13204 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13205 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13206 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13207 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13208 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13209 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13210 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13211 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13212 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13213 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13214
13215 LTCC='$LTCC'
13216 LTCFLAGS='$LTCFLAGS'
13217 compiler='$compiler_DEFAULT'
13218
13219 # A function that is used when there is no print builtin or printf.
13220 func_fallback_echo ()
13221 {
13222   eval 'cat <<_LTECHO_EOF
13223 \$1
13224 _LTECHO_EOF'
13225 }
13226
13227 # Quote evaled strings.
13228 for var in SHELL \
13229 ECHO \
13230 PATH_SEPARATOR \
13231 SED \
13232 GREP \
13233 EGREP \
13234 FGREP \
13235 LD \
13236 NM \
13237 LN_S \
13238 lt_SP2NL \
13239 lt_NL2SP \
13240 reload_flag \
13241 OBJDUMP \
13242 deplibs_check_method \
13243 file_magic_cmd \
13244 file_magic_glob \
13245 want_nocaseglob \
13246 DLLTOOL \
13247 sharedlib_from_linklib_cmd \
13248 AR \
13249 AR_FLAGS \
13250 archiver_list_spec \
13251 STRIP \
13252 RANLIB \
13253 CC \
13254 CFLAGS \
13255 compiler \
13256 lt_cv_sys_global_symbol_pipe \
13257 lt_cv_sys_global_symbol_to_cdecl \
13258 lt_cv_sys_global_symbol_to_c_name_address \
13259 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13260 nm_file_list_spec \
13261 lt_prog_compiler_no_builtin_flag \
13262 lt_prog_compiler_pic \
13263 lt_prog_compiler_wl \
13264 lt_prog_compiler_static \
13265 lt_cv_prog_compiler_c_o \
13266 need_locks \
13267 MANIFEST_TOOL \
13268 DSYMUTIL \
13269 NMEDIT \
13270 LIPO \
13271 OTOOL \
13272 OTOOL64 \
13273 shrext_cmds \
13274 export_dynamic_flag_spec \
13275 whole_archive_flag_spec \
13276 compiler_needs_object \
13277 with_gnu_ld \
13278 allow_undefined_flag \
13279 no_undefined_flag \
13280 hardcode_libdir_flag_spec \
13281 hardcode_libdir_separator \
13282 exclude_expsyms \
13283 include_expsyms \
13284 file_list_spec \
13285 variables_saved_for_relink \
13286 libname_spec \
13287 library_names_spec \
13288 soname_spec \
13289 install_override_mode \
13290 finish_eval \
13291 old_striplib \
13292 striplib; do
13293     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13294     *[\\\\\\\`\\"\\\$]*)
13295       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13296       ;;
13297     *)
13298       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13299       ;;
13300     esac
13301 done
13302
13303 # Double-quote double-evaled strings.
13304 for var in reload_cmds \
13305 old_postinstall_cmds \
13306 old_postuninstall_cmds \
13307 old_archive_cmds \
13308 extract_expsyms_cmds \
13309 old_archive_from_new_cmds \
13310 old_archive_from_expsyms_cmds \
13311 archive_cmds \
13312 archive_expsym_cmds \
13313 module_cmds \
13314 module_expsym_cmds \
13315 export_symbols_cmds \
13316 prelink_cmds \
13317 postlink_cmds \
13318 postinstall_cmds \
13319 postuninstall_cmds \
13320 finish_cmds \
13321 sys_lib_search_path_spec \
13322 sys_lib_dlsearch_path_spec; do
13323     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13324     *[\\\\\\\`\\"\\\$]*)
13325       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13326       ;;
13327     *)
13328       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13329       ;;
13330     esac
13331 done
13332
13333 ac_aux_dir='$ac_aux_dir'
13334 xsi_shell='$xsi_shell'
13335 lt_shell_append='$lt_shell_append'
13336
13337 # See if we are running on zsh, and set the options which allow our
13338 # commands through without removal of \ escapes INIT.
13339 if test -n "\${ZSH_VERSION+set}" ; then
13340    setopt NO_GLOB_SUBST
13341 fi
13342
13343
13344     PACKAGE='$PACKAGE'
13345     VERSION='$VERSION'
13346     TIMESTAMP='$TIMESTAMP'
13347     RM='$RM'
13348     ofile='$ofile'
13349
13350
13351
13352
13353 _ACEOF
13354
13355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13356
13357 # Handling of arguments.
13358 for ac_config_target in $ac_config_targets
13359 do
13360   case $ac_config_target in
13361     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13362     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13363     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13364     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13365     "libradsec.spec") CONFIG_FILES="$CONFIG_FILES libradsec.spec" ;;
13366     "radsecproxy/Makefile") CONFIG_FILES="$CONFIG_FILES radsecproxy/Makefile" ;;
13367     "radius/Makefile") CONFIG_FILES="$CONFIG_FILES radius/Makefile" ;;
13368     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13369     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13370     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13371
13372   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13373   esac
13374 done
13375
13376
13377 # If the user did not use the arguments to specify the items to instantiate,
13378 # then the envvar interface is used.  Set only those that are not.
13379 # We use the long form for the default assignment because of an extremely
13380 # bizarre bug on SunOS 4.1.3.
13381 if $ac_need_defaults; then
13382   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13383   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13384   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13385 fi
13386
13387 # Have a temporary directory for convenience.  Make it in the build tree
13388 # simply because there is no reason against having it here, and in addition,
13389 # creating and moving files from /tmp can sometimes cause problems.
13390 # Hook for its removal unless debugging.
13391 # Note that there is a small window in which the directory will not be cleaned:
13392 # after its creation but before its name has been assigned to `$tmp'.
13393 $debug ||
13394 {
13395   tmp= ac_tmp=
13396   trap 'exit_status=$?
13397   : "${ac_tmp:=$tmp}"
13398   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13399 ' 0
13400   trap 'as_fn_exit 1' 1 2 13 15
13401 }
13402 # Create a (secure) tmp directory for tmp files.
13403
13404 {
13405   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13406   test -d "$tmp"
13407 }  ||
13408 {
13409   tmp=./conf$$-$RANDOM
13410   (umask 077 && mkdir "$tmp")
13411 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13412 ac_tmp=$tmp
13413
13414 # Set up the scripts for CONFIG_FILES section.
13415 # No need to generate them if there are no CONFIG_FILES.
13416 # This happens for instance with `./config.status config.h'.
13417 if test -n "$CONFIG_FILES"; then
13418
13419
13420 ac_cr=`echo X | tr X '\015'`
13421 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13422 # But we know of no other shell where ac_cr would be empty at this
13423 # point, so we can use a bashism as a fallback.
13424 if test "x$ac_cr" = x; then
13425   eval ac_cr=\$\'\\r\'
13426 fi
13427 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13428 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13429   ac_cs_awk_cr='\\r'
13430 else
13431   ac_cs_awk_cr=$ac_cr
13432 fi
13433
13434 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13435 _ACEOF
13436
13437
13438 {
13439   echo "cat >conf$$subs.awk <<_ACEOF" &&
13440   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13441   echo "_ACEOF"
13442 } >conf$$subs.sh ||
13443   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13444 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13445 ac_delim='%!_!# '
13446 for ac_last_try in false false false false false :; do
13447   . ./conf$$subs.sh ||
13448     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13449
13450   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13451   if test $ac_delim_n = $ac_delim_num; then
13452     break
13453   elif $ac_last_try; then
13454     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13455   else
13456     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13457   fi
13458 done
13459 rm -f conf$$subs.sh
13460
13461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13462 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13463 _ACEOF
13464 sed -n '
13465 h
13466 s/^/S["/; s/!.*/"]=/
13467 p
13468 g
13469 s/^[^!]*!//
13470 :repl
13471 t repl
13472 s/'"$ac_delim"'$//
13473 t delim
13474 :nl
13475 h
13476 s/\(.\{148\}\)..*/\1/
13477 t more1
13478 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13479 p
13480 n
13481 b repl
13482 :more1
13483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13484 p
13485 g
13486 s/.\{148\}//
13487 t nl
13488 :delim
13489 h
13490 s/\(.\{148\}\)..*/\1/
13491 t more2
13492 s/["\\]/\\&/g; s/^/"/; s/$/"/
13493 p
13494 b
13495 :more2
13496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13497 p
13498 g
13499 s/.\{148\}//
13500 t delim
13501 ' <conf$$subs.awk | sed '
13502 /^[^""]/{
13503   N
13504   s/\n//
13505 }
13506 ' >>$CONFIG_STATUS || ac_write_fail=1
13507 rm -f conf$$subs.awk
13508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13509 _ACAWK
13510 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13511   for (key in S) S_is_set[key] = 1
13512   FS = "\a"
13513
13514 }
13515 {
13516   line = $ 0
13517   nfields = split(line, field, "@")
13518   substed = 0
13519   len = length(field[1])
13520   for (i = 2; i < nfields; i++) {
13521     key = field[i]
13522     keylen = length(key)
13523     if (S_is_set[key]) {
13524       value = S[key]
13525       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13526       len += length(value) + length(field[++i])
13527       substed = 1
13528     } else
13529       len += 1 + keylen
13530   }
13531
13532   print line
13533 }
13534
13535 _ACAWK
13536 _ACEOF
13537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13538 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13539   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13540 else
13541   cat
13542 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13543   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13544 _ACEOF
13545
13546 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13547 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13548 # trailing colons and then remove the whole line if VPATH becomes empty
13549 # (actually we leave an empty line to preserve line numbers).
13550 if test "x$srcdir" = x.; then
13551   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13552 h
13553 s///
13554 s/^/:/
13555 s/[      ]*$/:/
13556 s/:\$(srcdir):/:/g
13557 s/:\${srcdir}:/:/g
13558 s/:@srcdir@:/:/g
13559 s/^:*//
13560 s/:*$//
13561 x
13562 s/\(=[   ]*\).*/\1/
13563 G
13564 s/\n//
13565 s/^[^=]*=[       ]*$//
13566 }'
13567 fi
13568
13569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13570 fi # test -n "$CONFIG_FILES"
13571
13572 # Set up the scripts for CONFIG_HEADERS section.
13573 # No need to generate them if there are no CONFIG_HEADERS.
13574 # This happens for instance with `./config.status Makefile'.
13575 if test -n "$CONFIG_HEADERS"; then
13576 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13577 BEGIN {
13578 _ACEOF
13579
13580 # Transform confdefs.h into an awk script `defines.awk', embedded as
13581 # here-document in config.status, that substitutes the proper values into
13582 # config.h.in to produce config.h.
13583
13584 # Create a delimiter string that does not exist in confdefs.h, to ease
13585 # handling of long lines.
13586 ac_delim='%!_!# '
13587 for ac_last_try in false false :; do
13588   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13589   if test -z "$ac_tt"; then
13590     break
13591   elif $ac_last_try; then
13592     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13593   else
13594     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13595   fi
13596 done
13597
13598 # For the awk script, D is an array of macro values keyed by name,
13599 # likewise P contains macro parameters if any.  Preserve backslash
13600 # newline sequences.
13601
13602 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13603 sed -n '
13604 s/.\{148\}/&'"$ac_delim"'/g
13605 t rset
13606 :rset
13607 s/^[     ]*#[    ]*define[       ][      ]*/ /
13608 t def
13609 d
13610 :def
13611 s/\\$//
13612 t bsnl
13613 s/["\\]/\\&/g
13614 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13615 D["\1"]=" \3"/p
13616 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13617 d
13618 :bsnl
13619 s/["\\]/\\&/g
13620 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13621 D["\1"]=" \3\\\\\\n"\\/p
13622 t cont
13623 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13624 t cont
13625 d
13626 :cont
13627 n
13628 s/.\{148\}/&'"$ac_delim"'/g
13629 t clear
13630 :clear
13631 s/\\$//
13632 t bsnlc
13633 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13634 d
13635 :bsnlc
13636 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13637 b cont
13638 ' <confdefs.h | sed '
13639 s/'"$ac_delim"'/"\\\
13640 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13641
13642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13643   for (key in D) D_is_set[key] = 1
13644   FS = "\a"
13645 }
13646 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13647   line = \$ 0
13648   split(line, arg, " ")
13649   if (arg[1] == "#") {
13650     defundef = arg[2]
13651     mac1 = arg[3]
13652   } else {
13653     defundef = substr(arg[1], 2)
13654     mac1 = arg[2]
13655   }
13656   split(mac1, mac2, "(") #)
13657   macro = mac2[1]
13658   prefix = substr(line, 1, index(line, defundef) - 1)
13659   if (D_is_set[macro]) {
13660     # Preserve the white space surrounding the "#".
13661     print prefix "define", macro P[macro] D[macro]
13662     next
13663   } else {
13664     # Replace #undef with comments.  This is necessary, for example,
13665     # in the case of _POSIX_SOURCE, which is predefined and required
13666     # on some systems where configure will not decide to define it.
13667     if (defundef == "undef") {
13668       print "/*", prefix defundef, macro, "*/"
13669       next
13670     }
13671   }
13672 }
13673 { print }
13674 _ACAWK
13675 _ACEOF
13676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13677   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13678 fi # test -n "$CONFIG_HEADERS"
13679
13680
13681 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13682 shift
13683 for ac_tag
13684 do
13685   case $ac_tag in
13686   :[FHLC]) ac_mode=$ac_tag; continue;;
13687   esac
13688   case $ac_mode$ac_tag in
13689   :[FHL]*:*);;
13690   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13691   :[FH]-) ac_tag=-:-;;
13692   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13693   esac
13694   ac_save_IFS=$IFS
13695   IFS=:
13696   set x $ac_tag
13697   IFS=$ac_save_IFS
13698   shift
13699   ac_file=$1
13700   shift
13701
13702   case $ac_mode in
13703   :L) ac_source=$1;;
13704   :[FH])
13705     ac_file_inputs=
13706     for ac_f
13707     do
13708       case $ac_f in
13709       -) ac_f="$ac_tmp/stdin";;
13710       *) # Look for the file first in the build tree, then in the source tree
13711          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13712          # because $ac_f cannot contain `:'.
13713          test -f "$ac_f" ||
13714            case $ac_f in
13715            [\\/$]*) false;;
13716            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13717            esac ||
13718            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13719       esac
13720       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13721       as_fn_append ac_file_inputs " '$ac_f'"
13722     done
13723
13724     # Let's still pretend it is `configure' which instantiates (i.e., don't
13725     # use $as_me), people would be surprised to read:
13726     #    /* config.h.  Generated by config.status.  */
13727     configure_input='Generated from '`
13728           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13729         `' by configure.'
13730     if test x"$ac_file" != x-; then
13731       configure_input="$ac_file.  $configure_input"
13732       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13733 $as_echo "$as_me: creating $ac_file" >&6;}
13734     fi
13735     # Neutralize special characters interpreted by sed in replacement strings.
13736     case $configure_input in #(
13737     *\&* | *\|* | *\\* )
13738        ac_sed_conf_input=`$as_echo "$configure_input" |
13739        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13740     *) ac_sed_conf_input=$configure_input;;
13741     esac
13742
13743     case $ac_tag in
13744     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13745       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13746     esac
13747     ;;
13748   esac
13749
13750   ac_dir=`$as_dirname -- "$ac_file" ||
13751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13752          X"$ac_file" : 'X\(//\)[^/]' \| \
13753          X"$ac_file" : 'X\(//\)$' \| \
13754          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13755 $as_echo X"$ac_file" |
13756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13757             s//\1/
13758             q
13759           }
13760           /^X\(\/\/\)[^/].*/{
13761             s//\1/
13762             q
13763           }
13764           /^X\(\/\/\)$/{
13765             s//\1/
13766             q
13767           }
13768           /^X\(\/\).*/{
13769             s//\1/
13770             q
13771           }
13772           s/.*/./; q'`
13773   as_dir="$ac_dir"; as_fn_mkdir_p
13774   ac_builddir=.
13775
13776 case "$ac_dir" in
13777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13778 *)
13779   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13780   # A ".." for each directory in $ac_dir_suffix.
13781   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13782   case $ac_top_builddir_sub in
13783   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13784   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13785   esac ;;
13786 esac
13787 ac_abs_top_builddir=$ac_pwd
13788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13789 # for backward compatibility:
13790 ac_top_builddir=$ac_top_build_prefix
13791
13792 case $srcdir in
13793   .)  # We are building in place.
13794     ac_srcdir=.
13795     ac_top_srcdir=$ac_top_builddir_sub
13796     ac_abs_top_srcdir=$ac_pwd ;;
13797   [\\/]* | ?:[\\/]* )  # Absolute name.
13798     ac_srcdir=$srcdir$ac_dir_suffix;
13799     ac_top_srcdir=$srcdir
13800     ac_abs_top_srcdir=$srcdir ;;
13801   *) # Relative name.
13802     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13803     ac_top_srcdir=$ac_top_build_prefix$srcdir
13804     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13805 esac
13806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13807
13808
13809   case $ac_mode in
13810   :F)
13811   #
13812   # CONFIG_FILE
13813   #
13814
13815   case $INSTALL in
13816   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13817   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13818   esac
13819   ac_MKDIR_P=$MKDIR_P
13820   case $MKDIR_P in
13821   [\\/$]* | ?:[\\/]* ) ;;
13822   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13823   esac
13824 _ACEOF
13825
13826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13827 # If the template does not know about datarootdir, expand it.
13828 # FIXME: This hack should be removed a few years after 2.60.
13829 ac_datarootdir_hack=; ac_datarootdir_seen=
13830 ac_sed_dataroot='
13831 /datarootdir/ {
13832   p
13833   q
13834 }
13835 /@datadir@/p
13836 /@docdir@/p
13837 /@infodir@/p
13838 /@localedir@/p
13839 /@mandir@/p'
13840 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13841 *datarootdir*) ac_datarootdir_seen=yes;;
13842 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13843   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13844 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13845 _ACEOF
13846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13847   ac_datarootdir_hack='
13848   s&@datadir@&$datadir&g
13849   s&@docdir@&$docdir&g
13850   s&@infodir@&$infodir&g
13851   s&@localedir@&$localedir&g
13852   s&@mandir@&$mandir&g
13853   s&\\\${datarootdir}&$datarootdir&g' ;;
13854 esac
13855 _ACEOF
13856
13857 # Neutralize VPATH when `$srcdir' = `.'.
13858 # Shell code in configure.ac might set extrasub.
13859 # FIXME: do we really want to maintain this feature?
13860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13861 ac_sed_extra="$ac_vpsub
13862 $extrasub
13863 _ACEOF
13864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865 :t
13866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13867 s|@configure_input@|$ac_sed_conf_input|;t t
13868 s&@top_builddir@&$ac_top_builddir_sub&;t t
13869 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13870 s&@srcdir@&$ac_srcdir&;t t
13871 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13872 s&@top_srcdir@&$ac_top_srcdir&;t t
13873 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13874 s&@builddir@&$ac_builddir&;t t
13875 s&@abs_builddir@&$ac_abs_builddir&;t t
13876 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13877 s&@INSTALL@&$ac_INSTALL&;t t
13878 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13879 $ac_datarootdir_hack
13880 "
13881 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13882   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13883
13884 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13885   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13886   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13887       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13888   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13889 which seems to be undefined.  Please make sure it is defined" >&5
13890 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13891 which seems to be undefined.  Please make sure it is defined" >&2;}
13892
13893   rm -f "$ac_tmp/stdin"
13894   case $ac_file in
13895   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13896   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13897   esac \
13898   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13899  ;;
13900   :H)
13901   #
13902   # CONFIG_HEADER
13903   #
13904   if test x"$ac_file" != x-; then
13905     {
13906       $as_echo "/* $configure_input  */" \
13907       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13908     } >"$ac_tmp/config.h" \
13909       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13910     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13911       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13912 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13913     else
13914       rm -f "$ac_file"
13915       mv "$ac_tmp/config.h" "$ac_file" \
13916         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13917     fi
13918   else
13919     $as_echo "/* $configure_input  */" \
13920       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13921       || as_fn_error $? "could not create -" "$LINENO" 5
13922   fi
13923 # Compute "$ac_file"'s index in $config_headers.
13924 _am_arg="$ac_file"
13925 _am_stamp_count=1
13926 for _am_header in $config_headers :; do
13927   case $_am_header in
13928     $_am_arg | $_am_arg:* )
13929       break ;;
13930     * )
13931       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13932   esac
13933 done
13934 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13935 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13936          X"$_am_arg" : 'X\(//\)[^/]' \| \
13937          X"$_am_arg" : 'X\(//\)$' \| \
13938          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13939 $as_echo X"$_am_arg" |
13940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13941             s//\1/
13942             q
13943           }
13944           /^X\(\/\/\)[^/].*/{
13945             s//\1/
13946             q
13947           }
13948           /^X\(\/\/\)$/{
13949             s//\1/
13950             q
13951           }
13952           /^X\(\/\).*/{
13953             s//\1/
13954             q
13955           }
13956           s/.*/./; q'`/stamp-h$_am_stamp_count
13957  ;;
13958
13959   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13960 $as_echo "$as_me: executing $ac_file commands" >&6;}
13961  ;;
13962   esac
13963
13964
13965   case $ac_file$ac_mode in
13966     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13967   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13968   # are listed without --file.  Let's play safe and only enable the eval
13969   # if we detect the quoting.
13970   case $CONFIG_FILES in
13971   *\'*) eval set x "$CONFIG_FILES" ;;
13972   *)   set x $CONFIG_FILES ;;
13973   esac
13974   shift
13975   for mf
13976   do
13977     # Strip MF so we end up with the name of the file.
13978     mf=`echo "$mf" | sed -e 's/:.*$//'`
13979     # Check whether this is an Automake generated Makefile or not.
13980     # We used to match only the files named `Makefile.in', but
13981     # some people rename them; so instead we look at the file content.
13982     # Grep'ing the first line is not enough: some people post-process
13983     # each Makefile.in and add a new line on top of each file to say so.
13984     # Grep'ing the whole file is not good either: AIX grep has a line
13985     # limit of 2048, but all sed's we know have understand at least 4000.
13986     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13987       dirpart=`$as_dirname -- "$mf" ||
13988 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13989          X"$mf" : 'X\(//\)[^/]' \| \
13990          X"$mf" : 'X\(//\)$' \| \
13991          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13992 $as_echo X"$mf" |
13993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13994             s//\1/
13995             q
13996           }
13997           /^X\(\/\/\)[^/].*/{
13998             s//\1/
13999             q
14000           }
14001           /^X\(\/\/\)$/{
14002             s//\1/
14003             q
14004           }
14005           /^X\(\/\).*/{
14006             s//\1/
14007             q
14008           }
14009           s/.*/./; q'`
14010     else
14011       continue
14012     fi
14013     # Extract the definition of DEPDIR, am__include, and am__quote
14014     # from the Makefile without running `make'.
14015     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14016     test -z "$DEPDIR" && continue
14017     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14018     test -z "am__include" && continue
14019     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14020     # When using ansi2knr, U may be empty or an underscore; expand it
14021     U=`sed -n 's/^U = //p' < "$mf"`
14022     # Find all dependency output files, they are included files with
14023     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14024     # simplest approach to changing $(DEPDIR) to its actual value in the
14025     # expansion.
14026     for file in `sed -n "
14027       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14028          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14029       # Make sure the directory exists.
14030       test -f "$dirpart/$file" && continue
14031       fdir=`$as_dirname -- "$file" ||
14032 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033          X"$file" : 'X\(//\)[^/]' \| \
14034          X"$file" : 'X\(//\)$' \| \
14035          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14036 $as_echo X"$file" |
14037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14038             s//\1/
14039             q
14040           }
14041           /^X\(\/\/\)[^/].*/{
14042             s//\1/
14043             q
14044           }
14045           /^X\(\/\/\)$/{
14046             s//\1/
14047             q
14048           }
14049           /^X\(\/\).*/{
14050             s//\1/
14051             q
14052           }
14053           s/.*/./; q'`
14054       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14055       # echo "creating $dirpart/$file"
14056       echo '# dummy' > "$dirpart/$file"
14057     done
14058   done
14059 }
14060  ;;
14061     "libtool":C)
14062
14063     # See if we are running on zsh, and set the options which allow our
14064     # commands through without removal of \ escapes.
14065     if test -n "${ZSH_VERSION+set}" ; then
14066       setopt NO_GLOB_SUBST
14067     fi
14068
14069     cfgfile="${ofile}T"
14070     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14071     $RM "$cfgfile"
14072
14073     cat <<_LT_EOF >> "$cfgfile"
14074 #! $SHELL
14075
14076 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14077 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14078 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14079 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14080 #
14081 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14082 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14083 #                 Foundation, Inc.
14084 #   Written by Gordon Matzigkeit, 1996
14085 #
14086 #   This file is part of GNU Libtool.
14087 #
14088 # GNU Libtool is free software; you can redistribute it and/or
14089 # modify it under the terms of the GNU General Public License as
14090 # published by the Free Software Foundation; either version 2 of
14091 # the License, or (at your option) any later version.
14092 #
14093 # As a special exception to the GNU General Public License,
14094 # if you distribute this file as part of a program or library that
14095 # is built using GNU Libtool, you may include this file under the
14096 # same distribution terms that you use for the rest of that program.
14097 #
14098 # GNU Libtool is distributed in the hope that it will be useful,
14099 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14100 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14101 # GNU General Public License for more details.
14102 #
14103 # You should have received a copy of the GNU General Public License
14104 # along with GNU Libtool; see the file COPYING.  If not, a copy
14105 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14106 # obtained by writing to the Free Software Foundation, Inc.,
14107 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14108
14109
14110 # The names of the tagged configurations supported by this script.
14111 available_tags=""
14112
14113 # ### BEGIN LIBTOOL CONFIG
14114
14115 # Which release of libtool.m4 was used?
14116 macro_version=$macro_version
14117 macro_revision=$macro_revision
14118
14119 # Whether or not to build shared libraries.
14120 build_libtool_libs=$enable_shared
14121
14122 # Whether or not to build static libraries.
14123 build_old_libs=$enable_static
14124
14125 # What type of objects to build.
14126 pic_mode=$pic_mode
14127
14128 # Whether or not to optimize for fast installation.
14129 fast_install=$enable_fast_install
14130
14131 # Shell to use when invoking shell scripts.
14132 SHELL=$lt_SHELL
14133
14134 # An echo program that protects backslashes.
14135 ECHO=$lt_ECHO
14136
14137 # The PATH separator for the build system.
14138 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14139
14140 # The host system.
14141 host_alias=$host_alias
14142 host=$host
14143 host_os=$host_os
14144
14145 # The build system.
14146 build_alias=$build_alias
14147 build=$build
14148 build_os=$build_os
14149
14150 # A sed program that does not truncate output.
14151 SED=$lt_SED
14152
14153 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14154 Xsed="\$SED -e 1s/^X//"
14155
14156 # A grep program that handles long lines.
14157 GREP=$lt_GREP
14158
14159 # An ERE matcher.
14160 EGREP=$lt_EGREP
14161
14162 # A literal string matcher.
14163 FGREP=$lt_FGREP
14164
14165 # A BSD- or MS-compatible name lister.
14166 NM=$lt_NM
14167
14168 # Whether we need soft or hard links.
14169 LN_S=$lt_LN_S
14170
14171 # What is the maximum length of a command?
14172 max_cmd_len=$max_cmd_len
14173
14174 # Object file suffix (normally "o").
14175 objext=$ac_objext
14176
14177 # Executable file suffix (normally "").
14178 exeext=$exeext
14179
14180 # whether the shell understands "unset".
14181 lt_unset=$lt_unset
14182
14183 # turn spaces into newlines.
14184 SP2NL=$lt_lt_SP2NL
14185
14186 # turn newlines into spaces.
14187 NL2SP=$lt_lt_NL2SP
14188
14189 # convert \$build file names to \$host format.
14190 to_host_file_cmd=$lt_cv_to_host_file_cmd
14191
14192 # convert \$build files to toolchain format.
14193 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14194
14195 # An object symbol dumper.
14196 OBJDUMP=$lt_OBJDUMP
14197
14198 # Method to check whether dependent libraries are shared objects.
14199 deplibs_check_method=$lt_deplibs_check_method
14200
14201 # Command to use when deplibs_check_method = "file_magic".
14202 file_magic_cmd=$lt_file_magic_cmd
14203
14204 # How to find potential files when deplibs_check_method = "file_magic".
14205 file_magic_glob=$lt_file_magic_glob
14206
14207 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14208 want_nocaseglob=$lt_want_nocaseglob
14209
14210 # DLL creation program.
14211 DLLTOOL=$lt_DLLTOOL
14212
14213 # Command to associate shared and link libraries.
14214 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14215
14216 # The archiver.
14217 AR=$lt_AR
14218
14219 # Flags to create an archive.
14220 AR_FLAGS=$lt_AR_FLAGS
14221
14222 # How to feed a file listing to the archiver.
14223 archiver_list_spec=$lt_archiver_list_spec
14224
14225 # A symbol stripping program.
14226 STRIP=$lt_STRIP
14227
14228 # Commands used to install an old-style archive.
14229 RANLIB=$lt_RANLIB
14230 old_postinstall_cmds=$lt_old_postinstall_cmds
14231 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14232
14233 # Whether to use a lock for old archive extraction.
14234 lock_old_archive_extraction=$lock_old_archive_extraction
14235
14236 # A C compiler.
14237 LTCC=$lt_CC
14238
14239 # LTCC compiler flags.
14240 LTCFLAGS=$lt_CFLAGS
14241
14242 # Take the output of nm and produce a listing of raw symbols and C names.
14243 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14244
14245 # Transform the output of nm in a proper C declaration.
14246 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14247
14248 # Transform the output of nm in a C name address pair.
14249 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14250
14251 # Transform the output of nm in a C name address pair when lib prefix is needed.
14252 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14253
14254 # Specify filename containing input files for \$NM.
14255 nm_file_list_spec=$lt_nm_file_list_spec
14256
14257 # The root where to search for dependent libraries,and in which our libraries should be installed.
14258 lt_sysroot=$lt_sysroot
14259
14260 # The name of the directory that contains temporary libtool files.
14261 objdir=$objdir
14262
14263 # Used to examine libraries when file_magic_cmd begins with "file".
14264 MAGIC_CMD=$MAGIC_CMD
14265
14266 # Must we lock files when doing compilation?
14267 need_locks=$lt_need_locks
14268
14269 # Manifest tool.
14270 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14271
14272 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14273 DSYMUTIL=$lt_DSYMUTIL
14274
14275 # Tool to change global to local symbols on Mac OS X.
14276 NMEDIT=$lt_NMEDIT
14277
14278 # Tool to manipulate fat objects and archives on Mac OS X.
14279 LIPO=$lt_LIPO
14280
14281 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14282 OTOOL=$lt_OTOOL
14283
14284 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14285 OTOOL64=$lt_OTOOL64
14286
14287 # Old archive suffix (normally "a").
14288 libext=$libext
14289
14290 # Shared library suffix (normally ".so").
14291 shrext_cmds=$lt_shrext_cmds
14292
14293 # The commands to extract the exported symbol list from a shared archive.
14294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14295
14296 # Variables whose values should be saved in libtool wrapper scripts and
14297 # restored at link time.
14298 variables_saved_for_relink=$lt_variables_saved_for_relink
14299
14300 # Do we need the "lib" prefix for modules?
14301 need_lib_prefix=$need_lib_prefix
14302
14303 # Do we need a version for libraries?
14304 need_version=$need_version
14305
14306 # Library versioning type.
14307 version_type=$version_type
14308
14309 # Shared library runtime path variable.
14310 runpath_var=$runpath_var
14311
14312 # Shared library path variable.
14313 shlibpath_var=$shlibpath_var
14314
14315 # Is shlibpath searched before the hard-coded library search path?
14316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14317
14318 # Format of library name prefix.
14319 libname_spec=$lt_libname_spec
14320
14321 # List of archive names.  First name is the real one, the rest are links.
14322 # The last name is the one that the linker finds with -lNAME
14323 library_names_spec=$lt_library_names_spec
14324
14325 # The coded name of the library, if different from the real name.
14326 soname_spec=$lt_soname_spec
14327
14328 # Permission mode override for installation of shared libraries.
14329 install_override_mode=$lt_install_override_mode
14330
14331 # Command to use after installation of a shared archive.
14332 postinstall_cmds=$lt_postinstall_cmds
14333
14334 # Command to use after uninstallation of a shared archive.
14335 postuninstall_cmds=$lt_postuninstall_cmds
14336
14337 # Commands used to finish a libtool library installation in a directory.
14338 finish_cmds=$lt_finish_cmds
14339
14340 # As "finish_cmds", except a single script fragment to be evaled but
14341 # not shown.
14342 finish_eval=$lt_finish_eval
14343
14344 # Whether we should hardcode library paths into libraries.
14345 hardcode_into_libs=$hardcode_into_libs
14346
14347 # Compile-time system search path for libraries.
14348 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14349
14350 # Run-time system search path for libraries.
14351 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14352
14353 # Whether dlopen is supported.
14354 dlopen_support=$enable_dlopen
14355
14356 # Whether dlopen of programs is supported.
14357 dlopen_self=$enable_dlopen_self
14358
14359 # Whether dlopen of statically linked programs is supported.
14360 dlopen_self_static=$enable_dlopen_self_static
14361
14362 # Commands to strip libraries.
14363 old_striplib=$lt_old_striplib
14364 striplib=$lt_striplib
14365
14366
14367 # The linker used to build libraries.
14368 LD=$lt_LD
14369
14370 # How to create reloadable object files.
14371 reload_flag=$lt_reload_flag
14372 reload_cmds=$lt_reload_cmds
14373
14374 # Commands used to build an old-style archive.
14375 old_archive_cmds=$lt_old_archive_cmds
14376
14377 # A language specific compiler.
14378 CC=$lt_compiler
14379
14380 # Is the compiler the GNU compiler?
14381 with_gcc=$GCC
14382
14383 # Compiler flag to turn off builtin functions.
14384 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14385
14386 # Additional compiler flags for building library objects.
14387 pic_flag=$lt_lt_prog_compiler_pic
14388
14389 # How to pass a linker flag through the compiler.
14390 wl=$lt_lt_prog_compiler_wl
14391
14392 # Compiler flag to prevent dynamic linking.
14393 link_static_flag=$lt_lt_prog_compiler_static
14394
14395 # Does compiler simultaneously support -c and -o options?
14396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14397
14398 # Whether or not to add -lc for building shared libraries.
14399 build_libtool_need_lc=$archive_cmds_need_lc
14400
14401 # Whether or not to disallow shared libs when runtime libs are static.
14402 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14403
14404 # Compiler flag to allow reflexive dlopens.
14405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14406
14407 # Compiler flag to generate shared objects directly from archives.
14408 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14409
14410 # Whether the compiler copes with passing no objects directly.
14411 compiler_needs_object=$lt_compiler_needs_object
14412
14413 # Create an old-style archive from a shared archive.
14414 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14415
14416 # Create a temporary old-style archive to link instead of a shared archive.
14417 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14418
14419 # Commands used to build a shared archive.
14420 archive_cmds=$lt_archive_cmds
14421 archive_expsym_cmds=$lt_archive_expsym_cmds
14422
14423 # Commands used to build a loadable module if different from building
14424 # a shared archive.
14425 module_cmds=$lt_module_cmds
14426 module_expsym_cmds=$lt_module_expsym_cmds
14427
14428 # Whether we are building with GNU ld or not.
14429 with_gnu_ld=$lt_with_gnu_ld
14430
14431 # Flag that allows shared libraries with undefined symbols to be built.
14432 allow_undefined_flag=$lt_allow_undefined_flag
14433
14434 # Flag that enforces no undefined symbols.
14435 no_undefined_flag=$lt_no_undefined_flag
14436
14437 # Flag to hardcode \$libdir into a binary during linking.
14438 # This must work even if \$libdir does not exist
14439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14440
14441 # Whether we need a single "-rpath" flag with a separated argument.
14442 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14443
14444 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14445 # DIR into the resulting binary.
14446 hardcode_direct=$hardcode_direct
14447
14448 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14449 # DIR into the resulting binary and the resulting library dependency is
14450 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14451 # library is relocated.
14452 hardcode_direct_absolute=$hardcode_direct_absolute
14453
14454 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14455 # into the resulting binary.
14456 hardcode_minus_L=$hardcode_minus_L
14457
14458 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14459 # into the resulting binary.
14460 hardcode_shlibpath_var=$hardcode_shlibpath_var
14461
14462 # Set to "yes" if building a shared library automatically hardcodes DIR
14463 # into the library and all subsequent libraries and executables linked
14464 # against it.
14465 hardcode_automatic=$hardcode_automatic
14466
14467 # Set to yes if linker adds runtime paths of dependent libraries
14468 # to runtime path list.
14469 inherit_rpath=$inherit_rpath
14470
14471 # Whether libtool must link a program against all its dependency libraries.
14472 link_all_deplibs=$link_all_deplibs
14473
14474 # Set to "yes" if exported symbols are required.
14475 always_export_symbols=$always_export_symbols
14476
14477 # The commands to list exported symbols.
14478 export_symbols_cmds=$lt_export_symbols_cmds
14479
14480 # Symbols that should not be listed in the preloaded symbols.
14481 exclude_expsyms=$lt_exclude_expsyms
14482
14483 # Symbols that must always be exported.
14484 include_expsyms=$lt_include_expsyms
14485
14486 # Commands necessary for linking programs (against libraries) with templates.
14487 prelink_cmds=$lt_prelink_cmds
14488
14489 # Commands necessary for finishing linking programs.
14490 postlink_cmds=$lt_postlink_cmds
14491
14492 # Specify filename containing input files.
14493 file_list_spec=$lt_file_list_spec
14494
14495 # How to hardcode a shared library path into an executable.
14496 hardcode_action=$hardcode_action
14497
14498 # ### END LIBTOOL CONFIG
14499
14500 _LT_EOF
14501
14502   case $host_os in
14503   aix3*)
14504     cat <<\_LT_EOF >> "$cfgfile"
14505 # AIX sometimes has problems with the GCC collect2 program.  For some
14506 # reason, if we set the COLLECT_NAMES environment variable, the problems
14507 # vanish in a puff of smoke.
14508 if test "X${COLLECT_NAMES+set}" != Xset; then
14509   COLLECT_NAMES=
14510   export COLLECT_NAMES
14511 fi
14512 _LT_EOF
14513     ;;
14514   esac
14515
14516
14517 ltmain="$ac_aux_dir/ltmain.sh"
14518
14519
14520   # We use sed instead of cat because bash on DJGPP gets confused if
14521   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14522   # text mode, it properly converts lines to CR/LF.  This bash problem
14523   # is reportedly fixed, but why not run on old versions too?
14524   sed '$q' "$ltmain" >> "$cfgfile" \
14525      || (rm -f "$cfgfile"; exit 1)
14526
14527   if test x"$xsi_shell" = xyes; then
14528   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14529 func_dirname ()\
14530 {\
14531 \    case ${1} in\
14532 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14533 \      *  ) func_dirname_result="${3}" ;;\
14534 \    esac\
14535 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14536   && mv -f "$cfgfile.tmp" "$cfgfile" \
14537     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14538 test 0 -eq $? || _lt_function_replace_fail=:
14539
14540
14541   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14542 func_basename ()\
14543 {\
14544 \    func_basename_result="${1##*/}"\
14545 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14546   && mv -f "$cfgfile.tmp" "$cfgfile" \
14547     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14548 test 0 -eq $? || _lt_function_replace_fail=:
14549
14550
14551   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14552 func_dirname_and_basename ()\
14553 {\
14554 \    case ${1} in\
14555 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14556 \      *  ) func_dirname_result="${3}" ;;\
14557 \    esac\
14558 \    func_basename_result="${1##*/}"\
14559 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14560   && mv -f "$cfgfile.tmp" "$cfgfile" \
14561     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14562 test 0 -eq $? || _lt_function_replace_fail=:
14563
14564
14565   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14566 func_stripname ()\
14567 {\
14568 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14569 \    # positional parameters, so assign one to ordinary parameter first.\
14570 \    func_stripname_result=${3}\
14571 \    func_stripname_result=${func_stripname_result#"${1}"}\
14572 \    func_stripname_result=${func_stripname_result%"${2}"}\
14573 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14574   && mv -f "$cfgfile.tmp" "$cfgfile" \
14575     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14576 test 0 -eq $? || _lt_function_replace_fail=:
14577
14578
14579   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14580 func_split_long_opt ()\
14581 {\
14582 \    func_split_long_opt_name=${1%%=*}\
14583 \    func_split_long_opt_arg=${1#*=}\
14584 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14585   && mv -f "$cfgfile.tmp" "$cfgfile" \
14586     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14587 test 0 -eq $? || _lt_function_replace_fail=:
14588
14589
14590   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14591 func_split_short_opt ()\
14592 {\
14593 \    func_split_short_opt_arg=${1#??}\
14594 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14595 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14596   && mv -f "$cfgfile.tmp" "$cfgfile" \
14597     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14598 test 0 -eq $? || _lt_function_replace_fail=:
14599
14600
14601   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14602 func_lo2o ()\
14603 {\
14604 \    case ${1} in\
14605 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14606 \      *)    func_lo2o_result=${1} ;;\
14607 \    esac\
14608 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14609   && mv -f "$cfgfile.tmp" "$cfgfile" \
14610     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14611 test 0 -eq $? || _lt_function_replace_fail=:
14612
14613
14614   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14615 func_xform ()\
14616 {\
14617     func_xform_result=${1%.*}.lo\
14618 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14619   && mv -f "$cfgfile.tmp" "$cfgfile" \
14620     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14621 test 0 -eq $? || _lt_function_replace_fail=:
14622
14623
14624   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14625 func_arith ()\
14626 {\
14627     func_arith_result=$(( $* ))\
14628 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14629   && mv -f "$cfgfile.tmp" "$cfgfile" \
14630     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14631 test 0 -eq $? || _lt_function_replace_fail=:
14632
14633
14634   sed -e '/^func_len ()$/,/^} # func_len /c\
14635 func_len ()\
14636 {\
14637     func_len_result=${#1}\
14638 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14639   && mv -f "$cfgfile.tmp" "$cfgfile" \
14640     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14641 test 0 -eq $? || _lt_function_replace_fail=:
14642
14643 fi
14644
14645 if test x"$lt_shell_append" = xyes; then
14646   sed -e '/^func_append ()$/,/^} # func_append /c\
14647 func_append ()\
14648 {\
14649     eval "${1}+=\\${2}"\
14650 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14651   && mv -f "$cfgfile.tmp" "$cfgfile" \
14652     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14653 test 0 -eq $? || _lt_function_replace_fail=:
14654
14655
14656   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14657 func_append_quoted ()\
14658 {\
14659 \    func_quote_for_eval "${2}"\
14660 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14661 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14662   && mv -f "$cfgfile.tmp" "$cfgfile" \
14663     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14664 test 0 -eq $? || _lt_function_replace_fail=:
14665
14666
14667   # Save a `func_append' function call where possible by direct use of '+='
14668   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14669     && mv -f "$cfgfile.tmp" "$cfgfile" \
14670       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14671   test 0 -eq $? || _lt_function_replace_fail=:
14672 else
14673   # Save a `func_append' function call even when '+=' is not available
14674   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14675     && mv -f "$cfgfile.tmp" "$cfgfile" \
14676       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14677   test 0 -eq $? || _lt_function_replace_fail=:
14678 fi
14679
14680 if test x"$_lt_function_replace_fail" = x":"; then
14681   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14682 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14683 fi
14684
14685
14686    mv -f "$cfgfile" "$ofile" ||
14687     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14688   chmod +x "$ofile"
14689
14690  ;;
14691
14692   esac
14693 done # for ac_tag
14694
14695
14696 as_fn_exit 0
14697 _ACEOF
14698 ac_clean_files=$ac_clean_files_save
14699
14700 test $ac_write_fail = 0 ||
14701   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14702
14703
14704 # configure is writing to config.log, and then calls config.status.
14705 # config.status does its own redirection, appending to config.log.
14706 # Unfortunately, on DOS this fails, as config.log is still kept open
14707 # by configure, so config.status won't be able to write to it; its
14708 # output is simply discarded.  So we exec the FD to /dev/null,
14709 # effectively closing config.log, so it can be properly (re)opened and
14710 # appended to by config.status.  When coming back to configure, we
14711 # need to make the FD available again.
14712 if test "$no_create" != yes; then
14713   ac_cs_success=:
14714   ac_config_status_args=
14715   test "$silent" = yes &&
14716     ac_config_status_args="$ac_config_status_args --quiet"
14717   exec 5>/dev/null
14718   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14719   exec 5>>config.log
14720   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14721   # would make configure fail if this is the last instruction.
14722   $ac_cs_success || as_fn_exit 1
14723 fi
14724 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14725   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14726 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14727 fi
14728