bc1c70da142971424163afc9c80ed5034677cd89
[com/asn1c.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for asn1c 0.9.29.
4 @%:@
5 @%:@ Report bugs to <vlm@lionet.info>.
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 vlm@lionet.info
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: 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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400 @%:@ must be portable across @S|@(()) 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 @S|@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 LIB@&t@OBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='asn1c'
592 PACKAGE_TARNAME='asn1c'
593 PACKAGE_VERSION='0.9.29'
594 PACKAGE_STRING='asn1c 0.9.29'
595 PACKAGE_BUGREPORT='vlm@lionet.info'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIB@&t@OBJS
638 HAVE_PANDOC_FALSE
639 HAVE_PANDOC_TRUE
640 PANDOC
641 TEST_64BIT_FALSE
642 TEST_64BIT_TRUE
643 ASAN_ENV_FLAGS
644 SKELETONS_CFLAGS
645 TESTSUITE_CFLAGS
646 SANITIZER_CFLAGS
647 LIBFUZZER_CFLAGS
648 ADD_CFLAGS
649 EXPLICIT_M32_FALSE
650 EXPLICIT_M32_TRUE
651 CFLAGS_M32
652 CODE_COVERAGE_RULES
653 CODE_COVERAGE_LDFLAGS
654 CODE_COVERAGE_LIBS
655 CODE_COVERAGE_CXXFLAGS
656 CODE_COVERAGE_CFLAGS
657 CODE_COVERAGE_CPPFLAGS
658 GENHTML
659 LCOV
660 GCOV
661 CODE_COVERAGE_ENABLED
662 CODE_COVERAGE_ENABLED_FALSE
663 CODE_COVERAGE_ENABLED_TRUE
664 CXXCPP
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 DLLTOOL
674 OBJDUMP
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 EGREP
681 GREP
682 SED
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 am__fastdepCXX_FALSE
693 am__fastdepCXX_TRUE
694 CXXDEPMODE
695 ac_ct_CXX
696 CXXFLAGS
697 CXX
698 ac_ct_AR
699 AR
700 LEXLIB
701 LEX_OUTPUT_ROOT
702 LEX
703 YFLAGS
704 YACC
705 LN_S
706 CPP
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 am__nodep
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 runstatedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_dependency_tracking
795 enable_shared
796 enable_static
797 with_pic
798 enable_fast_install
799 with_aix_soname
800 with_gnu_ld
801 with_sysroot
802 enable_libtool_lock
803 enable_ASN_DEBUG
804 with_gcov
805 enable_code_coverage
806 enable_Werror
807 enable_test_Werror
808 enable_test_32bit
809 enable_test_ubsan
810 enable_test_asan
811 enable_test_fuzzer
812 '
813       ac_precious_vars='build_alias
814 host_alias
815 target_alias
816 CC
817 CFLAGS
818 LDFLAGS
819 LIBS
820 CPPFLAGS
821 CPP
822 YACC
823 YFLAGS
824 CXX
825 CXXFLAGS
826 CCC
827 LT_SYS_LIBRARY_PATH
828 CXXCPP'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 runstatedir='${localstatedir}/run'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *=)   ac_optarg= ;;
894   *)    ac_optarg=yes ;;
895   esac
896
897   # Accept the important Cygnus configure options, so we can diagnose typos.
898
899   case $ac_dashdash$ac_option in
900   --)
901     ac_dashdash=yes ;;
902
903   -bindir | --bindir | --bindi | --bind | --bin | --bi)
904     ac_prev=bindir ;;
905   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906     bindir=$ac_optarg ;;
907
908   -build | --build | --buil | --bui | --bu)
909     ac_prev=build_alias ;;
910   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911     build_alias=$ac_optarg ;;
912
913   -cache-file | --cache-file | --cache-fil | --cache-fi \
914   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915     ac_prev=cache_file ;;
916   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918     cache_file=$ac_optarg ;;
919
920   --config-cache | -C)
921     cache_file=config.cache ;;
922
923   -datadir | --datadir | --datadi | --datad)
924     ac_prev=datadir ;;
925   -datadir=* | --datadir=* | --datadi=* | --datad=*)
926     datadir=$ac_optarg ;;
927
928   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929   | --dataroo | --dataro | --datar)
930     ac_prev=datarootdir ;;
931   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933     datarootdir=$ac_optarg ;;
934
935   -disable-* | --disable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=no ;;
950
951   -docdir | --docdir | --docdi | --doc | --do)
952     ac_prev=docdir ;;
953   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954     docdir=$ac_optarg ;;
955
956   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957     ac_prev=dvidir ;;
958   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959     dvidir=$ac_optarg ;;
960
961   -enable-* | --enable-*)
962     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963     # Reject names that are not valid shell variable names.
964     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965       as_fn_error $? "invalid feature name: $ac_useropt"
966     ac_useropt_orig=$ac_useropt
967     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968     case $ac_user_opts in
969       *"
970 "enable_$ac_useropt"
971 "*) ;;
972       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973          ac_unrecognized_sep=', ';;
974     esac
975     eval enable_$ac_useropt=\$ac_optarg ;;
976
977   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979   | --exec | --exe | --ex)
980     ac_prev=exec_prefix ;;
981   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983   | --exec=* | --exe=* | --ex=*)
984     exec_prefix=$ac_optarg ;;
985
986   -gas | --gas | --ga | --g)
987     # Obsolete; use --with-gas.
988     with_gas=yes ;;
989
990   -help | --help | --hel | --he | -h)
991     ac_init_help=long ;;
992   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993     ac_init_help=recursive ;;
994   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995     ac_init_help=short ;;
996
997   -host | --host | --hos | --ho)
998     ac_prev=host_alias ;;
999   -host=* | --host=* | --hos=* | --ho=*)
1000     host_alias=$ac_optarg ;;
1001
1002   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003     ac_prev=htmldir ;;
1004   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005   | --ht=*)
1006     htmldir=$ac_optarg ;;
1007
1008   -includedir | --includedir | --includedi | --included | --include \
1009   | --includ | --inclu | --incl | --inc)
1010     ac_prev=includedir ;;
1011   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012   | --includ=* | --inclu=* | --incl=* | --inc=*)
1013     includedir=$ac_optarg ;;
1014
1015   -infodir | --infodir | --infodi | --infod | --info | --inf)
1016     ac_prev=infodir ;;
1017   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018     infodir=$ac_optarg ;;
1019
1020   -libdir | --libdir | --libdi | --libd)
1021     ac_prev=libdir ;;
1022   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023     libdir=$ac_optarg ;;
1024
1025   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026   | --libexe | --libex | --libe)
1027     ac_prev=libexecdir ;;
1028   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029   | --libexe=* | --libex=* | --libe=*)
1030     libexecdir=$ac_optarg ;;
1031
1032   -localedir | --localedir | --localedi | --localed | --locale)
1033     ac_prev=localedir ;;
1034   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035     localedir=$ac_optarg ;;
1036
1037   -localstatedir | --localstatedir | --localstatedi | --localstated \
1038   | --localstate | --localstat | --localsta | --localst | --locals)
1039     ac_prev=localstatedir ;;
1040   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042     localstatedir=$ac_optarg ;;
1043
1044   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045     ac_prev=mandir ;;
1046   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047     mandir=$ac_optarg ;;
1048
1049   -nfp | --nfp | --nf)
1050     # Obsolete; use --without-fp.
1051     with_fp=no ;;
1052
1053   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054   | --no-cr | --no-c | -n)
1055     no_create=yes ;;
1056
1057   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059     no_recursion=yes ;;
1060
1061   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063   | --oldin | --oldi | --old | --ol | --o)
1064     ac_prev=oldincludedir ;;
1065   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068     oldincludedir=$ac_optarg ;;
1069
1070   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071     ac_prev=prefix ;;
1072   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073     prefix=$ac_optarg ;;
1074
1075   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076   | --program-pre | --program-pr | --program-p)
1077     ac_prev=program_prefix ;;
1078   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080     program_prefix=$ac_optarg ;;
1081
1082   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083   | --program-suf | --program-su | --program-s)
1084     ac_prev=program_suffix ;;
1085   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087     program_suffix=$ac_optarg ;;
1088
1089   -program-transform-name | --program-transform-name \
1090   | --program-transform-nam | --program-transform-na \
1091   | --program-transform-n | --program-transform- \
1092   | --program-transform | --program-transfor \
1093   | --program-transfo | --program-transf \
1094   | --program-trans | --program-tran \
1095   | --progr-tra | --program-tr | --program-t)
1096     ac_prev=program_transform_name ;;
1097   -program-transform-name=* | --program-transform-name=* \
1098   | --program-transform-nam=* | --program-transform-na=* \
1099   | --program-transform-n=* | --program-transform-=* \
1100   | --program-transform=* | --program-transfor=* \
1101   | --program-transfo=* | --program-transf=* \
1102   | --program-trans=* | --program-tran=* \
1103   | --progr-tra=* | --program-tr=* | --program-t=*)
1104     program_transform_name=$ac_optarg ;;
1105
1106   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107     ac_prev=pdfdir ;;
1108   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109     pdfdir=$ac_optarg ;;
1110
1111   -psdir | --psdir | --psdi | --psd | --ps)
1112     ac_prev=psdir ;;
1113   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114     psdir=$ac_optarg ;;
1115
1116   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117   | -silent | --silent | --silen | --sile | --sil)
1118     silent=yes ;;
1119
1120   -runstatedir | --runstatedir | --runstatedi | --runstated \
1121   | --runstate | --runstat | --runsta | --runst | --runs \
1122   | --run | --ru | --r)
1123     ac_prev=runstatedir ;;
1124   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1125   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1126   | --run=* | --ru=* | --r=*)
1127     runstatedir=$ac_optarg ;;
1128
1129   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130     ac_prev=sbindir ;;
1131   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132   | --sbi=* | --sb=*)
1133     sbindir=$ac_optarg ;;
1134
1135   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137   | --sharedst | --shareds | --shared | --share | --shar \
1138   | --sha | --sh)
1139     ac_prev=sharedstatedir ;;
1140   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143   | --sha=* | --sh=*)
1144     sharedstatedir=$ac_optarg ;;
1145
1146   -site | --site | --sit)
1147     ac_prev=site ;;
1148   -site=* | --site=* | --sit=*)
1149     site=$ac_optarg ;;
1150
1151   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152     ac_prev=srcdir ;;
1153   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154     srcdir=$ac_optarg ;;
1155
1156   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157   | --syscon | --sysco | --sysc | --sys | --sy)
1158     ac_prev=sysconfdir ;;
1159   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161     sysconfdir=$ac_optarg ;;
1162
1163   -target | --target | --targe | --targ | --tar | --ta | --t)
1164     ac_prev=target_alias ;;
1165   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166     target_alias=$ac_optarg ;;
1167
1168   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169     verbose=yes ;;
1170
1171   -version | --version | --versio | --versi | --vers | -V)
1172     ac_init_version=: ;;
1173
1174   -with-* | --with-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error $? "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=\$ac_optarg ;;
1189
1190   -without-* | --without-*)
1191     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194       as_fn_error $? "invalid package name: $ac_useropt"
1195     ac_useropt_orig=$ac_useropt
1196     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197     case $ac_user_opts in
1198       *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202          ac_unrecognized_sep=', ';;
1203     esac
1204     eval with_$ac_useropt=no ;;
1205
1206   --x)
1207     # Obsolete; use --with-x.
1208     with_x=yes ;;
1209
1210   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211   | --x-incl | --x-inc | --x-in | --x-i)
1212     ac_prev=x_includes ;;
1213   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215     x_includes=$ac_optarg ;;
1216
1217   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219     ac_prev=x_libraries ;;
1220   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222     x_libraries=$ac_optarg ;;
1223
1224   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1226     ;;
1227
1228   *=*)
1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230     # Reject names that are not valid shell variable names.
1231     case $ac_envvar in #(
1232       '' | [0-9]* | *[!_$as_cr_alnum]* )
1233       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234     esac
1235     eval $ac_envvar=\$ac_optarg
1236     export $ac_envvar ;;
1237
1238   *)
1239     # FIXME: should be removed in autoconf 3.0.
1240     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244     ;;
1245
1246   esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251   as_fn_error $? "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255   case $enable_option_checking in
1256     no) ;;
1257     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259   esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir runstatedir
1267 do
1268   eval ac_val=\$$ac_var
1269   # Remove trailing slashes.
1270   case $ac_val in
1271     */ )
1272       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273       eval $ac_var=\$ac_val;;
1274   esac
1275   # Be sure to have absolute directory names.
1276   case $ac_val in
1277     [\\/$]* | ?:[\\/]* )  continue;;
1278     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279   esac
1280   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292   if test "x$build_alias" = x; then
1293     cross_compiling=maybe
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310   as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315   ac_srcdir_defaulted=yes
1316   # Try the directory containing this script, then the parent directory.
1317   ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319          X"$as_myself" : 'X\(//\)[^/]' \| \
1320          X"$as_myself" : 'X\(//\)$' \| \
1321          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)[^/].*/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\).*/{
1336             s//\1/
1337             q
1338           }
1339           s/.*/./; q'`
1340   srcdir=$ac_confdir
1341   if test ! -r "$srcdir/$ac_unique_file"; then
1342     srcdir=..
1343   fi
1344 else
1345   ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures asn1c 0.9.29 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking ...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           @<:@@S|@ac_default_prefix@:>@
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           @<:@PREFIX@:>@
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR            user executables [EPREFIX/bin]
1414   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR        program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1419   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1420   --libdir=DIR            object code libraries [EPREFIX/lib]
1421   --includedir=DIR        C header files [PREFIX/include]
1422   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1423   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1424   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1425   --infodir=DIR           info documentation [DATAROOTDIR/info]
1426   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1427   --mandir=DIR            man documentation [DATAROOTDIR/man]
1428   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/asn1c@:>@
1429   --htmldir=DIR           html documentation [DOCDIR]
1430   --dvidir=DIR            dvi documentation [DOCDIR]
1431   --pdfdir=DIR            pdf documentation [DOCDIR]
1432   --psdir=DIR             ps documentation [DOCDIR]
1433 _ACEOF
1434
1435   cat <<\_ACEOF
1436
1437 Program names:
1438   --program-prefix=PREFIX            prepend PREFIX to installed program names
1439   --program-suffix=SUFFIX            append SUFFIX to installed program names
1440   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1441
1442 System types:
1443   --build=BUILD     configure for building on BUILD [guessed]
1444   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449   case $ac_init_help in
1450      short | recursive ) echo "Configuration of asn1c 0.9.29:";;
1451    esac
1452   cat <<\_ACEOF
1453
1454 Optional Features:
1455   --disable-option-checking  ignore unrecognized --enable/--with options
1456   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1457   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1458   --enable-silent-rules   less verbose build output (undo: "make V=1")
1459   --disable-silent-rules  verbose build output (undo: "make V=0")
1460   --enable-dependency-tracking 
1461                           do not reject slow dependency extractors
1462   --disable-dependency-tracking 
1463                           speeds up one-time build
1464   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1465   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1466   --enable-fast-install@<:@=PKGS@:>@ 
1467                           optimize for fast installation @<:@default=yes@:>@
1468   --disable-libtool-lock  avoid locking (might break parallel builds)
1469   --enable-ASN_DEBUG      produce debug log during `make check` testing
1470   --enable-code-coverage  enable code coverage statistics collection
1471   --enable-Werror         abort compilation after any C compiler warning
1472   --enable-test-Werror    abort compiling tests after any C compiler warning
1473   --enable-test-32bit     enable tests for 32-bit compatibility
1474   --disable-test-ubsan    disable Undefined Behavior Sanitizer for tests
1475   --disable-test-asan     disable Address Sanitizer for tests
1476   --enable-test-fuzzer    enable LLVM LibFuzzer for randomized testing
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
1482                           both@:>@
1483   --with-aix-soname=aix|svr4|both 
1484                           shared library versioning (aka "SONAME") variant to
1485                           provide on AIX, @<:@default=aix@:>@.
1486   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1487   --with-sysroot@<:@=DIR@:>@    Search for dependent libraries within DIR (or the
1488                           compiler's sysroot if not specified).
1489   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1490
1491 Some influential environment variables:
1492   CC          C compiler command
1493   CFLAGS      C compiler flags
1494   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1495               nonstandard directory <lib dir>
1496   LIBS        libraries to pass to the linker, e.g. -l<library>
1497   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498               you have headers in a nonstandard directory <include dir>
1499   CPP         C preprocessor
1500   YACC        The `Yet Another Compiler Compiler' implementation to use.
1501               Defaults to the first program found out of: `bison -y', `byacc',
1502               `yacc'.
1503   YFLAGS      The list of arguments that will be passed by default to @S|@YACC.
1504               This script will default YFLAGS to the empty string to avoid a
1505               default value of `-d' given by some make applications.
1506   CXX         C++ compiler command
1507   CXXFLAGS    C++ compiler flags
1508   LT_SYS_LIBRARY_PATH 
1509               User-defined run-time library search path.
1510   CXXCPP      C++ preprocessor
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <vlm@lionet.info>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521   # If there are subdirs, report their specific --help.
1522   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523     test -d "$ac_dir" ||
1524       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525       continue
1526     ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 asn1c configure 0.9.29
1579 generated by GNU Autoconf 2.69
1580
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585   exit
1586 fi
1587
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1591
1592 @%:@ ac_fn_c_try_compile LINENO
1593 @%:@ --------------------------
1594 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1596 {
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   rm -f conftest.$ac_objext
1599   if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602   *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606   (eval "$ac_compile") 2>conftest.err
1607   ac_status=$?
1608   if test -s conftest.err; then
1609     grep -v '^ *+' conftest.err >conftest.er1
1610     cat conftest.er1 >&5
1611     mv -f conftest.er1 conftest.err
1612   fi
1613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614   test $ac_status = 0; } && {
1615          test -z "$ac_c_werror_flag" ||
1616          test ! -s conftest.err
1617        } && test -s conftest.$ac_objext; then :
1618   ac_retval=0
1619 else
1620   $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623         ac_retval=1
1624 fi
1625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626   as_fn_set_status $ac_retval
1627
1628 } @%:@ ac_fn_c_try_compile
1629
1630 @%:@ ac_fn_c_try_cpp LINENO
1631 @%:@ ----------------------
1632 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_cpp ()
1634 {
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644   ac_status=$?
1645   if test -s conftest.err; then
1646     grep -v '^ *+' conftest.err >conftest.er1
1647     cat conftest.er1 >&5
1648     mv -f conftest.er1 conftest.err
1649   fi
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; } > conftest.i && {
1652          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653          test ! -s conftest.err
1654        }; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660     ac_retval=1
1661 fi
1662   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663   as_fn_set_status $ac_retval
1664
1665 } @%:@ ac_fn_c_try_cpp
1666
1667 @%:@ ac_fn_c_try_link LINENO
1668 @%:@ -----------------------
1669 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   rm -f conftest.$ac_objext conftest$ac_exeext
1674   if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_link") 2>conftest.err
1682   ac_status=$?
1683   if test -s conftest.err; then
1684     grep -v '^ *+' conftest.err >conftest.er1
1685     cat conftest.er1 >&5
1686     mv -f conftest.er1 conftest.err
1687   fi
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } && {
1690          test -z "$ac_c_werror_flag" ||
1691          test ! -s conftest.err
1692        } && test -s conftest$ac_exeext && {
1693          test "$cross_compiling" = yes ||
1694          test -x conftest$ac_exeext
1695        }; then :
1696   ac_retval=0
1697 else
1698   $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701         ac_retval=1
1702 fi
1703   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705   # interfere with the next link command; also delete a directory that is
1706   # left behind by Apple's compiler.  We do this before executing the actions.
1707   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709   as_fn_set_status $ac_retval
1710
1711 } @%:@ ac_fn_c_try_link
1712
1713 @%:@ ac_fn_cxx_try_compile LINENO
1714 @%:@ ----------------------------
1715 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1716 ac_fn_cxx_try_compile ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   rm -f conftest.$ac_objext
1720   if { { ac_try="$ac_compile"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_compile") 2>conftest.err
1728   ac_status=$?
1729   if test -s conftest.err; then
1730     grep -v '^ *+' conftest.err >conftest.er1
1731     cat conftest.er1 >&5
1732     mv -f conftest.er1 conftest.err
1733   fi
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && {
1736          test -z "$ac_cxx_werror_flag" ||
1737          test ! -s conftest.err
1738        } && test -s conftest.$ac_objext; then :
1739   ac_retval=0
1740 else
1741   $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744         ac_retval=1
1745 fi
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } @%:@ ac_fn_cxx_try_compile
1750
1751 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 @%:@ -------------------------------------------------------
1753 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1754 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 $4
1766 @%:@include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769   eval "$3=yes"
1770 else
1771   eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } @%:@ ac_fn_c_check_header_compile
1781
1782 @%:@ ac_fn_c_try_run LINENO
1783 @%:@ ----------------------
1784 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1785 @%:@ that executables *can* be run.
1786 ac_fn_c_try_run ()
1787 {
1788   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789   if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792   *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796   (eval "$ac_link") 2>&5
1797   ac_status=$?
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800   { { case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_try") 2>&5
1807   ac_status=$?
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; }; }; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: program exited with status $ac_status" >&5
1813        $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816        ac_retval=$ac_status
1817 fi
1818   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820   as_fn_set_status $ac_retval
1821
1822 } @%:@ ac_fn_c_try_run
1823
1824 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1825 @%:@ ----------------------------------
1826 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833   $as_echo_n "(cached) " >&6
1834 else
1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1839 #define $2 innocuous_$2
1840
1841 /* System header to define __stub macros and hopefully few prototypes,
1842     which can conflict with char $2 (); below.
1843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844     <limits.h> exists even on freestanding compilers.  */
1845
1846 #ifdef __STDC__
1847 # include <limits.h>
1848 #else
1849 # include <assert.h>
1850 #endif
1851
1852 #undef $2
1853
1854 /* Override any GCC internal prototype to avoid an error.
1855    Use char because int might match the return type of a GCC
1856    builtin and then its argument prototype would still apply.  */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862     to always fail with ENOSYS.  Some functions are actually named
1863     something starting with __ and the normal name is an alias.  */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1867
1868 int
1869 main ()
1870 {
1871 return $2 ();
1872   ;
1873   return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"; then :
1877   eval "$3=yes"
1878 else
1879   eval "$3=no"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext \
1882     conftest$ac_exeext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } @%:@ ac_fn_c_check_func
1890
1891 @%:@ ac_fn_cxx_try_cpp LINENO
1892 @%:@ ------------------------
1893 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_cpp ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900   *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905   ac_status=$?
1906   if test -s conftest.err; then
1907     grep -v '^ *+' conftest.err >conftest.er1
1908     cat conftest.er1 >&5
1909     mv -f conftest.er1 conftest.err
1910   fi
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } > conftest.i && {
1913          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1914          test ! -s conftest.err
1915        }; then :
1916   ac_retval=0
1917 else
1918   $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921     ac_retval=1
1922 fi
1923   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924   as_fn_set_status $ac_retval
1925
1926 } @%:@ ac_fn_cxx_try_cpp
1927
1928 @%:@ ac_fn_cxx_try_link LINENO
1929 @%:@ -------------------------
1930 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1931 ac_fn_cxx_try_link ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   rm -f conftest.$ac_objext conftest$ac_exeext
1935   if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_link") 2>conftest.err
1943   ac_status=$?
1944   if test -s conftest.err; then
1945     grep -v '^ *+' conftest.err >conftest.er1
1946     cat conftest.er1 >&5
1947     mv -f conftest.er1 conftest.err
1948   fi
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } && {
1951          test -z "$ac_cxx_werror_flag" ||
1952          test ! -s conftest.err
1953        } && test -s conftest$ac_exeext && {
1954          test "$cross_compiling" = yes ||
1955          test -x conftest$ac_exeext
1956        }; then :
1957   ac_retval=0
1958 else
1959   $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962         ac_retval=1
1963 fi
1964   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966   # interfere with the next link command; also delete a directory that is
1967   # left behind by Apple's compiler.  We do this before executing the actions.
1968   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970   as_fn_set_status $ac_retval
1971
1972 } @%:@ ac_fn_cxx_try_link
1973
1974 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1975 @%:@ -------------------------------------------------------
1976 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1977 @%:@ the include files in INCLUDES and setting the cache variable VAR
1978 @%:@ accordingly.
1979 ac_fn_c_check_header_mongrel ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   if eval \${$3+:} false; then :
1983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986   $as_echo_n "(cached) " >&6
1987 fi
1988 eval ac_res=\$$3
1989                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 else
1992   # Is the header compilable?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1994 $as_echo_n "checking $2 usability... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h.  */
1997 $4
1998 @%:@include <$2>
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001   ac_header_compiler=yes
2002 else
2003   ac_header_compiler=no
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2007 $as_echo "$ac_header_compiler" >&6; }
2008
2009 # Is the header present?
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2011 $as_echo_n "checking $2 presence... " >&6; }
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h.  */
2014 @%:@include <$2>
2015 _ACEOF
2016 if ac_fn_c_try_cpp "$LINENO"; then :
2017   ac_header_preproc=yes
2018 else
2019   ac_header_preproc=no
2020 fi
2021 rm -f conftest.err conftest.i conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2023 $as_echo "$ac_header_preproc" >&6; }
2024
2025 # So?  What about this header?
2026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2027   yes:no: )
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2029 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032     ;;
2033   no:yes:* )
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2035 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2037 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2039 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2041 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2042     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 ( $as_echo "## ------------------------------ ##
2045 ## Report this to vlm@lionet.info ##
2046 ## ------------------------------ ##"
2047      ) | sed "s/^/$as_me: WARNING:     /" >&2
2048     ;;
2049 esac
2050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053   $as_echo_n "(cached) " >&6
2054 else
2055   eval "$3=\$ac_header_compiler"
2056 fi
2057 eval ac_res=\$$3
2058                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 fi
2061   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } @%:@ ac_fn_c_check_header_mongrel
2064
2065 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2066 @%:@ -------------------------------------------
2067 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2068 @%:@ variable VAR accordingly.
2069 ac_fn_c_check_type ()
2070 {
2071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075   $as_echo_n "(cached) " >&6
2076 else
2077   eval "$3=no"
2078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 int
2082 main ()
2083 {
2084 if (sizeof ($2))
2085          return 0;
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 if (sizeof (($2)))
2098             return 0;
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104   
2105 else
2106   eval "$3=yes"
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 eval ac_res=\$$3
2113                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117 } @%:@ ac_fn_c_check_type
2118
2119 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2120 @%:@ --------------------------------------------
2121 @%:@ Tries to find the compile-time value of EXPR in a program that includes
2122 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2123 @%:@ computed
2124 ac_fn_c_compute_int ()
2125 {
2126   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127   if test "$cross_compiling" = yes; then
2128     # Depending upon the size, compute the lo and hi bounds.
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h.  */
2131 $4
2132 int
2133 main ()
2134 {
2135 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2136 test_array @<:@0@:>@ = 0;
2137 return test_array @<:@0@:>@;
2138
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144   ac_lo=0 ac_mid=0
2145   while :; do
2146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h.  */
2148 $4
2149 int
2150 main ()
2151 {
2152 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2153 test_array @<:@0@:>@ = 0;
2154 return test_array @<:@0@:>@;
2155
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161   ac_hi=$ac_mid; break
2162 else
2163   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2164                         if test $ac_lo -le $ac_mid; then
2165                           ac_lo= ac_hi=
2166                           break
2167                         fi
2168                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171   done
2172 else
2173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 int
2177 main ()
2178 {
2179 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2180 test_array @<:@0@:>@ = 0;
2181 return test_array @<:@0@:>@;
2182
2183   ;
2184   return 0;
2185 }
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188   ac_hi=-1 ac_mid=-1
2189   while :; do
2190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h.  */
2192 $4
2193 int
2194 main ()
2195 {
2196 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2197 test_array @<:@0@:>@ = 0;
2198 return test_array @<:@0@:>@;
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205   ac_lo=$ac_mid; break
2206 else
2207   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2208                         if test $ac_mid -le $ac_hi; then
2209                           ac_lo= ac_hi=
2210                           break
2211                         fi
2212                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2213 fi
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215   done
2216 else
2217   ac_lo= ac_hi=
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 # Binary search between lo and hi bounds.
2223 while test "x$ac_lo" != "x$ac_hi"; do
2224   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h.  */
2227 $4
2228 int
2229 main ()
2230 {
2231 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2232 test_array @<:@0@:>@ = 0;
2233 return test_array @<:@0@:>@;
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240   ac_hi=$ac_mid
2241 else
2242   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 done
2246 case $ac_lo in @%:@((
2247 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2248 '') ac_retval=1 ;;
2249 esac
2250   else
2251     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 static long int longval () { return $2; }
2255 static unsigned long int ulongval () { return $2; }
2256 @%:@include <stdio.h>
2257 @%:@include <stdlib.h>
2258 int
2259 main ()
2260 {
2261
2262   FILE *f = fopen ("conftest.val", "w");
2263   if (! f)
2264     return 1;
2265   if (($2) < 0)
2266     {
2267       long int i = longval ();
2268       if (i != ($2))
2269         return 1;
2270       fprintf (f, "%ld", i);
2271     }
2272   else
2273     {
2274       unsigned long int i = ulongval ();
2275       if (i != ($2))
2276         return 1;
2277       fprintf (f, "%lu", i);
2278     }
2279   /* Do not output a trailing newline, as this causes \r\n confusion
2280      on some platforms.  */
2281   return ferror (f) || fclose (f) != 0;
2282
2283   ;
2284   return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_run "$LINENO"; then :
2288   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2289 else
2290   ac_retval=1
2291 fi
2292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2293   conftest.$ac_objext conftest.beam conftest.$ac_ext
2294 rm -f conftest.val
2295
2296   fi
2297   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298   as_fn_set_status $ac_retval
2299
2300 } @%:@ ac_fn_c_compute_int
2301
2302 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2303 @%:@ ---------------------------------------------
2304 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2305 @%:@ accordingly.
2306 ac_fn_c_check_decl ()
2307 {
2308   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309   as_decl_name=`echo $2|sed 's/ *(.*//'`
2310   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2312 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2313 if eval \${$3+:} false; then :
2314   $as_echo_n "(cached) " >&6
2315 else
2316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h.  */
2318 $4
2319 int
2320 main ()
2321 {
2322 @%:@ifndef $as_decl_name
2323 @%:@ifdef __cplusplus
2324   (void) $as_decl_use;
2325 @%:@else
2326   (void) $as_decl_name;
2327 @%:@endif
2328 @%:@endif
2329
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335   eval "$3=yes"
2336 else
2337   eval "$3=no"
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 eval ac_res=\$$3
2342                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345
2346 } @%:@ ac_fn_c_check_decl
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2350
2351 It was created by asn1c $as_me 0.9.29, which was
2352 generated by GNU Autoconf 2.69.  Invocation command line was
2353
2354   $ $0 $@
2355
2356 _ACEOF
2357 exec 5>>config.log
2358 {
2359 cat <<_ASUNAME
2360 ## --------- ##
2361 ## Platform. ##
2362 ## --------- ##
2363
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369
2370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2372
2373 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2374 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2377 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2378 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2379 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2380
2381 _ASUNAME
2382
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386   IFS=$as_save_IFS
2387   test -z "$as_dir" && as_dir=.
2388     $as_echo "PATH: $as_dir"
2389   done
2390 IFS=$as_save_IFS
2391
2392 } >&5
2393
2394 cat >&5 <<_ACEOF
2395
2396
2397 ## ----------- ##
2398 ## Core tests. ##
2399 ## ----------- ##
2400
2401 _ACEOF
2402
2403
2404 # Keep a trace of the command line.
2405 # Strip out --no-create and --no-recursion so they do not pile up.
2406 # Strip out --silent because we don't want to record it for future runs.
2407 # Also quote any args containing shell meta-characters.
2408 # Make two passes to allow for proper duplicate-argument suppression.
2409 ac_configure_args=
2410 ac_configure_args0=
2411 ac_configure_args1=
2412 ac_must_keep_next=false
2413 for ac_pass in 1 2
2414 do
2415   for ac_arg
2416   do
2417     case $ac_arg in
2418     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420     | -silent | --silent | --silen | --sile | --sil)
2421       continue ;;
2422     *\'*)
2423       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424     esac
2425     case $ac_pass in
2426     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2427     2)
2428       as_fn_append ac_configure_args1 " '$ac_arg'"
2429       if test $ac_must_keep_next = true; then
2430         ac_must_keep_next=false # Got value, back to normal.
2431       else
2432         case $ac_arg in
2433           *=* | --config-cache | -C | -disable-* | --disable-* \
2434           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436           | -with-* | --with-* | -without-* | --without-* | --x)
2437             case "$ac_configure_args0 " in
2438               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2439             esac
2440             ;;
2441           -* ) ac_must_keep_next=true ;;
2442         esac
2443       fi
2444       as_fn_append ac_configure_args " '$ac_arg'"
2445       ;;
2446     esac
2447   done
2448 done
2449 { ac_configure_args0=; unset ac_configure_args0;}
2450 { ac_configure_args1=; unset ac_configure_args1;}
2451
2452 # When interrupted or exit'd, cleanup temporary files, and complete
2453 # config.log.  We remove comments because anyway the quotes in there
2454 # would cause problems or look ugly.
2455 # WARNING: Use '\'' to represent an apostrophe within the trap.
2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457 trap 'exit_status=$?
2458   # Save into config.log some information that might help in debugging.
2459   {
2460     echo
2461
2462     $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2465     echo
2466     # The following way of writing the cache mishandles newlines in values,
2467 (
2468   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469     eval ac_val=\$$ac_var
2470     case $ac_val in #(
2471     *${as_nl}*)
2472       case $ac_var in #(
2473       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2475       esac
2476       case $ac_var in #(
2477       _ | IFS | as_nl) ;; #(
2478       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479       *) { eval $ac_var=; unset $ac_var;} ;;
2480       esac ;;
2481     esac
2482   done
2483   (set) 2>&1 |
2484     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485     *${as_nl}ac_space=\ *)
2486       sed -n \
2487         "s/'\''/'\''\\\\'\'''\''/g;
2488           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489       ;; #(
2490     *)
2491       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492       ;;
2493     esac |
2494     sort
2495 )
2496     echo
2497
2498     $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2501     echo
2502     for ac_var in $ac_subst_vars
2503     do
2504       eval ac_val=\$$ac_var
2505       case $ac_val in
2506       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507       esac
2508       $as_echo "$ac_var='\''$ac_val'\''"
2509     done | sort
2510     echo
2511
2512     if test -n "$ac_subst_files"; then
2513       $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2516       echo
2517       for ac_var in $ac_subst_files
2518       do
2519         eval ac_val=\$$ac_var
2520         case $ac_val in
2521         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522         esac
2523         $as_echo "$ac_var='\''$ac_val'\''"
2524       done | sort
2525       echo
2526     fi
2527
2528     if test -s confdefs.h; then
2529       $as_echo "## ----------- ##
2530 ## confdefs.h. ##
2531 ## ----------- ##"
2532       echo
2533       cat confdefs.h
2534       echo
2535     fi
2536     test "$ac_signal" != 0 &&
2537       $as_echo "$as_me: caught signal $ac_signal"
2538     $as_echo "$as_me: exit $exit_status"
2539   } >&5
2540   rm -f core *.core core.conftest.* &&
2541     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2542     exit $exit_status
2543 ' 0
2544 for ac_signal in 1 2 13 15; do
2545   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 done
2547 ac_signal=0
2548
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2551
2552 $as_echo "/* confdefs.h */" > confdefs.h
2553
2554 # Predefined preprocessor variables.
2555
2556 cat >>confdefs.h <<_ACEOF
2557 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574 _ACEOF
2575
2576 cat >>confdefs.h <<_ACEOF
2577 @%:@define PACKAGE_URL "$PACKAGE_URL"
2578 _ACEOF
2579
2580
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2583 ac_site_file1=NONE
2584 ac_site_file2=NONE
2585 if test -n "$CONFIG_SITE"; then
2586   # We do not want a PATH search for config.site.
2587   case $CONFIG_SITE in @%:@((
2588     -*)  ac_site_file1=./$CONFIG_SITE;;
2589     */*) ac_site_file1=$CONFIG_SITE;;
2590     *)   ac_site_file1=./$CONFIG_SITE;;
2591   esac
2592 elif test "x$prefix" != xNONE; then
2593   ac_site_file1=$prefix/share/config.site
2594   ac_site_file2=$prefix/etc/config.site
2595 else
2596   ac_site_file1=$ac_default_prefix/share/config.site
2597   ac_site_file2=$ac_default_prefix/etc/config.site
2598 fi
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2600 do
2601   test "x$ac_site_file" = xNONE && continue
2602   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605     sed 's/^/| /' "$ac_site_file" >&5
2606     . "$ac_site_file" \
2607       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5; }
2611   fi
2612 done
2613
2614 if test -r "$cache_file"; then
2615   # Some versions of bash will fail to source /dev/null (special files
2616   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2617   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2620     case $cache_file in
2621       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622       *)                      . "./$cache_file";;
2623     esac
2624   fi
2625 else
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2628   >$cache_file
2629 fi
2630
2631 # Check that the precious variables saved in the cache have kept the same
2632 # value.
2633 ac_cache_corrupted=false
2634 for ac_var in $ac_precious_vars; do
2635   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636   eval ac_new_set=\$ac_env_${ac_var}_set
2637   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638   eval ac_new_val=\$ac_env_${ac_var}_value
2639   case $ac_old_set,$ac_new_set in
2640     set,)
2641       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643       ac_cache_corrupted=: ;;
2644     ,set)
2645       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647       ac_cache_corrupted=: ;;
2648     ,);;
2649     *)
2650       if test "x$ac_old_val" != "x$ac_new_val"; then
2651         # differences in whitespace do not lead to failure.
2652         ac_old_val_w=`echo x $ac_old_val`
2653         ac_new_val_w=`echo x $ac_new_val`
2654         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657           ac_cache_corrupted=:
2658         else
2659           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661           eval $ac_var=\$ac_old_val
2662         fi
2663         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2664 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2665         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2666 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2667       fi;;
2668   esac
2669   # Pass precious variables to config.status.
2670   if test "$ac_new_set" = set; then
2671     case $ac_new_val in
2672     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673     *) ac_arg=$ac_var=$ac_new_val ;;
2674     esac
2675     case " $ac_configure_args " in
2676       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2677       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2678     esac
2679   fi
2680 done
2681 if $ac_cache_corrupted; then
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2687 fi
2688 ## -------------------- ##
2689 ## Main body of script. ##
2690 ## -------------------- ##
2691
2692 ac_ext=c
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697
2698
2699
2700 ac_aux_dir=
2701 for ac_dir in config "$srcdir"/config; do
2702   if test -f "$ac_dir/install-sh"; then
2703     ac_aux_dir=$ac_dir
2704     ac_install_sh="$ac_aux_dir/install-sh -c"
2705     break
2706   elif test -f "$ac_dir/install.sh"; then
2707     ac_aux_dir=$ac_dir
2708     ac_install_sh="$ac_aux_dir/install.sh -c"
2709     break
2710   elif test -f "$ac_dir/shtool"; then
2711     ac_aux_dir=$ac_dir
2712     ac_install_sh="$ac_aux_dir/shtool install -c"
2713     break
2714   fi
2715 done
2716 if test -z "$ac_aux_dir"; then
2717   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2718 fi
2719
2720 # These three variables are undocumented and unsupported,
2721 # and are intended to be withdrawn in a future Autoconf release.
2722 # They can cause serious problems if a builder's source tree is in a directory
2723 # whose full name contains unusual characters.
2724 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2725 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2726 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2727
2728
2729 ac_config_headers="$ac_config_headers config.h"
2730
2731 am__api_version='1.15'
2732
2733 # Find a good install program.  We prefer a C program (faster),
2734 # so one script is as good as another.  But avoid the broken or
2735 # incompatible versions:
2736 # SysV /etc/install, /usr/sbin/install
2737 # SunOS /usr/etc/install
2738 # IRIX /sbin/install
2739 # AIX /bin/install
2740 # AmigaOS /C/install, which installs bootblocks on floppy discs
2741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2744 # OS/2's system install, which has a completely different semantic
2745 # ./install, which can be erroneously created by make from ./install.sh.
2746 # Reject install programs that cannot install multiple files.
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2748 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2749 if test -z "$INSTALL"; then
2750 if ${ac_cv_path_install+:} false; then :
2751   $as_echo_n "(cached) " >&6
2752 else
2753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756   IFS=$as_save_IFS
2757   test -z "$as_dir" && as_dir=.
2758     # Account for people who put trailing slashes in PATH elements.
2759 case $as_dir/ in @%:@((
2760   ./ | .// | /[cC]/* | \
2761   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2762   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2763   /usr/ucb/* ) ;;
2764   *)
2765     # OSF1 and SCO ODT 3.0 have their own names for install.
2766     # Don't use installbsd from OSF since it installs stuff as root
2767     # by default.
2768     for ac_prog in ginstall scoinst install; do
2769       for ac_exec_ext in '' $ac_executable_extensions; do
2770         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2771           if test $ac_prog = install &&
2772             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2773             # AIX install.  It has an incompatible calling convention.
2774             :
2775           elif test $ac_prog = install &&
2776             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777             # program-specific install script used by HP pwplus--don't use.
2778             :
2779           else
2780             rm -rf conftest.one conftest.two conftest.dir
2781             echo one > conftest.one
2782             echo two > conftest.two
2783             mkdir conftest.dir
2784             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2785               test -s conftest.one && test -s conftest.two &&
2786               test -s conftest.dir/conftest.one &&
2787               test -s conftest.dir/conftest.two
2788             then
2789               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2790               break 3
2791             fi
2792           fi
2793         fi
2794       done
2795     done
2796     ;;
2797 esac
2798
2799   done
2800 IFS=$as_save_IFS
2801
2802 rm -rf conftest.one conftest.two conftest.dir
2803
2804 fi
2805   if test "${ac_cv_path_install+set}" = set; then
2806     INSTALL=$ac_cv_path_install
2807   else
2808     # As a last resort, use the slow shell script.  Don't cache a
2809     # value for INSTALL within a source directory, because that will
2810     # break other packages using the cache if that directory is
2811     # removed, or if the value is a relative name.
2812     INSTALL=$ac_install_sh
2813   fi
2814 fi
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2816 $as_echo "$INSTALL" >&6; }
2817
2818 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2819 # It thinks the first close brace ends the variable substitution.
2820 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2821
2822 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2823
2824 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2827 $as_echo_n "checking whether build environment is sane... " >&6; }
2828 # Reject unsafe characters in $srcdir or the absolute working directory
2829 # name.  Accept space and tab only in the latter.
2830 am_lf='
2831 '
2832 case `pwd` in
2833   *[\\\"\#\$\&\'\`$am_lf]*)
2834     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2835 esac
2836 case $srcdir in
2837   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2838     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2839 esac
2840
2841 # Do 'set' in a subshell so we don't clobber the current shell's
2842 # arguments.  Must try -L first in case configure is actually a
2843 # symlink; some systems play weird games with the mod time of symlinks
2844 # (eg FreeBSD returns the mod time of the symlink's containing
2845 # directory).
2846 if (
2847    am_has_slept=no
2848    for am_try in 1 2; do
2849      echo "timestamp, slept: $am_has_slept" > conftest.file
2850      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2851      if test "$*" = "X"; then
2852         # -L didn't work.
2853         set X `ls -t "$srcdir/configure" conftest.file`
2854      fi
2855      if test "$*" != "X $srcdir/configure conftest.file" \
2856         && test "$*" != "X conftest.file $srcdir/configure"; then
2857
2858         # If neither matched, then we have a broken ls.  This can happen
2859         # if, for instance, CONFIG_SHELL is bash and it inherits a
2860         # broken ls alias from the environment.  This has actually
2861         # happened.  Such a system could not be considered "sane".
2862         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2863   alias in your environment" "$LINENO" 5
2864      fi
2865      if test "$2" = conftest.file || test $am_try -eq 2; then
2866        break
2867      fi
2868      # Just in case.
2869      sleep 1
2870      am_has_slept=yes
2871    done
2872    test "$2" = conftest.file
2873    )
2874 then
2875    # Ok.
2876    :
2877 else
2878    as_fn_error $? "newly created file is older than distributed files!
2879 Check your system clock" "$LINENO" 5
2880 fi
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882 $as_echo "yes" >&6; }
2883 # If we didn't sleep, we still need to ensure time stamps of config.status and
2884 # generated files are strictly newer.
2885 am_sleep_pid=
2886 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2887   ( sleep 1 ) &
2888   am_sleep_pid=$!
2889 fi
2890
2891 rm -f conftest.file
2892
2893 test "$program_prefix" != NONE &&
2894   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2895 # Use a double $ so make ignores it.
2896 test "$program_suffix" != NONE &&
2897   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2898 # Double any \ or $.
2899 # By default was `s,x,x', remove it if useless.
2900 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2901 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2902
2903 # Expand $ac_aux_dir to an absolute path.
2904 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2905
2906 if test x"${MISSING+set}" != xset; then
2907   case $am_aux_dir in
2908   *\ * | *\     *)
2909     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2910   *)
2911     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2912   esac
2913 fi
2914 # Use eval to expand $SHELL
2915 if eval "$MISSING --is-lightweight"; then
2916   am_missing_run="$MISSING "
2917 else
2918   am_missing_run=
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2920 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2921 fi
2922
2923 if test x"${install_sh+set}" != xset; then
2924   case $am_aux_dir in
2925   *\ * | *\     *)
2926     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2927   *)
2928     install_sh="\${SHELL} $am_aux_dir/install-sh"
2929   esac
2930 fi
2931
2932 # Installed binaries are usually stripped using 'strip' when the user
2933 # run "make install-strip".  However 'strip' might not be the right
2934 # tool to use in cross-compilation environments, therefore Automake
2935 # will honor the 'STRIP' environment variable to overrule this program.
2936 if test "$cross_compiling" != no; then
2937   if test -n "$ac_tool_prefix"; then
2938   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}strip; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_STRIP+:} false; then :
2943   $as_echo_n "(cached) " >&6
2944 else
2945   if test -n "$STRIP"; then
2946   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953     for ac_exec_ext in '' $ac_executable_extensions; do
2954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960   done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 STRIP=$ac_cv_prog_STRIP
2966 if test -n "$STRIP"; then
2967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2968 $as_echo "$STRIP" >&6; }
2969 else
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975 fi
2976 if test -z "$ac_cv_prog_STRIP"; then
2977   ac_ct_STRIP=$STRIP
2978   # Extract the first word of "strip", so it can be a program name with args.
2979 set dummy strip; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2983   $as_echo_n "(cached) " >&6
2984 else
2985   if test -n "$ac_ct_STRIP"; then
2986   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991   IFS=$as_save_IFS
2992   test -z "$as_dir" && as_dir=.
2993     for ac_exec_ext in '' $ac_executable_extensions; do
2994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995     ac_cv_prog_ac_ct_STRIP="strip"
2996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997     break 2
2998   fi
2999 done
3000   done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3006 if test -n "$ac_ct_STRIP"; then
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3008 $as_echo "$ac_ct_STRIP" >&6; }
3009 else
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014   if test "x$ac_ct_STRIP" = x; then
3015     STRIP=":"
3016   else
3017     case $cross_compiling:$ac_tool_warned in
3018 yes:)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023     STRIP=$ac_ct_STRIP
3024   fi
3025 else
3026   STRIP="$ac_cv_prog_STRIP"
3027 fi
3028
3029 fi
3030 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3031
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3033 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3034 if test -z "$MKDIR_P"; then
3035   if ${ac_cv_path_mkdir+:} false; then :
3036   $as_echo_n "(cached) " >&6
3037 else
3038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043     for ac_prog in mkdir gmkdir; do
3044          for ac_exec_ext in '' $ac_executable_extensions; do
3045            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3046            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3047              'mkdir (GNU coreutils) '* | \
3048              'mkdir (coreutils) '* | \
3049              'mkdir (fileutils) '4.1*)
3050                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3051                break 3;;
3052            esac
3053          done
3054        done
3055   done
3056 IFS=$as_save_IFS
3057
3058 fi
3059
3060   test -d ./--version && rmdir ./--version
3061   if test "${ac_cv_path_mkdir+set}" = set; then
3062     MKDIR_P="$ac_cv_path_mkdir -p"
3063   else
3064     # As a last resort, use the slow shell script.  Don't cache a
3065     # value for MKDIR_P within a source directory, because that will
3066     # break other packages using the cache if that directory is
3067     # removed, or if the value is a relative name.
3068     MKDIR_P="$ac_install_sh -d"
3069   fi
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3072 $as_echo "$MKDIR_P" >&6; }
3073
3074 for ac_prog in gawk mawk nawk awk
3075 do
3076   # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_AWK+:} false; then :
3081   $as_echo_n "(cached) " >&6
3082 else
3083   if test -n "$AWK"; then
3084   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091     for ac_exec_ext in '' $ac_executable_extensions; do
3092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093     ac_cv_prog_AWK="$ac_prog"
3094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098   done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 AWK=$ac_cv_prog_AWK
3104 if test -n "$AWK"; then
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3106 $as_echo "$AWK" >&6; }
3107 else
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113   test -n "$AWK" && break
3114 done
3115
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3117 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3118 set x ${MAKE-make}
3119 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3120 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3121   $as_echo_n "(cached) " >&6
3122 else
3123   cat >conftest.make <<\_ACEOF
3124 SHELL = /bin/sh
3125 all:
3126         @echo '@@@%%%=$(MAKE)=@@@%%%'
3127 _ACEOF
3128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3129 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3130   *@@@%%%=?*=@@@%%%*)
3131     eval ac_cv_prog_make_${ac_make}_set=yes;;
3132   *)
3133     eval ac_cv_prog_make_${ac_make}_set=no;;
3134 esac
3135 rm -f conftest.make
3136 fi
3137 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3140   SET_MAKE=
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144   SET_MAKE="MAKE=${MAKE-make}"
3145 fi
3146
3147 rm -rf .tst 2>/dev/null
3148 mkdir .tst 2>/dev/null
3149 if test -d .tst; then
3150   am__leading_dot=.
3151 else
3152   am__leading_dot=_
3153 fi
3154 rmdir .tst 2>/dev/null
3155
3156 @%:@ Check whether --enable-silent-rules was given.
3157 if test "${enable_silent_rules+set}" = set; then :
3158   enableval=$enable_silent_rules; 
3159 fi
3160
3161 case $enable_silent_rules in @%:@ (((
3162   yes) AM_DEFAULT_VERBOSITY=0;;
3163    no) AM_DEFAULT_VERBOSITY=1;;
3164     *) AM_DEFAULT_VERBOSITY=1;;
3165 esac
3166 am_make=${MAKE-make}
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3168 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3169 if ${am_cv_make_support_nested_variables+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if $as_echo 'TRUE=$(BAR$(V))
3173 BAR0=false
3174 BAR1=true
3175 V=1
3176 am__doit:
3177         @$(TRUE)
3178 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3179   am_cv_make_support_nested_variables=yes
3180 else
3181   am_cv_make_support_nested_variables=no
3182 fi
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3185 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3186 if test $am_cv_make_support_nested_variables = yes; then
3187     AM_V='$(V)'
3188   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3189 else
3190   AM_V=$AM_DEFAULT_VERBOSITY
3191   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3192 fi
3193 AM_BACKSLASH='\'
3194
3195 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3196   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3197   # is not polluted with repeated "-I."
3198   am__isrc=' -I$(srcdir)'
3199   # test to see if srcdir already configured
3200   if test -f $srcdir/config.status; then
3201     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3202   fi
3203 fi
3204
3205 # test whether we have cygpath
3206 if test -z "$CYGPATH_W"; then
3207   if (cygpath --version) >/dev/null 2>/dev/null; then
3208     CYGPATH_W='cygpath -w'
3209   else
3210     CYGPATH_W=echo
3211   fi
3212 fi
3213
3214
3215 # Define the identity of the package.
3216  PACKAGE='asn1c'
3217  VERSION='0.9.29'
3218
3219
3220 cat >>confdefs.h <<_ACEOF
3221 @%:@define PACKAGE "$PACKAGE"
3222 _ACEOF
3223
3224  
3225 cat >>confdefs.h <<_ACEOF
3226 @%:@define VERSION "$VERSION"
3227 _ACEOF
3228
3229 # Some tools Automake needs.
3230
3231 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3232
3233
3234 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3235
3236
3237 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3238
3239
3240 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3241
3242
3243 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3244
3245 # For better backward compatibility.  To be removed once Automake 1.9.x
3246 # dies out for good.  For more background, see:
3247 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3248 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3249 mkdir_p='$(MKDIR_P)'
3250
3251 # We need awk for the "check" target (and possibly the TAP driver).  The
3252 # system "awk" is bad on some platforms.
3253 # Always define AMTAR for backward compatibility.  Yes, it's still used
3254 # in the wild :-(  We should find a proper way to deprecate it ...
3255 AMTAR='$${TAR-tar}'
3256
3257
3258 # We'll loop over all known methods to create a tar archive until one works.
3259 _am_tools='gnutar  pax cpio none'
3260
3261 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3262
3263
3264
3265
3266
3267
3268 # POSIX will say in a future version that running "rm -f" with no argument
3269 # is OK; and we want to be able to make that assumption in our Makefile
3270 # recipes.  So use an aggressive probe to check that the usage we want is
3271 # actually supported "in the wild" to an acceptable degree.
3272 # See automake bug#10828.
3273 # To make any issue more visible, cause the running configure to be aborted
3274 # by default if the 'rm' program in use doesn't match our expectations; the
3275 # user can still override this though.
3276 if rm -f && rm -fr && rm -rf; then : OK; else
3277   cat >&2 <<'END'
3278 Oops!
3279
3280 Your 'rm' program seems unable to run without file operands specified
3281 on the command line, even when the '-f' option is present.  This is contrary
3282 to the behaviour of most rm programs out there, and not conforming with
3283 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3284
3285 Please tell bug-automake@gnu.org about your system, including the value
3286 of your $PATH and any error possibly output before this message.  This
3287 can help us improve future automake versions.
3288
3289 END
3290   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3291     echo 'Configuration will proceed anyway, since you have set the' >&2
3292     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3293     echo >&2
3294   else
3295     cat >&2 <<'END'
3296 Aborting the configuration process, to ensure you take notice of the issue.
3297
3298 You can download and install GNU coreutils to get an 'rm' implementation
3299 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3300
3301 If you want to complete the configuration process using your problematic
3302 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3303 to "yes", and re-run configure.
3304
3305 END
3306     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3307   fi
3308 fi
3309
3310
3311
3312 ac_ext=c
3313 ac_cpp='$CPP $CPPFLAGS'
3314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317 if test -n "$ac_tool_prefix"; then
3318   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3319 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_CC+:} false; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if test -n "$CC"; then
3326   ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340   done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3349 else
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355 fi
3356 if test -z "$ac_cv_prog_CC"; then
3357   ac_ct_CC=$CC
3358   # Extract the first word of "gcc", so it can be a program name with args.
3359 set dummy gcc; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   if test -n "$ac_ct_CC"; then
3366   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371   IFS=$as_save_IFS
3372   test -z "$as_dir" && as_dir=.
3373     for ac_exec_ext in '' $ac_executable_extensions; do
3374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375     ac_cv_prog_ac_ct_CC="gcc"
3376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377     break 2
3378   fi
3379 done
3380   done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
3385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386 if test -n "$ac_ct_CC"; then
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388 $as_echo "$ac_ct_CC" >&6; }
3389 else
3390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394   if test "x$ac_ct_CC" = x; then
3395     CC=""
3396   else
3397     case $cross_compiling:$ac_tool_warned in
3398 yes:)
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401 ac_tool_warned=yes ;;
3402 esac
3403     CC=$ac_ct_CC
3404   fi
3405 else
3406   CC="$ac_cv_prog_CC"
3407 fi
3408
3409 if test -z "$CC"; then
3410           if test -n "$ac_tool_prefix"; then
3411     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3412 set dummy ${ac_tool_prefix}cc; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   if test -n "$CC"; then
3419   ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424   IFS=$as_save_IFS
3425   test -z "$as_dir" && as_dir=.
3426     for ac_exec_ext in '' $ac_executable_extensions; do
3427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428     ac_cv_prog_CC="${ac_tool_prefix}cc"
3429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433   done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3442 else
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448   fi
3449 fi
3450 if test -z "$CC"; then
3451   # Extract the first word of "cc", so it can be a program name with args.
3452 set dummy cc; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_CC+:} false; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   if test -n "$CC"; then
3459   ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461   ac_prog_rejected=no
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465   IFS=$as_save_IFS
3466   test -z "$as_dir" && as_dir=.
3467     for ac_exec_ext in '' $ac_executable_extensions; do
3468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3470        ac_prog_rejected=yes
3471        continue
3472      fi
3473     ac_cv_prog_CC="cc"
3474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478   done
3479 IFS=$as_save_IFS
3480
3481 if test $ac_prog_rejected = yes; then
3482   # We found a bogon in the path, so make sure we never use it.
3483   set dummy $ac_cv_prog_CC
3484   shift
3485   if test $@%:@ != 0; then
3486     # We chose a different compiler from the bogus one.
3487     # However, it has the same basename, so the bogon will be chosen
3488     # first if we set CC to just the basename; use the full file name.
3489     shift
3490     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3491   fi
3492 fi
3493 fi
3494 fi
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504
3505 fi
3506 if test -z "$CC"; then
3507   if test -n "$ac_tool_prefix"; then
3508   for ac_prog in cl.exe
3509   do
3510     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_CC+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   if test -n "$CC"; then
3518   ac_cv_prog_CC="$CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525     for ac_exec_ext in '' $ac_executable_extensions; do
3526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532   done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 CC=$ac_cv_prog_CC
3538 if test -n "$CC"; then
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3541 else
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 fi
3545
3546
3547     test -n "$CC" && break
3548   done
3549 fi
3550 if test -z "$CC"; then
3551   ac_ct_CC=$CC
3552   for ac_prog in cl.exe
3553 do
3554   # Extract the first word of "$ac_prog", so it can be a program name with args.
3555 set dummy $ac_prog; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3559   $as_echo_n "(cached) " >&6
3560 else
3561   if test -n "$ac_ct_CC"; then
3562   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569     for ac_exec_ext in '' $ac_executable_extensions; do
3570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571     ac_cv_prog_ac_ct_CC="$ac_prog"
3572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576   done
3577 IFS=$as_save_IFS
3578
3579 fi
3580 fi
3581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3582 if test -n "$ac_ct_CC"; then
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584 $as_echo "$ac_ct_CC" >&6; }
3585 else
3586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 fi
3589
3590
3591   test -n "$ac_ct_CC" && break
3592 done
3593
3594   if test "x$ac_ct_CC" = x; then
3595     CC=""
3596   else
3597     case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603     CC=$ac_ct_CC
3604   fi
3605 fi
3606
3607 fi
3608
3609
3610 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "no acceptable C compiler found in \$PATH
3613 See \`config.log' for more details" "$LINENO" 5; }
3614
3615 # Provide some information about the compiler.
3616 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3617 set X $ac_compile
3618 ac_compiler=$2
3619 for ac_option in --version -v -V -qversion; do
3620   { { ac_try="$ac_compiler $ac_option >&5"
3621 case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3628   ac_status=$?
3629   if test -s conftest.err; then
3630     sed '10a\
3631 ... rest of stderr output deleted ...
3632          10q' conftest.err >conftest.er1
3633     cat conftest.er1 >&5
3634   fi
3635   rm -f conftest.er1 conftest.err
3636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637   test $ac_status = 0; }
3638 done
3639
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h.  */
3642
3643 int
3644 main ()
3645 {
3646
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 ac_clean_files_save=$ac_clean_files
3652 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3653 # Try to create an executable without -o first, disregard a.out.
3654 # It will help us diagnose broken compilers, and finding out an intuition
3655 # of exeext.
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3657 $as_echo_n "checking whether the C compiler works... " >&6; }
3658 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3659
3660 # The possible output files:
3661 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3662
3663 ac_rmfiles=
3664 for ac_file in $ac_files
3665 do
3666   case $ac_file in
3667     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3669   esac
3670 done
3671 rm -f $ac_rmfiles
3672
3673 if { { ac_try="$ac_link_default"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680   (eval "$ac_link_default") 2>&5
3681   ac_status=$?
3682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683   test $ac_status = 0; }; then :
3684   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3685 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3686 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3687 # so that the user can short-circuit this test for compilers unknown to
3688 # Autoconf.
3689 for ac_file in $ac_files ''
3690 do
3691   test -f "$ac_file" || continue
3692   case $ac_file in
3693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3694         ;;
3695     [ab].out )
3696         # We found the default executable, but exeext='' is most
3697         # certainly right.
3698         break;;
3699     *.* )
3700         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3701         then :; else
3702            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3703         fi
3704         # We set ac_cv_exeext here because the later test for it is not
3705         # safe: cross compilers may not add the suffix if given an `-o'
3706         # argument, so we may need to know it at that point already.
3707         # Even if this section looks crufty: it has the advantage of
3708         # actually working.
3709         break;;
3710     * )
3711         break;;
3712   esac
3713 done
3714 test "$ac_cv_exeext" = no && ac_cv_exeext=
3715
3716 else
3717   ac_file=''
3718 fi
3719 if test -z "$ac_file"; then :
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error 77 "C compiler cannot create executables
3728 See \`config.log' for more details" "$LINENO" 5; }
3729 else
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3731 $as_echo "yes" >&6; }
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3734 $as_echo_n "checking for C compiler default output file name... " >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3736 $as_echo "$ac_file" >&6; }
3737 ac_exeext=$ac_cv_exeext
3738
3739 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3740 ac_clean_files=$ac_clean_files_save
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3742 $as_echo_n "checking for suffix of executables... " >&6; }
3743 if { { ac_try="$ac_link"
3744 case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750   (eval "$ac_link") 2>&5
3751   ac_status=$?
3752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753   test $ac_status = 0; }; then :
3754   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3755 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3756 # work properly (i.e., refer to `conftest.exe'), while it won't with
3757 # `rm'.
3758 for ac_file in conftest.exe conftest conftest.*; do
3759   test -f "$ac_file" || continue
3760   case $ac_file in
3761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763           break;;
3764     * ) break;;
3765   esac
3766 done
3767 else
3768   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3771 See \`config.log' for more details" "$LINENO" 5; }
3772 fi
3773 rm -f conftest conftest$ac_cv_exeext
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3775 $as_echo "$ac_cv_exeext" >&6; }
3776
3777 rm -f conftest.$ac_ext
3778 EXEEXT=$ac_cv_exeext
3779 ac_exeext=$EXEEXT
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782 @%:@include <stdio.h>
3783 int
3784 main ()
3785 {
3786 FILE *f = fopen ("conftest.out", "w");
3787  return ferror (f) || fclose (f) != 0;
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 ac_clean_files="$ac_clean_files conftest.out"
3794 # Check that the compiler produces executables we can run.  If not, either
3795 # the compiler is broken, or we cross compile.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3797 $as_echo_n "checking whether we are cross compiling... " >&6; }
3798 if test "$cross_compiling" != yes; then
3799   { { ac_try="$ac_link"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806   (eval "$ac_link") 2>&5
3807   ac_status=$?
3808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809   test $ac_status = 0; }
3810   if { ac_try='./conftest$ac_cv_exeext'
3811   { { case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817   (eval "$ac_try") 2>&5
3818   ac_status=$?
3819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820   test $ac_status = 0; }; }; then
3821     cross_compiling=no
3822   else
3823     if test "$cross_compiling" = maybe; then
3824         cross_compiling=yes
3825     else
3826         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error $? "cannot run C compiled programs.
3829 If you meant to cross compile, use \`--host'.
3830 See \`config.log' for more details" "$LINENO" 5; }
3831     fi
3832   fi
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3835 $as_echo "$cross_compiling" >&6; }
3836
3837 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3838 ac_clean_files=$ac_clean_files_save
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3840 $as_echo_n "checking for suffix of object files... " >&6; }
3841 if ${ac_cv_objext+:} false; then :
3842   $as_echo_n "(cached) " >&6
3843 else
3844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h.  */
3846
3847 int
3848 main ()
3849 {
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.o conftest.obj
3856 if { { ac_try="$ac_compile"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863   (eval "$ac_compile") 2>&5
3864   ac_status=$?
3865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866   test $ac_status = 0; }; then :
3867   for ac_file in conftest.o conftest.obj conftest.*; do
3868   test -f "$ac_file" || continue;
3869   case $ac_file in
3870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3871     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3872        break;;
3873   esac
3874 done
3875 else
3876   $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error $? "cannot compute suffix of object files: cannot compile
3882 See \`config.log' for more details" "$LINENO" 5; }
3883 fi
3884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3887 $as_echo "$ac_cv_objext" >&6; }
3888 OBJEXT=$ac_cv_objext
3889 ac_objext=$OBJEXT
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3891 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3892 if ${ac_cv_c_compiler_gnu+:} false; then :
3893   $as_echo_n "(cached) " >&6
3894 else
3895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h.  */
3897
3898 int
3899 main ()
3900 {
3901 #ifndef __GNUC__
3902        choke me
3903 #endif
3904
3905   ;
3906   return 0;
3907 }
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910   ac_compiler_gnu=yes
3911 else
3912   ac_compiler_gnu=no
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3916
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3919 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3920 if test $ac_compiler_gnu = yes; then
3921   GCC=yes
3922 else
3923   GCC=
3924 fi
3925 ac_test_CFLAGS=${CFLAGS+set}
3926 ac_save_CFLAGS=$CFLAGS
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3928 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3929 if ${ac_cv_prog_cc_g+:} false; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932   ac_save_c_werror_flag=$ac_c_werror_flag
3933    ac_c_werror_flag=yes
3934    ac_cv_prog_cc_g=no
3935    CFLAGS="-g"
3936    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948   ac_cv_prog_cc_g=yes
3949 else
3950   CFLAGS=""
3951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953
3954 int
3955 main ()
3956 {
3957
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963   
3964 else
3965   ac_c_werror_flag=$ac_save_c_werror_flag
3966          CFLAGS="-g"
3967          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979   ac_cv_prog_cc_g=yes
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986    ac_c_werror_flag=$ac_save_c_werror_flag
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3989 $as_echo "$ac_cv_prog_cc_g" >&6; }
3990 if test "$ac_test_CFLAGS" = set; then
3991   CFLAGS=$ac_save_CFLAGS
3992 elif test $ac_cv_prog_cc_g = yes; then
3993   if test "$GCC" = yes; then
3994     CFLAGS="-g -O2"
3995   else
3996     CFLAGS="-g"
3997   fi
3998 else
3999   if test "$GCC" = yes; then
4000     CFLAGS="-O2"
4001   else
4002     CFLAGS=
4003   fi
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4006 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4007 if ${ac_cv_prog_cc_c89+:} false; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   ac_cv_prog_cc_c89=no
4011 ac_save_CC=$CC
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014 #include <stdarg.h>
4015 #include <stdio.h>
4016 struct stat;
4017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4018 struct buf { int x; };
4019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4020 static char *e (p, i)
4021      char **p;
4022      int i;
4023 {
4024   return p[i];
4025 }
4026 static char *f (char * (*g) (char **, int), char **p, ...)
4027 {
4028   char *s;
4029   va_list v;
4030   va_start (v,p);
4031   s = g (p, va_arg (v,int));
4032   va_end (v);
4033   return s;
4034 }
4035
4036 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4037    function prototypes and stuff, but not '\xHH' hex character constants.
4038    These don't provoke an error unfortunately, instead are silently treated
4039    as 'x'.  The following induces an error, until -std is added to get
4040    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4041    array size at least.  It's necessary to write '\x00'==0 to get something
4042    that's true only with -std.  */
4043 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4044
4045 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4046    inside strings and character constants.  */
4047 #define FOO(x) 'x'
4048 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4049
4050 int test (int i, double x);
4051 struct s1 {int (*f) (int a);};
4052 struct s2 {int (*f) (double a);};
4053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4054 int argc;
4055 char **argv;
4056 int
4057 main ()
4058 {
4059 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4065         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4066 do
4067   CC="$ac_save_CC $ac_arg"
4068   if ac_fn_c_try_compile "$LINENO"; then :
4069   ac_cv_prog_cc_c89=$ac_arg
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext
4072   test "x$ac_cv_prog_cc_c89" != "xno" && break
4073 done
4074 rm -f conftest.$ac_ext
4075 CC=$ac_save_CC
4076
4077 fi
4078 # AC_CACHE_VAL
4079 case "x$ac_cv_prog_cc_c89" in
4080   x)
4081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4082 $as_echo "none needed" >&6; } ;;
4083   xno)
4084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4085 $as_echo "unsupported" >&6; } ;;
4086   *)
4087     CC="$CC $ac_cv_prog_cc_c89"
4088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4089 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4090 esac
4091 if test "x$ac_cv_prog_cc_c89" != xno; then :
4092   
4093 fi
4094
4095 ac_ext=c
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4107 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4108 if ${am_cv_prog_cc_c_o+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122   # Make sure it works both with $CC and with simple cc.
4123   # Following AC_PROG_CC_C_O, we do the test twice because some
4124   # compilers refuse to overwrite an existing .o file with -o,
4125   # though they will create one.
4126   am_cv_prog_cc_c_o=yes
4127   for am_i in 1 2; do
4128     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4129    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4130    ac_status=$?
4131    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132    (exit $ac_status); } \
4133          && test -f conftest2.$ac_objext; then
4134       : OK
4135     else
4136       am_cv_prog_cc_c_o=no
4137       break
4138     fi
4139   done
4140   rm -f core conftest*
4141   unset am_i
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4144 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4145 if test "$am_cv_prog_cc_c_o" != yes; then
4146    # Losing compiler, so override with the script.
4147    # FIXME: It is wrong to rewrite CC.
4148    # But if we don't then we get into trouble of one sort or another.
4149    # A longer-term fix would be to have automake use am__CC in this case,
4150    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4151    CC="$am_aux_dir/compile $CC"
4152 fi
4153 ac_ext=c
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158
4159 DEPDIR="${am__leading_dot}deps"
4160
4161 ac_config_commands="$ac_config_commands depfiles"
4162
4163
4164 am_make=${MAKE-make}
4165 cat > confinc << 'END'
4166 am__doit:
4167         @echo this is the am__doit target
4168 .PHONY: am__doit
4169 END
4170 # If we don't find an include directive, just comment out the code.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4172 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4173 am__include="#"
4174 am__quote=
4175 _am_result=none
4176 # First try GNU make style include.
4177 echo "include confinc" > confmf
4178 # Ignore all kinds of additional output from 'make'.
4179 case `$am_make -s -f confmf 2> /dev/null` in #(
4180 *the\ am__doit\ target*)
4181   am__include=include
4182   am__quote=
4183   _am_result=GNU
4184   ;;
4185 esac
4186 # Now try BSD make style include.
4187 if test "$am__include" = "#"; then
4188    echo '.include "confinc"' > confmf
4189    case `$am_make -s -f confmf 2> /dev/null` in #(
4190    *the\ am__doit\ target*)
4191      am__include=.include
4192      am__quote="\""
4193      _am_result=BSD
4194      ;;
4195    esac
4196 fi
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4200 $as_echo "$_am_result" >&6; }
4201 rm -f confinc confmf
4202
4203 @%:@ Check whether --enable-dependency-tracking was given.
4204 if test "${enable_dependency_tracking+set}" = set; then :
4205   enableval=$enable_dependency_tracking; 
4206 fi
4207
4208 if test "x$enable_dependency_tracking" != xno; then
4209   am_depcomp="$ac_aux_dir/depcomp"
4210   AMDEPBACKSLASH='\'
4211   am__nodep='_no'
4212 fi
4213  if test "x$enable_dependency_tracking" != xno; then
4214   AMDEP_TRUE=
4215   AMDEP_FALSE='#'
4216 else
4217   AMDEP_TRUE='#'
4218   AMDEP_FALSE=
4219 fi
4220
4221
4222
4223 depcc="$CC"   am_compiler_list=
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4226 $as_echo_n "checking dependency style of $depcc... " >&6; }
4227 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4231   # We make a subdir and do the tests there.  Otherwise we can end up
4232   # making bogus files that we don't know about and never remove.  For
4233   # instance it was reported that on HP-UX the gcc test will end up
4234   # making a dummy file named 'D' -- because '-MD' means "put the output
4235   # in D".
4236   rm -rf conftest.dir
4237   mkdir conftest.dir
4238   # Copy depcomp to subdir because otherwise we won't find it if we're
4239   # using a relative directory.
4240   cp "$am_depcomp" conftest.dir
4241   cd conftest.dir
4242   # We will build objects and dependencies in a subdirectory because
4243   # it helps to detect inapplicable dependency modes.  For instance
4244   # both Tru64's cc and ICC support -MD to output dependencies as a
4245   # side effect of compilation, but ICC will put the dependencies in
4246   # the current directory while Tru64 will put them in the object
4247   # directory.
4248   mkdir sub
4249
4250   am_cv_CC_dependencies_compiler_type=none
4251   if test "$am_compiler_list" = ""; then
4252      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4253   fi
4254   am__universal=false
4255   case " $depcc " in #(
4256      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4257      esac
4258
4259   for depmode in $am_compiler_list; do
4260     # Setup a source with many dependencies, because some compilers
4261     # like to wrap large dependency lists on column 80 (with \), and
4262     # we should not choose a depcomp mode which is confused by this.
4263     #
4264     # We need to recreate these files for each test, as the compiler may
4265     # overwrite some of them when testing with obscure command lines.
4266     # This happens at least with the AIX C compiler.
4267     : > sub/conftest.c
4268     for i in 1 2 3 4 5 6; do
4269       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4270       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4271       # Solaris 10 /bin/sh.
4272       echo '/* dummy */' > sub/conftst$i.h
4273     done
4274     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4275
4276     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4277     # mode.  It turns out that the SunPro C++ compiler does not properly
4278     # handle '-M -o', and we need to detect this.  Also, some Intel
4279     # versions had trouble with output in subdirs.
4280     am__obj=sub/conftest.${OBJEXT-o}
4281     am__minus_obj="-o $am__obj"
4282     case $depmode in
4283     gcc)
4284       # This depmode causes a compiler race in universal mode.
4285       test "$am__universal" = false || continue
4286       ;;
4287     nosideeffect)
4288       # After this tag, mechanisms are not by side-effect, so they'll
4289       # only be used when explicitly requested.
4290       if test "x$enable_dependency_tracking" = xyes; then
4291         continue
4292       else
4293         break
4294       fi
4295       ;;
4296     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4297       # This compiler won't grok '-c -o', but also, the minuso test has
4298       # not run yet.  These depmodes are late enough in the game, and
4299       # so weak that their functioning should not be impacted.
4300       am__obj=conftest.${OBJEXT-o}
4301       am__minus_obj=
4302       ;;
4303     none) break ;;
4304     esac
4305     if depmode=$depmode \
4306        source=sub/conftest.c object=$am__obj \
4307        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4308        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4309          >/dev/null 2>conftest.err &&
4310        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4311        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4312        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4313        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4314       # icc doesn't choke on unknown options, it will just issue warnings
4315       # or remarks (even with -Werror).  So we grep stderr for any message
4316       # that says an option was ignored or not supported.
4317       # When given -MP, icc 7.0 and 7.1 complain thusly:
4318       #   icc: Command line warning: ignoring option '-M'; no argument required
4319       # The diagnosis changed in icc 8.0:
4320       #   icc: Command line remark: option '-MP' not supported
4321       if (grep 'ignoring option' conftest.err ||
4322           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4323         am_cv_CC_dependencies_compiler_type=$depmode
4324         break
4325       fi
4326     fi
4327   done
4328
4329   cd ..
4330   rm -rf conftest.dir
4331 else
4332   am_cv_CC_dependencies_compiler_type=none
4333 fi
4334
4335 fi
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4337 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4338 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4339
4340  if 
4341   test "x$enable_dependency_tracking" != xno \
4342   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4343   am__fastdepCC_TRUE=
4344   am__fastdepCC_FALSE='#'
4345 else
4346   am__fastdepCC_TRUE='#'
4347   am__fastdepCC_FALSE=
4348 fi
4349
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4357 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4360   CPP=
4361 fi
4362 if test -z "$CPP"; then
4363   if ${ac_cv_prog_CPP+:} false; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366       # Double quotes because CPP needs to be expanded
4367     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4368     do
4369       ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4371 do
4372   # Use a header file that comes with gcc, so configuring glibc
4373   # with a fresh cross-compiler works.
4374   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375   # <limits.h> exists even on freestanding compilers.
4376   # On the NeXT, cc -E runs the code through the compiler's parser,
4377   # not just through cpp. "Syntax error" is here to catch this case.
4378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380 @%:@ifdef __STDC__
4381 @%:@ include <limits.h>
4382 @%:@else
4383 @%:@ include <assert.h>
4384 @%:@endif
4385                      Syntax error
4386 _ACEOF
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4388   
4389 else
4390   # Broken: fails on valid input.
4391 continue
4392 fi
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4394
4395   # OK, works on sane cases.  Now check whether nonexistent headers
4396   # can be detected and how.
4397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h.  */
4399 @%:@include <ac_nonexistent.h>
4400 _ACEOF
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4402   # Broken: success on invalid input.
4403 continue
4404 else
4405   # Passes both tests.
4406 ac_preproc_ok=:
4407 break
4408 fi
4409 rm -f conftest.err conftest.i conftest.$ac_ext
4410
4411 done
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.i conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then :
4415   break
4416 fi
4417
4418     done
4419     ac_cv_prog_CPP=$CPP
4420   
4421 fi
4422   CPP=$ac_cv_prog_CPP
4423 else
4424   ac_cv_prog_CPP=$CPP
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4427 $as_echo "$CPP" >&6; }
4428 ac_preproc_ok=false
4429 for ac_c_preproc_warn_flag in '' yes
4430 do
4431   # Use a header file that comes with gcc, so configuring glibc
4432   # with a fresh cross-compiler works.
4433   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434   # <limits.h> exists even on freestanding compilers.
4435   # On the NeXT, cc -E runs the code through the compiler's parser,
4436   # not just through cpp. "Syntax error" is here to catch this case.
4437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439 @%:@ifdef __STDC__
4440 @%:@ include <limits.h>
4441 @%:@else
4442 @%:@ include <assert.h>
4443 @%:@endif
4444                      Syntax error
4445 _ACEOF
4446 if ac_fn_c_try_cpp "$LINENO"; then :
4447   
4448 else
4449   # Broken: fails on valid input.
4450 continue
4451 fi
4452 rm -f conftest.err conftest.i conftest.$ac_ext
4453
4454   # OK, works on sane cases.  Now check whether nonexistent headers
4455   # can be detected and how.
4456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h.  */
4458 @%:@include <ac_nonexistent.h>
4459 _ACEOF
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4461   # Broken: success on invalid input.
4462 continue
4463 else
4464   # Passes both tests.
4465 ac_preproc_ok=:
4466 break
4467 fi
4468 rm -f conftest.err conftest.i conftest.$ac_ext
4469
4470 done
4471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4472 rm -f conftest.i conftest.err conftest.$ac_ext
4473 if $ac_preproc_ok; then :
4474   
4475 else
4476   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4479 See \`config.log' for more details" "$LINENO" 5; }
4480 fi
4481
4482 ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4490 $as_echo_n "checking whether ln -s works... " >&6; }
4491 LN_S=$as_ln_s
4492 if test "$LN_S" = "ln -s"; then
4493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 $as_echo "yes" >&6; }
4495 else
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4497 $as_echo "no, using $LN_S" >&6; }
4498 fi
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4501 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4502 set x ${MAKE-make}
4503 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4504 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4505   $as_echo_n "(cached) " >&6
4506 else
4507   cat >conftest.make <<\_ACEOF
4508 SHELL = /bin/sh
4509 all:
4510         @echo '@@@%%%=$(MAKE)=@@@%%%'
4511 _ACEOF
4512 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4513 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4514   *@@@%%%=?*=@@@%%%*)
4515     eval ac_cv_prog_make_${ac_make}_set=yes;;
4516   *)
4517     eval ac_cv_prog_make_${ac_make}_set=no;;
4518 esac
4519 rm -f conftest.make
4520 fi
4521 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523 $as_echo "yes" >&6; }
4524   SET_MAKE=
4525 else
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528   SET_MAKE="MAKE=${MAKE-make}"
4529 fi
4530
4531 for ac_prog in 'bison -y' byacc
4532 do
4533   # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_YACC+:} false; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   if test -n "$YACC"; then
4541   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550     ac_cv_prog_YACC="$ac_prog"
4551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555   done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 YACC=$ac_cv_prog_YACC
4561 if test -n "$YACC"; then
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4563 $as_echo "$YACC" >&6; }
4564 else
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569
4570   test -n "$YACC" && break
4571 done
4572 test -n "$YACC" || YACC="yacc"
4573
4574
4575 for ac_prog in flex lex
4576 do
4577   # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if ${ac_cv_prog_LEX+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   if test -n "$LEX"; then
4585   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592     for ac_exec_ext in '' $ac_executable_extensions; do
4593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594     ac_cv_prog_LEX="$ac_prog"
4595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596     break 2
4597   fi
4598 done
4599   done
4600 IFS=$as_save_IFS
4601
4602 fi
4603 fi
4604 LEX=$ac_cv_prog_LEX
4605 if test -n "$LEX"; then
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4607 $as_echo "$LEX" >&6; }
4608 else
4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4611 fi
4612
4613
4614   test -n "$LEX" && break
4615 done
4616 test -n "$LEX" || LEX=":"
4617
4618 if test "x$LEX" != "x:"; then
4619   cat >conftest.l <<_ACEOF
4620 %%
4621 a { ECHO; }
4622 b { REJECT; }
4623 c { yymore (); }
4624 d { yyless (1); }
4625 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4626     yyless ((input () != 0)); }
4627 f { unput (yytext[0]); }
4628 . { BEGIN INITIAL; }
4629 %%
4630 #ifdef YYTEXT_POINTER
4631 extern char *yytext;
4632 #endif
4633 int
4634 main (void)
4635 {
4636   return ! yylex () + ! yywrap ();
4637 }
4638 _ACEOF
4639 { { ac_try="$LEX conftest.l"
4640 case "(($ac_try" in
4641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642   *) ac_try_echo=$ac_try;;
4643 esac
4644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645 $as_echo "$ac_try_echo"; } >&5
4646   (eval "$LEX conftest.l") 2>&5
4647   ac_status=$?
4648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4649   test $ac_status = 0; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4651 $as_echo_n "checking lex output file root... " >&6; }
4652 if ${ac_cv_prog_lex_root+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   
4656 if test -f lex.yy.c; then
4657   ac_cv_prog_lex_root=lex.yy
4658 elif test -f lexyy.c; then
4659   ac_cv_prog_lex_root=lexyy
4660 else
4661   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4662 fi
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4665 $as_echo "$ac_cv_prog_lex_root" >&6; }
4666 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4667
4668 if test -z "${LEXLIB+set}"; then
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4670 $as_echo_n "checking lex library... " >&6; }
4671 if ${ac_cv_lib_lex+:} false; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674   
4675     ac_save_LIBS=$LIBS
4676     ac_cv_lib_lex='none needed'
4677     for ac_lib in '' -lfl -ll; do
4678       LIBS="$ac_lib $ac_save_LIBS"
4679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681 `cat $LEX_OUTPUT_ROOT.c`
4682 _ACEOF
4683 if ac_fn_c_try_link "$LINENO"; then :
4684   ac_cv_lib_lex=$ac_lib
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext \
4687     conftest$ac_exeext conftest.$ac_ext
4688       test "$ac_cv_lib_lex" != 'none needed' && break
4689     done
4690     LIBS=$ac_save_LIBS
4691   
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4694 $as_echo "$ac_cv_lib_lex" >&6; }
4695   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4696 fi
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4700 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4701 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   # POSIX says lex can declare yytext either as a pointer or an array; the
4705 # default is implementation-dependent.  Figure out which it is, since
4706 # not all implementations provide the %pointer and %array declarations.
4707 ac_cv_prog_lex_yytext_pointer=no
4708 ac_save_LIBS=$LIBS
4709 LIBS="$LEXLIB $ac_save_LIBS"
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712
4713   #define YYTEXT_POINTER 1
4714 `cat $LEX_OUTPUT_ROOT.c`
4715 _ACEOF
4716 if ac_fn_c_try_link "$LINENO"; then :
4717   ac_cv_prog_lex_yytext_pointer=yes
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext \
4720     conftest$ac_exeext conftest.$ac_ext
4721 LIBS=$ac_save_LIBS
4722
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4725 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4726 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4727   
4728 $as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h
4729
4730 fi
4731 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4732
4733 fi
4734 if test "$LEX" = :; then
4735   LEX=${am_missing_run}flex
4736 fi
4737 if test -n "$ac_tool_prefix"; then
4738   for ac_prog in ar lib "link -lib"
4739   do
4740     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_AR+:} false; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747   if test -n "$AR"; then
4748   ac_cv_prog_AR="$AR" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762   done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 AR=$ac_cv_prog_AR
4768 if test -n "$AR"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4770 $as_echo "$AR" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777     test -n "$AR" && break
4778   done
4779 fi
4780 if test -z "$AR"; then
4781   ac_ct_AR=$AR
4782   for ac_prog in ar lib "link -lib"
4783 do
4784   # Extract the first word of "$ac_prog", so it can be a program name with args.
4785 set dummy $ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   if test -n "$ac_ct_AR"; then
4792   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799     for ac_exec_ext in '' $ac_executable_extensions; do
4800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801     ac_cv_prog_ac_ct_AR="$ac_prog"
4802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806   done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4812 if test -n "$ac_ct_AR"; then
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4814 $as_echo "$ac_ct_AR" >&6; }
4815 else
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4818 fi
4819
4820
4821   test -n "$ac_ct_AR" && break
4822 done
4823
4824   if test "x$ac_ct_AR" = x; then
4825     AR="false"
4826   else
4827     case $cross_compiling:$ac_tool_warned in
4828 yes:)
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831 ac_tool_warned=yes ;;
4832 esac
4833     AR=$ac_ct_AR
4834   fi
4835 fi
4836
4837 : ${AR=ar}
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4840 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4841 if ${am_cv_ar_interface+:} false; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850    am_cv_ar_interface=ar
4851    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h.  */
4853 int some_variable = 0;
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4857       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4858   (eval $am_ar_try) 2>&5
4859   ac_status=$?
4860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4861   test $ac_status = 0; }
4862       if test "$ac_status" -eq 0; then
4863         am_cv_ar_interface=ar
4864       else
4865         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4866         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4867   (eval $am_ar_try) 2>&5
4868   ac_status=$?
4869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4870   test $ac_status = 0; }
4871         if test "$ac_status" -eq 0; then
4872           am_cv_ar_interface=lib
4873         else
4874           am_cv_ar_interface=unknown
4875         fi
4876       fi
4877       rm -f conftest.lib libconftest.a
4878      
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881    ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4889 $as_echo "$am_cv_ar_interface" >&6; }
4890
4891 case $am_cv_ar_interface in
4892 ar)
4893   ;;
4894 lib)
4895   # Microsoft lib, so override with the ar-lib wrapper script.
4896   # FIXME: It is wrong to rewrite AR.
4897   # But if we don't then we get into trouble of one sort or another.
4898   # A longer-term fix would be to have automake use am__AR in this case,
4899   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4900   # similar.
4901   AR="$am_aux_dir/ar-lib $AR"
4902   ;;
4903 unknown)
4904   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4905   ;;
4906 esac
4907
4908
4909 ac_ext=cpp
4910 ac_cpp='$CXXCPP $CPPFLAGS'
4911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4914 if test -z "$CXX"; then
4915   if test -n "$CCC"; then
4916     CXX=$CCC
4917   else
4918     if test -n "$ac_tool_prefix"; then
4919   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4920   do
4921     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_CXX+:} false; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   if test -n "$CXX"; then
4929   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936     for ac_exec_ext in '' $ac_executable_extensions; do
4937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943   done
4944 IFS=$as_save_IFS
4945
4946 fi
4947 fi
4948 CXX=$ac_cv_prog_CXX
4949 if test -n "$CXX"; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4951 $as_echo "$CXX" >&6; }
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956
4957
4958     test -n "$CXX" && break
4959   done
4960 fi
4961 if test -z "$CXX"; then
4962   ac_ct_CXX=$CXX
4963   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4964 do
4965   # Extract the first word of "$ac_prog", so it can be a program name with args.
4966 set dummy $ac_prog; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4970   $as_echo_n "(cached) " >&6
4971 else
4972   if test -n "$ac_ct_CXX"; then
4973   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980     for ac_exec_ext in '' $ac_executable_extensions; do
4981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982     ac_cv_prog_ac_ct_CXX="$ac_prog"
4983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987   done
4988 IFS=$as_save_IFS
4989
4990 fi
4991 fi
4992 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4993 if test -n "$ac_ct_CXX"; then
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4995 $as_echo "$ac_ct_CXX" >&6; }
4996 else
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 fi
5000
5001
5002   test -n "$ac_ct_CXX" && break
5003 done
5004
5005   if test "x$ac_ct_CXX" = x; then
5006     CXX="g++"
5007   else
5008     case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014     CXX=$ac_ct_CXX
5015   fi
5016 fi
5017
5018   fi
5019 fi
5020 # Provide some information about the compiler.
5021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5022 set X $ac_compile
5023 ac_compiler=$2
5024 for ac_option in --version -v -V -qversion; do
5025   { { ac_try="$ac_compiler $ac_option >&5"
5026 case "(($ac_try" in
5027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028   *) ac_try_echo=$ac_try;;
5029 esac
5030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5031 $as_echo "$ac_try_echo"; } >&5
5032   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5033   ac_status=$?
5034   if test -s conftest.err; then
5035     sed '10a\
5036 ... rest of stderr output deleted ...
5037          10q' conftest.err >conftest.er1
5038     cat conftest.er1 >&5
5039   fi
5040   rm -f conftest.er1 conftest.err
5041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042   test $ac_status = 0; }
5043 done
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5046 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5047 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052
5053 int
5054 main ()
5055 {
5056 #ifndef __GNUC__
5057        choke me
5058 #endif
5059
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_cxx_try_compile "$LINENO"; then :
5065   ac_compiler_gnu=yes
5066 else
5067   ac_compiler_gnu=no
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5074 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5075 if test $ac_compiler_gnu = yes; then
5076   GXX=yes
5077 else
5078   GXX=
5079 fi
5080 ac_test_CXXFLAGS=${CXXFLAGS+set}
5081 ac_save_CXXFLAGS=$CXXFLAGS
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5083 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5084 if ${ac_cv_prog_cxx_g+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5088    ac_cxx_werror_flag=yes
5089    ac_cv_prog_cxx_g=no
5090    CXXFLAGS="-g"
5091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h.  */
5093
5094 int
5095 main ()
5096 {
5097
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 if ac_fn_cxx_try_compile "$LINENO"; then :
5103   ac_cv_prog_cxx_g=yes
5104 else
5105   CXXFLAGS=""
5106       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h.  */
5108
5109 int
5110 main ()
5111 {
5112
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 if ac_fn_cxx_try_compile "$LINENO"; then :
5118   
5119 else
5120   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5121          CXXFLAGS="-g"
5122          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124
5125 int
5126 main ()
5127 {
5128
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_cxx_try_compile "$LINENO"; then :
5134   ac_cv_prog_cxx_g=yes
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5144 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5145 if test "$ac_test_CXXFLAGS" = set; then
5146   CXXFLAGS=$ac_save_CXXFLAGS
5147 elif test $ac_cv_prog_cxx_g = yes; then
5148   if test "$GXX" = yes; then
5149     CXXFLAGS="-g -O2"
5150   else
5151     CXXFLAGS="-g"
5152   fi
5153 else
5154   if test "$GXX" = yes; then
5155     CXXFLAGS="-O2"
5156   else
5157     CXXFLAGS=
5158   fi
5159 fi
5160 ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166 depcc="$CXX"  am_compiler_list=
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5169 $as_echo_n "checking dependency style of $depcc... " >&6; }
5170 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5171   $as_echo_n "(cached) " >&6
5172 else
5173   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5174   # We make a subdir and do the tests there.  Otherwise we can end up
5175   # making bogus files that we don't know about and never remove.  For
5176   # instance it was reported that on HP-UX the gcc test will end up
5177   # making a dummy file named 'D' -- because '-MD' means "put the output
5178   # in D".
5179   rm -rf conftest.dir
5180   mkdir conftest.dir
5181   # Copy depcomp to subdir because otherwise we won't find it if we're
5182   # using a relative directory.
5183   cp "$am_depcomp" conftest.dir
5184   cd conftest.dir
5185   # We will build objects and dependencies in a subdirectory because
5186   # it helps to detect inapplicable dependency modes.  For instance
5187   # both Tru64's cc and ICC support -MD to output dependencies as a
5188   # side effect of compilation, but ICC will put the dependencies in
5189   # the current directory while Tru64 will put them in the object
5190   # directory.
5191   mkdir sub
5192
5193   am_cv_CXX_dependencies_compiler_type=none
5194   if test "$am_compiler_list" = ""; then
5195      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5196   fi
5197   am__universal=false
5198   case " $depcc " in #(
5199      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5200      esac
5201
5202   for depmode in $am_compiler_list; do
5203     # Setup a source with many dependencies, because some compilers
5204     # like to wrap large dependency lists on column 80 (with \), and
5205     # we should not choose a depcomp mode which is confused by this.
5206     #
5207     # We need to recreate these files for each test, as the compiler may
5208     # overwrite some of them when testing with obscure command lines.
5209     # This happens at least with the AIX C compiler.
5210     : > sub/conftest.c
5211     for i in 1 2 3 4 5 6; do
5212       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5213       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5214       # Solaris 10 /bin/sh.
5215       echo '/* dummy */' > sub/conftst$i.h
5216     done
5217     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5218
5219     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5220     # mode.  It turns out that the SunPro C++ compiler does not properly
5221     # handle '-M -o', and we need to detect this.  Also, some Intel
5222     # versions had trouble with output in subdirs.
5223     am__obj=sub/conftest.${OBJEXT-o}
5224     am__minus_obj="-o $am__obj"
5225     case $depmode in
5226     gcc)
5227       # This depmode causes a compiler race in universal mode.
5228       test "$am__universal" = false || continue
5229       ;;
5230     nosideeffect)
5231       # After this tag, mechanisms are not by side-effect, so they'll
5232       # only be used when explicitly requested.
5233       if test "x$enable_dependency_tracking" = xyes; then
5234         continue
5235       else
5236         break
5237       fi
5238       ;;
5239     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5240       # This compiler won't grok '-c -o', but also, the minuso test has
5241       # not run yet.  These depmodes are late enough in the game, and
5242       # so weak that their functioning should not be impacted.
5243       am__obj=conftest.${OBJEXT-o}
5244       am__minus_obj=
5245       ;;
5246     none) break ;;
5247     esac
5248     if depmode=$depmode \
5249        source=sub/conftest.c object=$am__obj \
5250        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5251        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5252          >/dev/null 2>conftest.err &&
5253        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5254        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5255        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5256        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5257       # icc doesn't choke on unknown options, it will just issue warnings
5258       # or remarks (even with -Werror).  So we grep stderr for any message
5259       # that says an option was ignored or not supported.
5260       # When given -MP, icc 7.0 and 7.1 complain thusly:
5261       #   icc: Command line warning: ignoring option '-M'; no argument required
5262       # The diagnosis changed in icc 8.0:
5263       #   icc: Command line remark: option '-MP' not supported
5264       if (grep 'ignoring option' conftest.err ||
5265           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5266         am_cv_CXX_dependencies_compiler_type=$depmode
5267         break
5268       fi
5269     fi
5270   done
5271
5272   cd ..
5273   rm -rf conftest.dir
5274 else
5275   am_cv_CXX_dependencies_compiler_type=none
5276 fi
5277
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5280 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5281 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5282
5283  if 
5284   test "x$enable_dependency_tracking" != xno \
5285   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5286   am__fastdepCXX_TRUE=
5287   am__fastdepCXX_FALSE='#'
5288 else
5289   am__fastdepCXX_TRUE='#'
5290   am__fastdepCXX_FALSE=
5291 fi
5292
5293
5294 CXXFLAGS="-std=c++11"
5295
5296 case `pwd` in
5297   *\ * | *\     *)
5298     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5299 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5300 esac
5301
5302
5303
5304 macro_version='2.4.6'
5305 macro_revision='2.4.6'
5306
5307     
5308     
5309     
5310
5311
5312     
5313     
5314     
5315
5316
5317
5318
5319 ltmain=$ac_aux_dir/ltmain.sh
5320
5321 # Make sure we can run config.sub.
5322 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5323   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5324
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5326 $as_echo_n "checking build system type... " >&6; }
5327 if ${ac_cv_build+:} false; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   ac_build_alias=$build_alias
5331 test "x$ac_build_alias" = x &&
5332   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5333 test "x$ac_build_alias" = x &&
5334   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5335 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5336   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5337
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5340 $as_echo "$ac_cv_build" >&6; }
5341 case $ac_cv_build in
5342 *-*-*) ;;
5343 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5344 esac
5345 build=$ac_cv_build
5346 ac_save_IFS=$IFS; IFS='-'
5347 set x $ac_cv_build
5348 shift
5349 build_cpu=$1
5350 build_vendor=$2
5351 shift; shift
5352 # Remember, the first character of IFS is used to create $*,
5353 # except with old shells:
5354 build_os=$*
5355 IFS=$ac_save_IFS
5356 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5357
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5360 $as_echo_n "checking host system type... " >&6; }
5361 if ${ac_cv_host+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   if test "x$host_alias" = x; then
5365   ac_cv_host=$ac_cv_build
5366 else
5367   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5368     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5369 fi
5370
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5373 $as_echo "$ac_cv_host" >&6; }
5374 case $ac_cv_host in
5375 *-*-*) ;;
5376 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5377 esac
5378 host=$ac_cv_host
5379 ac_save_IFS=$IFS; IFS='-'
5380 set x $ac_cv_host
5381 shift
5382 host_cpu=$1
5383 host_vendor=$2
5384 shift; shift
5385 # Remember, the first character of IFS is used to create $*,
5386 # except with old shells:
5387 host_os=$*
5388 IFS=$ac_save_IFS
5389 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5390
5391
5392 # Backslashify metacharacters that are still active within
5393 # double-quoted strings.
5394 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5395
5396 # Same as above, but do not quote variable references.
5397 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5398
5399 # Sed substitution to delay expansion of an escaped shell variable in a
5400 # double_quote_subst'ed string.
5401 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5402
5403 # Sed substitution to delay expansion of an escaped single quote.
5404 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5405
5406 # Sed substitution to avoid accidental globbing in evaled expressions
5407 no_glob_subst='s/\*/\\\*/g'
5408
5409 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5410 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5411 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5414 $as_echo_n "checking how to print strings... " >&6; }
5415 # Test print first, because it will be a builtin if present.
5416 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5417    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5418   ECHO='print -r --'
5419 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5420   ECHO='printf %s\n'
5421 else
5422   # Use this function as a fallback that always works.
5423   func_fallback_echo ()
5424   {
5425     eval 'cat <<_LTECHO_EOF
5426 $1
5427 _LTECHO_EOF'
5428   }
5429   ECHO='func_fallback_echo'
5430 fi
5431
5432 # func_echo_all arg...
5433 # Invoke $ECHO with all args, space-separated.
5434 func_echo_all ()
5435 {
5436     $ECHO ""
5437 }
5438
5439 case $ECHO in
5440   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5441 $as_echo "printf" >&6; } ;;
5442   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5443 $as_echo "print -r" >&6; } ;;
5444   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5445 $as_echo "cat" >&6; } ;;
5446 esac
5447
5448
5449
5450
5451     
5452     
5453     
5454
5455
5456     
5457     
5458     
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5462 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5463 if ${ac_cv_path_SED+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5467      for ac_i in 1 2 3 4 5 6 7; do
5468        ac_script="$ac_script$as_nl$ac_script"
5469      done
5470      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5471      { ac_script=; unset ac_script;}
5472      if test -z "$SED"; then
5473   ac_path_SED_found=false
5474   # Loop through the user's path and test for each of PROGNAME-LIST
5475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478   IFS=$as_save_IFS
5479   test -z "$as_dir" && as_dir=.
5480     for ac_prog in sed gsed; do
5481     for ac_exec_ext in '' $ac_executable_extensions; do
5482       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5483       as_fn_executable_p "$ac_path_SED" || continue
5484 # Check for GNU ac_path_SED and select it if it is found.
5485   # Check for GNU $ac_path_SED
5486 case `"$ac_path_SED" --version 2>&1` in
5487 *GNU*)
5488   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5489 *)
5490   ac_count=0
5491   $as_echo_n 0123456789 >"conftest.in"
5492   while :
5493   do
5494     cat "conftest.in" "conftest.in" >"conftest.tmp"
5495     mv "conftest.tmp" "conftest.in"
5496     cp "conftest.in" "conftest.nl"
5497     $as_echo '' >> "conftest.nl"
5498     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500     as_fn_arith $ac_count + 1 && ac_count=$as_val
5501     if test $ac_count -gt ${ac_path_SED_max-0}; then
5502       # Best one so far, save it but keep looking for a better one
5503       ac_cv_path_SED="$ac_path_SED"
5504       ac_path_SED_max=$ac_count
5505     fi
5506     # 10*(2^10) chars as input seems more than enough
5507     test $ac_count -gt 10 && break
5508   done
5509   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5510 esac
5511
5512       $ac_path_SED_found && break 3
5513     done
5514   done
5515   done
5516 IFS=$as_save_IFS
5517   if test -z "$ac_cv_path_SED"; then
5518     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5519   fi
5520 else
5521   ac_cv_path_SED=$SED
5522 fi
5523
5524 fi
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5526 $as_echo "$ac_cv_path_SED" >&6; }
5527  SED="$ac_cv_path_SED"
5528   rm -f conftest.sed
5529
5530 test -z "$SED" && SED=sed
5531 Xsed="$SED -e 1s/^X//"
5532
5533     
5534     
5535     
5536
5537
5538     
5539     
5540     
5541
5542
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5544 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5545 if ${ac_cv_path_GREP+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -z "$GREP"; then
5549   ac_path_GREP_found=false
5550   # Loop through the user's path and test for each of PROGNAME-LIST
5551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_prog in grep ggrep; do
5557     for ac_exec_ext in '' $ac_executable_extensions; do
5558       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5559       as_fn_executable_p "$ac_path_GREP" || continue
5560 # Check for GNU ac_path_GREP and select it if it is found.
5561   # Check for GNU $ac_path_GREP
5562 case `"$ac_path_GREP" --version 2>&1` in
5563 *GNU*)
5564   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5565 *)
5566   ac_count=0
5567   $as_echo_n 0123456789 >"conftest.in"
5568   while :
5569   do
5570     cat "conftest.in" "conftest.in" >"conftest.tmp"
5571     mv "conftest.tmp" "conftest.in"
5572     cp "conftest.in" "conftest.nl"
5573     $as_echo 'GREP' >> "conftest.nl"
5574     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5575     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5576     as_fn_arith $ac_count + 1 && ac_count=$as_val
5577     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5578       # Best one so far, save it but keep looking for a better one
5579       ac_cv_path_GREP="$ac_path_GREP"
5580       ac_path_GREP_max=$ac_count
5581     fi
5582     # 10*(2^10) chars as input seems more than enough
5583     test $ac_count -gt 10 && break
5584   done
5585   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5586 esac
5587
5588       $ac_path_GREP_found && break 3
5589     done
5590   done
5591   done
5592 IFS=$as_save_IFS
5593   if test -z "$ac_cv_path_GREP"; then
5594     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5595   fi
5596 else
5597   ac_cv_path_GREP=$GREP
5598 fi
5599
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5602 $as_echo "$ac_cv_path_GREP" >&6; }
5603  GREP="$ac_cv_path_GREP"
5604  
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5607 $as_echo_n "checking for egrep... " >&6; }
5608 if ${ac_cv_path_EGREP+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5612    then ac_cv_path_EGREP="$GREP -E"
5613    else
5614      if test -z "$EGREP"; then
5615   ac_path_EGREP_found=false
5616   # Loop through the user's path and test for each of PROGNAME-LIST
5617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622     for ac_prog in egrep; do
5623     for ac_exec_ext in '' $ac_executable_extensions; do
5624       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5625       as_fn_executable_p "$ac_path_EGREP" || continue
5626 # Check for GNU ac_path_EGREP and select it if it is found.
5627   # Check for GNU $ac_path_EGREP
5628 case `"$ac_path_EGREP" --version 2>&1` in
5629 *GNU*)
5630   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5631 *)
5632   ac_count=0
5633   $as_echo_n 0123456789 >"conftest.in"
5634   while :
5635   do
5636     cat "conftest.in" "conftest.in" >"conftest.tmp"
5637     mv "conftest.tmp" "conftest.in"
5638     cp "conftest.in" "conftest.nl"
5639     $as_echo 'EGREP' >> "conftest.nl"
5640     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642     as_fn_arith $ac_count + 1 && ac_count=$as_val
5643     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5644       # Best one so far, save it but keep looking for a better one
5645       ac_cv_path_EGREP="$ac_path_EGREP"
5646       ac_path_EGREP_max=$ac_count
5647     fi
5648     # 10*(2^10) chars as input seems more than enough
5649     test $ac_count -gt 10 && break
5650   done
5651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 esac
5653
5654       $ac_path_EGREP_found && break 3
5655     done
5656   done
5657   done
5658 IFS=$as_save_IFS
5659   if test -z "$ac_cv_path_EGREP"; then
5660     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5661   fi
5662 else
5663   ac_cv_path_EGREP=$EGREP
5664 fi
5665
5666    fi
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5669 $as_echo "$ac_cv_path_EGREP" >&6; }
5670  EGREP="$ac_cv_path_EGREP"
5671  
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5674 $as_echo_n "checking for fgrep... " >&6; }
5675 if ${ac_cv_path_FGREP+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5679    then ac_cv_path_FGREP="$GREP -F"
5680    else
5681      if test -z "$FGREP"; then
5682   ac_path_FGREP_found=false
5683   # Loop through the user's path and test for each of PROGNAME-LIST
5684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5686 do
5687   IFS=$as_save_IFS
5688   test -z "$as_dir" && as_dir=.
5689     for ac_prog in fgrep; do
5690     for ac_exec_ext in '' $ac_executable_extensions; do
5691       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5692       as_fn_executable_p "$ac_path_FGREP" || continue
5693 # Check for GNU ac_path_FGREP and select it if it is found.
5694   # Check for GNU $ac_path_FGREP
5695 case `"$ac_path_FGREP" --version 2>&1` in
5696 *GNU*)
5697   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5698 *)
5699   ac_count=0
5700   $as_echo_n 0123456789 >"conftest.in"
5701   while :
5702   do
5703     cat "conftest.in" "conftest.in" >"conftest.tmp"
5704     mv "conftest.tmp" "conftest.in"
5705     cp "conftest.in" "conftest.nl"
5706     $as_echo 'FGREP' >> "conftest.nl"
5707     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5709     as_fn_arith $ac_count + 1 && ac_count=$as_val
5710     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5711       # Best one so far, save it but keep looking for a better one
5712       ac_cv_path_FGREP="$ac_path_FGREP"
5713       ac_path_FGREP_max=$ac_count
5714     fi
5715     # 10*(2^10) chars as input seems more than enough
5716     test $ac_count -gt 10 && break
5717   done
5718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5719 esac
5720
5721       $ac_path_FGREP_found && break 3
5722     done
5723   done
5724   done
5725 IFS=$as_save_IFS
5726   if test -z "$ac_cv_path_FGREP"; then
5727     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5728   fi
5729 else
5730   ac_cv_path_FGREP=$FGREP
5731 fi
5732
5733    fi
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5736 $as_echo "$ac_cv_path_FGREP" >&6; }
5737  FGREP="$ac_cv_path_FGREP"
5738  
5739
5740 test -z "$GREP" && GREP=grep
5741
5742     
5743     
5744     
5745
5746
5747     
5748     
5749     
5750
5751
5752     
5753     
5754     
5755
5756
5757
5758
5759
5760 @%:@ Check whether --with-gnu-ld was given.
5761 if test "${with_gnu_ld+set}" = set; then :
5762   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5763 else
5764   with_gnu_ld=no
5765 fi
5766
5767 ac_prog=ld
5768 if test yes = "$GCC"; then
5769   # Check if gcc -print-prog-name=ld gives a path.
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5771 $as_echo_n "checking for ld used by $CC... " >&6; }
5772   case $host in
5773   *-*-mingw*)
5774     # gcc leaves a trailing carriage return, which upsets mingw
5775     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5776   *)
5777     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5778   esac
5779   case $ac_prog in
5780     # Accept absolute paths.
5781     [\\/]* | ?:[\\/]*)
5782       re_direlt='/[^/][^/]*/\.\./'
5783       # Canonicalize the pathname of ld
5784       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5785       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5786         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5787       done
5788       test -z "$LD" && LD=$ac_prog
5789       ;;
5790   "")
5791     # If it fails, then pretend we aren't using GCC.
5792     ac_prog=ld
5793     ;;
5794   *)
5795     # If it is relative, then search for the first ld in PATH.
5796     with_gnu_ld=unknown
5797     ;;
5798   esac
5799 elif test yes = "$with_gnu_ld"; then
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5801 $as_echo_n "checking for GNU ld... " >&6; }
5802 else
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5804 $as_echo_n "checking for non-GNU ld... " >&6; }
5805 fi
5806 if ${lt_cv_path_LD+:} false; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   if test -z "$LD"; then
5810   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5811   for ac_dir in $PATH; do
5812     IFS=$lt_save_ifs
5813     test -z "$ac_dir" && ac_dir=.
5814     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5815       lt_cv_path_LD=$ac_dir/$ac_prog
5816       # Check to see if the program is GNU ld.  I'd rather use --version,
5817       # but apparently some variants of GNU ld only accept -v.
5818       # Break only if it was the GNU/non-GNU ld that we prefer.
5819       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5820       *GNU* | *'with BFD'*)
5821         test no != "$with_gnu_ld" && break
5822         ;;
5823       *)
5824         test yes != "$with_gnu_ld" && break
5825         ;;
5826       esac
5827     fi
5828   done
5829   IFS=$lt_save_ifs
5830 else
5831   lt_cv_path_LD=$LD # Let the user override the test with a path.
5832 fi
5833 fi
5834
5835 LD=$lt_cv_path_LD
5836 if test -n "$LD"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5838 $as_echo "$LD" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5845 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5846 if ${lt_cv_prog_gnu_ld+:} false; then :
5847   $as_echo_n "(cached) " >&6
5848 else
5849   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5850 case `$LD -v 2>&1 </dev/null` in
5851 *GNU* | *'with BFD'*)
5852   lt_cv_prog_gnu_ld=yes
5853   ;;
5854 *)
5855   lt_cv_prog_gnu_ld=no
5856   ;;
5857 esac
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5860 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5861 with_gnu_ld=$lt_cv_prog_gnu_ld
5862
5863
5864
5865
5866     
5867     
5868     
5869
5870
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5872 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5873 if ${lt_cv_path_NM+:} false; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   if test -n "$NM"; then
5877   # Let the user override the test.
5878   lt_cv_path_NM=$NM
5879 else
5880   lt_nm_to_check=${ac_tool_prefix}nm
5881   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5882     lt_nm_to_check="$lt_nm_to_check nm"
5883   fi
5884   for lt_tmp_nm in $lt_nm_to_check; do
5885     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5886     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5887       IFS=$lt_save_ifs
5888       test -z "$ac_dir" && ac_dir=.
5889       tmp_nm=$ac_dir/$lt_tmp_nm
5890       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5891         # Check to see if the nm accepts a BSD-compat flag.
5892         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5893         #   nm: unknown option "B" ignored
5894         # Tru64's nm complains that /dev/null is an invalid object file
5895         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5896         case $build_os in
5897         mingw*) lt_bad_file=conftest.nm/nofile ;;
5898         *) lt_bad_file=/dev/null ;;
5899         esac
5900         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5901         *$lt_bad_file* | *'Invalid file or object type'*)
5902           lt_cv_path_NM="$tmp_nm -B"
5903           break 2
5904           ;;
5905         *)
5906           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5907           */dev/null*)
5908             lt_cv_path_NM="$tmp_nm -p"
5909             break 2
5910             ;;
5911           *)
5912             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5913             continue # so that we can try to find one that supports BSD flags
5914             ;;
5915           esac
5916           ;;
5917         esac
5918       fi
5919     done
5920     IFS=$lt_save_ifs
5921   done
5922   : ${lt_cv_path_NM=no}
5923 fi
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5926 $as_echo "$lt_cv_path_NM" >&6; }
5927 if test no != "$lt_cv_path_NM"; then
5928   NM=$lt_cv_path_NM
5929 else
5930   # Didn't find any BSD compatible name lister, look for dumpbin.
5931   if test -n "$DUMPBIN"; then :
5932     # Let the user override the test.
5933   else
5934     if test -n "$ac_tool_prefix"; then
5935   for ac_prog in dumpbin "link -dump"
5936   do
5937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_DUMPBIN+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   if test -n "$DUMPBIN"; then
5945   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959   done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 DUMPBIN=$ac_cv_prog_DUMPBIN
5965 if test -n "$DUMPBIN"; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5967 $as_echo "$DUMPBIN" >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973
5974     test -n "$DUMPBIN" && break
5975   done
5976 fi
5977 if test -z "$DUMPBIN"; then
5978   ac_ct_DUMPBIN=$DUMPBIN
5979   for ac_prog in dumpbin "link -dump"
5980 do
5981   # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy $ac_prog; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   if test -n "$ac_ct_DUMPBIN"; then
5989   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5993 do
5994   IFS=$as_save_IFS
5995   test -z "$as_dir" && as_dir=.
5996     for ac_exec_ext in '' $ac_executable_extensions; do
5997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000     break 2
6001   fi
6002 done
6003   done
6004 IFS=$as_save_IFS
6005
6006 fi
6007 fi
6008 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6009 if test -n "$ac_ct_DUMPBIN"; then
6010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6011 $as_echo "$ac_ct_DUMPBIN" >&6; }
6012 else
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6015 fi
6016
6017
6018   test -n "$ac_ct_DUMPBIN" && break
6019 done
6020
6021   if test "x$ac_ct_DUMPBIN" = x; then
6022     DUMPBIN=":"
6023   else
6024     case $cross_compiling:$ac_tool_warned in
6025 yes:)
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6028 ac_tool_warned=yes ;;
6029 esac
6030     DUMPBIN=$ac_ct_DUMPBIN
6031   fi
6032 fi
6033
6034     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6035     *COFF*)
6036       DUMPBIN="$DUMPBIN -symbols -headers"
6037       ;;
6038     *)
6039       DUMPBIN=:
6040       ;;
6041     esac
6042   fi
6043   
6044   if test : != "$DUMPBIN"; then
6045     NM=$DUMPBIN
6046   fi
6047 fi
6048 test -z "$NM" && NM=nm
6049
6050
6051     
6052     
6053     
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6056 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6057 if ${lt_cv_nm_interface+:} false; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060   lt_cv_nm_interface="BSD nm"
6061   echo "int some_variable = 0;" > conftest.$ac_ext
6062   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6063   (eval "$ac_compile" 2>conftest.err)
6064   cat conftest.err >&5
6065   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6066   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6067   cat conftest.err >&5
6068   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6069   cat conftest.out >&5
6070   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6071     lt_cv_nm_interface="MS dumpbin"
6072   fi
6073   rm -f conftest*
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6076 $as_echo "$lt_cv_nm_interface" >&6; }
6077
6078 # find the maximum length of command line arguments
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6080 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6081 if ${lt_cv_sys_max_cmd_len+:} false; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084     i=0
6085   teststring=ABCD
6086
6087   case $build_os in
6088   msdosdjgpp*)
6089     # On DJGPP, this test can blow up pretty badly due to problems in libc
6090     # (any single argument exceeding 2000 bytes causes a buffer overrun
6091     # during glob expansion).  Even if it were fixed, the result of this
6092     # check would be larger than it should be.
6093     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6094     ;;
6095
6096   gnu*)
6097     # Under GNU Hurd, this test is not required because there is
6098     # no limit to the length of command line arguments.
6099     # Libtool will interpret -1 as no limit whatsoever
6100     lt_cv_sys_max_cmd_len=-1;
6101     ;;
6102
6103   cygwin* | mingw* | cegcc*)
6104     # On Win9x/ME, this test blows up -- it succeeds, but takes
6105     # about 5 minutes as the teststring grows exponentially.
6106     # Worse, since 9x/ME are not pre-emptively multitasking,
6107     # you end up with a "frozen" computer, even though with patience
6108     # the test eventually succeeds (with a max line length of 256k).
6109     # Instead, let's just punt: use the minimum linelength reported by
6110     # all of the supported platforms: 8192 (on NT/2K/XP).
6111     lt_cv_sys_max_cmd_len=8192;
6112     ;;
6113
6114   mint*)
6115     # On MiNT this can take a long time and run out of memory.
6116     lt_cv_sys_max_cmd_len=8192;
6117     ;;
6118
6119   amigaos*)
6120     # On AmigaOS with pdksh, this test takes hours, literally.
6121     # So we just punt and use a minimum line length of 8192.
6122     lt_cv_sys_max_cmd_len=8192;
6123     ;;
6124
6125   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6126     # This has been around since 386BSD, at least.  Likely further.
6127     if test -x /sbin/sysctl; then
6128       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6129     elif test -x /usr/sbin/sysctl; then
6130       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6131     else
6132       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6133     fi
6134     # And add a safety zone
6135     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6136     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6137     ;;
6138
6139   interix*)
6140     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6141     lt_cv_sys_max_cmd_len=196608
6142     ;;
6143
6144   os2*)
6145     # The test takes a long time on OS/2.
6146     lt_cv_sys_max_cmd_len=8192
6147     ;;
6148
6149   osf*)
6150     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6151     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6152     # nice to cause kernel panics so lets avoid the loop below.
6153     # First set a reasonable default.
6154     lt_cv_sys_max_cmd_len=16384
6155     #
6156     if test -x /sbin/sysconfig; then
6157       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6158         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6159       esac
6160     fi
6161     ;;
6162   sco3.2v5*)
6163     lt_cv_sys_max_cmd_len=102400
6164     ;;
6165   sysv5* | sco5v6* | sysv4.2uw2*)
6166     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6167     if test -n "$kargmax"; then
6168       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6169     else
6170       lt_cv_sys_max_cmd_len=32768
6171     fi
6172     ;;
6173   *)
6174     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6175     if test -n "$lt_cv_sys_max_cmd_len" && \
6176        test undefined != "$lt_cv_sys_max_cmd_len"; then
6177       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6178       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6179     else
6180       # Make teststring a little bigger before we do anything with it.
6181       # a 1K string should be a reasonable start.
6182       for i in 1 2 3 4 5 6 7 8; do
6183         teststring=$teststring$teststring
6184       done
6185       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6186       # If test is not a shell built-in, we'll probably end up computing a
6187       # maximum length that is only half of the actual maximum length, but
6188       # we can't tell.
6189       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6190                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6191               test 17 != "$i" # 1/2 MB should be enough
6192       do
6193         i=`expr $i + 1`
6194         teststring=$teststring$teststring
6195       done
6196       # Only check the string length outside the loop.
6197       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6198       teststring=
6199       # Add a significant safety factor because C++ compilers can tack on
6200       # massive amounts of additional arguments before passing them to the
6201       # linker.  It appears as though 1/2 is a usable value.
6202       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6203     fi
6204     ;;
6205   esac
6206
6207 fi
6208
6209 if test -n "$lt_cv_sys_max_cmd_len"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6211 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6214 $as_echo "none" >&6; }
6215 fi
6216 max_cmd_len=$lt_cv_sys_max_cmd_len
6217
6218     
6219     
6220     
6221
6222
6223 : ${CP="cp -f"}
6224 : ${MV="mv -f"}
6225 : ${RM="rm -f"}
6226
6227 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6228   lt_unset=unset
6229 else
6230   lt_unset=false
6231 fi
6232
6233     
6234     
6235     
6236
6237 # test EBCDIC or ASCII
6238 case `echo X|tr X '\101'` in
6239  A) # ASCII based system
6240     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6241   lt_SP2NL='tr \040 \012'
6242   lt_NL2SP='tr \015\012 \040\040'
6243   ;;
6244  *) # EBCDIC based system
6245   lt_SP2NL='tr \100 \n'
6246   lt_NL2SP='tr \r\n \100\100'
6247   ;;
6248 esac
6249
6250     
6251     
6252     
6253
6254     
6255     
6256     
6257
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6259 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6260 if ${lt_cv_to_host_file_cmd+:} false; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   case $host in
6264   *-*-mingw* )
6265     case $build in
6266       *-*-mingw* ) # actually msys
6267         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6268         ;;
6269       *-*-cygwin* )
6270         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6271         ;;
6272       * ) # otherwise, assume *nix
6273         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6274         ;;
6275     esac
6276     ;;
6277   *-*-cygwin* )
6278     case $build in
6279       *-*-mingw* ) # actually msys
6280         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6281         ;;
6282       *-*-cygwin* )
6283         lt_cv_to_host_file_cmd=func_convert_file_noop
6284         ;;
6285       * ) # otherwise, assume *nix
6286         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6287         ;;
6288     esac
6289     ;;
6290   * ) # unhandled hosts (and "normal" native builds)
6291     lt_cv_to_host_file_cmd=func_convert_file_noop
6292     ;;
6293 esac
6294
6295 fi
6296
6297 to_host_file_cmd=$lt_cv_to_host_file_cmd
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6299 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6300
6301     
6302     
6303     
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6306 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6307 if ${lt_cv_to_tool_file_cmd+:} false; then :
6308   $as_echo_n "(cached) " >&6
6309 else
6310   #assume ordinary cross tools, or native build.
6311 lt_cv_to_tool_file_cmd=func_convert_file_noop
6312 case $host in
6313   *-*-mingw* )
6314     case $build in
6315       *-*-mingw* ) # actually msys
6316         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6317         ;;
6318     esac
6319     ;;
6320 esac
6321
6322 fi
6323
6324 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6326 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6327
6328     
6329     
6330     
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6333 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6334 if ${lt_cv_ld_reload_flag+:} false; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   lt_cv_ld_reload_flag='-r'
6338 fi
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6340 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6341 reload_flag=$lt_cv_ld_reload_flag
6342 case $reload_flag in
6343 "" | " "*) ;;
6344 *) reload_flag=" $reload_flag" ;;
6345 esac
6346 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6347 case $host_os in
6348   cygwin* | mingw* | pw32* | cegcc*)
6349     if test yes != "$GCC"; then
6350       reload_cmds=false
6351     fi
6352     ;;
6353   darwin*)
6354     if test yes = "$GCC"; then
6355       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6356     else
6357       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6358     fi
6359     ;;
6360 esac
6361
6362     
6363     
6364     
6365
6366     
6367     
6368     
6369
6370 if test -n "$ac_tool_prefix"; then
6371   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_OBJDUMP+:} false; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   if test -n "$OBJDUMP"; then
6379   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384   IFS=$as_save_IFS
6385   test -z "$as_dir" && as_dir=.
6386     for ac_exec_ext in '' $ac_executable_extensions; do
6387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390     break 2
6391   fi
6392 done
6393   done
6394 IFS=$as_save_IFS
6395
6396 fi
6397 fi
6398 OBJDUMP=$ac_cv_prog_OBJDUMP
6399 if test -n "$OBJDUMP"; then
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6401 $as_echo "$OBJDUMP" >&6; }
6402 else
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407
6408 fi
6409 if test -z "$ac_cv_prog_OBJDUMP"; then
6410   ac_ct_OBJDUMP=$OBJDUMP
6411   # Extract the first word of "objdump", so it can be a program name with args.
6412 set dummy objdump; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   if test -n "$ac_ct_OBJDUMP"; then
6419   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426     for ac_exec_ext in '' $ac_executable_extensions; do
6427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433   done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6439 if test -n "$ac_ct_OBJDUMP"; then
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6441 $as_echo "$ac_ct_OBJDUMP" >&6; }
6442 else
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447   if test "x$ac_ct_OBJDUMP" = x; then
6448     OBJDUMP="false"
6449   else
6450     case $cross_compiling:$ac_tool_warned in
6451 yes:)
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6455 esac
6456     OBJDUMP=$ac_ct_OBJDUMP
6457   fi
6458 else
6459   OBJDUMP="$ac_cv_prog_OBJDUMP"
6460 fi
6461
6462 test -z "$OBJDUMP" && OBJDUMP=objdump
6463
6464     
6465     
6466     
6467
6468
6469
6470
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6473 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6474 if ${lt_cv_deplibs_check_method+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   lt_cv_file_magic_cmd='$MAGIC_CMD'
6478 lt_cv_file_magic_test_file=
6479 lt_cv_deplibs_check_method='unknown'
6480 # Need to set the preceding variable on all platforms that support
6481 # interlibrary dependencies.
6482 # 'none' -- dependencies not supported.
6483 # 'unknown' -- same as none, but documents that we really don't know.
6484 # 'pass_all' -- all dependencies passed with no checks.
6485 # 'test_compile' -- check by making test program.
6486 # 'file_magic [[regex]]' -- check by looking for files in library path
6487 # that responds to the $file_magic_cmd with a given extended regex.
6488 # If you have 'file' or equivalent on your system and you're not sure
6489 # whether 'pass_all' will *always* work, you probably want this one.
6490
6491 case $host_os in
6492 aix[4-9]*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495
6496 beos*)
6497   lt_cv_deplibs_check_method=pass_all
6498   ;;
6499
6500 bsdi[45]*)
6501   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6502   lt_cv_file_magic_cmd='/usr/bin/file -L'
6503   lt_cv_file_magic_test_file=/shlib/libc.so
6504   ;;
6505
6506 cygwin*)
6507   # func_win32_libid is a shell function defined in ltmain.sh
6508   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6509   lt_cv_file_magic_cmd='func_win32_libid'
6510   ;;
6511
6512 mingw* | pw32*)
6513   # Base MSYS/MinGW do not provide the 'file' command needed by
6514   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6515   # unless we find 'file', for example because we are cross-compiling.
6516   if ( file / ) >/dev/null 2>&1; then
6517     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6518     lt_cv_file_magic_cmd='func_win32_libid'
6519   else
6520     # Keep this pattern in sync with the one in func_win32_libid.
6521     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6522     lt_cv_file_magic_cmd='$OBJDUMP -f'
6523   fi
6524   ;;
6525
6526 cegcc*)
6527   # use the weaker test based on 'objdump'. See mingw*.
6528   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6529   lt_cv_file_magic_cmd='$OBJDUMP -f'
6530   ;;
6531
6532 darwin* | rhapsody*)
6533   lt_cv_deplibs_check_method=pass_all
6534   ;;
6535
6536 freebsd* | dragonfly*)
6537   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6538     case $host_cpu in
6539     i*86 )
6540       # Not sure whether the presence of OpenBSD here was a mistake.
6541       # Let's accept both of them until this is cleared up.
6542       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6543       lt_cv_file_magic_cmd=/usr/bin/file
6544       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6545       ;;
6546     esac
6547   else
6548     lt_cv_deplibs_check_method=pass_all
6549   fi
6550   ;;
6551
6552 haiku*)
6553   lt_cv_deplibs_check_method=pass_all
6554   ;;
6555
6556 hpux10.20* | hpux11*)
6557   lt_cv_file_magic_cmd=/usr/bin/file
6558   case $host_cpu in
6559   ia64*)
6560     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6561     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6562     ;;
6563   hppa*64*)
6564     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]'
6565     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6566     ;;
6567   *)
6568     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6569     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6570     ;;
6571   esac
6572   ;;
6573
6574 interix[3-9]*)
6575   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6576   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6577   ;;
6578
6579 irix5* | irix6* | nonstopux*)
6580   case $LD in
6581   *-32|*"-32 ") libmagic=32-bit;;
6582   *-n32|*"-n32 ") libmagic=N32;;
6583   *-64|*"-64 ") libmagic=64-bit;;
6584   *) libmagic=never-match;;
6585   esac
6586   lt_cv_deplibs_check_method=pass_all
6587   ;;
6588
6589 # This must be glibc/ELF.
6590 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6591   lt_cv_deplibs_check_method=pass_all
6592   ;;
6593
6594 netbsd* | netbsdelf*-gnu)
6595   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6597   else
6598     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6599   fi
6600   ;;
6601
6602 newos6*)
6603   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6604   lt_cv_file_magic_cmd=/usr/bin/file
6605   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6606   ;;
6607
6608 *nto* | *qnx*)
6609   lt_cv_deplibs_check_method=pass_all
6610   ;;
6611
6612 openbsd* | bitrig*)
6613   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6614     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6615   else
6616     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6617   fi
6618   ;;
6619
6620 osf3* | osf4* | osf5*)
6621   lt_cv_deplibs_check_method=pass_all
6622   ;;
6623
6624 rdos*)
6625   lt_cv_deplibs_check_method=pass_all
6626   ;;
6627
6628 solaris*)
6629   lt_cv_deplibs_check_method=pass_all
6630   ;;
6631
6632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6633   lt_cv_deplibs_check_method=pass_all
6634   ;;
6635
6636 sysv4 | sysv4.3*)
6637   case $host_vendor in
6638   motorola)
6639     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]'
6640     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6641     ;;
6642   ncr)
6643     lt_cv_deplibs_check_method=pass_all
6644     ;;
6645   sequent)
6646     lt_cv_file_magic_cmd='/bin/file'
6647     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6648     ;;
6649   sni)
6650     lt_cv_file_magic_cmd='/bin/file'
6651     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6652     lt_cv_file_magic_test_file=/lib/libc.so
6653     ;;
6654   siemens)
6655     lt_cv_deplibs_check_method=pass_all
6656     ;;
6657   pc)
6658     lt_cv_deplibs_check_method=pass_all
6659     ;;
6660   esac
6661   ;;
6662
6663 tpf*)
6664   lt_cv_deplibs_check_method=pass_all
6665   ;;
6666 os2*)
6667   lt_cv_deplibs_check_method=pass_all
6668   ;;
6669 esac
6670
6671 fi
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6673 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6674
6675 file_magic_glob=
6676 want_nocaseglob=no
6677 if test "$build" = "$host"; then
6678   case $host_os in
6679   mingw* | pw32*)
6680     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6681       want_nocaseglob=yes
6682     else
6683       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6684     fi
6685     ;;
6686   esac
6687 fi
6688
6689 file_magic_cmd=$lt_cv_file_magic_cmd
6690 deplibs_check_method=$lt_cv_deplibs_check_method
6691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6692
6693
6694     
6695     
6696     
6697
6698
6699     
6700     
6701     
6702
6703
6704     
6705     
6706     
6707
6708
6709     
6710     
6711     
6712
6713
6714 if test -n "$ac_tool_prefix"; then
6715   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_DLLTOOL+:} false; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   if test -n "$DLLTOOL"; then
6723   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730     for ac_exec_ext in '' $ac_executable_extensions; do
6731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737   done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 DLLTOOL=$ac_cv_prog_DLLTOOL
6743 if test -n "$DLLTOOL"; then
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6745 $as_echo "$DLLTOOL" >&6; }
6746 else
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751
6752 fi
6753 if test -z "$ac_cv_prog_DLLTOOL"; then
6754   ac_ct_DLLTOOL=$DLLTOOL
6755   # Extract the first word of "dlltool", so it can be a program name with args.
6756 set dummy dlltool; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   if test -n "$ac_ct_DLLTOOL"; then
6763   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770     for ac_exec_ext in '' $ac_executable_extensions; do
6771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777   done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6783 if test -n "$ac_ct_DLLTOOL"; then
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6785 $as_echo "$ac_ct_DLLTOOL" >&6; }
6786 else
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791   if test "x$ac_ct_DLLTOOL" = x; then
6792     DLLTOOL="false"
6793   else
6794     case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800     DLLTOOL=$ac_ct_DLLTOOL
6801   fi
6802 else
6803   DLLTOOL="$ac_cv_prog_DLLTOOL"
6804 fi
6805
6806 test -z "$DLLTOOL" && DLLTOOL=dlltool
6807
6808     
6809     
6810     
6811
6812
6813
6814
6815
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6818 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6819 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   lt_cv_sharedlib_from_linklib_cmd='unknown'
6823
6824 case $host_os in
6825 cygwin* | mingw* | pw32* | cegcc*)
6826   # two different shell functions defined in ltmain.sh;
6827   # decide which one to use based on capabilities of $DLLTOOL
6828   case `$DLLTOOL --help 2>&1` in
6829   *--identify-strict*)
6830     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6831     ;;
6832   *)
6833     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6834     ;;
6835   esac
6836   ;;
6837 *)
6838   # fallback: assume linklib IS sharedlib
6839   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6840   ;;
6841 esac
6842
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6845 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6846 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6847 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6848
6849
6850     
6851     
6852     
6853
6854
6855 if test -n "$ac_tool_prefix"; then
6856   for ac_prog in ar
6857   do
6858     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_AR+:} false; then :
6863   $as_echo_n "(cached) " >&6
6864 else
6865   if test -n "$AR"; then
6866   ac_cv_prog_AR="$AR" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871   IFS=$as_save_IFS
6872   test -z "$as_dir" && as_dir=.
6873     for ac_exec_ext in '' $ac_executable_extensions; do
6874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877     break 2
6878   fi
6879 done
6880   done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 AR=$ac_cv_prog_AR
6886 if test -n "$AR"; then
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6888 $as_echo "$AR" >&6; }
6889 else
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894
6895     test -n "$AR" && break
6896   done
6897 fi
6898 if test -z "$AR"; then
6899   ac_ct_AR=$AR
6900   for ac_prog in ar
6901 do
6902   # Extract the first word of "$ac_prog", so it can be a program name with args.
6903 set dummy $ac_prog; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   if test -n "$ac_ct_AR"; then
6910   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917     for ac_exec_ext in '' $ac_executable_extensions; do
6918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919     ac_cv_prog_ac_ct_AR="$ac_prog"
6920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924   done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6930 if test -n "$ac_ct_AR"; then
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6932 $as_echo "$ac_ct_AR" >&6; }
6933 else
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938
6939   test -n "$ac_ct_AR" && break
6940 done
6941
6942   if test "x$ac_ct_AR" = x; then
6943     AR="false"
6944   else
6945     case $cross_compiling:$ac_tool_warned in
6946 yes:)
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951     AR=$ac_ct_AR
6952   fi
6953 fi
6954
6955 : ${AR=ar}
6956 : ${AR_FLAGS=cru}
6957
6958     
6959     
6960     
6961
6962
6963     
6964     
6965     
6966
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6969 $as_echo_n "checking for archiver @FILE support... " >&6; }
6970 if ${lt_cv_ar_at_file+:} false; then :
6971   $as_echo_n "(cached) " >&6
6972 else
6973   lt_cv_ar_at_file=no
6974    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h.  */
6976
6977 int
6978 main ()
6979 {
6980
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 if ac_fn_c_try_compile "$LINENO"; then :
6986   echo conftest.$ac_objext > conftest.lst
6987       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6988       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6989   (eval $lt_ar_try) 2>&5
6990   ac_status=$?
6991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992   test $ac_status = 0; }
6993       if test 0 -eq "$ac_status"; then
6994         # Ensure the archiver fails upon bogus file names.
6995         rm -f conftest.$ac_objext libconftest.a
6996         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6997   (eval $lt_ar_try) 2>&5
6998   ac_status=$?
6999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000   test $ac_status = 0; }
7001         if test 0 -ne "$ac_status"; then
7002           lt_cv_ar_at_file=@
7003         fi
7004       fi
7005       rm -f conftest.* libconftest.a
7006      
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009   
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7012 $as_echo "$lt_cv_ar_at_file" >&6; }
7013
7014 if test no = "$lt_cv_ar_at_file"; then
7015   archiver_list_spec=
7016 else
7017   archiver_list_spec=$lt_cv_ar_at_file
7018 fi
7019
7020     
7021     
7022     
7023
7024
7025
7026 if test -n "$ac_tool_prefix"; then
7027   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}strip; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_STRIP+:} false; then :
7032   $as_echo_n "(cached) " >&6
7033 else
7034   if test -n "$STRIP"; then
7035   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040   IFS=$as_save_IFS
7041   test -z "$as_dir" && as_dir=.
7042     for ac_exec_ext in '' $ac_executable_extensions; do
7043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046     break 2
7047   fi
7048 done
7049   done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 STRIP=$ac_cv_prog_STRIP
7055 if test -n "$STRIP"; then
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7057 $as_echo "$STRIP" >&6; }
7058 else
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063
7064 fi
7065 if test -z "$ac_cv_prog_STRIP"; then
7066   ac_ct_STRIP=$STRIP
7067   # Extract the first word of "strip", so it can be a program name with args.
7068 set dummy strip; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7072   $as_echo_n "(cached) " >&6
7073 else
7074   if test -n "$ac_ct_STRIP"; then
7075   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082     for ac_exec_ext in '' $ac_executable_extensions; do
7083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084     ac_cv_prog_ac_ct_STRIP="strip"
7085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089   done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7095 if test -n "$ac_ct_STRIP"; then
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7097 $as_echo "$ac_ct_STRIP" >&6; }
7098 else
7099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103   if test "x$ac_ct_STRIP" = x; then
7104     STRIP=":"
7105   else
7106     case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112     STRIP=$ac_ct_STRIP
7113   fi
7114 else
7115   STRIP="$ac_cv_prog_STRIP"
7116 fi
7117
7118 test -z "$STRIP" && STRIP=:
7119
7120     
7121     
7122     
7123
7124
7125 if test -n "$ac_tool_prefix"; then
7126   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_RANLIB+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   if test -n "$RANLIB"; then
7134   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141     for ac_exec_ext in '' $ac_executable_extensions; do
7142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148   done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 RANLIB=$ac_cv_prog_RANLIB
7154 if test -n "$RANLIB"; then
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7156 $as_echo "$RANLIB" >&6; }
7157 else
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_RANLIB"; then
7165   ac_ct_RANLIB=$RANLIB
7166   # Extract the first word of "ranlib", so it can be a program name with args.
7167 set dummy ranlib; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$ac_ct_RANLIB"; then
7174   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183     ac_cv_prog_ac_ct_RANLIB="ranlib"
7184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7194 if test -n "$ac_ct_RANLIB"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7196 $as_echo "$ac_ct_RANLIB" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202   if test "x$ac_ct_RANLIB" = x; then
7203     RANLIB=":"
7204   else
7205     case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211     RANLIB=$ac_ct_RANLIB
7212   fi
7213 else
7214   RANLIB="$ac_cv_prog_RANLIB"
7215 fi
7216
7217 test -z "$RANLIB" && RANLIB=:
7218
7219     
7220     
7221     
7222
7223
7224 # Determine commands to create old-style static archives.
7225 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7226 old_postinstall_cmds='chmod 644 $oldlib'
7227 old_postuninstall_cmds=
7228
7229 if test -n "$RANLIB"; then
7230   case $host_os in
7231   bitrig* | openbsd*)
7232     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7233     ;;
7234   *)
7235     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7236     ;;
7237   esac
7238   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7239 fi
7240
7241 case $host_os in
7242   darwin*)
7243     lock_old_archive_extraction=yes ;;
7244   *)
7245     lock_old_archive_extraction=no ;;
7246 esac
7247
7248     
7249     
7250     
7251
7252
7253     
7254     
7255     
7256
7257
7258     
7259     
7260     
7261
7262
7263     
7264     
7265     
7266
7267
7268
7269
7270     
7271     
7272     
7273
7274     
7275     
7276     
7277
7278     
7279     
7280     
7281
7282     
7283     
7284     
7285
7286 # If no C compiler was specified, use CC.
7287 LTCC=${LTCC-"$CC"}
7288
7289 # If no C compiler flags were specified, use CFLAGS.
7290 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7291
7292 # Allow CC to be a program name with arguments.
7293 compiler=$CC
7294
7295
7296 # Check for command to grab the raw symbol name followed by C symbol from nm.
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7298 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7299 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   
7303 # These are sane defaults that work on at least a few old systems.
7304 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7305
7306 # Character class describing NM global symbol codes.
7307 symcode='[BCDEGRST]'
7308
7309 # Regexp to match symbols that can be accessed directly from C.
7310 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7311
7312 # Define system-specific variables.
7313 case $host_os in
7314 aix*)
7315   symcode='[BCDT]'
7316   ;;
7317 cygwin* | mingw* | pw32* | cegcc*)
7318   symcode='[ABCDGISTW]'
7319   ;;
7320 hpux*)
7321   if test ia64 = "$host_cpu"; then
7322     symcode='[ABCDEGRST]'
7323   fi
7324   ;;
7325 irix* | nonstopux*)
7326   symcode='[BCDEGRST]'
7327   ;;
7328 osf*)
7329   symcode='[BCDEGQRST]'
7330   ;;
7331 solaris*)
7332   symcode='[BDRT]'
7333   ;;
7334 sco3.2v5*)
7335   symcode='[DT]'
7336   ;;
7337 sysv4.2uw2*)
7338   symcode='[DT]'
7339   ;;
7340 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7341   symcode='[ABDT]'
7342   ;;
7343 sysv4)
7344   symcode='[DFNSTU]'
7345   ;;
7346 esac
7347
7348 # If we're using GNU nm, then use its standard symbol codes.
7349 case `$NM -V 2>&1` in
7350 *GNU* | *'with BFD'*)
7351   symcode='[ABCDGIRSTW]' ;;
7352 esac
7353
7354 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7355   # Gets list of data symbols to import.
7356   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7357   # Adjust the below global symbol transforms to fixup imported variables.
7358   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7359   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7360   lt_c_name_lib_hook="\
7361   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7362   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7363 else
7364   # Disable hooks by default.
7365   lt_cv_sys_global_symbol_to_import=
7366   lt_cdecl_hook=
7367   lt_c_name_hook=
7368   lt_c_name_lib_hook=
7369 fi
7370
7371 # Transform an extracted symbol line into a proper C declaration.
7372 # Some systems (esp. on ia64) link data and code symbols differently,
7373 # so use this general approach.
7374 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7375 $lt_cdecl_hook\
7376 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7377 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7378
7379 # Transform an extracted symbol line into symbol name and symbol address
7380 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7381 $lt_c_name_hook\
7382 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7383 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7384
7385 # Transform an extracted symbol line into symbol name with lib prefix and
7386 # symbol address.
7387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7388 $lt_c_name_lib_hook\
7389 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7390 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7391 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7392
7393 # Handle CRLF in mingw tool chain
7394 opt_cr=
7395 case $build_os in
7396 mingw*)
7397   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7398   ;;
7399 esac
7400
7401 # Try without a prefix underscore, then with it.
7402 for ac_symprfx in "" "_"; do
7403
7404   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7405   symxfrm="\\1 $ac_symprfx\\2 \\2"
7406
7407   # Write the raw and C identifiers.
7408   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7409     # Fake it for dumpbin and say T for any non-static function,
7410     # D for any global variable and I for any imported variable.
7411     # Also find C++ and __fastcall symbols from MSVC++,
7412     # which start with @ or ?.
7413     lt_cv_sys_global_symbol_pipe="$AWK '"\
7414 "     {last_section=section; section=\$ 3};"\
7415 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7416 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7417 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7418 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7419 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7420 "     \$ 0!~/External *\|/{next};"\
7421 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7422 "     {if(hide[section]) next};"\
7423 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7424 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7425 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7426 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7427 "     ' prfx=^$ac_symprfx"
7428   else
7429     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7430   fi
7431   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7432
7433   # Check to see that the pipe works correctly.
7434   pipe_works=no
7435
7436   rm -f conftest*
7437   cat > conftest.$ac_ext <<_LT_EOF
7438 #ifdef __cplusplus
7439 extern "C" {
7440 #endif
7441 char nm_test_var;
7442 void nm_test_func(void);
7443 void nm_test_func(void){}
7444 #ifdef __cplusplus
7445 }
7446 #endif
7447 int main(){nm_test_var='a';nm_test_func();return(0);}
7448 _LT_EOF
7449
7450   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7451   (eval $ac_compile) 2>&5
7452   ac_status=$?
7453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7454   test $ac_status = 0; }; then
7455     # Now try to grab the symbols.
7456     nlist=conftest.nm
7457     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7458   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7459   ac_status=$?
7460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461   test $ac_status = 0; } && test -s "$nlist"; then
7462       # Try sorting and uniquifying the output.
7463       if sort "$nlist" | uniq > "$nlist"T; then
7464         mv -f "$nlist"T "$nlist"
7465       else
7466         rm -f "$nlist"T
7467       fi
7468
7469       # Make sure that we snagged all the symbols we need.
7470       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7471         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7472           cat <<_LT_EOF > conftest.$ac_ext
7473 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7474 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7475 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7476    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7477 # define LT@&t@_DLSYM_CONST
7478 #elif defined __osf__
7479 /* This system does not cope well with relocations in const data.  */
7480 # define LT@&t@_DLSYM_CONST
7481 #else
7482 # define LT@&t@_DLSYM_CONST const
7483 #endif
7484
7485 #ifdef __cplusplus
7486 extern "C" {
7487 #endif
7488
7489 _LT_EOF
7490           # Now generate the symbol file.
7491           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7492
7493           cat <<_LT_EOF >> conftest.$ac_ext
7494
7495 /* The mapping between symbol names and symbols.  */
7496 LT@&t@_DLSYM_CONST struct {
7497   const char *name;
7498   void       *address;
7499 }
7500 lt__PROGRAM__LTX_preloaded_symbols[] =
7501 {
7502   { "@PROGRAM@", (void *) 0 },
7503 _LT_EOF
7504           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7505           cat <<\_LT_EOF >> conftest.$ac_ext
7506   {0, (void *) 0}
7507 };
7508
7509 /* This works around a problem in FreeBSD linker */
7510 #ifdef FREEBSD_WORKAROUND
7511 static const void *lt_preloaded_setup() {
7512   return lt__PROGRAM__LTX_preloaded_symbols;
7513 }
7514 #endif
7515
7516 #ifdef __cplusplus
7517 }
7518 #endif
7519 _LT_EOF
7520           # Now try linking the two files.
7521           mv conftest.$ac_objext conftstm.$ac_objext
7522           lt_globsym_save_LIBS=$LIBS
7523           lt_globsym_save_CFLAGS=$CFLAGS
7524           LIBS=conftstm.$ac_objext
7525           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7526           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7527   (eval $ac_link) 2>&5
7528   ac_status=$?
7529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7531             pipe_works=yes
7532           fi
7533           LIBS=$lt_globsym_save_LIBS
7534           CFLAGS=$lt_globsym_save_CFLAGS
7535         else
7536           echo "cannot find nm_test_func in $nlist" >&5
7537         fi
7538       else
7539         echo "cannot find nm_test_var in $nlist" >&5
7540       fi
7541     else
7542       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7543     fi
7544   else
7545     echo "$progname: failed program was:" >&5
7546     cat conftest.$ac_ext >&5
7547   fi
7548   rm -rf conftest* conftst*
7549
7550   # Do not use the global_symbol_pipe unless it works.
7551   if test yes = "$pipe_works"; then
7552     break
7553   else
7554     lt_cv_sys_global_symbol_pipe=
7555   fi
7556 done
7557
7558 fi
7559
7560 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7561   lt_cv_sys_global_symbol_to_cdecl=
7562 fi
7563 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7565 $as_echo "failed" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7568 $as_echo "ok" >&6; }
7569 fi
7570
7571 # Response file support.
7572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7573   nm_file_list_spec='@'
7574 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7575   nm_file_list_spec='@'
7576 fi
7577
7578
7579     
7580     
7581     
7582
7583
7584     
7585     
7586     
7587
7588
7589     
7590     
7591     
7592
7593
7594     
7595     
7596     
7597
7598
7599     
7600     
7601     
7602
7603
7604     
7605     
7606     
7607
7608
7609     
7610     
7611     
7612
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7615 $as_echo_n "checking for sysroot... " >&6; }
7616
7617 @%:@ Check whether --with-sysroot was given.
7618 if test "${with_sysroot+set}" = set; then :
7619   withval=$with_sysroot; 
7620 else
7621   with_sysroot=no
7622 fi
7623
7624
7625 lt_sysroot=
7626 case $with_sysroot in #(
7627  yes)
7628    if test yes = "$GCC"; then
7629      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7630    fi
7631    ;; #(
7632  /*)
7633    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7634    ;; #(
7635  no|'')
7636    ;; #(
7637  *)
7638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7639 $as_echo "$with_sysroot" >&6; }
7640    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7641    ;;
7642 esac
7643
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7645 $as_echo "${lt_sysroot:-no}" >&6; }
7646
7647     
7648     
7649     
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7652 $as_echo_n "checking for a working dd... " >&6; }
7653 if ${ac_cv_path_lt_DD+:} false; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   printf 0123456789abcdef0123456789abcdef >conftest.i
7657 cat conftest.i conftest.i >conftest2.i
7658 : ${lt_DD:=$DD}
7659 if test -z "$lt_DD"; then
7660   ac_path_lt_DD_found=false
7661   # Loop through the user's path and test for each of PROGNAME-LIST
7662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665   IFS=$as_save_IFS
7666   test -z "$as_dir" && as_dir=.
7667     for ac_prog in dd; do
7668     for ac_exec_ext in '' $ac_executable_extensions; do
7669       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7670       as_fn_executable_p "$ac_path_lt_DD" || continue
7671 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7672   cmp -s conftest.i conftest.out \
7673   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7674 fi
7675       $ac_path_lt_DD_found && break 3
7676     done
7677   done
7678   done
7679 IFS=$as_save_IFS
7680   if test -z "$ac_cv_path_lt_DD"; then
7681     :
7682   fi
7683 else
7684   ac_cv_path_lt_DD=$lt_DD
7685 fi
7686
7687 rm -f conftest.i conftest2.i conftest.out
7688 fi
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7690 $as_echo "$ac_cv_path_lt_DD" >&6; }
7691
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7694 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7695 if ${lt_cv_truncate_bin+:} false; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   printf 0123456789abcdef0123456789abcdef >conftest.i
7699 cat conftest.i conftest.i >conftest2.i
7700 lt_cv_truncate_bin=
7701 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7702   cmp -s conftest.i conftest.out \
7703   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7704 fi
7705 rm -f conftest.i conftest2.i conftest.out
7706 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7709 $as_echo "$lt_cv_truncate_bin" >&6; }
7710
7711     
7712     
7713     
7714
7715
7716
7717 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7718 func_cc_basename ()
7719 {
7720     for cc_temp in @S|@*""; do
7721       case $cc_temp in
7722         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7723         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7724         \-*) ;;
7725         *) break;;
7726       esac
7727     done
7728     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7729 }
7730
7731 @%:@ Check whether --enable-libtool-lock was given.
7732 if test "${enable_libtool_lock+set}" = set; then :
7733   enableval=$enable_libtool_lock; 
7734 fi
7735
7736 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7737
7738 # Some flags need to be propagated to the compiler or linker for good
7739 # libtool support.
7740 case $host in
7741 ia64-*-hpux*)
7742   # Find out what ABI is being produced by ac_compile, and set mode
7743   # options accordingly.
7744   echo 'int i;' > conftest.$ac_ext
7745   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7746   (eval $ac_compile) 2>&5
7747   ac_status=$?
7748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749   test $ac_status = 0; }; then
7750     case `/usr/bin/file conftest.$ac_objext` in
7751       *ELF-32*)
7752         HPUX_IA64_MODE=32
7753         ;;
7754       *ELF-64*)
7755         HPUX_IA64_MODE=64
7756         ;;
7757     esac
7758   fi
7759   rm -rf conftest*
7760   ;;
7761 *-*-irix6*)
7762   # Find out what ABI is being produced by ac_compile, and set linker
7763   # options accordingly.
7764   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7765   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7766   (eval $ac_compile) 2>&5
7767   ac_status=$?
7768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7769   test $ac_status = 0; }; then
7770     if test yes = "$lt_cv_prog_gnu_ld"; then
7771       case `/usr/bin/file conftest.$ac_objext` in
7772         *32-bit*)
7773           LD="${LD-ld} -melf32bsmip"
7774           ;;
7775         *N32*)
7776           LD="${LD-ld} -melf32bmipn32"
7777           ;;
7778         *64-bit*)
7779           LD="${LD-ld} -melf64bmip"
7780         ;;
7781       esac
7782     else
7783       case `/usr/bin/file conftest.$ac_objext` in
7784         *32-bit*)
7785           LD="${LD-ld} -32"
7786           ;;
7787         *N32*)
7788           LD="${LD-ld} -n32"
7789           ;;
7790         *64-bit*)
7791           LD="${LD-ld} -64"
7792           ;;
7793       esac
7794     fi
7795   fi
7796   rm -rf conftest*
7797   ;;
7798
7799 mips64*-*linux*)
7800   # Find out what ABI is being produced by ac_compile, and set linker
7801   # options accordingly.
7802   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7803   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7804   (eval $ac_compile) 2>&5
7805   ac_status=$?
7806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7807   test $ac_status = 0; }; then
7808     emul=elf
7809     case `/usr/bin/file conftest.$ac_objext` in
7810       *32-bit*)
7811         emul="${emul}32"
7812         ;;
7813       *64-bit*)
7814         emul="${emul}64"
7815         ;;
7816     esac
7817     case `/usr/bin/file conftest.$ac_objext` in
7818       *MSB*)
7819         emul="${emul}btsmip"
7820         ;;
7821       *LSB*)
7822         emul="${emul}ltsmip"
7823         ;;
7824     esac
7825     case `/usr/bin/file conftest.$ac_objext` in
7826       *N32*)
7827         emul="${emul}n32"
7828         ;;
7829     esac
7830     LD="${LD-ld} -m $emul"
7831   fi
7832   rm -rf conftest*
7833   ;;
7834
7835 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7836 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7837   # Find out what ABI is being produced by ac_compile, and set linker
7838   # options accordingly.  Note that the listed cases only cover the
7839   # situations where additional linker options are needed (such as when
7840   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7841   # vice versa); the common cases where no linker options are needed do
7842   # not appear in the list.
7843   echo 'int i;' > conftest.$ac_ext
7844   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7845   (eval $ac_compile) 2>&5
7846   ac_status=$?
7847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848   test $ac_status = 0; }; then
7849     case `/usr/bin/file conftest.o` in
7850       *32-bit*)
7851         case $host in
7852           x86_64-*kfreebsd*-gnu)
7853             LD="${LD-ld} -m elf_i386_fbsd"
7854             ;;
7855           x86_64-*linux*)
7856             case `/usr/bin/file conftest.o` in
7857               *x86-64*)
7858                 LD="${LD-ld} -m elf32_x86_64"
7859                 ;;
7860               *)
7861                 LD="${LD-ld} -m elf_i386"
7862                 ;;
7863             esac
7864             ;;
7865           powerpc64le-*linux*)
7866             LD="${LD-ld} -m elf32lppclinux"
7867             ;;
7868           powerpc64-*linux*)
7869             LD="${LD-ld} -m elf32ppclinux"
7870             ;;
7871           s390x-*linux*)
7872             LD="${LD-ld} -m elf_s390"
7873             ;;
7874           sparc64-*linux*)
7875             LD="${LD-ld} -m elf32_sparc"
7876             ;;
7877         esac
7878         ;;
7879       *64-bit*)
7880         case $host in
7881           x86_64-*kfreebsd*-gnu)
7882             LD="${LD-ld} -m elf_x86_64_fbsd"
7883             ;;
7884           x86_64-*linux*)
7885             LD="${LD-ld} -m elf_x86_64"
7886             ;;
7887           powerpcle-*linux*)
7888             LD="${LD-ld} -m elf64lppc"
7889             ;;
7890           powerpc-*linux*)
7891             LD="${LD-ld} -m elf64ppc"
7892             ;;
7893           s390*-*linux*|s390*-*tpf*)
7894             LD="${LD-ld} -m elf64_s390"
7895             ;;
7896           sparc*-*linux*)
7897             LD="${LD-ld} -m elf64_sparc"
7898             ;;
7899         esac
7900         ;;
7901     esac
7902   fi
7903   rm -rf conftest*
7904   ;;
7905
7906 *-*-sco3.2v5*)
7907   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7908   SAVE_CFLAGS=$CFLAGS
7909   CFLAGS="$CFLAGS -belf"
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7911 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7912 if ${lt_cv_cc_needs_belf+:} false; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   ac_ext=c
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920
7921      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h.  */
7923
7924 int
7925 main ()
7926 {
7927
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 if ac_fn_c_try_link "$LINENO"; then :
7933   lt_cv_cc_needs_belf=yes
7934 else
7935   lt_cv_cc_needs_belf=no
7936 fi
7937 rm -f core conftest.err conftest.$ac_objext \
7938     conftest$ac_exeext conftest.$ac_ext
7939      ac_ext=c
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945 fi
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7947 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7948   if test yes != "$lt_cv_cc_needs_belf"; then
7949     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7950     CFLAGS=$SAVE_CFLAGS
7951   fi
7952   ;;
7953 *-*solaris*)
7954   # Find out what ABI is being produced by ac_compile, and set linker
7955   # options accordingly.
7956   echo 'int i;' > conftest.$ac_ext
7957   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7958   (eval $ac_compile) 2>&5
7959   ac_status=$?
7960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961   test $ac_status = 0; }; then
7962     case `/usr/bin/file conftest.o` in
7963     *64-bit*)
7964       case $lt_cv_prog_gnu_ld in
7965       yes*)
7966         case $host in
7967         i?86-*-solaris*|x86_64-*-solaris*)
7968           LD="${LD-ld} -m elf_x86_64"
7969           ;;
7970         sparc*-*-solaris*)
7971           LD="${LD-ld} -m elf64_sparc"
7972           ;;
7973         esac
7974         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7975         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7976           LD=${LD-ld}_sol2
7977         fi
7978         ;;
7979       *)
7980         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7981           LD="${LD-ld} -64"
7982         fi
7983         ;;
7984       esac
7985       ;;
7986     esac
7987   fi
7988   rm -rf conftest*
7989   ;;
7990 esac
7991
7992 need_locks=$enable_libtool_lock
7993
7994 if test -n "$ac_tool_prefix"; then
7995   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7996 set dummy ${ac_tool_prefix}mt; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   if test -n "$MANIFEST_TOOL"; then
8003   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   test -z "$as_dir" && as_dir=.
8010     for ac_exec_ext in '' $ac_executable_extensions; do
8011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017   done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8023 if test -n "$MANIFEST_TOOL"; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8025 $as_echo "$MANIFEST_TOOL" >&6; }
8026 else
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031
8032 fi
8033 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8034   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8035   # Extract the first word of "mt", so it can be a program name with args.
8036 set dummy mt; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   if test -n "$ac_ct_MANIFEST_TOOL"; then
8043   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050     for ac_exec_ext in '' $ac_executable_extensions; do
8051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057   done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8063 if test -n "$ac_ct_MANIFEST_TOOL"; then
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8065 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8066 else
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8069 fi
8070
8071   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8072     MANIFEST_TOOL=":"
8073   else
8074     case $cross_compiling:$ac_tool_warned in
8075 yes:)
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078 ac_tool_warned=yes ;;
8079 esac
8080     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8081   fi
8082 else
8083   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8084 fi
8085
8086 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8088 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8089 if ${lt_cv_path_mainfest_tool+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   lt_cv_path_mainfest_tool=no
8093   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8094   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8095   cat conftest.err >&5
8096   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8097     lt_cv_path_mainfest_tool=yes
8098   fi
8099   rm -f conftest*
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8102 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8103 if test yes != "$lt_cv_path_mainfest_tool"; then
8104   MANIFEST_TOOL=:
8105 fi
8106
8107     
8108     
8109     
8110
8111
8112   case $host_os in
8113     rhapsody* | darwin*)
8114     if test -n "$ac_tool_prefix"; then
8115   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8116 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   if test -n "$DSYMUTIL"; then
8123   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128   IFS=$as_save_IFS
8129   test -z "$as_dir" && as_dir=.
8130     for ac_exec_ext in '' $ac_executable_extensions; do
8131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134     break 2
8135   fi
8136 done
8137   done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8143 if test -n "$DSYMUTIL"; then
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8145 $as_echo "$DSYMUTIL" >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151
8152 fi
8153 if test -z "$ac_cv_prog_DSYMUTIL"; then
8154   ac_ct_DSYMUTIL=$DSYMUTIL
8155   # Extract the first word of "dsymutil", so it can be a program name with args.
8156 set dummy dsymutil; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   if test -n "$ac_ct_DSYMUTIL"; then
8163   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168   IFS=$as_save_IFS
8169   test -z "$as_dir" && as_dir=.
8170     for ac_exec_ext in '' $ac_executable_extensions; do
8171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174     break 2
8175   fi
8176 done
8177   done
8178 IFS=$as_save_IFS
8179
8180 fi
8181 fi
8182 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8183 if test -n "$ac_ct_DSYMUTIL"; then
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8185 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8186 else
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191   if test "x$ac_ct_DSYMUTIL" = x; then
8192     DSYMUTIL=":"
8193   else
8194     case $cross_compiling:$ac_tool_warned in
8195 yes:)
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8198 ac_tool_warned=yes ;;
8199 esac
8200     DSYMUTIL=$ac_ct_DSYMUTIL
8201   fi
8202 else
8203   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8204 fi
8205
8206     if test -n "$ac_tool_prefix"; then
8207   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if ${ac_cv_prog_NMEDIT+:} false; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   if test -n "$NMEDIT"; then
8215   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220   IFS=$as_save_IFS
8221   test -z "$as_dir" && as_dir=.
8222     for ac_exec_ext in '' $ac_executable_extensions; do
8223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226     break 2
8227   fi
8228 done
8229   done
8230 IFS=$as_save_IFS
8231
8232 fi
8233 fi
8234 NMEDIT=$ac_cv_prog_NMEDIT
8235 if test -n "$NMEDIT"; then
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8237 $as_echo "$NMEDIT" >&6; }
8238 else
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242
8243
8244 fi
8245 if test -z "$ac_cv_prog_NMEDIT"; then
8246   ac_ct_NMEDIT=$NMEDIT
8247   # Extract the first word of "nmedit", so it can be a program name with args.
8248 set dummy nmedit; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   if test -n "$ac_ct_NMEDIT"; then
8255   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262     for ac_exec_ext in '' $ac_executable_extensions; do
8263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269   done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8275 if test -n "$ac_ct_NMEDIT"; then
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8277 $as_echo "$ac_ct_NMEDIT" >&6; }
8278 else
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283   if test "x$ac_ct_NMEDIT" = x; then
8284     NMEDIT=":"
8285   else
8286     case $cross_compiling:$ac_tool_warned in
8287 yes:)
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8291 esac
8292     NMEDIT=$ac_ct_NMEDIT
8293   fi
8294 else
8295   NMEDIT="$ac_cv_prog_NMEDIT"
8296 fi
8297
8298     if test -n "$ac_tool_prefix"; then
8299   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8300 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if ${ac_cv_prog_LIPO+:} false; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   if test -n "$LIPO"; then
8307   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312   IFS=$as_save_IFS
8313   test -z "$as_dir" && as_dir=.
8314     for ac_exec_ext in '' $ac_executable_extensions; do
8315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318     break 2
8319   fi
8320 done
8321   done
8322 IFS=$as_save_IFS
8323
8324 fi
8325 fi
8326 LIPO=$ac_cv_prog_LIPO
8327 if test -n "$LIPO"; then
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8329 $as_echo "$LIPO" >&6; }
8330 else
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335
8336 fi
8337 if test -z "$ac_cv_prog_LIPO"; then
8338   ac_ct_LIPO=$LIPO
8339   # Extract the first word of "lipo", so it can be a program name with args.
8340 set dummy lipo; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   if test -n "$ac_ct_LIPO"; then
8347   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352   IFS=$as_save_IFS
8353   test -z "$as_dir" && as_dir=.
8354     for ac_exec_ext in '' $ac_executable_extensions; do
8355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356     ac_cv_prog_ac_ct_LIPO="lipo"
8357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358     break 2
8359   fi
8360 done
8361   done
8362 IFS=$as_save_IFS
8363
8364 fi
8365 fi
8366 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8367 if test -n "$ac_ct_LIPO"; then
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8369 $as_echo "$ac_ct_LIPO" >&6; }
8370 else
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375   if test "x$ac_ct_LIPO" = x; then
8376     LIPO=":"
8377   else
8378     case $cross_compiling:$ac_tool_warned in
8379 yes:)
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382 ac_tool_warned=yes ;;
8383 esac
8384     LIPO=$ac_ct_LIPO
8385   fi
8386 else
8387   LIPO="$ac_cv_prog_LIPO"
8388 fi
8389
8390     if test -n "$ac_tool_prefix"; then
8391   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}otool; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_OTOOL+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   if test -n "$OTOOL"; then
8399   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404   IFS=$as_save_IFS
8405   test -z "$as_dir" && as_dir=.
8406     for ac_exec_ext in '' $ac_executable_extensions; do
8407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410     break 2
8411   fi
8412 done
8413   done
8414 IFS=$as_save_IFS
8415
8416 fi
8417 fi
8418 OTOOL=$ac_cv_prog_OTOOL
8419 if test -n "$OTOOL"; then
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8421 $as_echo "$OTOOL" >&6; }
8422 else
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427
8428 fi
8429 if test -z "$ac_cv_prog_OTOOL"; then
8430   ac_ct_OTOOL=$OTOOL
8431   # Extract the first word of "otool", so it can be a program name with args.
8432 set dummy otool; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   if test -n "$ac_ct_OTOOL"; then
8439   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444   IFS=$as_save_IFS
8445   test -z "$as_dir" && as_dir=.
8446     for ac_exec_ext in '' $ac_executable_extensions; do
8447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448     ac_cv_prog_ac_ct_OTOOL="otool"
8449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450     break 2
8451   fi
8452 done
8453   done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8459 if test -n "$ac_ct_OTOOL"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8461 $as_echo "$ac_ct_OTOOL" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467   if test "x$ac_ct_OTOOL" = x; then
8468     OTOOL=":"
8469   else
8470     case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476     OTOOL=$ac_ct_OTOOL
8477   fi
8478 else
8479   OTOOL="$ac_cv_prog_OTOOL"
8480 fi
8481
8482     if test -n "$ac_tool_prefix"; then
8483   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_OTOOL64+:} false; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   if test -n "$OTOOL64"; then
8491   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 OTOOL64=$ac_cv_prog_OTOOL64
8511 if test -n "$OTOOL64"; then
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8513 $as_echo "$OTOOL64" >&6; }
8514 else
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520 fi
8521 if test -z "$ac_cv_prog_OTOOL64"; then
8522   ac_ct_OTOOL64=$OTOOL64
8523   # Extract the first word of "otool64", so it can be a program name with args.
8524 set dummy otool64; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   if test -n "$ac_ct_OTOOL64"; then
8531   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536   IFS=$as_save_IFS
8537   test -z "$as_dir" && as_dir=.
8538     for ac_exec_ext in '' $ac_executable_extensions; do
8539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540     ac_cv_prog_ac_ct_OTOOL64="otool64"
8541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542     break 2
8543   fi
8544 done
8545   done
8546 IFS=$as_save_IFS
8547
8548 fi
8549 fi
8550 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8551 if test -n "$ac_ct_OTOOL64"; then
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8553 $as_echo "$ac_ct_OTOOL64" >&6; }
8554 else
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559   if test "x$ac_ct_OTOOL64" = x; then
8560     OTOOL64=":"
8561   else
8562     case $cross_compiling:$ac_tool_warned in
8563 yes:)
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8567 esac
8568     OTOOL64=$ac_ct_OTOOL64
8569   fi
8570 else
8571   OTOOL64="$ac_cv_prog_OTOOL64"
8572 fi
8573
8574     
8575     
8576     
8577     
8578
8579     
8580     
8581     
8582     
8583
8584     
8585     
8586     
8587     
8588
8589     
8590     
8591     
8592     
8593
8594     
8595     
8596     
8597     
8598
8599
8600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8601 $as_echo_n "checking for -single_module linker flag... " >&6; }
8602 if ${lt_cv_apple_cc_single_mod+:} false; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   lt_cv_apple_cc_single_mod=no
8606       if test -z "$LT_MULTI_MODULE"; then
8607         # By default we will add the -single_module flag. You can override
8608         # by either setting the environment variable LT_MULTI_MODULE
8609         # non-empty at configure time, or by adding -multi_module to the
8610         # link flags.
8611         rm -rf libconftest.dylib*
8612         echo "int foo(void){return 1;}" > conftest.c
8613         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8614 -dynamiclib -Wl,-single_module conftest.c" >&5
8615         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8616           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8617         _lt_result=$?
8618         # If there is a non-empty error log, and "single_module"
8619         # appears in it, assume the flag caused a linker warning
8620         if test -s conftest.err && $GREP single_module conftest.err; then
8621           cat conftest.err >&5
8622         # Otherwise, if the output was created with a 0 exit code from
8623         # the compiler, it worked.
8624         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8625           lt_cv_apple_cc_single_mod=yes
8626         else
8627           cat conftest.err >&5
8628         fi
8629         rm -rf libconftest.dylib*
8630         rm -f conftest.*
8631       fi
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8634 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8635
8636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8637 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8638 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   lt_cv_ld_exported_symbols_list=no
8642       save_LDFLAGS=$LDFLAGS
8643       echo "_main" > conftest.sym
8644       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8645       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h.  */
8647
8648 int
8649 main ()
8650 {
8651
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 if ac_fn_c_try_link "$LINENO"; then :
8657   lt_cv_ld_exported_symbols_list=yes
8658 else
8659   lt_cv_ld_exported_symbols_list=no
8660 fi
8661 rm -f core conftest.err conftest.$ac_objext \
8662     conftest$ac_exeext conftest.$ac_ext
8663         LDFLAGS=$save_LDFLAGS
8664     
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8667 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8668
8669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8670 $as_echo_n "checking for -force_load linker flag... " >&6; }
8671 if ${lt_cv_ld_force_load+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   lt_cv_ld_force_load=no
8675       cat > conftest.c << _LT_EOF
8676 int forced_loaded() { return 2;}
8677 _LT_EOF
8678       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8679       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8680       echo "$AR cru libconftest.a conftest.o" >&5
8681       $AR cru libconftest.a conftest.o 2>&5
8682       echo "$RANLIB libconftest.a" >&5
8683       $RANLIB libconftest.a 2>&5
8684       cat > conftest.c << _LT_EOF
8685 int main() { return 0;}
8686 _LT_EOF
8687       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8688       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8689       _lt_result=$?
8690       if test -s conftest.err && $GREP force_load conftest.err; then
8691         cat conftest.err >&5
8692       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8693         lt_cv_ld_force_load=yes
8694       else
8695         cat conftest.err >&5
8696       fi
8697         rm -f conftest.err libconftest.a conftest conftest.c
8698         rm -rf conftest.dSYM
8699     
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8702 $as_echo "$lt_cv_ld_force_load" >&6; }
8703     case $host_os in
8704     rhapsody* | darwin1.[012])
8705       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8706     darwin1.*)
8707       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8708     darwin*) # darwin 5.x on
8709       # if running on 10.5 or later, the deployment target defaults
8710       # to the OS version, if on x86, and 10.4, the deployment
8711       # target defaults to 10.4. Don't you love it?
8712       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8713         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8714           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8715         10.[012][,.]*)
8716           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8717         10.*)
8718           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8719       esac
8720     ;;
8721   esac
8722     if test yes = "$lt_cv_apple_cc_single_mod"; then
8723       _lt_dar_single_mod='$single_module'
8724     fi
8725     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8726       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8727     else
8728       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8729     fi
8730     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8731       _lt_dsymutil='~$DSYMUTIL $lib || :'
8732     else
8733       _lt_dsymutil=
8734     fi
8735     ;;
8736   esac
8737
8738 # func_munge_path_list VARIABLE PATH
8739 # -----------------------------------
8740 # VARIABLE is name of variable containing _space_ separated list of
8741 # directories to be munged by the contents of PATH, which is string
8742 # having a format:
8743 # "DIR[:DIR]:"
8744 #       string "DIR[ DIR]" will be prepended to VARIABLE
8745 # ":DIR[:DIR]"
8746 #       string "DIR[ DIR]" will be appended to VARIABLE
8747 # "DIRP[:DIRP]::[DIRA:]DIRA"
8748 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8749 #       "DIRA[ DIRA]" will be appended to VARIABLE
8750 # "DIR[:DIR]"
8751 #       VARIABLE will be replaced by "DIR[ DIR]"
8752 func_munge_path_list ()
8753 {
8754     case x@S|@2 in
8755     x)
8756         ;;
8757     *:)
8758         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
8759         ;;
8760     x:*)
8761         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
8762         ;;
8763     *::*)
8764         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8765         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
8766         ;;
8767     *)
8768         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
8769         ;;
8770     esac
8771 }
8772
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8775 $as_echo_n "checking for ANSI C header files... " >&6; }
8776 if ${ac_cv_header_stdc+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h.  */
8781 #include <stdlib.h>
8782 #include <stdarg.h>
8783 #include <string.h>
8784 #include <float.h>
8785
8786 int
8787 main ()
8788 {
8789
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"; then :
8795   ac_cv_header_stdc=yes
8796 else
8797   ac_cv_header_stdc=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800
8801 if test $ac_cv_header_stdc = yes; then
8802   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h.  */
8805 #include <string.h>
8806
8807 _ACEOF
8808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809   $EGREP "memchr" >/dev/null 2>&1; then :
8810   
8811 else
8812   ac_cv_header_stdc=no
8813 fi
8814 rm -f conftest*
8815
8816 fi
8817
8818 if test $ac_cv_header_stdc = yes; then
8819   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h.  */
8822 #include <stdlib.h>
8823
8824 _ACEOF
8825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8826   $EGREP "free" >/dev/null 2>&1; then :
8827   
8828 else
8829   ac_cv_header_stdc=no
8830 fi
8831 rm -f conftest*
8832
8833 fi
8834
8835 if test $ac_cv_header_stdc = yes; then
8836   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8837   if test "$cross_compiling" = yes; then :
8838   :
8839 else
8840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h.  */
8842 #include <ctype.h>
8843 #include <stdlib.h>
8844 #if ((' ' & 0x0FF) == 0x020)
8845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8847 #else
8848 # define ISLOWER(c) \
8849                    (('a' <= (c) && (c) <= 'i') \
8850                      || ('j' <= (c) && (c) <= 'r') \
8851                      || ('s' <= (c) && (c) <= 'z'))
8852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8853 #endif
8854
8855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8856 int
8857 main ()
8858 {
8859   int i;
8860   for (i = 0; i < 256; i++)
8861     if (XOR (islower (i), ISLOWER (i))
8862         || toupper (i) != TOUPPER (i))
8863       return 2;
8864   return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_run "$LINENO"; then :
8868   
8869 else
8870   ac_cv_header_stdc=no
8871 fi
8872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873   conftest.$ac_objext conftest.beam conftest.$ac_ext
8874 fi
8875
8876 fi
8877 fi
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8879 $as_echo "$ac_cv_header_stdc" >&6; }
8880 if test $ac_cv_header_stdc = yes; then
8881   
8882 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8883
8884 fi
8885
8886 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8887 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8888                   inttypes.h stdint.h unistd.h
8889 do :
8890   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8892 "
8893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8894   cat >>confdefs.h <<_ACEOF
8895 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 _ACEOF
8897  
8898 fi
8899
8900 done
8901
8902
8903 for ac_header in dlfcn.h
8904 do :
8905   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8906 "
8907 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8908   cat >>confdefs.h <<_ACEOF
8909 @%:@define HAVE_DLFCN_H 1
8910 _ACEOF
8911  
8912 fi
8913
8914 done
8915
8916
8917
8918
8919 func_stripname_cnf ()
8920 {
8921   case @S|@2 in
8922   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
8923   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
8924   esac
8925 } # func_stripname_cnf
8926
8927
8928
8929
8930
8931 # Set options
8932
8933
8934
8935         enable_dlopen=no
8936   
8937
8938   enable_win32_dll=no
8939   
8940
8941             @%:@ Check whether --enable-shared was given.
8942 if test "${enable_shared+set}" = set; then :
8943   enableval=$enable_shared; p=${PACKAGE-default}
8944     case $enableval in
8945     yes) enable_shared=yes ;;
8946     no) enable_shared=no ;;
8947     *)
8948       enable_shared=no
8949       # Look at the argument we got.  We use all the common list separators.
8950       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8951       for pkg in $enableval; do
8952         IFS=$lt_save_ifs
8953         if test "X$pkg" = "X$p"; then
8954           enable_shared=yes
8955         fi
8956       done
8957       IFS=$lt_save_ifs
8958       ;;
8959     esac
8960 else
8961   enable_shared=yes
8962 fi
8963
8964
8965     
8966     
8967     
8968     
8969
8970
8971
8972   @%:@ Check whether --enable-static was given.
8973 if test "${enable_static+set}" = set; then :
8974   enableval=$enable_static; p=${PACKAGE-default}
8975     case $enableval in
8976     yes) enable_static=yes ;;
8977     no) enable_static=no ;;
8978     *)
8979      enable_static=no
8980       # Look at the argument we got.  We use all the common list separators.
8981       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8982       for pkg in $enableval; do
8983         IFS=$lt_save_ifs
8984         if test "X$pkg" = "X$p"; then
8985           enable_static=yes
8986         fi
8987       done
8988       IFS=$lt_save_ifs
8989       ;;
8990     esac
8991 else
8992   enable_static=yes
8993 fi
8994
8995
8996     
8997     
8998     
8999     
9000
9001
9002
9003   
9004 @%:@ Check whether --with-pic was given.
9005 if test "${with_pic+set}" = set; then :
9006   withval=$with_pic; lt_p=${PACKAGE-default}
9007     case $withval in
9008     yes|no) pic_mode=$withval ;;
9009     *)
9010       pic_mode=default
9011       # Look at the argument we got.  We use all the common list separators.
9012       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9013       for lt_pkg in $withval; do
9014         IFS=$lt_save_ifs
9015         if test "X$lt_pkg" = "X$lt_p"; then
9016           pic_mode=yes
9017         fi
9018       done
9019       IFS=$lt_save_ifs
9020       ;;
9021     esac
9022 else
9023   pic_mode=default
9024 fi
9025
9026
9027
9028     
9029     
9030     
9031
9032
9033   @%:@ Check whether --enable-fast-install was given.
9034 if test "${enable_fast_install+set}" = set; then :
9035   enableval=$enable_fast_install; p=${PACKAGE-default}
9036     case $enableval in
9037     yes) enable_fast_install=yes ;;
9038     no) enable_fast_install=no ;;
9039     *)
9040       enable_fast_install=no
9041       # Look at the argument we got.  We use all the common list separators.
9042       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9043       for pkg in $enableval; do
9044         IFS=$lt_save_ifs
9045         if test "X$pkg" = "X$p"; then
9046           enable_fast_install=yes
9047         fi
9048       done
9049       IFS=$lt_save_ifs
9050       ;;
9051     esac
9052 else
9053   enable_fast_install=yes
9054 fi
9055
9056
9057
9058     
9059     
9060     
9061
9062
9063   shared_archive_member_spec=
9064 case $host,$enable_shared in
9065 power*-*-aix[5-9]*,yes)
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9067 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9068   
9069 @%:@ Check whether --with-aix-soname was given.
9070 if test "${with_aix_soname+set}" = set; then :
9071   withval=$with_aix_soname; case $withval in
9072     aix|svr4|both)
9073       ;;
9074     *)
9075       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9076       ;;
9077     esac
9078     lt_cv_with_aix_soname=$with_aix_soname
9079 else
9080   if ${lt_cv_with_aix_soname+:} false; then :
9081   $as_echo_n "(cached) " >&6
9082 else
9083   lt_cv_with_aix_soname=aix
9084 fi
9085
9086     with_aix_soname=$lt_cv_with_aix_soname
9087 fi
9088
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9090 $as_echo "$with_aix_soname" >&6; }
9091   if test aix != "$with_aix_soname"; then
9092     # For the AIX way of multilib, we name the shared archive member
9093     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9094     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9095     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9096     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9097     if test 64 = "${OBJECT_MODE-32}"; then
9098       shared_archive_member_spec=shr_64
9099     else
9100       shared_archive_member_spec=shr
9101     fi
9102   fi
9103   ;;
9104 *)
9105   with_aix_soname=aix
9106   ;;
9107 esac
9108
9109
9110     
9111     
9112     
9113
9114
9115   
9116
9117
9118 # This can be used to rebuild libtool when needed
9119 LIBTOOL_DEPS=$ltmain
9120
9121 # Always use our own libtool.
9122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9123
9124
9125
9126     
9127     
9128     
9129
9130     
9131     
9132     
9133
9134     
9135     
9136     
9137
9138     
9139     
9140     
9141
9142     
9143     
9144     
9145
9146     
9147     
9148     
9149
9150     
9151     
9152     
9153 test -z "$LN_S" && LN_S="ln -s"
9154
9155     
9156     
9157     
9158
9159     
9160     
9161     
9162
9163     
9164     
9165     
9166
9167
9168 if test -n "${ZSH_VERSION+set}"; then
9169    setopt NO_GLOB_SUBST
9170 fi
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9173 $as_echo_n "checking for objdir... " >&6; }
9174 if ${lt_cv_objdir+:} false; then :
9175   $as_echo_n "(cached) " >&6
9176 else
9177   rm -f .libs 2>/dev/null
9178 mkdir .libs 2>/dev/null
9179 if test -d .libs; then
9180   lt_cv_objdir=.libs
9181 else
9182   # MS-DOS does not allow filenames that begin with a dot.
9183   lt_cv_objdir=_libs
9184 fi
9185 rmdir .libs 2>/dev/null
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9188 $as_echo "$lt_cv_objdir" >&6; }
9189 objdir=$lt_cv_objdir
9190
9191     
9192     
9193     
9194
9195 cat >>confdefs.h <<_ACEOF
9196 @%:@define LT_OBJDIR "$lt_cv_objdir/"
9197 _ACEOF
9198
9199
9200
9201
9202 case $host_os in
9203 aix3*)
9204   # AIX sometimes has problems with the GCC collect2 program.  For some
9205   # reason, if we set the COLLECT_NAMES environment variable, the problems
9206   # vanish in a puff of smoke.
9207   if test set != "${COLLECT_NAMES+set}"; then
9208     COLLECT_NAMES=
9209     export COLLECT_NAMES
9210   fi
9211   ;;
9212 esac
9213
9214 # Global variables:
9215 ofile=libtool
9216 can_build_shared=yes
9217
9218 # All known linkers require a '.a' archive for static linking (except MSVC,
9219 # which needs '.lib').
9220 libext=a
9221
9222 with_gnu_ld=$lt_cv_prog_gnu_ld
9223
9224 old_CC=$CC
9225 old_CFLAGS=$CFLAGS
9226
9227 # Set sane defaults for various variables
9228 test -z "$CC" && CC=cc
9229 test -z "$LTCC" && LTCC=$CC
9230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9231 test -z "$LD" && LD=ld
9232 test -z "$ac_objext" && ac_objext=o
9233
9234 func_cc_basename $compiler
9235 cc_basename=$func_cc_basename_result
9236
9237
9238 # Only perform the check for file, if the check method requires it
9239 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9240 case $deplibs_check_method in
9241 file_magic*)
9242   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9244 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9245 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9246   $as_echo_n "(cached) " >&6
9247 else
9248   case $MAGIC_CMD in
9249 [\\/*] |  ?:[\\/]*)
9250   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9251   ;;
9252 *)
9253   lt_save_MAGIC_CMD=$MAGIC_CMD
9254   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9255   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9256   for ac_dir in $ac_dummy; do
9257     IFS=$lt_save_ifs
9258     test -z "$ac_dir" && ac_dir=.
9259     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9260       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9261       if test -n "$file_magic_test_file"; then
9262         case $deplibs_check_method in
9263         "file_magic "*)
9264           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9265           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9266           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9267             $EGREP "$file_magic_regex" > /dev/null; then
9268             :
9269           else
9270             cat <<_LT_EOF 1>&2
9271
9272 *** Warning: the command libtool uses to detect shared libraries,
9273 *** $file_magic_cmd, produces output that libtool cannot recognize.
9274 *** The result is that libtool may fail to recognize shared libraries
9275 *** as such.  This will affect the creation of libtool libraries that
9276 *** depend on shared libraries, but programs linked with such libtool
9277 *** libraries will work regardless of this problem.  Nevertheless, you
9278 *** may want to report the problem to your system manager and/or to
9279 *** bug-libtool@gnu.org
9280
9281 _LT_EOF
9282           fi ;;
9283         esac
9284       fi
9285       break
9286     fi
9287   done
9288   IFS=$lt_save_ifs
9289   MAGIC_CMD=$lt_save_MAGIC_CMD
9290   ;;
9291 esac
9292 fi
9293
9294 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9295 if test -n "$MAGIC_CMD"; then
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9297 $as_echo "$MAGIC_CMD" >&6; }
9298 else
9299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9301 fi
9302
9303     
9304     
9305     
9306
9307 if test -z "$lt_cv_path_MAGIC_CMD"; then
9308   if test -n "$ac_tool_prefix"; then
9309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9310 $as_echo_n "checking for file... " >&6; }
9311 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9312   $as_echo_n "(cached) " >&6
9313 else
9314   case $MAGIC_CMD in
9315 [\\/*] |  ?:[\\/]*)
9316   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9317   ;;
9318 *)
9319   lt_save_MAGIC_CMD=$MAGIC_CMD
9320   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9321   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9322   for ac_dir in $ac_dummy; do
9323     IFS=$lt_save_ifs
9324     test -z "$ac_dir" && ac_dir=.
9325     if test -f "$ac_dir/file"; then
9326       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9327       if test -n "$file_magic_test_file"; then
9328         case $deplibs_check_method in
9329         "file_magic "*)
9330           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9331           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9332           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9333             $EGREP "$file_magic_regex" > /dev/null; then
9334             :
9335           else
9336             cat <<_LT_EOF 1>&2
9337
9338 *** Warning: the command libtool uses to detect shared libraries,
9339 *** $file_magic_cmd, produces output that libtool cannot recognize.
9340 *** The result is that libtool may fail to recognize shared libraries
9341 *** as such.  This will affect the creation of libtool libraries that
9342 *** depend on shared libraries, but programs linked with such libtool
9343 *** libraries will work regardless of this problem.  Nevertheless, you
9344 *** may want to report the problem to your system manager and/or to
9345 *** bug-libtool@gnu.org
9346
9347 _LT_EOF
9348           fi ;;
9349         esac
9350       fi
9351       break
9352     fi
9353   done
9354   IFS=$lt_save_ifs
9355   MAGIC_CMD=$lt_save_MAGIC_CMD
9356   ;;
9357 esac
9358 fi
9359
9360 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9361 if test -n "$MAGIC_CMD"; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9363 $as_echo "$MAGIC_CMD" >&6; }
9364 else
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370   else
9371     MAGIC_CMD=:
9372   fi
9373 fi
9374
9375   fi
9376   ;;
9377 esac
9378
9379 # Use C for the default configuration in the libtool script
9380
9381 lt_save_CC=$CC
9382 ac_ext=c
9383 ac_cpp='$CPP $CPPFLAGS'
9384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9387
9388
9389 # Source file extension for C test sources.
9390 ac_ext=c
9391
9392 # Object file extension for compiled C test sources.
9393 objext=o
9394 objext=$objext
9395
9396 # Code to be used in simple compile tests
9397 lt_simple_compile_test_code="int some_variable = 0;"
9398
9399 # Code to be used in simple link tests
9400 lt_simple_link_test_code='int main(){return(0);}'
9401
9402
9403
9404
9405
9406
9407
9408 # If no C compiler was specified, use CC.
9409 LTCC=${LTCC-"$CC"}
9410
9411 # If no C compiler flags were specified, use CFLAGS.
9412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9413
9414 # Allow CC to be a program name with arguments.
9415 compiler=$CC
9416
9417 # Save the default compiler, since it gets overwritten when the other
9418 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9419 compiler_DEFAULT=$CC
9420
9421 # save warnings/boilerplate of simple test code
9422 ac_outfile=conftest.$ac_objext
9423 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9424 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9425 _lt_compiler_boilerplate=`cat conftest.err`
9426 $RM conftest*
9427
9428 ac_outfile=conftest.$ac_objext
9429 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9430 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9431 _lt_linker_boilerplate=`cat conftest.err`
9432 $RM -r conftest*
9433
9434
9435 ## CAVEAT EMPTOR:
9436 ## There is no encapsulation within the following macros, do not change
9437 ## the running order or otherwise move them around unless you know exactly
9438 ## what you are doing...
9439 if test -n "$compiler"; then
9440   
9441 lt_prog_compiler_no_builtin_flag=
9442
9443 if test yes = "$GCC"; then
9444   case $cc_basename in
9445   nvcc*)
9446     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9447   *)
9448     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9449   esac
9450
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9452 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9453 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   lt_cv_prog_compiler_rtti_exceptions=no
9457    ac_outfile=conftest.$ac_objext
9458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9459    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9460    # Insert the option either (1) after the last *FLAGS variable, or
9461    # (2) before a word containing "conftest.", or (3) at the end.
9462    # Note that $ac_compile itself does not contain backslashes and begins
9463    # with a dollar sign (not a hyphen), so the echo should work correctly.
9464    # The option is referenced via a variable to avoid confusing sed.
9465    lt_compile=`echo "$ac_compile" | $SED \
9466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9468    -e 's:$: $lt_compiler_flag:'`
9469    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9470    (eval "$lt_compile" 2>conftest.err)
9471    ac_status=$?
9472    cat conftest.err >&5
9473    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474    if (exit $ac_status) && test -s "$ac_outfile"; then
9475      # The compiler can only warn and ignore the option if not recognized
9476      # So say no if there are warnings other than the usual output.
9477      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9478      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9480        lt_cv_prog_compiler_rtti_exceptions=yes
9481      fi
9482    fi
9483    $RM conftest*
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9487 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9488
9489 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9490     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9491 else
9492     :
9493 fi
9494
9495 fi
9496
9497     
9498     
9499     
9500
9501
9502   lt_prog_compiler_wl=
9503 lt_prog_compiler_pic=
9504 lt_prog_compiler_static=
9505
9506
9507   if test yes = "$GCC"; then
9508     lt_prog_compiler_wl='-Wl,'
9509     lt_prog_compiler_static='-static'
9510
9511     case $host_os in
9512       aix*)
9513       # All AIX code is PIC.
9514       if test ia64 = "$host_cpu"; then
9515         # AIX 5 now supports IA64 processor
9516         lt_prog_compiler_static='-Bstatic'
9517       fi
9518       lt_prog_compiler_pic='-fPIC'
9519       ;;
9520
9521     amigaos*)
9522       case $host_cpu in
9523       powerpc)
9524             # see comment about AmigaOS4 .so support
9525             lt_prog_compiler_pic='-fPIC'
9526         ;;
9527       m68k)
9528             # FIXME: we need at least 68020 code to build shared libraries, but
9529             # adding the '-m68020' flag to GCC prevents building anything better,
9530             # like '-m68040'.
9531             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9532         ;;
9533       esac
9534       ;;
9535
9536     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9537       # PIC is the default for these OSes.
9538       ;;
9539
9540     mingw* | cygwin* | pw32* | os2* | cegcc*)
9541       # This hack is so that the source file can tell whether it is being
9542       # built for inclusion in a dll (and should export symbols for example).
9543       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9544       # (--disable-auto-import) libraries
9545       lt_prog_compiler_pic='-DDLL_EXPORT'
9546       case $host_os in
9547       os2*)
9548         lt_prog_compiler_static='$wl-static'
9549         ;;
9550       esac
9551       ;;
9552
9553     darwin* | rhapsody*)
9554       # PIC is the default on this platform
9555       # Common symbols not allowed in MH_DYLIB files
9556       lt_prog_compiler_pic='-fno-common'
9557       ;;
9558
9559     haiku*)
9560       # PIC is the default for Haiku.
9561       # The "-static" flag exists, but is broken.
9562       lt_prog_compiler_static=
9563       ;;
9564
9565     hpux*)
9566       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9567       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9568       # sets the default TLS model and affects inlining.
9569       case $host_cpu in
9570       hppa*64*)
9571         # +Z the default
9572         ;;
9573       *)
9574         lt_prog_compiler_pic='-fPIC'
9575         ;;
9576       esac
9577       ;;
9578
9579     interix[3-9]*)
9580       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9581       # Instead, we relocate shared libraries at runtime.
9582       ;;
9583
9584     msdosdjgpp*)
9585       # Just because we use GCC doesn't mean we suddenly get shared libraries
9586       # on systems that don't support them.
9587       lt_prog_compiler_can_build_shared=no
9588       enable_shared=no
9589       ;;
9590
9591     *nto* | *qnx*)
9592       # QNX uses GNU C++, but need to define -shared option too, otherwise
9593       # it will coredump.
9594       lt_prog_compiler_pic='-fPIC -shared'
9595       ;;
9596
9597     sysv4*MP*)
9598       if test -d /usr/nec; then
9599         lt_prog_compiler_pic=-Kconform_pic
9600       fi
9601       ;;
9602
9603     *)
9604       lt_prog_compiler_pic='-fPIC'
9605       ;;
9606     esac
9607
9608     case $cc_basename in
9609     nvcc*) # Cuda Compiler Driver 2.2
9610       lt_prog_compiler_wl='-Xlinker '
9611       if test -n "$lt_prog_compiler_pic"; then
9612         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9613       fi
9614       ;;
9615     esac
9616   else
9617     # PORTME Check for flag to pass linker flags through the system compiler.
9618     case $host_os in
9619     aix*)
9620       lt_prog_compiler_wl='-Wl,'
9621       if test ia64 = "$host_cpu"; then
9622         # AIX 5 now supports IA64 processor
9623         lt_prog_compiler_static='-Bstatic'
9624       else
9625         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9626       fi
9627       ;;
9628
9629     darwin* | rhapsody*)
9630       # PIC is the default on this platform
9631       # Common symbols not allowed in MH_DYLIB files
9632       lt_prog_compiler_pic='-fno-common'
9633       case $cc_basename in
9634       nagfor*)
9635         # NAG Fortran compiler
9636         lt_prog_compiler_wl='-Wl,-Wl,,'
9637         lt_prog_compiler_pic='-PIC'
9638         lt_prog_compiler_static='-Bstatic'
9639         ;;
9640       esac
9641       ;;
9642
9643     mingw* | cygwin* | pw32* | os2* | cegcc*)
9644       # This hack is so that the source file can tell whether it is being
9645       # built for inclusion in a dll (and should export symbols for example).
9646       lt_prog_compiler_pic='-DDLL_EXPORT'
9647       case $host_os in
9648       os2*)
9649         lt_prog_compiler_static='$wl-static'
9650         ;;
9651       esac
9652       ;;
9653
9654     hpux9* | hpux10* | hpux11*)
9655       lt_prog_compiler_wl='-Wl,'
9656       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9657       # not for PA HP-UX.
9658       case $host_cpu in
9659       hppa*64*|ia64*)
9660         # +Z the default
9661         ;;
9662       *)
9663         lt_prog_compiler_pic='+Z'
9664         ;;
9665       esac
9666       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9667       lt_prog_compiler_static='$wl-a ${wl}archive'
9668       ;;
9669
9670     irix5* | irix6* | nonstopux*)
9671       lt_prog_compiler_wl='-Wl,'
9672       # PIC (with -KPIC) is the default.
9673       lt_prog_compiler_static='-non_shared'
9674       ;;
9675
9676     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9677       case $cc_basename in
9678       # old Intel for x86_64, which still supported -KPIC.
9679       ecc*)
9680         lt_prog_compiler_wl='-Wl,'
9681         lt_prog_compiler_pic='-KPIC'
9682         lt_prog_compiler_static='-static'
9683         ;;
9684       # icc used to be incompatible with GCC.
9685       # ICC 10 doesn't accept -KPIC any more.
9686       icc* | ifort*)
9687         lt_prog_compiler_wl='-Wl,'
9688         lt_prog_compiler_pic='-fPIC'
9689         lt_prog_compiler_static='-static'
9690         ;;
9691       # Lahey Fortran 8.1.
9692       lf95*)
9693         lt_prog_compiler_wl='-Wl,'
9694         lt_prog_compiler_pic='--shared'
9695         lt_prog_compiler_static='--static'
9696         ;;
9697       nagfor*)
9698         # NAG Fortran compiler
9699         lt_prog_compiler_wl='-Wl,-Wl,,'
9700         lt_prog_compiler_pic='-PIC'
9701         lt_prog_compiler_static='-Bstatic'
9702         ;;
9703       tcc*)
9704         # Fabrice Bellard et al's Tiny C Compiler
9705         lt_prog_compiler_wl='-Wl,'
9706         lt_prog_compiler_pic='-fPIC'
9707         lt_prog_compiler_static='-static'
9708         ;;
9709       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9710         # Portland Group compilers (*not* the Pentium gcc compiler,
9711         # which looks to be a dead project)
9712         lt_prog_compiler_wl='-Wl,'
9713         lt_prog_compiler_pic='-fpic'
9714         lt_prog_compiler_static='-Bstatic'
9715         ;;
9716       ccc*)
9717         lt_prog_compiler_wl='-Wl,'
9718         # All Alpha code is PIC.
9719         lt_prog_compiler_static='-non_shared'
9720         ;;
9721       xl* | bgxl* | bgf* | mpixl*)
9722         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9723         lt_prog_compiler_wl='-Wl,'
9724         lt_prog_compiler_pic='-qpic'
9725         lt_prog_compiler_static='-qstaticlink'
9726         ;;
9727       *)
9728         case `$CC -V 2>&1 | sed 5q` in
9729         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9730           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9731           lt_prog_compiler_pic='-KPIC'
9732           lt_prog_compiler_static='-Bstatic'
9733           lt_prog_compiler_wl=''
9734           ;;
9735         *Sun\ F* | *Sun*Fortran*)
9736           lt_prog_compiler_pic='-KPIC'
9737           lt_prog_compiler_static='-Bstatic'
9738           lt_prog_compiler_wl='-Qoption ld '
9739           ;;
9740         *Sun\ C*)
9741           # Sun C 5.9
9742           lt_prog_compiler_pic='-KPIC'
9743           lt_prog_compiler_static='-Bstatic'
9744           lt_prog_compiler_wl='-Wl,'
9745           ;;
9746         *Intel*\ [CF]*Compiler*)
9747           lt_prog_compiler_wl='-Wl,'
9748           lt_prog_compiler_pic='-fPIC'
9749           lt_prog_compiler_static='-static'
9750           ;;
9751         *Portland\ Group*)
9752           lt_prog_compiler_wl='-Wl,'
9753           lt_prog_compiler_pic='-fpic'
9754           lt_prog_compiler_static='-Bstatic'
9755           ;;
9756         esac
9757         ;;
9758       esac
9759       ;;
9760
9761     newsos6)
9762       lt_prog_compiler_pic='-KPIC'
9763       lt_prog_compiler_static='-Bstatic'
9764       ;;
9765
9766     *nto* | *qnx*)
9767       # QNX uses GNU C++, but need to define -shared option too, otherwise
9768       # it will coredump.
9769       lt_prog_compiler_pic='-fPIC -shared'
9770       ;;
9771
9772     osf3* | osf4* | osf5*)
9773       lt_prog_compiler_wl='-Wl,'
9774       # All OSF/1 code is PIC.
9775       lt_prog_compiler_static='-non_shared'
9776       ;;
9777
9778     rdos*)
9779       lt_prog_compiler_static='-non_shared'
9780       ;;
9781
9782     solaris*)
9783       lt_prog_compiler_pic='-KPIC'
9784       lt_prog_compiler_static='-Bstatic'
9785       case $cc_basename in
9786       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9787         lt_prog_compiler_wl='-Qoption ld ';;
9788       *)
9789         lt_prog_compiler_wl='-Wl,';;
9790       esac
9791       ;;
9792
9793     sunos4*)
9794       lt_prog_compiler_wl='-Qoption ld '
9795       lt_prog_compiler_pic='-PIC'
9796       lt_prog_compiler_static='-Bstatic'
9797       ;;
9798
9799     sysv4 | sysv4.2uw2* | sysv4.3*)
9800       lt_prog_compiler_wl='-Wl,'
9801       lt_prog_compiler_pic='-KPIC'
9802       lt_prog_compiler_static='-Bstatic'
9803       ;;
9804
9805     sysv4*MP*)
9806       if test -d /usr/nec; then
9807         lt_prog_compiler_pic='-Kconform_pic'
9808         lt_prog_compiler_static='-Bstatic'
9809       fi
9810       ;;
9811
9812     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9813       lt_prog_compiler_wl='-Wl,'
9814       lt_prog_compiler_pic='-KPIC'
9815       lt_prog_compiler_static='-Bstatic'
9816       ;;
9817
9818     unicos*)
9819       lt_prog_compiler_wl='-Wl,'
9820       lt_prog_compiler_can_build_shared=no
9821       ;;
9822
9823     uts4*)
9824       lt_prog_compiler_pic='-pic'
9825       lt_prog_compiler_static='-Bstatic'
9826       ;;
9827
9828     *)
9829       lt_prog_compiler_can_build_shared=no
9830       ;;
9831     esac
9832   fi
9833
9834 case $host_os in
9835   # For platforms that do not support PIC, -DPIC is meaningless:
9836   *djgpp*)
9837     lt_prog_compiler_pic=
9838     ;;
9839   *)
9840     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9841     ;;
9842 esac
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9845 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9846 if ${lt_cv_prog_compiler_pic+:} false; then :
9847   $as_echo_n "(cached) " >&6
9848 else
9849   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9852 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9853 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9854
9855 #
9856 # Check to make sure the PIC flag actually works.
9857 #
9858 if test -n "$lt_prog_compiler_pic"; then
9859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9860 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9861 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9862   $as_echo_n "(cached) " >&6
9863 else
9864   lt_cv_prog_compiler_pic_works=no
9865    ac_outfile=conftest.$ac_objext
9866    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9868    # Insert the option either (1) after the last *FLAGS variable, or
9869    # (2) before a word containing "conftest.", or (3) at the end.
9870    # Note that $ac_compile itself does not contain backslashes and begins
9871    # with a dollar sign (not a hyphen), so the echo should work correctly.
9872    # The option is referenced via a variable to avoid confusing sed.
9873    lt_compile=`echo "$ac_compile" | $SED \
9874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876    -e 's:$: $lt_compiler_flag:'`
9877    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9878    (eval "$lt_compile" 2>conftest.err)
9879    ac_status=$?
9880    cat conftest.err >&5
9881    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882    if (exit $ac_status) && test -s "$ac_outfile"; then
9883      # The compiler can only warn and ignore the option if not recognized
9884      # So say no if there are warnings other than the usual output.
9885      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9886      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9887      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9888        lt_cv_prog_compiler_pic_works=yes
9889      fi
9890    fi
9891    $RM conftest*
9892
9893 fi
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9895 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9896
9897 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9898     case $lt_prog_compiler_pic in
9899      "" | " "*) ;;
9900      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9901      esac
9902 else
9903     lt_prog_compiler_pic=
9904      lt_prog_compiler_can_build_shared=no
9905 fi
9906
9907 fi
9908
9909     
9910     
9911     
9912
9913
9914
9915     
9916     
9917     
9918
9919 #
9920 # Check to make sure the static flag actually works.
9921 #
9922 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9925 if ${lt_cv_prog_compiler_static_works+:} false; then :
9926   $as_echo_n "(cached) " >&6
9927 else
9928   lt_cv_prog_compiler_static_works=no
9929    save_LDFLAGS=$LDFLAGS
9930    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9931    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9932    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9933      # The linker can only warn and ignore the option if not recognized
9934      # So say no if there are warnings
9935      if test -s conftest.err; then
9936        # Append any errors to the config.log.
9937        cat conftest.err 1>&5
9938        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9939        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9940        if diff conftest.exp conftest.er2 >/dev/null; then
9941          lt_cv_prog_compiler_static_works=yes
9942        fi
9943      else
9944        lt_cv_prog_compiler_static_works=yes
9945      fi
9946    fi
9947    $RM -r conftest*
9948    LDFLAGS=$save_LDFLAGS
9949
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9952 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9953
9954 if test yes = "$lt_cv_prog_compiler_static_works"; then
9955     :
9956 else
9957     lt_prog_compiler_static=
9958 fi
9959
9960
9961     
9962     
9963     
9964
9965
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9968 if ${lt_cv_prog_compiler_c_o+:} false; then :
9969   $as_echo_n "(cached) " >&6
9970 else
9971   lt_cv_prog_compiler_c_o=no
9972    $RM -r conftest 2>/dev/null
9973    mkdir conftest
9974    cd conftest
9975    mkdir out
9976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9977
9978    lt_compiler_flag="-o out/conftest2.$ac_objext"
9979    # Insert the option either (1) after the last *FLAGS variable, or
9980    # (2) before a word containing "conftest.", or (3) at the end.
9981    # Note that $ac_compile itself does not contain backslashes and begins
9982    # with a dollar sign (not a hyphen), so the echo should work correctly.
9983    lt_compile=`echo "$ac_compile" | $SED \
9984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9986    -e 's:$: $lt_compiler_flag:'`
9987    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9988    (eval "$lt_compile" 2>out/conftest.err)
9989    ac_status=$?
9990    cat out/conftest.err >&5
9991    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9993    then
9994      # The compiler can only warn and ignore the option if not recognized
9995      # So say no if there are warnings
9996      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9997      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9998      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9999        lt_cv_prog_compiler_c_o=yes
10000      fi
10001    fi
10002    chmod u+w . 2>&5
10003    $RM conftest*
10004    # SGI C++ compiler will create directory out/ii_files/ for
10005    # template instantiation
10006    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10007    $RM out/* && rmdir out
10008    cd ..
10009    $RM -r conftest
10010    $RM conftest*
10011
10012 fi
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10015
10016     
10017     
10018     
10019
10020
10021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10023 if ${lt_cv_prog_compiler_c_o+:} false; then :
10024   $as_echo_n "(cached) " >&6
10025 else
10026   lt_cv_prog_compiler_c_o=no
10027    $RM -r conftest 2>/dev/null
10028    mkdir conftest
10029    cd conftest
10030    mkdir out
10031    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10032
10033    lt_compiler_flag="-o out/conftest2.$ac_objext"
10034    # Insert the option either (1) after the last *FLAGS variable, or
10035    # (2) before a word containing "conftest.", or (3) at the end.
10036    # Note that $ac_compile itself does not contain backslashes and begins
10037    # with a dollar sign (not a hyphen), so the echo should work correctly.
10038    lt_compile=`echo "$ac_compile" | $SED \
10039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10041    -e 's:$: $lt_compiler_flag:'`
10042    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10043    (eval "$lt_compile" 2>out/conftest.err)
10044    ac_status=$?
10045    cat out/conftest.err >&5
10046    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10048    then
10049      # The compiler can only warn and ignore the option if not recognized
10050      # So say no if there are warnings
10051      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10052      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10053      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10054        lt_cv_prog_compiler_c_o=yes
10055      fi
10056    fi
10057    chmod u+w . 2>&5
10058    $RM conftest*
10059    # SGI C++ compiler will create directory out/ii_files/ for
10060    # template instantiation
10061    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10062    $RM out/* && rmdir out
10063    cd ..
10064    $RM -r conftest
10065    $RM conftest*
10066
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10069 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10070
10071
10072
10073
10074 hard_links=nottested
10075 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10076   # do not overwrite the value of need_locks provided by the user
10077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10078 $as_echo_n "checking if we can lock with hard links... " >&6; }
10079   hard_links=yes
10080   $RM conftest*
10081   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10082   touch conftest.a
10083   ln conftest.a conftest.b 2>&5 || hard_links=no
10084   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10086 $as_echo "$hard_links" >&6; }
10087   if test no = "$hard_links"; then
10088     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10089 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10090     need_locks=warn
10091   fi
10092 else
10093   need_locks=no
10094 fi
10095
10096     
10097     
10098     
10099
10100
10101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10102 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10103
10104   runpath_var=
10105   allow_undefined_flag=
10106   always_export_symbols=no
10107   archive_cmds=
10108   archive_expsym_cmds=
10109   compiler_needs_object=no
10110   enable_shared_with_static_runtimes=no
10111   export_dynamic_flag_spec=
10112   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10113   hardcode_automatic=no
10114   hardcode_direct=no
10115   hardcode_direct_absolute=no
10116   hardcode_libdir_flag_spec=
10117   hardcode_libdir_separator=
10118   hardcode_minus_L=no
10119   hardcode_shlibpath_var=unsupported
10120   inherit_rpath=no
10121   link_all_deplibs=unknown
10122   module_cmds=
10123   module_expsym_cmds=
10124   old_archive_from_new_cmds=
10125   old_archive_from_expsyms_cmds=
10126   thread_safe_flag_spec=
10127   whole_archive_flag_spec=
10128   # include_expsyms should be a list of space-separated symbols to be *always*
10129   # included in the symbol list
10130   include_expsyms=
10131   # exclude_expsyms can be an extended regexp of symbols to exclude
10132   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10133   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10134   # as well as any symbol that contains 'd'.
10135   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10136   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10137   # platforms (ab)use it in PIC code, but their linkers get confused if
10138   # the symbol is explicitly referenced.  Since portable code cannot
10139   # rely on this symbol name, it's probably fine to never include it in
10140   # preloaded symbol tables.
10141   # Exclude shared library initialization/finalization symbols.
10142   extract_expsyms_cmds=
10143
10144   case $host_os in
10145   cygwin* | mingw* | pw32* | cegcc*)
10146     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10147     # When not using gcc, we currently assume that we are using
10148     # Microsoft Visual C++.
10149     if test yes != "$GCC"; then
10150       with_gnu_ld=no
10151     fi
10152     ;;
10153   interix*)
10154     # we just hope/assume this is gcc and not c89 (= MSVC++)
10155     with_gnu_ld=yes
10156     ;;
10157   openbsd* | bitrig*)
10158     with_gnu_ld=no
10159     ;;
10160   linux* | k*bsd*-gnu | gnu*)
10161     link_all_deplibs=no
10162     ;;
10163   esac
10164
10165   ld_shlibs=yes
10166
10167   # On some targets, GNU ld is compatible enough with the native linker
10168   # that we're better off using the native interface for both.
10169   lt_use_gnu_ld_interface=no
10170   if test yes = "$with_gnu_ld"; then
10171     case $host_os in
10172       aix*)
10173         # The AIX port of GNU ld has always aspired to compatibility
10174         # with the native linker.  However, as the warning in the GNU ld
10175         # block says, versions before 2.19.5* couldn't really create working
10176         # shared libraries, regardless of the interface used.
10177         case `$LD -v 2>&1` in
10178           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10179           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10180           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10181           *)
10182             lt_use_gnu_ld_interface=yes
10183             ;;
10184         esac
10185         ;;
10186       *)
10187         lt_use_gnu_ld_interface=yes
10188         ;;
10189     esac
10190   fi
10191
10192   if test yes = "$lt_use_gnu_ld_interface"; then
10193     # If archive_cmds runs LD, not CC, wlarc should be empty
10194     wlarc='$wl'
10195
10196     # Set some defaults for GNU ld with shared library support. These
10197     # are reset later if shared libraries are not supported. Putting them
10198     # here allows them to be overridden if necessary.
10199     runpath_var=LD_RUN_PATH
10200     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10201     export_dynamic_flag_spec='$wl--export-dynamic'
10202     # ancient GNU ld didn't support --whole-archive et. al.
10203     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10204       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10205     else
10206       whole_archive_flag_spec=
10207     fi
10208     supports_anon_versioning=no
10209     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10210       *GNU\ gold*) supports_anon_versioning=yes ;;
10211       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10212       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10213       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10214       *\ 2.11.*) ;; # other 2.11 versions
10215       *) supports_anon_versioning=yes ;;
10216     esac
10217
10218     # See if GNU ld supports shared libraries.
10219     case $host_os in
10220     aix[3-9]*)
10221       # On AIX/PPC, the GNU linker is very broken
10222       if test ia64 != "$host_cpu"; then
10223         ld_shlibs=no
10224         cat <<_LT_EOF 1>&2
10225
10226 *** Warning: the GNU linker, at least up to release 2.19, is reported
10227 *** to be unable to reliably create shared libraries on AIX.
10228 *** Therefore, libtool is disabling shared libraries support.  If you
10229 *** really care for shared libraries, you may want to install binutils
10230 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10231 *** You will then need to restart the configuration process.
10232
10233 _LT_EOF
10234       fi
10235       ;;
10236
10237     amigaos*)
10238       case $host_cpu in
10239       powerpc)
10240             # see comment about AmigaOS4 .so support
10241             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10242             archive_expsym_cmds=''
10243         ;;
10244       m68k)
10245             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)'
10246             hardcode_libdir_flag_spec='-L$libdir'
10247             hardcode_minus_L=yes
10248         ;;
10249       esac
10250       ;;
10251
10252     beos*)
10253       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10254         allow_undefined_flag=unsupported
10255         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10256         # support --undefined.  This deserves some investigation.  FIXME
10257         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10258       else
10259         ld_shlibs=no
10260       fi
10261       ;;
10262
10263     cygwin* | mingw* | pw32* | cegcc*)
10264       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10265       # as there is no search path for DLLs.
10266       hardcode_libdir_flag_spec='-L$libdir'
10267       export_dynamic_flag_spec='$wl--export-all-symbols'
10268       allow_undefined_flag=unsupported
10269       always_export_symbols=no
10270       enable_shared_with_static_runtimes=yes
10271       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'
10272       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10273
10274       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10275         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10276         # If the export-symbols file already is a .def file, use it as
10277         # is; otherwise, prepend EXPORTS...
10278         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10279           cp $export_symbols $output_objdir/$soname.def;
10280         else
10281           echo EXPORTS > $output_objdir/$soname.def;
10282           cat $export_symbols >> $output_objdir/$soname.def;
10283         fi~
10284         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10285       else
10286         ld_shlibs=no
10287       fi
10288       ;;
10289
10290     haiku*)
10291       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10292       link_all_deplibs=yes
10293       ;;
10294
10295     os2*)
10296       hardcode_libdir_flag_spec='-L$libdir'
10297       hardcode_minus_L=yes
10298       allow_undefined_flag=unsupported
10299       shrext_cmds=.dll
10300       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10301         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10302         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10303         $ECHO EXPORTS >> $output_objdir/$libname.def~
10304         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10305         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10306         emximp -o $lib $output_objdir/$libname.def'
10307       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10308         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10309         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10310         $ECHO EXPORTS >> $output_objdir/$libname.def~
10311         prefix_cmds="$SED"~
10312         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10313           prefix_cmds="$prefix_cmds -e 1d";
10314         fi~
10315         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10316         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10317         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10318         emximp -o $lib $output_objdir/$libname.def'
10319       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10320       enable_shared_with_static_runtimes=yes
10321       ;;
10322
10323     interix[3-9]*)
10324       hardcode_direct=no
10325       hardcode_shlibpath_var=no
10326       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10327       export_dynamic_flag_spec='$wl-E'
10328       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10329       # Instead, shared libraries are loaded at an image base (0x10000000 by
10330       # default) and relocated if they conflict, which is a slow very memory
10331       # consuming and fragmenting process.  To avoid this, we pick a random,
10332       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10333       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10334       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10335       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'
10336       ;;
10337
10338     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10339       tmp_diet=no
10340       if test linux-dietlibc = "$host_os"; then
10341         case $cc_basename in
10342           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10343         esac
10344       fi
10345       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10346          && test no = "$tmp_diet"
10347       then
10348         tmp_addflag=' $pic_flag'
10349         tmp_sharedflag='-shared'
10350         case $cc_basename,$host_cpu in
10351         pgcc*)                          # Portland Group C compiler
10352           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'
10353           tmp_addflag=' $pic_flag'
10354           ;;
10355         pgf77* | pgf90* | pgf95* | pgfortran*)
10356                                         # Portland Group f77 and f90 compilers
10357           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'
10358           tmp_addflag=' $pic_flag -Mnomain' ;;
10359         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10360           tmp_addflag=' -i_dynamic' ;;
10361         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10362           tmp_addflag=' -i_dynamic -nofor_main' ;;
10363         ifc* | ifort*)                  # Intel Fortran compiler
10364           tmp_addflag=' -nofor_main' ;;
10365         lf95*)                          # Lahey Fortran 8.1
10366           whole_archive_flag_spec=
10367           tmp_sharedflag='--shared' ;;
10368         nagfor*)                        # NAGFOR 5.3
10369           tmp_sharedflag='-Wl,-shared' ;;
10370         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10371           tmp_sharedflag='-qmkshrobj'
10372           tmp_addflag= ;;
10373         nvcc*)  # Cuda Compiler Driver 2.2
10374           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'
10375           compiler_needs_object=yes
10376           ;;
10377         esac
10378         case `$CC -V 2>&1 | sed 5q` in
10379         *Sun\ C*)                       # Sun C 5.9
10380           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'
10381           compiler_needs_object=yes
10382           tmp_sharedflag='-G' ;;
10383         *Sun\ F*)                       # Sun Fortran 8.3
10384           tmp_sharedflag='-G' ;;
10385         esac
10386         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10387
10388         if test yes = "$supports_anon_versioning"; then
10389           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10390             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10391             echo "local: *; };" >> $output_objdir/$libname.ver~
10392             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10393         fi
10394
10395         case $cc_basename in
10396         tcc*)
10397           export_dynamic_flag_spec='-rdynamic'
10398           ;;
10399         xlf* | bgf* | bgxlf* | mpixlf*)
10400           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10401           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10402           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10403           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10404           if test yes = "$supports_anon_versioning"; then
10405             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10406               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10407               echo "local: *; };" >> $output_objdir/$libname.ver~
10408               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10409           fi
10410           ;;
10411         esac
10412       else
10413         ld_shlibs=no
10414       fi
10415       ;;
10416
10417     netbsd* | netbsdelf*-gnu)
10418       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10419         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10420         wlarc=
10421       else
10422         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10423         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10424       fi
10425       ;;
10426
10427     solaris*)
10428       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10429         ld_shlibs=no
10430         cat <<_LT_EOF 1>&2
10431
10432 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10433 *** create shared libraries on Solaris systems.  Therefore, libtool
10434 *** is disabling shared libraries support.  We urge you to upgrade GNU
10435 *** binutils to release 2.9.1 or newer.  Another option is to modify
10436 *** your PATH or compiler configuration so that the native linker is
10437 *** used, and then restart.
10438
10439 _LT_EOF
10440       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10441         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10442         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10443       else
10444         ld_shlibs=no
10445       fi
10446       ;;
10447
10448     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10449       case `$LD -v 2>&1` in
10450         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10451         ld_shlibs=no
10452         cat <<_LT_EOF 1>&2
10453
10454 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10455 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10456 *** is disabling shared libraries support.  We urge you to upgrade GNU
10457 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10458 *** your PATH or compiler configuration so that the native linker is
10459 *** used, and then restart.
10460
10461 _LT_EOF
10462         ;;
10463         *)
10464           # For security reasons, it is highly recommended that you always
10465           # use absolute paths for naming shared libraries, and exclude the
10466           # DT_RUNPATH tag from executables and libraries.  But doing so
10467           # requires that you compile everything twice, which is a pain.
10468           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10469             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10470             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10471             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10472           else
10473             ld_shlibs=no
10474           fi
10475         ;;
10476       esac
10477       ;;
10478
10479     sunos4*)
10480       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10481       wlarc=
10482       hardcode_direct=yes
10483       hardcode_shlibpath_var=no
10484       ;;
10485
10486     *)
10487       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10488         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10489         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10490       else
10491         ld_shlibs=no
10492       fi
10493       ;;
10494     esac
10495
10496     if test no = "$ld_shlibs"; then
10497       runpath_var=
10498       hardcode_libdir_flag_spec=
10499       export_dynamic_flag_spec=
10500       whole_archive_flag_spec=
10501     fi
10502   else
10503     # PORTME fill in a description of your system's linker (not GNU ld)
10504     case $host_os in
10505     aix3*)
10506       allow_undefined_flag=unsupported
10507       always_export_symbols=yes
10508       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'
10509       # Note: this linker hardcodes the directories in LIBPATH if there
10510       # are no directories specified by -L.
10511       hardcode_minus_L=yes
10512       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10513         # Neither direct hardcoding nor static linking is supported with a
10514         # broken collect2.
10515         hardcode_direct=unsupported
10516       fi
10517       ;;
10518
10519     aix[4-9]*)
10520       if test ia64 = "$host_cpu"; then
10521         # On IA64, the linker does run time linking by default, so we don't
10522         # have to do anything special.
10523         aix_use_runtimelinking=no
10524         exp_sym_flag='-Bexport'
10525         no_entry_flag=
10526       else
10527         # If we're using GNU nm, then we don't want the "-C" option.
10528         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10529         # Without the "-l" option, or with the "-B" option, AIX nm treats
10530         # weak defined symbols like other global defined symbols, whereas
10531         # GNU nm marks them as "W".
10532         # While the 'weak' keyword is ignored in the Export File, we need
10533         # it in the Import File for the 'aix-soname' feature, so we have
10534         # to replace the "-B" option with "-P" for AIX nm.
10535         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10536           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10537         else
10538           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10539         fi
10540         aix_use_runtimelinking=no
10541
10542         # Test if we are trying to use run time linking or normal
10543         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10544         # have runtime linking enabled, and use it for executables.
10545         # For shared libraries, we enable/disable runtime linking
10546         # depending on the kind of the shared library created -
10547         # when "with_aix_soname,aix_use_runtimelinking" is:
10548         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10549         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10550         #            lib.a           static archive
10551         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10552         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10553         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10554         #            lib.a(lib.so.V) shared, rtl:no
10555         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10556         #            lib.a           static archive
10557         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10558           for ld_flag in $LDFLAGS; do
10559           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10560             aix_use_runtimelinking=yes
10561             break
10562           fi
10563           done
10564           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10565             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10566             # so we don't have lib.a shared libs to link our executables.
10567             # We have to force runtime linking in this case.
10568             aix_use_runtimelinking=yes
10569             LDFLAGS="$LDFLAGS -Wl,-brtl"
10570           fi
10571           ;;
10572         esac
10573
10574         exp_sym_flag='-bexport'
10575         no_entry_flag='-bnoentry'
10576       fi
10577
10578       # When large executables or shared objects are built, AIX ld can
10579       # have problems creating the table of contents.  If linking a library
10580       # or program results in "error TOC overflow" add -mminimal-toc to
10581       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10582       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10583
10584       archive_cmds=''
10585       hardcode_direct=yes
10586       hardcode_direct_absolute=yes
10587       hardcode_libdir_separator=':'
10588       link_all_deplibs=yes
10589       file_list_spec='$wl-f,'
10590       case $with_aix_soname,$aix_use_runtimelinking in
10591       aix,*) ;; # traditional, no import file
10592       svr4,* | *,yes) # use import file
10593         # The Import File defines what to hardcode.
10594         hardcode_direct=no
10595         hardcode_direct_absolute=no
10596         ;;
10597       esac
10598
10599       if test yes = "$GCC"; then
10600         case $host_os in aix4.[012]|aix4.[012].*)
10601         # We only want to do this on AIX 4.2 and lower, the check
10602         # below for broken collect2 doesn't work under 4.3+
10603           collect2name=`$CC -print-prog-name=collect2`
10604           if test -f "$collect2name" &&
10605            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10606           then
10607           # We have reworked collect2
10608           :
10609           else
10610           # We have old collect2
10611           hardcode_direct=unsupported
10612           # It fails to find uninstalled libraries when the uninstalled
10613           # path is not listed in the libpath.  Setting hardcode_minus_L
10614           # to unsupported forces relinking
10615           hardcode_minus_L=yes
10616           hardcode_libdir_flag_spec='-L$libdir'
10617           hardcode_libdir_separator=
10618           fi
10619           ;;
10620         esac
10621         shared_flag='-shared'
10622         if test yes = "$aix_use_runtimelinking"; then
10623           shared_flag="$shared_flag "'$wl-G'
10624         fi
10625         # Need to ensure runtime linking is disabled for the traditional
10626         # shared library, or the linker may eventually find shared libraries
10627         # /with/ Import File - we do not want to mix them.
10628         shared_flag_aix='-shared'
10629         shared_flag_svr4='-shared $wl-G'
10630       else
10631         # not using gcc
10632         if test ia64 = "$host_cpu"; then
10633         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10634         # chokes on -Wl,-G. The following line is correct:
10635           shared_flag='-G'
10636         else
10637           if test yes = "$aix_use_runtimelinking"; then
10638             shared_flag='$wl-G'
10639           else
10640             shared_flag='$wl-bM:SRE'
10641           fi
10642           shared_flag_aix='$wl-bM:SRE'
10643           shared_flag_svr4='$wl-G'
10644         fi
10645       fi
10646
10647       export_dynamic_flag_spec='$wl-bexpall'
10648       # It seems that -bexpall does not export symbols beginning with
10649       # underscore (_), so it is better to generate a list of symbols to export.
10650       always_export_symbols=yes
10651       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10652         # Warning - without using the other runtime loading flags (-brtl),
10653         # -berok will link without error, but may produce a broken library.
10654         allow_undefined_flag='-berok'
10655         # Determine the default libpath from the value encoded in an
10656         # empty executable.
10657         if test set = "${lt_cv_aix_libpath+set}"; then
10658   aix_libpath=$lt_cv_aix_libpath
10659 else
10660   if ${lt_cv_aix_libpath_+:} false; then :
10661   $as_echo_n "(cached) " >&6
10662 else
10663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h.  */
10665
10666 int
10667 main ()
10668 {
10669
10670   ;
10671   return 0;
10672 }
10673 _ACEOF
10674 if ac_fn_c_try_link "$LINENO"; then :
10675   
10676   lt_aix_libpath_sed='
10677       /Import File Strings/,/^$/ {
10678           /^0/ {
10679               s/^0  *\([^ ]*\) *$/\1/
10680               p
10681           }
10682       }'
10683   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10684   # Check for a 64-bit object if we didn't find anything.
10685   if test -z "$lt_cv_aix_libpath_"; then
10686     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10687   fi
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext \
10690     conftest$ac_exeext conftest.$ac_ext
10691   if test -z "$lt_cv_aix_libpath_"; then
10692     lt_cv_aix_libpath_=/usr/lib:/lib
10693   fi
10694   
10695 fi
10696
10697   aix_libpath=$lt_cv_aix_libpath_
10698 fi
10699
10700         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10701         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10702       else
10703         if test ia64 = "$host_cpu"; then
10704           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10705           allow_undefined_flag="-z nodefs"
10706           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"
10707         else
10708          # Determine the default libpath from the value encoded in an
10709          # empty executable.
10710          if test set = "${lt_cv_aix_libpath+set}"; then
10711   aix_libpath=$lt_cv_aix_libpath
10712 else
10713   if ${lt_cv_aix_libpath_+:} false; then :
10714   $as_echo_n "(cached) " >&6
10715 else
10716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h.  */
10718
10719 int
10720 main ()
10721 {
10722
10723   ;
10724   return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728   
10729   lt_aix_libpath_sed='
10730       /Import File Strings/,/^$/ {
10731           /^0/ {
10732               s/^0  *\([^ ]*\) *$/\1/
10733               p
10734           }
10735       }'
10736   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10737   # Check for a 64-bit object if we didn't find anything.
10738   if test -z "$lt_cv_aix_libpath_"; then
10739     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10740   fi
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext \
10743     conftest$ac_exeext conftest.$ac_ext
10744   if test -z "$lt_cv_aix_libpath_"; then
10745     lt_cv_aix_libpath_=/usr/lib:/lib
10746   fi
10747   
10748 fi
10749
10750   aix_libpath=$lt_cv_aix_libpath_
10751 fi
10752
10753          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10754           # Warning - without using the other run time loading flags,
10755           # -berok will link without error, but may produce a broken library.
10756           no_undefined_flag=' $wl-bernotok'
10757           allow_undefined_flag=' $wl-berok'
10758           if test yes = "$with_gnu_ld"; then
10759             # We only use this code for GNU lds that support --whole-archive.
10760             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10761           else
10762             # Exported symbols can be pulled into shared objects from archives
10763             whole_archive_flag_spec='$convenience'
10764           fi
10765           archive_cmds_need_lc=yes
10766           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10767           # -brtl affects multiple linker settings, -berok does not and is overridden later
10768           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10769           if test svr4 != "$with_aix_soname"; then
10770             # This is similar to how AIX traditionally builds its shared libraries.
10771             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10772           fi
10773           if test aix != "$with_aix_soname"; then
10774             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10775           else
10776             # used by -dlpreopen to get the symbols
10777             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10778           fi
10779           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10780         fi
10781       fi
10782       ;;
10783
10784     amigaos*)
10785       case $host_cpu in
10786       powerpc)
10787             # see comment about AmigaOS4 .so support
10788             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10789             archive_expsym_cmds=''
10790         ;;
10791       m68k)
10792             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)'
10793             hardcode_libdir_flag_spec='-L$libdir'
10794             hardcode_minus_L=yes
10795         ;;
10796       esac
10797       ;;
10798
10799     bsdi[45]*)
10800       export_dynamic_flag_spec=-rdynamic
10801       ;;
10802
10803     cygwin* | mingw* | pw32* | cegcc*)
10804       # When not using gcc, we currently assume that we are using
10805       # Microsoft Visual C++.
10806       # hardcode_libdir_flag_spec is actually meaningless, as there is
10807       # no search path for DLLs.
10808       case $cc_basename in
10809       cl*)
10810         # Native MSVC
10811         hardcode_libdir_flag_spec=' '
10812         allow_undefined_flag=unsupported
10813         always_export_symbols=yes
10814         file_list_spec='@'
10815         # Tell ltmain to make .lib files, not .a files.
10816         libext=lib
10817         # Tell ltmain to make .dll files, not .so files.
10818         shrext_cmds=.dll
10819         # FIXME: Setting linknames here is a bad hack.
10820         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10821         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10822             cp "$export_symbols" "$output_objdir/$soname.def";
10823             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10824           else
10825             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10826           fi~
10827           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10828           linknames='
10829         # The linker will not automatically build a static lib if we build a DLL.
10830         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10831         enable_shared_with_static_runtimes=yes
10832         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10833         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10834         # Don't use ranlib
10835         old_postinstall_cmds='chmod 644 $oldlib'
10836         postlink_cmds='lt_outputfile="@OUTPUT@"~
10837           lt_tool_outputfile="@TOOL_OUTPUT@"~
10838           case $lt_outputfile in
10839             *.exe|*.EXE) ;;
10840             *)
10841               lt_outputfile=$lt_outputfile.exe
10842               lt_tool_outputfile=$lt_tool_outputfile.exe
10843               ;;
10844           esac~
10845           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10846             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10847             $RM "$lt_outputfile.manifest";
10848           fi'
10849         ;;
10850       *)
10851         # Assume MSVC wrapper
10852         hardcode_libdir_flag_spec=' '
10853         allow_undefined_flag=unsupported
10854         # Tell ltmain to make .lib files, not .a files.
10855         libext=lib
10856         # Tell ltmain to make .dll files, not .so files.
10857         shrext_cmds=.dll
10858         # FIXME: Setting linknames here is a bad hack.
10859         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10860         # The linker will automatically build a .lib file if we build a DLL.
10861         old_archive_from_new_cmds='true'
10862         # FIXME: Should let the user specify the lib program.
10863         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10864         enable_shared_with_static_runtimes=yes
10865         ;;
10866       esac
10867       ;;
10868
10869     darwin* | rhapsody*)
10870       
10871   
10872   archive_cmds_need_lc=no
10873   hardcode_direct=no
10874   hardcode_automatic=yes
10875   hardcode_shlibpath_var=unsupported
10876   if test yes = "$lt_cv_ld_force_load"; then
10877     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\"`'
10878     
10879   else
10880     whole_archive_flag_spec=''
10881   fi
10882   link_all_deplibs=yes
10883   allow_undefined_flag=$_lt_dar_allow_undefined
10884   case $cc_basename in
10885      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10886      *) _lt_dar_can_shared=$GCC ;;
10887   esac
10888   if test yes = "$_lt_dar_can_shared"; then
10889     output_verbose_link_cmd=func_echo_all
10890     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10891     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10892     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"
10893     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"
10894     
10895   else
10896   ld_shlibs=no
10897   fi
10898
10899       ;;
10900
10901     dgux*)
10902       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903       hardcode_libdir_flag_spec='-L$libdir'
10904       hardcode_shlibpath_var=no
10905       ;;
10906
10907     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10908     # support.  Future versions do this automatically, but an explicit c++rt0.o
10909     # does not break anything, and helps significantly (at the cost of a little
10910     # extra space).
10911     freebsd2.2*)
10912       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10913       hardcode_libdir_flag_spec='-R$libdir'
10914       hardcode_direct=yes
10915       hardcode_shlibpath_var=no
10916       ;;
10917
10918     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10919     freebsd2.*)
10920       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10921       hardcode_direct=yes
10922       hardcode_minus_L=yes
10923       hardcode_shlibpath_var=no
10924       ;;
10925
10926     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10927     freebsd* | dragonfly*)
10928       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10929       hardcode_libdir_flag_spec='-R$libdir'
10930       hardcode_direct=yes
10931       hardcode_shlibpath_var=no
10932       ;;
10933
10934     hpux9*)
10935       if test yes = "$GCC"; then
10936         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10937       else
10938         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10939       fi
10940       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10941       hardcode_libdir_separator=:
10942       hardcode_direct=yes
10943
10944       # hardcode_minus_L: Not really in the search PATH,
10945       # but as the default location of the library.
10946       hardcode_minus_L=yes
10947       export_dynamic_flag_spec='$wl-E'
10948       ;;
10949
10950     hpux10*)
10951       if test yes,no = "$GCC,$with_gnu_ld"; then
10952         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10953       else
10954         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10955       fi
10956       if test no = "$with_gnu_ld"; then
10957         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10958         hardcode_libdir_separator=:
10959         hardcode_direct=yes
10960         hardcode_direct_absolute=yes
10961         export_dynamic_flag_spec='$wl-E'
10962         # hardcode_minus_L: Not really in the search PATH,
10963         # but as the default location of the library.
10964         hardcode_minus_L=yes
10965       fi
10966       ;;
10967
10968     hpux11*)
10969       if test yes,no = "$GCC,$with_gnu_ld"; then
10970         case $host_cpu in
10971         hppa*64*)
10972           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10973           ;;
10974         ia64*)
10975           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10976           ;;
10977         *)
10978           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10979           ;;
10980         esac
10981       else
10982         case $host_cpu in
10983         hppa*64*)
10984           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10985           ;;
10986         ia64*)
10987           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10988           ;;
10989         *)
10990         
10991           # Older versions of the 11.00 compiler do not understand -b yet
10992           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10993           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10994 $as_echo_n "checking if $CC understands -b... " >&6; }
10995 if ${lt_cv_prog_compiler__b+:} false; then :
10996   $as_echo_n "(cached) " >&6
10997 else
10998   lt_cv_prog_compiler__b=no
10999    save_LDFLAGS=$LDFLAGS
11000    LDFLAGS="$LDFLAGS -b"
11001    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11002    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11003      # The linker can only warn and ignore the option if not recognized
11004      # So say no if there are warnings
11005      if test -s conftest.err; then
11006        # Append any errors to the config.log.
11007        cat conftest.err 1>&5
11008        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11009        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11010        if diff conftest.exp conftest.er2 >/dev/null; then
11011          lt_cv_prog_compiler__b=yes
11012        fi
11013      else
11014        lt_cv_prog_compiler__b=yes
11015      fi
11016    fi
11017    $RM -r conftest*
11018    LDFLAGS=$save_LDFLAGS
11019
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11022 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11023
11024 if test yes = "$lt_cv_prog_compiler__b"; then
11025     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11026 else
11027     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11028 fi
11029
11030           ;;
11031         esac
11032       fi
11033       if test no = "$with_gnu_ld"; then
11034         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11035         hardcode_libdir_separator=:
11036
11037         case $host_cpu in
11038         hppa*64*|ia64*)
11039           hardcode_direct=no
11040           hardcode_shlibpath_var=no
11041           ;;
11042         *)
11043           hardcode_direct=yes
11044           hardcode_direct_absolute=yes
11045           export_dynamic_flag_spec='$wl-E'
11046
11047           # hardcode_minus_L: Not really in the search PATH,
11048           # but as the default location of the library.
11049           hardcode_minus_L=yes
11050           ;;
11051         esac
11052       fi
11053       ;;
11054
11055     irix5* | irix6* | nonstopux*)
11056       if test yes = "$GCC"; then
11057         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'
11058         # Try to use the -exported_symbol ld option, if it does not
11059         # work, assume that -exports_file does not work either and
11060         # implicitly export all symbols.
11061         # This should be the same for all languages, so no per-tag cache variable.
11062         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11063 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11064 if ${lt_cv_irix_exported_symbol+:} false; then :
11065   $as_echo_n "(cached) " >&6
11066 else
11067   save_LDFLAGS=$LDFLAGS
11068            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11069            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h.  */
11071 int foo (void) { return 0; }
11072 _ACEOF
11073 if ac_fn_c_try_link "$LINENO"; then :
11074   lt_cv_irix_exported_symbol=yes
11075 else
11076   lt_cv_irix_exported_symbol=no
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext \
11079     conftest$ac_exeext conftest.$ac_ext
11080            LDFLAGS=$save_LDFLAGS
11081 fi
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11083 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11084         if test yes = "$lt_cv_irix_exported_symbol"; then
11085           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'
11086         fi
11087         link_all_deplibs=no
11088       else
11089         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'
11090         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'
11091       fi
11092       archive_cmds_need_lc='no'
11093       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11094       hardcode_libdir_separator=:
11095       inherit_rpath=yes
11096       link_all_deplibs=yes
11097       ;;
11098
11099     linux*)
11100       case $cc_basename in
11101       tcc*)
11102         # Fabrice Bellard et al's Tiny C Compiler
11103         ld_shlibs=yes
11104         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11105         ;;
11106       esac
11107       ;;
11108
11109     netbsd* | netbsdelf*-gnu)
11110       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11111         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11112       else
11113         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11114       fi
11115       hardcode_libdir_flag_spec='-R$libdir'
11116       hardcode_direct=yes
11117       hardcode_shlibpath_var=no
11118       ;;
11119
11120     newsos6)
11121       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11122       hardcode_direct=yes
11123       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11124       hardcode_libdir_separator=:
11125       hardcode_shlibpath_var=no
11126       ;;
11127
11128     *nto* | *qnx*)
11129       ;;
11130
11131     openbsd* | bitrig*)
11132       if test -f /usr/libexec/ld.so; then
11133         hardcode_direct=yes
11134         hardcode_shlibpath_var=no
11135         hardcode_direct_absolute=yes
11136         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11137           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11138           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11139           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11140           export_dynamic_flag_spec='$wl-E'
11141         else
11142           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11143           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11144         fi
11145       else
11146         ld_shlibs=no
11147       fi
11148       ;;
11149
11150     os2*)
11151       hardcode_libdir_flag_spec='-L$libdir'
11152       hardcode_minus_L=yes
11153       allow_undefined_flag=unsupported
11154       shrext_cmds=.dll
11155       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11156         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11157         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11158         $ECHO EXPORTS >> $output_objdir/$libname.def~
11159         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11160         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11161         emximp -o $lib $output_objdir/$libname.def'
11162       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11163         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11164         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11165         $ECHO EXPORTS >> $output_objdir/$libname.def~
11166         prefix_cmds="$SED"~
11167         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11168           prefix_cmds="$prefix_cmds -e 1d";
11169         fi~
11170         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11171         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11172         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11173         emximp -o $lib $output_objdir/$libname.def'
11174       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11175       enable_shared_with_static_runtimes=yes
11176       ;;
11177
11178     osf3*)
11179       if test yes = "$GCC"; then
11180         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11181         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'
11182       else
11183         allow_undefined_flag=' -expect_unresolved \*'
11184         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'
11185       fi
11186       archive_cmds_need_lc='no'
11187       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11188       hardcode_libdir_separator=:
11189       ;;
11190
11191     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11192       if test yes = "$GCC"; then
11193         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11194         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'
11195         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11196       else
11197         allow_undefined_flag=' -expect_unresolved \*'
11198         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'
11199         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~
11200           $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'
11201
11202         # Both c and cxx compiler support -rpath directly
11203         hardcode_libdir_flag_spec='-rpath $libdir'
11204       fi
11205       archive_cmds_need_lc='no'
11206       hardcode_libdir_separator=:
11207       ;;
11208
11209     solaris*)
11210       no_undefined_flag=' -z defs'
11211       if test yes = "$GCC"; then
11212         wlarc='$wl'
11213         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11214         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11215           $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'
11216       else
11217         case `$CC -V 2>&1` in
11218         *"Compilers 5.0"*)
11219           wlarc=''
11220           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11221           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11222             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11223           ;;
11224         *)
11225           wlarc='$wl'
11226           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11227           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11228             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11229           ;;
11230         esac
11231       fi
11232       hardcode_libdir_flag_spec='-R$libdir'
11233       hardcode_shlibpath_var=no
11234       case $host_os in
11235       solaris2.[0-5] | solaris2.[0-5].*) ;;
11236       *)
11237         # The compiler driver will combine and reorder linker options,
11238         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11239         # but is careful enough not to reorder.
11240         # Supported since Solaris 2.6 (maybe 2.5.1?)
11241         if test yes = "$GCC"; then
11242           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11243         else
11244           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11245         fi
11246         ;;
11247       esac
11248       link_all_deplibs=yes
11249       ;;
11250
11251     sunos4*)
11252       if test sequent = "$host_vendor"; then
11253         # Use $CC to link under sequent, because it throws in some extra .o
11254         # files that make .init and .fini sections work.
11255         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11256       else
11257         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11258       fi
11259       hardcode_libdir_flag_spec='-L$libdir'
11260       hardcode_direct=yes
11261       hardcode_minus_L=yes
11262       hardcode_shlibpath_var=no
11263       ;;
11264
11265     sysv4)
11266       case $host_vendor in
11267         sni)
11268           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11269           hardcode_direct=yes # is this really true???
11270         ;;
11271         siemens)
11272           ## LD is ld it makes a PLAMLIB
11273           ## CC just makes a GrossModule.
11274           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11275           reload_cmds='$CC -r -o $output$reload_objs'
11276           hardcode_direct=no
11277         ;;
11278         motorola)
11279           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11281         ;;
11282       esac
11283       runpath_var='LD_RUN_PATH'
11284       hardcode_shlibpath_var=no
11285       ;;
11286
11287     sysv4.3*)
11288       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11289       hardcode_shlibpath_var=no
11290       export_dynamic_flag_spec='-Bexport'
11291       ;;
11292
11293     sysv4*MP*)
11294       if test -d /usr/nec; then
11295         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296         hardcode_shlibpath_var=no
11297         runpath_var=LD_RUN_PATH
11298         hardcode_runpath_var=yes
11299         ld_shlibs=yes
11300       fi
11301       ;;
11302
11303     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11304       no_undefined_flag='$wl-z,text'
11305       archive_cmds_need_lc=no
11306       hardcode_shlibpath_var=no
11307       runpath_var='LD_RUN_PATH'
11308
11309       if test yes = "$GCC"; then
11310         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312       else
11313         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315       fi
11316       ;;
11317
11318     sysv5* | sco3.2v5* | sco5v6*)
11319       # Note: We CANNOT use -z defs as we might desire, because we do not
11320       # link with -lc, and that would cause any symbols used from libc to
11321       # always be unresolved, which means just about no library would
11322       # ever link correctly.  If we're not using GNU ld we use -z text
11323       # though, which does catch some bad symbols but isn't as heavy-handed
11324       # as -z defs.
11325       no_undefined_flag='$wl-z,text'
11326       allow_undefined_flag='$wl-z,nodefs'
11327       archive_cmds_need_lc=no
11328       hardcode_shlibpath_var=no
11329       hardcode_libdir_flag_spec='$wl-R,$libdir'
11330       hardcode_libdir_separator=':'
11331       link_all_deplibs=yes
11332       export_dynamic_flag_spec='$wl-Bexport'
11333       runpath_var='LD_RUN_PATH'
11334
11335       if test yes = "$GCC"; then
11336         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11337         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11338       else
11339         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11340         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11341       fi
11342       ;;
11343
11344     uts4*)
11345       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11346       hardcode_libdir_flag_spec='-L$libdir'
11347       hardcode_shlibpath_var=no
11348       ;;
11349
11350     *)
11351       ld_shlibs=no
11352       ;;
11353     esac
11354
11355     if test sni = "$host_vendor"; then
11356       case $host in
11357       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11358         export_dynamic_flag_spec='$wl-Blargedynsym'
11359         ;;
11360       esac
11361     fi
11362   fi
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11365 $as_echo "$ld_shlibs" >&6; }
11366 test no = "$ld_shlibs" && can_build_shared=no
11367
11368 with_gnu_ld=$with_gnu_ld
11369
11370
11371     
11372     
11373     
11374
11375     
11376     
11377     
11378
11379     
11380     
11381     
11382
11383
11384 #
11385 # Do we need to explicitly link libc?
11386 #
11387 case "x$archive_cmds_need_lc" in
11388 x|xyes)
11389   # Assume -lc should be added
11390   archive_cmds_need_lc=yes
11391
11392   if test yes,yes = "$GCC,$enable_shared"; then
11393     case $archive_cmds in
11394     *'~'*)
11395       # FIXME: we may have to deal with multi-command sequences.
11396       ;;
11397     '$CC '*)
11398       # Test whether the compiler implicitly links with -lc since on some
11399       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11400       # to ld, don't add -lc before -lgcc.
11401       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11403 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11404   $as_echo_n "(cached) " >&6
11405 else
11406   $RM conftest*
11407         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11408
11409         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11410   (eval $ac_compile) 2>&5
11411   ac_status=$?
11412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413   test $ac_status = 0; } 2>conftest.err; then
11414           soname=conftest
11415           lib=conftest
11416           libobjs=conftest.$ac_objext
11417           deplibs=
11418           wl=$lt_prog_compiler_wl
11419           pic_flag=$lt_prog_compiler_pic
11420           compiler_flags=-v
11421           linker_flags=-v
11422           verstring=
11423           output_objdir=.
11424           libname=conftest
11425           lt_save_allow_undefined_flag=$allow_undefined_flag
11426           allow_undefined_flag=
11427           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11428   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11429   ac_status=$?
11430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11431   test $ac_status = 0; }
11432           then
11433             lt_cv_archive_cmds_need_lc=no
11434           else
11435             lt_cv_archive_cmds_need_lc=yes
11436           fi
11437           allow_undefined_flag=$lt_save_allow_undefined_flag
11438         else
11439           cat conftest.err 1>&5
11440         fi
11441         $RM conftest*
11442         
11443 fi
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11445 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11446       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11447       ;;
11448     esac
11449   fi
11450   ;;
11451 esac
11452
11453
11454     
11455     
11456     
11457
11458
11459     
11460     
11461     
11462
11463
11464     
11465     
11466     
11467
11468
11469     
11470     
11471     
11472
11473
11474     
11475     
11476     
11477
11478
11479     
11480     
11481     
11482
11483
11484     
11485     
11486     
11487
11488
11489     
11490     
11491     
11492
11493
11494     
11495     
11496     
11497
11498
11499     
11500     
11501     
11502
11503
11504     
11505     
11506     
11507
11508
11509     
11510     
11511     
11512
11513
11514     
11515     
11516     
11517
11518
11519     
11520     
11521     
11522
11523
11524     
11525     
11526     
11527
11528
11529     
11530     
11531     
11532
11533
11534     
11535     
11536     
11537
11538
11539     
11540     
11541     
11542
11543
11544     
11545     
11546     
11547
11548
11549     
11550     
11551     
11552
11553
11554     
11555     
11556     
11557
11558
11559     
11560     
11561     
11562
11563
11564     
11565     
11566     
11567
11568
11569     
11570     
11571     
11572
11573
11574     
11575     
11576     
11577
11578
11579     
11580     
11581     
11582
11583
11584     
11585     
11586     
11587
11588
11589     
11590     
11591     
11592
11593
11594     
11595     
11596     
11597
11598
11599     
11600     
11601     
11602
11603
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11605 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11606
11607 if test yes = "$GCC"; then
11608   case $host_os in
11609     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11610     *) lt_awk_arg='/^libraries:/' ;;
11611   esac
11612   case $host_os in
11613     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11614     *) lt_sed_strip_eq='s|=/|/|g' ;;
11615   esac
11616   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11617   case $lt_search_path_spec in
11618   *\;*)
11619     # if the path contains ";" then we assume it to be the separator
11620     # otherwise default to the standard path separator (i.e. ":") - it is
11621     # assumed that no part of a normal pathname contains ";" but that should
11622     # okay in the real world where ";" in dirpaths is itself problematic.
11623     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11624     ;;
11625   *)
11626     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11627     ;;
11628   esac
11629   # Ok, now we have the path, separated by spaces, we can step through it
11630   # and add multilib dir if necessary...
11631   lt_tmp_lt_search_path_spec=
11632   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11633   # ...but if some path component already ends with the multilib dir we assume
11634   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11635   case "$lt_multi_os_dir; $lt_search_path_spec " in
11636   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11637     lt_multi_os_dir=
11638     ;;
11639   esac
11640   for lt_sys_path in $lt_search_path_spec; do
11641     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11642       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11643     elif test -n "$lt_multi_os_dir"; then
11644       test -d "$lt_sys_path" && \
11645         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11646     fi
11647   done
11648   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11649 BEGIN {RS = " "; FS = "/|\n";} {
11650   lt_foo = "";
11651   lt_count = 0;
11652   for (lt_i = NF; lt_i > 0; lt_i--) {
11653     if ($lt_i != "" && $lt_i != ".") {
11654       if ($lt_i == "..") {
11655         lt_count++;
11656       } else {
11657         if (lt_count == 0) {
11658           lt_foo = "/" $lt_i lt_foo;
11659         } else {
11660           lt_count--;
11661         }
11662       }
11663     }
11664   }
11665   if (lt_foo != "") { lt_freq[lt_foo]++; }
11666   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11667 }'`
11668   # AWK program above erroneously prepends '/' to C:/dos/paths
11669   # for these hosts.
11670   case $host_os in
11671     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11672       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11673   esac
11674   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11675 else
11676   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11677 fi
11678 library_names_spec=
11679 libname_spec='lib$name'
11680 soname_spec=
11681 shrext_cmds=.so
11682 postinstall_cmds=
11683 postuninstall_cmds=
11684 finish_cmds=
11685 finish_eval=
11686 shlibpath_var=
11687 shlibpath_overrides_runpath=unknown
11688 version_type=none
11689 dynamic_linker="$host_os ld.so"
11690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11691 need_lib_prefix=unknown
11692 hardcode_into_libs=no
11693
11694 # when you set need_version to no, make sure it does not cause -set_version
11695 # flags to be left without arguments
11696 need_version=unknown
11697
11698
11699
11700 case $host_os in
11701 aix3*)
11702   version_type=linux # correct to gnu/linux during the next big refactor
11703   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11704   shlibpath_var=LIBPATH
11705
11706   # AIX 3 has no versioning support, so we append a major version to the name.
11707   soname_spec='$libname$release$shared_ext$major'
11708   ;;
11709
11710 aix[4-9]*)
11711   version_type=linux # correct to gnu/linux during the next big refactor
11712   need_lib_prefix=no
11713   need_version=no
11714   hardcode_into_libs=yes
11715   if test ia64 = "$host_cpu"; then
11716     # AIX 5 supports IA64
11717     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11718     shlibpath_var=LD_LIBRARY_PATH
11719   else
11720     # With GCC up to 2.95.x, collect2 would create an import file
11721     # for dependence libraries.  The import file would start with
11722     # the line '#! .'.  This would cause the generated library to
11723     # depend on '.', always an invalid library.  This was fixed in
11724     # development snapshots of GCC prior to 3.0.
11725     case $host_os in
11726       aix4 | aix4.[01] | aix4.[01].*)
11727       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11728            echo ' yes '
11729            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11730         :
11731       else
11732         can_build_shared=no
11733       fi
11734       ;;
11735     esac
11736     # Using Import Files as archive members, it is possible to support
11737     # filename-based versioning of shared library archives on AIX. While
11738     # this would work for both with and without runtime linking, it will
11739     # prevent static linking of such archives. So we do filename-based
11740     # shared library versioning with .so extension only, which is used
11741     # when both runtime linking and shared linking is enabled.
11742     # Unfortunately, runtime linking may impact performance, so we do
11743     # not want this to be the default eventually. Also, we use the
11744     # versioned .so libs for executables only if there is the -brtl
11745     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11746     # To allow for filename-based versioning support, we need to create
11747     # libNAME.so.V as an archive file, containing:
11748     # *) an Import File, referring to the versioned filename of the
11749     #    archive as well as the shared archive member, telling the
11750     #    bitwidth (32 or 64) of that shared object, and providing the
11751     #    list of exported symbols of that shared object, eventually
11752     #    decorated with the 'weak' keyword
11753     # *) the shared object with the F_LOADONLY flag set, to really avoid
11754     #    it being seen by the linker.
11755     # At run time we better use the real file rather than another symlink,
11756     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11757
11758     case $with_aix_soname,$aix_use_runtimelinking in
11759     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11760     # soname into executable. Probably we can add versioning support to
11761     # collect2, so additional links can be useful in future.
11762     aix,yes) # traditional libtool
11763       dynamic_linker='AIX unversionable lib.so'
11764       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11765       # instead of lib<name>.a to let people know that these are not
11766       # typical AIX shared libraries.
11767       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768       ;;
11769     aix,no) # traditional AIX only
11770       dynamic_linker='AIX lib.a(lib.so.V)'
11771       # We preserve .a as extension for shared libraries through AIX4.2
11772       # and later when we are not doing run time linking.
11773       library_names_spec='$libname$release.a $libname.a'
11774       soname_spec='$libname$release$shared_ext$major'
11775       ;;
11776     svr4,*) # full svr4 only
11777       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11778       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11779       # We do not specify a path in Import Files, so LIBPATH fires.
11780       shlibpath_overrides_runpath=yes
11781       ;;
11782     *,yes) # both, prefer svr4
11783       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11784       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11785       # unpreferred sharedlib libNAME.a needs extra handling
11786       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11787       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11788       # We do not specify a path in Import Files, so LIBPATH fires.
11789       shlibpath_overrides_runpath=yes
11790       ;;
11791     *,no) # both, prefer aix
11792       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11793       library_names_spec='$libname$release.a $libname.a'
11794       soname_spec='$libname$release$shared_ext$major'
11795       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11796       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11797       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11798       ;;
11799     esac
11800     shlibpath_var=LIBPATH
11801   fi
11802   ;;
11803
11804 amigaos*)
11805   case $host_cpu in
11806   powerpc)
11807     # Since July 2007 AmigaOS4 officially supports .so libraries.
11808     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11809     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11810     ;;
11811   m68k)
11812     library_names_spec='$libname.ixlibrary $libname.a'
11813     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11814     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11815     ;;
11816   esac
11817   ;;
11818
11819 beos*)
11820   library_names_spec='$libname$shared_ext'
11821   dynamic_linker="$host_os ld.so"
11822   shlibpath_var=LIBRARY_PATH
11823   ;;
11824
11825 bsdi[45]*)
11826   version_type=linux # correct to gnu/linux during the next big refactor
11827   need_version=no
11828   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11829   soname_spec='$libname$release$shared_ext$major'
11830   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11831   shlibpath_var=LD_LIBRARY_PATH
11832   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11833   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11834   # the default ld.so.conf also contains /usr/contrib/lib and
11835   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11836   # libtool to hard-code these into programs
11837   ;;
11838
11839 cygwin* | mingw* | pw32* | cegcc*)
11840   version_type=windows
11841   shrext_cmds=.dll
11842   need_version=no
11843   need_lib_prefix=no
11844
11845   case $GCC,$cc_basename in
11846   yes,*)
11847     # gcc
11848     library_names_spec='$libname.dll.a'
11849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11850     postinstall_cmds='base_file=`basename \$file`~
11851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11852       dldir=$destdir/`dirname \$dlpath`~
11853       test -d \$dldir || mkdir -p \$dldir~
11854       $install_prog $dir/$dlname \$dldir/$dlname~
11855       chmod a+x \$dldir/$dlname~
11856       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11857         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11858       fi'
11859     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11860       dlpath=$dir/\$dldll~
11861        $RM \$dlpath'
11862     shlibpath_overrides_runpath=yes
11863
11864     case $host_os in
11865     cygwin*)
11866       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11867       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11868
11869       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11870       ;;
11871     mingw* | cegcc*)
11872       # MinGW DLLs use traditional 'lib' prefix
11873       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11874       ;;
11875     pw32*)
11876       # pw32 DLLs use 'pw' prefix rather than 'lib'
11877       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11878       ;;
11879     esac
11880     dynamic_linker='Win32 ld.exe'
11881     ;;
11882
11883   *,cl*)
11884     # Native MSVC
11885     libname_spec='$name'
11886     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11887     library_names_spec='$libname.dll.lib'
11888
11889     case $build_os in
11890     mingw*)
11891       sys_lib_search_path_spec=
11892       lt_save_ifs=$IFS
11893       IFS=';'
11894       for lt_path in $LIB
11895       do
11896         IFS=$lt_save_ifs
11897         # Let DOS variable expansion print the short 8.3 style file name.
11898         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11899         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11900       done
11901       IFS=$lt_save_ifs
11902       # Convert to MSYS style.
11903       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11904       ;;
11905     cygwin*)
11906       # Convert to unix form, then to dos form, then back to unix form
11907       # but this time dos style (no spaces!) so that the unix form looks
11908       # like /cygdrive/c/PROGRA~1:/cygdr...
11909       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11910       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11911       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11912       ;;
11913     *)
11914       sys_lib_search_path_spec=$LIB
11915       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11916         # It is most probably a Windows format PATH.
11917         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11918       else
11919         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11920       fi
11921       # FIXME: find the short name or the path components, as spaces are
11922       # common. (e.g. "Program Files" -> "PROGRA~1")
11923       ;;
11924     esac
11925
11926     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11927     postinstall_cmds='base_file=`basename \$file`~
11928       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11929       dldir=$destdir/`dirname \$dlpath`~
11930       test -d \$dldir || mkdir -p \$dldir~
11931       $install_prog $dir/$dlname \$dldir/$dlname'
11932     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11933       dlpath=$dir/\$dldll~
11934        $RM \$dlpath'
11935     shlibpath_overrides_runpath=yes
11936     dynamic_linker='Win32 link.exe'
11937     ;;
11938
11939   *)
11940     # Assume MSVC wrapper
11941     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11942     dynamic_linker='Win32 ld.exe'
11943     ;;
11944   esac
11945   # FIXME: first we should search . and the directory the executable is in
11946   shlibpath_var=PATH
11947   ;;
11948
11949 darwin* | rhapsody*)
11950   dynamic_linker="$host_os dyld"
11951   version_type=darwin
11952   need_lib_prefix=no
11953   need_version=no
11954   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11955   soname_spec='$libname$release$major$shared_ext'
11956   shlibpath_overrides_runpath=yes
11957   shlibpath_var=DYLD_LIBRARY_PATH
11958   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11959
11960   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11961   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11962   ;;
11963
11964 dgux*)
11965   version_type=linux # correct to gnu/linux during the next big refactor
11966   need_lib_prefix=no
11967   need_version=no
11968   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969   soname_spec='$libname$release$shared_ext$major'
11970   shlibpath_var=LD_LIBRARY_PATH
11971   ;;
11972
11973 freebsd* | dragonfly*)
11974   # DragonFly does not have aout.  When/if they implement a new
11975   # versioning mechanism, adjust this.
11976   if test -x /usr/bin/objformat; then
11977     objformat=`/usr/bin/objformat`
11978   else
11979     case $host_os in
11980     freebsd[23].*) objformat=aout ;;
11981     *) objformat=elf ;;
11982     esac
11983   fi
11984   version_type=freebsd-$objformat
11985   case $version_type in
11986     freebsd-elf*)
11987       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988       soname_spec='$libname$release$shared_ext$major'
11989       need_version=no
11990       need_lib_prefix=no
11991       ;;
11992     freebsd-*)
11993       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11994       need_version=yes
11995       ;;
11996   esac
11997   shlibpath_var=LD_LIBRARY_PATH
11998   case $host_os in
11999   freebsd2.*)
12000     shlibpath_overrides_runpath=yes
12001     ;;
12002   freebsd3.[01]* | freebsdelf3.[01]*)
12003     shlibpath_overrides_runpath=yes
12004     hardcode_into_libs=yes
12005     ;;
12006   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12007   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12008     shlibpath_overrides_runpath=no
12009     hardcode_into_libs=yes
12010     ;;
12011   *) # from 4.6 on, and DragonFly
12012     shlibpath_overrides_runpath=yes
12013     hardcode_into_libs=yes
12014     ;;
12015   esac
12016   ;;
12017
12018 haiku*)
12019   version_type=linux # correct to gnu/linux during the next big refactor
12020   need_lib_prefix=no
12021   need_version=no
12022   dynamic_linker="$host_os runtime_loader"
12023   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024   soname_spec='$libname$release$shared_ext$major'
12025   shlibpath_var=LIBRARY_PATH
12026   shlibpath_overrides_runpath=no
12027   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12028   hardcode_into_libs=yes
12029   ;;
12030
12031 hpux9* | hpux10* | hpux11*)
12032   # Give a soname corresponding to the major version so that dld.sl refuses to
12033   # link against other versions.
12034   version_type=sunos
12035   need_lib_prefix=no
12036   need_version=no
12037   case $host_cpu in
12038   ia64*)
12039     shrext_cmds='.so'
12040     hardcode_into_libs=yes
12041     dynamic_linker="$host_os dld.so"
12042     shlibpath_var=LD_LIBRARY_PATH
12043     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12044     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12045     soname_spec='$libname$release$shared_ext$major'
12046     if test 32 = "$HPUX_IA64_MODE"; then
12047       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12048       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12049     else
12050       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12051       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12052     fi
12053     ;;
12054   hppa*64*)
12055     shrext_cmds='.sl'
12056     hardcode_into_libs=yes
12057     dynamic_linker="$host_os dld.sl"
12058     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12059     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12060     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061     soname_spec='$libname$release$shared_ext$major'
12062     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12063     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12064     ;;
12065   *)
12066     shrext_cmds='.sl'
12067     dynamic_linker="$host_os dld.sl"
12068     shlibpath_var=SHLIB_PATH
12069     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12070     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071     soname_spec='$libname$release$shared_ext$major'
12072     ;;
12073   esac
12074   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12075   postinstall_cmds='chmod 555 $lib'
12076   # or fails outright, so override atomically:
12077   install_override_mode=555
12078   ;;
12079
12080 interix[3-9]*)
12081   version_type=linux # correct to gnu/linux during the next big refactor
12082   need_lib_prefix=no
12083   need_version=no
12084   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12085   soname_spec='$libname$release$shared_ext$major'
12086   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12087   shlibpath_var=LD_LIBRARY_PATH
12088   shlibpath_overrides_runpath=no
12089   hardcode_into_libs=yes
12090   ;;
12091
12092 irix5* | irix6* | nonstopux*)
12093   case $host_os in
12094     nonstopux*) version_type=nonstopux ;;
12095     *)
12096         if test yes = "$lt_cv_prog_gnu_ld"; then
12097                 version_type=linux # correct to gnu/linux during the next big refactor
12098         else
12099                 version_type=irix
12100         fi ;;
12101   esac
12102   need_lib_prefix=no
12103   need_version=no
12104   soname_spec='$libname$release$shared_ext$major'
12105   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12106   case $host_os in
12107   irix5* | nonstopux*)
12108     libsuff= shlibsuff=
12109     ;;
12110   *)
12111     case $LD in # libtool.m4 will add one of these switches to LD
12112     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12113       libsuff= shlibsuff= libmagic=32-bit;;
12114     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12115       libsuff=32 shlibsuff=N32 libmagic=N32;;
12116     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12117       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12118     *) libsuff= shlibsuff= libmagic=never-match;;
12119     esac
12120     ;;
12121   esac
12122   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12123   shlibpath_overrides_runpath=no
12124   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12125   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12126   hardcode_into_libs=yes
12127   ;;
12128
12129 # No shared lib support for Linux oldld, aout, or coff.
12130 linux*oldld* | linux*aout* | linux*coff*)
12131   dynamic_linker=no
12132   ;;
12133
12134 linux*android*)
12135   version_type=none # Android doesn't support versioned libraries.
12136   need_lib_prefix=no
12137   need_version=no
12138   library_names_spec='$libname$release$shared_ext'
12139   soname_spec='$libname$release$shared_ext'
12140   finish_cmds=
12141   shlibpath_var=LD_LIBRARY_PATH
12142   shlibpath_overrides_runpath=yes
12143
12144   # This implies no fast_install, which is unacceptable.
12145   # Some rework will be needed to allow for fast_install
12146   # before this can be enabled.
12147   hardcode_into_libs=yes
12148
12149   dynamic_linker='Android linker'
12150   # Don't embed -rpath directories since the linker doesn't support them.
12151   hardcode_libdir_flag_spec='-L$libdir'
12152   ;;
12153
12154 # This must be glibc/ELF.
12155 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12156   version_type=linux # correct to gnu/linux during the next big refactor
12157   need_lib_prefix=no
12158   need_version=no
12159   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12160   soname_spec='$libname$release$shared_ext$major'
12161   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12162   shlibpath_var=LD_LIBRARY_PATH
12163   shlibpath_overrides_runpath=no
12164
12165   # Some binutils ld are patched to set DT_RUNPATH
12166   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   lt_cv_shlibpath_overrides_runpath=no
12170     save_LDFLAGS=$LDFLAGS
12171     save_libdir=$libdir
12172     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12173          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h.  */
12176
12177 int
12178 main ()
12179 {
12180
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"; then :
12186   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12187   lt_cv_shlibpath_overrides_runpath=yes
12188 fi
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext \
12191     conftest$ac_exeext conftest.$ac_ext
12192     LDFLAGS=$save_LDFLAGS
12193     libdir=$save_libdir
12194     
12195 fi
12196
12197   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12198
12199   # This implies no fast_install, which is unacceptable.
12200   # Some rework will be needed to allow for fast_install
12201   # before this can be enabled.
12202   hardcode_into_libs=yes
12203
12204   # Ideally, we could use ldconfig to report *all* directores which are
12205   # searched for libraries, however this is still not possible.  Aside from not
12206   # being certain /sbin/ldconfig is available, command
12207   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12208   # even though it is searched at run-time.  Try to do the best guess by
12209   # appending ld.so.conf contents (and includes) to the search path.
12210   if test -f /etc/ld.so.conf; then
12211     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' ' '`
12212     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12213   fi
12214
12215   # We used to test for /lib/ld.so.1 and disable shared libraries on
12216   # powerpc, because MkLinux only supported shared libraries with the
12217   # GNU dynamic linker.  Since this was broken with cross compilers,
12218   # most powerpc-linux boxes support dynamic linking these days and
12219   # people can always --disable-shared, the test was removed, and we
12220   # assume the GNU/Linux dynamic linker is in use.
12221   dynamic_linker='GNU/Linux ld.so'
12222   ;;
12223
12224 netbsdelf*-gnu)
12225   version_type=linux
12226   need_lib_prefix=no
12227   need_version=no
12228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12229   soname_spec='${libname}${release}${shared_ext}$major'
12230   shlibpath_var=LD_LIBRARY_PATH
12231   shlibpath_overrides_runpath=no
12232   hardcode_into_libs=yes
12233   dynamic_linker='NetBSD ld.elf_so'
12234   ;;
12235
12236 netbsd*)
12237   version_type=sunos
12238   need_lib_prefix=no
12239   need_version=no
12240   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12241     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12242     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12243     dynamic_linker='NetBSD (a.out) ld.so'
12244   else
12245     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246     soname_spec='$libname$release$shared_ext$major'
12247     dynamic_linker='NetBSD ld.elf_so'
12248   fi
12249   shlibpath_var=LD_LIBRARY_PATH
12250   shlibpath_overrides_runpath=yes
12251   hardcode_into_libs=yes
12252   ;;
12253
12254 newsos6)
12255   version_type=linux # correct to gnu/linux during the next big refactor
12256   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12257   shlibpath_var=LD_LIBRARY_PATH
12258   shlibpath_overrides_runpath=yes
12259   ;;
12260
12261 *nto* | *qnx*)
12262   version_type=qnx
12263   need_lib_prefix=no
12264   need_version=no
12265   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12266   soname_spec='$libname$release$shared_ext$major'
12267   shlibpath_var=LD_LIBRARY_PATH
12268   shlibpath_overrides_runpath=no
12269   hardcode_into_libs=yes
12270   dynamic_linker='ldqnx.so'
12271   ;;
12272
12273 openbsd* | bitrig*)
12274   version_type=sunos
12275   sys_lib_dlsearch_path_spec=/usr/lib
12276   need_lib_prefix=no
12277   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12278     need_version=no
12279   else
12280     need_version=yes
12281   fi
12282   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12283   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12284   shlibpath_var=LD_LIBRARY_PATH
12285   shlibpath_overrides_runpath=yes
12286   ;;
12287
12288 os2*)
12289   libname_spec='$name'
12290   version_type=windows
12291   shrext_cmds=.dll
12292   need_version=no
12293   need_lib_prefix=no
12294   # OS/2 can only load a DLL with a base name of 8 characters or less.
12295   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12296     v=$($ECHO $release$versuffix | tr -d .-);
12297     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12298     $ECHO $n$v`$shared_ext'
12299   library_names_spec='${libname}_dll.$libext'
12300   dynamic_linker='OS/2 ld.exe'
12301   shlibpath_var=BEGINLIBPATH
12302   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12303   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12304   postinstall_cmds='base_file=`basename \$file`~
12305     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12306     dldir=$destdir/`dirname \$dlpath`~
12307     test -d \$dldir || mkdir -p \$dldir~
12308     $install_prog $dir/$dlname \$dldir/$dlname~
12309     chmod a+x \$dldir/$dlname~
12310     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12311       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12312     fi'
12313   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12314     dlpath=$dir/\$dldll~
12315     $RM \$dlpath'
12316   ;;
12317
12318 osf3* | osf4* | osf5*)
12319   version_type=osf
12320   need_lib_prefix=no
12321   need_version=no
12322   soname_spec='$libname$release$shared_ext$major'
12323   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12324   shlibpath_var=LD_LIBRARY_PATH
12325   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12326   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12327   ;;
12328
12329 rdos*)
12330   dynamic_linker=no
12331   ;;
12332
12333 solaris*)
12334   version_type=linux # correct to gnu/linux during the next big refactor
12335   need_lib_prefix=no
12336   need_version=no
12337   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12338   soname_spec='$libname$release$shared_ext$major'
12339   shlibpath_var=LD_LIBRARY_PATH
12340   shlibpath_overrides_runpath=yes
12341   hardcode_into_libs=yes
12342   # ldd complains unless libraries are executable
12343   postinstall_cmds='chmod +x $lib'
12344   ;;
12345
12346 sunos4*)
12347   version_type=sunos
12348   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12349   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12350   shlibpath_var=LD_LIBRARY_PATH
12351   shlibpath_overrides_runpath=yes
12352   if test yes = "$with_gnu_ld"; then
12353     need_lib_prefix=no
12354   fi
12355   need_version=yes
12356   ;;
12357
12358 sysv4 | sysv4.3*)
12359   version_type=linux # correct to gnu/linux during the next big refactor
12360   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12361   soname_spec='$libname$release$shared_ext$major'
12362   shlibpath_var=LD_LIBRARY_PATH
12363   case $host_vendor in
12364     sni)
12365       shlibpath_overrides_runpath=no
12366       need_lib_prefix=no
12367       runpath_var=LD_RUN_PATH
12368       ;;
12369     siemens)
12370       need_lib_prefix=no
12371       ;;
12372     motorola)
12373       need_lib_prefix=no
12374       need_version=no
12375       shlibpath_overrides_runpath=no
12376       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12377       ;;
12378   esac
12379   ;;
12380
12381 sysv4*MP*)
12382   if test -d /usr/nec; then
12383     version_type=linux # correct to gnu/linux during the next big refactor
12384     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12385     soname_spec='$libname$shared_ext.$major'
12386     shlibpath_var=LD_LIBRARY_PATH
12387   fi
12388   ;;
12389
12390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12391   version_type=sco
12392   need_lib_prefix=no
12393   need_version=no
12394   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12395   soname_spec='$libname$release$shared_ext$major'
12396   shlibpath_var=LD_LIBRARY_PATH
12397   shlibpath_overrides_runpath=yes
12398   hardcode_into_libs=yes
12399   if test yes = "$with_gnu_ld"; then
12400     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12401   else
12402     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12403     case $host_os in
12404       sco3.2v5*)
12405         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12406         ;;
12407     esac
12408   fi
12409   sys_lib_dlsearch_path_spec='/usr/lib'
12410   ;;
12411
12412 tpf*)
12413   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12414   version_type=linux # correct to gnu/linux during the next big refactor
12415   need_lib_prefix=no
12416   need_version=no
12417   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12418   shlibpath_var=LD_LIBRARY_PATH
12419   shlibpath_overrides_runpath=no
12420   hardcode_into_libs=yes
12421   ;;
12422
12423 uts4*)
12424   version_type=linux # correct to gnu/linux during the next big refactor
12425   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12426   soname_spec='$libname$release$shared_ext$major'
12427   shlibpath_var=LD_LIBRARY_PATH
12428   ;;
12429
12430 *)
12431   dynamic_linker=no
12432   ;;
12433 esac
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12435 $as_echo "$dynamic_linker" >&6; }
12436 test no = "$dynamic_linker" && can_build_shared=no
12437
12438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12439 if test yes = "$GCC"; then
12440   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12441 fi
12442
12443 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12444   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12445 fi
12446
12447 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12448   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12449 fi
12450
12451 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12452 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12453
12454 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12455 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12456
12457 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12458 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12459
12460
12461     
12462     
12463     
12464
12465
12466     
12467     
12468     
12469
12470
12471     
12472     
12473     
12474
12475
12476     
12477     
12478     
12479
12480
12481     
12482     
12483     
12484
12485
12486     
12487     
12488     
12489
12490
12491     
12492     
12493     
12494
12495
12496     
12497     
12498     
12499
12500
12501     
12502     
12503     
12504
12505
12506     
12507     
12508     
12509
12510
12511     
12512     
12513     
12514
12515
12516     
12517     
12518     
12519
12520
12521     
12522     
12523     
12524
12525
12526     
12527     
12528     
12529
12530
12531     
12532     
12533     
12534
12535
12536     
12537     
12538     
12539
12540
12541     
12542     
12543     
12544
12545
12546     
12547     
12548     
12549
12550
12551     
12552     
12553     
12554
12555
12556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12557 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12558 hardcode_action=
12559 if test -n "$hardcode_libdir_flag_spec" ||
12560    test -n "$runpath_var" ||
12561    test yes = "$hardcode_automatic"; then
12562
12563   # We can hardcode non-existent directories.
12564   if test no != "$hardcode_direct" &&
12565      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12566      # have to relink, otherwise we might link with an installed library
12567      # when we should be linking with a yet-to-be-installed one
12568      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12569      test no != "$hardcode_minus_L"; then
12570     # Linking always hardcodes the temporary library directory.
12571     hardcode_action=relink
12572   else
12573     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12574     hardcode_action=immediate
12575   fi
12576 else
12577   # We cannot hardcode anything, or else we can only hardcode existing
12578   # directories.
12579   hardcode_action=unsupported
12580 fi
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12582 $as_echo "$hardcode_action" >&6; }
12583
12584 if test relink = "$hardcode_action" ||
12585    test yes = "$inherit_rpath"; then
12586   # Fast installation is not supported
12587   enable_fast_install=no
12588 elif test yes = "$shlibpath_overrides_runpath" ||
12589      test no = "$enable_shared"; then
12590   # Fast installation is not necessary
12591   enable_fast_install=needless
12592 fi
12593
12594     
12595     
12596     
12597
12598
12599   if test yes != "$enable_dlopen"; then
12600   enable_dlopen=unknown
12601   enable_dlopen_self=unknown
12602   enable_dlopen_self_static=unknown
12603 else
12604   lt_cv_dlopen=no
12605   lt_cv_dlopen_libs=
12606
12607   case $host_os in
12608   beos*)
12609     lt_cv_dlopen=load_add_on
12610     lt_cv_dlopen_libs=
12611     lt_cv_dlopen_self=yes
12612     ;;
12613
12614   mingw* | pw32* | cegcc*)
12615     lt_cv_dlopen=LoadLibrary
12616     lt_cv_dlopen_libs=
12617     ;;
12618
12619   cygwin*)
12620     lt_cv_dlopen=dlopen
12621     lt_cv_dlopen_libs=
12622     ;;
12623
12624   darwin*)
12625     # if libdl is installed we need to link against it
12626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12628 if ${ac_cv_lib_dl_dlopen+:} false; then :
12629   $as_echo_n "(cached) " >&6
12630 else
12631   ac_check_lib_save_LIBS=$LIBS
12632 LIBS="-ldl  $LIBS"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h.  */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char dlopen ();
12643 int
12644 main ()
12645 {
12646 return dlopen ();
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 if ac_fn_c_try_link "$LINENO"; then :
12652   ac_cv_lib_dl_dlopen=yes
12653 else
12654   ac_cv_lib_dl_dlopen=no
12655 fi
12656 rm -f core conftest.err conftest.$ac_objext \
12657     conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12662 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12663   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12664 else
12665   
12666     lt_cv_dlopen=dyld
12667     lt_cv_dlopen_libs=
12668     lt_cv_dlopen_self=yes
12669     
12670 fi
12671
12672     ;;
12673
12674   tpf*)
12675     # Don't try to run any link tests for TPF.  We know it's impossible
12676     # because TPF is a cross-compiler, and we know how we open DSOs.
12677     lt_cv_dlopen=dlopen
12678     lt_cv_dlopen_libs=
12679     lt_cv_dlopen_self=no
12680     ;;
12681
12682   *)
12683     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12684 if test "x$ac_cv_func_shl_load" = xyes; then :
12685   lt_cv_dlopen=shl_load
12686 else
12687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12688 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12689 if ${ac_cv_lib_dld_shl_load+:} false; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   ac_check_lib_save_LIBS=$LIBS
12693 LIBS="-ldld  $LIBS"
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h.  */
12696
12697 /* Override any GCC internal prototype to avoid an error.
12698    Use char because int might match the return type of a GCC
12699    builtin and then its argument prototype would still apply.  */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 char shl_load ();
12704 int
12705 main ()
12706 {
12707 return shl_load ();
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 if ac_fn_c_try_link "$LINENO"; then :
12713   ac_cv_lib_dld_shl_load=yes
12714 else
12715   ac_cv_lib_dld_shl_load=no
12716 fi
12717 rm -f core conftest.err conftest.$ac_objext \
12718     conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12720 fi
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12722 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12723 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12724   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12725 else
12726   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12727 if test "x$ac_cv_func_dlopen" = xyes; then :
12728   lt_cv_dlopen=dlopen
12729 else
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12731 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12732 if ${ac_cv_lib_dl_dlopen+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-ldl  $LIBS"
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h.  */
12739
12740 /* Override any GCC internal prototype to avoid an error.
12741    Use char because int might match the return type of a GCC
12742    builtin and then its argument prototype would still apply.  */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char dlopen ();
12747 int
12748 main ()
12749 {
12750 return dlopen ();
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 if ac_fn_c_try_link "$LINENO"; then :
12756   ac_cv_lib_dl_dlopen=yes
12757 else
12758   ac_cv_lib_dl_dlopen=no
12759 fi
12760 rm -f core conftest.err conftest.$ac_objext \
12761     conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12763 fi
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12765 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12766 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12767   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12768 else
12769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12770 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12771 if ${ac_cv_lib_svld_dlopen+:} false; then :
12772   $as_echo_n "(cached) " >&6
12773 else
12774   ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-lsvld  $LIBS"
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h.  */
12778
12779 /* Override any GCC internal prototype to avoid an error.
12780    Use char because int might match the return type of a GCC
12781    builtin and then its argument prototype would still apply.  */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char dlopen ();
12786 int
12787 main ()
12788 {
12789 return dlopen ();
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_link "$LINENO"; then :
12795   ac_cv_lib_svld_dlopen=yes
12796 else
12797   ac_cv_lib_svld_dlopen=no
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext \
12800     conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12804 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12805 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12806   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12807 else
12808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12809 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12810 if ${ac_cv_lib_dld_dld_link+:} false; then :
12811   $as_echo_n "(cached) " >&6
12812 else
12813   ac_check_lib_save_LIBS=$LIBS
12814 LIBS="-ldld  $LIBS"
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h.  */
12817
12818 /* Override any GCC internal prototype to avoid an error.
12819    Use char because int might match the return type of a GCC
12820    builtin and then its argument prototype would still apply.  */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 char dld_link ();
12825 int
12826 main ()
12827 {
12828 return dld_link ();
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_c_try_link "$LINENO"; then :
12834   ac_cv_lib_dld_dld_link=yes
12835 else
12836   ac_cv_lib_dld_dld_link=no
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext \
12839     conftest$ac_exeext conftest.$ac_ext
12840 LIBS=$ac_check_lib_save_LIBS
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12843 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12844 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12845   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12846 fi
12847
12848               
12849 fi
12850
12851             
12852 fi
12853
12854           
12855 fi
12856
12857         
12858 fi
12859
12860       
12861 fi
12862
12863     ;;
12864   esac
12865
12866   if test no = "$lt_cv_dlopen"; then
12867     enable_dlopen=no
12868   else
12869     enable_dlopen=yes
12870   fi
12871
12872   case $lt_cv_dlopen in
12873   dlopen)
12874     save_CPPFLAGS=$CPPFLAGS
12875     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12876
12877     save_LDFLAGS=$LDFLAGS
12878     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12879
12880     save_LIBS=$LIBS
12881     LIBS="$lt_cv_dlopen_libs $LIBS"
12882
12883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12884 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12885 if ${lt_cv_dlopen_self+:} false; then :
12886   $as_echo_n "(cached) " >&6
12887 else
12888           if test yes = "$cross_compiling"; then :
12889   lt_cv_dlopen_self=cross
12890 else
12891   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12892   lt_status=$lt_dlunknown
12893   cat > conftest.$ac_ext <<_LT_EOF
12894 #line $LINENO "configure"
12895 #include "confdefs.h"
12896
12897 #if HAVE_DLFCN_H
12898 #include <dlfcn.h>
12899 #endif
12900
12901 #include <stdio.h>
12902
12903 #ifdef RTLD_GLOBAL
12904 #  define LT_DLGLOBAL           RTLD_GLOBAL
12905 #else
12906 #  ifdef DL_GLOBAL
12907 #    define LT_DLGLOBAL         DL_GLOBAL
12908 #  else
12909 #    define LT_DLGLOBAL         0
12910 #  endif
12911 #endif
12912
12913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12914    find out it does not work in some platform. */
12915 #ifndef LT_DLLAZY_OR_NOW
12916 #  ifdef RTLD_LAZY
12917 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12918 #  else
12919 #    ifdef DL_LAZY
12920 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12921 #    else
12922 #      ifdef RTLD_NOW
12923 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12924 #      else
12925 #        ifdef DL_NOW
12926 #          define LT_DLLAZY_OR_NOW      DL_NOW
12927 #        else
12928 #          define LT_DLLAZY_OR_NOW      0
12929 #        endif
12930 #      endif
12931 #    endif
12932 #  endif
12933 #endif
12934
12935 /* When -fvisibility=hidden is used, assume the code has been annotated
12936    correspondingly for the symbols needed.  */
12937 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12938 int fnord () __attribute__((visibility("default")));
12939 #endif
12940
12941 int fnord () { return 42; }
12942 int main ()
12943 {
12944   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12945   int status = $lt_dlunknown;
12946
12947   if (self)
12948     {
12949       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12950       else
12951         {
12952           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12953           else puts (dlerror ());
12954         }
12955       /* dlclose (self); */
12956     }
12957   else
12958     puts (dlerror ());
12959
12960   return status;
12961 }
12962 _LT_EOF
12963   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12964   (eval $ac_link) 2>&5
12965   ac_status=$?
12966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12967   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12968     (./conftest; exit; ) >&5 2>/dev/null
12969     lt_status=$?
12970     case x$lt_status in
12971       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12972       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12973       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12974     esac
12975   else :
12976     # compilation failed
12977     lt_cv_dlopen_self=no
12978   fi
12979 fi
12980 rm -fr conftest*
12981
12982     
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12985 $as_echo "$lt_cv_dlopen_self" >&6; }
12986
12987     if test yes = "$lt_cv_dlopen_self"; then
12988       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12989       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12990 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12991 if ${lt_cv_dlopen_self_static+:} false; then :
12992   $as_echo_n "(cached) " >&6
12993 else
12994           if test yes = "$cross_compiling"; then :
12995   lt_cv_dlopen_self_static=cross
12996 else
12997   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12998   lt_status=$lt_dlunknown
12999   cat > conftest.$ac_ext <<_LT_EOF
13000 #line $LINENO "configure"
13001 #include "confdefs.h"
13002
13003 #if HAVE_DLFCN_H
13004 #include <dlfcn.h>
13005 #endif
13006
13007 #include <stdio.h>
13008
13009 #ifdef RTLD_GLOBAL
13010 #  define LT_DLGLOBAL           RTLD_GLOBAL
13011 #else
13012 #  ifdef DL_GLOBAL
13013 #    define LT_DLGLOBAL         DL_GLOBAL
13014 #  else
13015 #    define LT_DLGLOBAL         0
13016 #  endif
13017 #endif
13018
13019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13020    find out it does not work in some platform. */
13021 #ifndef LT_DLLAZY_OR_NOW
13022 #  ifdef RTLD_LAZY
13023 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13024 #  else
13025 #    ifdef DL_LAZY
13026 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13027 #    else
13028 #      ifdef RTLD_NOW
13029 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13030 #      else
13031 #        ifdef DL_NOW
13032 #          define LT_DLLAZY_OR_NOW      DL_NOW
13033 #        else
13034 #          define LT_DLLAZY_OR_NOW      0
13035 #        endif
13036 #      endif
13037 #    endif
13038 #  endif
13039 #endif
13040
13041 /* When -fvisibility=hidden is used, assume the code has been annotated
13042    correspondingly for the symbols needed.  */
13043 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13044 int fnord () __attribute__((visibility("default")));
13045 #endif
13046
13047 int fnord () { return 42; }
13048 int main ()
13049 {
13050   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13051   int status = $lt_dlunknown;
13052
13053   if (self)
13054     {
13055       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13056       else
13057         {
13058           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13059           else puts (dlerror ());
13060         }
13061       /* dlclose (self); */
13062     }
13063   else
13064     puts (dlerror ());
13065
13066   return status;
13067 }
13068 _LT_EOF
13069   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13070   (eval $ac_link) 2>&5
13071   ac_status=$?
13072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13074     (./conftest; exit; ) >&5 2>/dev/null
13075     lt_status=$?
13076     case x$lt_status in
13077       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13078       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13079       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13080     esac
13081   else :
13082     # compilation failed
13083     lt_cv_dlopen_self_static=no
13084   fi
13085 fi
13086 rm -fr conftest*
13087
13088       
13089 fi
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13091 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13092     fi
13093
13094     CPPFLAGS=$save_CPPFLAGS
13095     LDFLAGS=$save_LDFLAGS
13096     LIBS=$save_LIBS
13097     ;;
13098   esac
13099
13100   case $lt_cv_dlopen_self in
13101   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13102   *) enable_dlopen_self=unknown ;;
13103   esac
13104
13105   case $lt_cv_dlopen_self_static in
13106   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13107   *) enable_dlopen_self_static=unknown ;;
13108   esac
13109 fi
13110
13111     
13112     
13113     
13114
13115
13116     
13117     
13118     
13119
13120
13121     
13122     
13123     
13124
13125
13126   
13127 striplib=
13128 old_striplib=
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13130 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13131 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13132   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13133   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135 $as_echo "yes" >&6; }
13136 else
13137 # FIXME - insert some real tests, host_os isn't really good enough
13138   case $host_os in
13139   darwin*)
13140     if test -n "$STRIP"; then
13141       striplib="$STRIP -x"
13142       old_striplib="$STRIP -S"
13143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 $as_echo "yes" >&6; }
13145     else
13146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148     fi
13149     ;;
13150   *)
13151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13153     ;;
13154   esac
13155 fi
13156
13157     
13158     
13159     
13160
13161
13162     
13163     
13164     
13165
13166
13167
13168   # Report what library types will actually be built
13169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13170 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13172 $as_echo "$can_build_shared" >&6; }
13173
13174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13175 $as_echo_n "checking whether to build shared libraries... " >&6; }
13176   test no = "$can_build_shared" && enable_shared=no
13177
13178   # On AIX, shared libraries and static libraries use the same namespace, and
13179   # are all built from PIC.
13180   case $host_os in
13181   aix3*)
13182     test yes = "$enable_shared" && enable_static=no
13183     if test -n "$RANLIB"; then
13184       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13185       postinstall_cmds='$RANLIB $lib'
13186     fi
13187     ;;
13188
13189   aix[4-9]*)
13190     if test ia64 != "$host_cpu"; then
13191       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13192       yes,aix,yes) ;;                   # shared object as lib.so file only
13193       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13194       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13195       esac
13196     fi
13197     ;;
13198   esac
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13200 $as_echo "$enable_shared" >&6; }
13201
13202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13203 $as_echo_n "checking whether to build static libraries... " >&6; }
13204   # Make sure either enable_shared or enable_static is yes.
13205   test yes = "$enable_shared" || enable_static=yes
13206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13207 $as_echo "$enable_static" >&6; }
13208
13209   
13210
13211
13212 fi
13213 ac_ext=c
13214 ac_cpp='$CPP $CPPFLAGS'
13215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13218
13219 CC=$lt_save_CC
13220
13221       if test -n "$CXX" && ( test no != "$CXX" &&
13222     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13223     (test g++ != "$CXX"))); then
13224   ac_ext=cpp
13225 ac_cpp='$CXXCPP $CPPFLAGS'
13226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13230 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13231 if test -z "$CXXCPP"; then
13232   if ${ac_cv_prog_CXXCPP+:} false; then :
13233   $as_echo_n "(cached) " >&6
13234 else
13235       # Double quotes because CXXCPP needs to be expanded
13236     for CXXCPP in "$CXX -E" "/lib/cpp"
13237     do
13238       ac_preproc_ok=false
13239 for ac_cxx_preproc_warn_flag in '' yes
13240 do
13241   # Use a header file that comes with gcc, so configuring glibc
13242   # with a fresh cross-compiler works.
13243   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13244   # <limits.h> exists even on freestanding compilers.
13245   # On the NeXT, cc -E runs the code through the compiler's parser,
13246   # not just through cpp. "Syntax error" is here to catch this case.
13247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h.  */
13249 @%:@ifdef __STDC__
13250 @%:@ include <limits.h>
13251 @%:@else
13252 @%:@ include <assert.h>
13253 @%:@endif
13254                      Syntax error
13255 _ACEOF
13256 if ac_fn_cxx_try_cpp "$LINENO"; then :
13257   
13258 else
13259   # Broken: fails on valid input.
13260 continue
13261 fi
13262 rm -f conftest.err conftest.i conftest.$ac_ext
13263
13264   # OK, works on sane cases.  Now check whether nonexistent headers
13265   # can be detected and how.
13266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h.  */
13268 @%:@include <ac_nonexistent.h>
13269 _ACEOF
13270 if ac_fn_cxx_try_cpp "$LINENO"; then :
13271   # Broken: success on invalid input.
13272 continue
13273 else
13274   # Passes both tests.
13275 ac_preproc_ok=:
13276 break
13277 fi
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13279
13280 done
13281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13282 rm -f conftest.i conftest.err conftest.$ac_ext
13283 if $ac_preproc_ok; then :
13284   break
13285 fi
13286
13287     done
13288     ac_cv_prog_CXXCPP=$CXXCPP
13289   
13290 fi
13291   CXXCPP=$ac_cv_prog_CXXCPP
13292 else
13293   ac_cv_prog_CXXCPP=$CXXCPP
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13296 $as_echo "$CXXCPP" >&6; }
13297 ac_preproc_ok=false
13298 for ac_cxx_preproc_warn_flag in '' yes
13299 do
13300   # Use a header file that comes with gcc, so configuring glibc
13301   # with a fresh cross-compiler works.
13302   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13303   # <limits.h> exists even on freestanding compilers.
13304   # On the NeXT, cc -E runs the code through the compiler's parser,
13305   # not just through cpp. "Syntax error" is here to catch this case.
13306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h.  */
13308 @%:@ifdef __STDC__
13309 @%:@ include <limits.h>
13310 @%:@else
13311 @%:@ include <assert.h>
13312 @%:@endif
13313                      Syntax error
13314 _ACEOF
13315 if ac_fn_cxx_try_cpp "$LINENO"; then :
13316   
13317 else
13318   # Broken: fails on valid input.
13319 continue
13320 fi
13321 rm -f conftest.err conftest.i conftest.$ac_ext
13322
13323   # OK, works on sane cases.  Now check whether nonexistent headers
13324   # can be detected and how.
13325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h.  */
13327 @%:@include <ac_nonexistent.h>
13328 _ACEOF
13329 if ac_fn_cxx_try_cpp "$LINENO"; then :
13330   # Broken: success on invalid input.
13331 continue
13332 else
13333   # Passes both tests.
13334 ac_preproc_ok=:
13335 break
13336 fi
13337 rm -f conftest.err conftest.i conftest.$ac_ext
13338
13339 done
13340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13341 rm -f conftest.i conftest.err conftest.$ac_ext
13342 if $ac_preproc_ok; then :
13343   
13344 else
13345   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13348 See \`config.log' for more details" "$LINENO" 5; }
13349 fi
13350
13351 ac_ext=c
13352 ac_cpp='$CPP $CPPFLAGS'
13353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13356
13357 else
13358   _lt_caught_CXX_error=yes
13359 fi
13360
13361 ac_ext=cpp
13362 ac_cpp='$CXXCPP $CPPFLAGS'
13363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13366
13367 archive_cmds_need_lc_CXX=no
13368 allow_undefined_flag_CXX=
13369 always_export_symbols_CXX=no
13370 archive_expsym_cmds_CXX=
13371 compiler_needs_object_CXX=no
13372 export_dynamic_flag_spec_CXX=
13373 hardcode_direct_CXX=no
13374 hardcode_direct_absolute_CXX=no
13375 hardcode_libdir_flag_spec_CXX=
13376 hardcode_libdir_separator_CXX=
13377 hardcode_minus_L_CXX=no
13378 hardcode_shlibpath_var_CXX=unsupported
13379 hardcode_automatic_CXX=no
13380 inherit_rpath_CXX=no
13381 module_cmds_CXX=
13382 module_expsym_cmds_CXX=
13383 link_all_deplibs_CXX=unknown
13384 old_archive_cmds_CXX=$old_archive_cmds
13385 reload_flag_CXX=$reload_flag
13386 reload_cmds_CXX=$reload_cmds
13387 no_undefined_flag_CXX=
13388 whole_archive_flag_spec_CXX=
13389 enable_shared_with_static_runtimes_CXX=no
13390
13391 # Source file extension for C++ test sources.
13392 ac_ext=cpp
13393
13394 # Object file extension for compiled C++ test sources.
13395 objext=o
13396 objext_CXX=$objext
13397
13398 # No sense in running all these tests if we already determined that
13399 # the CXX compiler isn't working.  Some variables (like enable_shared)
13400 # are currently assumed to apply to all compilers on this platform,
13401 # and will be corrupted by setting them based on a non-working compiler.
13402 if test yes != "$_lt_caught_CXX_error"; then
13403   # Code to be used in simple compile tests
13404   lt_simple_compile_test_code="int some_variable = 0;"
13405
13406   # Code to be used in simple link tests
13407   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13408
13409   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13410   
13411
13412
13413
13414
13415
13416 # If no C compiler was specified, use CC.
13417 LTCC=${LTCC-"$CC"}
13418
13419 # If no C compiler flags were specified, use CFLAGS.
13420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13421
13422 # Allow CC to be a program name with arguments.
13423 compiler=$CC
13424
13425
13426   # save warnings/boilerplate of simple test code
13427   ac_outfile=conftest.$ac_objext
13428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13430 _lt_compiler_boilerplate=`cat conftest.err`
13431 $RM conftest*
13432
13433   ac_outfile=conftest.$ac_objext
13434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13436 _lt_linker_boilerplate=`cat conftest.err`
13437 $RM -r conftest*
13438
13439
13440   # Allow CC to be a program name with arguments.
13441   lt_save_CC=$CC
13442   lt_save_CFLAGS=$CFLAGS
13443   lt_save_LD=$LD
13444   lt_save_GCC=$GCC
13445   GCC=$GXX
13446   lt_save_with_gnu_ld=$with_gnu_ld
13447   lt_save_path_LD=$lt_cv_path_LD
13448   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13449     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13450   else
13451     $as_unset lt_cv_prog_gnu_ld
13452   fi
13453   if test -n "${lt_cv_path_LDCXX+set}"; then
13454     lt_cv_path_LD=$lt_cv_path_LDCXX
13455   else
13456     $as_unset lt_cv_path_LD
13457   fi
13458   test -z "${LDCXX+set}" || LD=$LDCXX
13459   CC=${CXX-"c++"}
13460   CFLAGS=$CXXFLAGS
13461   compiler=$CC
13462   compiler_CXX=$CC
13463   func_cc_basename $compiler
13464 cc_basename=$func_cc_basename_result
13465
13466
13467   if test -n "$compiler"; then
13468     # We don't want -fno-exception when compiling C++ code, so set the
13469     # no_builtin_flag separately
13470     if test yes = "$GXX"; then
13471       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13472     else
13473       lt_prog_compiler_no_builtin_flag_CXX=
13474     fi
13475
13476     if test yes = "$GXX"; then
13477       # Set up default GNU C++ configuration
13478
13479       
13480
13481 @%:@ Check whether --with-gnu-ld was given.
13482 if test "${with_gnu_ld+set}" = set; then :
13483   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13484 else
13485   with_gnu_ld=no
13486 fi
13487
13488 ac_prog=ld
13489 if test yes = "$GCC"; then
13490   # Check if gcc -print-prog-name=ld gives a path.
13491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13492 $as_echo_n "checking for ld used by $CC... " >&6; }
13493   case $host in
13494   *-*-mingw*)
13495     # gcc leaves a trailing carriage return, which upsets mingw
13496     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13497   *)
13498     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13499   esac
13500   case $ac_prog in
13501     # Accept absolute paths.
13502     [\\/]* | ?:[\\/]*)
13503       re_direlt='/[^/][^/]*/\.\./'
13504       # Canonicalize the pathname of ld
13505       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13506       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13507         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13508       done
13509       test -z "$LD" && LD=$ac_prog
13510       ;;
13511   "")
13512     # If it fails, then pretend we aren't using GCC.
13513     ac_prog=ld
13514     ;;
13515   *)
13516     # If it is relative, then search for the first ld in PATH.
13517     with_gnu_ld=unknown
13518     ;;
13519   esac
13520 elif test yes = "$with_gnu_ld"; then
13521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13522 $as_echo_n "checking for GNU ld... " >&6; }
13523 else
13524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13525 $as_echo_n "checking for non-GNU ld... " >&6; }
13526 fi
13527 if ${lt_cv_path_LD+:} false; then :
13528   $as_echo_n "(cached) " >&6
13529 else
13530   if test -z "$LD"; then
13531   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13532   for ac_dir in $PATH; do
13533     IFS=$lt_save_ifs
13534     test -z "$ac_dir" && ac_dir=.
13535     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13536       lt_cv_path_LD=$ac_dir/$ac_prog
13537       # Check to see if the program is GNU ld.  I'd rather use --version,
13538       # but apparently some variants of GNU ld only accept -v.
13539       # Break only if it was the GNU/non-GNU ld that we prefer.
13540       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13541       *GNU* | *'with BFD'*)
13542         test no != "$with_gnu_ld" && break
13543         ;;
13544       *)
13545         test yes != "$with_gnu_ld" && break
13546         ;;
13547       esac
13548     fi
13549   done
13550   IFS=$lt_save_ifs
13551 else
13552   lt_cv_path_LD=$LD # Let the user override the test with a path.
13553 fi
13554 fi
13555
13556 LD=$lt_cv_path_LD
13557 if test -n "$LD"; then
13558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13559 $as_echo "$LD" >&6; }
13560 else
13561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13563 fi
13564 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13567 if ${lt_cv_prog_gnu_ld+:} false; then :
13568   $as_echo_n "(cached) " >&6
13569 else
13570   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13571 case `$LD -v 2>&1 </dev/null` in
13572 *GNU* | *'with BFD'*)
13573   lt_cv_prog_gnu_ld=yes
13574   ;;
13575 *)
13576   lt_cv_prog_gnu_ld=no
13577   ;;
13578 esac
13579 fi
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13582 with_gnu_ld=$lt_cv_prog_gnu_ld
13583
13584
13585
13586
13587
13588
13589
13590       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13591       # archiving commands below assume that GNU ld is being used.
13592       if test yes = "$with_gnu_ld"; then
13593         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13594         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13595
13596         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13597         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13598
13599         # If archive_cmds runs LD, not CC, wlarc should be empty
13600         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13601         #     investigate it a little bit more. (MM)
13602         wlarc='$wl'
13603
13604         # ancient GNU ld didn't support --whole-archive et. al.
13605         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13606           $GREP 'no-whole-archive' > /dev/null; then
13607           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13608         else
13609           whole_archive_flag_spec_CXX=
13610         fi
13611       else
13612         with_gnu_ld=no
13613         wlarc=
13614
13615         # A generic and very simple default shared library creation
13616         # command for GNU C++ for the case where it uses the native
13617         # linker, instead of GNU ld.  If possible, this setting should
13618         # overridden to take advantage of the native linker features on
13619         # the platform it is being used on.
13620         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13621       fi
13622
13623       # Commands to make compiler produce verbose output that lists
13624       # what "hidden" libraries, object files and flags are used when
13625       # linking a shared library.
13626       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13627
13628     else
13629       GXX=no
13630       with_gnu_ld=no
13631       wlarc=
13632     fi
13633
13634     # PORTME: fill in a description of your system's C++ link characteristics
13635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13636 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13637     ld_shlibs_CXX=yes
13638     case $host_os in
13639       aix3*)
13640         # FIXME: insert proper C++ library support
13641         ld_shlibs_CXX=no
13642         ;;
13643       aix[4-9]*)
13644         if test ia64 = "$host_cpu"; then
13645           # On IA64, the linker does run time linking by default, so we don't
13646           # have to do anything special.
13647           aix_use_runtimelinking=no
13648           exp_sym_flag='-Bexport'
13649           no_entry_flag=
13650         else
13651           aix_use_runtimelinking=no
13652
13653           # Test if we are trying to use run time linking or normal
13654           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13655           # have runtime linking enabled, and use it for executables.
13656           # For shared libraries, we enable/disable runtime linking
13657           # depending on the kind of the shared library created -
13658           # when "with_aix_soname,aix_use_runtimelinking" is:
13659           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13660           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13661           #            lib.a           static archive
13662           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13663           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13664           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13665           #            lib.a(lib.so.V) shared, rtl:no
13666           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13667           #            lib.a           static archive
13668           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13669             for ld_flag in $LDFLAGS; do
13670               case $ld_flag in
13671               *-brtl*)
13672                 aix_use_runtimelinking=yes
13673                 break
13674                 ;;
13675               esac
13676             done
13677             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13678               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13679               # so we don't have lib.a shared libs to link our executables.
13680               # We have to force runtime linking in this case.
13681               aix_use_runtimelinking=yes
13682               LDFLAGS="$LDFLAGS -Wl,-brtl"
13683             fi
13684             ;;
13685           esac
13686
13687           exp_sym_flag='-bexport'
13688           no_entry_flag='-bnoentry'
13689         fi
13690
13691         # When large executables or shared objects are built, AIX ld can
13692         # have problems creating the table of contents.  If linking a library
13693         # or program results in "error TOC overflow" add -mminimal-toc to
13694         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13695         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13696
13697         archive_cmds_CXX=''
13698         hardcode_direct_CXX=yes
13699         hardcode_direct_absolute_CXX=yes
13700         hardcode_libdir_separator_CXX=':'
13701         link_all_deplibs_CXX=yes
13702         file_list_spec_CXX='$wl-f,'
13703         case $with_aix_soname,$aix_use_runtimelinking in
13704         aix,*) ;;       # no import file
13705         svr4,* | *,yes) # use import file
13706           # The Import File defines what to hardcode.
13707           hardcode_direct_CXX=no
13708           hardcode_direct_absolute_CXX=no
13709           ;;
13710         esac
13711
13712         if test yes = "$GXX"; then
13713           case $host_os in aix4.[012]|aix4.[012].*)
13714           # We only want to do this on AIX 4.2 and lower, the check
13715           # below for broken collect2 doesn't work under 4.3+
13716           collect2name=`$CC -print-prog-name=collect2`
13717           if test -f "$collect2name" &&
13718              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13719           then
13720             # We have reworked collect2
13721             :
13722           else
13723             # We have old collect2
13724             hardcode_direct_CXX=unsupported
13725             # It fails to find uninstalled libraries when the uninstalled
13726             # path is not listed in the libpath.  Setting hardcode_minus_L
13727             # to unsupported forces relinking
13728             hardcode_minus_L_CXX=yes
13729             hardcode_libdir_flag_spec_CXX='-L$libdir'
13730             hardcode_libdir_separator_CXX=
13731           fi
13732           esac
13733           shared_flag='-shared'
13734           if test yes = "$aix_use_runtimelinking"; then
13735             shared_flag=$shared_flag' $wl-G'
13736           fi
13737           # Need to ensure runtime linking is disabled for the traditional
13738           # shared library, or the linker may eventually find shared libraries
13739           # /with/ Import File - we do not want to mix them.
13740           shared_flag_aix='-shared'
13741           shared_flag_svr4='-shared $wl-G'
13742         else
13743           # not using gcc
13744           if test ia64 = "$host_cpu"; then
13745           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13746           # chokes on -Wl,-G. The following line is correct:
13747           shared_flag='-G'
13748           else
13749             if test yes = "$aix_use_runtimelinking"; then
13750               shared_flag='$wl-G'
13751             else
13752               shared_flag='$wl-bM:SRE'
13753             fi
13754             shared_flag_aix='$wl-bM:SRE'
13755             shared_flag_svr4='$wl-G'
13756           fi
13757         fi
13758
13759         export_dynamic_flag_spec_CXX='$wl-bexpall'
13760         # It seems that -bexpall does not export symbols beginning with
13761         # underscore (_), so it is better to generate a list of symbols to
13762         # export.
13763         always_export_symbols_CXX=yes
13764         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13765           # Warning - without using the other runtime loading flags (-brtl),
13766           # -berok will link without error, but may produce a broken library.
13767           # The "-G" linker flag allows undefined symbols.
13768           no_undefined_flag_CXX='-bernotok'
13769           # Determine the default libpath from the value encoded in an empty
13770           # executable.
13771           if test set = "${lt_cv_aix_libpath+set}"; then
13772   aix_libpath=$lt_cv_aix_libpath
13773 else
13774   if ${lt_cv_aix_libpath__CXX+:} false; then :
13775   $as_echo_n "(cached) " >&6
13776 else
13777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h.  */
13779
13780 int
13781 main ()
13782 {
13783
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 if ac_fn_cxx_try_link "$LINENO"; then :
13789   
13790   lt_aix_libpath_sed='
13791       /Import File Strings/,/^$/ {
13792           /^0/ {
13793               s/^0  *\([^ ]*\) *$/\1/
13794               p
13795           }
13796       }'
13797   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13798   # Check for a 64-bit object if we didn't find anything.
13799   if test -z "$lt_cv_aix_libpath__CXX"; then
13800     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13801   fi
13802 fi
13803 rm -f core conftest.err conftest.$ac_objext \
13804     conftest$ac_exeext conftest.$ac_ext
13805   if test -z "$lt_cv_aix_libpath__CXX"; then
13806     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13807   fi
13808   
13809 fi
13810
13811   aix_libpath=$lt_cv_aix_libpath__CXX
13812 fi
13813
13814           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13815
13816           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13817         else
13818           if test ia64 = "$host_cpu"; then
13819             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13820             allow_undefined_flag_CXX="-z nodefs"
13821             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13822           else
13823             # Determine the default libpath from the value encoded in an
13824             # empty executable.
13825             if test set = "${lt_cv_aix_libpath+set}"; then
13826   aix_libpath=$lt_cv_aix_libpath
13827 else
13828   if ${lt_cv_aix_libpath__CXX+:} false; then :
13829   $as_echo_n "(cached) " >&6
13830 else
13831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h.  */
13833
13834 int
13835 main ()
13836 {
13837
13838   ;
13839   return 0;
13840 }
13841 _ACEOF
13842 if ac_fn_cxx_try_link "$LINENO"; then :
13843   
13844   lt_aix_libpath_sed='
13845       /Import File Strings/,/^$/ {
13846           /^0/ {
13847               s/^0  *\([^ ]*\) *$/\1/
13848               p
13849           }
13850       }'
13851   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13852   # Check for a 64-bit object if we didn't find anything.
13853   if test -z "$lt_cv_aix_libpath__CXX"; then
13854     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13855   fi
13856 fi
13857 rm -f core conftest.err conftest.$ac_objext \
13858     conftest$ac_exeext conftest.$ac_ext
13859   if test -z "$lt_cv_aix_libpath__CXX"; then
13860     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13861   fi
13862   
13863 fi
13864
13865   aix_libpath=$lt_cv_aix_libpath__CXX
13866 fi
13867
13868             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13869             # Warning - without using the other run time loading flags,
13870             # -berok will link without error, but may produce a broken library.
13871             no_undefined_flag_CXX=' $wl-bernotok'
13872             allow_undefined_flag_CXX=' $wl-berok'
13873             if test yes = "$with_gnu_ld"; then
13874               # We only use this code for GNU lds that support --whole-archive.
13875               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13876             else
13877               # Exported symbols can be pulled into shared objects from archives
13878               whole_archive_flag_spec_CXX='$convenience'
13879             fi
13880             archive_cmds_need_lc_CXX=yes
13881             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13882             # -brtl affects multiple linker settings, -berok does not and is overridden later
13883             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13884             if test svr4 != "$with_aix_soname"; then
13885               # This is similar to how AIX traditionally builds its shared
13886               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13887               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13888             fi
13889             if test aix != "$with_aix_soname"; then
13890               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13891             else
13892               # used by -dlpreopen to get the symbols
13893               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13894             fi
13895             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13896           fi
13897         fi
13898         ;;
13899
13900       beos*)
13901         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13902           allow_undefined_flag_CXX=unsupported
13903           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13904           # support --undefined.  This deserves some investigation.  FIXME
13905           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13906         else
13907           ld_shlibs_CXX=no
13908         fi
13909         ;;
13910
13911       chorus*)
13912         case $cc_basename in
13913           *)
13914           # FIXME: insert proper C++ library support
13915           ld_shlibs_CXX=no
13916           ;;
13917         esac
13918         ;;
13919
13920       cygwin* | mingw* | pw32* | cegcc*)
13921         case $GXX,$cc_basename in
13922         ,cl* | no,cl*)
13923           # Native MSVC
13924           # hardcode_libdir_flag_spec is actually meaningless, as there is
13925           # no search path for DLLs.
13926           hardcode_libdir_flag_spec_CXX=' '
13927           allow_undefined_flag_CXX=unsupported
13928           always_export_symbols_CXX=yes
13929           file_list_spec_CXX='@'
13930           # Tell ltmain to make .lib files, not .a files.
13931           libext=lib
13932           # Tell ltmain to make .dll files, not .so files.
13933           shrext_cmds=.dll
13934           # FIXME: Setting linknames here is a bad hack.
13935           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13936           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13937               cp "$export_symbols" "$output_objdir/$soname.def";
13938               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13939             else
13940               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13941             fi~
13942             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13943             linknames='
13944           # The linker will not automatically build a static lib if we build a DLL.
13945           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13946           enable_shared_with_static_runtimes_CXX=yes
13947           # Don't use ranlib
13948           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13949           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13950             lt_tool_outputfile="@TOOL_OUTPUT@"~
13951             case $lt_outputfile in
13952               *.exe|*.EXE) ;;
13953               *)
13954                 lt_outputfile=$lt_outputfile.exe
13955                 lt_tool_outputfile=$lt_tool_outputfile.exe
13956                 ;;
13957             esac~
13958             func_to_tool_file "$lt_outputfile"~
13959             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13960               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13961               $RM "$lt_outputfile.manifest";
13962             fi'
13963           ;;
13964         *)
13965           # g++
13966           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13967           # as there is no search path for DLLs.
13968           hardcode_libdir_flag_spec_CXX='-L$libdir'
13969           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13970           allow_undefined_flag_CXX=unsupported
13971           always_export_symbols_CXX=no
13972           enable_shared_with_static_runtimes_CXX=yes
13973
13974           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13975             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13976             # If the export-symbols file already is a .def file, use it as
13977             # is; otherwise, prepend EXPORTS...
13978             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13979               cp $export_symbols $output_objdir/$soname.def;
13980             else
13981               echo EXPORTS > $output_objdir/$soname.def;
13982               cat $export_symbols >> $output_objdir/$soname.def;
13983             fi~
13984             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13985           else
13986             ld_shlibs_CXX=no
13987           fi
13988           ;;
13989         esac
13990         ;;
13991       darwin* | rhapsody*)
13992         
13993   
13994   archive_cmds_need_lc_CXX=no
13995   hardcode_direct_CXX=no
13996   hardcode_automatic_CXX=yes
13997   hardcode_shlibpath_var_CXX=unsupported
13998   if test yes = "$lt_cv_ld_force_load"; then
13999     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14000     
14001   else
14002     whole_archive_flag_spec_CXX=''
14003   fi
14004   link_all_deplibs_CXX=yes
14005   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14006   case $cc_basename in
14007      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14008      *) _lt_dar_can_shared=$GCC ;;
14009   esac
14010   if test yes = "$_lt_dar_can_shared"; then
14011     output_verbose_link_cmd=func_echo_all
14012     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14013     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14014     archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
14015     module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
14016        if test yes != "$lt_cv_apple_cc_single_mod"; then
14017       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14018       archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14019     fi
14020
14021   else
14022   ld_shlibs_CXX=no
14023   fi
14024
14025         ;;
14026
14027       os2*)
14028         hardcode_libdir_flag_spec_CXX='-L$libdir'
14029         hardcode_minus_L_CXX=yes
14030         allow_undefined_flag_CXX=unsupported
14031         shrext_cmds=.dll
14032         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14033           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14034           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14035           $ECHO EXPORTS >> $output_objdir/$libname.def~
14036           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14037           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14038           emximp -o $lib $output_objdir/$libname.def'
14039         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14040           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14041           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14042           $ECHO EXPORTS >> $output_objdir/$libname.def~
14043           prefix_cmds="$SED"~
14044           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14045             prefix_cmds="$prefix_cmds -e 1d";
14046           fi~
14047           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14048           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14049           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14050           emximp -o $lib $output_objdir/$libname.def'
14051         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14052         enable_shared_with_static_runtimes_CXX=yes
14053         ;;
14054
14055       dgux*)
14056         case $cc_basename in
14057           ec++*)
14058             # FIXME: insert proper C++ library support
14059             ld_shlibs_CXX=no
14060             ;;
14061           ghcx*)
14062             # Green Hills C++ Compiler
14063             # FIXME: insert proper C++ library support
14064             ld_shlibs_CXX=no
14065             ;;
14066           *)
14067             # FIXME: insert proper C++ library support
14068             ld_shlibs_CXX=no
14069             ;;
14070         esac
14071         ;;
14072
14073       freebsd2.*)
14074         # C++ shared libraries reported to be fairly broken before
14075         # switch to ELF
14076         ld_shlibs_CXX=no
14077         ;;
14078
14079       freebsd-elf*)
14080         archive_cmds_need_lc_CXX=no
14081         ;;
14082
14083       freebsd* | dragonfly*)
14084         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14085         # conventions
14086         ld_shlibs_CXX=yes
14087         ;;
14088
14089       haiku*)
14090         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14091         link_all_deplibs_CXX=yes
14092         ;;
14093
14094       hpux9*)
14095         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14096         hardcode_libdir_separator_CXX=:
14097         export_dynamic_flag_spec_CXX='$wl-E'
14098         hardcode_direct_CXX=yes
14099         hardcode_minus_L_CXX=yes # Not in the search PATH,
14100                                              # but as the default
14101                                              # location of the library.
14102
14103         case $cc_basename in
14104           CC*)
14105             # FIXME: insert proper C++ library support
14106             ld_shlibs_CXX=no
14107             ;;
14108           aCC*)
14109             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14110             # Commands to make compiler produce verbose output that lists
14111             # what "hidden" libraries, object files and flags are used when
14112             # linking a shared library.
14113             #
14114             # There doesn't appear to be a way to prevent this compiler from
14115             # explicitly linking system object files so we need to strip them
14116             # from the output so that they don't get included in the library
14117             # dependencies.
14118             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14119             ;;
14120           *)
14121             if test yes = "$GXX"; then
14122               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14123             else
14124               # FIXME: insert proper C++ library support
14125               ld_shlibs_CXX=no
14126             fi
14127             ;;
14128         esac
14129         ;;
14130
14131       hpux10*|hpux11*)
14132         if test no = "$with_gnu_ld"; then
14133           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14134           hardcode_libdir_separator_CXX=:
14135
14136           case $host_cpu in
14137             hppa*64*|ia64*)
14138               ;;
14139             *)
14140               export_dynamic_flag_spec_CXX='$wl-E'
14141               ;;
14142           esac
14143         fi
14144         case $host_cpu in
14145           hppa*64*|ia64*)
14146             hardcode_direct_CXX=no
14147             hardcode_shlibpath_var_CXX=no
14148             ;;
14149           *)
14150             hardcode_direct_CXX=yes
14151             hardcode_direct_absolute_CXX=yes
14152             hardcode_minus_L_CXX=yes # Not in the search PATH,
14153                                                  # but as the default
14154                                                  # location of the library.
14155             ;;
14156         esac
14157
14158         case $cc_basename in
14159           CC*)
14160             # FIXME: insert proper C++ library support
14161             ld_shlibs_CXX=no
14162             ;;
14163           aCC*)
14164             case $host_cpu in
14165               hppa*64*)
14166                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14167                 ;;
14168               ia64*)
14169                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14170                 ;;
14171               *)
14172                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14173                 ;;
14174             esac
14175             # Commands to make compiler produce verbose output that lists
14176             # what "hidden" libraries, object files and flags are used when
14177             # linking a shared library.
14178             #
14179             # There doesn't appear to be a way to prevent this compiler from
14180             # explicitly linking system object files so we need to strip them
14181             # from the output so that they don't get included in the library
14182             # dependencies.
14183             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14184             ;;
14185           *)
14186             if test yes = "$GXX"; then
14187               if test no = "$with_gnu_ld"; then
14188                 case $host_cpu in
14189                   hppa*64*)
14190                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14191                     ;;
14192                   ia64*)
14193                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14194                     ;;
14195                   *)
14196                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14197                     ;;
14198                 esac
14199               fi
14200             else
14201               # FIXME: insert proper C++ library support
14202               ld_shlibs_CXX=no
14203             fi
14204             ;;
14205         esac
14206         ;;
14207
14208       interix[3-9]*)
14209         hardcode_direct_CXX=no
14210         hardcode_shlibpath_var_CXX=no
14211         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14212         export_dynamic_flag_spec_CXX='$wl-E'
14213         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14214         # Instead, shared libraries are loaded at an image base (0x10000000 by
14215         # default) and relocated if they conflict, which is a slow very memory
14216         # consuming and fragmenting process.  To avoid this, we pick a random,
14217         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14218         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14219         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14220         archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14221         ;;
14222       irix5* | irix6*)
14223         case $cc_basename in
14224           CC*)
14225             # SGI C++
14226             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14227
14228             # Archives containing C++ object files must be created using
14229             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14230             # necessary to make sure instantiated templates are included
14231             # in the archive.
14232             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14233             ;;
14234           *)
14235             if test yes = "$GXX"; then
14236               if test no = "$with_gnu_ld"; then
14237                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14238               else
14239                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14240               fi
14241             fi
14242             link_all_deplibs_CXX=yes
14243             ;;
14244         esac
14245         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14246         hardcode_libdir_separator_CXX=:
14247         inherit_rpath_CXX=yes
14248         ;;
14249
14250       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14251         case $cc_basename in
14252           KCC*)
14253             # Kuck and Associates, Inc. (KAI) C++ Compiler
14254
14255             # KCC will only create a shared library if the output file
14256             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14257             # to its proper name (with version) after linking.
14258             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14259             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14260             # Commands to make compiler produce verbose output that lists
14261             # what "hidden" libraries, object files and flags are used when
14262             # linking a shared library.
14263             #
14264             # There doesn't appear to be a way to prevent this compiler from
14265             # explicitly linking system object files so we need to strip them
14266             # from the output so that they don't get included in the library
14267             # dependencies.
14268             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14269
14270             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14271             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14272
14273             # Archives containing C++ object files must be created using
14274             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14275             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14276             ;;
14277           icpc* | ecpc* )
14278             # Intel C++
14279             with_gnu_ld=yes
14280             # version 8.0 and above of icpc choke on multiply defined symbols
14281             # if we add $predep_objects and $postdep_objects, however 7.1 and
14282             # earlier do not add the objects themselves.
14283             case `$CC -V 2>&1` in
14284               *"Version 7."*)
14285                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14286                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14287                 ;;
14288               *)  # Version 8.0 or newer
14289                 tmp_idyn=
14290                 case $host_cpu in
14291                   ia64*) tmp_idyn=' -i_dynamic';;
14292                 esac
14293                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14294                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14295                 ;;
14296             esac
14297             archive_cmds_need_lc_CXX=no
14298             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14299             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14300             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14301             ;;
14302           pgCC* | pgcpp*)
14303             # Portland Group C++ compiler
14304             case `$CC -V` in
14305             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14306               prelink_cmds_CXX='tpldir=Template.dir~
14307                rm -rf $tpldir~
14308                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14309                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14310               old_archive_cmds_CXX='tpldir=Template.dir~
14311                 rm -rf $tpldir~
14312                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14313                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14314                 $RANLIB $oldlib'
14315               archive_cmds_CXX='tpldir=Template.dir~
14316                 rm -rf $tpldir~
14317                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14318                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14319               archive_expsym_cmds_CXX='tpldir=Template.dir~
14320                 rm -rf $tpldir~
14321                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14322                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14323               ;;
14324             *) # Version 6 and above use weak symbols
14325               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14326               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14327               ;;
14328             esac
14329
14330             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14331             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14332             whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14333             ;;
14334           cxx*)
14335             # Compaq C++
14336             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14337             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
14338
14339             runpath_var=LD_RUN_PATH
14340             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14341             hardcode_libdir_separator_CXX=:
14342
14343             # Commands to make compiler produce verbose output that lists
14344             # what "hidden" libraries, object files and flags are used when
14345             # linking a shared library.
14346             #
14347             # There doesn't appear to be a way to prevent this compiler from
14348             # explicitly linking system object files so we need to strip them
14349             # from the output so that they don't get included in the library
14350             # dependencies.
14351             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14352             ;;
14353           xl* | mpixl* | bgxl*)
14354             # IBM XL 8.0 on PPC, with GNU ld
14355             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14356             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14357             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14358             if test yes = "$supports_anon_versioning"; then
14359               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14360                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14361                 echo "local: *; };" >> $output_objdir/$libname.ver~
14362                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14363             fi
14364             ;;
14365           *)
14366             case `$CC -V 2>&1 | sed 5q` in
14367             *Sun\ C*)
14368               # Sun C++ 5.9
14369               no_undefined_flag_CXX=' -zdefs'
14370               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14371               archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14372               hardcode_libdir_flag_spec_CXX='-R$libdir'
14373               whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14374               compiler_needs_object_CXX=yes
14375
14376               # Not sure whether something based on
14377               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14378               # would be better.
14379               output_verbose_link_cmd='func_echo_all'
14380
14381               # Archives containing C++ object files must be created using
14382               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14383               # necessary to make sure instantiated templates are included
14384               # in the archive.
14385               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14386               ;;
14387             esac
14388             ;;
14389         esac
14390         ;;
14391
14392       lynxos*)
14393         # FIXME: insert proper C++ library support
14394         ld_shlibs_CXX=no
14395         ;;
14396
14397       m88k*)
14398         # FIXME: insert proper C++ library support
14399         ld_shlibs_CXX=no
14400         ;;
14401
14402       mvs*)
14403         case $cc_basename in
14404           cxx*)
14405             # FIXME: insert proper C++ library support
14406             ld_shlibs_CXX=no
14407             ;;
14408           *)
14409             # FIXME: insert proper C++ library support
14410             ld_shlibs_CXX=no
14411             ;;
14412         esac
14413         ;;
14414
14415       netbsd*)
14416         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14417           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14418           wlarc=
14419           hardcode_libdir_flag_spec_CXX='-R$libdir'
14420           hardcode_direct_CXX=yes
14421           hardcode_shlibpath_var_CXX=no
14422         fi
14423         # Workaround some broken pre-1.5 toolchains
14424         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14425         ;;
14426
14427       *nto* | *qnx*)
14428         ld_shlibs_CXX=yes
14429         ;;
14430
14431       openbsd* | bitrig*)
14432         if test -f /usr/libexec/ld.so; then
14433           hardcode_direct_CXX=yes
14434           hardcode_shlibpath_var_CXX=no
14435           hardcode_direct_absolute_CXX=yes
14436           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14437           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14438           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14439             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14440             export_dynamic_flag_spec_CXX='$wl-E'
14441             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14442           fi
14443           output_verbose_link_cmd=func_echo_all
14444         else
14445           ld_shlibs_CXX=no
14446         fi
14447         ;;
14448
14449       osf3* | osf4* | osf5*)
14450         case $cc_basename in
14451           KCC*)
14452             # Kuck and Associates, Inc. (KAI) C++ Compiler
14453
14454             # KCC will only create a shared library if the output file
14455             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14456             # to its proper name (with version) after linking.
14457             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14458
14459             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14460             hardcode_libdir_separator_CXX=:
14461
14462             # Archives containing C++ object files must be created using
14463             # the KAI C++ compiler.
14464             case $host in
14465               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14466               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14467             esac
14468             ;;
14469           RCC*)
14470             # Rational C++ 2.4.1
14471             # FIXME: insert proper C++ library support
14472             ld_shlibs_CXX=no
14473             ;;
14474           cxx*)
14475             case $host in
14476               osf3*)
14477                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14478                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14479                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14480                 ;;
14481               *)
14482                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14483                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14484                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14485                   echo "-hidden">> $lib.exp~
14486                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14487                   $RM $lib.exp'
14488                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14489                 ;;
14490             esac
14491
14492             hardcode_libdir_separator_CXX=:
14493
14494             # Commands to make compiler produce verbose output that lists
14495             # what "hidden" libraries, object files and flags are used when
14496             # linking a shared library.
14497             #
14498             # There doesn't appear to be a way to prevent this compiler from
14499             # explicitly linking system object files so we need to strip them
14500             # from the output so that they don't get included in the library
14501             # dependencies.
14502             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14503             ;;
14504           *)
14505             if test yes,no = "$GXX,$with_gnu_ld"; then
14506               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14507               case $host in
14508                 osf3*)
14509                   archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14510                   ;;
14511                 *)
14512                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14513                   ;;
14514               esac
14515
14516               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14517               hardcode_libdir_separator_CXX=:
14518
14519               # Commands to make compiler produce verbose output that lists
14520               # what "hidden" libraries, object files and flags are used when
14521               # linking a shared library.
14522               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14523
14524             else
14525               # FIXME: insert proper C++ library support
14526               ld_shlibs_CXX=no
14527             fi
14528             ;;
14529         esac
14530         ;;
14531
14532       psos*)
14533         # FIXME: insert proper C++ library support
14534         ld_shlibs_CXX=no
14535         ;;
14536
14537       sunos4*)
14538         case $cc_basename in
14539           CC*)
14540             # Sun C++ 4.x
14541             # FIXME: insert proper C++ library support
14542             ld_shlibs_CXX=no
14543             ;;
14544           lcc*)
14545             # Lucid
14546             # FIXME: insert proper C++ library support
14547             ld_shlibs_CXX=no
14548             ;;
14549           *)
14550             # FIXME: insert proper C++ library support
14551             ld_shlibs_CXX=no
14552             ;;
14553         esac
14554         ;;
14555
14556       solaris*)
14557         case $cc_basename in
14558           CC* | sunCC*)
14559             # Sun C++ 4.2, 5.x and Centerline C++
14560             archive_cmds_need_lc_CXX=yes
14561             no_undefined_flag_CXX=' -zdefs'
14562             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14563             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14564               $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14565
14566             hardcode_libdir_flag_spec_CXX='-R$libdir'
14567             hardcode_shlibpath_var_CXX=no
14568             case $host_os in
14569               solaris2.[0-5] | solaris2.[0-5].*) ;;
14570               *)
14571                 # The compiler driver will combine and reorder linker options,
14572                 # but understands '-z linker_flag'.
14573                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14574                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14575                 ;;
14576             esac
14577             link_all_deplibs_CXX=yes
14578
14579             output_verbose_link_cmd='func_echo_all'
14580
14581             # Archives containing C++ object files must be created using
14582             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14583             # necessary to make sure instantiated templates are included
14584             # in the archive.
14585             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14586             ;;
14587           gcx*)
14588             # Green Hills C++ Compiler
14589             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14590
14591             # The C++ compiler must be used to create the archive.
14592             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14593             ;;
14594           *)
14595             # GNU C++ compiler with Solaris linker
14596             if test yes,no = "$GXX,$with_gnu_ld"; then
14597               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14598               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14599                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14600                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14601                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14602
14603                 # Commands to make compiler produce verbose output that lists
14604                 # what "hidden" libraries, object files and flags are used when
14605                 # linking a shared library.
14606                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14607               else
14608                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14609                 # platform.
14610                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14611                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14612                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14613
14614                 # Commands to make compiler produce verbose output that lists
14615                 # what "hidden" libraries, object files and flags are used when
14616                 # linking a shared library.
14617                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14618               fi
14619
14620               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14621               case $host_os in
14622                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14623                 *)
14624                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14625                   ;;
14626               esac
14627             fi
14628             ;;
14629         esac
14630         ;;
14631
14632     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14633       no_undefined_flag_CXX='$wl-z,text'
14634       archive_cmds_need_lc_CXX=no
14635       hardcode_shlibpath_var_CXX=no
14636       runpath_var='LD_RUN_PATH'
14637
14638       case $cc_basename in
14639         CC*)
14640           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14641           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14642           ;;
14643         *)
14644           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14645           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14646           ;;
14647       esac
14648       ;;
14649
14650       sysv5* | sco3.2v5* | sco5v6*)
14651         # Note: We CANNOT use -z defs as we might desire, because we do not
14652         # link with -lc, and that would cause any symbols used from libc to
14653         # always be unresolved, which means just about no library would
14654         # ever link correctly.  If we're not using GNU ld we use -z text
14655         # though, which does catch some bad symbols but isn't as heavy-handed
14656         # as -z defs.
14657         no_undefined_flag_CXX='$wl-z,text'
14658         allow_undefined_flag_CXX='$wl-z,nodefs'
14659         archive_cmds_need_lc_CXX=no
14660         hardcode_shlibpath_var_CXX=no
14661         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14662         hardcode_libdir_separator_CXX=':'
14663         link_all_deplibs_CXX=yes
14664         export_dynamic_flag_spec_CXX='$wl-Bexport'
14665         runpath_var='LD_RUN_PATH'
14666
14667         case $cc_basename in
14668           CC*)
14669             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14670             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14671             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14672               '"$old_archive_cmds_CXX"
14673             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14674               '"$reload_cmds_CXX"
14675             ;;
14676           *)
14677             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14678             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14679             ;;
14680         esac
14681       ;;
14682
14683       tandem*)
14684         case $cc_basename in
14685           NCC*)
14686             # NonStop-UX NCC 3.20
14687             # FIXME: insert proper C++ library support
14688             ld_shlibs_CXX=no
14689             ;;
14690           *)
14691             # FIXME: insert proper C++ library support
14692             ld_shlibs_CXX=no
14693             ;;
14694         esac
14695         ;;
14696
14697       vxworks*)
14698         # FIXME: insert proper C++ library support
14699         ld_shlibs_CXX=no
14700         ;;
14701
14702       *)
14703         # FIXME: insert proper C++ library support
14704         ld_shlibs_CXX=no
14705         ;;
14706     esac
14707
14708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14709 $as_echo "$ld_shlibs_CXX" >&6; }
14710     test no = "$ld_shlibs_CXX" && can_build_shared=no
14711
14712     GCC_CXX=$GXX
14713     LD_CXX=$LD
14714
14715     ## CAVEAT EMPTOR:
14716     ## There is no encapsulation within the following macros, do not change
14717     ## the running order or otherwise move them around unless you know exactly
14718     ## what you are doing...
14719     # Dependencies to place before and after the object being linked:
14720 predep_objects_CXX=
14721 postdep_objects_CXX=
14722 predeps_CXX=
14723 postdeps_CXX=
14724 compiler_lib_search_path_CXX=
14725
14726 cat > conftest.$ac_ext <<_LT_EOF
14727 class Foo
14728 {
14729 public:
14730   Foo (void) { a = 0; }
14731 private:
14732   int a;
14733 };
14734 _LT_EOF
14735
14736
14737 _lt_libdeps_save_CFLAGS=$CFLAGS
14738 case "$CC $CFLAGS " in #(
14739 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14740 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14741 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14742 esac
14743
14744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14745   (eval $ac_compile) 2>&5
14746   ac_status=$?
14747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14748   test $ac_status = 0; }; then
14749   # Parse the compiler output and extract the necessary
14750   # objects, libraries and library flags.
14751
14752   # Sentinel used to keep track of whether or not we are before
14753   # the conftest object file.
14754   pre_test_object_deps_done=no
14755
14756   for p in `eval "$output_verbose_link_cmd"`; do
14757     case $prev$p in
14758
14759     -L* | -R* | -l*)
14760        # Some compilers place space between "-{L,R}" and the path.
14761        # Remove the space.
14762        if test x-L = "$p" ||
14763           test x-R = "$p"; then
14764          prev=$p
14765          continue
14766        fi
14767
14768        # Expand the sysroot to ease extracting the directories later.
14769        if test -z "$prev"; then
14770          case $p in
14771          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14772          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14773          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14774          esac
14775        fi
14776        case $p in
14777        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14778        esac
14779        if test no = "$pre_test_object_deps_done"; then
14780          case $prev in
14781          -L | -R)
14782            # Internal compiler library paths should come after those
14783            # provided the user.  The postdeps already come after the
14784            # user supplied libs so there is no need to process them.
14785            if test -z "$compiler_lib_search_path_CXX"; then
14786              compiler_lib_search_path_CXX=$prev$p
14787            else
14788              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14789            fi
14790            ;;
14791          # The "-l" case would never come before the object being
14792          # linked, so don't bother handling this case.
14793          esac
14794        else
14795          if test -z "$postdeps_CXX"; then
14796            postdeps_CXX=$prev$p
14797          else
14798            postdeps_CXX="${postdeps_CXX} $prev$p"
14799          fi
14800        fi
14801        prev=
14802        ;;
14803
14804     *.lto.$objext) ;; # Ignore GCC LTO objects
14805     *.$objext)
14806        # This assumes that the test object file only shows up
14807        # once in the compiler output.
14808        if test "$p" = "conftest.$objext"; then
14809          pre_test_object_deps_done=yes
14810          continue
14811        fi
14812
14813        if test no = "$pre_test_object_deps_done"; then
14814          if test -z "$predep_objects_CXX"; then
14815            predep_objects_CXX=$p
14816          else
14817            predep_objects_CXX="$predep_objects_CXX $p"
14818          fi
14819        else
14820          if test -z "$postdep_objects_CXX"; then
14821            postdep_objects_CXX=$p
14822          else
14823            postdep_objects_CXX="$postdep_objects_CXX $p"
14824          fi
14825        fi
14826        ;;
14827
14828     *) ;; # Ignore the rest.
14829
14830     esac
14831   done
14832
14833   # Clean up.
14834   rm -f a.out a.exe
14835 else
14836   echo "libtool.m4: error: problem compiling CXX test program"
14837 fi
14838
14839 $RM -f confest.$objext
14840 CFLAGS=$_lt_libdeps_save_CFLAGS
14841
14842 # PORTME: override above test on systems where it is broken
14843 case $host_os in
14844 interix[3-9]*)
14845   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14846   # hack all around it, let's just trust "g++" to DTRT.
14847   predep_objects_CXX=
14848   postdep_objects_CXX=
14849   postdeps_CXX=
14850   ;;
14851 esac
14852
14853
14854 case " $postdeps_CXX " in
14855 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14856 esac
14857  compiler_lib_search_dirs_CXX=
14858 if test -n "${compiler_lib_search_path_CXX}"; then
14859  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14860 fi
14861
14862     
14863     
14864     
14865
14866
14867     
14868     
14869     
14870
14871
14872     
14873     
14874     
14875
14876
14877     
14878     
14879     
14880
14881
14882     
14883     
14884     
14885
14886
14887     
14888     
14889     
14890
14891
14892     lt_prog_compiler_wl_CXX=
14893 lt_prog_compiler_pic_CXX=
14894 lt_prog_compiler_static_CXX=
14895
14896
14897   # C++ specific cases for pic, static, wl, etc.
14898   if test yes = "$GXX"; then
14899     lt_prog_compiler_wl_CXX='-Wl,'
14900     lt_prog_compiler_static_CXX='-static'
14901
14902     case $host_os in
14903     aix*)
14904       # All AIX code is PIC.
14905       if test ia64 = "$host_cpu"; then
14906         # AIX 5 now supports IA64 processor
14907         lt_prog_compiler_static_CXX='-Bstatic'
14908       fi
14909       lt_prog_compiler_pic_CXX='-fPIC'
14910       ;;
14911
14912     amigaos*)
14913       case $host_cpu in
14914       powerpc)
14915             # see comment about AmigaOS4 .so support
14916             lt_prog_compiler_pic_CXX='-fPIC'
14917         ;;
14918       m68k)
14919             # FIXME: we need at least 68020 code to build shared libraries, but
14920             # adding the '-m68020' flag to GCC prevents building anything better,
14921             # like '-m68040'.
14922             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14923         ;;
14924       esac
14925       ;;
14926
14927     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14928       # PIC is the default for these OSes.
14929       ;;
14930     mingw* | cygwin* | os2* | pw32* | cegcc*)
14931       # This hack is so that the source file can tell whether it is being
14932       # built for inclusion in a dll (and should export symbols for example).
14933       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14934       # (--disable-auto-import) libraries
14935       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14936       case $host_os in
14937       os2*)
14938         lt_prog_compiler_static_CXX='$wl-static'
14939         ;;
14940       esac
14941       ;;
14942     darwin* | rhapsody*)
14943       # PIC is the default on this platform
14944       # Common symbols not allowed in MH_DYLIB files
14945       lt_prog_compiler_pic_CXX='-fno-common'
14946       ;;
14947     *djgpp*)
14948       # DJGPP does not support shared libraries at all
14949       lt_prog_compiler_pic_CXX=
14950       ;;
14951     haiku*)
14952       # PIC is the default for Haiku.
14953       # The "-static" flag exists, but is broken.
14954       lt_prog_compiler_static_CXX=
14955       ;;
14956     interix[3-9]*)
14957       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14958       # Instead, we relocate shared libraries at runtime.
14959       ;;
14960     sysv4*MP*)
14961       if test -d /usr/nec; then
14962         lt_prog_compiler_pic_CXX=-Kconform_pic
14963       fi
14964       ;;
14965     hpux*)
14966       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14967       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14968       # sets the default TLS model and affects inlining.
14969       case $host_cpu in
14970       hppa*64*)
14971         ;;
14972       *)
14973         lt_prog_compiler_pic_CXX='-fPIC'
14974         ;;
14975       esac
14976       ;;
14977     *qnx* | *nto*)
14978       # QNX uses GNU C++, but need to define -shared option too, otherwise
14979       # it will coredump.
14980       lt_prog_compiler_pic_CXX='-fPIC -shared'
14981       ;;
14982     *)
14983       lt_prog_compiler_pic_CXX='-fPIC'
14984       ;;
14985     esac
14986   else
14987     case $host_os in
14988       aix[4-9]*)
14989         # All AIX code is PIC.
14990         if test ia64 = "$host_cpu"; then
14991           # AIX 5 now supports IA64 processor
14992           lt_prog_compiler_static_CXX='-Bstatic'
14993         else
14994           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14995         fi
14996         ;;
14997       chorus*)
14998         case $cc_basename in
14999         cxch68*)
15000           # Green Hills C++ Compiler
15001           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15002           ;;
15003         esac
15004         ;;
15005       mingw* | cygwin* | os2* | pw32* | cegcc*)
15006         # This hack is so that the source file can tell whether it is being
15007         # built for inclusion in a dll (and should export symbols for example).
15008         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15009         ;;
15010       dgux*)
15011         case $cc_basename in
15012           ec++*)
15013             lt_prog_compiler_pic_CXX='-KPIC'
15014             ;;
15015           ghcx*)
15016             # Green Hills C++ Compiler
15017             lt_prog_compiler_pic_CXX='-pic'
15018             ;;
15019           *)
15020             ;;
15021         esac
15022         ;;
15023       freebsd* | dragonfly*)
15024         # FreeBSD uses GNU C++
15025         ;;
15026       hpux9* | hpux10* | hpux11*)
15027         case $cc_basename in
15028           CC*)
15029             lt_prog_compiler_wl_CXX='-Wl,'
15030             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15031             if test ia64 != "$host_cpu"; then
15032               lt_prog_compiler_pic_CXX='+Z'
15033             fi
15034             ;;
15035           aCC*)
15036             lt_prog_compiler_wl_CXX='-Wl,'
15037             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15038             case $host_cpu in
15039             hppa*64*|ia64*)
15040               # +Z the default
15041               ;;
15042             *)
15043               lt_prog_compiler_pic_CXX='+Z'
15044               ;;
15045             esac
15046             ;;
15047           *)
15048             ;;
15049         esac
15050         ;;
15051       interix*)
15052         # This is c89, which is MS Visual C++ (no shared libs)
15053         # Anyone wants to do a port?
15054         ;;
15055       irix5* | irix6* | nonstopux*)
15056         case $cc_basename in
15057           CC*)
15058             lt_prog_compiler_wl_CXX='-Wl,'
15059             lt_prog_compiler_static_CXX='-non_shared'
15060             # CC pic flag -KPIC is the default.
15061             ;;
15062           *)
15063             ;;
15064         esac
15065         ;;
15066       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15067         case $cc_basename in
15068           KCC*)
15069             # KAI C++ Compiler
15070             lt_prog_compiler_wl_CXX='--backend -Wl,'
15071             lt_prog_compiler_pic_CXX='-fPIC'
15072             ;;
15073           ecpc* )
15074             # old Intel C++ for x86_64, which still supported -KPIC.
15075             lt_prog_compiler_wl_CXX='-Wl,'
15076             lt_prog_compiler_pic_CXX='-KPIC'
15077             lt_prog_compiler_static_CXX='-static'
15078             ;;
15079           icpc* )
15080             # Intel C++, used to be incompatible with GCC.
15081             # ICC 10 doesn't accept -KPIC any more.
15082             lt_prog_compiler_wl_CXX='-Wl,'
15083             lt_prog_compiler_pic_CXX='-fPIC'
15084             lt_prog_compiler_static_CXX='-static'
15085             ;;
15086           pgCC* | pgcpp*)
15087             # Portland Group C++ compiler
15088             lt_prog_compiler_wl_CXX='-Wl,'
15089             lt_prog_compiler_pic_CXX='-fpic'
15090             lt_prog_compiler_static_CXX='-Bstatic'
15091             ;;
15092           cxx*)
15093             # Compaq C++
15094             # Make sure the PIC flag is empty.  It appears that all Alpha
15095             # Linux and Compaq Tru64 Unix objects are PIC.
15096             lt_prog_compiler_pic_CXX=
15097             lt_prog_compiler_static_CXX='-non_shared'
15098             ;;
15099           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15100             # IBM XL 8.0, 9.0 on PPC and BlueGene
15101             lt_prog_compiler_wl_CXX='-Wl,'
15102             lt_prog_compiler_pic_CXX='-qpic'
15103             lt_prog_compiler_static_CXX='-qstaticlink'
15104             ;;
15105           *)
15106             case `$CC -V 2>&1 | sed 5q` in
15107             *Sun\ C*)
15108               # Sun C++ 5.9
15109               lt_prog_compiler_pic_CXX='-KPIC'
15110               lt_prog_compiler_static_CXX='-Bstatic'
15111               lt_prog_compiler_wl_CXX='-Qoption ld '
15112               ;;
15113             esac
15114             ;;
15115         esac
15116         ;;
15117       lynxos*)
15118         ;;
15119       m88k*)
15120         ;;
15121       mvs*)
15122         case $cc_basename in
15123           cxx*)
15124             lt_prog_compiler_pic_CXX='-W c,exportall'
15125             ;;
15126           *)
15127             ;;
15128         esac
15129         ;;
15130       netbsd* | netbsdelf*-gnu)
15131         ;;
15132       *qnx* | *nto*)
15133         # QNX uses GNU C++, but need to define -shared option too, otherwise
15134         # it will coredump.
15135         lt_prog_compiler_pic_CXX='-fPIC -shared'
15136         ;;
15137       osf3* | osf4* | osf5*)
15138         case $cc_basename in
15139           KCC*)
15140             lt_prog_compiler_wl_CXX='--backend -Wl,'
15141             ;;
15142           RCC*)
15143             # Rational C++ 2.4.1
15144             lt_prog_compiler_pic_CXX='-pic'
15145             ;;
15146           cxx*)
15147             # Digital/Compaq C++
15148             lt_prog_compiler_wl_CXX='-Wl,'
15149             # Make sure the PIC flag is empty.  It appears that all Alpha
15150             # Linux and Compaq Tru64 Unix objects are PIC.
15151             lt_prog_compiler_pic_CXX=
15152             lt_prog_compiler_static_CXX='-non_shared'
15153             ;;
15154           *)
15155             ;;
15156         esac
15157         ;;
15158       psos*)
15159         ;;
15160       solaris*)
15161         case $cc_basename in
15162           CC* | sunCC*)
15163             # Sun C++ 4.2, 5.x and Centerline C++
15164             lt_prog_compiler_pic_CXX='-KPIC'
15165             lt_prog_compiler_static_CXX='-Bstatic'
15166             lt_prog_compiler_wl_CXX='-Qoption ld '
15167             ;;
15168           gcx*)
15169             # Green Hills C++ Compiler
15170             lt_prog_compiler_pic_CXX='-PIC'
15171             ;;
15172           *)
15173             ;;
15174         esac
15175         ;;
15176       sunos4*)
15177         case $cc_basename in
15178           CC*)
15179             # Sun C++ 4.x
15180             lt_prog_compiler_pic_CXX='-pic'
15181             lt_prog_compiler_static_CXX='-Bstatic'
15182             ;;
15183           lcc*)
15184             # Lucid
15185             lt_prog_compiler_pic_CXX='-pic'
15186             ;;
15187           *)
15188             ;;
15189         esac
15190         ;;
15191       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15192         case $cc_basename in
15193           CC*)
15194             lt_prog_compiler_wl_CXX='-Wl,'
15195             lt_prog_compiler_pic_CXX='-KPIC'
15196             lt_prog_compiler_static_CXX='-Bstatic'
15197             ;;
15198         esac
15199         ;;
15200       tandem*)
15201         case $cc_basename in
15202           NCC*)
15203             # NonStop-UX NCC 3.20
15204             lt_prog_compiler_pic_CXX='-KPIC'
15205             ;;
15206           *)
15207             ;;
15208         esac
15209         ;;
15210       vxworks*)
15211         ;;
15212       *)
15213         lt_prog_compiler_can_build_shared_CXX=no
15214         ;;
15215     esac
15216   fi
15217
15218 case $host_os in
15219   # For platforms that do not support PIC, -DPIC is meaningless:
15220   *djgpp*)
15221     lt_prog_compiler_pic_CXX=
15222     ;;
15223   *)
15224     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
15225     ;;
15226 esac
15227
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15230 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15231   $as_echo_n "(cached) " >&6
15232 else
15233   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15234 fi
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15236 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15237 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15238
15239 #
15240 # Check to make sure the PIC flag actually works.
15241 #
15242 if test -n "$lt_prog_compiler_pic_CXX"; then
15243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15245 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15246   $as_echo_n "(cached) " >&6
15247 else
15248   lt_cv_prog_compiler_pic_works_CXX=no
15249    ac_outfile=conftest.$ac_objext
15250    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15251    lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15252    # Insert the option either (1) after the last *FLAGS variable, or
15253    # (2) before a word containing "conftest.", or (3) at the end.
15254    # Note that $ac_compile itself does not contain backslashes and begins
15255    # with a dollar sign (not a hyphen), so the echo should work correctly.
15256    # The option is referenced via a variable to avoid confusing sed.
15257    lt_compile=`echo "$ac_compile" | $SED \
15258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15260    -e 's:$: $lt_compiler_flag:'`
15261    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15262    (eval "$lt_compile" 2>conftest.err)
15263    ac_status=$?
15264    cat conftest.err >&5
15265    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266    if (exit $ac_status) && test -s "$ac_outfile"; then
15267      # The compiler can only warn and ignore the option if not recognized
15268      # So say no if there are warnings other than the usual output.
15269      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15270      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15271      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15272        lt_cv_prog_compiler_pic_works_CXX=yes
15273      fi
15274    fi
15275    $RM conftest*
15276
15277 fi
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15279 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15280
15281 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15282     case $lt_prog_compiler_pic_CXX in
15283      "" | " "*) ;;
15284      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15285      esac
15286 else
15287     lt_prog_compiler_pic_CXX=
15288      lt_prog_compiler_can_build_shared_CXX=no
15289 fi
15290
15291 fi
15292
15293
15294
15295
15296
15297 #
15298 # Check to make sure the static flag actually works.
15299 #
15300 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15303 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15304   $as_echo_n "(cached) " >&6
15305 else
15306   lt_cv_prog_compiler_static_works_CXX=no
15307    save_LDFLAGS=$LDFLAGS
15308    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15309    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15310    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15311      # The linker can only warn and ignore the option if not recognized
15312      # So say no if there are warnings
15313      if test -s conftest.err; then
15314        # Append any errors to the config.log.
15315        cat conftest.err 1>&5
15316        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15317        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15318        if diff conftest.exp conftest.er2 >/dev/null; then
15319          lt_cv_prog_compiler_static_works_CXX=yes
15320        fi
15321      else
15322        lt_cv_prog_compiler_static_works_CXX=yes
15323      fi
15324    fi
15325    $RM -r conftest*
15326    LDFLAGS=$save_LDFLAGS
15327
15328 fi
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15330 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15331
15332 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15333     :
15334 else
15335     lt_prog_compiler_static_CXX=
15336 fi
15337
15338
15339
15340
15341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15343 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15344   $as_echo_n "(cached) " >&6
15345 else
15346   lt_cv_prog_compiler_c_o_CXX=no
15347    $RM -r conftest 2>/dev/null
15348    mkdir conftest
15349    cd conftest
15350    mkdir out
15351    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15352
15353    lt_compiler_flag="-o out/conftest2.$ac_objext"
15354    # Insert the option either (1) after the last *FLAGS variable, or
15355    # (2) before a word containing "conftest.", or (3) at the end.
15356    # Note that $ac_compile itself does not contain backslashes and begins
15357    # with a dollar sign (not a hyphen), so the echo should work correctly.
15358    lt_compile=`echo "$ac_compile" | $SED \
15359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15361    -e 's:$: $lt_compiler_flag:'`
15362    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15363    (eval "$lt_compile" 2>out/conftest.err)
15364    ac_status=$?
15365    cat out/conftest.err >&5
15366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15368    then
15369      # The compiler can only warn and ignore the option if not recognized
15370      # So say no if there are warnings
15371      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15372      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15373      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15374        lt_cv_prog_compiler_c_o_CXX=yes
15375      fi
15376    fi
15377    chmod u+w . 2>&5
15378    $RM conftest*
15379    # SGI C++ compiler will create directory out/ii_files/ for
15380    # template instantiation
15381    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15382    $RM out/* && rmdir out
15383    cd ..
15384    $RM -r conftest
15385    $RM conftest*
15386
15387 fi
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15390
15391
15392
15393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15395 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15396   $as_echo_n "(cached) " >&6
15397 else
15398   lt_cv_prog_compiler_c_o_CXX=no
15399    $RM -r conftest 2>/dev/null
15400    mkdir conftest
15401    cd conftest
15402    mkdir out
15403    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15404
15405    lt_compiler_flag="-o out/conftest2.$ac_objext"
15406    # Insert the option either (1) after the last *FLAGS variable, or
15407    # (2) before a word containing "conftest.", or (3) at the end.
15408    # Note that $ac_compile itself does not contain backslashes and begins
15409    # with a dollar sign (not a hyphen), so the echo should work correctly.
15410    lt_compile=`echo "$ac_compile" | $SED \
15411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15413    -e 's:$: $lt_compiler_flag:'`
15414    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15415    (eval "$lt_compile" 2>out/conftest.err)
15416    ac_status=$?
15417    cat out/conftest.err >&5
15418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15420    then
15421      # The compiler can only warn and ignore the option if not recognized
15422      # So say no if there are warnings
15423      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15424      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15425      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15426        lt_cv_prog_compiler_c_o_CXX=yes
15427      fi
15428    fi
15429    chmod u+w . 2>&5
15430    $RM conftest*
15431    # SGI C++ compiler will create directory out/ii_files/ for
15432    # template instantiation
15433    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15434    $RM out/* && rmdir out
15435    cd ..
15436    $RM -r conftest
15437    $RM conftest*
15438
15439 fi
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15441 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15442
15443
15444
15445
15446 hard_links=nottested
15447 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15448   # do not overwrite the value of need_locks provided by the user
15449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15450 $as_echo_n "checking if we can lock with hard links... " >&6; }
15451   hard_links=yes
15452   $RM conftest*
15453   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15454   touch conftest.a
15455   ln conftest.a conftest.b 2>&5 || hard_links=no
15456   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15458 $as_echo "$hard_links" >&6; }
15459   if test no = "$hard_links"; then
15460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15461 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15462     need_locks=warn
15463   fi
15464 else
15465   need_locks=no
15466 fi
15467
15468
15469
15470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15472
15473   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15474   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15475   case $host_os in
15476   aix[4-9]*)
15477     # If we're using GNU nm, then we don't want the "-C" option.
15478     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15479     # Without the "-l" option, or with the "-B" option, AIX nm treats
15480     # weak defined symbols like other global defined symbols, whereas
15481     # GNU nm marks them as "W".
15482     # While the 'weak' keyword is ignored in the Export File, we need
15483     # it in the Import File for the 'aix-soname' feature, so we have
15484     # to replace the "-B" option with "-P" for AIX nm.
15485     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15486       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15487     else
15488       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15489     fi
15490     ;;
15491   pw32*)
15492     export_symbols_cmds_CXX=$ltdll_cmds
15493     ;;
15494   cygwin* | mingw* | cegcc*)
15495     case $cc_basename in
15496     cl*)
15497       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15498       ;;
15499     *)
15500       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15501       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15502       ;;
15503     esac
15504     ;;
15505   linux* | k*bsd*-gnu | gnu*)
15506     link_all_deplibs_CXX=no
15507     ;;
15508   *)
15509     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15510     ;;
15511   esac
15512
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15514 $as_echo "$ld_shlibs_CXX" >&6; }
15515 test no = "$ld_shlibs_CXX" && can_build_shared=no
15516
15517 with_gnu_ld_CXX=$with_gnu_ld
15518
15519
15520
15521
15522
15523
15524 #
15525 # Do we need to explicitly link libc?
15526 #
15527 case "x$archive_cmds_need_lc_CXX" in
15528 x|xyes)
15529   # Assume -lc should be added
15530   archive_cmds_need_lc_CXX=yes
15531
15532   if test yes,yes = "$GCC,$enable_shared"; then
15533     case $archive_cmds_CXX in
15534     *'~'*)
15535       # FIXME: we may have to deal with multi-command sequences.
15536       ;;
15537     '$CC '*)
15538       # Test whether the compiler implicitly links with -lc since on some
15539       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15540       # to ld, don't add -lc before -lgcc.
15541       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15542 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15543 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15544   $as_echo_n "(cached) " >&6
15545 else
15546   $RM conftest*
15547         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15548
15549         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15550   (eval $ac_compile) 2>&5
15551   ac_status=$?
15552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15553   test $ac_status = 0; } 2>conftest.err; then
15554           soname=conftest
15555           lib=conftest
15556           libobjs=conftest.$ac_objext
15557           deplibs=
15558           wl=$lt_prog_compiler_wl_CXX
15559           pic_flag=$lt_prog_compiler_pic_CXX
15560           compiler_flags=-v
15561           linker_flags=-v
15562           verstring=
15563           output_objdir=.
15564           libname=conftest
15565           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15566           allow_undefined_flag_CXX=
15567           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15568   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15569   ac_status=$?
15570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15571   test $ac_status = 0; }
15572           then
15573             lt_cv_archive_cmds_need_lc_CXX=no
15574           else
15575             lt_cv_archive_cmds_need_lc_CXX=yes
15576           fi
15577           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15578         else
15579           cat conftest.err 1>&5
15580         fi
15581         $RM conftest*
15582         
15583 fi
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15585 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15586       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15587       ;;
15588     esac
15589   fi
15590   ;;
15591 esac
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15655 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15656
15657 library_names_spec=
15658 libname_spec='lib$name'
15659 soname_spec=
15660 shrext_cmds=.so
15661 postinstall_cmds=
15662 postuninstall_cmds=
15663 finish_cmds=
15664 finish_eval=
15665 shlibpath_var=
15666 shlibpath_overrides_runpath=unknown
15667 version_type=none
15668 dynamic_linker="$host_os ld.so"
15669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15670 need_lib_prefix=unknown
15671 hardcode_into_libs=no
15672
15673 # when you set need_version to no, make sure it does not cause -set_version
15674 # flags to be left without arguments
15675 need_version=unknown
15676
15677
15678
15679 case $host_os in
15680 aix3*)
15681   version_type=linux # correct to gnu/linux during the next big refactor
15682   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15683   shlibpath_var=LIBPATH
15684
15685   # AIX 3 has no versioning support, so we append a major version to the name.
15686   soname_spec='$libname$release$shared_ext$major'
15687   ;;
15688
15689 aix[4-9]*)
15690   version_type=linux # correct to gnu/linux during the next big refactor
15691   need_lib_prefix=no
15692   need_version=no
15693   hardcode_into_libs=yes
15694   if test ia64 = "$host_cpu"; then
15695     # AIX 5 supports IA64
15696     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15697     shlibpath_var=LD_LIBRARY_PATH
15698   else
15699     # With GCC up to 2.95.x, collect2 would create an import file
15700     # for dependence libraries.  The import file would start with
15701     # the line '#! .'.  This would cause the generated library to
15702     # depend on '.', always an invalid library.  This was fixed in
15703     # development snapshots of GCC prior to 3.0.
15704     case $host_os in
15705       aix4 | aix4.[01] | aix4.[01].*)
15706       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15707            echo ' yes '
15708            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15709         :
15710       else
15711         can_build_shared=no
15712       fi
15713       ;;
15714     esac
15715     # Using Import Files as archive members, it is possible to support
15716     # filename-based versioning of shared library archives on AIX. While
15717     # this would work for both with and without runtime linking, it will
15718     # prevent static linking of such archives. So we do filename-based
15719     # shared library versioning with .so extension only, which is used
15720     # when both runtime linking and shared linking is enabled.
15721     # Unfortunately, runtime linking may impact performance, so we do
15722     # not want this to be the default eventually. Also, we use the
15723     # versioned .so libs for executables only if there is the -brtl
15724     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15725     # To allow for filename-based versioning support, we need to create
15726     # libNAME.so.V as an archive file, containing:
15727     # *) an Import File, referring to the versioned filename of the
15728     #    archive as well as the shared archive member, telling the
15729     #    bitwidth (32 or 64) of that shared object, and providing the
15730     #    list of exported symbols of that shared object, eventually
15731     #    decorated with the 'weak' keyword
15732     # *) the shared object with the F_LOADONLY flag set, to really avoid
15733     #    it being seen by the linker.
15734     # At run time we better use the real file rather than another symlink,
15735     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15736
15737     case $with_aix_soname,$aix_use_runtimelinking in
15738     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15739     # soname into executable. Probably we can add versioning support to
15740     # collect2, so additional links can be useful in future.
15741     aix,yes) # traditional libtool
15742       dynamic_linker='AIX unversionable lib.so'
15743       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15744       # instead of lib<name>.a to let people know that these are not
15745       # typical AIX shared libraries.
15746       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15747       ;;
15748     aix,no) # traditional AIX only
15749       dynamic_linker='AIX lib.a(lib.so.V)'
15750       # We preserve .a as extension for shared libraries through AIX4.2
15751       # and later when we are not doing run time linking.
15752       library_names_spec='$libname$release.a $libname.a'
15753       soname_spec='$libname$release$shared_ext$major'
15754       ;;
15755     svr4,*) # full svr4 only
15756       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15757       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15758       # We do not specify a path in Import Files, so LIBPATH fires.
15759       shlibpath_overrides_runpath=yes
15760       ;;
15761     *,yes) # both, prefer svr4
15762       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15763       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15764       # unpreferred sharedlib libNAME.a needs extra handling
15765       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15766       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15767       # We do not specify a path in Import Files, so LIBPATH fires.
15768       shlibpath_overrides_runpath=yes
15769       ;;
15770     *,no) # both, prefer aix
15771       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15772       library_names_spec='$libname$release.a $libname.a'
15773       soname_spec='$libname$release$shared_ext$major'
15774       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15775       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15776       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15777       ;;
15778     esac
15779     shlibpath_var=LIBPATH
15780   fi
15781   ;;
15782
15783 amigaos*)
15784   case $host_cpu in
15785   powerpc)
15786     # Since July 2007 AmigaOS4 officially supports .so libraries.
15787     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15788     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15789     ;;
15790   m68k)
15791     library_names_spec='$libname.ixlibrary $libname.a'
15792     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15793     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15794     ;;
15795   esac
15796   ;;
15797
15798 beos*)
15799   library_names_spec='$libname$shared_ext'
15800   dynamic_linker="$host_os ld.so"
15801   shlibpath_var=LIBRARY_PATH
15802   ;;
15803
15804 bsdi[45]*)
15805   version_type=linux # correct to gnu/linux during the next big refactor
15806   need_version=no
15807   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15808   soname_spec='$libname$release$shared_ext$major'
15809   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15810   shlibpath_var=LD_LIBRARY_PATH
15811   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15812   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15813   # the default ld.so.conf also contains /usr/contrib/lib and
15814   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15815   # libtool to hard-code these into programs
15816   ;;
15817
15818 cygwin* | mingw* | pw32* | cegcc*)
15819   version_type=windows
15820   shrext_cmds=.dll
15821   need_version=no
15822   need_lib_prefix=no
15823
15824   case $GCC,$cc_basename in
15825   yes,*)
15826     # gcc
15827     library_names_spec='$libname.dll.a'
15828     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15829     postinstall_cmds='base_file=`basename \$file`~
15830       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15831       dldir=$destdir/`dirname \$dlpath`~
15832       test -d \$dldir || mkdir -p \$dldir~
15833       $install_prog $dir/$dlname \$dldir/$dlname~
15834       chmod a+x \$dldir/$dlname~
15835       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15836         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15837       fi'
15838     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15839       dlpath=$dir/\$dldll~
15840        $RM \$dlpath'
15841     shlibpath_overrides_runpath=yes
15842
15843     case $host_os in
15844     cygwin*)
15845       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15846       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15847
15848       ;;
15849     mingw* | cegcc*)
15850       # MinGW DLLs use traditional 'lib' prefix
15851       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15852       ;;
15853     pw32*)
15854       # pw32 DLLs use 'pw' prefix rather than 'lib'
15855       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15856       ;;
15857     esac
15858     dynamic_linker='Win32 ld.exe'
15859     ;;
15860
15861   *,cl*)
15862     # Native MSVC
15863     libname_spec='$name'
15864     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15865     library_names_spec='$libname.dll.lib'
15866
15867     case $build_os in
15868     mingw*)
15869       sys_lib_search_path_spec=
15870       lt_save_ifs=$IFS
15871       IFS=';'
15872       for lt_path in $LIB
15873       do
15874         IFS=$lt_save_ifs
15875         # Let DOS variable expansion print the short 8.3 style file name.
15876         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15877         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15878       done
15879       IFS=$lt_save_ifs
15880       # Convert to MSYS style.
15881       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15882       ;;
15883     cygwin*)
15884       # Convert to unix form, then to dos form, then back to unix form
15885       # but this time dos style (no spaces!) so that the unix form looks
15886       # like /cygdrive/c/PROGRA~1:/cygdr...
15887       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15888       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15889       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15890       ;;
15891     *)
15892       sys_lib_search_path_spec=$LIB
15893       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15894         # It is most probably a Windows format PATH.
15895         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15896       else
15897         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15898       fi
15899       # FIXME: find the short name or the path components, as spaces are
15900       # common. (e.g. "Program Files" -> "PROGRA~1")
15901       ;;
15902     esac
15903
15904     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15905     postinstall_cmds='base_file=`basename \$file`~
15906       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15907       dldir=$destdir/`dirname \$dlpath`~
15908       test -d \$dldir || mkdir -p \$dldir~
15909       $install_prog $dir/$dlname \$dldir/$dlname'
15910     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15911       dlpath=$dir/\$dldll~
15912        $RM \$dlpath'
15913     shlibpath_overrides_runpath=yes
15914     dynamic_linker='Win32 link.exe'
15915     ;;
15916
15917   *)
15918     # Assume MSVC wrapper
15919     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15920     dynamic_linker='Win32 ld.exe'
15921     ;;
15922   esac
15923   # FIXME: first we should search . and the directory the executable is in
15924   shlibpath_var=PATH
15925   ;;
15926
15927 darwin* | rhapsody*)
15928   dynamic_linker="$host_os dyld"
15929   version_type=darwin
15930   need_lib_prefix=no
15931   need_version=no
15932   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15933   soname_spec='$libname$release$major$shared_ext'
15934   shlibpath_overrides_runpath=yes
15935   shlibpath_var=DYLD_LIBRARY_PATH
15936   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15937
15938   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15939   ;;
15940
15941 dgux*)
15942   version_type=linux # correct to gnu/linux during the next big refactor
15943   need_lib_prefix=no
15944   need_version=no
15945   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15946   soname_spec='$libname$release$shared_ext$major'
15947   shlibpath_var=LD_LIBRARY_PATH
15948   ;;
15949
15950 freebsd* | dragonfly*)
15951   # DragonFly does not have aout.  When/if they implement a new
15952   # versioning mechanism, adjust this.
15953   if test -x /usr/bin/objformat; then
15954     objformat=`/usr/bin/objformat`
15955   else
15956     case $host_os in
15957     freebsd[23].*) objformat=aout ;;
15958     *) objformat=elf ;;
15959     esac
15960   fi
15961   version_type=freebsd-$objformat
15962   case $version_type in
15963     freebsd-elf*)
15964       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15965       soname_spec='$libname$release$shared_ext$major'
15966       need_version=no
15967       need_lib_prefix=no
15968       ;;
15969     freebsd-*)
15970       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15971       need_version=yes
15972       ;;
15973   esac
15974   shlibpath_var=LD_LIBRARY_PATH
15975   case $host_os in
15976   freebsd2.*)
15977     shlibpath_overrides_runpath=yes
15978     ;;
15979   freebsd3.[01]* | freebsdelf3.[01]*)
15980     shlibpath_overrides_runpath=yes
15981     hardcode_into_libs=yes
15982     ;;
15983   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15984   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15985     shlibpath_overrides_runpath=no
15986     hardcode_into_libs=yes
15987     ;;
15988   *) # from 4.6 on, and DragonFly
15989     shlibpath_overrides_runpath=yes
15990     hardcode_into_libs=yes
15991     ;;
15992   esac
15993   ;;
15994
15995 haiku*)
15996   version_type=linux # correct to gnu/linux during the next big refactor
15997   need_lib_prefix=no
15998   need_version=no
15999   dynamic_linker="$host_os runtime_loader"
16000   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16001   soname_spec='$libname$release$shared_ext$major'
16002   shlibpath_var=LIBRARY_PATH
16003   shlibpath_overrides_runpath=no
16004   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16005   hardcode_into_libs=yes
16006   ;;
16007
16008 hpux9* | hpux10* | hpux11*)
16009   # Give a soname corresponding to the major version so that dld.sl refuses to
16010   # link against other versions.
16011   version_type=sunos
16012   need_lib_prefix=no
16013   need_version=no
16014   case $host_cpu in
16015   ia64*)
16016     shrext_cmds='.so'
16017     hardcode_into_libs=yes
16018     dynamic_linker="$host_os dld.so"
16019     shlibpath_var=LD_LIBRARY_PATH
16020     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16021     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16022     soname_spec='$libname$release$shared_ext$major'
16023     if test 32 = "$HPUX_IA64_MODE"; then
16024       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16025       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16026     else
16027       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16028       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16029     fi
16030     ;;
16031   hppa*64*)
16032     shrext_cmds='.sl'
16033     hardcode_into_libs=yes
16034     dynamic_linker="$host_os dld.sl"
16035     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16036     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16037     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16038     soname_spec='$libname$release$shared_ext$major'
16039     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16040     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16041     ;;
16042   *)
16043     shrext_cmds='.sl'
16044     dynamic_linker="$host_os dld.sl"
16045     shlibpath_var=SHLIB_PATH
16046     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16047     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16048     soname_spec='$libname$release$shared_ext$major'
16049     ;;
16050   esac
16051   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16052   postinstall_cmds='chmod 555 $lib'
16053   # or fails outright, so override atomically:
16054   install_override_mode=555
16055   ;;
16056
16057 interix[3-9]*)
16058   version_type=linux # correct to gnu/linux during the next big refactor
16059   need_lib_prefix=no
16060   need_version=no
16061   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16062   soname_spec='$libname$release$shared_ext$major'
16063   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16064   shlibpath_var=LD_LIBRARY_PATH
16065   shlibpath_overrides_runpath=no
16066   hardcode_into_libs=yes
16067   ;;
16068
16069 irix5* | irix6* | nonstopux*)
16070   case $host_os in
16071     nonstopux*) version_type=nonstopux ;;
16072     *)
16073         if test yes = "$lt_cv_prog_gnu_ld"; then
16074                 version_type=linux # correct to gnu/linux during the next big refactor
16075         else
16076                 version_type=irix
16077         fi ;;
16078   esac
16079   need_lib_prefix=no
16080   need_version=no
16081   soname_spec='$libname$release$shared_ext$major'
16082   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16083   case $host_os in
16084   irix5* | nonstopux*)
16085     libsuff= shlibsuff=
16086     ;;
16087   *)
16088     case $LD in # libtool.m4 will add one of these switches to LD
16089     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090       libsuff= shlibsuff= libmagic=32-bit;;
16091     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092       libsuff=32 shlibsuff=N32 libmagic=N32;;
16093     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095     *) libsuff= shlibsuff= libmagic=never-match;;
16096     esac
16097     ;;
16098   esac
16099   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100   shlibpath_overrides_runpath=no
16101   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16102   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16103   hardcode_into_libs=yes
16104   ;;
16105
16106 # No shared lib support for Linux oldld, aout, or coff.
16107 linux*oldld* | linux*aout* | linux*coff*)
16108   dynamic_linker=no
16109   ;;
16110
16111 linux*android*)
16112   version_type=none # Android doesn't support versioned libraries.
16113   need_lib_prefix=no
16114   need_version=no
16115   library_names_spec='$libname$release$shared_ext'
16116   soname_spec='$libname$release$shared_ext'
16117   finish_cmds=
16118   shlibpath_var=LD_LIBRARY_PATH
16119   shlibpath_overrides_runpath=yes
16120
16121   # This implies no fast_install, which is unacceptable.
16122   # Some rework will be needed to allow for fast_install
16123   # before this can be enabled.
16124   hardcode_into_libs=yes
16125
16126   dynamic_linker='Android linker'
16127   # Don't embed -rpath directories since the linker doesn't support them.
16128   hardcode_libdir_flag_spec_CXX='-L$libdir'
16129   ;;
16130
16131 # This must be glibc/ELF.
16132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16133   version_type=linux # correct to gnu/linux during the next big refactor
16134   need_lib_prefix=no
16135   need_version=no
16136   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16137   soname_spec='$libname$release$shared_ext$major'
16138   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=no
16141
16142   # Some binutils ld are patched to set DT_RUNPATH
16143   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16144   $as_echo_n "(cached) " >&6
16145 else
16146   lt_cv_shlibpath_overrides_runpath=no
16147     save_LDFLAGS=$LDFLAGS
16148     save_libdir=$libdir
16149     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16150          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h.  */
16153
16154 int
16155 main ()
16156 {
16157
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 if ac_fn_cxx_try_link "$LINENO"; then :
16163   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16164   lt_cv_shlibpath_overrides_runpath=yes
16165 fi
16166 fi
16167 rm -f core conftest.err conftest.$ac_objext \
16168     conftest$ac_exeext conftest.$ac_ext
16169     LDFLAGS=$save_LDFLAGS
16170     libdir=$save_libdir
16171     
16172 fi
16173
16174   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16175
16176   # This implies no fast_install, which is unacceptable.
16177   # Some rework will be needed to allow for fast_install
16178   # before this can be enabled.
16179   hardcode_into_libs=yes
16180
16181   # Ideally, we could use ldconfig to report *all* directores which are
16182   # searched for libraries, however this is still not possible.  Aside from not
16183   # being certain /sbin/ldconfig is available, command
16184   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16185   # even though it is searched at run-time.  Try to do the best guess by
16186   # appending ld.so.conf contents (and includes) to the search path.
16187   if test -f /etc/ld.so.conf; then
16188     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' ' '`
16189     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16190   fi
16191
16192   # We used to test for /lib/ld.so.1 and disable shared libraries on
16193   # powerpc, because MkLinux only supported shared libraries with the
16194   # GNU dynamic linker.  Since this was broken with cross compilers,
16195   # most powerpc-linux boxes support dynamic linking these days and
16196   # people can always --disable-shared, the test was removed, and we
16197   # assume the GNU/Linux dynamic linker is in use.
16198   dynamic_linker='GNU/Linux ld.so'
16199   ;;
16200
16201 netbsdelf*-gnu)
16202   version_type=linux
16203   need_lib_prefix=no
16204   need_version=no
16205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16206   soname_spec='${libname}${release}${shared_ext}$major'
16207   shlibpath_var=LD_LIBRARY_PATH
16208   shlibpath_overrides_runpath=no
16209   hardcode_into_libs=yes
16210   dynamic_linker='NetBSD ld.elf_so'
16211   ;;
16212
16213 netbsd*)
16214   version_type=sunos
16215   need_lib_prefix=no
16216   need_version=no
16217   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16218     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16219     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16220     dynamic_linker='NetBSD (a.out) ld.so'
16221   else
16222     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16223     soname_spec='$libname$release$shared_ext$major'
16224     dynamic_linker='NetBSD ld.elf_so'
16225   fi
16226   shlibpath_var=LD_LIBRARY_PATH
16227   shlibpath_overrides_runpath=yes
16228   hardcode_into_libs=yes
16229   ;;
16230
16231 newsos6)
16232   version_type=linux # correct to gnu/linux during the next big refactor
16233   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16234   shlibpath_var=LD_LIBRARY_PATH
16235   shlibpath_overrides_runpath=yes
16236   ;;
16237
16238 *nto* | *qnx*)
16239   version_type=qnx
16240   need_lib_prefix=no
16241   need_version=no
16242   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16243   soname_spec='$libname$release$shared_ext$major'
16244   shlibpath_var=LD_LIBRARY_PATH
16245   shlibpath_overrides_runpath=no
16246   hardcode_into_libs=yes
16247   dynamic_linker='ldqnx.so'
16248   ;;
16249
16250 openbsd* | bitrig*)
16251   version_type=sunos
16252   sys_lib_dlsearch_path_spec=/usr/lib
16253   need_lib_prefix=no
16254   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16255     need_version=no
16256   else
16257     need_version=yes
16258   fi
16259   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16261   shlibpath_var=LD_LIBRARY_PATH
16262   shlibpath_overrides_runpath=yes
16263   ;;
16264
16265 os2*)
16266   libname_spec='$name'
16267   version_type=windows
16268   shrext_cmds=.dll
16269   need_version=no
16270   need_lib_prefix=no
16271   # OS/2 can only load a DLL with a base name of 8 characters or less.
16272   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16273     v=$($ECHO $release$versuffix | tr -d .-);
16274     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16275     $ECHO $n$v`$shared_ext'
16276   library_names_spec='${libname}_dll.$libext'
16277   dynamic_linker='OS/2 ld.exe'
16278   shlibpath_var=BEGINLIBPATH
16279   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16280   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16281   postinstall_cmds='base_file=`basename \$file`~
16282     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16283     dldir=$destdir/`dirname \$dlpath`~
16284     test -d \$dldir || mkdir -p \$dldir~
16285     $install_prog $dir/$dlname \$dldir/$dlname~
16286     chmod a+x \$dldir/$dlname~
16287     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16288       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16289     fi'
16290   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16291     dlpath=$dir/\$dldll~
16292     $RM \$dlpath'
16293   ;;
16294
16295 osf3* | osf4* | osf5*)
16296   version_type=osf
16297   need_lib_prefix=no
16298   need_version=no
16299   soname_spec='$libname$release$shared_ext$major'
16300   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16301   shlibpath_var=LD_LIBRARY_PATH
16302   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16303   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16304   ;;
16305
16306 rdos*)
16307   dynamic_linker=no
16308   ;;
16309
16310 solaris*)
16311   version_type=linux # correct to gnu/linux during the next big refactor
16312   need_lib_prefix=no
16313   need_version=no
16314   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16315   soname_spec='$libname$release$shared_ext$major'
16316   shlibpath_var=LD_LIBRARY_PATH
16317   shlibpath_overrides_runpath=yes
16318   hardcode_into_libs=yes
16319   # ldd complains unless libraries are executable
16320   postinstall_cmds='chmod +x $lib'
16321   ;;
16322
16323 sunos4*)
16324   version_type=sunos
16325   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16326   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16327   shlibpath_var=LD_LIBRARY_PATH
16328   shlibpath_overrides_runpath=yes
16329   if test yes = "$with_gnu_ld"; then
16330     need_lib_prefix=no
16331   fi
16332   need_version=yes
16333   ;;
16334
16335 sysv4 | sysv4.3*)
16336   version_type=linux # correct to gnu/linux during the next big refactor
16337   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16338   soname_spec='$libname$release$shared_ext$major'
16339   shlibpath_var=LD_LIBRARY_PATH
16340   case $host_vendor in
16341     sni)
16342       shlibpath_overrides_runpath=no
16343       need_lib_prefix=no
16344       runpath_var=LD_RUN_PATH
16345       ;;
16346     siemens)
16347       need_lib_prefix=no
16348       ;;
16349     motorola)
16350       need_lib_prefix=no
16351       need_version=no
16352       shlibpath_overrides_runpath=no
16353       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16354       ;;
16355   esac
16356   ;;
16357
16358 sysv4*MP*)
16359   if test -d /usr/nec; then
16360     version_type=linux # correct to gnu/linux during the next big refactor
16361     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16362     soname_spec='$libname$shared_ext.$major'
16363     shlibpath_var=LD_LIBRARY_PATH
16364   fi
16365   ;;
16366
16367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16368   version_type=sco
16369   need_lib_prefix=no
16370   need_version=no
16371   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16372   soname_spec='$libname$release$shared_ext$major'
16373   shlibpath_var=LD_LIBRARY_PATH
16374   shlibpath_overrides_runpath=yes
16375   hardcode_into_libs=yes
16376   if test yes = "$with_gnu_ld"; then
16377     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16378   else
16379     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16380     case $host_os in
16381       sco3.2v5*)
16382         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16383         ;;
16384     esac
16385   fi
16386   sys_lib_dlsearch_path_spec='/usr/lib'
16387   ;;
16388
16389 tpf*)
16390   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16391   version_type=linux # correct to gnu/linux during the next big refactor
16392   need_lib_prefix=no
16393   need_version=no
16394   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16395   shlibpath_var=LD_LIBRARY_PATH
16396   shlibpath_overrides_runpath=no
16397   hardcode_into_libs=yes
16398   ;;
16399
16400 uts4*)
16401   version_type=linux # correct to gnu/linux during the next big refactor
16402   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16403   soname_spec='$libname$release$shared_ext$major'
16404   shlibpath_var=LD_LIBRARY_PATH
16405   ;;
16406
16407 *)
16408   dynamic_linker=no
16409   ;;
16410 esac
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16412 $as_echo "$dynamic_linker" >&6; }
16413 test no = "$dynamic_linker" && can_build_shared=no
16414
16415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16416 if test yes = "$GCC"; then
16417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16418 fi
16419
16420 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16421   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16422 fi
16423
16424 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16425   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16426 fi
16427
16428 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16429 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16430
16431 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16432 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16433
16434 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16435 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16477 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16478 hardcode_action_CXX=
16479 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16480    test -n "$runpath_var_CXX" ||
16481    test yes = "$hardcode_automatic_CXX"; then
16482
16483   # We can hardcode non-existent directories.
16484   if test no != "$hardcode_direct_CXX" &&
16485      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16486      # have to relink, otherwise we might link with an installed library
16487      # when we should be linking with a yet-to-be-installed one
16488      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16489      test no != "$hardcode_minus_L_CXX"; then
16490     # Linking always hardcodes the temporary library directory.
16491     hardcode_action_CXX=relink
16492   else
16493     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16494     hardcode_action_CXX=immediate
16495   fi
16496 else
16497   # We cannot hardcode anything, or else we can only hardcode existing
16498   # directories.
16499   hardcode_action_CXX=unsupported
16500 fi
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16502 $as_echo "$hardcode_action_CXX" >&6; }
16503
16504 if test relink = "$hardcode_action_CXX" ||
16505    test yes = "$inherit_rpath_CXX"; then
16506   # Fast installation is not supported
16507   enable_fast_install=no
16508 elif test yes = "$shlibpath_overrides_runpath" ||
16509      test no = "$enable_shared"; then
16510   # Fast installation is not necessary
16511   enable_fast_install=needless
16512 fi
16513
16514
16515
16516
16517     
16518
16519
16520   fi # test -n "$compiler"
16521
16522   CC=$lt_save_CC
16523   CFLAGS=$lt_save_CFLAGS
16524   LDCXX=$LD
16525   LD=$lt_save_LD
16526   GCC=$lt_save_GCC
16527   with_gnu_ld=$lt_save_with_gnu_ld
16528   lt_cv_path_LDCXX=$lt_cv_path_LD
16529   lt_cv_path_LD=$lt_save_path_LD
16530   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16531   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16532 fi # test yes != "$_lt_caught_CXX_error"
16533
16534 ac_ext=c
16535 ac_cpp='$CPP $CPPFLAGS'
16536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16539
16540
16541
16542
16543
16544
16545
16546
16547        
16548        
16549
16550
16551
16552
16553
16554         ac_config_commands="$ac_config_commands libtool"
16555
16556
16557
16558
16559 # Only expand once:
16560
16561
16562
16563 @%:@ Check whether --enable-silent-rules was given.
16564 if test "${enable_silent_rules+set}" = set; then :
16565   enableval=$enable_silent_rules; 
16566 fi
16567
16568 case $enable_silent_rules in @%:@ (((
16569   yes) AM_DEFAULT_VERBOSITY=0;;
16570    no) AM_DEFAULT_VERBOSITY=1;;
16571     *) AM_DEFAULT_VERBOSITY=0;;
16572 esac
16573 am_make=${MAKE-make}
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16575 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16576 if ${am_cv_make_support_nested_variables+:} false; then :
16577   $as_echo_n "(cached) " >&6
16578 else
16579   if $as_echo 'TRUE=$(BAR$(V))
16580 BAR0=false
16581 BAR1=true
16582 V=1
16583 am__doit:
16584         @$(TRUE)
16585 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16586   am_cv_make_support_nested_variables=yes
16587 else
16588   am_cv_make_support_nested_variables=no
16589 fi
16590 fi
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16592 $as_echo "$am_cv_make_support_nested_variables" >&6; }
16593 if test $am_cv_make_support_nested_variables = yes; then
16594     AM_V='$(V)'
16595   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16596 else
16597   AM_V=$AM_DEFAULT_VERBOSITY
16598   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16599 fi
16600 AM_BACKSLASH='\'
16601
16602
16603 case "$host_os" in
16604 cygwin)
16605         case "$target" in
16606         *mingw*)
16607                 CC="$CC -mno-cygwin"
16608         esac
16609         ;;
16610 esac
16611
16612 @%:@ Check whether --enable-ASN_DEBUG was given.
16613 if test "${enable_ASN_DEBUG+set}" = set; then :
16614   enableval=$enable_ASN_DEBUG; enable_asn_debug=$enableval
16615 else
16616   enable_asn_debug=no
16617 fi
16618
16619   if test x$enable_asn_debug != xno; then :
16620   
16621       TESTSUITE_CFLAGS="-DASN_EMIT_DEBUG"
16622       SKELETONS_CFLAGS="-DASN_EMIT_DEBUG"
16623   
16624 fi
16625
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
16627 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
16628 if ${ax_cv_check_cflags___Wall+:} false; then :
16629   $as_echo_n "(cached) " >&6
16630 else
16631   
16632   ax_check_save_flags=$CFLAGS
16633   CFLAGS="$CFLAGS  -Wall"
16634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h.  */
16636
16637 int
16638 main ()
16639 {
16640
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 if ac_fn_c_try_compile "$LINENO"; then :
16646   ax_cv_check_cflags___Wall=yes
16647 else
16648   ax_cv_check_cflags___Wall=no
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16651   CFLAGS=$ax_check_save_flags
16652 fi
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
16654 $as_echo "$ax_cv_check_cflags___Wall" >&6; }
16655 if test x"$ax_cv_check_cflags___Wall" = xyes; then :
16656   CFLAGS="$CFLAGS -Wall"
16657 else
16658   :
16659 fi
16660
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-qual" >&5
16662 $as_echo_n "checking whether C compiler accepts -Wcast-qual... " >&6; }
16663 if ${ax_cv_check_cflags___Wcast_qual+:} false; then :
16664   $as_echo_n "(cached) " >&6
16665 else
16666   
16667   ax_check_save_flags=$CFLAGS
16668   CFLAGS="$CFLAGS  -Wcast-qual"
16669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h.  */
16671
16672 int
16673 main ()
16674 {
16675
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 if ac_fn_c_try_compile "$LINENO"; then :
16681   ax_cv_check_cflags___Wcast_qual=yes
16682 else
16683   ax_cv_check_cflags___Wcast_qual=no
16684 fi
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686   CFLAGS=$ax_check_save_flags
16687 fi
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_qual" >&5
16689 $as_echo "$ax_cv_check_cflags___Wcast_qual" >&6; }
16690 if test x"$ax_cv_check_cflags___Wcast_qual" = xyes; then :
16691   CFLAGS="$CFLAGS -Wcast-qual"
16692 else
16693   :
16694 fi
16695
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
16697 $as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
16698 if ${ax_cv_check_cflags___Wchar_subscripts+:} false; then :
16699   $as_echo_n "(cached) " >&6
16700 else
16701   
16702   ax_check_save_flags=$CFLAGS
16703   CFLAGS="$CFLAGS  -Wchar-subscripts"
16704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h.  */
16706
16707 int
16708 main ()
16709 {
16710
16711   ;
16712   return 0;
16713 }
16714 _ACEOF
16715 if ac_fn_c_try_compile "$LINENO"; then :
16716   ax_cv_check_cflags___Wchar_subscripts=yes
16717 else
16718   ax_cv_check_cflags___Wchar_subscripts=no
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721   CFLAGS=$ax_check_save_flags
16722 fi
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wchar_subscripts" >&5
16724 $as_echo "$ax_cv_check_cflags___Wchar_subscripts" >&6; }
16725 if test x"$ax_cv_check_cflags___Wchar_subscripts" = xyes; then :
16726   CFLAGS="$CFLAGS -Wchar-subscripts"
16727 else
16728   :
16729 fi
16730
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
16732 $as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
16733 if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
16734   $as_echo_n "(cached) " >&6
16735 else
16736   
16737   ax_check_save_flags=$CFLAGS
16738   CFLAGS="$CFLAGS  -Wmissing-prototypes"
16739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h.  */
16741
16742 int
16743 main ()
16744 {
16745
16746   ;
16747   return 0;
16748 }
16749 _ACEOF
16750 if ac_fn_c_try_compile "$LINENO"; then :
16751   ax_cv_check_cflags___Wmissing_prototypes=yes
16752 else
16753   ax_cv_check_cflags___Wmissing_prototypes=no
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756   CFLAGS=$ax_check_save_flags
16757 fi
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
16759 $as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
16760 if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
16761   CFLAGS="$CFLAGS -Wmissing-prototypes"
16762 else
16763   :
16764 fi
16765
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
16767 $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
16768 if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
16769   $as_echo_n "(cached) " >&6
16770 else
16771   
16772   ax_check_save_flags=$CFLAGS
16773   CFLAGS="$CFLAGS  -Wmissing-declarations"
16774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h.  */
16776
16777 int
16778 main ()
16779 {
16780
16781   ;
16782   return 0;
16783 }
16784 _ACEOF
16785 if ac_fn_c_try_compile "$LINENO"; then :
16786   ax_cv_check_cflags___Wmissing_declarations=yes
16787 else
16788   ax_cv_check_cflags___Wmissing_declarations=no
16789 fi
16790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16791   CFLAGS=$ax_check_save_flags
16792 fi
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
16794 $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
16795 if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
16796   CFLAGS="$CFLAGS -Wmissing-declarations"
16797 else
16798   :
16799 fi
16800
16801
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=attributes" >&5
16803 $as_echo_n "checking whether C compiler accepts -Wno-error=attributes... " >&6; }
16804 if ${ax_cv_check_cflags___Wno_error_attributes+:} false; then :
16805   $as_echo_n "(cached) " >&6
16806 else
16807   
16808   ax_check_save_flags=$CFLAGS
16809   CFLAGS="$CFLAGS  -Wno-error=attributes"
16810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h.  */
16812
16813 int
16814 main ()
16815 {
16816
16817   ;
16818   return 0;
16819 }
16820 _ACEOF
16821 if ac_fn_c_try_compile "$LINENO"; then :
16822   ax_cv_check_cflags___Wno_error_attributes=yes
16823 else
16824   ax_cv_check_cflags___Wno_error_attributes=no
16825 fi
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16827   CFLAGS=$ax_check_save_flags
16828 fi
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_attributes" >&5
16830 $as_echo "$ax_cv_check_cflags___Wno_error_attributes" >&6; }
16831 if test x"$ax_cv_check_cflags___Wno_error_attributes" = xyes; then :
16832   CFLAGS="$CFLAGS -Wno-error=attributes"
16833 else
16834   :
16835 fi
16836
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=cast-align" >&5
16838 $as_echo_n "checking whether C compiler accepts -Wno-error=cast-align... " >&6; }
16839 if ${ax_cv_check_cflags___Wno_error_cast_align+:} false; then :
16840   $as_echo_n "(cached) " >&6
16841 else
16842   
16843   ax_check_save_flags=$CFLAGS
16844   CFLAGS="$CFLAGS  -Wno-error=cast-align"
16845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h.  */
16847
16848 int
16849 main ()
16850 {
16851
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 if ac_fn_c_try_compile "$LINENO"; then :
16857   ax_cv_check_cflags___Wno_error_cast_align=yes
16858 else
16859   ax_cv_check_cflags___Wno_error_cast_align=no
16860 fi
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862   CFLAGS=$ax_check_save_flags
16863 fi
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_cast_align" >&5
16865 $as_echo "$ax_cv_check_cflags___Wno_error_cast_align" >&6; }
16866 if test x"$ax_cv_check_cflags___Wno_error_cast_align" = xyes; then :
16867   CFLAGS="$CFLAGS -Wno-error=cast-align"
16868 else
16869   :
16870 fi
16871
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=visibility" >&5
16873 $as_echo_n "checking whether C compiler accepts -Wno-error=visibility... " >&6; }
16874 if ${ax_cv_check_cflags___Wno_error_visibility+:} false; then :
16875   $as_echo_n "(cached) " >&6
16876 else
16877   
16878   ax_check_save_flags=$CFLAGS
16879   CFLAGS="$CFLAGS  -Wno-error=visibility"
16880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h.  */
16882
16883 int
16884 main ()
16885 {
16886
16887   ;
16888   return 0;
16889 }
16890 _ACEOF
16891 if ac_fn_c_try_compile "$LINENO"; then :
16892   ax_cv_check_cflags___Wno_error_visibility=yes
16893 else
16894   ax_cv_check_cflags___Wno_error_visibility=no
16895 fi
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897   CFLAGS=$ax_check_save_flags
16898 fi
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_visibility" >&5
16900 $as_echo "$ax_cv_check_cflags___Wno_error_visibility" >&6; }
16901 if test x"$ax_cv_check_cflags___Wno_error_visibility" = xyes; then :
16902   CFLAGS="$CFLAGS -Wno-error=visibility"
16903 else
16904   :
16905 fi
16906
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=parentheses-equality" >&5
16908 $as_echo_n "checking whether C compiler accepts -Wno-error=parentheses-equality... " >&6; }
16909 if ${ax_cv_check_cflags___Wno_error_parentheses_equality+:} false; then :
16910   $as_echo_n "(cached) " >&6
16911 else
16912   
16913   ax_check_save_flags=$CFLAGS
16914   CFLAGS="$CFLAGS  -Wno-error=parentheses-equality"
16915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h.  */
16917
16918 int
16919 main ()
16920 {
16921
16922   ;
16923   return 0;
16924 }
16925 _ACEOF
16926 if ac_fn_c_try_compile "$LINENO"; then :
16927   ax_cv_check_cflags___Wno_error_parentheses_equality=yes
16928 else
16929   ax_cv_check_cflags___Wno_error_parentheses_equality=no
16930 fi
16931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16932   CFLAGS=$ax_check_save_flags
16933 fi
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_parentheses_equality" >&5
16935 $as_echo "$ax_cv_check_cflags___Wno_error_parentheses_equality" >&6; }
16936 if test x"$ax_cv_check_cflags___Wno_error_parentheses_equality" = xyes; then :
16937   CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
16938 else
16939   :
16940 fi
16941
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5
16943 $as_echo_n "checking whether C compiler accepts -std=gnu99... " >&6; }
16944 if ${ax_cv_check_cflags___std_gnu99+:} false; then :
16945   $as_echo_n "(cached) " >&6
16946 else
16947   
16948   ax_check_save_flags=$CFLAGS
16949   CFLAGS="$CFLAGS  -std=gnu99"
16950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h.  */
16952
16953 int
16954 main ()
16955 {
16956
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 if ac_fn_c_try_compile "$LINENO"; then :
16962   ax_cv_check_cflags___std_gnu99=yes
16963 else
16964   ax_cv_check_cflags___std_gnu99=no
16965 fi
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967   CFLAGS=$ax_check_save_flags
16968 fi
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5
16970 $as_echo "$ax_cv_check_cflags___std_gnu99" >&6; }
16971 if test x"$ax_cv_check_cflags___std_gnu99" = xyes; then :
16972   CFLAGS="$CFLAGS -std=gnu99"
16973        TESTSUITE_CFLAGS="${TESTSUITE_CFLAGS} -std=gnu99"
16974 else
16975   :
16976 fi
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=unused-variable" >&5
16979 $as_echo_n "checking whether C compiler accepts -Wno-error=unused-variable... " >&6; }
16980 if ${ax_cv_check_cflags___Wno_error_unused_variable+:} false; then :
16981   $as_echo_n "(cached) " >&6
16982 else
16983   
16984   ax_check_save_flags=$CFLAGS
16985   CFLAGS="$CFLAGS  -Wno-error=unused-variable"
16986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h.  */
16988
16989 int
16990 main ()
16991 {
16992
16993   ;
16994   return 0;
16995 }
16996 _ACEOF
16997 if ac_fn_c_try_compile "$LINENO"; then :
16998   ax_cv_check_cflags___Wno_error_unused_variable=yes
16999 else
17000   ax_cv_check_cflags___Wno_error_unused_variable=no
17001 fi
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003   CFLAGS=$ax_check_save_flags
17004 fi
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_unused_variable" >&5
17006 $as_echo "$ax_cv_check_cflags___Wno_error_unused_variable" >&6; }
17007 if test x"$ax_cv_check_cflags___Wno_error_unused_variable" = xyes; then :
17008   TESTSUITE_CFLAGS="${TESTSUITE_CFLAGS} -Wno-error=unused-variable"
17009 else
17010   :
17011 fi
17012
17013
17014
17015
17016                 
17017
17018         # allow to override gcov location
17019         
17020 @%:@ Check whether --with-gcov was given.
17021 if test "${with_gcov+set}" = set; then :
17022   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
17023 else
17024   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
17025 fi
17026
17027
17028         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
17029 $as_echo_n "checking whether to build with code coverage support... " >&6; }
17030         @%:@ Check whether --enable-code-coverage was given.
17031 if test "${enable_code_coverage+set}" = set; then :
17032   enableval=$enable_code_coverage; 
17033 else
17034   enable_code_coverage=no
17035 fi
17036
17037
17038          if test x$enable_code_coverage = xyes; then
17039   CODE_COVERAGE_ENABLED_TRUE=
17040   CODE_COVERAGE_ENABLED_FALSE='#'
17041 else
17042   CODE_COVERAGE_ENABLED_TRUE='#'
17043   CODE_COVERAGE_ENABLED_FALSE=
17044 fi
17045
17046         CODE_COVERAGE_ENABLED=$enable_code_coverage
17047
17048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
17049 $as_echo "$enable_code_coverage" >&6; }
17050
17051         if  test "$enable_code_coverage" = "yes" ; then :
17052   
17053                 # check for gcov
17054                 if test -n "$ac_tool_prefix"; then
17055   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17056 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17058 $as_echo_n "checking for $ac_word... " >&6; }
17059 if ${ac_cv_prog_GCOV+:} false; then :
17060   $as_echo_n "(cached) " >&6
17061 else
17062   if test -n "$GCOV"; then
17063   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
17064 else
17065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066 for as_dir in $PATH
17067 do
17068   IFS=$as_save_IFS
17069   test -z "$as_dir" && as_dir=.
17070     for ac_exec_ext in '' $ac_executable_extensions; do
17071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17072     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17074     break 2
17075   fi
17076 done
17077   done
17078 IFS=$as_save_IFS
17079
17080 fi
17081 fi
17082 GCOV=$ac_cv_prog_GCOV
17083 if test -n "$GCOV"; then
17084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
17085 $as_echo "$GCOV" >&6; }
17086 else
17087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17088 $as_echo "no" >&6; }
17089 fi
17090
17091
17092 fi
17093 if test -z "$ac_cv_prog_GCOV"; then
17094   ac_ct_GCOV=$GCOV
17095   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17096 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17098 $as_echo_n "checking for $ac_word... " >&6; }
17099 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
17100   $as_echo_n "(cached) " >&6
17101 else
17102   if test -n "$ac_ct_GCOV"; then
17103   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
17104 else
17105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17107 do
17108   IFS=$as_save_IFS
17109   test -z "$as_dir" && as_dir=.
17110     for ac_exec_ext in '' $ac_executable_extensions; do
17111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17112     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17114     break 2
17115   fi
17116 done
17117   done
17118 IFS=$as_save_IFS
17119
17120 fi
17121 fi
17122 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
17123 if test -n "$ac_ct_GCOV"; then
17124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
17125 $as_echo "$ac_ct_GCOV" >&6; }
17126 else
17127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17129 fi
17130
17131   if test "x$ac_ct_GCOV" = x; then
17132     GCOV=":"
17133   else
17134     case $cross_compiling:$ac_tool_warned in
17135 yes:)
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17138 ac_tool_warned=yes ;;
17139 esac
17140     GCOV=$ac_ct_GCOV
17141   fi
17142 else
17143   GCOV="$ac_cv_prog_GCOV"
17144 fi
17145
17146                 if test "X$GCOV" = "X:"; then :
17147   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
17148 fi
17149                 
17150
17151                                 if  test "$GCC" = "no" ; then :
17152   
17153                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
17154                 
17155 fi
17156
17157                 # Extract the first word of "lcov", so it can be a program name with args.
17158 set dummy lcov; ac_word=$2
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17160 $as_echo_n "checking for $ac_word... " >&6; }
17161 if ${ac_cv_prog_LCOV+:} false; then :
17162   $as_echo_n "(cached) " >&6
17163 else
17164   if test -n "$LCOV"; then
17165   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
17166 else
17167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17168 for as_dir in $PATH
17169 do
17170   IFS=$as_save_IFS
17171   test -z "$as_dir" && as_dir=.
17172     for ac_exec_ext in '' $ac_executable_extensions; do
17173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17174     ac_cv_prog_LCOV="lcov"
17175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17176     break 2
17177   fi
17178 done
17179   done
17180 IFS=$as_save_IFS
17181
17182 fi
17183 fi
17184 LCOV=$ac_cv_prog_LCOV
17185 if test -n "$LCOV"; then
17186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
17187 $as_echo "$LCOV" >&6; }
17188 else
17189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17191 fi
17192
17193
17194                 # Extract the first word of "genhtml", so it can be a program name with args.
17195 set dummy genhtml; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_prog_GENHTML+:} false; then :
17199   $as_echo_n "(cached) " >&6
17200 else
17201   if test -n "$GENHTML"; then
17202   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
17203 else
17204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in $PATH
17206 do
17207   IFS=$as_save_IFS
17208   test -z "$as_dir" && as_dir=.
17209     for ac_exec_ext in '' $ac_executable_extensions; do
17210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17211     ac_cv_prog_GENHTML="genhtml"
17212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17213     break 2
17214   fi
17215 done
17216   done
17217 IFS=$as_save_IFS
17218
17219 fi
17220 fi
17221 GENHTML=$ac_cv_prog_GENHTML
17222 if test -n "$GENHTML"; then
17223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
17224 $as_echo "$GENHTML" >&6; }
17225 else
17226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17228 fi
17229
17230
17231
17232                 if  test -z "$LCOV" ; then :
17233   
17234                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
17235                 
17236 fi
17237
17238                 if  test -z "$GENHTML" ; then :
17239   
17240                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
17241                 
17242 fi
17243
17244                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
17245                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -coverage" >&5
17246 $as_echo_n "checking whether C compiler accepts -coverage... " >&6; }
17247 if ${ax_cv_check_cflags___coverage+:} false; then :
17248   $as_echo_n "(cached) " >&6
17249 else
17250   
17251   ax_check_save_flags=$CFLAGS
17252   CFLAGS="$CFLAGS  -coverage"
17253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h.  */
17255
17256 int
17257 main ()
17258 {
17259
17260   ;
17261   return 0;
17262 }
17263 _ACEOF
17264 if ac_fn_c_try_compile "$LINENO"; then :
17265   ax_cv_check_cflags___coverage=yes
17266 else
17267   ax_cv_check_cflags___coverage=no
17268 fi
17269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270   CFLAGS=$ax_check_save_flags
17271 fi
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___coverage" >&5
17273 $as_echo "$ax_cv_check_cflags___coverage" >&6; }
17274 if test x"$ax_cv_check_cflags___coverage" = xyes; then :
17275   
17276                         CODE_COVERAGE_CFLAGS="-O0 -g -coverage"
17277                         CODE_COVERAGE_CXXFLAGS="-O0 -g -coverage"
17278                         CODE_COVERAGE_LDFLAGS="-coverage"
17279                         CODE_COVERAGE_LIBS=""
17280                 
17281 else
17282   
17283                         CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17284                         CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17285                         CODE_COVERAGE_LIBS="-lgcov"
17286                                                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
17287                 
17288 fi
17289
17290
17291                 
17292                 
17293                 
17294                 
17295                 
17296
17297                 CODE_COVERAGE_RULES_CHECK='
17298         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
17299         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
17300 '
17301                 CODE_COVERAGE_RULES_CAPTURE='
17302         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
17303         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
17304         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
17305         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
17306         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
17307 '
17308                 CODE_COVERAGE_RULES_CLEAN='
17309 clean: code-coverage-clean
17310 distclean: code-coverage-clean
17311 code-coverage-clean:
17312         -$(LCOV) --directory $(top_builddir) -z
17313         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
17314         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
17315 '
17316         
17317 else
17318   
17319                 CODE_COVERAGE_RULES_CHECK='
17320         @echo "Need to reconfigure with --enable-code-coverage"
17321 '
17322                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
17323                 CODE_COVERAGE_RULES_CLEAN=''
17324         
17325 fi
17326
17327 CODE_COVERAGE_RULES='
17328 # Code coverage
17329 #
17330 # Optional:
17331 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
17332 #    Multiple directories may be specified, separated by whitespace.
17333 #    (Default: $(top_builddir))
17334 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
17335 #    by lcov for code coverage. (Default:
17336 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
17337 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
17338 #    reports to be created. (Default:
17339 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
17340 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
17341 #    set to 0 to disable it and leave empty to stay with the default.
17342 #    (Default: empty)
17343 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
17344 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
17345 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
17346 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
17347 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
17348 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
17349 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
17350 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
17351 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
17352 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
17353 #    lcov instance. (Default: empty)
17354 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
17355 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
17356 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
17357 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
17358 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
17359 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
17360 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
17361 #
17362 # The generated report will be titled using the $(PACKAGE_NAME) and
17363 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
17364 # use the git-version-gen script, available online.
17365
17366 # Optional variables
17367 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
17368 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
17369 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
17370 CODE_COVERAGE_BRANCH_COVERAGE ?=
17371 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
17372 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
17373 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
17374 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
17375 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
17376 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
17377 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
17378 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
17379 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
17380 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
17381 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
17382 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
17383 CODE_COVERAGE_IGNORE_PATTERN ?=
17384
17385 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
17386 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
17387 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
17388  $(CODE_COVERAGE_OUTPUT_FILE);
17389 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
17390 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
17391 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
17392  $(CODE_COVERAGE_IGNORE_PATTERN);
17393 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
17394 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
17395 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
17396 code_coverage_quiet = $(code_coverage_quiet_$(V))
17397 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
17398 code_coverage_quiet_0 = --quiet
17399
17400 # sanitizes the test-name: replaces with underscores: dashes and dots
17401 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
17402
17403 # Use recursive makes in order to ignore errors during check
17404 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
17405
17406 # Capture code coverage data
17407 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
17408
17409 # Hook rule executed before code-coverage-capture, overridable by the user
17410 code-coverage-capture-hook:
17411
17412 '"$CODE_COVERAGE_RULES_CLEAN"'
17413
17414 GITIGNOREFILES ?=
17415 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
17416
17417 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
17418 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
17419
17420 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
17421 '
17422
17423         
17424         
17425
17426 if test x$enable_code_coverage != xno; then :
17427   
17428         CFLAGS="$CFLAGS $CODE_COVERAGE_CFLAGS"
17429         # The CODE_COVERAGE_CPPFLAGS contains -DNDEBUG flag
17430         # which removes assert(...) macros from code coverage and improves the
17431         # branches score. But when it is defined it results in few
17432         # unsed-but-set-variable warnings that are treated as errors in the travis-ci
17433         # build because these variables are only used inside assert macros.
17434         # error: variable â€˜ret’ set but not used [-Werror=unused-but-set-variable]
17435         #CPPFLAGS="$CPPFLAGS $CODE_COVERAGE_CPPFLAGS"
17436         CXXFLAGS="$CXXFLAGS $CODE_COVERAGE_CXXFLAGS"
17437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gcov_open" >&5
17438 $as_echo_n "checking for library containing gcov_open... " >&6; }
17439 if ${ac_cv_search_gcov_open+:} false; then :
17440   $as_echo_n "(cached) " >&6
17441 else
17442   ac_func_search_save_LIBS=$LIBS
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h.  */
17445
17446 /* Override any GCC internal prototype to avoid an error.
17447    Use char because int might match the return type of a GCC
17448    builtin and then its argument prototype would still apply.  */
17449 #ifdef __cplusplus
17450 extern "C"
17451 #endif
17452 char gcov_open ();
17453 int
17454 main ()
17455 {
17456 return gcov_open ();
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 for ac_lib in '' gcov; do
17462   if test -z "$ac_lib"; then
17463     ac_res="none required"
17464   else
17465     ac_res=-l$ac_lib
17466     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17467   fi
17468   if ac_fn_c_try_link "$LINENO"; then :
17469   ac_cv_search_gcov_open=$ac_res
17470 fi
17471 rm -f core conftest.err conftest.$ac_objext \
17472     conftest$ac_exeext
17473   if ${ac_cv_search_gcov_open+:} false; then :
17474   break
17475 fi
17476 done
17477 if ${ac_cv_search_gcov_open+:} false; then :
17478   
17479 else
17480   ac_cv_search_gcov_open=no
17481 fi
17482 rm conftest.$ac_ext
17483 LIBS=$ac_func_search_save_LIBS
17484 fi
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gcov_open" >&5
17486 $as_echo "$ac_cv_search_gcov_open" >&6; }
17487 ac_res=$ac_cv_search_gcov_open
17488 if test "$ac_res" != no; then :
17489   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17490   LDFLAGS="$LDFLAGS $CODE_COVERAGE_LDFLAGS"
17491 fi
17492
17493
17494 fi
17495
17496 SKELETONS_CFLAGS="${ADD_CFLAGS} ${SKELETONS_CFLAGS}"
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c89" >&5
17498 $as_echo_n "checking whether C compiler accepts -std=c89... " >&6; }
17499 if ${ax_cv_check_cflags___std_c89+:} false; then :
17500   $as_echo_n "(cached) " >&6
17501 else
17502   
17503   ax_check_save_flags=$CFLAGS
17504   CFLAGS="$CFLAGS  -std=c89"
17505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h.  */
17507
17508 int
17509 main ()
17510 {
17511
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 if ac_fn_c_try_compile "$LINENO"; then :
17517   ax_cv_check_cflags___std_c89=yes
17518 else
17519   ax_cv_check_cflags___std_c89=no
17520 fi
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522   CFLAGS=$ax_check_save_flags
17523 fi
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c89" >&5
17525 $as_echo "$ax_cv_check_cflags___std_c89" >&6; }
17526 if test x"$ax_cv_check_cflags___std_c89" = xyes; then :
17527   SKELETONS_CFLAGS="$SKELETONS_CFLAGS -std=c89"
17528 else
17529   :
17530 fi
17531
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpedantic" >&5
17533 $as_echo_n "checking whether C compiler accepts -Wpedantic... " >&6; }
17534 if ${ax_cv_check_cflags__Werror__Wpedantic+:} false; then :
17535   $as_echo_n "(cached) " >&6
17536 else
17537   
17538   ax_check_save_flags=$CFLAGS
17539   CFLAGS="$CFLAGS -Werror -Wpedantic"
17540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h.  */
17542
17543 int
17544 main ()
17545 {
17546
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 if ac_fn_c_try_compile "$LINENO"; then :
17552   ax_cv_check_cflags__Werror__Wpedantic=yes
17553 else
17554   ax_cv_check_cflags__Werror__Wpedantic=no
17555 fi
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557   CFLAGS=$ax_check_save_flags
17558 fi
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wpedantic" >&5
17560 $as_echo "$ax_cv_check_cflags__Werror__Wpedantic" >&6; }
17561 if test x"$ax_cv_check_cflags__Werror__Wpedantic" = xyes; then :
17562   SKELETONS_CFLAGS="$SKELETONS_CFLAGS -Wpedantic"
17563 else
17564   
17565                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -pedantic" >&5
17566 $as_echo_n "checking whether C compiler accepts -pedantic... " >&6; }
17567 if ${ax_cv_check_cflags__Werror__pedantic+:} false; then :
17568   $as_echo_n "(cached) " >&6
17569 else
17570   
17571   ax_check_save_flags=$CFLAGS
17572   CFLAGS="$CFLAGS -Werror -pedantic"
17573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h.  */
17575
17576 int
17577 main ()
17578 {
17579
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 if ac_fn_c_try_compile "$LINENO"; then :
17585   ax_cv_check_cflags__Werror__pedantic=yes
17586 else
17587   ax_cv_check_cflags__Werror__pedantic=no
17588 fi
17589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17590   CFLAGS=$ax_check_save_flags
17591 fi
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__pedantic" >&5
17593 $as_echo "$ax_cv_check_cflags__Werror__pedantic" >&6; }
17594 if test x"$ax_cv_check_cflags__Werror__pedantic" = xyes; then :
17595   SKELETONS_CFLAGS="$SKELETONS_CFLAGS -pedantic"
17596 else
17597   :
17598 fi
17599
17600     
17601 fi
17602  #clang 3.0 prints warning when the flag is not supported
17603
17604 @%:@ Check whether --enable-Werror was given.
17605 if test "${enable_Werror+set}" = set; then :
17606   enableval=$enable_Werror; enable_werror=$enableval
17607 else
17608   enable_werror=no
17609 fi
17610
17611   if test x$enable_werror != xno; then :
17612   
17613       ADD_CFLAGS="${ADD_CFLAGS} -Werror -W -Wall -Wpointer-arith"
17614       SKELETONS_CFLAGS="${SKELETONS_CFLAGS} -Werror -W -Wall -Wpointer-arith"
17615       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wgnu" >&5
17616 $as_echo_n "checking whether C compiler accepts -Wgnu... " >&6; }
17617 if ${ax_cv_check_cflags___Wgnu+:} false; then :
17618   $as_echo_n "(cached) " >&6
17619 else
17620   
17621   ax_check_save_flags=$CFLAGS
17622   CFLAGS="$CFLAGS  -Wgnu"
17623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h.  */
17625
17626 int
17627 main ()
17628 {
17629
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 if ac_fn_c_try_compile "$LINENO"; then :
17635   ax_cv_check_cflags___Wgnu=yes
17636 else
17637   ax_cv_check_cflags___Wgnu=no
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640   CFLAGS=$ax_check_save_flags
17641 fi
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wgnu" >&5
17643 $as_echo "$ax_cv_check_cflags___Wgnu" >&6; }
17644 if test x"$ax_cv_check_cflags___Wgnu" = xyes; then :
17645   SKELETONS_CFLAGS="${SKELETONS_CFLAGS} -Wgnu"
17646 else
17647   :
17648 fi
17649
17650   
17651 fi
17652
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-long-long" >&5
17654 $as_echo_n "checking whether C compiler accepts -Wno-long-long... " >&6; }
17655 if ${ax_cv_check_cflags___Wno_long_long+:} false; then :
17656   $as_echo_n "(cached) " >&6
17657 else
17658   
17659   ax_check_save_flags=$CFLAGS
17660   CFLAGS="$CFLAGS  -Wno-long-long"
17661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h.  */
17663
17664 int
17665 main ()
17666 {
17667
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 if ac_fn_c_try_compile "$LINENO"; then :
17673   ax_cv_check_cflags___Wno_long_long=yes
17674 else
17675   ax_cv_check_cflags___Wno_long_long=no
17676 fi
17677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17678   CFLAGS=$ax_check_save_flags
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_long_long" >&5
17681 $as_echo "$ax_cv_check_cflags___Wno_long_long" >&6; }
17682 if test x"$ax_cv_check_cflags___Wno_long_long" = xyes; then :
17683   SKELETONS_CFLAGS="${SKELETONS_CFLAGS} -Wno-long-long"
17684 else
17685   :
17686 fi
17687
17688
17689 @%:@ Check whether --enable-test-Werror was given.
17690 if test "${enable_test_Werror+set}" = set; then :
17691   enableval=$enable_test_Werror; enable_test_werror=$enableval
17692 else
17693   enable_test_werror=no
17694 fi
17695
17696   if test x$enable_test_werror != xno; then :
17697   
17698       TESTSUITE_CFLAGS="${TESTSUITE_CFLAGS} -Werror -W -Wpointer-arith"
17699   
17700 fi
17701
17702 @%:@ Check whether --enable-test-32bit was given.
17703 if test "${enable_test_32bit+set}" = set; then :
17704   enableval=$enable_test_32bit; enable_test_32bit=$enableval
17705 else
17706   enable_test_32bit=no
17707 fi
17708
17709 if test "x$enable_test_32bit" != xno; then :
17710   
17711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -m32" >&5
17712 $as_echo_n "checking whether C compiler accepts -m32... " >&6; }
17713 if ${ax_cv_check_cflags___m32+:} false; then :
17714   $as_echo_n "(cached) " >&6
17715 else
17716   
17717   ax_check_save_flags=$CFLAGS
17718   CFLAGS="$CFLAGS  -m32"
17719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h.  */
17721
17722 int
17723 main ()
17724 {
17725
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 if ac_fn_c_try_compile "$LINENO"; then :
17731   ax_cv_check_cflags___m32=yes
17732 else
17733   ax_cv_check_cflags___m32=no
17734 fi
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736   CFLAGS=$ax_check_save_flags
17737 fi
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___m32" >&5
17739 $as_echo "$ax_cv_check_cflags___m32" >&6; }
17740 if test x"$ax_cv_check_cflags___m32" = xyes; then :
17741   CFLAGS_M32="-m32 -DEXPLICIT_32BIT"
17742 else
17743   
17744         CFLAGS_M32=""
17745         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17747 as_fn_error $? "--enable-test-32bit=$enable_test_32bit is requested but not supported by the C compiler
17748 See \`config.log' for more details" "$LINENO" 5; }
17749       
17750 fi
17751
17752
17753 fi
17754
17755  if test "x${CFLAGS_M32}" != "x"; then
17756   EXPLICIT_M32_TRUE=
17757   EXPLICIT_M32_FALSE='#'
17758 else
17759   EXPLICIT_M32_TRUE='#'
17760   EXPLICIT_M32_FALSE=
17761 fi
17762
17763
17764 SANITIZER_CFLAGS=""
17765
17766 @%:@ Check whether --enable-test-ubsan was given.
17767 if test "${enable_test_ubsan+set}" = set; then :
17768   enableval=$enable_test_ubsan; disable_test_ubsan=$enableval
17769 else
17770   disable_test_ubsan=maybe
17771 fi
17772
17773 if test "x$disable_test_ubsan" != xno; then :
17774   
17775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=undefined" >&5
17776 $as_echo_n "checking whether C compiler and linker accept -fsanitize=undefined... " >&6; }
17777 if ${ax_cv_check_cclflags___fsanitize_undefined+:} false; then :
17778   $as_echo_n "(cached) " >&6
17779 else
17780   
17781   ax_check_save_flags=$CFLAGS
17782   CFLAGS="$CFLAGS  -fsanitize=undefined"
17783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h.  */
17785 void test(int *);void test(int *n) { *n = 0; }
17786 int
17787 main ()
17788 {
17789
17790   ;
17791   return 0;
17792 }
17793     
17794 _ACEOF
17795 if ac_fn_c_try_link "$LINENO"; then :
17796   ax_cv_check_cclflags___fsanitize_undefined=yes
17797 else
17798   ax_cv_check_cclflags___fsanitize_undefined=no
17799 fi
17800 rm -f core conftest.err conftest.$ac_objext \
17801     conftest$ac_exeext conftest.$ac_ext
17802   CFLAGS=$ax_check_save_flags
17803 fi
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_undefined" >&5
17805 $as_echo "$ax_cv_check_cclflags___fsanitize_undefined" >&6; }
17806 if test x"$ax_cv_check_cclflags___fsanitize_undefined" = xyes; then :
17807   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fsanitize=undefined"
17808 else
17809   
17810         if test "x$disable_test_ubsan" != xmaybe; then :
17811   
17812             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17814 as_fn_error $? "--disable-test-ubsan=$disable_test_ubsan is not supported on a target system.
17815 https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#how-to-build
17816 See \`config.log' for more details" "$LINENO" 5; }
17817 fi
17818       
17819 fi
17820
17821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-sanitize-recover=undefined" >&5
17822 $as_echo_n "checking whether C compiler accepts -fno-sanitize-recover=undefined... " >&6; }
17823 if ${ax_cv_check_cflags___fno_sanitize_recover_undefined+:} false; then :
17824   $as_echo_n "(cached) " >&6
17825 else
17826   
17827   ax_check_save_flags=$CFLAGS
17828   CFLAGS="$CFLAGS  -fno-sanitize-recover=undefined"
17829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h.  */
17831
17832 int
17833 main ()
17834 {
17835
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 if ac_fn_c_try_compile "$LINENO"; then :
17841   ax_cv_check_cflags___fno_sanitize_recover_undefined=yes
17842 else
17843   ax_cv_check_cflags___fno_sanitize_recover_undefined=no
17844 fi
17845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17846   CFLAGS=$ax_check_save_flags
17847 fi
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_sanitize_recover_undefined" >&5
17849 $as_echo "$ax_cv_check_cflags___fno_sanitize_recover_undefined" >&6; }
17850 if test x"$ax_cv_check_cflags___fno_sanitize_recover_undefined" = xyes; then :
17851   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-sanitize-recover=undefined"
17852 else
17853   :
17854 fi
17855
17856
17857         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=unsigned-integer-overflow" >&5
17858 $as_echo_n "checking whether C compiler and linker accept -fsanitize=unsigned-integer-overflow... " >&6; }
17859 if ${ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow+:} false; then :
17860   $as_echo_n "(cached) " >&6
17861 else
17862   
17863   ax_check_save_flags=$CFLAGS
17864   CFLAGS="$CFLAGS  -fsanitize=unsigned-integer-overflow"
17865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h.  */
17867 int test(unsigned); int test(unsigned n) { return n + 1; }
17868 int
17869 main ()
17870 {
17871
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 if ac_fn_c_try_link "$LINENO"; then :
17877   ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow=yes
17878 else
17879   ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow=no
17880 fi
17881 rm -f core conftest.err conftest.$ac_objext \
17882     conftest$ac_exeext conftest.$ac_ext
17883   CFLAGS=$ax_check_save_flags
17884 fi
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow" >&5
17886 $as_echo "$ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow" >&6; }
17887 if test x"$ax_cv_check_cclflags___fsanitize_unsigned_integer_overflow" = xyes; then :
17888   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fsanitize=unsigned-integer-overflow"
17889 else
17890   :
17891 fi
17892
17893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-sanitize-recover=unsigned-integer-overflow" >&5
17894 $as_echo_n "checking whether C compiler accepts -fno-sanitize-recover=unsigned-integer-overflow... " >&6; }
17895 if ${ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow+:} false; then :
17896   $as_echo_n "(cached) " >&6
17897 else
17898   
17899   ax_check_save_flags=$CFLAGS
17900   CFLAGS="$CFLAGS  -fno-sanitize-recover=unsigned-integer-overflow"
17901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h.  */
17903
17904 int
17905 main ()
17906 {
17907
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 if ac_fn_c_try_compile "$LINENO"; then :
17913   ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow=yes
17914 else
17915   ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow=no
17916 fi
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918   CFLAGS=$ax_check_save_flags
17919 fi
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow" >&5
17921 $as_echo "$ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow" >&6; }
17922 if test x"$ax_cv_check_cflags___fno_sanitize_recover_unsigned_integer_overflow" = xyes; then :
17923   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-sanitize-recover=unsigned-integer-overflow"
17924 else
17925   :
17926 fi
17927
17928
17929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=nullability" >&5
17930 $as_echo_n "checking whether C compiler and linker accept -fsanitize=nullability... " >&6; }
17931 if ${ax_cv_check_cclflags___fsanitize_nullability+:} false; then :
17932   $as_echo_n "(cached) " >&6
17933 else
17934   
17935   ax_check_save_flags=$CFLAGS
17936   CFLAGS="$CFLAGS  -fsanitize=nullability"
17937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h.  */
17939
17940 int
17941 main ()
17942 {
17943
17944   ;
17945   return 0;
17946 }
17947 _ACEOF
17948 if ac_fn_c_try_link "$LINENO"; then :
17949   ax_cv_check_cclflags___fsanitize_nullability=yes
17950 else
17951   ax_cv_check_cclflags___fsanitize_nullability=no
17952 fi
17953 rm -f core conftest.err conftest.$ac_objext \
17954     conftest$ac_exeext conftest.$ac_ext
17955   CFLAGS=$ax_check_save_flags
17956 fi
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_nullability" >&5
17958 $as_echo "$ax_cv_check_cclflags___fsanitize_nullability" >&6; }
17959 if test x"$ax_cv_check_cclflags___fsanitize_nullability" = xyes; then :
17960   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fsanitize=nullability"
17961 else
17962   :
17963 fi
17964
17965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-sanitize-recover=nullability" >&5
17966 $as_echo_n "checking whether C compiler accepts -fno-sanitize-recover=nullability... " >&6; }
17967 if ${ax_cv_check_cflags___fno_sanitize_recover_nullability+:} false; then :
17968   $as_echo_n "(cached) " >&6
17969 else
17970   
17971   ax_check_save_flags=$CFLAGS
17972   CFLAGS="$CFLAGS  -fno-sanitize-recover=nullability"
17973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h.  */
17975
17976 int
17977 main ()
17978 {
17979
17980   ;
17981   return 0;
17982 }
17983 _ACEOF
17984 if ac_fn_c_try_compile "$LINENO"; then :
17985   ax_cv_check_cflags___fno_sanitize_recover_nullability=yes
17986 else
17987   ax_cv_check_cflags___fno_sanitize_recover_nullability=no
17988 fi
17989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990   CFLAGS=$ax_check_save_flags
17991 fi
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_sanitize_recover_nullability" >&5
17993 $as_echo "$ax_cv_check_cflags___fno_sanitize_recover_nullability" >&6; }
17994 if test x"$ax_cv_check_cflags___fno_sanitize_recover_nullability" = xyes; then :
17995   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-sanitize-recover=nullability"
17996 else
17997   :
17998 fi
17999
18000
18001                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
18002 $as_echo_n "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
18003 if ${ax_cv_check_cflags___fno_omit_frame_pointer+:} false; then :
18004   $as_echo_n "(cached) " >&6
18005 else
18006   
18007   ax_check_save_flags=$CFLAGS
18008   CFLAGS="$CFLAGS  -fno-omit-frame-pointer"
18009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h.  */
18011
18012 int
18013 main ()
18014 {
18015
18016   ;
18017   return 0;
18018 }
18019 _ACEOF
18020 if ac_fn_c_try_compile "$LINENO"; then :
18021   ax_cv_check_cflags___fno_omit_frame_pointer=yes
18022 else
18023   ax_cv_check_cflags___fno_omit_frame_pointer=no
18024 fi
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026   CFLAGS=$ax_check_save_flags
18027 fi
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
18029 $as_echo "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
18030 if test x"$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes; then :
18031   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-omit-frame-pointer"
18032 else
18033   :
18034 fi
18035
18036
18037 fi
18038
18039 ASAN_ENV_FLAGS=""
18040 @%:@ Check whether --enable-test-asan was given.
18041 if test "${enable_test_asan+set}" = set; then :
18042   enableval=$enable_test_asan; disable_test_asan=$enableval
18043 else
18044   disable_test_asan=maybe
18045 fi
18046
18047 if test "x$disable_test_asan" != xno; then :
18048   
18049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=address" >&5
18050 $as_echo_n "checking whether C compiler and linker accept -fsanitize=address... " >&6; }
18051 if ${ax_cv_check_cclflags___fsanitize_address+:} false; then :
18052   $as_echo_n "(cached) " >&6
18053 else
18054   
18055   ax_check_save_flags=$CFLAGS
18056   CFLAGS="$CFLAGS  -fsanitize=address"
18057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h.  */
18059
18060 int
18061 main ()
18062 {
18063
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 if ac_fn_c_try_link "$LINENO"; then :
18069   ax_cv_check_cclflags___fsanitize_address=yes
18070 else
18071   ax_cv_check_cclflags___fsanitize_address=no
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext \
18074     conftest$ac_exeext conftest.$ac_ext
18075   CFLAGS=$ax_check_save_flags
18076 fi
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_address" >&5
18078 $as_echo "$ax_cv_check_cclflags___fsanitize_address" >&6; }
18079 if test x"$ax_cv_check_cclflags___fsanitize_address" = xyes; then :
18080   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fsanitize=address"
18081 else
18082   
18083         if test "x$disable_test_asan" != xmaybe; then :
18084   
18085             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18087 as_fn_error $? "--disable-test-asan=$disable_test_asan is not supported on a target system.
18088 Check out https://clang.llvm.org/docs/AddressSanitizer.html#how-to-build
18089 See \`config.log' for more details" "$LINENO" 5; }
18090 fi
18091       
18092 fi
18093
18094
18095                 ASAN_OPTIONS="detect_leaks=1"
18096     export ASAN_OPTIONS
18097     save_cflags="${CFLAGS}"
18098     CFLAGS="${CFLAGS} ${SANITIZER_CFLAGS}"
18099     if test "$cross_compiling" = yes; then :
18100   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18102 as_fn_error $? "cannot run test program while cross compiling
18103 See \`config.log' for more details" "$LINENO" 5; }
18104 else
18105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106 /* end confdefs.h.  */
18107
18108 int
18109 main ()
18110 {
18111
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 if ac_fn_c_try_run "$LINENO"; then :
18117   
18118         ASAN_ENV_FLAGS="${ASAN_ENV_FLAGS} ASAN_OPTIONS=detect_leaks=1"
18119     
18120 fi
18121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18122   conftest.$ac_objext conftest.beam conftest.$ac_ext
18123 fi
18124
18125     CFLAGS="${save_cflags}"
18126     unset ASAN_OPTIONS
18127
18128                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
18129 $as_echo_n "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
18130 if ${ax_cv_check_cflags___fno_omit_frame_pointer+:} false; then :
18131   $as_echo_n "(cached) " >&6
18132 else
18133   
18134   ax_check_save_flags=$CFLAGS
18135   CFLAGS="$CFLAGS  -fno-omit-frame-pointer"
18136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h.  */
18138
18139 int
18140 main ()
18141 {
18142
18143   ;
18144   return 0;
18145 }
18146 _ACEOF
18147 if ac_fn_c_try_compile "$LINENO"; then :
18148   ax_cv_check_cflags___fno_omit_frame_pointer=yes
18149 else
18150   ax_cv_check_cflags___fno_omit_frame_pointer=no
18151 fi
18152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153   CFLAGS=$ax_check_save_flags
18154 fi
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
18156 $as_echo "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
18157 if test x"$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes; then :
18158   SANITIZER_CFLAGS="${SANITIZER_CFLAGS} -fno-omit-frame-pointer"
18159 else
18160   :
18161 fi
18162
18163
18164 fi
18165
18166 LIBFUZZER_CFLAGS=""
18167 @%:@ Check whether --enable-test-fuzzer was given.
18168 if test "${enable_test_fuzzer+set}" = set; then :
18169   enableval=$enable_test_fuzzer; enable_test_fuzzer=$enableval
18170 else
18171   enable_test_fuzzer=no
18172 fi
18173
18174 if test "x$enable_test_fuzzer" != xno; then :
18175   
18176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler and linker accept -fsanitize=fuzzer" >&5
18177 $as_echo_n "checking whether C compiler and linker accept -fsanitize=fuzzer... " >&6; }
18178 if ${ax_cv_check_cclflags___fsanitize_fuzzer+:} false; then :
18179   $as_echo_n "(cached) " >&6
18180 else
18181   
18182   ax_check_save_flags=$CFLAGS
18183   CFLAGS="$CFLAGS  -fsanitize=fuzzer"
18184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h.  */
18186
18187     #include <sys/types.h>
18188     int LLVMFuzzerTestOneInput(const unsigned char *Data, size_t Size);
18189     int LLVMFuzzerTestOneInput(const unsigned char *Data, size_t Size) {
18190         (void)Data;
18191         (void)Size;
18192         return 0;
18193     }
18194     
18195 _ACEOF
18196 if ac_fn_c_try_link "$LINENO"; then :
18197   ax_cv_check_cclflags___fsanitize_fuzzer=yes
18198 else
18199   ax_cv_check_cclflags___fsanitize_fuzzer=no
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext \
18202     conftest$ac_exeext conftest.$ac_ext
18203   CFLAGS=$ax_check_save_flags
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cclflags___fsanitize_fuzzer" >&5
18206 $as_echo "$ax_cv_check_cclflags___fsanitize_fuzzer" >&6; }
18207 if test x"$ax_cv_check_cclflags___fsanitize_fuzzer" = xyes; then :
18208   LIBFUZZER_CFLAGS="-fsanitize=fuzzer -DENABLE_LIBFUZZER"
18209 else
18210   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18212 as_fn_error $? "--enable-test-fuzzer=$enable_test_fuzzer is not supported on a target system.
18213 Check out http://llvm.org/docs/LibFuzzer.html
18214 See \`config.log' for more details" "$LINENO" 5; }
18215 fi
18216
18217
18218 fi
18219
18220 TESTSUITE_CFLAGS="${TESTSUITE_CFLAGS} ${SANITIZER_CFLAGS}"
18221 SKELETONS_CFLAGS="${SKELETONS_CFLAGS} ${SANITIZER_CFLAGS}"
18222
18223
18224
18225
18226
18227
18228
18229
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18231 $as_echo_n "checking for ANSI C header files... " >&6; }
18232 if ${ac_cv_header_stdc+:} false; then :
18233   $as_echo_n "(cached) " >&6
18234 else
18235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h.  */
18237 #include <stdlib.h>
18238 #include <stdarg.h>
18239 #include <string.h>
18240 #include <float.h>
18241
18242 int
18243 main ()
18244 {
18245
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 if ac_fn_c_try_compile "$LINENO"; then :
18251   ac_cv_header_stdc=yes
18252 else
18253   ac_cv_header_stdc=no
18254 fi
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256
18257 if test $ac_cv_header_stdc = yes; then
18258   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h.  */
18261 #include <string.h>
18262
18263 _ACEOF
18264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18265   $EGREP "memchr" >/dev/null 2>&1; then :
18266   
18267 else
18268   ac_cv_header_stdc=no
18269 fi
18270 rm -f conftest*
18271
18272 fi
18273
18274 if test $ac_cv_header_stdc = yes; then
18275   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18277 /* end confdefs.h.  */
18278 #include <stdlib.h>
18279
18280 _ACEOF
18281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18282   $EGREP "free" >/dev/null 2>&1; then :
18283   
18284 else
18285   ac_cv_header_stdc=no
18286 fi
18287 rm -f conftest*
18288
18289 fi
18290
18291 if test $ac_cv_header_stdc = yes; then
18292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18293   if test "$cross_compiling" = yes; then :
18294   :
18295 else
18296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h.  */
18298 #include <ctype.h>
18299 #include <stdlib.h>
18300 #if ((' ' & 0x0FF) == 0x020)
18301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18303 #else
18304 # define ISLOWER(c) \
18305                    (('a' <= (c) && (c) <= 'i') \
18306                      || ('j' <= (c) && (c) <= 'r') \
18307                      || ('s' <= (c) && (c) <= 'z'))
18308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18309 #endif
18310
18311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18312 int
18313 main ()
18314 {
18315   int i;
18316   for (i = 0; i < 256; i++)
18317     if (XOR (islower (i), ISLOWER (i))
18318         || toupper (i) != TOUPPER (i))
18319       return 2;
18320   return 0;
18321 }
18322 _ACEOF
18323 if ac_fn_c_try_run "$LINENO"; then :
18324   
18325 else
18326   ac_cv_header_stdc=no
18327 fi
18328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18329   conftest.$ac_objext conftest.beam conftest.$ac_ext
18330 fi
18331
18332 fi
18333 fi
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18335 $as_echo "$ac_cv_header_stdc" >&6; }
18336 if test $ac_cv_header_stdc = yes; then
18337   
18338 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
18339
18340 fi
18341
18342 for ac_header in sys/param.h
18343 do :
18344   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18345 if test "x$ac_cv_header_sys_param_h" = xyes; then :
18346   cat >>confdefs.h <<_ACEOF
18347 @%:@define HAVE_SYS_PARAM_H 1
18348 _ACEOF
18349  
18350 fi
18351
18352 done
18353
18354
18355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18356 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18357 if ${ac_cv_c_bigendian+:} false; then :
18358   $as_echo_n "(cached) " >&6
18359 else
18360   ac_cv_c_bigendian=unknown
18361     # See if we're dealing with a universal compiler.
18362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h.  */
18364 #ifndef __APPLE_CC__
18365                not a universal capable compiler
18366              #endif
18367              typedef int dummy;
18368             
18369 _ACEOF
18370 if ac_fn_c_try_compile "$LINENO"; then :
18371   
18372         # Check for potential -arch flags.  It is not universal unless
18373         # there are at least two -arch flags with different values.
18374         ac_arch=
18375         ac_prev=
18376         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18377          if test -n "$ac_prev"; then
18378            case $ac_word in
18379              i?86 | x86_64 | ppc | ppc64)
18380                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18381                  ac_arch=$ac_word
18382                else
18383                  ac_cv_c_bigendian=universal
18384                  break
18385                fi
18386                ;;
18387            esac
18388            ac_prev=
18389          elif test "x$ac_word" = "x-arch"; then
18390            ac_prev=arch
18391          fi
18392        done
18393 fi
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395     if test $ac_cv_c_bigendian = unknown; then
18396       # See if sys/param.h defines the BYTE_ORDER macro.
18397       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h.  */
18399 #include <sys/types.h>
18400              #include <sys/param.h>
18401            
18402 int
18403 main ()
18404 {
18405 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18406                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18407                      && LITTLE_ENDIAN)
18408               bogus endian macros
18409              #endif
18410            
18411   ;
18412   return 0;
18413 }
18414 _ACEOF
18415 if ac_fn_c_try_compile "$LINENO"; then :
18416   # It does; now see whether it defined to BIG_ENDIAN or not.
18417          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h.  */
18419 #include <sys/types.h>
18420                 #include <sys/param.h>
18421               
18422 int
18423 main ()
18424 {
18425 #if BYTE_ORDER != BIG_ENDIAN
18426                  not big endian
18427                 #endif
18428               
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 if ac_fn_c_try_compile "$LINENO"; then :
18434   ac_cv_c_bigendian=yes
18435 else
18436   ac_cv_c_bigendian=no
18437 fi
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18439 fi
18440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18441     fi
18442     if test $ac_cv_c_bigendian = unknown; then
18443       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18444       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h.  */
18446 #include <limits.h>
18447            
18448 int
18449 main ()
18450 {
18451 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18452               bogus endian macros
18453              #endif
18454            
18455   ;
18456   return 0;
18457 }
18458 _ACEOF
18459 if ac_fn_c_try_compile "$LINENO"; then :
18460   # It does; now see whether it defined to _BIG_ENDIAN or not.
18461          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h.  */
18463 #include <limits.h>
18464               
18465 int
18466 main ()
18467 {
18468 #ifndef _BIG_ENDIAN
18469                  not big endian
18470                 #endif
18471               
18472   ;
18473   return 0;
18474 }
18475 _ACEOF
18476 if ac_fn_c_try_compile "$LINENO"; then :
18477   ac_cv_c_bigendian=yes
18478 else
18479   ac_cv_c_bigendian=no
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 fi
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484     fi
18485     if test $ac_cv_c_bigendian = unknown; then
18486       # Compile a test program.
18487       if test "$cross_compiling" = yes; then :
18488   # Try to guess by grepping values from an object file.
18489          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h.  */
18491 short int ascii_mm[] =
18492                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18493                 short int ascii_ii[] =
18494                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18495                 int use_ascii (int i) {
18496                   return ascii_mm[i] + ascii_ii[i];
18497                 }
18498                 short int ebcdic_ii[] =
18499                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18500                 short int ebcdic_mm[] =
18501                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18502                 int use_ebcdic (int i) {
18503                   return ebcdic_mm[i] + ebcdic_ii[i];
18504                 }
18505                 extern int foo;
18506               
18507 int
18508 main ()
18509 {
18510 return use_ascii (foo) == use_ebcdic (foo);
18511   ;
18512   return 0;
18513 }
18514 _ACEOF
18515 if ac_fn_c_try_compile "$LINENO"; then :
18516   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18517               ac_cv_c_bigendian=yes
18518             fi
18519             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18520               if test "$ac_cv_c_bigendian" = unknown; then
18521                 ac_cv_c_bigendian=no
18522               else
18523                 # finding both strings is unlikely to happen, but who knows?
18524                 ac_cv_c_bigendian=unknown
18525               fi
18526             fi
18527 fi
18528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 else
18530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531 /* end confdefs.h.  */
18532 $ac_includes_default
18533 int
18534 main ()
18535 {
18536
18537              /* Are we little or big endian?  From Harbison&Steele.  */
18538              union
18539              {
18540                long int l;
18541                char c[sizeof (long int)];
18542              } u;
18543              u.l = 1;
18544              return u.c[sizeof (long int) - 1] == 1;
18545            
18546   ;
18547   return 0;
18548 }
18549 _ACEOF
18550 if ac_fn_c_try_run "$LINENO"; then :
18551   ac_cv_c_bigendian=no
18552 else
18553   ac_cv_c_bigendian=yes
18554 fi
18555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18556   conftest.$ac_objext conftest.beam conftest.$ac_ext
18557 fi
18558
18559     fi
18560 fi
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18562 $as_echo "$ac_cv_c_bigendian" >&6; }
18563  case $ac_cv_c_bigendian in #(
18564    yes)
18565      $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
18566 ;; #(
18567    no)
18568       ;; #(
18569    universal)
18570         
18571 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18572
18573      ;; #(
18574    *)
18575      as_fn_error $? "unknown endianness
18576  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18577  esac
18578
18579 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18580 if test "x$ac_cv_type_off_t" = xyes; then :
18581   
18582 else
18583   
18584 cat >>confdefs.h <<_ACEOF
18585 @%:@define off_t long int
18586 _ACEOF
18587
18588 fi
18589
18590 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18591 if test "x$ac_cv_type_size_t" = xyes; then :
18592   
18593 else
18594   
18595 cat >>confdefs.h <<_ACEOF
18596 @%:@define size_t unsigned int
18597 _ACEOF
18598
18599 fi
18600
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18602 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18603 if ${ac_cv_struct_tm+:} false; then :
18604   $as_echo_n "(cached) " >&6
18605 else
18606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h.  */
18608 #include <sys/types.h>
18609 #include <time.h>
18610
18611 int
18612 main ()
18613 {
18614 struct tm tm;
18615                                      int *p = &tm.tm_sec;
18616                                      return !p;
18617   ;
18618   return 0;
18619 }
18620 _ACEOF
18621 if ac_fn_c_try_compile "$LINENO"; then :
18622   ac_cv_struct_tm=time.h
18623 else
18624   ac_cv_struct_tm=sys/time.h
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18627 fi
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18629 $as_echo "$ac_cv_struct_tm" >&6; }
18630 if test $ac_cv_struct_tm = sys/time.h; then
18631   
18632 $as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
18633
18634 fi
18635
18636 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
18637 if test "x$ac_cv_type___int128" = xyes; then :
18638   
18639 $as_echo "@%:@define HAVE_128_BIT_INT 1" >>confdefs.h
18640
18641 fi
18642
18643 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
18644 if test "x$ac_cv_type_intmax_t" = xyes; then :
18645   
18646 else
18647   
18648 cat >>confdefs.h <<_ACEOF
18649 @%:@define intmax_t int64_t
18650 _ACEOF
18651
18652 fi
18653
18654
18655 # The cast to long int works around a bug in the HP C Compiler
18656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18658 # This bug is HP SR number 8606223364.
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18660 $as_echo_n "checking size of void *... " >&6; }
18661 if ${ac_cv_sizeof_void_p+:} false; then :
18662   $as_echo_n "(cached) " >&6
18663 else
18664   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
18665   
18666 else
18667   if test "$ac_cv_type_void_p" = yes; then
18668      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18670 as_fn_error 77 "cannot compute sizeof (void *)
18671 See \`config.log' for more details" "$LINENO" 5; }
18672    else
18673      ac_cv_sizeof_void_p=0
18674    fi
18675 fi
18676
18677 fi
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18679 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18680
18681
18682
18683 cat >>confdefs.h <<_ACEOF
18684 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18685 _ACEOF
18686
18687
18688  if test "$ac_cv_sizeof_void_p" -eq 8; then
18689   TEST_64BIT_TRUE=
18690   TEST_64BIT_FALSE='#'
18691 else
18692   TEST_64BIT_TRUE='#'
18693   TEST_64BIT_FALSE=
18694 fi
18695
18696
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt" >&5
18698 $as_echo_n "checking for library containing getopt... " >&6; }
18699 if ${ac_cv_search_getopt+:} false; then :
18700   $as_echo_n "(cached) " >&6
18701 else
18702   ac_func_search_save_LIBS=$LIBS
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h.  */
18705
18706 /* Override any GCC internal prototype to avoid an error.
18707    Use char because int might match the return type of a GCC
18708    builtin and then its argument prototype would still apply.  */
18709 #ifdef __cplusplus
18710 extern "C"
18711 #endif
18712 char getopt ();
18713 int
18714 main ()
18715 {
18716 return getopt ();
18717   ;
18718   return 0;
18719 }
18720 _ACEOF
18721 for ac_lib in '' iberty; do
18722   if test -z "$ac_lib"; then
18723     ac_res="none required"
18724   else
18725     ac_res=-l$ac_lib
18726     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18727   fi
18728   if ac_fn_c_try_link "$LINENO"; then :
18729   ac_cv_search_getopt=$ac_res
18730 fi
18731 rm -f core conftest.err conftest.$ac_objext \
18732     conftest$ac_exeext
18733   if ${ac_cv_search_getopt+:} false; then :
18734   break
18735 fi
18736 done
18737 if ${ac_cv_search_getopt+:} false; then :
18738   
18739 else
18740   ac_cv_search_getopt=no
18741 fi
18742 rm conftest.$ac_ext
18743 LIBS=$ac_func_search_save_LIBS
18744 fi
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt" >&5
18746 $as_echo "$ac_cv_search_getopt" >&6; }
18747 ac_res=$ac_cv_search_getopt
18748 if test "$ac_res" != no; then :
18749   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18750   
18751 fi
18752
18753
18754 for ac_func in strtoimax strtoll
18755 do :
18756   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18757 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18758 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18759   cat >>confdefs.h <<_ACEOF
18760 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18761 _ACEOF
18762  
18763 fi
18764 done
18765
18766 for ac_func in mergesort
18767 do :
18768   ac_fn_c_check_func "$LINENO" "mergesort" "ac_cv_func_mergesort"
18769 if test "x$ac_cv_func_mergesort" = xyes; then :
18770   cat >>confdefs.h <<_ACEOF
18771 @%:@define HAVE_MERGESORT 1
18772 _ACEOF
18773  
18774 fi
18775 done
18776
18777 for ac_func in mkstemps
18778 do :
18779   ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
18780 if test "x$ac_cv_func_mkstemps" = xyes; then :
18781   cat >>confdefs.h <<_ACEOF
18782 @%:@define HAVE_MKSTEMPS 1
18783 _ACEOF
18784  
18785 fi
18786 done
18787
18788 for ac_func in timegm
18789 do :
18790   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18791 if test "x$ac_cv_func_timegm" = xyes; then :
18792   cat >>confdefs.h <<_ACEOF
18793 @%:@define HAVE_TIMEGM 1
18794 _ACEOF
18795  
18796 fi
18797 done
18798
18799 ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
18800 if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
18801   ac_have_decl=1
18802 else
18803   ac_have_decl=0
18804 fi
18805
18806 cat >>confdefs.h <<_ACEOF
18807 @%:@define HAVE_DECL_STRCASECMP $ac_have_decl
18808 _ACEOF
18809
18810 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
18811 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
18812   ac_have_decl=1
18813 else
18814   ac_have_decl=0
18815 fi
18816
18817 cat >>confdefs.h <<_ACEOF
18818 @%:@define HAVE_DECL_VASPRINTF $ac_have_decl
18819 _ACEOF
18820
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h.  */
18823
18824 /* Override any GCC internal prototype to avoid an error.
18825    Use char because int might match the return type of a GCC
18826    builtin and then its argument prototype would still apply.  */
18827 #ifdef __cplusplus
18828 extern "C"
18829 #endif
18830 char symlink ();
18831 int
18832 main ()
18833 {
18834 return symlink ();
18835   ;
18836   return 0;
18837 }
18838 _ACEOF
18839 if ac_fn_c_try_link "$LINENO"; then :
18840   
18841 $as_echo "@%:@define HAVE_SYMLINK 1" >>confdefs.h
18842
18843 fi
18844 rm -f core conftest.err conftest.$ac_objext \
18845     conftest$ac_exeext conftest.$ac_ext
18846
18847 # Extract the first word of "pandoc", so it can be a program name with args.
18848 set dummy pandoc; ac_word=$2
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18850 $as_echo_n "checking for $ac_word... " >&6; }
18851 if ${ac_cv_path_PANDOC+:} false; then :
18852   $as_echo_n "(cached) " >&6
18853 else
18854   case $PANDOC in
18855   [\\/]* | ?:[\\/]*)
18856   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
18857   ;;
18858   *)
18859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18860 for as_dir in $PATH
18861 do
18862   IFS=$as_save_IFS
18863   test -z "$as_dir" && as_dir=.
18864     for ac_exec_ext in '' $ac_executable_extensions; do
18865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18866     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
18867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18868     break 2
18869   fi
18870 done
18871   done
18872 IFS=$as_save_IFS
18873
18874   ;;
18875 esac
18876 fi
18877 PANDOC=$ac_cv_path_PANDOC
18878 if test -n "$PANDOC"; then
18879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
18880 $as_echo "$PANDOC" >&6; }
18881 else
18882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18883 $as_echo "no" >&6; }
18884 fi
18885
18886
18887  if test -n "$PANDOC"; then
18888   HAVE_PANDOC_TRUE=
18889   HAVE_PANDOC_FALSE='#'
18890 else
18891   HAVE_PANDOC_TRUE='#'
18892   HAVE_PANDOC_FALSE=
18893 fi
18894
18895
18896 ac_config_files="$ac_config_files tests/tests-c-compiler/check-src/Makefile tests/tests-asn1c-compiler/Makefile tests/tests-asn1c-smoke/Makefile tests/tests-randomized/Makefile tests/tests-c-compiler/Makefile tests/tests-skeletons/Makefile libasn1compiler/Makefile libasn1common/Makefile libasn1parser/Makefile libasn1print/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile doc/man/Makefile tests/Makefile asn1c/Makefile doc/Makefile Makefile"
18897
18898 cat >confcache <<\_ACEOF
18899 # This file is a shell script that caches the results of configure
18900 # tests run on this system so they can be shared between configure
18901 # scripts and configure runs, see configure's option --config-cache.
18902 # It is not useful on other systems.  If it contains results you don't
18903 # want to keep, you may remove or edit it.
18904 #
18905 # config.status only pays attention to the cache file if you give it
18906 # the --recheck option to rerun configure.
18907 #
18908 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18910 # following values.
18911
18912 _ACEOF
18913
18914 # The following way of writing the cache mishandles newlines in values,
18915 # but we know of no workaround that is simple, portable, and efficient.
18916 # So, we kill variables containing newlines.
18917 # Ultrix sh set writes to stderr and can't be redirected directly,
18918 # and sets the high bit in the cache file unless we assign to the vars.
18919 (
18920   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18921     eval ac_val=\$$ac_var
18922     case $ac_val in #(
18923     *${as_nl}*)
18924       case $ac_var in #(
18925       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18926 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18927       esac
18928       case $ac_var in #(
18929       _ | IFS | as_nl) ;; #(
18930       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18931       *) { eval $ac_var=; unset $ac_var;} ;;
18932       esac ;;
18933     esac
18934   done
18935
18936   (set) 2>&1 |
18937     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18938     *${as_nl}ac_space=\ *)
18939       # `set' does not quote correctly, so add quotes: double-quote
18940       # substitution turns \\\\ into \\, and sed turns \\ into \.
18941       sed -n \
18942         "s/'/'\\\\''/g;
18943           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18944       ;; #(
18945     *)
18946       # `set' quotes correctly as required by POSIX, so do not add quotes.
18947       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18948       ;;
18949     esac |
18950     sort
18951 ) |
18952   sed '
18953      /^ac_cv_env_/b end
18954      t clear
18955      :clear
18956      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18957      t end
18958      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18959      :end' >>confcache
18960 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18961   if test -w "$cache_file"; then
18962     if test "x$cache_file" != "x/dev/null"; then
18963       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18964 $as_echo "$as_me: updating cache $cache_file" >&6;}
18965       if test ! -f "$cache_file" || test -h "$cache_file"; then
18966         cat confcache >"$cache_file"
18967       else
18968         case $cache_file in #(
18969         */* | ?:*)
18970           mv -f confcache "$cache_file"$$ &&
18971           mv -f "$cache_file"$$ "$cache_file" ;; #(
18972         *)
18973           mv -f confcache "$cache_file" ;;
18974         esac
18975       fi
18976     fi
18977   else
18978     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18979 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18980   fi
18981 fi
18982 rm -f confcache
18983
18984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18985 # Let make expand exec_prefix.
18986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18987
18988 DEFS=-DHAVE_CONFIG_H
18989
18990 ac_libobjs=
18991 ac_ltlibobjs=
18992 U=
18993 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
18994   # 1. Remove the extension, and $U if already installed.
18995   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18996   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18997   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18998   #    will be set to the directory where LIBOBJS objects are built.
18999   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19000   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19001 done
19002 LIB@&t@OBJS=$ac_libobjs
19003
19004 LTLIBOBJS=$ac_ltlibobjs
19005
19006
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19008 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19009    if test -n "$am_sleep_pid"; then
19010      # Hide warnings about reused PIDs.
19011      wait $am_sleep_pid 2>/dev/null
19012    fi
19013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19014 $as_echo "done" >&6; }
19015  if test -n "$EXEEXT"; then
19016   am__EXEEXT_TRUE=
19017   am__EXEEXT_FALSE='#'
19018 else
19019   am__EXEEXT_TRUE='#'
19020   am__EXEEXT_FALSE=
19021 fi
19022
19023 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19024   as_fn_error $? "conditional \"AMDEP\" was never defined.
19025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19026 fi
19027 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19028   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19030 fi
19031 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19032   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19034 fi
19035 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
19036   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
19037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19038 fi
19039 if test -z "${EXPLICIT_M32_TRUE}" && test -z "${EXPLICIT_M32_FALSE}"; then
19040   as_fn_error $? "conditional \"EXPLICIT_M32\" was never defined.
19041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19042 fi
19043
19044 if test -z "${TEST_64BIT_TRUE}" && test -z "${TEST_64BIT_FALSE}"; then
19045   as_fn_error $? "conditional \"TEST_64BIT\" was never defined.
19046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19047 fi
19048 if test -z "${HAVE_PANDOC_TRUE}" && test -z "${HAVE_PANDOC_FALSE}"; then
19049   as_fn_error $? "conditional \"HAVE_PANDOC\" was never defined.
19050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19051 fi
19052
19053 : "${CONFIG_STATUS=./config.status}"
19054 ac_write_fail=0
19055 ac_clean_files_save=$ac_clean_files
19056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19058 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19059 as_write_fail=0
19060 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19061 #! $SHELL
19062 # Generated by $as_me.
19063 # Run this file to recreate the current configuration.
19064 # Compiler output produced by configure, useful for debugging
19065 # configure, is in config.log if it exists.
19066
19067 debug=false
19068 ac_cs_recheck=false
19069 ac_cs_silent=false
19070
19071 SHELL=\${CONFIG_SHELL-$SHELL}
19072 export SHELL
19073 _ASEOF
19074 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19075 ## -------------------- ##
19076 ## M4sh Initialization. ##
19077 ## -------------------- ##
19078
19079 # Be more Bourne compatible
19080 DUALCASE=1; export DUALCASE # for MKS sh
19081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19082   emulate sh
19083   NULLCMD=:
19084   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19085   # is contrary to our usage.  Disable this feature.
19086   alias -g '${1+"$@"}'='"$@"'
19087   setopt NO_GLOB_SUBST
19088 else
19089   case `(set -o) 2>/dev/null` in @%:@(
19090   *posix*) :
19091     set -o posix ;; @%:@(
19092   *) :
19093      ;;
19094 esac
19095 fi
19096
19097
19098 as_nl='
19099 '
19100 export as_nl
19101 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19102 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19103 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19105 # Prefer a ksh shell builtin over an external printf program on Solaris,
19106 # but without wasting forks for bash or zsh.
19107 if test -z "$BASH_VERSION$ZSH_VERSION" \
19108     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19109   as_echo='print -r --'
19110   as_echo_n='print -rn --'
19111 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19112   as_echo='printf %s\n'
19113   as_echo_n='printf %s'
19114 else
19115   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19116     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19117     as_echo_n='/usr/ucb/echo -n'
19118   else
19119     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19120     as_echo_n_body='eval
19121       arg=$1;
19122       case $arg in @%:@(
19123       *"$as_nl"*)
19124         expr "X$arg" : "X\\(.*\\)$as_nl";
19125         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19126       esac;
19127       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19128     '
19129     export as_echo_n_body
19130     as_echo_n='sh -c $as_echo_n_body as_echo'
19131   fi
19132   export as_echo_body
19133   as_echo='sh -c $as_echo_body as_echo'
19134 fi
19135
19136 # The user is always right.
19137 if test "${PATH_SEPARATOR+set}" != set; then
19138   PATH_SEPARATOR=:
19139   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19140     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19141       PATH_SEPARATOR=';'
19142   }
19143 fi
19144
19145
19146 # IFS
19147 # We need space, tab and new line, in precisely that order.  Quoting is
19148 # there to prevent editors from complaining about space-tab.
19149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19150 # splitting by setting IFS to empty value.)
19151 IFS=" ""        $as_nl"
19152
19153 # Find who we are.  Look in the path if we contain no directory separator.
19154 as_myself=
19155 case $0 in @%:@((
19156   *[\\/]* ) as_myself=$0 ;;
19157   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19158 for as_dir in $PATH
19159 do
19160   IFS=$as_save_IFS
19161   test -z "$as_dir" && as_dir=.
19162     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19163   done
19164 IFS=$as_save_IFS
19165
19166      ;;
19167 esac
19168 # We did not find ourselves, most probably we were run as `sh COMMAND'
19169 # in which case we are not to be found in the path.
19170 if test "x$as_myself" = x; then
19171   as_myself=$0
19172 fi
19173 if test ! -f "$as_myself"; then
19174   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19175   exit 1
19176 fi
19177
19178 # Unset variables that we do not need and which cause bugs (e.g. in
19179 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19180 # suppresses any "Segmentation fault" message there.  '((' could
19181 # trigger a bug in pdksh 5.2.14.
19182 for as_var in BASH_ENV ENV MAIL MAILPATH
19183 do eval test x\${$as_var+set} = xset \
19184   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19185 done
19186 PS1='$ '
19187 PS2='> '
19188 PS4='+ '
19189
19190 # NLS nuisances.
19191 LC_ALL=C
19192 export LC_ALL
19193 LANGUAGE=C
19194 export LANGUAGE
19195
19196 # CDPATH.
19197 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19198
19199
19200 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
19201 @%:@ ----------------------------------------
19202 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19203 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19204 @%:@ script with STATUS, using 1 if that was 0.
19205 as_fn_error ()
19206 {
19207   as_status=$1; test $as_status -eq 0 && as_status=1
19208   if test "$4"; then
19209     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19210     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19211   fi
19212   $as_echo "$as_me: error: $2" >&2
19213   as_fn_exit $as_status
19214 } @%:@ as_fn_error
19215
19216
19217 @%:@ as_fn_set_status STATUS
19218 @%:@ -----------------------
19219 @%:@ Set @S|@? to STATUS, without forking.
19220 as_fn_set_status ()
19221 {
19222   return $1
19223 } @%:@ as_fn_set_status
19224
19225 @%:@ as_fn_exit STATUS
19226 @%:@ -----------------
19227 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19228 as_fn_exit ()
19229 {
19230   set +e
19231   as_fn_set_status $1
19232   exit $1
19233 } @%:@ as_fn_exit
19234
19235 @%:@ as_fn_unset VAR
19236 @%:@ ---------------
19237 @%:@ Portably unset VAR.
19238 as_fn_unset ()
19239 {
19240   { eval $1=; unset $1;}
19241 }
19242 as_unset=as_fn_unset
19243 @%:@ as_fn_append VAR VALUE
19244 @%:@ ----------------------
19245 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
19246 @%:@ advantage of any shell optimizations that allow amortized linear growth over
19247 @%:@ repeated appends, instead of the typical quadratic growth present in naive
19248 @%:@ implementations.
19249 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19250   eval 'as_fn_append ()
19251   {
19252     eval $1+=\$2
19253   }'
19254 else
19255   as_fn_append ()
19256   {
19257     eval $1=\$$1\$2
19258   }
19259 fi # as_fn_append
19260
19261 @%:@ as_fn_arith ARG...
19262 @%:@ ------------------
19263 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
19264 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
19265 @%:@ must be portable across @S|@(()) and expr.
19266 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19267   eval 'as_fn_arith ()
19268   {
19269     as_val=$(( $* ))
19270   }'
19271 else
19272   as_fn_arith ()
19273   {
19274     as_val=`expr "$@" || test $? -eq 1`
19275   }
19276 fi # as_fn_arith
19277
19278
19279 if expr a : '\(a\)' >/dev/null 2>&1 &&
19280    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19281   as_expr=expr
19282 else
19283   as_expr=false
19284 fi
19285
19286 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19287   as_basename=basename
19288 else
19289   as_basename=false
19290 fi
19291
19292 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19293   as_dirname=dirname
19294 else
19295   as_dirname=false
19296 fi
19297
19298 as_me=`$as_basename -- "$0" ||
19299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19300          X"$0" : 'X\(//\)$' \| \
19301          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19302 $as_echo X/"$0" |
19303     sed '/^.*\/\([^/][^/]*\)\/*$/{
19304             s//\1/
19305             q
19306           }
19307           /^X\/\(\/\/\)$/{
19308             s//\1/
19309             q
19310           }
19311           /^X\/\(\/\).*/{
19312             s//\1/
19313             q
19314           }
19315           s/.*/./; q'`
19316
19317 # Avoid depending upon Character Ranges.
19318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19321 as_cr_digits='0123456789'
19322 as_cr_alnum=$as_cr_Letters$as_cr_digits
19323
19324 ECHO_C= ECHO_N= ECHO_T=
19325 case `echo -n x` in @%:@(((((
19326 -n*)
19327   case `echo 'xy\c'` in
19328   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19329   xy)  ECHO_C='\c';;
19330   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19331        ECHO_T=' ';;
19332   esac;;
19333 *)
19334   ECHO_N='-n';;
19335 esac
19336
19337 rm -f conf$$ conf$$.exe conf$$.file
19338 if test -d conf$$.dir; then
19339   rm -f conf$$.dir/conf$$.file
19340 else
19341   rm -f conf$$.dir
19342   mkdir conf$$.dir 2>/dev/null
19343 fi
19344 if (echo >conf$$.file) 2>/dev/null; then
19345   if ln -s conf$$.file conf$$ 2>/dev/null; then
19346     as_ln_s='ln -s'
19347     # ... but there are two gotchas:
19348     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19349     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19350     # In both cases, we have to default to `cp -pR'.
19351     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19352       as_ln_s='cp -pR'
19353   elif ln conf$$.file conf$$ 2>/dev/null; then
19354     as_ln_s=ln
19355   else
19356     as_ln_s='cp -pR'
19357   fi
19358 else
19359   as_ln_s='cp -pR'
19360 fi
19361 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19362 rmdir conf$$.dir 2>/dev/null
19363
19364
19365 @%:@ as_fn_mkdir_p
19366 @%:@ -------------
19367 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
19368 as_fn_mkdir_p ()
19369 {
19370
19371   case $as_dir in #(
19372   -*) as_dir=./$as_dir;;
19373   esac
19374   test -d "$as_dir" || eval $as_mkdir_p || {
19375     as_dirs=
19376     while :; do
19377       case $as_dir in #(
19378       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19379       *) as_qdir=$as_dir;;
19380       esac
19381       as_dirs="'$as_qdir' $as_dirs"
19382       as_dir=`$as_dirname -- "$as_dir" ||
19383 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19384          X"$as_dir" : 'X\(//\)[^/]' \| \
19385          X"$as_dir" : 'X\(//\)$' \| \
19386          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19387 $as_echo X"$as_dir" |
19388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19389             s//\1/
19390             q
19391           }
19392           /^X\(\/\/\)[^/].*/{
19393             s//\1/
19394             q
19395           }
19396           /^X\(\/\/\)$/{
19397             s//\1/
19398             q
19399           }
19400           /^X\(\/\).*/{
19401             s//\1/
19402             q
19403           }
19404           s/.*/./; q'`
19405       test -d "$as_dir" && break
19406     done
19407     test -z "$as_dirs" || eval "mkdir $as_dirs"
19408   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19409
19410
19411 } @%:@ as_fn_mkdir_p
19412 if mkdir -p . 2>/dev/null; then
19413   as_mkdir_p='mkdir -p "$as_dir"'
19414 else
19415   test -d ./-p && rmdir ./-p
19416   as_mkdir_p=false
19417 fi
19418
19419
19420 @%:@ as_fn_executable_p FILE
19421 @%:@ -----------------------
19422 @%:@ Test if FILE is an executable regular file.
19423 as_fn_executable_p ()
19424 {
19425   test -f "$1" && test -x "$1"
19426 } @%:@ as_fn_executable_p
19427 as_test_x='test -x'
19428 as_executable_p=as_fn_executable_p
19429
19430 # Sed expression to map a string onto a valid CPP name.
19431 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19432
19433 # Sed expression to map a string onto a valid variable name.
19434 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19435
19436
19437 exec 6>&1
19438 ## ----------------------------------- ##
19439 ## Main body of $CONFIG_STATUS script. ##
19440 ## ----------------------------------- ##
19441 _ASEOF
19442 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19443
19444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19445 # Save the log message, to keep $0 and so on meaningful, and to
19446 # report actual input values of CONFIG_FILES etc. instead of their
19447 # values after options handling.
19448 ac_log="
19449 This file was extended by asn1c $as_me 0.9.29, which was
19450 generated by GNU Autoconf 2.69.  Invocation command line was
19451
19452   CONFIG_FILES    = $CONFIG_FILES
19453   CONFIG_HEADERS  = $CONFIG_HEADERS
19454   CONFIG_LINKS    = $CONFIG_LINKS
19455   CONFIG_COMMANDS = $CONFIG_COMMANDS
19456   $ $0 $@
19457
19458 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19459 "
19460
19461 _ACEOF
19462
19463 case $ac_config_files in *"
19464 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19465 esac
19466
19467 case $ac_config_headers in *"
19468 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19469 esac
19470
19471
19472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19473 # Files that config.status was made for.
19474 config_files="$ac_config_files"
19475 config_headers="$ac_config_headers"
19476 config_commands="$ac_config_commands"
19477
19478 _ACEOF
19479
19480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19481 ac_cs_usage="\
19482 \`$as_me' instantiates files and other configuration actions
19483 from templates according to the current configuration.  Unless the files
19484 and actions are specified as TAGs, all are instantiated by default.
19485
19486 Usage: $0 [OPTION]... [TAG]...
19487
19488   -h, --help       print this help, then exit
19489   -V, --version    print version number and configuration settings, then exit
19490       --config     print configuration, then exit
19491   -q, --quiet, --silent
19492                    do not print progress messages
19493   -d, --debug      don't remove temporary files
19494       --recheck    update $as_me by reconfiguring in the same conditions
19495       --file=FILE[:TEMPLATE] 
19496                    instantiate the configuration file FILE
19497       --header=FILE[:TEMPLATE] 
19498                    instantiate the configuration header FILE
19499
19500 Configuration files:
19501 $config_files
19502
19503 Configuration headers:
19504 $config_headers
19505
19506 Configuration commands:
19507 $config_commands
19508
19509 Report bugs to <vlm@lionet.info>."
19510
19511 _ACEOF
19512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19513 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19514 ac_cs_version="\\
19515 asn1c config.status 0.9.29
19516 configured by $0, generated by GNU Autoconf 2.69,
19517   with options \\"\$ac_cs_config\\"
19518
19519 Copyright (C) 2012 Free Software Foundation, Inc.
19520 This config.status script is free software; the Free Software Foundation
19521 gives unlimited permission to copy, distribute and modify it."
19522
19523 ac_pwd='$ac_pwd'
19524 srcdir='$srcdir'
19525 INSTALL='$INSTALL'
19526 MKDIR_P='$MKDIR_P'
19527 AWK='$AWK'
19528 test -n "\$AWK" || AWK=awk
19529 _ACEOF
19530
19531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19532 # The default lists apply if the user does not specify any file.
19533 ac_need_defaults=:
19534 while test $# != 0
19535 do
19536   case $1 in
19537   --*=?*)
19538     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19539     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19540     ac_shift=:
19541     ;;
19542   --*=)
19543     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19544     ac_optarg=
19545     ac_shift=:
19546     ;;
19547   *)
19548     ac_option=$1
19549     ac_optarg=$2
19550     ac_shift=shift
19551     ;;
19552   esac
19553
19554   case $ac_option in
19555   # Handling of the options.
19556   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19557     ac_cs_recheck=: ;;
19558   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19559     $as_echo "$ac_cs_version"; exit ;;
19560   --config | --confi | --conf | --con | --co | --c )
19561     $as_echo "$ac_cs_config"; exit ;;
19562   --debug | --debu | --deb | --de | --d | -d )
19563     debug=: ;;
19564   --file | --fil | --fi | --f )
19565     $ac_shift
19566     case $ac_optarg in
19567     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19568     '') as_fn_error $? "missing file argument" ;;
19569     esac
19570     as_fn_append CONFIG_FILES " '$ac_optarg'"
19571     ac_need_defaults=false;;
19572   --header | --heade | --head | --hea )
19573     $ac_shift
19574     case $ac_optarg in
19575     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19576     esac
19577     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19578     ac_need_defaults=false;;
19579   --he | --h)
19580     # Conflict between --help and --header
19581     as_fn_error $? "ambiguous option: \`$1'
19582 Try \`$0 --help' for more information.";;
19583   --help | --hel | -h )
19584     $as_echo "$ac_cs_usage"; exit ;;
19585   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19586   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19587     ac_cs_silent=: ;;
19588
19589   # This is an error.
19590   -*) as_fn_error $? "unrecognized option: \`$1'
19591 Try \`$0 --help' for more information." ;;
19592
19593   *) as_fn_append ac_config_targets " $1"
19594      ac_need_defaults=false ;;
19595
19596   esac
19597   shift
19598 done
19599
19600 ac_configure_extra_args=
19601
19602 if $ac_cs_silent; then
19603   exec 6>/dev/null
19604   ac_configure_extra_args="$ac_configure_extra_args --silent"
19605 fi
19606
19607 _ACEOF
19608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19609 if \$ac_cs_recheck; then
19610   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19611   shift
19612   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19613   CONFIG_SHELL='$SHELL'
19614   export CONFIG_SHELL
19615   exec "\$@"
19616 fi
19617
19618 _ACEOF
19619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19620 exec 5>>config.log
19621 {
19622   echo
19623   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
19624 @%:@@%:@ Running $as_me. @%:@@%:@
19625 _ASBOX
19626   $as_echo "$ac_log"
19627 } >&5
19628
19629 _ACEOF
19630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19631 #
19632 # INIT-COMMANDS
19633 #
19634 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19635
19636
19637 # The HP-UX ksh and POSIX shell print the target directory to stdout
19638 # if CDPATH is set.
19639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19640
19641 sed_quote_subst='$sed_quote_subst'
19642 double_quote_subst='$double_quote_subst'
19643 delay_variable_subst='$delay_variable_subst'
19644 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19645 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19646 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19647 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19648 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19649 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19650 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19651 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19652 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19653 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19654 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19655 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19656 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19657 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19658 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19659 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19660 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19661 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19662 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19663 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19664 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19665 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19666 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19667 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19668 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19669 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19670 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19671 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19672 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19673 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19674 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19675 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19676 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19677 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19678 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19679 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19680 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19681 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19682 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19683 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19684 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19685 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19686 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19687 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19688 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19689 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19690 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19691 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19692 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19693 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19694 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19695 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19696 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19697 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19698 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19699 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19700 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19701 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19702 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"`'
19703 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19704 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19705 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19706 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19707 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19708 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19709 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19710 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19711 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19712 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19713 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19714 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19715 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19716 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19717 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19718 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19719 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19720 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19721 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19722 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19723 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19724 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19725 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19726 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19727 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19728 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19729 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19730 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19731 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19732 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19733 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19734 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19735 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19736 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19737 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19738 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19739 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19740 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19741 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19742 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19743 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19744 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19745 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19746 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19747 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19748 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19749 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19750 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19751 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19752 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19753 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19754 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19755 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19756 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19757 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19758 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19759 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19760 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19761 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19762 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19763 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19764 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19765 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19766 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19767 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19768 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19769 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19770 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19771 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19772 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19773 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19774 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19775 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19776 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19777 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19778 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19779 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19780 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19781 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19782 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19783 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19784 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19785 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19786 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19787 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19788 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19789 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19790 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19791 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19792 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19793 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19794 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19795 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19796 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19797 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19798 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19799 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19800 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19801 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19802 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19803 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19804 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19805 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19806 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19807 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19808 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19809 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19810 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19811 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19812 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19813 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19814 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19815 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19816 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19817 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19818 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19819 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19820 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19821 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19822 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19823 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19824 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19825 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19826 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19827 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19828 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19829 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19830 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19831 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19832 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19833
19834 LTCC='$LTCC'
19835 LTCFLAGS='$LTCFLAGS'
19836 compiler='$compiler_DEFAULT'
19837
19838 # A function that is used when there is no print builtin or printf.
19839 func_fallback_echo ()
19840 {
19841   eval 'cat <<_LTECHO_EOF
19842 \$1
19843 _LTECHO_EOF'
19844 }
19845
19846 # Quote evaled strings.
19847 for var in SHELL \
19848 ECHO \
19849 PATH_SEPARATOR \
19850 SED \
19851 GREP \
19852 EGREP \
19853 FGREP \
19854 LD \
19855 NM \
19856 LN_S \
19857 lt_SP2NL \
19858 lt_NL2SP \
19859 reload_flag \
19860 OBJDUMP \
19861 deplibs_check_method \
19862 file_magic_cmd \
19863 file_magic_glob \
19864 want_nocaseglob \
19865 DLLTOOL \
19866 sharedlib_from_linklib_cmd \
19867 AR \
19868 AR_FLAGS \
19869 archiver_list_spec \
19870 STRIP \
19871 RANLIB \
19872 CC \
19873 CFLAGS \
19874 compiler \
19875 lt_cv_sys_global_symbol_pipe \
19876 lt_cv_sys_global_symbol_to_cdecl \
19877 lt_cv_sys_global_symbol_to_import \
19878 lt_cv_sys_global_symbol_to_c_name_address \
19879 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19880 lt_cv_nm_interface \
19881 nm_file_list_spec \
19882 lt_cv_truncate_bin \
19883 lt_prog_compiler_no_builtin_flag \
19884 lt_prog_compiler_pic \
19885 lt_prog_compiler_wl \
19886 lt_prog_compiler_static \
19887 lt_cv_prog_compiler_c_o \
19888 need_locks \
19889 MANIFEST_TOOL \
19890 DSYMUTIL \
19891 NMEDIT \
19892 LIPO \
19893 OTOOL \
19894 OTOOL64 \
19895 shrext_cmds \
19896 export_dynamic_flag_spec \
19897 whole_archive_flag_spec \
19898 compiler_needs_object \
19899 with_gnu_ld \
19900 allow_undefined_flag \
19901 no_undefined_flag \
19902 hardcode_libdir_flag_spec \
19903 hardcode_libdir_separator \
19904 exclude_expsyms \
19905 include_expsyms \
19906 file_list_spec \
19907 variables_saved_for_relink \
19908 libname_spec \
19909 library_names_spec \
19910 soname_spec \
19911 install_override_mode \
19912 finish_eval \
19913 old_striplib \
19914 striplib \
19915 compiler_lib_search_dirs \
19916 predep_objects \
19917 postdep_objects \
19918 predeps \
19919 postdeps \
19920 compiler_lib_search_path \
19921 LD_CXX \
19922 reload_flag_CXX \
19923 compiler_CXX \
19924 lt_prog_compiler_no_builtin_flag_CXX \
19925 lt_prog_compiler_pic_CXX \
19926 lt_prog_compiler_wl_CXX \
19927 lt_prog_compiler_static_CXX \
19928 lt_cv_prog_compiler_c_o_CXX \
19929 export_dynamic_flag_spec_CXX \
19930 whole_archive_flag_spec_CXX \
19931 compiler_needs_object_CXX \
19932 with_gnu_ld_CXX \
19933 allow_undefined_flag_CXX \
19934 no_undefined_flag_CXX \
19935 hardcode_libdir_flag_spec_CXX \
19936 hardcode_libdir_separator_CXX \
19937 exclude_expsyms_CXX \
19938 include_expsyms_CXX \
19939 file_list_spec_CXX \
19940 compiler_lib_search_dirs_CXX \
19941 predep_objects_CXX \
19942 postdep_objects_CXX \
19943 predeps_CXX \
19944 postdeps_CXX \
19945 compiler_lib_search_path_CXX; do
19946     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19947     *[\\\\\\\`\\"\\\$]*)
19948       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19949       ;;
19950     *)
19951       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19952       ;;
19953     esac
19954 done
19955
19956 # Double-quote double-evaled strings.
19957 for var in reload_cmds \
19958 old_postinstall_cmds \
19959 old_postuninstall_cmds \
19960 old_archive_cmds \
19961 extract_expsyms_cmds \
19962 old_archive_from_new_cmds \
19963 old_archive_from_expsyms_cmds \
19964 archive_cmds \
19965 archive_expsym_cmds \
19966 module_cmds \
19967 module_expsym_cmds \
19968 export_symbols_cmds \
19969 prelink_cmds \
19970 postlink_cmds \
19971 postinstall_cmds \
19972 postuninstall_cmds \
19973 finish_cmds \
19974 sys_lib_search_path_spec \
19975 configure_time_dlsearch_path \
19976 configure_time_lt_sys_library_path \
19977 reload_cmds_CXX \
19978 old_archive_cmds_CXX \
19979 old_archive_from_new_cmds_CXX \
19980 old_archive_from_expsyms_cmds_CXX \
19981 archive_cmds_CXX \
19982 archive_expsym_cmds_CXX \
19983 module_cmds_CXX \
19984 module_expsym_cmds_CXX \
19985 export_symbols_cmds_CXX \
19986 prelink_cmds_CXX \
19987 postlink_cmds_CXX; do
19988     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19989     *[\\\\\\\`\\"\\\$]*)
19990       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19991       ;;
19992     *)
19993       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19994       ;;
19995     esac
19996 done
19997
19998 ac_aux_dir='$ac_aux_dir'
19999
20000 # See if we are running on zsh, and set the options that allow our
20001 # commands through without removal of \ escapes INIT.
20002 if test -n "\${ZSH_VERSION+set}"; then
20003    setopt NO_GLOB_SUBST
20004 fi
20005
20006
20007     PACKAGE='$PACKAGE'
20008     VERSION='$VERSION'
20009     RM='$RM'
20010     ofile='$ofile'
20011
20012
20013
20014
20015
20016
20017 _ACEOF
20018
20019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20020
20021 # Handling of arguments.
20022 for ac_config_target in $ac_config_targets
20023 do
20024   case $ac_config_target in
20025     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20026     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20027     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20028     "tests/tests-c-compiler/check-src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-c-compiler/check-src/Makefile" ;;
20029     "tests/tests-asn1c-compiler/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-asn1c-compiler/Makefile" ;;
20030     "tests/tests-asn1c-smoke/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-asn1c-smoke/Makefile" ;;
20031     "tests/tests-randomized/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-randomized/Makefile" ;;
20032     "tests/tests-c-compiler/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-c-compiler/Makefile" ;;
20033     "tests/tests-skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tests-skeletons/Makefile" ;;
20034     "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
20035     "libasn1common/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1common/Makefile" ;;
20036     "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
20037     "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
20038     "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
20039     "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;;
20040     "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
20041     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20042     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20043     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20044     "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
20045     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20046     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20047
20048   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20049   esac
20050 done
20051
20052
20053 # If the user did not use the arguments to specify the items to instantiate,
20054 # then the envvar interface is used.  Set only those that are not.
20055 # We use the long form for the default assignment because of an extremely
20056 # bizarre bug on SunOS 4.1.3.
20057 if $ac_need_defaults; then
20058   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20059   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20060   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20061 fi
20062
20063 # Have a temporary directory for convenience.  Make it in the build tree
20064 # simply because there is no reason against having it here, and in addition,
20065 # creating and moving files from /tmp can sometimes cause problems.
20066 # Hook for its removal unless debugging.
20067 # Note that there is a small window in which the directory will not be cleaned:
20068 # after its creation but before its name has been assigned to `$tmp'.
20069 $debug ||
20070 {
20071   tmp= ac_tmp=
20072   trap 'exit_status=$?
20073   : "${ac_tmp:=$tmp}"
20074   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20075 ' 0
20076   trap 'as_fn_exit 1' 1 2 13 15
20077 }
20078 # Create a (secure) tmp directory for tmp files.
20079
20080 {
20081   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20082   test -d "$tmp"
20083 }  ||
20084 {
20085   tmp=./conf$$-$RANDOM
20086   (umask 077 && mkdir "$tmp")
20087 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20088 ac_tmp=$tmp
20089
20090 # Set up the scripts for CONFIG_FILES section.
20091 # No need to generate them if there are no CONFIG_FILES.
20092 # This happens for instance with `./config.status config.h'.
20093 if test -n "$CONFIG_FILES"; then
20094
20095
20096 ac_cr=`echo X | tr X '\015'`
20097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20098 # But we know of no other shell where ac_cr would be empty at this
20099 # point, so we can use a bashism as a fallback.
20100 if test "x$ac_cr" = x; then
20101   eval ac_cr=\$\'\\r\'
20102 fi
20103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20105   ac_cs_awk_cr='\\r'
20106 else
20107   ac_cs_awk_cr=$ac_cr
20108 fi
20109
20110 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20111 _ACEOF
20112
20113
20114 {
20115   echo "cat >conf$$subs.awk <<_ACEOF" &&
20116   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20117   echo "_ACEOF"
20118 } >conf$$subs.sh ||
20119   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20121 ac_delim='%!_!# '
20122 for ac_last_try in false false false false false :; do
20123   . ./conf$$subs.sh ||
20124     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20125
20126   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20127   if test $ac_delim_n = $ac_delim_num; then
20128     break
20129   elif $ac_last_try; then
20130     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20131   else
20132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20133   fi
20134 done
20135 rm -f conf$$subs.sh
20136
20137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20138 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20139 _ACEOF
20140 sed -n '
20141 h
20142 s/^/S["/; s/!.*/"]=/
20143 p
20144 g
20145 s/^[^!]*!//
20146 :repl
20147 t repl
20148 s/'"$ac_delim"'$//
20149 t delim
20150 :nl
20151 h
20152 s/\(.\{148\}\)..*/\1/
20153 t more1
20154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20155 p
20156 n
20157 b repl
20158 :more1
20159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20160 p
20161 g
20162 s/.\{148\}//
20163 t nl
20164 :delim
20165 h
20166 s/\(.\{148\}\)..*/\1/
20167 t more2
20168 s/["\\]/\\&/g; s/^/"/; s/$/"/
20169 p
20170 b
20171 :more2
20172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20173 p
20174 g
20175 s/.\{148\}//
20176 t delim
20177 ' <conf$$subs.awk | sed '
20178 /^[^""]/{
20179   N
20180   s/\n//
20181 }
20182 ' >>$CONFIG_STATUS || ac_write_fail=1
20183 rm -f conf$$subs.awk
20184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20185 _ACAWK
20186 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20187   for (key in S) S_is_set[key] = 1
20188   FS = "\a"
20189
20190 }
20191 {
20192   line = $ 0
20193   nfields = split(line, field, "@")
20194   substed = 0
20195   len = length(field[1])
20196   for (i = 2; i < nfields; i++) {
20197     key = field[i]
20198     keylen = length(key)
20199     if (S_is_set[key]) {
20200       value = S[key]
20201       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20202       len += length(value) + length(field[++i])
20203       substed = 1
20204     } else
20205       len += 1 + keylen
20206   }
20207
20208   print line
20209 }
20210
20211 _ACAWK
20212 _ACEOF
20213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20215   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20216 else
20217   cat
20218 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20219   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20220 _ACEOF
20221
20222 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20223 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20224 # trailing colons and then remove the whole line if VPATH becomes empty
20225 # (actually we leave an empty line to preserve line numbers).
20226 if test "x$srcdir" = x.; then
20227   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20228 h
20229 s///
20230 s/^/:/
20231 s/[      ]*$/:/
20232 s/:\$(srcdir):/:/g
20233 s/:\${srcdir}:/:/g
20234 s/:@srcdir@:/:/g
20235 s/^:*//
20236 s/:*$//
20237 x
20238 s/\(=[   ]*\).*/\1/
20239 G
20240 s/\n//
20241 s/^[^=]*=[       ]*$//
20242 }'
20243 fi
20244
20245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20246 fi # test -n "$CONFIG_FILES"
20247
20248 # Set up the scripts for CONFIG_HEADERS section.
20249 # No need to generate them if there are no CONFIG_HEADERS.
20250 # This happens for instance with `./config.status Makefile'.
20251 if test -n "$CONFIG_HEADERS"; then
20252 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20253 BEGIN {
20254 _ACEOF
20255
20256 # Transform confdefs.h into an awk script `defines.awk', embedded as
20257 # here-document in config.status, that substitutes the proper values into
20258 # config.h.in to produce config.h.
20259
20260 # Create a delimiter string that does not exist in confdefs.h, to ease
20261 # handling of long lines.
20262 ac_delim='%!_!# '
20263 for ac_last_try in false false :; do
20264   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20265   if test -z "$ac_tt"; then
20266     break
20267   elif $ac_last_try; then
20268     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20269   else
20270     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20271   fi
20272 done
20273
20274 # For the awk script, D is an array of macro values keyed by name,
20275 # likewise P contains macro parameters if any.  Preserve backslash
20276 # newline sequences.
20277
20278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20279 sed -n '
20280 s/.\{148\}/&'"$ac_delim"'/g
20281 t rset
20282 :rset
20283 s/^[     ]*#[    ]*define[       ][      ]*/ /
20284 t def
20285 d
20286 :def
20287 s/\\$//
20288 t bsnl
20289 s/["\\]/\\&/g
20290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20291 D["\1"]=" \3"/p
20292 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20293 d
20294 :bsnl
20295 s/["\\]/\\&/g
20296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20297 D["\1"]=" \3\\\\\\n"\\/p
20298 t cont
20299 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20300 t cont
20301 d
20302 :cont
20303 n
20304 s/.\{148\}/&'"$ac_delim"'/g
20305 t clear
20306 :clear
20307 s/\\$//
20308 t bsnlc
20309 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20310 d
20311 :bsnlc
20312 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20313 b cont
20314 ' <confdefs.h | sed '
20315 s/'"$ac_delim"'/"\\\
20316 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20317
20318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20319   for (key in D) D_is_set[key] = 1
20320   FS = "\a"
20321 }
20322 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20323   line = \$ 0
20324   split(line, arg, " ")
20325   if (arg[1] == "#") {
20326     defundef = arg[2]
20327     mac1 = arg[3]
20328   } else {
20329     defundef = substr(arg[1], 2)
20330     mac1 = arg[2]
20331   }
20332   split(mac1, mac2, "(") #)
20333   macro = mac2[1]
20334   prefix = substr(line, 1, index(line, defundef) - 1)
20335   if (D_is_set[macro]) {
20336     # Preserve the white space surrounding the "#".
20337     print prefix "define", macro P[macro] D[macro]
20338     next
20339   } else {
20340     # Replace #undef with comments.  This is necessary, for example,
20341     # in the case of _POSIX_SOURCE, which is predefined and required
20342     # on some systems where configure will not decide to define it.
20343     if (defundef == "undef") {
20344       print "/*", prefix defundef, macro, "*/"
20345       next
20346     }
20347   }
20348 }
20349 { print }
20350 _ACAWK
20351 _ACEOF
20352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20353   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20354 fi # test -n "$CONFIG_HEADERS"
20355
20356
20357 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20358 shift
20359 for ac_tag
20360 do
20361   case $ac_tag in
20362   :[FHLC]) ac_mode=$ac_tag; continue;;
20363   esac
20364   case $ac_mode$ac_tag in
20365   :[FHL]*:*);;
20366   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20367   :[FH]-) ac_tag=-:-;;
20368   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20369   esac
20370   ac_save_IFS=$IFS
20371   IFS=:
20372   set x $ac_tag
20373   IFS=$ac_save_IFS
20374   shift
20375   ac_file=$1
20376   shift
20377
20378   case $ac_mode in
20379   :L) ac_source=$1;;
20380   :[FH])
20381     ac_file_inputs=
20382     for ac_f
20383     do
20384       case $ac_f in
20385       -) ac_f="$ac_tmp/stdin";;
20386       *) # Look for the file first in the build tree, then in the source tree
20387          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20388          # because $ac_f cannot contain `:'.
20389          test -f "$ac_f" ||
20390            case $ac_f in
20391            [\\/$]*) false;;
20392            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20393            esac ||
20394            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20395       esac
20396       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20397       as_fn_append ac_file_inputs " '$ac_f'"
20398     done
20399
20400     # Let's still pretend it is `configure' which instantiates (i.e., don't
20401     # use $as_me), people would be surprised to read:
20402     #    /* config.h.  Generated by config.status.  */
20403     configure_input='Generated from '`
20404           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20405         `' by configure.'
20406     if test x"$ac_file" != x-; then
20407       configure_input="$ac_file.  $configure_input"
20408       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20409 $as_echo "$as_me: creating $ac_file" >&6;}
20410     fi
20411     # Neutralize special characters interpreted by sed in replacement strings.
20412     case $configure_input in #(
20413     *\&* | *\|* | *\\* )
20414        ac_sed_conf_input=`$as_echo "$configure_input" |
20415        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20416     *) ac_sed_conf_input=$configure_input;;
20417     esac
20418
20419     case $ac_tag in
20420     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20421       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20422     esac
20423     ;;
20424   esac
20425
20426   ac_dir=`$as_dirname -- "$ac_file" ||
20427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20428          X"$ac_file" : 'X\(//\)[^/]' \| \
20429          X"$ac_file" : 'X\(//\)$' \| \
20430          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20431 $as_echo X"$ac_file" |
20432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20433             s//\1/
20434             q
20435           }
20436           /^X\(\/\/\)[^/].*/{
20437             s//\1/
20438             q
20439           }
20440           /^X\(\/\/\)$/{
20441             s//\1/
20442             q
20443           }
20444           /^X\(\/\).*/{
20445             s//\1/
20446             q
20447           }
20448           s/.*/./; q'`
20449   as_dir="$ac_dir"; as_fn_mkdir_p
20450   ac_builddir=.
20451
20452 case "$ac_dir" in
20453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20454 *)
20455   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20456   # A ".." for each directory in $ac_dir_suffix.
20457   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20458   case $ac_top_builddir_sub in
20459   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20460   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20461   esac ;;
20462 esac
20463 ac_abs_top_builddir=$ac_pwd
20464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20465 # for backward compatibility:
20466 ac_top_builddir=$ac_top_build_prefix
20467
20468 case $srcdir in
20469   .)  # We are building in place.
20470     ac_srcdir=.
20471     ac_top_srcdir=$ac_top_builddir_sub
20472     ac_abs_top_srcdir=$ac_pwd ;;
20473   [\\/]* | ?:[\\/]* )  # Absolute name.
20474     ac_srcdir=$srcdir$ac_dir_suffix;
20475     ac_top_srcdir=$srcdir
20476     ac_abs_top_srcdir=$srcdir ;;
20477   *) # Relative name.
20478     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20479     ac_top_srcdir=$ac_top_build_prefix$srcdir
20480     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20481 esac
20482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20483
20484
20485   case $ac_mode in
20486   :F)
20487   #
20488   # CONFIG_FILE
20489   #
20490
20491   case $INSTALL in
20492   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20493   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20494   esac
20495   ac_MKDIR_P=$MKDIR_P
20496   case $MKDIR_P in
20497   [\\/$]* | ?:[\\/]* ) ;;
20498   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20499   esac
20500 _ACEOF
20501
20502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20503 # If the template does not know about datarootdir, expand it.
20504 # FIXME: This hack should be removed a few years after 2.60.
20505 ac_datarootdir_hack=; ac_datarootdir_seen=
20506 ac_sed_dataroot='
20507 /datarootdir/ {
20508   p
20509   q
20510 }
20511 /@datadir@/p
20512 /@docdir@/p
20513 /@infodir@/p
20514 /@localedir@/p
20515 /@mandir@/p'
20516 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20517 *datarootdir*) ac_datarootdir_seen=yes;;
20518 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20520 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20521 _ACEOF
20522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20523   ac_datarootdir_hack='
20524   s&@datadir@&$datadir&g
20525   s&@docdir@&$docdir&g
20526   s&@infodir@&$infodir&g
20527   s&@localedir@&$localedir&g
20528   s&@mandir@&$mandir&g
20529   s&\\\${datarootdir}&$datarootdir&g' ;;
20530 esac
20531 _ACEOF
20532
20533 # Neutralize VPATH when `$srcdir' = `.'.
20534 # Shell code in configure.ac might set extrasub.
20535 # FIXME: do we really want to maintain this feature?
20536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20537 ac_sed_extra="$ac_vpsub
20538 $extrasub
20539 _ACEOF
20540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20541 :t
20542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20543 s|@configure_input@|$ac_sed_conf_input|;t t
20544 s&@top_builddir@&$ac_top_builddir_sub&;t t
20545 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20546 s&@srcdir@&$ac_srcdir&;t t
20547 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20548 s&@top_srcdir@&$ac_top_srcdir&;t t
20549 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20550 s&@builddir@&$ac_builddir&;t t
20551 s&@abs_builddir@&$ac_abs_builddir&;t t
20552 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20553 s&@INSTALL@&$ac_INSTALL&;t t
20554 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20555 $ac_datarootdir_hack
20556 "
20557 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20558   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20559
20560 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20561   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20562   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20563       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20565 which seems to be undefined.  Please make sure it is defined" >&5
20566 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20567 which seems to be undefined.  Please make sure it is defined" >&2;}
20568
20569   rm -f "$ac_tmp/stdin"
20570   case $ac_file in
20571   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20572   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20573   esac \
20574   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20575  ;;
20576   :H)
20577   #
20578   # CONFIG_HEADER
20579   #
20580   if test x"$ac_file" != x-; then
20581     {
20582       $as_echo "/* $configure_input  */" \
20583       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20584     } >"$ac_tmp/config.h" \
20585       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20586     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20587       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20588 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20589     else
20590       rm -f "$ac_file"
20591       mv "$ac_tmp/config.h" "$ac_file" \
20592         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20593     fi
20594   else
20595     $as_echo "/* $configure_input  */" \
20596       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20597       || as_fn_error $? "could not create -" "$LINENO" 5
20598   fi
20599 # Compute "$ac_file"'s index in $config_headers.
20600 _am_arg="$ac_file"
20601 _am_stamp_count=1
20602 for _am_header in $config_headers :; do
20603   case $_am_header in
20604     $_am_arg | $_am_arg:* )
20605       break ;;
20606     * )
20607       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20608   esac
20609 done
20610 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20611 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20612          X"$_am_arg" : 'X\(//\)[^/]' \| \
20613          X"$_am_arg" : 'X\(//\)$' \| \
20614          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20615 $as_echo X"$_am_arg" |
20616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20617             s//\1/
20618             q
20619           }
20620           /^X\(\/\/\)[^/].*/{
20621             s//\1/
20622             q
20623           }
20624           /^X\(\/\/\)$/{
20625             s//\1/
20626             q
20627           }
20628           /^X\(\/\).*/{
20629             s//\1/
20630             q
20631           }
20632           s/.*/./; q'`/stamp-h$_am_stamp_count
20633  ;;
20634   
20635   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20636 $as_echo "$as_me: executing $ac_file commands" >&6;}
20637  ;;
20638   esac
20639
20640
20641   case $ac_file$ac_mode in
20642     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20643   # Older Autoconf quotes --file arguments for eval, but not when files
20644   # are listed without --file.  Let's play safe and only enable the eval
20645   # if we detect the quoting.
20646   case $CONFIG_FILES in
20647   *\'*) eval set x "$CONFIG_FILES" ;;
20648   *)   set x $CONFIG_FILES ;;
20649   esac
20650   shift
20651   for mf
20652   do
20653     # Strip MF so we end up with the name of the file.
20654     mf=`echo "$mf" | sed -e 's/:.*$//'`
20655     # Check whether this is an Automake generated Makefile or not.
20656     # We used to match only the files named 'Makefile.in', but
20657     # some people rename them; so instead we look at the file content.
20658     # Grep'ing the first line is not enough: some people post-process
20659     # each Makefile.in and add a new line on top of each file to say so.
20660     # Grep'ing the whole file is not good either: AIX grep has a line
20661     # limit of 2048, but all sed's we know have understand at least 4000.
20662     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20663       dirpart=`$as_dirname -- "$mf" ||
20664 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20665          X"$mf" : 'X\(//\)[^/]' \| \
20666          X"$mf" : 'X\(//\)$' \| \
20667          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20668 $as_echo X"$mf" |
20669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20670             s//\1/
20671             q
20672           }
20673           /^X\(\/\/\)[^/].*/{
20674             s//\1/
20675             q
20676           }
20677           /^X\(\/\/\)$/{
20678             s//\1/
20679             q
20680           }
20681           /^X\(\/\).*/{
20682             s//\1/
20683             q
20684           }
20685           s/.*/./; q'`
20686     else
20687       continue
20688     fi
20689     # Extract the definition of DEPDIR, am__include, and am__quote
20690     # from the Makefile without running 'make'.
20691     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20692     test -z "$DEPDIR" && continue
20693     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20694     test -z "$am__include" && continue
20695     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20696     # Find all dependency output files, they are included files with
20697     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20698     # simplest approach to changing $(DEPDIR) to its actual value in the
20699     # expansion.
20700     for file in `sed -n "
20701       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20702          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20703       # Make sure the directory exists.
20704       test -f "$dirpart/$file" && continue
20705       fdir=`$as_dirname -- "$file" ||
20706 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20707          X"$file" : 'X\(//\)[^/]' \| \
20708          X"$file" : 'X\(//\)$' \| \
20709          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20710 $as_echo X"$file" |
20711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20712             s//\1/
20713             q
20714           }
20715           /^X\(\/\/\)[^/].*/{
20716             s//\1/
20717             q
20718           }
20719           /^X\(\/\/\)$/{
20720             s//\1/
20721             q
20722           }
20723           /^X\(\/\).*/{
20724             s//\1/
20725             q
20726           }
20727           s/.*/./; q'`
20728       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20729       # echo "creating $dirpart/$file"
20730       echo '# dummy' > "$dirpart/$file"
20731     done
20732   done
20733 }
20734  ;;
20735     "libtool":C) 
20736     
20737     # See if we are running on zsh, and set the options that allow our
20738     # commands through without removal of \ escapes.
20739     if test -n "${ZSH_VERSION+set}"; then
20740       setopt NO_GLOB_SUBST
20741     fi
20742
20743     cfgfile=${ofile}T
20744     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20745     $RM "$cfgfile"
20746
20747     cat <<_LT_EOF >> "$cfgfile"
20748 #! $SHELL
20749 # Generated automatically by $as_me ($PACKAGE) $VERSION
20750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20751 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20752
20753 # Provide generalized library-building support services.
20754 # Written by Gordon Matzigkeit, 1996
20755
20756 # Copyright (C) 2014 Free Software Foundation, Inc.
20757 # This is free software; see the source for copying conditions.  There is NO
20758 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20759
20760 # GNU Libtool is free software; you can redistribute it and/or modify
20761 # it under the terms of the GNU General Public License as published by
20762 # the Free Software Foundation; either version 2 of of the License, or
20763 # (at your option) any later version.
20764 #
20765 # As a special exception to the GNU General Public License, if you
20766 # distribute this file as part of a program or library that is built
20767 # using GNU Libtool, you may include this file under the  same
20768 # distribution terms that you use for the rest of that program.
20769 #
20770 # GNU Libtool is distributed in the hope that it will be useful, but
20771 # WITHOUT ANY WARRANTY; without even the implied warranty of
20772 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20773 # GNU General Public License for more details.
20774 #
20775 # You should have received a copy of the GNU General Public License
20776 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20777
20778
20779 # The names of the tagged configurations supported by this script.
20780 available_tags='CXX '
20781
20782 # Configured defaults for sys_lib_dlsearch_path munging.
20783 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20784
20785 # ### BEGIN LIBTOOL CONFIG
20786
20787 # Which release of libtool.m4 was used?
20788 macro_version=$macro_version
20789 macro_revision=$macro_revision
20790
20791 # Whether or not to build shared libraries.
20792 build_libtool_libs=$enable_shared
20793
20794 # Whether or not to build static libraries.
20795 build_old_libs=$enable_static
20796
20797 # What type of objects to build.
20798 pic_mode=$pic_mode
20799
20800 # Whether or not to optimize for fast installation.
20801 fast_install=$enable_fast_install
20802
20803 # Shared archive member basename,for filename based shared library versioning on AIX.
20804 shared_archive_member_spec=$shared_archive_member_spec
20805
20806 # Shell to use when invoking shell scripts.
20807 SHELL=$lt_SHELL
20808
20809 # An echo program that protects backslashes.
20810 ECHO=$lt_ECHO
20811
20812 # The PATH separator for the build system.
20813 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20814
20815 # The host system.
20816 host_alias=$host_alias
20817 host=$host
20818 host_os=$host_os
20819
20820 # The build system.
20821 build_alias=$build_alias
20822 build=$build
20823 build_os=$build_os
20824
20825 # A sed program that does not truncate output.
20826 SED=$lt_SED
20827
20828 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20829 Xsed="\$SED -e 1s/^X//"
20830
20831 # A grep program that handles long lines.
20832 GREP=$lt_GREP
20833
20834 # An ERE matcher.
20835 EGREP=$lt_EGREP
20836
20837 # A literal string matcher.
20838 FGREP=$lt_FGREP
20839
20840 # A BSD- or MS-compatible name lister.
20841 NM=$lt_NM
20842
20843 # Whether we need soft or hard links.
20844 LN_S=$lt_LN_S
20845
20846 # What is the maximum length of a command?
20847 max_cmd_len=$max_cmd_len
20848
20849 # Object file suffix (normally "o").
20850 objext=$ac_objext
20851
20852 # Executable file suffix (normally "").
20853 exeext=$exeext
20854
20855 # whether the shell understands "unset".
20856 lt_unset=$lt_unset
20857
20858 # turn spaces into newlines.
20859 SP2NL=$lt_lt_SP2NL
20860
20861 # turn newlines into spaces.
20862 NL2SP=$lt_lt_NL2SP
20863
20864 # convert \$build file names to \$host format.
20865 to_host_file_cmd=$lt_cv_to_host_file_cmd
20866
20867 # convert \$build files to toolchain format.
20868 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20869
20870 # An object symbol dumper.
20871 OBJDUMP=$lt_OBJDUMP
20872
20873 # Method to check whether dependent libraries are shared objects.
20874 deplibs_check_method=$lt_deplibs_check_method
20875
20876 # Command to use when deplibs_check_method = "file_magic".
20877 file_magic_cmd=$lt_file_magic_cmd
20878
20879 # How to find potential files when deplibs_check_method = "file_magic".
20880 file_magic_glob=$lt_file_magic_glob
20881
20882 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20883 want_nocaseglob=$lt_want_nocaseglob
20884
20885 # DLL creation program.
20886 DLLTOOL=$lt_DLLTOOL
20887
20888 # Command to associate shared and link libraries.
20889 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20890
20891 # The archiver.
20892 AR=$lt_AR
20893
20894 # Flags to create an archive.
20895 AR_FLAGS=$lt_AR_FLAGS
20896
20897 # How to feed a file listing to the archiver.
20898 archiver_list_spec=$lt_archiver_list_spec
20899
20900 # A symbol stripping program.
20901 STRIP=$lt_STRIP
20902
20903 # Commands used to install an old-style archive.
20904 RANLIB=$lt_RANLIB
20905 old_postinstall_cmds=$lt_old_postinstall_cmds
20906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20907
20908 # Whether to use a lock for old archive extraction.
20909 lock_old_archive_extraction=$lock_old_archive_extraction
20910
20911 # A C compiler.
20912 LTCC=$lt_CC
20913
20914 # LTCC compiler flags.
20915 LTCFLAGS=$lt_CFLAGS
20916
20917 # Take the output of nm and produce a listing of raw symbols and C names.
20918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20919
20920 # Transform the output of nm in a proper C declaration.
20921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20922
20923 # Transform the output of nm into a list of symbols to manually relocate.
20924 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20925
20926 # Transform the output of nm in a C name address pair.
20927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20928
20929 # Transform the output of nm in a C name address pair when lib prefix is needed.
20930 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20931
20932 # The name lister interface.
20933 nm_interface=$lt_lt_cv_nm_interface
20934
20935 # Specify filename containing input files for \$NM.
20936 nm_file_list_spec=$lt_nm_file_list_spec
20937
20938 # The root where to search for dependent libraries,and where our libraries should be installed.
20939 lt_sysroot=$lt_sysroot
20940
20941 # Command to truncate a binary pipe.
20942 lt_truncate_bin=$lt_lt_cv_truncate_bin
20943
20944 # The name of the directory that contains temporary libtool files.
20945 objdir=$objdir
20946
20947 # Used to examine libraries when file_magic_cmd begins with "file".
20948 MAGIC_CMD=$MAGIC_CMD
20949
20950 # Must we lock files when doing compilation?
20951 need_locks=$lt_need_locks
20952
20953 # Manifest tool.
20954 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20955
20956 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20957 DSYMUTIL=$lt_DSYMUTIL
20958
20959 # Tool to change global to local symbols on Mac OS X.
20960 NMEDIT=$lt_NMEDIT
20961
20962 # Tool to manipulate fat objects and archives on Mac OS X.
20963 LIPO=$lt_LIPO
20964
20965 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20966 OTOOL=$lt_OTOOL
20967
20968 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20969 OTOOL64=$lt_OTOOL64
20970
20971 # Old archive suffix (normally "a").
20972 libext=$libext
20973
20974 # Shared library suffix (normally ".so").
20975 shrext_cmds=$lt_shrext_cmds
20976
20977 # The commands to extract the exported symbol list from a shared archive.
20978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20979
20980 # Variables whose values should be saved in libtool wrapper scripts and
20981 # restored at link time.
20982 variables_saved_for_relink=$lt_variables_saved_for_relink
20983
20984 # Do we need the "lib" prefix for modules?
20985 need_lib_prefix=$need_lib_prefix
20986
20987 # Do we need a version for libraries?
20988 need_version=$need_version
20989
20990 # Library versioning type.
20991 version_type=$version_type
20992
20993 # Shared library runtime path variable.
20994 runpath_var=$runpath_var
20995
20996 # Shared library path variable.
20997 shlibpath_var=$shlibpath_var
20998
20999 # Is shlibpath searched before the hard-coded library search path?
21000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21001
21002 # Format of library name prefix.
21003 libname_spec=$lt_libname_spec
21004
21005 # List of archive names.  First name is the real one, the rest are links.
21006 # The last name is the one that the linker finds with -lNAME
21007 library_names_spec=$lt_library_names_spec
21008
21009 # The coded name of the library, if different from the real name.
21010 soname_spec=$lt_soname_spec
21011
21012 # Permission mode override for installation of shared libraries.
21013 install_override_mode=$lt_install_override_mode
21014
21015 # Command to use after installation of a shared archive.
21016 postinstall_cmds=$lt_postinstall_cmds
21017
21018 # Command to use after uninstallation of a shared archive.
21019 postuninstall_cmds=$lt_postuninstall_cmds
21020
21021 # Commands used to finish a libtool library installation in a directory.
21022 finish_cmds=$lt_finish_cmds
21023
21024 # As "finish_cmds", except a single script fragment to be evaled but
21025 # not shown.
21026 finish_eval=$lt_finish_eval
21027
21028 # Whether we should hardcode library paths into libraries.
21029 hardcode_into_libs=$hardcode_into_libs
21030
21031 # Compile-time system search path for libraries.
21032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21033
21034 # Detected run-time system search path for libraries.
21035 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21036
21037 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21038 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21039
21040 # Whether dlopen is supported.
21041 dlopen_support=$enable_dlopen
21042
21043 # Whether dlopen of programs is supported.
21044 dlopen_self=$enable_dlopen_self
21045
21046 # Whether dlopen of statically linked programs is supported.
21047 dlopen_self_static=$enable_dlopen_self_static
21048
21049 # Commands to strip libraries.
21050 old_striplib=$lt_old_striplib
21051 striplib=$lt_striplib
21052
21053
21054 # The linker used to build libraries.
21055 LD=$lt_LD
21056
21057 # How to create reloadable object files.
21058 reload_flag=$lt_reload_flag
21059 reload_cmds=$lt_reload_cmds
21060
21061 # Commands used to build an old-style archive.
21062 old_archive_cmds=$lt_old_archive_cmds
21063
21064 # A language specific compiler.
21065 CC=$lt_compiler
21066
21067 # Is the compiler the GNU compiler?
21068 with_gcc=$GCC
21069
21070 # Compiler flag to turn off builtin functions.
21071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21072
21073 # Additional compiler flags for building library objects.
21074 pic_flag=$lt_lt_prog_compiler_pic
21075
21076 # How to pass a linker flag through the compiler.
21077 wl=$lt_lt_prog_compiler_wl
21078
21079 # Compiler flag to prevent dynamic linking.
21080 link_static_flag=$lt_lt_prog_compiler_static
21081
21082 # Does compiler simultaneously support -c and -o options?
21083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21084
21085 # Whether or not to add -lc for building shared libraries.
21086 build_libtool_need_lc=$archive_cmds_need_lc
21087
21088 # Whether or not to disallow shared libs when runtime libs are static.
21089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21090
21091 # Compiler flag to allow reflexive dlopens.
21092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21093
21094 # Compiler flag to generate shared objects directly from archives.
21095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21096
21097 # Whether the compiler copes with passing no objects directly.
21098 compiler_needs_object=$lt_compiler_needs_object
21099
21100 # Create an old-style archive from a shared archive.
21101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21102
21103 # Create a temporary old-style archive to link instead of a shared archive.
21104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21105
21106 # Commands used to build a shared archive.
21107 archive_cmds=$lt_archive_cmds
21108 archive_expsym_cmds=$lt_archive_expsym_cmds
21109
21110 # Commands used to build a loadable module if different from building
21111 # a shared archive.
21112 module_cmds=$lt_module_cmds
21113 module_expsym_cmds=$lt_module_expsym_cmds
21114
21115 # Whether we are building with GNU ld or not.
21116 with_gnu_ld=$lt_with_gnu_ld
21117
21118 # Flag that allows shared libraries with undefined symbols to be built.
21119 allow_undefined_flag=$lt_allow_undefined_flag
21120
21121 # Flag that enforces no undefined symbols.
21122 no_undefined_flag=$lt_no_undefined_flag
21123
21124 # Flag to hardcode \$libdir into a binary during linking.
21125 # This must work even if \$libdir does not exist
21126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21127
21128 # Whether we need a single "-rpath" flag with a separated argument.
21129 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21130
21131 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21132 # DIR into the resulting binary.
21133 hardcode_direct=$hardcode_direct
21134
21135 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21136 # DIR into the resulting binary and the resulting library dependency is
21137 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21138 # library is relocated.
21139 hardcode_direct_absolute=$hardcode_direct_absolute
21140
21141 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21142 # into the resulting binary.
21143 hardcode_minus_L=$hardcode_minus_L
21144
21145 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21146 # into the resulting binary.
21147 hardcode_shlibpath_var=$hardcode_shlibpath_var
21148
21149 # Set to "yes" if building a shared library automatically hardcodes DIR
21150 # into the library and all subsequent libraries and executables linked
21151 # against it.
21152 hardcode_automatic=$hardcode_automatic
21153
21154 # Set to yes if linker adds runtime paths of dependent libraries
21155 # to runtime path list.
21156 inherit_rpath=$inherit_rpath
21157
21158 # Whether libtool must link a program against all its dependency libraries.
21159 link_all_deplibs=$link_all_deplibs
21160
21161 # Set to "yes" if exported symbols are required.
21162 always_export_symbols=$always_export_symbols
21163
21164 # The commands to list exported symbols.
21165 export_symbols_cmds=$lt_export_symbols_cmds
21166
21167 # Symbols that should not be listed in the preloaded symbols.
21168 exclude_expsyms=$lt_exclude_expsyms
21169
21170 # Symbols that must always be exported.
21171 include_expsyms=$lt_include_expsyms
21172
21173 # Commands necessary for linking programs (against libraries) with templates.
21174 prelink_cmds=$lt_prelink_cmds
21175
21176 # Commands necessary for finishing linking programs.
21177 postlink_cmds=$lt_postlink_cmds
21178
21179 # Specify filename containing input files.
21180 file_list_spec=$lt_file_list_spec
21181
21182 # How to hardcode a shared library path into an executable.
21183 hardcode_action=$hardcode_action
21184
21185 # The directories searched by this compiler when creating a shared library.
21186 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21187
21188 # Dependencies to place before and after the objects being linked to
21189 # create a shared library.
21190 predep_objects=$lt_predep_objects
21191 postdep_objects=$lt_postdep_objects
21192 predeps=$lt_predeps
21193 postdeps=$lt_postdeps
21194
21195 # The library search path used internally by the compiler when linking
21196 # a shared library.
21197 compiler_lib_search_path=$lt_compiler_lib_search_path
21198
21199 # ### END LIBTOOL CONFIG
21200
21201 _LT_EOF
21202
21203     cat <<'_LT_EOF' >> "$cfgfile"
21204
21205 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21206
21207 # func_munge_path_list VARIABLE PATH
21208 # -----------------------------------
21209 # VARIABLE is name of variable containing _space_ separated list of
21210 # directories to be munged by the contents of PATH, which is string
21211 # having a format:
21212 # "DIR[:DIR]:"
21213 #       string "DIR[ DIR]" will be prepended to VARIABLE
21214 # ":DIR[:DIR]"
21215 #       string "DIR[ DIR]" will be appended to VARIABLE
21216 # "DIRP[:DIRP]::[DIRA:]DIRA"
21217 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21218 #       "DIRA[ DIRA]" will be appended to VARIABLE
21219 # "DIR[:DIR]"
21220 #       VARIABLE will be replaced by "DIR[ DIR]"
21221 func_munge_path_list ()
21222 {
21223     case x@S|@2 in
21224     x)
21225         ;;
21226     *:)
21227         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
21228         ;;
21229     x:*)
21230         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
21231         ;;
21232     *::*)
21233         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21234         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
21235         ;;
21236     *)
21237         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
21238         ;;
21239     esac
21240 }
21241
21242
21243 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21244 func_cc_basename ()
21245 {
21246     for cc_temp in @S|@*""; do
21247       case $cc_temp in
21248         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21249         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21250         \-*) ;;
21251         *) break;;
21252       esac
21253     done
21254     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21255 }
21256
21257
21258 # ### END FUNCTIONS SHARED WITH CONFIGURE
21259
21260 _LT_EOF
21261
21262   case $host_os in
21263   aix3*)
21264     cat <<\_LT_EOF >> "$cfgfile"
21265 # AIX sometimes has problems with the GCC collect2 program.  For some
21266 # reason, if we set the COLLECT_NAMES environment variable, the problems
21267 # vanish in a puff of smoke.
21268 if test set != "${COLLECT_NAMES+set}"; then
21269   COLLECT_NAMES=
21270   export COLLECT_NAMES
21271 fi
21272 _LT_EOF
21273     ;;
21274   esac
21275
21276   
21277 ltmain=$ac_aux_dir/ltmain.sh
21278
21279
21280   # We use sed instead of cat because bash on DJGPP gets confused if
21281   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21282   # text mode, it properly converts lines to CR/LF.  This bash problem
21283   # is reportedly fixed, but why not run on old versions too?
21284   sed '$q' "$ltmain" >> "$cfgfile" \
21285      || (rm -f "$cfgfile"; exit 1)
21286
21287    mv -f "$cfgfile" "$ofile" ||
21288     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21289   chmod +x "$ofile"
21290
21291
21292     cat <<_LT_EOF >> "$ofile"
21293
21294 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21295
21296 # The linker used to build libraries.
21297 LD=$lt_LD_CXX
21298
21299 # How to create reloadable object files.
21300 reload_flag=$lt_reload_flag_CXX
21301 reload_cmds=$lt_reload_cmds_CXX
21302
21303 # Commands used to build an old-style archive.
21304 old_archive_cmds=$lt_old_archive_cmds_CXX
21305
21306 # A language specific compiler.
21307 CC=$lt_compiler_CXX
21308
21309 # Is the compiler the GNU compiler?
21310 with_gcc=$GCC_CXX
21311
21312 # Compiler flag to turn off builtin functions.
21313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21314
21315 # Additional compiler flags for building library objects.
21316 pic_flag=$lt_lt_prog_compiler_pic_CXX
21317
21318 # How to pass a linker flag through the compiler.
21319 wl=$lt_lt_prog_compiler_wl_CXX
21320
21321 # Compiler flag to prevent dynamic linking.
21322 link_static_flag=$lt_lt_prog_compiler_static_CXX
21323
21324 # Does compiler simultaneously support -c and -o options?
21325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21326
21327 # Whether or not to add -lc for building shared libraries.
21328 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21329
21330 # Whether or not to disallow shared libs when runtime libs are static.
21331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21332
21333 # Compiler flag to allow reflexive dlopens.
21334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21335
21336 # Compiler flag to generate shared objects directly from archives.
21337 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21338
21339 # Whether the compiler copes with passing no objects directly.
21340 compiler_needs_object=$lt_compiler_needs_object_CXX
21341
21342 # Create an old-style archive from a shared archive.
21343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21344
21345 # Create a temporary old-style archive to link instead of a shared archive.
21346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21347
21348 # Commands used to build a shared archive.
21349 archive_cmds=$lt_archive_cmds_CXX
21350 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21351
21352 # Commands used to build a loadable module if different from building
21353 # a shared archive.
21354 module_cmds=$lt_module_cmds_CXX
21355 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21356
21357 # Whether we are building with GNU ld or not.
21358 with_gnu_ld=$lt_with_gnu_ld_CXX
21359
21360 # Flag that allows shared libraries with undefined symbols to be built.
21361 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21362
21363 # Flag that enforces no undefined symbols.
21364 no_undefined_flag=$lt_no_undefined_flag_CXX
21365
21366 # Flag to hardcode \$libdir into a binary during linking.
21367 # This must work even if \$libdir does not exist
21368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21369
21370 # Whether we need a single "-rpath" flag with a separated argument.
21371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21372
21373 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21374 # DIR into the resulting binary.
21375 hardcode_direct=$hardcode_direct_CXX
21376
21377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21378 # DIR into the resulting binary and the resulting library dependency is
21379 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21380 # library is relocated.
21381 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21382
21383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21384 # into the resulting binary.
21385 hardcode_minus_L=$hardcode_minus_L_CXX
21386
21387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21388 # into the resulting binary.
21389 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21390
21391 # Set to "yes" if building a shared library automatically hardcodes DIR
21392 # into the library and all subsequent libraries and executables linked
21393 # against it.
21394 hardcode_automatic=$hardcode_automatic_CXX
21395
21396 # Set to yes if linker adds runtime paths of dependent libraries
21397 # to runtime path list.
21398 inherit_rpath=$inherit_rpath_CXX
21399
21400 # Whether libtool must link a program against all its dependency libraries.
21401 link_all_deplibs=$link_all_deplibs_CXX
21402
21403 # Set to "yes" if exported symbols are required.
21404 always_export_symbols=$always_export_symbols_CXX
21405
21406 # The commands to list exported symbols.
21407 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21408
21409 # Symbols that should not be listed in the preloaded symbols.
21410 exclude_expsyms=$lt_exclude_expsyms_CXX
21411
21412 # Symbols that must always be exported.
21413 include_expsyms=$lt_include_expsyms_CXX
21414
21415 # Commands necessary for linking programs (against libraries) with templates.
21416 prelink_cmds=$lt_prelink_cmds_CXX
21417
21418 # Commands necessary for finishing linking programs.
21419 postlink_cmds=$lt_postlink_cmds_CXX
21420
21421 # Specify filename containing input files.
21422 file_list_spec=$lt_file_list_spec_CXX
21423
21424 # How to hardcode a shared library path into an executable.
21425 hardcode_action=$hardcode_action_CXX
21426
21427 # The directories searched by this compiler when creating a shared library.
21428 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21429
21430 # Dependencies to place before and after the objects being linked to
21431 # create a shared library.
21432 predep_objects=$lt_predep_objects_CXX
21433 postdep_objects=$lt_postdep_objects_CXX
21434 predeps=$lt_predeps_CXX
21435 postdeps=$lt_postdeps_CXX
21436
21437 # The library search path used internally by the compiler when linking
21438 # a shared library.
21439 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21440
21441 # ### END LIBTOOL TAG CONFIG: CXX
21442 _LT_EOF
21443
21444  ;;
21445
21446   esac
21447 done # for ac_tag
21448
21449
21450 as_fn_exit 0
21451 _ACEOF
21452 ac_clean_files=$ac_clean_files_save
21453
21454 test $ac_write_fail = 0 ||
21455   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21456
21457
21458 # configure is writing to config.log, and then calls config.status.
21459 # config.status does its own redirection, appending to config.log.
21460 # Unfortunately, on DOS this fails, as config.log is still kept open
21461 # by configure, so config.status won't be able to write to it; its
21462 # output is simply discarded.  So we exec the FD to /dev/null,
21463 # effectively closing config.log, so it can be properly (re)opened and
21464 # appended to by config.status.  When coming back to configure, we
21465 # need to make the FD available again.
21466 if test "$no_create" != yes; then
21467   ac_cs_success=:
21468   ac_config_status_args=
21469   test "$silent" = yes &&
21470     ac_config_status_args="$ac_config_status_args --quiet"
21471   exec 5>/dev/null
21472   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21473   exec 5>>config.log
21474   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21475   # would make configure fail if this is the last instruction.
21476   $ac_cs_success || as_fn_exit 1
21477 fi
21478 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21479   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21480 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21481 fi
21482
21483