Add packaging directory
[platform/upstream/libnl3.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libnl 3.2.22.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='libnl'
569 PACKAGE_TARNAME='libnl'
570 PACKAGE_VERSION='3.2.22'
571 PACKAGE_STRING='libnl 3.2.22'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL='http://www.infradead.org/~tgr/libnl/'
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 #  include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #  include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 enable_option_checking=no
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 LIBOBJS
616 subdirs
617 ENABLE_DEBUG_FALSE
618 ENABLE_DEBUG_TRUE
619 DISABLE_PTHREADS_FALSE
620 DISABLE_PTHREADS_TRUE
621 ENABLE_CLI_FALSE
622 ENABLE_CLI_TRUE
623 pkgconfigdir
624 ENABLE_UNIT_TESTS_FALSE
625 ENABLE_UNIT_TESTS_TRUE
626 CHECK_LIBS
627 CHECK_CFLAGS
628 PKG_CONFIG_LIBDIR
629 PKG_CONFIG_PATH
630 PKG_CONFIG
631 YACC
632 FLEX
633 CPP
634 OTOOL64
635 OTOOL
636 LIPO
637 NMEDIT
638 DSYMUTIL
639 MANIFEST_TOOL
640 RANLIB
641 DLLTOOL
642 OBJDUMP
643 LN_S
644 NM
645 ac_ct_DUMPBIN
646 DUMPBIN
647 LD
648 FGREP
649 EGREP
650 GREP
651 SED
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 LIBTOOL
661 LT_AGE
662 LT_REVISION
663 LT_CURRENT
664 LIBNL_VERSION
665 MIC_VERSION
666 MIN_VERSION
667 MAJ_VERSION
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 ac_ct_AR
686 AR
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_silent_rules
756 enable_dependency_tracking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 with_sysroot
763 enable_libtool_lock
764 with_pkgconfigdir
765 enable_cli
766 enable_pthreads
767 enable_debug
768 '
769       ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 PKG_CONFIG
779 PKG_CONFIG_PATH
780 PKG_CONFIG_LIBDIR
781 CHECK_CFLAGS
782 CHECK_LIBS'
783 ac_subdirs_all='doc'
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837   # If the previous option needs an argument, assign it.
838   if test -n "$ac_prev"; then
839     eval $ac_prev=\$ac_option
840     ac_prev=
841     continue
842   fi
843
844   case $ac_option in
845   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846   *=)   ac_optarg= ;;
847   *)    ac_optarg=yes ;;
848   esac
849
850   # Accept the important Cygnus configure options, so we can diagnose typos.
851
852   case $ac_dashdash$ac_option in
853   --)
854     ac_dashdash=yes ;;
855
856   -bindir | --bindir | --bindi | --bind | --bin | --bi)
857     ac_prev=bindir ;;
858   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859     bindir=$ac_optarg ;;
860
861   -build | --build | --buil | --bui | --bu)
862     ac_prev=build_alias ;;
863   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864     build_alias=$ac_optarg ;;
865
866   -cache-file | --cache-file | --cache-fil | --cache-fi \
867   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868     ac_prev=cache_file ;;
869   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871     cache_file=$ac_optarg ;;
872
873   --config-cache | -C)
874     cache_file=config.cache ;;
875
876   -datadir | --datadir | --datadi | --datad)
877     ac_prev=datadir ;;
878   -datadir=* | --datadir=* | --datadi=* | --datad=*)
879     datadir=$ac_optarg ;;
880
881   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882   | --dataroo | --dataro | --datar)
883     ac_prev=datarootdir ;;
884   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886     datarootdir=$ac_optarg ;;
887
888   -disable-* | --disable-*)
889     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890     # Reject names that are not valid shell variable names.
891     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892       as_fn_error $? "invalid feature name: $ac_useropt"
893     ac_useropt_orig=$ac_useropt
894     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895     case $ac_user_opts in
896       *"
897 "enable_$ac_useropt"
898 "*) ;;
899       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900          ac_unrecognized_sep=', ';;
901     esac
902     eval enable_$ac_useropt=no ;;
903
904   -docdir | --docdir | --docdi | --doc | --do)
905     ac_prev=docdir ;;
906   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907     docdir=$ac_optarg ;;
908
909   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910     ac_prev=dvidir ;;
911   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912     dvidir=$ac_optarg ;;
913
914   -enable-* | --enable-*)
915     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916     # Reject names that are not valid shell variable names.
917     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918       as_fn_error $? "invalid feature name: $ac_useropt"
919     ac_useropt_orig=$ac_useropt
920     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921     case $ac_user_opts in
922       *"
923 "enable_$ac_useropt"
924 "*) ;;
925       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926          ac_unrecognized_sep=', ';;
927     esac
928     eval enable_$ac_useropt=\$ac_optarg ;;
929
930   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932   | --exec | --exe | --ex)
933     ac_prev=exec_prefix ;;
934   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936   | --exec=* | --exe=* | --ex=*)
937     exec_prefix=$ac_optarg ;;
938
939   -gas | --gas | --ga | --g)
940     # Obsolete; use --with-gas.
941     with_gas=yes ;;
942
943   -help | --help | --hel | --he | -h)
944     ac_init_help=long ;;
945   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946     ac_init_help=recursive ;;
947   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948     ac_init_help=short ;;
949
950   -host | --host | --hos | --ho)
951     ac_prev=host_alias ;;
952   -host=* | --host=* | --hos=* | --ho=*)
953     host_alias=$ac_optarg ;;
954
955   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956     ac_prev=htmldir ;;
957   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958   | --ht=*)
959     htmldir=$ac_optarg ;;
960
961   -includedir | --includedir | --includedi | --included | --include \
962   | --includ | --inclu | --incl | --inc)
963     ac_prev=includedir ;;
964   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965   | --includ=* | --inclu=* | --incl=* | --inc=*)
966     includedir=$ac_optarg ;;
967
968   -infodir | --infodir | --infodi | --infod | --info | --inf)
969     ac_prev=infodir ;;
970   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971     infodir=$ac_optarg ;;
972
973   -libdir | --libdir | --libdi | --libd)
974     ac_prev=libdir ;;
975   -libdir=* | --libdir=* | --libdi=* | --libd=*)
976     libdir=$ac_optarg ;;
977
978   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979   | --libexe | --libex | --libe)
980     ac_prev=libexecdir ;;
981   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982   | --libexe=* | --libex=* | --libe=*)
983     libexecdir=$ac_optarg ;;
984
985   -localedir | --localedir | --localedi | --localed | --locale)
986     ac_prev=localedir ;;
987   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988     localedir=$ac_optarg ;;
989
990   -localstatedir | --localstatedir | --localstatedi | --localstated \
991   | --localstate | --localstat | --localsta | --localst | --locals)
992     ac_prev=localstatedir ;;
993   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995     localstatedir=$ac_optarg ;;
996
997   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998     ac_prev=mandir ;;
999   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000     mandir=$ac_optarg ;;
1001
1002   -nfp | --nfp | --nf)
1003     # Obsolete; use --without-fp.
1004     with_fp=no ;;
1005
1006   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007   | --no-cr | --no-c | -n)
1008     no_create=yes ;;
1009
1010   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012     no_recursion=yes ;;
1013
1014   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016   | --oldin | --oldi | --old | --ol | --o)
1017     ac_prev=oldincludedir ;;
1018   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021     oldincludedir=$ac_optarg ;;
1022
1023   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024     ac_prev=prefix ;;
1025   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026     prefix=$ac_optarg ;;
1027
1028   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029   | --program-pre | --program-pr | --program-p)
1030     ac_prev=program_prefix ;;
1031   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033     program_prefix=$ac_optarg ;;
1034
1035   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036   | --program-suf | --program-su | --program-s)
1037     ac_prev=program_suffix ;;
1038   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040     program_suffix=$ac_optarg ;;
1041
1042   -program-transform-name | --program-transform-name \
1043   | --program-transform-nam | --program-transform-na \
1044   | --program-transform-n | --program-transform- \
1045   | --program-transform | --program-transfor \
1046   | --program-transfo | --program-transf \
1047   | --program-trans | --program-tran \
1048   | --progr-tra | --program-tr | --program-t)
1049     ac_prev=program_transform_name ;;
1050   -program-transform-name=* | --program-transform-name=* \
1051   | --program-transform-nam=* | --program-transform-na=* \
1052   | --program-transform-n=* | --program-transform-=* \
1053   | --program-transform=* | --program-transfor=* \
1054   | --program-transfo=* | --program-transf=* \
1055   | --program-trans=* | --program-tran=* \
1056   | --progr-tra=* | --program-tr=* | --program-t=*)
1057     program_transform_name=$ac_optarg ;;
1058
1059   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060     ac_prev=pdfdir ;;
1061   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062     pdfdir=$ac_optarg ;;
1063
1064   -psdir | --psdir | --psdi | --psd | --ps)
1065     ac_prev=psdir ;;
1066   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067     psdir=$ac_optarg ;;
1068
1069   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070   | -silent | --silent | --silen | --sile | --sil)
1071     silent=yes ;;
1072
1073   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074     ac_prev=sbindir ;;
1075   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076   | --sbi=* | --sb=*)
1077     sbindir=$ac_optarg ;;
1078
1079   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081   | --sharedst | --shareds | --shared | --share | --shar \
1082   | --sha | --sh)
1083     ac_prev=sharedstatedir ;;
1084   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087   | --sha=* | --sh=*)
1088     sharedstatedir=$ac_optarg ;;
1089
1090   -site | --site | --sit)
1091     ac_prev=site ;;
1092   -site=* | --site=* | --sit=*)
1093     site=$ac_optarg ;;
1094
1095   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096     ac_prev=srcdir ;;
1097   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098     srcdir=$ac_optarg ;;
1099
1100   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101   | --syscon | --sysco | --sysc | --sys | --sy)
1102     ac_prev=sysconfdir ;;
1103   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105     sysconfdir=$ac_optarg ;;
1106
1107   -target | --target | --targe | --targ | --tar | --ta | --t)
1108     ac_prev=target_alias ;;
1109   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110     target_alias=$ac_optarg ;;
1111
1112   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113     verbose=yes ;;
1114
1115   -version | --version | --versio | --versi | --vers | -V)
1116     ac_init_version=: ;;
1117
1118   -with-* | --with-*)
1119     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122       as_fn_error $? "invalid package name: $ac_useropt"
1123     ac_useropt_orig=$ac_useropt
1124     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125     case $ac_user_opts in
1126       *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130          ac_unrecognized_sep=', ';;
1131     esac
1132     eval with_$ac_useropt=\$ac_optarg ;;
1133
1134   -without-* | --without-*)
1135     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138       as_fn_error $? "invalid package name: $ac_useropt"
1139     ac_useropt_orig=$ac_useropt
1140     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141     case $ac_user_opts in
1142       *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146          ac_unrecognized_sep=', ';;
1147     esac
1148     eval with_$ac_useropt=no ;;
1149
1150   --x)
1151     # Obsolete; use --with-x.
1152     with_x=yes ;;
1153
1154   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155   | --x-incl | --x-inc | --x-in | --x-i)
1156     ac_prev=x_includes ;;
1157   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159     x_includes=$ac_optarg ;;
1160
1161   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163     ac_prev=x_libraries ;;
1164   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166     x_libraries=$ac_optarg ;;
1167
1168   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170     ;;
1171
1172   *=*)
1173     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174     # Reject names that are not valid shell variable names.
1175     case $ac_envvar in #(
1176       '' | [0-9]* | *[!_$as_cr_alnum]* )
1177       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178     esac
1179     eval $ac_envvar=\$ac_optarg
1180     export $ac_envvar ;;
1181
1182   *)
1183     # FIXME: should be removed in autoconf 3.0.
1184     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188     ;;
1189
1190   esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195   as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199   case $enable_option_checking in
1200     no) ;;
1201     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203   esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208                 datadir sysconfdir sharedstatedir localstatedir includedir \
1209                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210                 libdir localedir mandir
1211 do
1212   eval ac_val=\$$ac_var
1213   # Remove trailing slashes.
1214   case $ac_val in
1215     */ )
1216       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217       eval $ac_var=\$ac_val;;
1218   esac
1219   # Be sure to have absolute directory names.
1220   case $ac_val in
1221     [\\/$]* | ?:[\\/]* )  continue;;
1222     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223   esac
1224   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236   if test "x$build_alias" = x; then
1237     cross_compiling=maybe
1238     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1239     If a cross compiler is detected then cross compile mode will be used" >&2
1240   elif test "x$build_alias" != "x$host_alias"; then
1241     cross_compiling=yes
1242   fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254   as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256   as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261   ac_srcdir_defaulted=yes
1262   # Try the directory containing this script, then the parent directory.
1263   ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265          X"$as_myself" : 'X\(//\)[^/]' \| \
1266          X"$as_myself" : 'X\(//\)$' \| \
1267          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)[^/].*/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\/\)$/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\).*/{
1282             s//\1/
1283             q
1284           }
1285           s/.*/./; q'`
1286   srcdir=$ac_confdir
1287   if test ! -r "$srcdir/$ac_unique_file"; then
1288     srcdir=..
1289   fi
1290 else
1291   ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300         pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303   srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_env_${ac_var}_value=\$${ac_var}
1314   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322   # Omit some internal or obsolete options to make the list less imposing.
1323   # This message is too long to be a string in the A/UX 3.1 sh.
1324   cat <<_ACEOF
1325 \`configure' configures libnl 3.2.22 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335   -h, --help              display this help and exit
1336       --help=short        display options specific to this package
1337       --help=recursive    display the short help of all the included packages
1338   -V, --version           display version information and exit
1339   -q, --quiet, --silent   do not print \`checking ...' messages
1340       --cache-file=FILE   cache test results in FILE [disabled]
1341   -C, --config-cache      alias for \`--cache-file=config.cache'
1342   -n, --no-create         do not create output files
1343       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346   --prefix=PREFIX         install architecture-independent files in PREFIX
1347                           [$ac_default_prefix]
1348   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                           [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359   --bindir=DIR            user executables [EPREFIX/bin]
1360   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1361   --libexecdir=DIR        program executables [EPREFIX/libexec]
1362   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1363   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1364   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1365   --libdir=DIR            object code libraries [EPREFIX/lib]
1366   --includedir=DIR        C header files [PREFIX/include]
1367   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1368   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1369   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1370   --infodir=DIR           info documentation [DATAROOTDIR/info]
1371   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1372   --mandir=DIR            man documentation [DATAROOTDIR/man]
1373   --docdir=DIR            documentation root [DATAROOTDIR/doc/libnl]
1374   --htmldir=DIR           html documentation [DOCDIR]
1375   --dvidir=DIR            dvi documentation [DOCDIR]
1376   --pdfdir=DIR            pdf documentation [DOCDIR]
1377   --psdir=DIR             ps documentation [DOCDIR]
1378 _ACEOF
1379
1380   cat <<\_ACEOF
1381
1382 Program names:
1383   --program-prefix=PREFIX            prepend PREFIX to installed program names
1384   --program-suffix=SUFFIX            append SUFFIX to installed program names
1385   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1386
1387 System types:
1388   --build=BUILD     configure for building on BUILD [guessed]
1389   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394   case $ac_init_help in
1395      short | recursive ) echo "Configuration of libnl 3.2.22:";;
1396    esac
1397   cat <<\_ACEOF
1398
1399 Optional Features:
1400   --disable-option-checking  ignore unrecognized --enable/--with options
1401   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403   --enable-silent-rules          less verbose build output (undo: `make V=1')
1404   --disable-silent-rules         verbose build output (undo: `make V=0')
1405   --disable-dependency-tracking  speeds up one-time build
1406   --enable-dependency-tracking   do not reject slow dependency extractors
1407   --enable-shared[=PKGS]  build shared libraries [default=yes]
1408   --enable-static[=PKGS]  build static libraries [default=yes]
1409   --enable-fast-install[=PKGS]
1410                           optimize for fast installation [default=yes]
1411   --disable-libtool-lock  avoid locking (might break parallel builds)
1412   --disable-cli           Do not build command line interface utils
1413   --disable-pthreads      Disable pthreads support
1414   --disable-debug         Do not include debugging statements
1415
1416 Optional Packages:
1417   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1418   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1419   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1420                           both]
1421   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1422   --with-sysroot=DIR Search for dependent libraries within DIR
1423                         (or the compiler's sysroot if not specified).
1424   --with-pkgconfigdir=PATH
1425                           Path to the pkgconfig directory [[LIBDIR/pkgconfig]]
1426
1427 Some influential environment variables:
1428   CC          C compiler command
1429   CFLAGS      C compiler flags
1430   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1431               nonstandard directory <lib dir>
1432   LIBS        libraries to pass to the linker, e.g. -l<library>
1433   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434               you have headers in a nonstandard directory <include dir>
1435   CPP         C preprocessor
1436   PKG_CONFIG  path to pkg-config utility
1437   PKG_CONFIG_PATH
1438               directories to add to pkg-config's search path
1439   PKG_CONFIG_LIBDIR
1440               path overriding pkg-config's built-in search path
1441   CHECK_CFLAGS
1442               C compiler flags for CHECK, overriding pkg-config
1443   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to the package provider.
1449 libnl home page: <http://www.infradead.org/~tgr/libnl/>.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455   # If there are subdirs, report their specific --help.
1456   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457     test -d "$ac_dir" ||
1458       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459       continue
1460     ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466   # A ".." for each directory in $ac_dir_suffix.
1467   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468   case $ac_top_builddir_sub in
1469   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471   esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479   .)  # We are building in place.
1480     ac_srcdir=.
1481     ac_top_srcdir=$ac_top_builddir_sub
1482     ac_abs_top_srcdir=$ac_pwd ;;
1483   [\\/]* | ?:[\\/]* )  # Absolute name.
1484     ac_srcdir=$srcdir$ac_dir_suffix;
1485     ac_top_srcdir=$srcdir
1486     ac_abs_top_srcdir=$srcdir ;;
1487   *) # Relative name.
1488     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489     ac_top_srcdir=$ac_top_build_prefix$srcdir
1490     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494     cd "$ac_dir" || { ac_status=$?; continue; }
1495     # Check for guested configure.
1496     if test -f "$ac_srcdir/configure.gnu"; then
1497       echo &&
1498       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499     elif test -f "$ac_srcdir/configure"; then
1500       echo &&
1501       $SHELL "$ac_srcdir/configure" --help=recursive
1502     else
1503       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504     fi || ac_status=$?
1505     cd "$ac_pwd" || { ac_status=$?; break; }
1506   done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511   cat <<\_ACEOF
1512 libnl configure 3.2.22
1513 generated by GNU Autoconf 2.68
1514
1515 Copyright (C) 2010 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519   exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532   rm -f conftest.$ac_objext
1533   if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536   *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540   (eval "$ac_compile") 2>conftest.err
1541   ac_status=$?
1542   if test -s conftest.err; then
1543     grep -v '^ *+' conftest.err >conftest.er1
1544     cat conftest.er1 >&5
1545     mv -f conftest.er1 conftest.err
1546   fi
1547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548   test $ac_status = 0; } && {
1549          test -z "$ac_c_werror_flag" ||
1550          test ! -s conftest.err
1551        } && test -s conftest.$ac_objext; then :
1552   ac_retval=0
1553 else
1554   $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557         ac_retval=1
1558 fi
1559   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560   as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   rm -f conftest.$ac_objext conftest$ac_exeext
1571   if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574   *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578   (eval "$ac_link") 2>conftest.err
1579   ac_status=$?
1580   if test -s conftest.err; then
1581     grep -v '^ *+' conftest.err >conftest.er1
1582     cat conftest.er1 >&5
1583     mv -f conftest.er1 conftest.err
1584   fi
1585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586   test $ac_status = 0; } && {
1587          test -z "$ac_c_werror_flag" ||
1588          test ! -s conftest.err
1589        } && test -s conftest$ac_exeext && {
1590          test "$cross_compiling" = yes ||
1591          $as_test_x conftest$ac_exeext
1592        }; then :
1593   ac_retval=0
1594 else
1595   $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598         ac_retval=1
1599 fi
1600   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602   # interfere with the next link command; also delete a directory that is
1603   # left behind by Apple's compiler.  We do this before executing the actions.
1604   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606   as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_link
1609
1610 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists and can be compiled using the include files in
1613 # INCLUDES, setting the cache variable VAR accordingly.
1614 ac_fn_c_check_header_compile ()
1615 {
1616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval \${$3+:} false; then :
1620   $as_echo_n "(cached) " >&6
1621 else
1622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h.  */
1624 $4
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628   eval "$3=yes"
1629 else
1630   eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 fi
1634 eval ac_res=\$$3
1635                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639 } # ac_fn_c_check_header_compile
1640
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_cpp ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 case "(($ac_try" in
1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650   *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655   ac_status=$?
1656   if test -s conftest.err; then
1657     grep -v '^ *+' conftest.err >conftest.er1
1658     cat conftest.er1 >&5
1659     mv -f conftest.er1 conftest.err
1660   fi
1661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662   test $ac_status = 0; } > conftest.i && {
1663          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664          test ! -s conftest.err
1665        }; then :
1666   ac_retval=0
1667 else
1668   $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671     ac_retval=1
1672 fi
1673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674   as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_cpp
1677
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1682 ac_fn_c_try_run ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688   *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692   (eval "$ac_link") 2>&5
1693   ac_status=$?
1694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696   { { case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_try") 2>&5
1703   ac_status=$?
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; }; }; then :
1706   ac_retval=0
1707 else
1708   $as_echo "$as_me: program exited with status $ac_status" >&5
1709        $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712        ac_retval=$ac_status
1713 fi
1714   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716   as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729   $as_echo_n "(cached) " >&6
1730 else
1731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h.  */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1735 #define $2 innocuous_$2
1736
1737 /* System header to define __stub macros and hopefully few prototypes,
1738     which can conflict with char $2 (); below.
1739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740     <limits.h> exists even on freestanding compilers.  */
1741
1742 #ifdef __STDC__
1743 # include <limits.h>
1744 #else
1745 # include <assert.h>
1746 #endif
1747
1748 #undef $2
1749
1750 /* Override any GCC internal prototype to avoid an error.
1751    Use char because int might match the return type of a GCC
1752    builtin and then its argument prototype would still apply.  */
1753 #ifdef __cplusplus
1754 extern "C"
1755 #endif
1756 char $2 ();
1757 /* The GNU C library defines this for functions which it implements
1758     to always fail with ENOSYS.  Some functions are actually named
1759     something starting with __ and the normal name is an alias.  */
1760 #if defined __stub_$2 || defined __stub___$2
1761 choke me
1762 #endif
1763
1764 int
1765 main ()
1766 {
1767 return $2 ();
1768   ;
1769   return 0;
1770 }
1771 _ACEOF
1772 if ac_fn_c_try_link "$LINENO"; then :
1773   eval "$3=yes"
1774 else
1775   eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext \
1778     conftest$ac_exeext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_func
1786 cat >config.log <<_ACEOF
1787 This file contains any messages produced by compilers while
1788 running configure, to aid debugging if configure makes a mistake.
1789
1790 It was created by libnl $as_me 3.2.22, which was
1791 generated by GNU Autoconf 2.68.  Invocation command line was
1792
1793   $ $0 $@
1794
1795 _ACEOF
1796 exec 5>>config.log
1797 {
1798 cat <<_ASUNAME
1799 ## --------- ##
1800 ## Platform. ##
1801 ## --------- ##
1802
1803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1808
1809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1811
1812 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1813 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1816 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1817 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1818 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1819
1820 _ASUNAME
1821
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825   IFS=$as_save_IFS
1826   test -z "$as_dir" && as_dir=.
1827     $as_echo "PATH: $as_dir"
1828   done
1829 IFS=$as_save_IFS
1830
1831 } >&5
1832
1833 cat >&5 <<_ACEOF
1834
1835
1836 ## ----------- ##
1837 ## Core tests. ##
1838 ## ----------- ##
1839
1840 _ACEOF
1841
1842
1843 # Keep a trace of the command line.
1844 # Strip out --no-create and --no-recursion so they do not pile up.
1845 # Strip out --silent because we don't want to record it for future runs.
1846 # Also quote any args containing shell meta-characters.
1847 # Make two passes to allow for proper duplicate-argument suppression.
1848 ac_configure_args=
1849 ac_configure_args0=
1850 ac_configure_args1=
1851 ac_must_keep_next=false
1852 for ac_pass in 1 2
1853 do
1854   for ac_arg
1855   do
1856     case $ac_arg in
1857     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1858     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1859     | -silent | --silent | --silen | --sile | --sil)
1860       continue ;;
1861     *\'*)
1862       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863     esac
1864     case $ac_pass in
1865     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1866     2)
1867       as_fn_append ac_configure_args1 " '$ac_arg'"
1868       if test $ac_must_keep_next = true; then
1869         ac_must_keep_next=false # Got value, back to normal.
1870       else
1871         case $ac_arg in
1872           *=* | --config-cache | -C | -disable-* | --disable-* \
1873           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1874           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1875           | -with-* | --with-* | -without-* | --without-* | --x)
1876             case "$ac_configure_args0 " in
1877               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1878             esac
1879             ;;
1880           -* ) ac_must_keep_next=true ;;
1881         esac
1882       fi
1883       as_fn_append ac_configure_args " '$ac_arg'"
1884       ;;
1885     esac
1886   done
1887 done
1888 { ac_configure_args0=; unset ac_configure_args0;}
1889 { ac_configure_args1=; unset ac_configure_args1;}
1890
1891 # When interrupted or exit'd, cleanup temporary files, and complete
1892 # config.log.  We remove comments because anyway the quotes in there
1893 # would cause problems or look ugly.
1894 # WARNING: Use '\'' to represent an apostrophe within the trap.
1895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1896 trap 'exit_status=$?
1897   # Save into config.log some information that might help in debugging.
1898   {
1899     echo
1900
1901     $as_echo "## ---------------- ##
1902 ## Cache variables. ##
1903 ## ---------------- ##"
1904     echo
1905     # The following way of writing the cache mishandles newlines in values,
1906 (
1907   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1908     eval ac_val=\$$ac_var
1909     case $ac_val in #(
1910     *${as_nl}*)
1911       case $ac_var in #(
1912       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1914       esac
1915       case $ac_var in #(
1916       _ | IFS | as_nl) ;; #(
1917       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1918       *) { eval $ac_var=; unset $ac_var;} ;;
1919       esac ;;
1920     esac
1921   done
1922   (set) 2>&1 |
1923     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1924     *${as_nl}ac_space=\ *)
1925       sed -n \
1926         "s/'\''/'\''\\\\'\'''\''/g;
1927           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1928       ;; #(
1929     *)
1930       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1931       ;;
1932     esac |
1933     sort
1934 )
1935     echo
1936
1937     $as_echo "## ----------------- ##
1938 ## Output variables. ##
1939 ## ----------------- ##"
1940     echo
1941     for ac_var in $ac_subst_vars
1942     do
1943       eval ac_val=\$$ac_var
1944       case $ac_val in
1945       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1946       esac
1947       $as_echo "$ac_var='\''$ac_val'\''"
1948     done | sort
1949     echo
1950
1951     if test -n "$ac_subst_files"; then
1952       $as_echo "## ------------------- ##
1953 ## File substitutions. ##
1954 ## ------------------- ##"
1955       echo
1956       for ac_var in $ac_subst_files
1957       do
1958         eval ac_val=\$$ac_var
1959         case $ac_val in
1960         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961         esac
1962         $as_echo "$ac_var='\''$ac_val'\''"
1963       done | sort
1964       echo
1965     fi
1966
1967     if test -s confdefs.h; then
1968       $as_echo "## ----------- ##
1969 ## confdefs.h. ##
1970 ## ----------- ##"
1971       echo
1972       cat confdefs.h
1973       echo
1974     fi
1975     test "$ac_signal" != 0 &&
1976       $as_echo "$as_me: caught signal $ac_signal"
1977     $as_echo "$as_me: exit $exit_status"
1978   } >&5
1979   rm -f core *.core core.conftest.* &&
1980     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1981     exit $exit_status
1982 ' 0
1983 for ac_signal in 1 2 13 15; do
1984   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1985 done
1986 ac_signal=0
1987
1988 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1989 rm -f -r conftest* confdefs.h
1990
1991 $as_echo "/* confdefs.h */" > confdefs.h
1992
1993 # Predefined preprocessor variables.
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_NAME "$PACKAGE_NAME"
1997 _ACEOF
1998
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2001 _ACEOF
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2005 _ACEOF
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_STRING "$PACKAGE_STRING"
2009 _ACEOF
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2013 _ACEOF
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_URL "$PACKAGE_URL"
2017 _ACEOF
2018
2019
2020 # Let the site file select an alternate cache file if it wants to.
2021 # Prefer an explicitly selected file to automatically selected ones.
2022 ac_site_file1=NONE
2023 ac_site_file2=NONE
2024 if test -n "$CONFIG_SITE"; then
2025   # We do not want a PATH search for config.site.
2026   case $CONFIG_SITE in #((
2027     -*)  ac_site_file1=./$CONFIG_SITE;;
2028     */*) ac_site_file1=$CONFIG_SITE;;
2029     *)   ac_site_file1=./$CONFIG_SITE;;
2030   esac
2031 elif test "x$prefix" != xNONE; then
2032   ac_site_file1=$prefix/share/config.site
2033   ac_site_file2=$prefix/etc/config.site
2034 else
2035   ac_site_file1=$ac_default_prefix/share/config.site
2036   ac_site_file2=$ac_default_prefix/etc/config.site
2037 fi
2038 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2039 do
2040   test "x$ac_site_file" = xNONE && continue
2041   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2042     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2043 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2044     sed 's/^/| /' "$ac_site_file" >&5
2045     . "$ac_site_file" \
2046       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2048 as_fn_error $? "failed to load site script $ac_site_file
2049 See \`config.log' for more details" "$LINENO" 5; }
2050   fi
2051 done
2052
2053 if test -r "$cache_file"; then
2054   # Some versions of bash will fail to source /dev/null (special files
2055   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2056   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2057     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2058 $as_echo "$as_me: loading cache $cache_file" >&6;}
2059     case $cache_file in
2060       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2061       *)                      . "./$cache_file";;
2062     esac
2063   fi
2064 else
2065   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2066 $as_echo "$as_me: creating cache $cache_file" >&6;}
2067   >$cache_file
2068 fi
2069
2070 # Check that the precious variables saved in the cache have kept the same
2071 # value.
2072 ac_cache_corrupted=false
2073 for ac_var in $ac_precious_vars; do
2074   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2075   eval ac_new_set=\$ac_env_${ac_var}_set
2076   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2077   eval ac_new_val=\$ac_env_${ac_var}_value
2078   case $ac_old_set,$ac_new_set in
2079     set,)
2080       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2081 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2082       ac_cache_corrupted=: ;;
2083     ,set)
2084       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2085 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2086       ac_cache_corrupted=: ;;
2087     ,);;
2088     *)
2089       if test "x$ac_old_val" != "x$ac_new_val"; then
2090         # differences in whitespace do not lead to failure.
2091         ac_old_val_w=`echo x $ac_old_val`
2092         ac_new_val_w=`echo x $ac_new_val`
2093         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2094           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2095 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2096           ac_cache_corrupted=:
2097         else
2098           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2099 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2100           eval $ac_var=\$ac_old_val
2101         fi
2102         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2103 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2104         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2105 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2106       fi;;
2107   esac
2108   # Pass precious variables to config.status.
2109   if test "$ac_new_set" = set; then
2110     case $ac_new_val in
2111     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2112     *) ac_arg=$ac_var=$ac_new_val ;;
2113     esac
2114     case " $ac_configure_args " in
2115       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2116       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2117     esac
2118   fi
2119 done
2120 if $ac_cache_corrupted; then
2121   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2124 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2125   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2126 fi
2127 ## -------------------- ##
2128 ## Main body of script. ##
2129 ## -------------------- ##
2130
2131 ac_ext=c
2132 ac_cpp='$CPP $CPPFLAGS'
2133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2136
2137
2138 ac_config_headers="$ac_config_headers lib/defs.h"
2139
2140 ac_aux_dir=
2141 for ac_dir in build-aux "$srcdir"/build-aux; do
2142   if test -f "$ac_dir/install-sh"; then
2143     ac_aux_dir=$ac_dir
2144     ac_install_sh="$ac_aux_dir/install-sh -c"
2145     break
2146   elif test -f "$ac_dir/install.sh"; then
2147     ac_aux_dir=$ac_dir
2148     ac_install_sh="$ac_aux_dir/install.sh -c"
2149     break
2150   elif test -f "$ac_dir/shtool"; then
2151     ac_aux_dir=$ac_dir
2152     ac_install_sh="$ac_aux_dir/shtool install -c"
2153     break
2154   fi
2155 done
2156 if test -z "$ac_aux_dir"; then
2157   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2158 fi
2159
2160 # These three variables are undocumented and unsupported,
2161 # and are intended to be withdrawn in a future Autoconf release.
2162 # They can cause serious problems if a builder's source tree is in a directory
2163 # whose full name contains unusual characters.
2164 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2165 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2166 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2167
2168
2169
2170 am__api_version='1.11'
2171
2172 # Find a good install program.  We prefer a C program (faster),
2173 # so one script is as good as another.  But avoid the broken or
2174 # incompatible versions:
2175 # SysV /etc/install, /usr/sbin/install
2176 # SunOS /usr/etc/install
2177 # IRIX /sbin/install
2178 # AIX /bin/install
2179 # AmigaOS /C/install, which installs bootblocks on floppy discs
2180 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2183 # OS/2's system install, which has a completely different semantic
2184 # ./install, which can be erroneously created by make from ./install.sh.
2185 # Reject install programs that cannot install multiple files.
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2187 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2188 if test -z "$INSTALL"; then
2189 if ${ac_cv_path_install+:} false; then :
2190   $as_echo_n "(cached) " >&6
2191 else
2192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197     # Account for people who put trailing slashes in PATH elements.
2198 case $as_dir/ in #((
2199   ./ | .// | /[cC]/* | \
2200   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2201   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2202   /usr/ucb/* ) ;;
2203   *)
2204     # OSF1 and SCO ODT 3.0 have their own names for install.
2205     # Don't use installbsd from OSF since it installs stuff as root
2206     # by default.
2207     for ac_prog in ginstall scoinst install; do
2208       for ac_exec_ext in '' $ac_executable_extensions; do
2209         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2210           if test $ac_prog = install &&
2211             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2212             # AIX install.  It has an incompatible calling convention.
2213             :
2214           elif test $ac_prog = install &&
2215             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2216             # program-specific install script used by HP pwplus--don't use.
2217             :
2218           else
2219             rm -rf conftest.one conftest.two conftest.dir
2220             echo one > conftest.one
2221             echo two > conftest.two
2222             mkdir conftest.dir
2223             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2224               test -s conftest.one && test -s conftest.two &&
2225               test -s conftest.dir/conftest.one &&
2226               test -s conftest.dir/conftest.two
2227             then
2228               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2229               break 3
2230             fi
2231           fi
2232         fi
2233       done
2234     done
2235     ;;
2236 esac
2237
2238   done
2239 IFS=$as_save_IFS
2240
2241 rm -rf conftest.one conftest.two conftest.dir
2242
2243 fi
2244   if test "${ac_cv_path_install+set}" = set; then
2245     INSTALL=$ac_cv_path_install
2246   else
2247     # As a last resort, use the slow shell script.  Don't cache a
2248     # value for INSTALL within a source directory, because that will
2249     # break other packages using the cache if that directory is
2250     # removed, or if the value is a relative name.
2251     INSTALL=$ac_install_sh
2252   fi
2253 fi
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2255 $as_echo "$INSTALL" >&6; }
2256
2257 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2258 # It thinks the first close brace ends the variable substitution.
2259 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2260
2261 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2262
2263 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2264
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2266 $as_echo_n "checking whether build environment is sane... " >&6; }
2267 # Just in case
2268 sleep 1
2269 echo timestamp > conftest.file
2270 # Reject unsafe characters in $srcdir or the absolute working directory
2271 # name.  Accept space and tab only in the latter.
2272 am_lf='
2273 '
2274 case `pwd` in
2275   *[\\\"\#\$\&\'\`$am_lf]*)
2276     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2277 esac
2278 case $srcdir in
2279   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2280     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2281 esac
2282
2283 # Do `set' in a subshell so we don't clobber the current shell's
2284 # arguments.  Must try -L first in case configure is actually a
2285 # symlink; some systems play weird games with the mod time of symlinks
2286 # (eg FreeBSD returns the mod time of the symlink's containing
2287 # directory).
2288 if (
2289    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2290    if test "$*" = "X"; then
2291       # -L didn't work.
2292       set X `ls -t "$srcdir/configure" conftest.file`
2293    fi
2294    rm -f conftest.file
2295    if test "$*" != "X $srcdir/configure conftest.file" \
2296       && test "$*" != "X conftest.file $srcdir/configure"; then
2297
2298       # If neither matched, then we have a broken ls.  This can happen
2299       # if, for instance, CONFIG_SHELL is bash and it inherits a
2300       # broken ls alias from the environment.  This has actually
2301       # happened.  Such a system could not be considered "sane".
2302       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2303 alias in your environment" "$LINENO" 5
2304    fi
2305
2306    test "$2" = conftest.file
2307    )
2308 then
2309    # Ok.
2310    :
2311 else
2312    as_fn_error $? "newly created file is older than distributed files!
2313 Check your system clock" "$LINENO" 5
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2316 $as_echo "yes" >&6; }
2317 test "$program_prefix" != NONE &&
2318   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2319 # Use a double $ so make ignores it.
2320 test "$program_suffix" != NONE &&
2321   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2322 # Double any \ or $.
2323 # By default was `s,x,x', remove it if useless.
2324 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2325 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2326
2327 # expand $ac_aux_dir to an absolute path
2328 am_aux_dir=`cd $ac_aux_dir && pwd`
2329
2330 if test x"${MISSING+set}" != xset; then
2331   case $am_aux_dir in
2332   *\ * | *\     *)
2333     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2334   *)
2335     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2336   esac
2337 fi
2338 # Use eval to expand $SHELL
2339 if eval "$MISSING --run true"; then
2340   am_missing_run="$MISSING --run "
2341 else
2342   am_missing_run=
2343   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2344 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2345 fi
2346
2347 if test x"${install_sh}" != xset; then
2348   case $am_aux_dir in
2349   *\ * | *\     *)
2350     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2351   *)
2352     install_sh="\${SHELL} $am_aux_dir/install-sh"
2353   esac
2354 fi
2355
2356 # Installed binaries are usually stripped using `strip' when the user
2357 # run `make install-strip'.  However `strip' might not be the right
2358 # tool to use in cross-compilation environments, therefore Automake
2359 # will honor the `STRIP' environment variable to overrule this program.
2360 if test "$cross_compiling" != no; then
2361   if test -n "$ac_tool_prefix"; then
2362   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}strip; ac_word=$2
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if ${ac_cv_prog_STRIP+:} false; then :
2367   $as_echo_n "(cached) " >&6
2368 else
2369   if test -n "$STRIP"; then
2370   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377     for ac_exec_ext in '' $ac_executable_extensions; do
2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384   done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 STRIP=$ac_cv_prog_STRIP
2390 if test -n "$STRIP"; then
2391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2392 $as_echo "$STRIP" >&6; }
2393 else
2394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395 $as_echo "no" >&6; }
2396 fi
2397
2398
2399 fi
2400 if test -z "$ac_cv_prog_STRIP"; then
2401   ac_ct_STRIP=$STRIP
2402   # Extract the first word of "strip", so it can be a program name with args.
2403 set dummy strip; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2407   $as_echo_n "(cached) " >&6
2408 else
2409   if test -n "$ac_ct_STRIP"; then
2410   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415   IFS=$as_save_IFS
2416   test -z "$as_dir" && as_dir=.
2417     for ac_exec_ext in '' $ac_executable_extensions; do
2418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419     ac_cv_prog_ac_ct_STRIP="strip"
2420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421     break 2
2422   fi
2423 done
2424   done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2430 if test -n "$ac_ct_STRIP"; then
2431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2432 $as_echo "$ac_ct_STRIP" >&6; }
2433 else
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2436 fi
2437
2438   if test "x$ac_ct_STRIP" = x; then
2439     STRIP=":"
2440   else
2441     case $cross_compiling:$ac_tool_warned in
2442 yes:)
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2445 ac_tool_warned=yes ;;
2446 esac
2447     STRIP=$ac_ct_STRIP
2448   fi
2449 else
2450   STRIP="$ac_cv_prog_STRIP"
2451 fi
2452
2453 fi
2454 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2455
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2457 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2458 if test -z "$MKDIR_P"; then
2459   if ${ac_cv_path_mkdir+:} false; then :
2460   $as_echo_n "(cached) " >&6
2461 else
2462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     for ac_prog in mkdir gmkdir; do
2468          for ac_exec_ext in '' $ac_executable_extensions; do
2469            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2470            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2471              'mkdir (GNU coreutils) '* | \
2472              'mkdir (coreutils) '* | \
2473              'mkdir (fileutils) '4.1*)
2474                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2475                break 3;;
2476            esac
2477          done
2478        done
2479   done
2480 IFS=$as_save_IFS
2481
2482 fi
2483
2484   test -d ./--version && rmdir ./--version
2485   if test "${ac_cv_path_mkdir+set}" = set; then
2486     MKDIR_P="$ac_cv_path_mkdir -p"
2487   else
2488     # As a last resort, use the slow shell script.  Don't cache a
2489     # value for MKDIR_P within a source directory, because that will
2490     # break other packages using the cache if that directory is
2491     # removed, or if the value is a relative name.
2492     MKDIR_P="$ac_install_sh -d"
2493   fi
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2496 $as_echo "$MKDIR_P" >&6; }
2497
2498 mkdir_p="$MKDIR_P"
2499 case $mkdir_p in
2500   [\\/$]* | ?:[\\/]*) ;;
2501   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2502 esac
2503
2504 for ac_prog in gawk mawk nawk awk
2505 do
2506   # Extract the first word of "$ac_prog", so it can be a program name with args.
2507 set dummy $ac_prog; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if ${ac_cv_prog_AWK+:} false; then :
2511   $as_echo_n "(cached) " >&6
2512 else
2513   if test -n "$AWK"; then
2514   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521     for ac_exec_ext in '' $ac_executable_extensions; do
2522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523     ac_cv_prog_AWK="$ac_prog"
2524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525     break 2
2526   fi
2527 done
2528   done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 AWK=$ac_cv_prog_AWK
2534 if test -n "$AWK"; then
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2536 $as_echo "$AWK" >&6; }
2537 else
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543   test -n "$AWK" && break
2544 done
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2547 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2548 set x ${MAKE-make}
2549 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2550 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2551   $as_echo_n "(cached) " >&6
2552 else
2553   cat >conftest.make <<\_ACEOF
2554 SHELL = /bin/sh
2555 all:
2556         @echo '@@@%%%=$(MAKE)=@@@%%%'
2557 _ACEOF
2558 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2559 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2560   *@@@%%%=?*=@@@%%%*)
2561     eval ac_cv_prog_make_${ac_make}_set=yes;;
2562   *)
2563     eval ac_cv_prog_make_${ac_make}_set=no;;
2564 esac
2565 rm -f conftest.make
2566 fi
2567 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569 $as_echo "yes" >&6; }
2570   SET_MAKE=
2571 else
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574   SET_MAKE="MAKE=${MAKE-make}"
2575 fi
2576
2577 rm -rf .tst 2>/dev/null
2578 mkdir .tst 2>/dev/null
2579 if test -d .tst; then
2580   am__leading_dot=.
2581 else
2582   am__leading_dot=_
2583 fi
2584 rmdir .tst 2>/dev/null
2585
2586 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2587   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2588   # is not polluted with repeated "-I."
2589   am__isrc=' -I$(srcdir)'
2590   # test to see if srcdir already configured
2591   if test -f $srcdir/config.status; then
2592     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2593   fi
2594 fi
2595
2596 # test whether we have cygpath
2597 if test -z "$CYGPATH_W"; then
2598   if (cygpath --version) >/dev/null 2>/dev/null; then
2599     CYGPATH_W='cygpath -w'
2600   else
2601     CYGPATH_W=echo
2602   fi
2603 fi
2604
2605
2606 # Define the identity of the package.
2607  PACKAGE='libnl'
2608  VERSION='3.2.22'
2609
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE "$PACKAGE"
2613 _ACEOF
2614
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define VERSION "$VERSION"
2618 _ACEOF
2619
2620 # Some tools Automake needs.
2621
2622 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2623
2624
2625 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2626
2627
2628 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2629
2630
2631 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2632
2633
2634 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2635
2636 # We need awk for the "check" target.  The system "awk" is bad on
2637 # some platforms.
2638 # Always define AMTAR for backward compatibility.  Yes, it's still used
2639 # in the wild :-(  We should find a proper way to deprecate it ...
2640 AMTAR='$${TAR-tar}'
2641
2642 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2643
2644
2645
2646
2647
2648 # Check whether --enable-silent-rules was given.
2649 if test "${enable_silent_rules+set}" = set; then :
2650   enableval=$enable_silent_rules;
2651 fi
2652
2653 case $enable_silent_rules in
2654 yes) AM_DEFAULT_VERBOSITY=0;;
2655 no)  AM_DEFAULT_VERBOSITY=1;;
2656 *)   AM_DEFAULT_VERBOSITY=0;;
2657 esac
2658 am_make=${MAKE-make}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2660 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2661 if ${am_cv_make_support_nested_variables+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   if $as_echo 'TRUE=$(BAR$(V))
2665 BAR0=false
2666 BAR1=true
2667 V=1
2668 am__doit:
2669         @$(TRUE)
2670 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2671   am_cv_make_support_nested_variables=yes
2672 else
2673   am_cv_make_support_nested_variables=no
2674 fi
2675 fi
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2677 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2678 if test $am_cv_make_support_nested_variables = yes; then
2679     AM_V='$(V)'
2680   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2681 else
2682   AM_V=$AM_DEFAULT_VERBOSITY
2683   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2684 fi
2685 AM_BACKSLASH='\'
2686
2687 DEPDIR="${am__leading_dot}deps"
2688
2689 ac_config_commands="$ac_config_commands depfiles"
2690
2691
2692 am_make=${MAKE-make}
2693 cat > confinc << 'END'
2694 am__doit:
2695         @echo this is the am__doit target
2696 .PHONY: am__doit
2697 END
2698 # If we don't find an include directive, just comment out the code.
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2700 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2701 am__include="#"
2702 am__quote=
2703 _am_result=none
2704 # First try GNU make style include.
2705 echo "include confinc" > confmf
2706 # Ignore all kinds of additional output from `make'.
2707 case `$am_make -s -f confmf 2> /dev/null` in #(
2708 *the\ am__doit\ target*)
2709   am__include=include
2710   am__quote=
2711   _am_result=GNU
2712   ;;
2713 esac
2714 # Now try BSD make style include.
2715 if test "$am__include" = "#"; then
2716    echo '.include "confinc"' > confmf
2717    case `$am_make -s -f confmf 2> /dev/null` in #(
2718    *the\ am__doit\ target*)
2719      am__include=.include
2720      am__quote="\""
2721      _am_result=BSD
2722      ;;
2723    esac
2724 fi
2725
2726
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2728 $as_echo "$_am_result" >&6; }
2729 rm -f confinc confmf
2730
2731 # Check whether --enable-dependency-tracking was given.
2732 if test "${enable_dependency_tracking+set}" = set; then :
2733   enableval=$enable_dependency_tracking;
2734 fi
2735
2736 if test "x$enable_dependency_tracking" != xno; then
2737   am_depcomp="$ac_aux_dir/depcomp"
2738   AMDEPBACKSLASH='\'
2739   am__nodep='_no'
2740 fi
2741  if test "x$enable_dependency_tracking" != xno; then
2742   AMDEP_TRUE=
2743   AMDEP_FALSE='#'
2744 else
2745   AMDEP_TRUE='#'
2746   AMDEP_FALSE=
2747 fi
2748
2749
2750 ac_ext=c
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 if test -n "$ac_tool_prefix"; then
2756   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_CC+:} false; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test -n "$CC"; then
2764   ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771     for ac_exec_ext in '' $ac_executable_extensions; do
2772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778   done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 fi
2794 if test -z "$ac_cv_prog_CC"; then
2795   ac_ct_CC=$CC
2796   # Extract the first word of "gcc", so it can be a program name with args.
2797 set dummy gcc; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2801   $as_echo_n "(cached) " >&6
2802 else
2803   if test -n "$ac_ct_CC"; then
2804   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809   IFS=$as_save_IFS
2810   test -z "$as_dir" && as_dir=.
2811     for ac_exec_ext in '' $ac_executable_extensions; do
2812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813     ac_cv_prog_ac_ct_CC="gcc"
2814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815     break 2
2816   fi
2817 done
2818   done
2819 IFS=$as_save_IFS
2820
2821 fi
2822 fi
2823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824 if test -n "$ac_ct_CC"; then
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2826 $as_echo "$ac_ct_CC" >&6; }
2827 else
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2830 fi
2831
2832   if test "x$ac_ct_CC" = x; then
2833     CC=""
2834   else
2835     case $cross_compiling:$ac_tool_warned in
2836 yes:)
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839 ac_tool_warned=yes ;;
2840 esac
2841     CC=$ac_ct_CC
2842   fi
2843 else
2844   CC="$ac_cv_prog_CC"
2845 fi
2846
2847 if test -z "$CC"; then
2848           if test -n "$ac_tool_prefix"; then
2849     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}cc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if test -n "$CC"; then
2857   ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_CC="${ac_tool_prefix}cc"
2867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871   done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2880 else
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886   fi
2887 fi
2888 if test -z "$CC"; then
2889   # Extract the first word of "cc", so it can be a program name with args.
2890 set dummy cc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894   $as_echo_n "(cached) " >&6
2895 else
2896   if test -n "$CC"; then
2897   ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899   ac_prog_rejected=no
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903   IFS=$as_save_IFS
2904   test -z "$as_dir" && as_dir=.
2905     for ac_exec_ext in '' $ac_executable_extensions; do
2906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908        ac_prog_rejected=yes
2909        continue
2910      fi
2911     ac_cv_prog_CC="cc"
2912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913     break 2
2914   fi
2915 done
2916   done
2917 IFS=$as_save_IFS
2918
2919 if test $ac_prog_rejected = yes; then
2920   # We found a bogon in the path, so make sure we never use it.
2921   set dummy $ac_cv_prog_CC
2922   shift
2923   if test $# != 0; then
2924     # We chose a different compiler from the bogus one.
2925     # However, it has the same basename, so the bogon will be chosen
2926     # first if we set CC to just the basename; use the full file name.
2927     shift
2928     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2929   fi
2930 fi
2931 fi
2932 fi
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2937 else
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 fi
2941
2942
2943 fi
2944 if test -z "$CC"; then
2945   if test -n "$ac_tool_prefix"; then
2946   for ac_prog in cl.exe
2947   do
2948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953   $as_echo_n "(cached) " >&6
2954 else
2955   if test -n "$CC"; then
2956   ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961   IFS=$as_save_IFS
2962   test -z "$as_dir" && as_dir=.
2963     for ac_exec_ext in '' $ac_executable_extensions; do
2964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967     break 2
2968   fi
2969 done
2970   done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985     test -n "$CC" && break
2986   done
2987 fi
2988 if test -z "$CC"; then
2989   ac_ct_CC=$CC
2990   for ac_prog in cl.exe
2991 do
2992   # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2997   $as_echo_n "(cached) " >&6
2998 else
2999   if test -n "$ac_ct_CC"; then
3000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005   IFS=$as_save_IFS
3006   test -z "$as_dir" && as_dir=.
3007     for ac_exec_ext in '' $ac_executable_extensions; do
3008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009     ac_cv_prog_ac_ct_CC="$ac_prog"
3010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011     break 2
3012   fi
3013 done
3014   done
3015 IFS=$as_save_IFS
3016
3017 fi
3018 fi
3019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020 if test -n "$ac_ct_CC"; then
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3022 $as_echo "$ac_ct_CC" >&6; }
3023 else
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 fi
3027
3028
3029   test -n "$ac_ct_CC" && break
3030 done
3031
3032   if test "x$ac_ct_CC" = x; then
3033     CC=""
3034   else
3035     case $cross_compiling:$ac_tool_warned in
3036 yes:)
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3040 esac
3041     CC=$ac_ct_CC
3042   fi
3043 fi
3044
3045 fi
3046
3047
3048 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $? "no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details" "$LINENO" 5; }
3052
3053 # Provide some information about the compiler.
3054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3055 set X $ac_compile
3056 ac_compiler=$2
3057 for ac_option in --version -v -V -qversion; do
3058   { { ac_try="$ac_compiler $ac_option >&5"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3066   ac_status=$?
3067   if test -s conftest.err; then
3068     sed '10a\
3069 ... rest of stderr output deleted ...
3070          10q' conftest.err >conftest.er1
3071     cat conftest.er1 >&5
3072   fi
3073   rm -f conftest.er1 conftest.err
3074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075   test $ac_status = 0; }
3076 done
3077
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h.  */
3080
3081 int
3082 main ()
3083 {
3084
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 ac_clean_files_save=$ac_clean_files
3090 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3091 # Try to create an executable without -o first, disregard a.out.
3092 # It will help us diagnose broken compilers, and finding out an intuition
3093 # of exeext.
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3095 $as_echo_n "checking whether the C compiler works... " >&6; }
3096 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3097
3098 # The possible output files:
3099 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3100
3101 ac_rmfiles=
3102 for ac_file in $ac_files
3103 do
3104   case $ac_file in
3105     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3106     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3107   esac
3108 done
3109 rm -f $ac_rmfiles
3110
3111 if { { ac_try="$ac_link_default"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118   (eval "$ac_link_default") 2>&5
3119   ac_status=$?
3120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121   test $ac_status = 0; }; then :
3122   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3123 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3124 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3125 # so that the user can short-circuit this test for compilers unknown to
3126 # Autoconf.
3127 for ac_file in $ac_files ''
3128 do
3129   test -f "$ac_file" || continue
3130   case $ac_file in
3131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3132         ;;
3133     [ab].out )
3134         # We found the default executable, but exeext='' is most
3135         # certainly right.
3136         break;;
3137     *.* )
3138         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3139         then :; else
3140            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141         fi
3142         # We set ac_cv_exeext here because the later test for it is not
3143         # safe: cross compilers may not add the suffix if given an `-o'
3144         # argument, so we may need to know it at that point already.
3145         # Even if this section looks crufty: it has the advantage of
3146         # actually working.
3147         break;;
3148     * )
3149         break;;
3150   esac
3151 done
3152 test "$ac_cv_exeext" = no && ac_cv_exeext=
3153
3154 else
3155   ac_file=''
3156 fi
3157 if test -z "$ac_file"; then :
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error 77 "C compiler cannot create executables
3166 See \`config.log' for more details" "$LINENO" 5; }
3167 else
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3169 $as_echo "yes" >&6; }
3170 fi
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3172 $as_echo_n "checking for C compiler default output file name... " >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3174 $as_echo "$ac_file" >&6; }
3175 ac_exeext=$ac_cv_exeext
3176
3177 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3178 ac_clean_files=$ac_clean_files_save
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3180 $as_echo_n "checking for suffix of executables... " >&6; }
3181 if { { ac_try="$ac_link"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188   (eval "$ac_link") 2>&5
3189   ac_status=$?
3190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191   test $ac_status = 0; }; then :
3192   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3193 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3194 # work properly (i.e., refer to `conftest.exe'), while it won't with
3195 # `rm'.
3196 for ac_file in conftest.exe conftest conftest.*; do
3197   test -f "$ac_file" || continue
3198   case $ac_file in
3199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3200     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3201           break;;
3202     * ) break;;
3203   esac
3204 done
3205 else
3206   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3209 See \`config.log' for more details" "$LINENO" 5; }
3210 fi
3211 rm -f conftest conftest$ac_cv_exeext
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3213 $as_echo "$ac_cv_exeext" >&6; }
3214
3215 rm -f conftest.$ac_ext
3216 EXEEXT=$ac_cv_exeext
3217 ac_exeext=$EXEEXT
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h.  */
3220 #include <stdio.h>
3221 int
3222 main ()
3223 {
3224 FILE *f = fopen ("conftest.out", "w");
3225  return ferror (f) || fclose (f) != 0;
3226
3227   ;
3228   return 0;
3229 }
3230 _ACEOF
3231 ac_clean_files="$ac_clean_files conftest.out"
3232 # Check that the compiler produces executables we can run.  If not, either
3233 # the compiler is broken, or we cross compile.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3235 $as_echo_n "checking whether we are cross compiling... " >&6; }
3236 if test "$cross_compiling" != yes; then
3237   { { ac_try="$ac_link"
3238 case "(($ac_try" in
3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240   *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244   (eval "$ac_link") 2>&5
3245   ac_status=$?
3246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247   test $ac_status = 0; }
3248   if { ac_try='./conftest$ac_cv_exeext'
3249   { { case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255   (eval "$ac_try") 2>&5
3256   ac_status=$?
3257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258   test $ac_status = 0; }; }; then
3259     cross_compiling=no
3260   else
3261     if test "$cross_compiling" = maybe; then
3262         cross_compiling=yes
3263     else
3264         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "cannot run C compiled programs.
3267 If you meant to cross compile, use \`--host'.
3268 See \`config.log' for more details" "$LINENO" 5; }
3269     fi
3270   fi
3271 fi
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3273 $as_echo "$cross_compiling" >&6; }
3274
3275 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3276 ac_clean_files=$ac_clean_files_save
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3278 $as_echo_n "checking for suffix of object files... " >&6; }
3279 if ${ac_cv_objext+:} false; then :
3280   $as_echo_n "(cached) " >&6
3281 else
3282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h.  */
3284
3285 int
3286 main ()
3287 {
3288
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.o conftest.obj
3294 if { { ac_try="$ac_compile"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301   (eval "$ac_compile") 2>&5
3302   ac_status=$?
3303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304   test $ac_status = 0; }; then :
3305   for ac_file in conftest.o conftest.obj conftest.*; do
3306   test -f "$ac_file" || continue;
3307   case $ac_file in
3308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3309     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3310        break;;
3311   esac
3312 done
3313 else
3314   $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "cannot compute suffix of object files: cannot compile
3320 See \`config.log' for more details" "$LINENO" 5; }
3321 fi
3322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3323 fi
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3325 $as_echo "$ac_cv_objext" >&6; }
3326 OBJEXT=$ac_cv_objext
3327 ac_objext=$OBJEXT
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3329 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3330 if ${ac_cv_c_compiler_gnu+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h.  */
3335
3336 int
3337 main ()
3338 {
3339 #ifndef __GNUC__
3340        choke me
3341 #endif
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 if ac_fn_c_try_compile "$LINENO"; then :
3348   ac_compiler_gnu=yes
3349 else
3350   ac_compiler_gnu=no
3351 fi
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3354
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3357 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3358 if test $ac_compiler_gnu = yes; then
3359   GCC=yes
3360 else
3361   GCC=
3362 fi
3363 ac_test_CFLAGS=${CFLAGS+set}
3364 ac_save_CFLAGS=$CFLAGS
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3366 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3367 if ${ac_cv_prog_cc_g+:} false; then :
3368   $as_echo_n "(cached) " >&6
3369 else
3370   ac_save_c_werror_flag=$ac_c_werror_flag
3371    ac_c_werror_flag=yes
3372    ac_cv_prog_cc_g=no
3373    CFLAGS="-g"
3374    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h.  */
3376
3377 int
3378 main ()
3379 {
3380
3381   ;
3382   return 0;
3383 }
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386   ac_cv_prog_cc_g=yes
3387 else
3388   CFLAGS=""
3389       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 if ac_fn_c_try_compile "$LINENO"; then :
3401
3402 else
3403   ac_c_werror_flag=$ac_save_c_werror_flag
3404          CFLAGS="-g"
3405          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h.  */
3407
3408 int
3409 main ()
3410 {
3411
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 if ac_fn_c_try_compile "$LINENO"; then :
3417   ac_cv_prog_cc_g=yes
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 fi
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 fi
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424    ac_c_werror_flag=$ac_save_c_werror_flag
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3427 $as_echo "$ac_cv_prog_cc_g" >&6; }
3428 if test "$ac_test_CFLAGS" = set; then
3429   CFLAGS=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431   if test "$GCC" = yes; then
3432     CFLAGS="-g -O2"
3433   else
3434     CFLAGS="-g"
3435   fi
3436 else
3437   if test "$GCC" = yes; then
3438     CFLAGS="-O2"
3439   else
3440     CFLAGS=
3441   fi
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3444 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3445 if ${ac_cv_prog_cc_c89+:} false; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   ac_cv_prog_cc_c89=no
3449 ac_save_CC=$CC
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h.  */
3452 #include <stdarg.h>
3453 #include <stdio.h>
3454 #include <sys/types.h>
3455 #include <sys/stat.h>
3456 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3457 struct buf { int x; };
3458 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3459 static char *e (p, i)
3460      char **p;
3461      int i;
3462 {
3463   return p[i];
3464 }
3465 static char *f (char * (*g) (char **, int), char **p, ...)
3466 {
3467   char *s;
3468   va_list v;
3469   va_start (v,p);
3470   s = g (p, va_arg (v,int));
3471   va_end (v);
3472   return s;
3473 }
3474
3475 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3476    function prototypes and stuff, but not '\xHH' hex character constants.
3477    These don't provoke an error unfortunately, instead are silently treated
3478    as 'x'.  The following induces an error, until -std is added to get
3479    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3480    array size at least.  It's necessary to write '\x00'==0 to get something
3481    that's true only with -std.  */
3482 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3483
3484 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3485    inside strings and character constants.  */
3486 #define FOO(x) 'x'
3487 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3488
3489 int test (int i, double x);
3490 struct s1 {int (*f) (int a);};
3491 struct s2 {int (*f) (double a);};
3492 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3493 int argc;
3494 char **argv;
3495 int
3496 main ()
3497 {
3498 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3504         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3505 do
3506   CC="$ac_save_CC $ac_arg"
3507   if ac_fn_c_try_compile "$LINENO"; then :
3508   ac_cv_prog_cc_c89=$ac_arg
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext
3511   test "x$ac_cv_prog_cc_c89" != "xno" && break
3512 done
3513 rm -f conftest.$ac_ext
3514 CC=$ac_save_CC
3515
3516 fi
3517 # AC_CACHE_VAL
3518 case "x$ac_cv_prog_cc_c89" in
3519   x)
3520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3521 $as_echo "none needed" >&6; } ;;
3522   xno)
3523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3524 $as_echo "unsupported" >&6; } ;;
3525   *)
3526     CC="$CC $ac_cv_prog_cc_c89"
3527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3528 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3529 esac
3530 if test "x$ac_cv_prog_cc_c89" != xno; then :
3531
3532 fi
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540 depcc="$CC"   am_compiler_list=
3541
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3543 $as_echo_n "checking dependency style of $depcc... " >&6; }
3544 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3548   # We make a subdir and do the tests there.  Otherwise we can end up
3549   # making bogus files that we don't know about and never remove.  For
3550   # instance it was reported that on HP-UX the gcc test will end up
3551   # making a dummy file named `D' -- because `-MD' means `put the output
3552   # in D'.
3553   rm -rf conftest.dir
3554   mkdir conftest.dir
3555   # Copy depcomp to subdir because otherwise we won't find it if we're
3556   # using a relative directory.
3557   cp "$am_depcomp" conftest.dir
3558   cd conftest.dir
3559   # We will build objects and dependencies in a subdirectory because
3560   # it helps to detect inapplicable dependency modes.  For instance
3561   # both Tru64's cc and ICC support -MD to output dependencies as a
3562   # side effect of compilation, but ICC will put the dependencies in
3563   # the current directory while Tru64 will put them in the object
3564   # directory.
3565   mkdir sub
3566
3567   am_cv_CC_dependencies_compiler_type=none
3568   if test "$am_compiler_list" = ""; then
3569      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3570   fi
3571   am__universal=false
3572   case " $depcc " in #(
3573      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3574      esac
3575
3576   for depmode in $am_compiler_list; do
3577     # Setup a source with many dependencies, because some compilers
3578     # like to wrap large dependency lists on column 80 (with \), and
3579     # we should not choose a depcomp mode which is confused by this.
3580     #
3581     # We need to recreate these files for each test, as the compiler may
3582     # overwrite some of them when testing with obscure command lines.
3583     # This happens at least with the AIX C compiler.
3584     : > sub/conftest.c
3585     for i in 1 2 3 4 5 6; do
3586       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3587       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3588       # Solaris 8's {/usr,}/bin/sh.
3589       touch sub/conftst$i.h
3590     done
3591     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3592
3593     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3594     # mode.  It turns out that the SunPro C++ compiler does not properly
3595     # handle `-M -o', and we need to detect this.  Also, some Intel
3596     # versions had trouble with output in subdirs
3597     am__obj=sub/conftest.${OBJEXT-o}
3598     am__minus_obj="-o $am__obj"
3599     case $depmode in
3600     gcc)
3601       # This depmode causes a compiler race in universal mode.
3602       test "$am__universal" = false || continue
3603       ;;
3604     nosideeffect)
3605       # after this tag, mechanisms are not by side-effect, so they'll
3606       # only be used when explicitly requested
3607       if test "x$enable_dependency_tracking" = xyes; then
3608         continue
3609       else
3610         break
3611       fi
3612       ;;
3613     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3614       # This compiler won't grok `-c -o', but also, the minuso test has
3615       # not run yet.  These depmodes are late enough in the game, and
3616       # so weak that their functioning should not be impacted.
3617       am__obj=conftest.${OBJEXT-o}
3618       am__minus_obj=
3619       ;;
3620     none) break ;;
3621     esac
3622     if depmode=$depmode \
3623        source=sub/conftest.c object=$am__obj \
3624        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3625        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3626          >/dev/null 2>conftest.err &&
3627        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3628        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3629        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3630        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3631       # icc doesn't choke on unknown options, it will just issue warnings
3632       # or remarks (even with -Werror).  So we grep stderr for any message
3633       # that says an option was ignored or not supported.
3634       # When given -MP, icc 7.0 and 7.1 complain thusly:
3635       #   icc: Command line warning: ignoring option '-M'; no argument required
3636       # The diagnosis changed in icc 8.0:
3637       #   icc: Command line remark: option '-MP' not supported
3638       if (grep 'ignoring option' conftest.err ||
3639           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3640         am_cv_CC_dependencies_compiler_type=$depmode
3641         break
3642       fi
3643     fi
3644   done
3645
3646   cd ..
3647   rm -rf conftest.dir
3648 else
3649   am_cv_CC_dependencies_compiler_type=none
3650 fi
3651
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3654 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3655 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3656
3657  if
3658   test "x$enable_dependency_tracking" != xno \
3659   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3660   am__fastdepCC_TRUE=
3661   am__fastdepCC_FALSE='#'
3662 else
3663   am__fastdepCC_TRUE='#'
3664   am__fastdepCC_FALSE=
3665 fi
3666
3667
3668
3669 if test -n "$ac_tool_prefix"; then
3670   for ac_prog in ar lib "link -lib"
3671   do
3672     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if ${ac_cv_prog_AR+:} false; then :
3677   $as_echo_n "(cached) " >&6
3678 else
3679   if test -n "$AR"; then
3680   ac_cv_prog_AR="$AR" # Let the user override the test.
3681 else
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687     for ac_exec_ext in '' $ac_executable_extensions; do
3688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691     break 2
3692   fi
3693 done
3694   done
3695 IFS=$as_save_IFS
3696
3697 fi
3698 fi
3699 AR=$ac_cv_prog_AR
3700 if test -n "$AR"; then
3701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3702 $as_echo "$AR" >&6; }
3703 else
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3706 fi
3707
3708
3709     test -n "$AR" && break
3710   done
3711 fi
3712 if test -z "$AR"; then
3713   ac_ct_AR=$AR
3714   for ac_prog in ar lib "link -lib"
3715 do
3716   # Extract the first word of "$ac_prog", so it can be a program name with args.
3717 set dummy $ac_prog; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$ac_ct_AR"; then
3724   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733     ac_cv_prog_ac_ct_AR="$ac_prog"
3734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738   done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3744 if test -n "$ac_ct_AR"; then
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3746 $as_echo "$ac_ct_AR" >&6; }
3747 else
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752
3753   test -n "$ac_ct_AR" && break
3754 done
3755
3756   if test "x$ac_ct_AR" = x; then
3757     AR="false"
3758   else
3759     case $cross_compiling:$ac_tool_warned in
3760 yes:)
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3763 ac_tool_warned=yes ;;
3764 esac
3765     AR=$ac_ct_AR
3766   fi
3767 fi
3768
3769 : ${AR=ar}
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3772 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3773 if ${am_cv_ar_interface+:} false; then :
3774   $as_echo_n "(cached) " >&6
3775 else
3776   am_cv_ar_interface=ar
3777    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779 int some_variable = 0;
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3783       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3784   (eval $am_ar_try) 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }
3788       if test "$ac_status" -eq 0; then
3789         am_cv_ar_interface=ar
3790       else
3791         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3792         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3793   (eval $am_ar_try) 2>&5
3794   ac_status=$?
3795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796   test $ac_status = 0; }
3797         if test "$ac_status" -eq 0; then
3798           am_cv_ar_interface=lib
3799         else
3800           am_cv_ar_interface=unknown
3801         fi
3802       fi
3803       rm -f conftest.lib libconftest.a
3804
3805 fi
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3810 $as_echo "$am_cv_ar_interface" >&6; }
3811
3812 case $am_cv_ar_interface in
3813 ar)
3814   ;;
3815 lib)
3816   # Microsoft lib, so override with the ar-lib wrapper script.
3817   # FIXME: It is wrong to rewrite AR.
3818   # But if we don't then we get into trouble of one sort or another.
3819   # A longer-term fix would be to have automake use am__AR in this case,
3820   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3821   # similar.
3822   AR="$am_aux_dir/ar-lib $AR"
3823   ;;
3824 unknown)
3825   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3826   ;;
3827 esac
3828
3829
3830 MAJ_VERSION=3
3831
3832 MIN_VERSION=2
3833
3834 MIC_VERSION=22
3835
3836 LIBNL_VERSION=3.2.22
3837
3838
3839 LT_CURRENT=217
3840
3841 LT_REVISION=0
3842
3843 LT_AGE=17
3844
3845
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 if test -n "$ac_tool_prefix"; then
3852   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$CC"; then
3860   ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871     break 2
3872   fi
3873 done
3874   done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889 fi
3890 if test -z "$ac_cv_prog_CC"; then
3891   ac_ct_CC=$CC
3892   # Extract the first word of "gcc", so it can be a program name with args.
3893 set dummy gcc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   if test -n "$ac_ct_CC"; then
3900   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_exec_ext in '' $ac_executable_extensions; do
3908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909     ac_cv_prog_ac_ct_CC="gcc"
3910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911     break 2
3912   fi
3913 done
3914   done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3923 else
3924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928   if test "x$ac_ct_CC" = x; then
3929     CC=""
3930   else
3931     case $cross_compiling:$ac_tool_warned in
3932 yes:)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned=yes ;;
3936 esac
3937     CC=$ac_ct_CC
3938   fi
3939 else
3940   CC="$ac_cv_prog_CC"
3941 fi
3942
3943 if test -z "$CC"; then
3944           if test -n "$ac_tool_prefix"; then
3945     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cc; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   if test -n "$CC"; then
3953   ac_cv_prog_CC="$CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960     for ac_exec_ext in '' $ac_executable_extensions; do
3961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962     ac_cv_prog_CC="${ac_tool_prefix}cc"
3963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967   done
3968 IFS=$as_save_IFS
3969
3970 fi
3971 fi
3972 CC=$ac_cv_prog_CC
3973 if test -n "$CC"; then
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975 $as_echo "$CC" >&6; }
3976 else
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 fi
3980
3981
3982   fi
3983 fi
3984 if test -z "$CC"; then
3985   # Extract the first word of "cc", so it can be a program name with args.
3986 set dummy cc; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   if test -n "$CC"; then
3993   ac_cv_prog_CC="$CC" # Let the user override the test.
3994 else
3995   ac_prog_rejected=no
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999   IFS=$as_save_IFS
4000   test -z "$as_dir" && as_dir=.
4001     for ac_exec_ext in '' $ac_executable_extensions; do
4002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4004        ac_prog_rejected=yes
4005        continue
4006      fi
4007     ac_cv_prog_CC="cc"
4008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009     break 2
4010   fi
4011 done
4012   done
4013 IFS=$as_save_IFS
4014
4015 if test $ac_prog_rejected = yes; then
4016   # We found a bogon in the path, so make sure we never use it.
4017   set dummy $ac_cv_prog_CC
4018   shift
4019   if test $# != 0; then
4020     # We chose a different compiler from the bogus one.
4021     # However, it has the same basename, so the bogon will be chosen
4022     # first if we set CC to just the basename; use the full file name.
4023     shift
4024     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4025   fi
4026 fi
4027 fi
4028 fi
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4036 fi
4037
4038
4039 fi
4040 if test -z "$CC"; then
4041   if test -n "$ac_tool_prefix"; then
4042   for ac_prog in cl.exe
4043   do
4044     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_CC+:} false; then :
4049   $as_echo_n "(cached) " >&6
4050 else
4051   if test -n "$CC"; then
4052   ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059     for ac_exec_ext in '' $ac_executable_extensions; do
4060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063     break 2
4064   fi
4065 done
4066   done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 CC=$ac_cv_prog_CC
4072 if test -n "$CC"; then
4073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4075 else
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 fi
4079
4080
4081     test -n "$CC" && break
4082   done
4083 fi
4084 if test -z "$CC"; then
4085   ac_ct_CC=$CC
4086   for ac_prog in cl.exe
4087 do
4088   # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy $ac_prog; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4093   $as_echo_n "(cached) " >&6
4094 else
4095   if test -n "$ac_ct_CC"; then
4096   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103     for ac_exec_ext in '' $ac_executable_extensions; do
4104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105     ac_cv_prog_ac_ct_CC="$ac_prog"
4106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110   done
4111 IFS=$as_save_IFS
4112
4113 fi
4114 fi
4115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4116 if test -n "$ac_ct_CC"; then
4117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4118 $as_echo "$ac_ct_CC" >&6; }
4119 else
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 fi
4123
4124
4125   test -n "$ac_ct_CC" && break
4126 done
4127
4128   if test "x$ac_ct_CC" = x; then
4129     CC=""
4130   else
4131     case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4136 esac
4137     CC=$ac_ct_CC
4138   fi
4139 fi
4140
4141 fi
4142
4143
4144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146 as_fn_error $? "no acceptable C compiler found in \$PATH
4147 See \`config.log' for more details" "$LINENO" 5; }
4148
4149 # Provide some information about the compiler.
4150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4151 set X $ac_compile
4152 ac_compiler=$2
4153 for ac_option in --version -v -V -qversion; do
4154   { { ac_try="$ac_compiler $ac_option >&5"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4162   ac_status=$?
4163   if test -s conftest.err; then
4164     sed '10a\
4165 ... rest of stderr output deleted ...
4166          10q' conftest.err >conftest.er1
4167     cat conftest.er1 >&5
4168   fi
4169   rm -f conftest.er1 conftest.err
4170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171   test $ac_status = 0; }
4172 done
4173
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4176 if ${ac_cv_c_compiler_gnu+:} false; then :
4177   $as_echo_n "(cached) " >&6
4178 else
4179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h.  */
4181
4182 int
4183 main ()
4184 {
4185 #ifndef __GNUC__
4186        choke me
4187 #endif
4188
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194   ac_compiler_gnu=yes
4195 else
4196   ac_compiler_gnu=no
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4200
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4204 if test $ac_compiler_gnu = yes; then
4205   GCC=yes
4206 else
4207   GCC=
4208 fi
4209 ac_test_CFLAGS=${CFLAGS+set}
4210 ac_save_CFLAGS=$CFLAGS
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4213 if ${ac_cv_prog_cc_g+:} false; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   ac_save_c_werror_flag=$ac_c_werror_flag
4217    ac_c_werror_flag=yes
4218    ac_cv_prog_cc_g=no
4219    CFLAGS="-g"
4220    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222
4223 int
4224 main ()
4225 {
4226
4227   ;
4228   return 0;
4229 }
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232   ac_cv_prog_cc_g=yes
4233 else
4234   CFLAGS=""
4235       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247
4248 else
4249   ac_c_werror_flag=$ac_save_c_werror_flag
4250          CFLAGS="-g"
4251          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253
4254 int
4255 main ()
4256 {
4257
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263   ac_cv_prog_cc_g=yes
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270    ac_c_werror_flag=$ac_save_c_werror_flag
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4273 $as_echo "$ac_cv_prog_cc_g" >&6; }
4274 if test "$ac_test_CFLAGS" = set; then
4275   CFLAGS=$ac_save_CFLAGS
4276 elif test $ac_cv_prog_cc_g = yes; then
4277   if test "$GCC" = yes; then
4278     CFLAGS="-g -O2"
4279   else
4280     CFLAGS="-g"
4281   fi
4282 else
4283   if test "$GCC" = yes; then
4284     CFLAGS="-O2"
4285   else
4286     CFLAGS=
4287   fi
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4291 if ${ac_cv_prog_cc_c89+:} false; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   ac_cv_prog_cc_c89=no
4295 ac_save_CC=$CC
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298 #include <stdarg.h>
4299 #include <stdio.h>
4300 #include <sys/types.h>
4301 #include <sys/stat.h>
4302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4303 struct buf { int x; };
4304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4305 static char *e (p, i)
4306      char **p;
4307      int i;
4308 {
4309   return p[i];
4310 }
4311 static char *f (char * (*g) (char **, int), char **p, ...)
4312 {
4313   char *s;
4314   va_list v;
4315   va_start (v,p);
4316   s = g (p, va_arg (v,int));
4317   va_end (v);
4318   return s;
4319 }
4320
4321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4322    function prototypes and stuff, but not '\xHH' hex character constants.
4323    These don't provoke an error unfortunately, instead are silently treated
4324    as 'x'.  The following induces an error, until -std is added to get
4325    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4326    array size at least.  It's necessary to write '\x00'==0 to get something
4327    that's true only with -std.  */
4328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4329
4330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4331    inside strings and character constants.  */
4332 #define FOO(x) 'x'
4333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4334
4335 int test (int i, double x);
4336 struct s1 {int (*f) (int a);};
4337 struct s2 {int (*f) (double a);};
4338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4339 int argc;
4340 char **argv;
4341 int
4342 main ()
4343 {
4344 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4350         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4351 do
4352   CC="$ac_save_CC $ac_arg"
4353   if ac_fn_c_try_compile "$LINENO"; then :
4354   ac_cv_prog_cc_c89=$ac_arg
4355 fi
4356 rm -f core conftest.err conftest.$ac_objext
4357   test "x$ac_cv_prog_cc_c89" != "xno" && break
4358 done
4359 rm -f conftest.$ac_ext
4360 CC=$ac_save_CC
4361
4362 fi
4363 # AC_CACHE_VAL
4364 case "x$ac_cv_prog_cc_c89" in
4365   x)
4366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4367 $as_echo "none needed" >&6; } ;;
4368   xno)
4369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4370 $as_echo "unsupported" >&6; } ;;
4371   *)
4372     CC="$CC $ac_cv_prog_cc_c89"
4373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4375 esac
4376 if test "x$ac_cv_prog_cc_c89" != xno; then :
4377
4378 fi
4379
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386 depcc="$CC"   am_compiler_list=
4387
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4389 $as_echo_n "checking dependency style of $depcc... " >&6; }
4390 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4391   $as_echo_n "(cached) " >&6
4392 else
4393   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4394   # We make a subdir and do the tests there.  Otherwise we can end up
4395   # making bogus files that we don't know about and never remove.  For
4396   # instance it was reported that on HP-UX the gcc test will end up
4397   # making a dummy file named `D' -- because `-MD' means `put the output
4398   # in D'.
4399   rm -rf conftest.dir
4400   mkdir conftest.dir
4401   # Copy depcomp to subdir because otherwise we won't find it if we're
4402   # using a relative directory.
4403   cp "$am_depcomp" conftest.dir
4404   cd conftest.dir
4405   # We will build objects and dependencies in a subdirectory because
4406   # it helps to detect inapplicable dependency modes.  For instance
4407   # both Tru64's cc and ICC support -MD to output dependencies as a
4408   # side effect of compilation, but ICC will put the dependencies in
4409   # the current directory while Tru64 will put them in the object
4410   # directory.
4411   mkdir sub
4412
4413   am_cv_CC_dependencies_compiler_type=none
4414   if test "$am_compiler_list" = ""; then
4415      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4416   fi
4417   am__universal=false
4418   case " $depcc " in #(
4419      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4420      esac
4421
4422   for depmode in $am_compiler_list; do
4423     # Setup a source with many dependencies, because some compilers
4424     # like to wrap large dependency lists on column 80 (with \), and
4425     # we should not choose a depcomp mode which is confused by this.
4426     #
4427     # We need to recreate these files for each test, as the compiler may
4428     # overwrite some of them when testing with obscure command lines.
4429     # This happens at least with the AIX C compiler.
4430     : > sub/conftest.c
4431     for i in 1 2 3 4 5 6; do
4432       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4433       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4434       # Solaris 8's {/usr,}/bin/sh.
4435       touch sub/conftst$i.h
4436     done
4437     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4438
4439     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4440     # mode.  It turns out that the SunPro C++ compiler does not properly
4441     # handle `-M -o', and we need to detect this.  Also, some Intel
4442     # versions had trouble with output in subdirs
4443     am__obj=sub/conftest.${OBJEXT-o}
4444     am__minus_obj="-o $am__obj"
4445     case $depmode in
4446     gcc)
4447       # This depmode causes a compiler race in universal mode.
4448       test "$am__universal" = false || continue
4449       ;;
4450     nosideeffect)
4451       # after this tag, mechanisms are not by side-effect, so they'll
4452       # only be used when explicitly requested
4453       if test "x$enable_dependency_tracking" = xyes; then
4454         continue
4455       else
4456         break
4457       fi
4458       ;;
4459     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4460       # This compiler won't grok `-c -o', but also, the minuso test has
4461       # not run yet.  These depmodes are late enough in the game, and
4462       # so weak that their functioning should not be impacted.
4463       am__obj=conftest.${OBJEXT-o}
4464       am__minus_obj=
4465       ;;
4466     none) break ;;
4467     esac
4468     if depmode=$depmode \
4469        source=sub/conftest.c object=$am__obj \
4470        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4471        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4472          >/dev/null 2>conftest.err &&
4473        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4474        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4475        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4476        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4477       # icc doesn't choke on unknown options, it will just issue warnings
4478       # or remarks (even with -Werror).  So we grep stderr for any message
4479       # that says an option was ignored or not supported.
4480       # When given -MP, icc 7.0 and 7.1 complain thusly:
4481       #   icc: Command line warning: ignoring option '-M'; no argument required
4482       # The diagnosis changed in icc 8.0:
4483       #   icc: Command line remark: option '-MP' not supported
4484       if (grep 'ignoring option' conftest.err ||
4485           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4486         am_cv_CC_dependencies_compiler_type=$depmode
4487         break
4488       fi
4489     fi
4490   done
4491
4492   cd ..
4493   rm -rf conftest.dir
4494 else
4495   am_cv_CC_dependencies_compiler_type=none
4496 fi
4497
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4500 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4501 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4502
4503  if
4504   test "x$enable_dependency_tracking" != xno \
4505   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4506   am__fastdepCC_TRUE=
4507   am__fastdepCC_FALSE='#'
4508 else
4509   am__fastdepCC_TRUE='#'
4510   am__fastdepCC_FALSE=
4511 fi
4512
4513
4514 if test "x$CC" != xcc; then
4515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4516 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4517 else
4518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4519 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4520 fi
4521 set dummy $CC; ac_cc=`$as_echo "$2" |
4522                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4523 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4524   $as_echo_n "(cached) " >&6
4525 else
4526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h.  */
4528
4529 int
4530 main ()
4531 {
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 # Make sure it works both with $CC and with simple cc.
4538 # We do the test twice because some compilers refuse to overwrite an
4539 # existing .o file with -o, though they will create one.
4540 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4541 rm -f conftest2.*
4542 if { { case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547 $as_echo "$ac_try_echo"; } >&5
4548   (eval "$ac_try") 2>&5
4549   ac_status=$?
4550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551   test $ac_status = 0; } &&
4552    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554   *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558   (eval "$ac_try") 2>&5
4559   ac_status=$?
4560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561   test $ac_status = 0; };
4562 then
4563   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4564   if test "x$CC" != xcc; then
4565     # Test first that cc exists at all.
4566     if { ac_try='cc -c conftest.$ac_ext >&5'
4567   { { case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573   (eval "$ac_try") 2>&5
4574   ac_status=$?
4575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576   test $ac_status = 0; }; }; then
4577       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4578       rm -f conftest2.*
4579       if { { case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584 $as_echo "$ac_try_echo"; } >&5
4585   (eval "$ac_try") 2>&5
4586   ac_status=$?
4587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588   test $ac_status = 0; } &&
4589          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591   *) ac_try_echo=$ac_try;;
4592 esac
4593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4594 $as_echo "$ac_try_echo"; } >&5
4595   (eval "$ac_try") 2>&5
4596   ac_status=$?
4597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4598   test $ac_status = 0; };
4599       then
4600         # cc works too.
4601         :
4602       else
4603         # cc exists but doesn't like -o.
4604         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4605       fi
4606     fi
4607   fi
4608 else
4609   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4610 fi
4611 rm -f core conftest*
4612
4613 fi
4614 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616 $as_echo "yes" >&6; }
4617 else
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4620
4621 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4622
4623 fi
4624
4625 # FIXME: we rely on the cache variable name because
4626 # there is no other way.
4627 set dummy $CC
4628 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4629 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4630 if test "$am_t" != yes; then
4631    # Losing compiler, so override with the script.
4632    # FIXME: It is wrong to rewrite CC.
4633    # But if we don't then we get into trouble of one sort or another.
4634    # A longer-term fix would be to have automake use am__CC in this case,
4635    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4636    CC="$am_aux_dir/compile $CC"
4637 fi
4638
4639
4640
4641 case `pwd` in
4642   *\ * | *\     *)
4643     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4645 esac
4646
4647
4648
4649 macro_version='2.4.2'
4650 macro_revision='1.3337'
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 ltmain="$ac_aux_dir/ltmain.sh"
4665
4666 # Make sure we can run config.sub.
4667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4668   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4671 $as_echo_n "checking build system type... " >&6; }
4672 if ${ac_cv_build+:} false; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   ac_build_alias=$build_alias
4676 test "x$ac_build_alias" = x &&
4677   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4678 test "x$ac_build_alias" = x &&
4679   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4681   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4682
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4685 $as_echo "$ac_cv_build" >&6; }
4686 case $ac_cv_build in
4687 *-*-*) ;;
4688 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4689 esac
4690 build=$ac_cv_build
4691 ac_save_IFS=$IFS; IFS='-'
4692 set x $ac_cv_build
4693 shift
4694 build_cpu=$1
4695 build_vendor=$2
4696 shift; shift
4697 # Remember, the first character of IFS is used to create $*,
4698 # except with old shells:
4699 build_os=$*
4700 IFS=$ac_save_IFS
4701 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4702
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4705 $as_echo_n "checking host system type... " >&6; }
4706 if ${ac_cv_host+:} false; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   if test "x$host_alias" = x; then
4710   ac_cv_host=$ac_cv_build
4711 else
4712   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4713     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4714 fi
4715
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4718 $as_echo "$ac_cv_host" >&6; }
4719 case $ac_cv_host in
4720 *-*-*) ;;
4721 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4722 esac
4723 host=$ac_cv_host
4724 ac_save_IFS=$IFS; IFS='-'
4725 set x $ac_cv_host
4726 shift
4727 host_cpu=$1
4728 host_vendor=$2
4729 shift; shift
4730 # Remember, the first character of IFS is used to create $*,
4731 # except with old shells:
4732 host_os=$*
4733 IFS=$ac_save_IFS
4734 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4735
4736
4737 # Backslashify metacharacters that are still active within
4738 # double-quoted strings.
4739 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4740
4741 # Same as above, but do not quote variable references.
4742 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4743
4744 # Sed substitution to delay expansion of an escaped shell variable in a
4745 # double_quote_subst'ed string.
4746 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4747
4748 # Sed substitution to delay expansion of an escaped single quote.
4749 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4750
4751 # Sed substitution to avoid accidental globbing in evaled expressions
4752 no_glob_subst='s/\*/\\\*/g'
4753
4754 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4756 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4759 $as_echo_n "checking how to print strings... " >&6; }
4760 # Test print first, because it will be a builtin if present.
4761 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4762    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4763   ECHO='print -r --'
4764 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4765   ECHO='printf %s\n'
4766 else
4767   # Use this function as a fallback that always works.
4768   func_fallback_echo ()
4769   {
4770     eval 'cat <<_LTECHO_EOF
4771 $1
4772 _LTECHO_EOF'
4773   }
4774   ECHO='func_fallback_echo'
4775 fi
4776
4777 # func_echo_all arg...
4778 # Invoke $ECHO with all args, space-separated.
4779 func_echo_all ()
4780 {
4781     $ECHO ""
4782 }
4783
4784 case "$ECHO" in
4785   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4786 $as_echo "printf" >&6; } ;;
4787   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4788 $as_echo "print -r" >&6; } ;;
4789   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4790 $as_echo "cat" >&6; } ;;
4791 esac
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4807 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4808 if ${ac_cv_path_SED+:} false; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4812      for ac_i in 1 2 3 4 5 6 7; do
4813        ac_script="$ac_script$as_nl$ac_script"
4814      done
4815      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4816      { ac_script=; unset ac_script;}
4817      if test -z "$SED"; then
4818   ac_path_SED_found=false
4819   # Loop through the user's path and test for each of PROGNAME-LIST
4820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825     for ac_prog in sed gsed; do
4826     for ac_exec_ext in '' $ac_executable_extensions; do
4827       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4828       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4829 # Check for GNU ac_path_SED and select it if it is found.
4830   # Check for GNU $ac_path_SED
4831 case `"$ac_path_SED" --version 2>&1` in
4832 *GNU*)
4833   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4834 *)
4835   ac_count=0
4836   $as_echo_n 0123456789 >"conftest.in"
4837   while :
4838   do
4839     cat "conftest.in" "conftest.in" >"conftest.tmp"
4840     mv "conftest.tmp" "conftest.in"
4841     cp "conftest.in" "conftest.nl"
4842     $as_echo '' >> "conftest.nl"
4843     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4844     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4845     as_fn_arith $ac_count + 1 && ac_count=$as_val
4846     if test $ac_count -gt ${ac_path_SED_max-0}; then
4847       # Best one so far, save it but keep looking for a better one
4848       ac_cv_path_SED="$ac_path_SED"
4849       ac_path_SED_max=$ac_count
4850     fi
4851     # 10*(2^10) chars as input seems more than enough
4852     test $ac_count -gt 10 && break
4853   done
4854   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 esac
4856
4857       $ac_path_SED_found && break 3
4858     done
4859   done
4860   done
4861 IFS=$as_save_IFS
4862   if test -z "$ac_cv_path_SED"; then
4863     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4864   fi
4865 else
4866   ac_cv_path_SED=$SED
4867 fi
4868
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4871 $as_echo "$ac_cv_path_SED" >&6; }
4872  SED="$ac_cv_path_SED"
4873   rm -f conftest.sed
4874
4875 test -z "$SED" && SED=sed
4876 Xsed="$SED -e 1s/^X//"
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4889 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4890 if ${ac_cv_path_GREP+:} false; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   if test -z "$GREP"; then
4894   ac_path_GREP_found=false
4895   # Loop through the user's path and test for each of PROGNAME-LIST
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_prog in grep ggrep; do
4902     for ac_exec_ext in '' $ac_executable_extensions; do
4903       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4904       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4905 # Check for GNU ac_path_GREP and select it if it is found.
4906   # Check for GNU $ac_path_GREP
4907 case `"$ac_path_GREP" --version 2>&1` in
4908 *GNU*)
4909   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4910 *)
4911   ac_count=0
4912   $as_echo_n 0123456789 >"conftest.in"
4913   while :
4914   do
4915     cat "conftest.in" "conftest.in" >"conftest.tmp"
4916     mv "conftest.tmp" "conftest.in"
4917     cp "conftest.in" "conftest.nl"
4918     $as_echo 'GREP' >> "conftest.nl"
4919     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921     as_fn_arith $ac_count + 1 && ac_count=$as_val
4922     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4923       # Best one so far, save it but keep looking for a better one
4924       ac_cv_path_GREP="$ac_path_GREP"
4925       ac_path_GREP_max=$ac_count
4926     fi
4927     # 10*(2^10) chars as input seems more than enough
4928     test $ac_count -gt 10 && break
4929   done
4930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4931 esac
4932
4933       $ac_path_GREP_found && break 3
4934     done
4935   done
4936   done
4937 IFS=$as_save_IFS
4938   if test -z "$ac_cv_path_GREP"; then
4939     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4940   fi
4941 else
4942   ac_cv_path_GREP=$GREP
4943 fi
4944
4945 fi
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4947 $as_echo "$ac_cv_path_GREP" >&6; }
4948  GREP="$ac_cv_path_GREP"
4949
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4952 $as_echo_n "checking for egrep... " >&6; }
4953 if ${ac_cv_path_EGREP+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4957    then ac_cv_path_EGREP="$GREP -E"
4958    else
4959      if test -z "$EGREP"; then
4960   ac_path_EGREP_found=false
4961   # Loop through the user's path and test for each of PROGNAME-LIST
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967     for ac_prog in egrep; do
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4970       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4971 # Check for GNU ac_path_EGREP and select it if it is found.
4972   # Check for GNU $ac_path_EGREP
4973 case `"$ac_path_EGREP" --version 2>&1` in
4974 *GNU*)
4975   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4976 *)
4977   ac_count=0
4978   $as_echo_n 0123456789 >"conftest.in"
4979   while :
4980   do
4981     cat "conftest.in" "conftest.in" >"conftest.tmp"
4982     mv "conftest.tmp" "conftest.in"
4983     cp "conftest.in" "conftest.nl"
4984     $as_echo 'EGREP' >> "conftest.nl"
4985     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987     as_fn_arith $ac_count + 1 && ac_count=$as_val
4988     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4989       # Best one so far, save it but keep looking for a better one
4990       ac_cv_path_EGREP="$ac_path_EGREP"
4991       ac_path_EGREP_max=$ac_count
4992     fi
4993     # 10*(2^10) chars as input seems more than enough
4994     test $ac_count -gt 10 && break
4995   done
4996   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997 esac
4998
4999       $ac_path_EGREP_found && break 3
5000     done
5001   done
5002   done
5003 IFS=$as_save_IFS
5004   if test -z "$ac_cv_path_EGREP"; then
5005     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5006   fi
5007 else
5008   ac_cv_path_EGREP=$EGREP
5009 fi
5010
5011    fi
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5014 $as_echo "$ac_cv_path_EGREP" >&6; }
5015  EGREP="$ac_cv_path_EGREP"
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5019 $as_echo_n "checking for fgrep... " >&6; }
5020 if ${ac_cv_path_FGREP+:} false; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5024    then ac_cv_path_FGREP="$GREP -F"
5025    else
5026      if test -z "$FGREP"; then
5027   ac_path_FGREP_found=false
5028   # Loop through the user's path and test for each of PROGNAME-LIST
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034     for ac_prog in fgrep; do
5035     for ac_exec_ext in '' $ac_executable_extensions; do
5036       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5037       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5038 # Check for GNU ac_path_FGREP and select it if it is found.
5039   # Check for GNU $ac_path_FGREP
5040 case `"$ac_path_FGREP" --version 2>&1` in
5041 *GNU*)
5042   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5043 *)
5044   ac_count=0
5045   $as_echo_n 0123456789 >"conftest.in"
5046   while :
5047   do
5048     cat "conftest.in" "conftest.in" >"conftest.tmp"
5049     mv "conftest.tmp" "conftest.in"
5050     cp "conftest.in" "conftest.nl"
5051     $as_echo 'FGREP' >> "conftest.nl"
5052     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5053     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5054     as_fn_arith $ac_count + 1 && ac_count=$as_val
5055     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5056       # Best one so far, save it but keep looking for a better one
5057       ac_cv_path_FGREP="$ac_path_FGREP"
5058       ac_path_FGREP_max=$ac_count
5059     fi
5060     # 10*(2^10) chars as input seems more than enough
5061     test $ac_count -gt 10 && break
5062   done
5063   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5064 esac
5065
5066       $ac_path_FGREP_found && break 3
5067     done
5068   done
5069   done
5070 IFS=$as_save_IFS
5071   if test -z "$ac_cv_path_FGREP"; then
5072     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5073   fi
5074 else
5075   ac_cv_path_FGREP=$FGREP
5076 fi
5077
5078    fi
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5081 $as_echo "$ac_cv_path_FGREP" >&6; }
5082  FGREP="$ac_cv_path_FGREP"
5083
5084
5085 test -z "$GREP" && GREP=grep
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105 # Check whether --with-gnu-ld was given.
5106 if test "${with_gnu_ld+set}" = set; then :
5107   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5108 else
5109   with_gnu_ld=no
5110 fi
5111
5112 ac_prog=ld
5113 if test "$GCC" = yes; then
5114   # Check if gcc -print-prog-name=ld gives a path.
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5116 $as_echo_n "checking for ld used by $CC... " >&6; }
5117   case $host in
5118   *-*-mingw*)
5119     # gcc leaves a trailing carriage return which upsets mingw
5120     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5121   *)
5122     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5123   esac
5124   case $ac_prog in
5125     # Accept absolute paths.
5126     [\\/]* | ?:[\\/]*)
5127       re_direlt='/[^/][^/]*/\.\./'
5128       # Canonicalize the pathname of ld
5129       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5130       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5131         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5132       done
5133       test -z "$LD" && LD="$ac_prog"
5134       ;;
5135   "")
5136     # If it fails, then pretend we aren't using GCC.
5137     ac_prog=ld
5138     ;;
5139   *)
5140     # If it is relative, then search for the first ld in PATH.
5141     with_gnu_ld=unknown
5142     ;;
5143   esac
5144 elif test "$with_gnu_ld" = yes; then
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5146 $as_echo_n "checking for GNU ld... " >&6; }
5147 else
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5149 $as_echo_n "checking for non-GNU ld... " >&6; }
5150 fi
5151 if ${lt_cv_path_LD+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   if test -z "$LD"; then
5155   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5156   for ac_dir in $PATH; do
5157     IFS="$lt_save_ifs"
5158     test -z "$ac_dir" && ac_dir=.
5159     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5160       lt_cv_path_LD="$ac_dir/$ac_prog"
5161       # Check to see if the program is GNU ld.  I'd rather use --version,
5162       # but apparently some variants of GNU ld only accept -v.
5163       # Break only if it was the GNU/non-GNU ld that we prefer.
5164       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5165       *GNU* | *'with BFD'*)
5166         test "$with_gnu_ld" != no && break
5167         ;;
5168       *)
5169         test "$with_gnu_ld" != yes && break
5170         ;;
5171       esac
5172     fi
5173   done
5174   IFS="$lt_save_ifs"
5175 else
5176   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5177 fi
5178 fi
5179
5180 LD="$lt_cv_path_LD"
5181 if test -n "$LD"; then
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5183 $as_echo "$LD" >&6; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5190 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5191 if ${lt_cv_prog_gnu_ld+:} false; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5195 case `$LD -v 2>&1 </dev/null` in
5196 *GNU* | *'with BFD'*)
5197   lt_cv_prog_gnu_ld=yes
5198   ;;
5199 *)
5200   lt_cv_prog_gnu_ld=no
5201   ;;
5202 esac
5203 fi
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5205 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5206 with_gnu_ld=$lt_cv_prog_gnu_ld
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5217 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5218 if ${lt_cv_path_NM+:} false; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221   if test -n "$NM"; then
5222   # Let the user override the test.
5223   lt_cv_path_NM="$NM"
5224 else
5225   lt_nm_to_check="${ac_tool_prefix}nm"
5226   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5227     lt_nm_to_check="$lt_nm_to_check nm"
5228   fi
5229   for lt_tmp_nm in $lt_nm_to_check; do
5230     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5231     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5232       IFS="$lt_save_ifs"
5233       test -z "$ac_dir" && ac_dir=.
5234       tmp_nm="$ac_dir/$lt_tmp_nm"
5235       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5236         # Check to see if the nm accepts a BSD-compat flag.
5237         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5238         #   nm: unknown option "B" ignored
5239         # Tru64's nm complains that /dev/null is an invalid object file
5240         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5241         */dev/null* | *'Invalid file or object type'*)
5242           lt_cv_path_NM="$tmp_nm -B"
5243           break
5244           ;;
5245         *)
5246           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5247           */dev/null*)
5248             lt_cv_path_NM="$tmp_nm -p"
5249             break
5250             ;;
5251           *)
5252             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5253             continue # so that we can try to find one that supports BSD flags
5254             ;;
5255           esac
5256           ;;
5257         esac
5258       fi
5259     done
5260     IFS="$lt_save_ifs"
5261   done
5262   : ${lt_cv_path_NM=no}
5263 fi
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5266 $as_echo "$lt_cv_path_NM" >&6; }
5267 if test "$lt_cv_path_NM" != "no"; then
5268   NM="$lt_cv_path_NM"
5269 else
5270   # Didn't find any BSD compatible name lister, look for dumpbin.
5271   if test -n "$DUMPBIN"; then :
5272     # Let the user override the test.
5273   else
5274     if test -n "$ac_tool_prefix"; then
5275   for ac_prog in dumpbin "link -dump"
5276   do
5277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_prog_DUMPBIN+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   if test -n "$DUMPBIN"; then
5285   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292     for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299   done
5300 IFS=$as_save_IFS
5301
5302 fi
5303 fi
5304 DUMPBIN=$ac_cv_prog_DUMPBIN
5305 if test -n "$DUMPBIN"; then
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5307 $as_echo "$DUMPBIN" >&6; }
5308 else
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5311 fi
5312
5313
5314     test -n "$DUMPBIN" && break
5315   done
5316 fi
5317 if test -z "$DUMPBIN"; then
5318   ac_ct_DUMPBIN=$DUMPBIN
5319   for ac_prog in dumpbin "link -dump"
5320 do
5321   # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5326   $as_echo_n "(cached) " >&6
5327 else
5328   if test -n "$ac_ct_DUMPBIN"; then
5329   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336     for ac_exec_ext in '' $ac_executable_extensions; do
5337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340     break 2
5341   fi
5342 done
5343   done
5344 IFS=$as_save_IFS
5345
5346 fi
5347 fi
5348 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5349 if test -n "$ac_ct_DUMPBIN"; then
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5351 $as_echo "$ac_ct_DUMPBIN" >&6; }
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356
5357
5358   test -n "$ac_ct_DUMPBIN" && break
5359 done
5360
5361   if test "x$ac_ct_DUMPBIN" = x; then
5362     DUMPBIN=":"
5363   else
5364     case $cross_compiling:$ac_tool_warned in
5365 yes:)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368 ac_tool_warned=yes ;;
5369 esac
5370     DUMPBIN=$ac_ct_DUMPBIN
5371   fi
5372 fi
5373
5374     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5375     *COFF*)
5376       DUMPBIN="$DUMPBIN -symbols"
5377       ;;
5378     *)
5379       DUMPBIN=:
5380       ;;
5381     esac
5382   fi
5383
5384   if test "$DUMPBIN" != ":"; then
5385     NM="$DUMPBIN"
5386   fi
5387 fi
5388 test -z "$NM" && NM=nm
5389
5390
5391
5392
5393
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5396 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5397 if ${lt_cv_nm_interface+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   lt_cv_nm_interface="BSD nm"
5401   echo "int some_variable = 0;" > conftest.$ac_ext
5402   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5403   (eval "$ac_compile" 2>conftest.err)
5404   cat conftest.err >&5
5405   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5406   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5407   cat conftest.err >&5
5408   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5409   cat conftest.out >&5
5410   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5411     lt_cv_nm_interface="MS dumpbin"
5412   fi
5413   rm -f conftest*
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5416 $as_echo "$lt_cv_nm_interface" >&6; }
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5419 $as_echo_n "checking whether ln -s works... " >&6; }
5420 LN_S=$as_ln_s
5421 if test "$LN_S" = "ln -s"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5423 $as_echo "yes" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5426 $as_echo "no, using $LN_S" >&6; }
5427 fi
5428
5429 # find the maximum length of command line arguments
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5431 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5432 if ${lt_cv_sys_max_cmd_len+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435     i=0
5436   teststring="ABCD"
5437
5438   case $build_os in
5439   msdosdjgpp*)
5440     # On DJGPP, this test can blow up pretty badly due to problems in libc
5441     # (any single argument exceeding 2000 bytes causes a buffer overrun
5442     # during glob expansion).  Even if it were fixed, the result of this
5443     # check would be larger than it should be.
5444     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5445     ;;
5446
5447   gnu*)
5448     # Under GNU Hurd, this test is not required because there is
5449     # no limit to the length of command line arguments.
5450     # Libtool will interpret -1 as no limit whatsoever
5451     lt_cv_sys_max_cmd_len=-1;
5452     ;;
5453
5454   cygwin* | mingw* | cegcc*)
5455     # On Win9x/ME, this test blows up -- it succeeds, but takes
5456     # about 5 minutes as the teststring grows exponentially.
5457     # Worse, since 9x/ME are not pre-emptively multitasking,
5458     # you end up with a "frozen" computer, even though with patience
5459     # the test eventually succeeds (with a max line length of 256k).
5460     # Instead, let's just punt: use the minimum linelength reported by
5461     # all of the supported platforms: 8192 (on NT/2K/XP).
5462     lt_cv_sys_max_cmd_len=8192;
5463     ;;
5464
5465   mint*)
5466     # On MiNT this can take a long time and run out of memory.
5467     lt_cv_sys_max_cmd_len=8192;
5468     ;;
5469
5470   amigaos*)
5471     # On AmigaOS with pdksh, this test takes hours, literally.
5472     # So we just punt and use a minimum line length of 8192.
5473     lt_cv_sys_max_cmd_len=8192;
5474     ;;
5475
5476   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5477     # This has been around since 386BSD, at least.  Likely further.
5478     if test -x /sbin/sysctl; then
5479       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5480     elif test -x /usr/sbin/sysctl; then
5481       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5482     else
5483       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5484     fi
5485     # And add a safety zone
5486     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5487     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5488     ;;
5489
5490   interix*)
5491     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5492     lt_cv_sys_max_cmd_len=196608
5493     ;;
5494
5495   os2*)
5496     # The test takes a long time on OS/2.
5497     lt_cv_sys_max_cmd_len=8192
5498     ;;
5499
5500   osf*)
5501     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5502     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5503     # nice to cause kernel panics so lets avoid the loop below.
5504     # First set a reasonable default.
5505     lt_cv_sys_max_cmd_len=16384
5506     #
5507     if test -x /sbin/sysconfig; then
5508       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5509         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5510       esac
5511     fi
5512     ;;
5513   sco3.2v5*)
5514     lt_cv_sys_max_cmd_len=102400
5515     ;;
5516   sysv5* | sco5v6* | sysv4.2uw2*)
5517     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5518     if test -n "$kargmax"; then
5519       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5520     else
5521       lt_cv_sys_max_cmd_len=32768
5522     fi
5523     ;;
5524   *)
5525     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5526     if test -n "$lt_cv_sys_max_cmd_len"; then
5527       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5528       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5529     else
5530       # Make teststring a little bigger before we do anything with it.
5531       # a 1K string should be a reasonable start.
5532       for i in 1 2 3 4 5 6 7 8 ; do
5533         teststring=$teststring$teststring
5534       done
5535       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5536       # If test is not a shell built-in, we'll probably end up computing a
5537       # maximum length that is only half of the actual maximum length, but
5538       # we can't tell.
5539       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5540                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5541               test $i != 17 # 1/2 MB should be enough
5542       do
5543         i=`expr $i + 1`
5544         teststring=$teststring$teststring
5545       done
5546       # Only check the string length outside the loop.
5547       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5548       teststring=
5549       # Add a significant safety factor because C++ compilers can tack on
5550       # massive amounts of additional arguments before passing them to the
5551       # linker.  It appears as though 1/2 is a usable value.
5552       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5553     fi
5554     ;;
5555   esac
5556
5557 fi
5558
5559 if test -n $lt_cv_sys_max_cmd_len ; then
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5561 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5562 else
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5564 $as_echo "none" >&6; }
5565 fi
5566 max_cmd_len=$lt_cv_sys_max_cmd_len
5567
5568
5569
5570
5571
5572
5573 : ${CP="cp -f"}
5574 : ${MV="mv -f"}
5575 : ${RM="rm -f"}
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5578 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5579 # Try some XSI features
5580 xsi_shell=no
5581 ( _lt_dummy="a/b/c"
5582   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5583       = c,a/b,b/c, \
5584     && eval 'test $(( 1 + 1 )) -eq 2 \
5585     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5586   && xsi_shell=yes
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5588 $as_echo "$xsi_shell" >&6; }
5589
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5592 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5593 lt_shell_append=no
5594 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5595     >/dev/null 2>&1 \
5596   && lt_shell_append=yes
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5598 $as_echo "$lt_shell_append" >&6; }
5599
5600
5601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5602   lt_unset=unset
5603 else
5604   lt_unset=false
5605 fi
5606
5607
5608
5609
5610
5611 # test EBCDIC or ASCII
5612 case `echo X|tr X '\101'` in
5613  A) # ASCII based system
5614     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5615   lt_SP2NL='tr \040 \012'
5616   lt_NL2SP='tr \015\012 \040\040'
5617   ;;
5618  *) # EBCDIC based system
5619   lt_SP2NL='tr \100 \n'
5620   lt_NL2SP='tr \r\n \100\100'
5621   ;;
5622 esac
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5633 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5634 if ${lt_cv_to_host_file_cmd+:} false; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   case $host in
5638   *-*-mingw* )
5639     case $build in
5640       *-*-mingw* ) # actually msys
5641         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5642         ;;
5643       *-*-cygwin* )
5644         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5645         ;;
5646       * ) # otherwise, assume *nix
5647         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5648         ;;
5649     esac
5650     ;;
5651   *-*-cygwin* )
5652     case $build in
5653       *-*-mingw* ) # actually msys
5654         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5655         ;;
5656       *-*-cygwin* )
5657         lt_cv_to_host_file_cmd=func_convert_file_noop
5658         ;;
5659       * ) # otherwise, assume *nix
5660         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5661         ;;
5662     esac
5663     ;;
5664   * ) # unhandled hosts (and "normal" native builds)
5665     lt_cv_to_host_file_cmd=func_convert_file_noop
5666     ;;
5667 esac
5668
5669 fi
5670
5671 to_host_file_cmd=$lt_cv_to_host_file_cmd
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5673 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5674
5675
5676
5677
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5680 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5681 if ${lt_cv_to_tool_file_cmd+:} false; then :
5682   $as_echo_n "(cached) " >&6
5683 else
5684   #assume ordinary cross tools, or native build.
5685 lt_cv_to_tool_file_cmd=func_convert_file_noop
5686 case $host in
5687   *-*-mingw* )
5688     case $build in
5689       *-*-mingw* ) # actually msys
5690         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5691         ;;
5692     esac
5693     ;;
5694 esac
5695
5696 fi
5697
5698 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5700 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5701
5702
5703
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5707 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5708 if ${lt_cv_ld_reload_flag+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   lt_cv_ld_reload_flag='-r'
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5714 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5715 reload_flag=$lt_cv_ld_reload_flag
5716 case $reload_flag in
5717 "" | " "*) ;;
5718 *) reload_flag=" $reload_flag" ;;
5719 esac
5720 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5721 case $host_os in
5722   cygwin* | mingw* | pw32* | cegcc*)
5723     if test "$GCC" != yes; then
5724       reload_cmds=false
5725     fi
5726     ;;
5727   darwin*)
5728     if test "$GCC" = yes; then
5729       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5730     else
5731       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5732     fi
5733     ;;
5734 esac
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 if test -n "$ac_tool_prefix"; then
5745   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5746 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_OBJDUMP+:} false; then :
5750   $as_echo_n "(cached) " >&6
5751 else
5752   if test -n "$OBJDUMP"; then
5753   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760     for ac_exec_ext in '' $ac_executable_extensions; do
5761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767   done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 OBJDUMP=$ac_cv_prog_OBJDUMP
5773 if test -n "$OBJDUMP"; then
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5775 $as_echo "$OBJDUMP" >&6; }
5776 else
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781
5782 fi
5783 if test -z "$ac_cv_prog_OBJDUMP"; then
5784   ac_ct_OBJDUMP=$OBJDUMP
5785   # Extract the first word of "objdump", so it can be a program name with args.
5786 set dummy objdump; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   if test -n "$ac_ct_OBJDUMP"; then
5793   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798   IFS=$as_save_IFS
5799   test -z "$as_dir" && as_dir=.
5800     for ac_exec_ext in '' $ac_executable_extensions; do
5801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804     break 2
5805   fi
5806 done
5807   done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5813 if test -n "$ac_ct_OBJDUMP"; then
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5815 $as_echo "$ac_ct_OBJDUMP" >&6; }
5816 else
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821   if test "x$ac_ct_OBJDUMP" = x; then
5822     OBJDUMP="false"
5823   else
5824     case $cross_compiling:$ac_tool_warned in
5825 yes:)
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828 ac_tool_warned=yes ;;
5829 esac
5830     OBJDUMP=$ac_ct_OBJDUMP
5831   fi
5832 else
5833   OBJDUMP="$ac_cv_prog_OBJDUMP"
5834 fi
5835
5836 test -z "$OBJDUMP" && OBJDUMP=objdump
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5847 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5848 if ${lt_cv_deplibs_check_method+:} false; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   lt_cv_file_magic_cmd='$MAGIC_CMD'
5852 lt_cv_file_magic_test_file=
5853 lt_cv_deplibs_check_method='unknown'
5854 # Need to set the preceding variable on all platforms that support
5855 # interlibrary dependencies.
5856 # 'none' -- dependencies not supported.
5857 # `unknown' -- same as none, but documents that we really don't know.
5858 # 'pass_all' -- all dependencies passed with no checks.
5859 # 'test_compile' -- check by making test program.
5860 # 'file_magic [[regex]]' -- check by looking for files in library path
5861 # which responds to the $file_magic_cmd with a given extended regex.
5862 # If you have `file' or equivalent on your system and you're not sure
5863 # whether `pass_all' will *always* work, you probably want this one.
5864
5865 case $host_os in
5866 aix[4-9]*)
5867   lt_cv_deplibs_check_method=pass_all
5868   ;;
5869
5870 beos*)
5871   lt_cv_deplibs_check_method=pass_all
5872   ;;
5873
5874 bsdi[45]*)
5875   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5876   lt_cv_file_magic_cmd='/usr/bin/file -L'
5877   lt_cv_file_magic_test_file=/shlib/libc.so
5878   ;;
5879
5880 cygwin*)
5881   # func_win32_libid is a shell function defined in ltmain.sh
5882   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5883   lt_cv_file_magic_cmd='func_win32_libid'
5884   ;;
5885
5886 mingw* | pw32*)
5887   # Base MSYS/MinGW do not provide the 'file' command needed by
5888   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5889   # unless we find 'file', for example because we are cross-compiling.
5890   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5891   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5892     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5893     lt_cv_file_magic_cmd='func_win32_libid'
5894   else
5895     # Keep this pattern in sync with the one in func_win32_libid.
5896     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5897     lt_cv_file_magic_cmd='$OBJDUMP -f'
5898   fi
5899   ;;
5900
5901 cegcc*)
5902   # use the weaker test based on 'objdump'. See mingw*.
5903   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5904   lt_cv_file_magic_cmd='$OBJDUMP -f'
5905   ;;
5906
5907 darwin* | rhapsody*)
5908   lt_cv_deplibs_check_method=pass_all
5909   ;;
5910
5911 freebsd* | dragonfly*)
5912   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5913     case $host_cpu in
5914     i*86 )
5915       # Not sure whether the presence of OpenBSD here was a mistake.
5916       # Let's accept both of them until this is cleared up.
5917       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5918       lt_cv_file_magic_cmd=/usr/bin/file
5919       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5920       ;;
5921     esac
5922   else
5923     lt_cv_deplibs_check_method=pass_all
5924   fi
5925   ;;
5926
5927 gnu*)
5928   lt_cv_deplibs_check_method=pass_all
5929   ;;
5930
5931 haiku*)
5932   lt_cv_deplibs_check_method=pass_all
5933   ;;
5934
5935 hpux10.20* | hpux11*)
5936   lt_cv_file_magic_cmd=/usr/bin/file
5937   case $host_cpu in
5938   ia64*)
5939     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5941     ;;
5942   hppa*64*)
5943     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]'
5944     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5945     ;;
5946   *)
5947     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5948     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5949     ;;
5950   esac
5951   ;;
5952
5953 interix[3-9]*)
5954   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5955   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5956   ;;
5957
5958 irix5* | irix6* | nonstopux*)
5959   case $LD in
5960   *-32|*"-32 ") libmagic=32-bit;;
5961   *-n32|*"-n32 ") libmagic=N32;;
5962   *-64|*"-64 ") libmagic=64-bit;;
5963   *) libmagic=never-match;;
5964   esac
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 # This must be glibc/ELF.
5969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5970   lt_cv_deplibs_check_method=pass_all
5971   ;;
5972
5973 netbsd*)
5974   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5976   else
5977     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5978   fi
5979   ;;
5980
5981 newos6*)
5982   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5983   lt_cv_file_magic_cmd=/usr/bin/file
5984   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5985   ;;
5986
5987 *nto* | *qnx*)
5988   lt_cv_deplibs_check_method=pass_all
5989   ;;
5990
5991 openbsd*)
5992   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5993     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5994   else
5995     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5996   fi
5997   ;;
5998
5999 osf3* | osf4* | osf5*)
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6002
6003 rdos*)
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6006
6007 solaris*)
6008   lt_cv_deplibs_check_method=pass_all
6009   ;;
6010
6011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6012   lt_cv_deplibs_check_method=pass_all
6013   ;;
6014
6015 sysv4 | sysv4.3*)
6016   case $host_vendor in
6017   motorola)
6018     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]'
6019     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6020     ;;
6021   ncr)
6022     lt_cv_deplibs_check_method=pass_all
6023     ;;
6024   sequent)
6025     lt_cv_file_magic_cmd='/bin/file'
6026     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6027     ;;
6028   sni)
6029     lt_cv_file_magic_cmd='/bin/file'
6030     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6031     lt_cv_file_magic_test_file=/lib/libc.so
6032     ;;
6033   siemens)
6034     lt_cv_deplibs_check_method=pass_all
6035     ;;
6036   pc)
6037     lt_cv_deplibs_check_method=pass_all
6038     ;;
6039   esac
6040   ;;
6041
6042 tpf*)
6043   lt_cv_deplibs_check_method=pass_all
6044   ;;
6045 esac
6046
6047 fi
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6049 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6050
6051 file_magic_glob=
6052 want_nocaseglob=no
6053 if test "$build" = "$host"; then
6054   case $host_os in
6055   mingw* | pw32*)
6056     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6057       want_nocaseglob=yes
6058     else
6059       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6060     fi
6061     ;;
6062   esac
6063 fi
6064
6065 file_magic_cmd=$lt_cv_file_magic_cmd
6066 deplibs_check_method=$lt_cv_deplibs_check_method
6067 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 if test -n "$ac_tool_prefix"; then
6091   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if ${ac_cv_prog_DLLTOOL+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   if test -n "$DLLTOOL"; then
6099   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106     for ac_exec_ext in '' $ac_executable_extensions; do
6107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113   done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 DLLTOOL=$ac_cv_prog_DLLTOOL
6119 if test -n "$DLLTOOL"; then
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6121 $as_echo "$DLLTOOL" >&6; }
6122 else
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126
6127
6128 fi
6129 if test -z "$ac_cv_prog_DLLTOOL"; then
6130   ac_ct_DLLTOOL=$DLLTOOL
6131   # Extract the first word of "dlltool", so it can be a program name with args.
6132 set dummy dlltool; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6136   $as_echo_n "(cached) " >&6
6137 else
6138   if test -n "$ac_ct_DLLTOOL"; then
6139   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144   IFS=$as_save_IFS
6145   test -z "$as_dir" && as_dir=.
6146     for ac_exec_ext in '' $ac_executable_extensions; do
6147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150     break 2
6151   fi
6152 done
6153   done
6154 IFS=$as_save_IFS
6155
6156 fi
6157 fi
6158 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6159 if test -n "$ac_ct_DLLTOOL"; then
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6161 $as_echo "$ac_ct_DLLTOOL" >&6; }
6162 else
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166
6167   if test "x$ac_ct_DLLTOOL" = x; then
6168     DLLTOOL="false"
6169   else
6170     case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176     DLLTOOL=$ac_ct_DLLTOOL
6177   fi
6178 else
6179   DLLTOOL="$ac_cv_prog_DLLTOOL"
6180 fi
6181
6182 test -z "$DLLTOOL" && DLLTOOL=dlltool
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6194 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6195 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   lt_cv_sharedlib_from_linklib_cmd='unknown'
6199
6200 case $host_os in
6201 cygwin* | mingw* | pw32* | cegcc*)
6202   # two different shell functions defined in ltmain.sh
6203   # decide which to use based on capabilities of $DLLTOOL
6204   case `$DLLTOOL --help 2>&1` in
6205   *--identify-strict*)
6206     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6207     ;;
6208   *)
6209     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6210     ;;
6211   esac
6212   ;;
6213 *)
6214   # fallback: assume linklib IS sharedlib
6215   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6216   ;;
6217 esac
6218
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6221 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6222 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6223 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6224
6225
6226
6227
6228
6229
6230
6231 if test -n "$ac_tool_prefix"; then
6232   for ac_prog in ar
6233   do
6234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_AR+:} false; then :
6239   $as_echo_n "(cached) " >&6
6240 else
6241   if test -n "$AR"; then
6242   ac_cv_prog_AR="$AR" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247   IFS=$as_save_IFS
6248   test -z "$as_dir" && as_dir=.
6249     for ac_exec_ext in '' $ac_executable_extensions; do
6250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253     break 2
6254   fi
6255 done
6256   done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 AR=$ac_cv_prog_AR
6262 if test -n "$AR"; then
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6264 $as_echo "$AR" >&6; }
6265 else
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 fi
6269
6270
6271     test -n "$AR" && break
6272   done
6273 fi
6274 if test -z "$AR"; then
6275   ac_ct_AR=$AR
6276   for ac_prog in ar
6277 do
6278   # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   if test -n "$ac_ct_AR"; then
6286   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293     for ac_exec_ext in '' $ac_executable_extensions; do
6294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295     ac_cv_prog_ac_ct_AR="$ac_prog"
6296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300   done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6306 if test -n "$ac_ct_AR"; then
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6308 $as_echo "$ac_ct_AR" >&6; }
6309 else
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6312 fi
6313
6314
6315   test -n "$ac_ct_AR" && break
6316 done
6317
6318   if test "x$ac_ct_AR" = x; then
6319     AR="false"
6320   else
6321     case $cross_compiling:$ac_tool_warned in
6322 yes:)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6326 esac
6327     AR=$ac_ct_AR
6328   fi
6329 fi
6330
6331 : ${AR=ar}
6332 : ${AR_FLAGS=cru}
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6345 $as_echo_n "checking for archiver @FILE support... " >&6; }
6346 if ${lt_cv_ar_at_file+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   lt_cv_ar_at_file=no
6350    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6352
6353 int
6354 main ()
6355 {
6356
6357   ;
6358   return 0;
6359 }
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362   echo conftest.$ac_objext > conftest.lst
6363       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6364       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6365   (eval $lt_ar_try) 2>&5
6366   ac_status=$?
6367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368   test $ac_status = 0; }
6369       if test "$ac_status" -eq 0; then
6370         # Ensure the archiver fails upon bogus file names.
6371         rm -f conftest.$ac_objext libconftest.a
6372         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6373   (eval $lt_ar_try) 2>&5
6374   ac_status=$?
6375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376   test $ac_status = 0; }
6377         if test "$ac_status" -ne 0; then
6378           lt_cv_ar_at_file=@
6379         fi
6380       fi
6381       rm -f conftest.* libconftest.a
6382
6383 fi
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6388 $as_echo "$lt_cv_ar_at_file" >&6; }
6389
6390 if test "x$lt_cv_ar_at_file" = xno; then
6391   archiver_list_spec=
6392 else
6393   archiver_list_spec=$lt_cv_ar_at_file
6394 fi
6395
6396
6397
6398
6399
6400
6401
6402 if test -n "$ac_tool_prefix"; then
6403   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}strip; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_STRIP+:} false; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   if test -n "$STRIP"; then
6411   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418     for ac_exec_ext in '' $ac_executable_extensions; do
6419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425   done
6426 IFS=$as_save_IFS
6427
6428 fi
6429 fi
6430 STRIP=$ac_cv_prog_STRIP
6431 if test -n "$STRIP"; then
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6433 $as_echo "$STRIP" >&6; }
6434 else
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6437 fi
6438
6439
6440 fi
6441 if test -z "$ac_cv_prog_STRIP"; then
6442   ac_ct_STRIP=$STRIP
6443   # Extract the first word of "strip", so it can be a program name with args.
6444 set dummy strip; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$ac_ct_STRIP"; then
6451   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_prog_ac_ct_STRIP="strip"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6471 if test -n "$ac_ct_STRIP"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6473 $as_echo "$ac_ct_STRIP" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479   if test "x$ac_ct_STRIP" = x; then
6480     STRIP=":"
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     STRIP=$ac_ct_STRIP
6489   fi
6490 else
6491   STRIP="$ac_cv_prog_STRIP"
6492 fi
6493
6494 test -z "$STRIP" && STRIP=:
6495
6496
6497
6498
6499
6500
6501 if test -n "$ac_tool_prefix"; then
6502   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_RANLIB+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$RANLIB"; then
6510   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 RANLIB=$ac_cv_prog_RANLIB
6530 if test -n "$RANLIB"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6532 $as_echo "$RANLIB" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539 fi
6540 if test -z "$ac_cv_prog_RANLIB"; then
6541   ac_ct_RANLIB=$RANLIB
6542   # Extract the first word of "ranlib", so it can be a program name with args.
6543 set dummy ranlib; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -n "$ac_ct_RANLIB"; then
6550   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_prog_ac_ct_RANLIB="ranlib"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6570 if test -n "$ac_ct_RANLIB"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6572 $as_echo "$ac_ct_RANLIB" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578   if test "x$ac_ct_RANLIB" = x; then
6579     RANLIB=":"
6580   else
6581     case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587     RANLIB=$ac_ct_RANLIB
6588   fi
6589 else
6590   RANLIB="$ac_cv_prog_RANLIB"
6591 fi
6592
6593 test -z "$RANLIB" && RANLIB=:
6594
6595
6596
6597
6598
6599
6600 # Determine commands to create old-style static archives.
6601 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6602 old_postinstall_cmds='chmod 644 $oldlib'
6603 old_postuninstall_cmds=
6604
6605 if test -n "$RANLIB"; then
6606   case $host_os in
6607   openbsd*)
6608     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6609     ;;
6610   *)
6611     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6612     ;;
6613   esac
6614   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6615 fi
6616
6617 case $host_os in
6618   darwin*)
6619     lock_old_archive_extraction=yes ;;
6620   *)
6621     lock_old_archive_extraction=no ;;
6622 esac
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 # If no C compiler was specified, use CC.
6663 LTCC=${LTCC-"$CC"}
6664
6665 # If no C compiler flags were specified, use CFLAGS.
6666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6667
6668 # Allow CC to be a program name with arguments.
6669 compiler=$CC
6670
6671
6672 # Check for command to grab the raw symbol name followed by C symbol from nm.
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6675 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678
6679 # These are sane defaults that work on at least a few old systems.
6680 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6681
6682 # Character class describing NM global symbol codes.
6683 symcode='[BCDEGRST]'
6684
6685 # Regexp to match symbols that can be accessed directly from C.
6686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6687
6688 # Define system-specific variables.
6689 case $host_os in
6690 aix*)
6691   symcode='[BCDT]'
6692   ;;
6693 cygwin* | mingw* | pw32* | cegcc*)
6694   symcode='[ABCDGISTW]'
6695   ;;
6696 hpux*)
6697   if test "$host_cpu" = ia64; then
6698     symcode='[ABCDEGRST]'
6699   fi
6700   ;;
6701 irix* | nonstopux*)
6702   symcode='[BCDEGRST]'
6703   ;;
6704 osf*)
6705   symcode='[BCDEGQRST]'
6706   ;;
6707 solaris*)
6708   symcode='[BDRT]'
6709   ;;
6710 sco3.2v5*)
6711   symcode='[DT]'
6712   ;;
6713 sysv4.2uw2*)
6714   symcode='[DT]'
6715   ;;
6716 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6717   symcode='[ABDT]'
6718   ;;
6719 sysv4)
6720   symcode='[DFNSTU]'
6721   ;;
6722 esac
6723
6724 # If we're using GNU nm, then use its standard symbol codes.
6725 case `$NM -V 2>&1` in
6726 *GNU* | *'with BFD'*)
6727   symcode='[ABCDGIRSTW]' ;;
6728 esac
6729
6730 # Transform an extracted symbol line into a proper C declaration.
6731 # Some systems (esp. on ia64) link data and code symbols differently,
6732 # so use this general approach.
6733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6734
6735 # Transform an extracted symbol line into symbol name and symbol address
6736 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6737 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6738
6739 # Handle CRLF in mingw tool chain
6740 opt_cr=
6741 case $build_os in
6742 mingw*)
6743   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6744   ;;
6745 esac
6746
6747 # Try without a prefix underscore, then with it.
6748 for ac_symprfx in "" "_"; do
6749
6750   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6751   symxfrm="\\1 $ac_symprfx\\2 \\2"
6752
6753   # Write the raw and C identifiers.
6754   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6755     # Fake it for dumpbin and say T for any non-static function
6756     # and D for any global variable.
6757     # Also find C++ and __fastcall symbols from MSVC++,
6758     # which start with @ or ?.
6759     lt_cv_sys_global_symbol_pipe="$AWK '"\
6760 "     {last_section=section; section=\$ 3};"\
6761 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6762 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6763 "     \$ 0!~/External *\|/{next};"\
6764 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6765 "     {if(hide[section]) next};"\
6766 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6767 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6768 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6769 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6770 "     ' prfx=^$ac_symprfx"
6771   else
6772     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6773   fi
6774   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6775
6776   # Check to see that the pipe works correctly.
6777   pipe_works=no
6778
6779   rm -f conftest*
6780   cat > conftest.$ac_ext <<_LT_EOF
6781 #ifdef __cplusplus
6782 extern "C" {
6783 #endif
6784 char nm_test_var;
6785 void nm_test_func(void);
6786 void nm_test_func(void){}
6787 #ifdef __cplusplus
6788 }
6789 #endif
6790 int main(){nm_test_var='a';nm_test_func();return(0);}
6791 _LT_EOF
6792
6793   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794   (eval $ac_compile) 2>&5
6795   ac_status=$?
6796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797   test $ac_status = 0; }; then
6798     # Now try to grab the symbols.
6799     nlist=conftest.nm
6800     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6801   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6802   ac_status=$?
6803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804   test $ac_status = 0; } && test -s "$nlist"; then
6805       # Try sorting and uniquifying the output.
6806       if sort "$nlist" | uniq > "$nlist"T; then
6807         mv -f "$nlist"T "$nlist"
6808       else
6809         rm -f "$nlist"T
6810       fi
6811
6812       # Make sure that we snagged all the symbols we need.
6813       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6814         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6815           cat <<_LT_EOF > conftest.$ac_ext
6816 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6817 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6818 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6819    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6820 # define LT_DLSYM_CONST
6821 #elif defined(__osf__)
6822 /* This system does not cope well with relocations in const data.  */
6823 # define LT_DLSYM_CONST
6824 #else
6825 # define LT_DLSYM_CONST const
6826 #endif
6827
6828 #ifdef __cplusplus
6829 extern "C" {
6830 #endif
6831
6832 _LT_EOF
6833           # Now generate the symbol file.
6834           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6835
6836           cat <<_LT_EOF >> conftest.$ac_ext
6837
6838 /* The mapping between symbol names and symbols.  */
6839 LT_DLSYM_CONST struct {
6840   const char *name;
6841   void       *address;
6842 }
6843 lt__PROGRAM__LTX_preloaded_symbols[] =
6844 {
6845   { "@PROGRAM@", (void *) 0 },
6846 _LT_EOF
6847           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6848           cat <<\_LT_EOF >> conftest.$ac_ext
6849   {0, (void *) 0}
6850 };
6851
6852 /* This works around a problem in FreeBSD linker */
6853 #ifdef FREEBSD_WORKAROUND
6854 static const void *lt_preloaded_setup() {
6855   return lt__PROGRAM__LTX_preloaded_symbols;
6856 }
6857 #endif
6858
6859 #ifdef __cplusplus
6860 }
6861 #endif
6862 _LT_EOF
6863           # Now try linking the two files.
6864           mv conftest.$ac_objext conftstm.$ac_objext
6865           lt_globsym_save_LIBS=$LIBS
6866           lt_globsym_save_CFLAGS=$CFLAGS
6867           LIBS="conftstm.$ac_objext"
6868           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6869           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6870   (eval $ac_link) 2>&5
6871   ac_status=$?
6872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6874             pipe_works=yes
6875           fi
6876           LIBS=$lt_globsym_save_LIBS
6877           CFLAGS=$lt_globsym_save_CFLAGS
6878         else
6879           echo "cannot find nm_test_func in $nlist" >&5
6880         fi
6881       else
6882         echo "cannot find nm_test_var in $nlist" >&5
6883       fi
6884     else
6885       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6886     fi
6887   else
6888     echo "$progname: failed program was:" >&5
6889     cat conftest.$ac_ext >&5
6890   fi
6891   rm -rf conftest* conftst*
6892
6893   # Do not use the global_symbol_pipe unless it works.
6894   if test "$pipe_works" = yes; then
6895     break
6896   else
6897     lt_cv_sys_global_symbol_pipe=
6898   fi
6899 done
6900
6901 fi
6902
6903 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6904   lt_cv_sys_global_symbol_to_cdecl=
6905 fi
6906 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6908 $as_echo "failed" >&6; }
6909 else
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6911 $as_echo "ok" >&6; }
6912 fi
6913
6914 # Response file support.
6915 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6916   nm_file_list_spec='@'
6917 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6918   nm_file_list_spec='@'
6919 fi
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6948 $as_echo_n "checking for sysroot... " >&6; }
6949
6950 # Check whether --with-sysroot was given.
6951 if test "${with_sysroot+set}" = set; then :
6952   withval=$with_sysroot;
6953 else
6954   with_sysroot=no
6955 fi
6956
6957
6958 lt_sysroot=
6959 case ${with_sysroot} in #(
6960  yes)
6961    if test "$GCC" = yes; then
6962      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6963    fi
6964    ;; #(
6965  /*)
6966    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6967    ;; #(
6968  no|'')
6969    ;; #(
6970  *)
6971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6972 $as_echo "${with_sysroot}" >&6; }
6973    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6974    ;;
6975 esac
6976
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6978 $as_echo "${lt_sysroot:-no}" >&6; }
6979
6980
6981
6982
6983
6984 # Check whether --enable-libtool-lock was given.
6985 if test "${enable_libtool_lock+set}" = set; then :
6986   enableval=$enable_libtool_lock;
6987 fi
6988
6989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6990
6991 # Some flags need to be propagated to the compiler or linker for good
6992 # libtool support.
6993 case $host in
6994 ia64-*-hpux*)
6995   # Find out which ABI we are using.
6996   echo 'int i;' > conftest.$ac_ext
6997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001   test $ac_status = 0; }; then
7002     case `/usr/bin/file conftest.$ac_objext` in
7003       *ELF-32*)
7004         HPUX_IA64_MODE="32"
7005         ;;
7006       *ELF-64*)
7007         HPUX_IA64_MODE="64"
7008         ;;
7009     esac
7010   fi
7011   rm -rf conftest*
7012   ;;
7013 *-*-irix6*)
7014   # Find out which ABI we are using.
7015   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7016   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7017   (eval $ac_compile) 2>&5
7018   ac_status=$?
7019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7020   test $ac_status = 0; }; then
7021     if test "$lt_cv_prog_gnu_ld" = yes; then
7022       case `/usr/bin/file conftest.$ac_objext` in
7023         *32-bit*)
7024           LD="${LD-ld} -melf32bsmip"
7025           ;;
7026         *N32*)
7027           LD="${LD-ld} -melf32bmipn32"
7028           ;;
7029         *64-bit*)
7030           LD="${LD-ld} -melf64bmip"
7031         ;;
7032       esac
7033     else
7034       case `/usr/bin/file conftest.$ac_objext` in
7035         *32-bit*)
7036           LD="${LD-ld} -32"
7037           ;;
7038         *N32*)
7039           LD="${LD-ld} -n32"
7040           ;;
7041         *64-bit*)
7042           LD="${LD-ld} -64"
7043           ;;
7044       esac
7045     fi
7046   fi
7047   rm -rf conftest*
7048   ;;
7049
7050 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7051 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7052   # Find out which ABI we are using.
7053   echo 'int i;' > conftest.$ac_ext
7054   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7055   (eval $ac_compile) 2>&5
7056   ac_status=$?
7057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058   test $ac_status = 0; }; then
7059     case `/usr/bin/file conftest.o` in
7060       *32-bit*)
7061         case $host in
7062           x86_64-*kfreebsd*-gnu)
7063             LD="${LD-ld} -m elf_i386_fbsd"
7064             ;;
7065           x86_64-*linux*)
7066             LD="${LD-ld} -m elf_i386"
7067             ;;
7068           ppc64-*linux*|powerpc64-*linux*)
7069             LD="${LD-ld} -m elf32ppclinux"
7070             ;;
7071           s390x-*linux*)
7072             LD="${LD-ld} -m elf_s390"
7073             ;;
7074           sparc64-*linux*)
7075             LD="${LD-ld} -m elf32_sparc"
7076             ;;
7077         esac
7078         ;;
7079       *64-bit*)
7080         case $host in
7081           x86_64-*kfreebsd*-gnu)
7082             LD="${LD-ld} -m elf_x86_64_fbsd"
7083             ;;
7084           x86_64-*linux*)
7085             LD="${LD-ld} -m elf_x86_64"
7086             ;;
7087           ppc*-*linux*|powerpc*-*linux*)
7088             LD="${LD-ld} -m elf64ppc"
7089             ;;
7090           s390*-*linux*|s390*-*tpf*)
7091             LD="${LD-ld} -m elf64_s390"
7092             ;;
7093           sparc*-*linux*)
7094             LD="${LD-ld} -m elf64_sparc"
7095             ;;
7096         esac
7097         ;;
7098     esac
7099   fi
7100   rm -rf conftest*
7101   ;;
7102
7103 *-*-sco3.2v5*)
7104   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7105   SAVE_CFLAGS="$CFLAGS"
7106   CFLAGS="$CFLAGS -belf"
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7108 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7109 if ${lt_cv_cc_needs_belf+:} false; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   ac_ext=c
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7117
7118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h.  */
7120
7121 int
7122 main ()
7123 {
7124
7125   ;
7126   return 0;
7127 }
7128 _ACEOF
7129 if ac_fn_c_try_link "$LINENO"; then :
7130   lt_cv_cc_needs_belf=yes
7131 else
7132   lt_cv_cc_needs_belf=no
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext \
7135     conftest$ac_exeext conftest.$ac_ext
7136      ac_ext=c
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7144 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7145   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7146     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7147     CFLAGS="$SAVE_CFLAGS"
7148   fi
7149   ;;
7150 *-*solaris*)
7151   # Find out which ABI we are using.
7152   echo 'int i;' > conftest.$ac_ext
7153   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154   (eval $ac_compile) 2>&5
7155   ac_status=$?
7156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157   test $ac_status = 0; }; then
7158     case `/usr/bin/file conftest.o` in
7159     *64-bit*)
7160       case $lt_cv_prog_gnu_ld in
7161       yes*)
7162         case $host in
7163         i?86-*-solaris*)
7164           LD="${LD-ld} -m elf_x86_64"
7165           ;;
7166         sparc*-*-solaris*)
7167           LD="${LD-ld} -m elf64_sparc"
7168           ;;
7169         esac
7170         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7171         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7172           LD="${LD-ld}_sol2"
7173         fi
7174         ;;
7175       *)
7176         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7177           LD="${LD-ld} -64"
7178         fi
7179         ;;
7180       esac
7181       ;;
7182     esac
7183   fi
7184   rm -rf conftest*
7185   ;;
7186 esac
7187
7188 need_locks="$enable_libtool_lock"
7189
7190 if test -n "$ac_tool_prefix"; then
7191   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}mt; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$MANIFEST_TOOL"; then
7199   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7219 if test -n "$MANIFEST_TOOL"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7221 $as_echo "$MANIFEST_TOOL" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227
7228 fi
7229 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7230   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7231   # Extract the first word of "mt", so it can be a program name with args.
7232 set dummy mt; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7236   $as_echo_n "(cached) " >&6
7237 else
7238   if test -n "$ac_ct_MANIFEST_TOOL"; then
7239   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246     for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253   done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7259 if test -n "$ac_ct_MANIFEST_TOOL"; then
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7261 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7262 else
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7268     MANIFEST_TOOL=":"
7269   else
7270     case $cross_compiling:$ac_tool_warned in
7271 yes:)
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7275 esac
7276     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7277   fi
7278 else
7279   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7280 fi
7281
7282 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7284 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7285 if ${lt_cv_path_mainfest_tool+:} false; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   lt_cv_path_mainfest_tool=no
7289   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7290   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7291   cat conftest.err >&5
7292   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7293     lt_cv_path_mainfest_tool=yes
7294   fi
7295   rm -f conftest*
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7298 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7299 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7300   MANIFEST_TOOL=:
7301 fi
7302
7303
7304
7305
7306
7307
7308   case $host_os in
7309     rhapsody* | darwin*)
7310     if test -n "$ac_tool_prefix"; then
7311   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7316   $as_echo_n "(cached) " >&6
7317 else
7318   if test -n "$DSYMUTIL"; then
7319   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326     for ac_exec_ext in '' $ac_executable_extensions; do
7327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333   done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7339 if test -n "$DSYMUTIL"; then
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7341 $as_echo "$DSYMUTIL" >&6; }
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347
7348 fi
7349 if test -z "$ac_cv_prog_DSYMUTIL"; then
7350   ac_ct_DSYMUTIL=$DSYMUTIL
7351   # Extract the first word of "dsymutil", so it can be a program name with args.
7352 set dummy dsymutil; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$ac_ct_DSYMUTIL"; then
7359   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7379 if test -n "$ac_ct_DSYMUTIL"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7381 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387   if test "x$ac_ct_DSYMUTIL" = x; then
7388     DSYMUTIL=":"
7389   else
7390     case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7395 esac
7396     DSYMUTIL=$ac_ct_DSYMUTIL
7397   fi
7398 else
7399   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7400 fi
7401
7402     if test -n "$ac_tool_prefix"; then
7403   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_NMEDIT+:} false; then :
7408   $as_echo_n "(cached) " >&6
7409 else
7410   if test -n "$NMEDIT"; then
7411   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418     for ac_exec_ext in '' $ac_executable_extensions; do
7419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425   done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 NMEDIT=$ac_cv_prog_NMEDIT
7431 if test -n "$NMEDIT"; then
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7433 $as_echo "$NMEDIT" >&6; }
7434 else
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439
7440 fi
7441 if test -z "$ac_cv_prog_NMEDIT"; then
7442   ac_ct_NMEDIT=$NMEDIT
7443   # Extract the first word of "nmedit", so it can be a program name with args.
7444 set dummy nmedit; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   if test -n "$ac_ct_NMEDIT"; then
7451   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458     for ac_exec_ext in '' $ac_executable_extensions; do
7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465   done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7471 if test -n "$ac_ct_NMEDIT"; then
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7473 $as_echo "$ac_ct_NMEDIT" >&6; }
7474 else
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479   if test "x$ac_ct_NMEDIT" = x; then
7480     NMEDIT=":"
7481   else
7482     case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488     NMEDIT=$ac_ct_NMEDIT
7489   fi
7490 else
7491   NMEDIT="$ac_cv_prog_NMEDIT"
7492 fi
7493
7494     if test -n "$ac_tool_prefix"; then
7495   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_LIPO+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   if test -n "$LIPO"; then
7503   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510     for ac_exec_ext in '' $ac_executable_extensions; do
7511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517   done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 LIPO=$ac_cv_prog_LIPO
7523 if test -n "$LIPO"; then
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7525 $as_echo "$LIPO" >&6; }
7526 else
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531
7532 fi
7533 if test -z "$ac_cv_prog_LIPO"; then
7534   ac_ct_LIPO=$LIPO
7535   # Extract the first word of "lipo", so it can be a program name with args.
7536 set dummy lipo; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if test -n "$ac_ct_LIPO"; then
7543   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550     for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_prog_ac_ct_LIPO="lipo"
7553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557   done
7558 IFS=$as_save_IFS
7559
7560 fi
7561 fi
7562 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7563 if test -n "$ac_ct_LIPO"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7565 $as_echo "$ac_ct_LIPO" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571   if test "x$ac_ct_LIPO" = x; then
7572     LIPO=":"
7573   else
7574     case $cross_compiling:$ac_tool_warned in
7575 yes:)
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7579 esac
7580     LIPO=$ac_ct_LIPO
7581   fi
7582 else
7583   LIPO="$ac_cv_prog_LIPO"
7584 fi
7585
7586     if test -n "$ac_tool_prefix"; then
7587   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7588 set dummy ${ac_tool_prefix}otool; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_OTOOL+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   if test -n "$OTOOL"; then
7595   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602     for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609   done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 OTOOL=$ac_cv_prog_OTOOL
7615 if test -n "$OTOOL"; then
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7617 $as_echo "$OTOOL" >&6; }
7618 else
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623
7624 fi
7625 if test -z "$ac_cv_prog_OTOOL"; then
7626   ac_ct_OTOOL=$OTOOL
7627   # Extract the first word of "otool", so it can be a program name with args.
7628 set dummy otool; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   if test -n "$ac_ct_OTOOL"; then
7635   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642     for ac_exec_ext in '' $ac_executable_extensions; do
7643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644     ac_cv_prog_ac_ct_OTOOL="otool"
7645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649   done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7655 if test -n "$ac_ct_OTOOL"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7657 $as_echo "$ac_ct_OTOOL" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663   if test "x$ac_ct_OTOOL" = x; then
7664     OTOOL=":"
7665   else
7666     case $cross_compiling:$ac_tool_warned in
7667 yes:)
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7671 esac
7672     OTOOL=$ac_ct_OTOOL
7673   fi
7674 else
7675   OTOOL="$ac_cv_prog_OTOOL"
7676 fi
7677
7678     if test -n "$ac_tool_prefix"; then
7679   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7680 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_OTOOL64+:} false; then :
7684   $as_echo_n "(cached) " >&6
7685 else
7686   if test -n "$OTOOL64"; then
7687   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692   IFS=$as_save_IFS
7693   test -z "$as_dir" && as_dir=.
7694     for ac_exec_ext in '' $ac_executable_extensions; do
7695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7696     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698     break 2
7699   fi
7700 done
7701   done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 OTOOL64=$ac_cv_prog_OTOOL64
7707 if test -n "$OTOOL64"; then
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7709 $as_echo "$OTOOL64" >&6; }
7710 else
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716 fi
7717 if test -z "$ac_cv_prog_OTOOL64"; then
7718   ac_ct_OTOOL64=$OTOOL64
7719   # Extract the first word of "otool64", so it can be a program name with args.
7720 set dummy otool64; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   if test -n "$ac_ct_OTOOL64"; then
7727   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734     for ac_exec_ext in '' $ac_executable_extensions; do
7735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736     ac_cv_prog_ac_ct_OTOOL64="otool64"
7737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741   done
7742 IFS=$as_save_IFS
7743
7744 fi
7745 fi
7746 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7747 if test -n "$ac_ct_OTOOL64"; then
7748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7749 $as_echo "$ac_ct_OTOOL64" >&6; }
7750 else
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7753 fi
7754
7755   if test "x$ac_ct_OTOOL64" = x; then
7756     OTOOL64=":"
7757   else
7758     case $cross_compiling:$ac_tool_warned in
7759 yes:)
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7763 esac
7764     OTOOL64=$ac_ct_OTOOL64
7765   fi
7766 else
7767   OTOOL64="$ac_cv_prog_OTOOL64"
7768 fi
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7797 $as_echo_n "checking for -single_module linker flag... " >&6; }
7798 if ${lt_cv_apple_cc_single_mod+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   lt_cv_apple_cc_single_mod=no
7802       if test -z "${LT_MULTI_MODULE}"; then
7803         # By default we will add the -single_module flag. You can override
7804         # by either setting the environment variable LT_MULTI_MODULE
7805         # non-empty at configure time, or by adding -multi_module to the
7806         # link flags.
7807         rm -rf libconftest.dylib*
7808         echo "int foo(void){return 1;}" > conftest.c
7809         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7810 -dynamiclib -Wl,-single_module conftest.c" >&5
7811         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7812           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7813         _lt_result=$?
7814         # If there is a non-empty error log, and "single_module"
7815         # appears in it, assume the flag caused a linker warning
7816         if test -s conftest.err && $GREP single_module conftest.err; then
7817           cat conftest.err >&5
7818         # Otherwise, if the output was created with a 0 exit code from
7819         # the compiler, it worked.
7820         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7821           lt_cv_apple_cc_single_mod=yes
7822         else
7823           cat conftest.err >&5
7824         fi
7825         rm -rf libconftest.dylib*
7826         rm -f conftest.*
7827       fi
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7830 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7831
7832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7833 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7834 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   lt_cv_ld_exported_symbols_list=no
7838       save_LDFLAGS=$LDFLAGS
7839       echo "_main" > conftest.sym
7840       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h.  */
7843
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 if ac_fn_c_try_link "$LINENO"; then :
7853   lt_cv_ld_exported_symbols_list=yes
7854 else
7855   lt_cv_ld_exported_symbols_list=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext \
7858     conftest$ac_exeext conftest.$ac_ext
7859         LDFLAGS="$save_LDFLAGS"
7860
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7863 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7864
7865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7866 $as_echo_n "checking for -force_load linker flag... " >&6; }
7867 if ${lt_cv_ld_force_load+:} false; then :
7868   $as_echo_n "(cached) " >&6
7869 else
7870   lt_cv_ld_force_load=no
7871       cat > conftest.c << _LT_EOF
7872 int forced_loaded() { return 2;}
7873 _LT_EOF
7874       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7875       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7876       echo "$AR cru libconftest.a conftest.o" >&5
7877       $AR cru libconftest.a conftest.o 2>&5
7878       echo "$RANLIB libconftest.a" >&5
7879       $RANLIB libconftest.a 2>&5
7880       cat > conftest.c << _LT_EOF
7881 int main() { return 0;}
7882 _LT_EOF
7883       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7884       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7885       _lt_result=$?
7886       if test -s conftest.err && $GREP force_load conftest.err; then
7887         cat conftest.err >&5
7888       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7889         lt_cv_ld_force_load=yes
7890       else
7891         cat conftest.err >&5
7892       fi
7893         rm -f conftest.err libconftest.a conftest conftest.c
7894         rm -rf conftest.dSYM
7895
7896 fi
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7898 $as_echo "$lt_cv_ld_force_load" >&6; }
7899     case $host_os in
7900     rhapsody* | darwin1.[012])
7901       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7902     darwin1.*)
7903       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7904     darwin*) # darwin 5.x on
7905       # if running on 10.5 or later, the deployment target defaults
7906       # to the OS version, if on x86, and 10.4, the deployment
7907       # target defaults to 10.4. Don't you love it?
7908       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7909         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7910           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7911         10.[012]*)
7912           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7913         10.*)
7914           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7915       esac
7916     ;;
7917   esac
7918     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7919       _lt_dar_single_mod='$single_module'
7920     fi
7921     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7922       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7923     else
7924       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7925     fi
7926     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7927       _lt_dsymutil='~$DSYMUTIL $lib || :'
7928     else
7929       _lt_dsymutil=
7930     fi
7931     ;;
7932   esac
7933
7934 ac_ext=c
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7940 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7941 # On Suns, sometimes $CPP names a directory.
7942 if test -n "$CPP" && test -d "$CPP"; then
7943   CPP=
7944 fi
7945 if test -z "$CPP"; then
7946   if ${ac_cv_prog_CPP+:} false; then :
7947   $as_echo_n "(cached) " >&6
7948 else
7949       # Double quotes because CPP needs to be expanded
7950     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7951     do
7952       ac_preproc_ok=false
7953 for ac_c_preproc_warn_flag in '' yes
7954 do
7955   # Use a header file that comes with gcc, so configuring glibc
7956   # with a fresh cross-compiler works.
7957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7958   # <limits.h> exists even on freestanding compilers.
7959   # On the NeXT, cc -E runs the code through the compiler's parser,
7960   # not just through cpp. "Syntax error" is here to catch this case.
7961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h.  */
7963 #ifdef __STDC__
7964 # include <limits.h>
7965 #else
7966 # include <assert.h>
7967 #endif
7968                      Syntax error
7969 _ACEOF
7970 if ac_fn_c_try_cpp "$LINENO"; then :
7971
7972 else
7973   # Broken: fails on valid input.
7974 continue
7975 fi
7976 rm -f conftest.err conftest.i conftest.$ac_ext
7977
7978   # OK, works on sane cases.  Now check whether nonexistent headers
7979   # can be detected and how.
7980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h.  */
7982 #include <ac_nonexistent.h>
7983 _ACEOF
7984 if ac_fn_c_try_cpp "$LINENO"; then :
7985   # Broken: success on invalid input.
7986 continue
7987 else
7988   # Passes both tests.
7989 ac_preproc_ok=:
7990 break
7991 fi
7992 rm -f conftest.err conftest.i conftest.$ac_ext
7993
7994 done
7995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7996 rm -f conftest.i conftest.err conftest.$ac_ext
7997 if $ac_preproc_ok; then :
7998   break
7999 fi
8000
8001     done
8002     ac_cv_prog_CPP=$CPP
8003
8004 fi
8005   CPP=$ac_cv_prog_CPP
8006 else
8007   ac_cv_prog_CPP=$CPP
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8010 $as_echo "$CPP" >&6; }
8011 ac_preproc_ok=false
8012 for ac_c_preproc_warn_flag in '' yes
8013 do
8014   # Use a header file that comes with gcc, so configuring glibc
8015   # with a fresh cross-compiler works.
8016   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8017   # <limits.h> exists even on freestanding compilers.
8018   # On the NeXT, cc -E runs the code through the compiler's parser,
8019   # not just through cpp. "Syntax error" is here to catch this case.
8020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h.  */
8022 #ifdef __STDC__
8023 # include <limits.h>
8024 #else
8025 # include <assert.h>
8026 #endif
8027                      Syntax error
8028 _ACEOF
8029 if ac_fn_c_try_cpp "$LINENO"; then :
8030
8031 else
8032   # Broken: fails on valid input.
8033 continue
8034 fi
8035 rm -f conftest.err conftest.i conftest.$ac_ext
8036
8037   # OK, works on sane cases.  Now check whether nonexistent headers
8038   # can be detected and how.
8039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h.  */
8041 #include <ac_nonexistent.h>
8042 _ACEOF
8043 if ac_fn_c_try_cpp "$LINENO"; then :
8044   # Broken: success on invalid input.
8045 continue
8046 else
8047   # Passes both tests.
8048 ac_preproc_ok=:
8049 break
8050 fi
8051 rm -f conftest.err conftest.i conftest.$ac_ext
8052
8053 done
8054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8055 rm -f conftest.i conftest.err conftest.$ac_ext
8056 if $ac_preproc_ok; then :
8057
8058 else
8059   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8061 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8062 See \`config.log' for more details" "$LINENO" 5; }
8063 fi
8064
8065 ac_ext=c
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070
8071
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8073 $as_echo_n "checking for ANSI C header files... " >&6; }
8074 if ${ac_cv_header_stdc+:} false; then :
8075   $as_echo_n "(cached) " >&6
8076 else
8077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h.  */
8079 #include <stdlib.h>
8080 #include <stdarg.h>
8081 #include <string.h>
8082 #include <float.h>
8083
8084 int
8085 main ()
8086 {
8087
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093   ac_cv_header_stdc=yes
8094 else
8095   ac_cv_header_stdc=no
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098
8099 if test $ac_cv_header_stdc = yes; then
8100   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h.  */
8103 #include <string.h>
8104
8105 _ACEOF
8106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8107   $EGREP "memchr" >/dev/null 2>&1; then :
8108
8109 else
8110   ac_cv_header_stdc=no
8111 fi
8112 rm -f conftest*
8113
8114 fi
8115
8116 if test $ac_cv_header_stdc = yes; then
8117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h.  */
8120 #include <stdlib.h>
8121
8122 _ACEOF
8123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8124   $EGREP "free" >/dev/null 2>&1; then :
8125
8126 else
8127   ac_cv_header_stdc=no
8128 fi
8129 rm -f conftest*
8130
8131 fi
8132
8133 if test $ac_cv_header_stdc = yes; then
8134   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8135   if test "$cross_compiling" = yes; then :
8136   :
8137 else
8138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h.  */
8140 #include <ctype.h>
8141 #include <stdlib.h>
8142 #if ((' ' & 0x0FF) == 0x020)
8143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8145 #else
8146 # define ISLOWER(c) \
8147                    (('a' <= (c) && (c) <= 'i') \
8148                      || ('j' <= (c) && (c) <= 'r') \
8149                      || ('s' <= (c) && (c) <= 'z'))
8150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8151 #endif
8152
8153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8154 int
8155 main ()
8156 {
8157   int i;
8158   for (i = 0; i < 256; i++)
8159     if (XOR (islower (i), ISLOWER (i))
8160         || toupper (i) != TOUPPER (i))
8161       return 2;
8162   return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_run "$LINENO"; then :
8166
8167 else
8168   ac_cv_header_stdc=no
8169 fi
8170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8171   conftest.$ac_objext conftest.beam conftest.$ac_ext
8172 fi
8173
8174 fi
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8177 $as_echo "$ac_cv_header_stdc" >&6; }
8178 if test $ac_cv_header_stdc = yes; then
8179
8180 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8181
8182 fi
8183
8184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8186                   inttypes.h stdint.h unistd.h
8187 do :
8188   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8190 "
8191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8192   cat >>confdefs.h <<_ACEOF
8193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8194 _ACEOF
8195
8196 fi
8197
8198 done
8199
8200
8201 for ac_header in dlfcn.h
8202 do :
8203   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8204 "
8205 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8206   cat >>confdefs.h <<_ACEOF
8207 #define HAVE_DLFCN_H 1
8208 _ACEOF
8209
8210 fi
8211
8212 done
8213
8214
8215
8216
8217
8218 # Set options
8219
8220
8221
8222         enable_dlopen=no
8223
8224
8225   enable_win32_dll=no
8226
8227
8228             # Check whether --enable-shared was given.
8229 if test "${enable_shared+set}" = set; then :
8230   enableval=$enable_shared; p=${PACKAGE-default}
8231     case $enableval in
8232     yes) enable_shared=yes ;;
8233     no) enable_shared=no ;;
8234     *)
8235       enable_shared=no
8236       # Look at the argument we got.  We use all the common list separators.
8237       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8238       for pkg in $enableval; do
8239         IFS="$lt_save_ifs"
8240         if test "X$pkg" = "X$p"; then
8241           enable_shared=yes
8242         fi
8243       done
8244       IFS="$lt_save_ifs"
8245       ;;
8246     esac
8247 else
8248   enable_shared=yes
8249 fi
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259   # Check whether --enable-static was given.
8260 if test "${enable_static+set}" = set; then :
8261   enableval=$enable_static; p=${PACKAGE-default}
8262     case $enableval in
8263     yes) enable_static=yes ;;
8264     no) enable_static=no ;;
8265     *)
8266      enable_static=no
8267       # Look at the argument we got.  We use all the common list separators.
8268       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8269       for pkg in $enableval; do
8270         IFS="$lt_save_ifs"
8271         if test "X$pkg" = "X$p"; then
8272           enable_static=yes
8273         fi
8274       done
8275       IFS="$lt_save_ifs"
8276       ;;
8277     esac
8278 else
8279   enable_static=yes
8280 fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 # Check whether --with-pic was given.
8292 if test "${with_pic+set}" = set; then :
8293   withval=$with_pic; lt_p=${PACKAGE-default}
8294     case $withval in
8295     yes|no) pic_mode=$withval ;;
8296     *)
8297       pic_mode=default
8298       # Look at the argument we got.  We use all the common list separators.
8299       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8300       for lt_pkg in $withval; do
8301         IFS="$lt_save_ifs"
8302         if test "X$lt_pkg" = "X$lt_p"; then
8303           pic_mode=yes
8304         fi
8305       done
8306       IFS="$lt_save_ifs"
8307       ;;
8308     esac
8309 else
8310   pic_mode=default
8311 fi
8312
8313
8314 test -z "$pic_mode" && pic_mode=default
8315
8316
8317
8318
8319
8320
8321
8322   # Check whether --enable-fast-install was given.
8323 if test "${enable_fast_install+set}" = set; then :
8324   enableval=$enable_fast_install; p=${PACKAGE-default}
8325     case $enableval in
8326     yes) enable_fast_install=yes ;;
8327     no) enable_fast_install=no ;;
8328     *)
8329       enable_fast_install=no
8330       # Look at the argument we got.  We use all the common list separators.
8331       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8332       for pkg in $enableval; do
8333         IFS="$lt_save_ifs"
8334         if test "X$pkg" = "X$p"; then
8335           enable_fast_install=yes
8336         fi
8337       done
8338       IFS="$lt_save_ifs"
8339       ;;
8340     esac
8341 else
8342   enable_fast_install=yes
8343 fi
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355 # This can be used to rebuild libtool when needed
8356 LIBTOOL_DEPS="$ltmain"
8357
8358 # Always use our own libtool.
8359 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390 test -z "$LN_S" && LN_S="ln -s"
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 if test -n "${ZSH_VERSION+set}" ; then
8406    setopt NO_GLOB_SUBST
8407 fi
8408
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8410 $as_echo_n "checking for objdir... " >&6; }
8411 if ${lt_cv_objdir+:} false; then :
8412   $as_echo_n "(cached) " >&6
8413 else
8414   rm -f .libs 2>/dev/null
8415 mkdir .libs 2>/dev/null
8416 if test -d .libs; then
8417   lt_cv_objdir=.libs
8418 else
8419   # MS-DOS does not allow filenames that begin with a dot.
8420   lt_cv_objdir=_libs
8421 fi
8422 rmdir .libs 2>/dev/null
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8425 $as_echo "$lt_cv_objdir" >&6; }
8426 objdir=$lt_cv_objdir
8427
8428
8429
8430
8431
8432 cat >>confdefs.h <<_ACEOF
8433 #define LT_OBJDIR "$lt_cv_objdir/"
8434 _ACEOF
8435
8436
8437
8438
8439 case $host_os in
8440 aix3*)
8441   # AIX sometimes has problems with the GCC collect2 program.  For some
8442   # reason, if we set the COLLECT_NAMES environment variable, the problems
8443   # vanish in a puff of smoke.
8444   if test "X${COLLECT_NAMES+set}" != Xset; then
8445     COLLECT_NAMES=
8446     export COLLECT_NAMES
8447   fi
8448   ;;
8449 esac
8450
8451 # Global variables:
8452 ofile=libtool
8453 can_build_shared=yes
8454
8455 # All known linkers require a `.a' archive for static linking (except MSVC,
8456 # which needs '.lib').
8457 libext=a
8458
8459 with_gnu_ld="$lt_cv_prog_gnu_ld"
8460
8461 old_CC="$CC"
8462 old_CFLAGS="$CFLAGS"
8463
8464 # Set sane defaults for various variables
8465 test -z "$CC" && CC=cc
8466 test -z "$LTCC" && LTCC=$CC
8467 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8468 test -z "$LD" && LD=ld
8469 test -z "$ac_objext" && ac_objext=o
8470
8471 for cc_temp in $compiler""; do
8472   case $cc_temp in
8473     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8474     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8475     \-*) ;;
8476     *) break;;
8477   esac
8478 done
8479 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8480
8481
8482 # Only perform the check for file, if the check method requires it
8483 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8484 case $deplibs_check_method in
8485 file_magic*)
8486   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8488 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8489 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   case $MAGIC_CMD in
8493 [\\/*] |  ?:[\\/]*)
8494   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8495   ;;
8496 *)
8497   lt_save_MAGIC_CMD="$MAGIC_CMD"
8498   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8499   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8500   for ac_dir in $ac_dummy; do
8501     IFS="$lt_save_ifs"
8502     test -z "$ac_dir" && ac_dir=.
8503     if test -f $ac_dir/${ac_tool_prefix}file; then
8504       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8505       if test -n "$file_magic_test_file"; then
8506         case $deplibs_check_method in
8507         "file_magic "*)
8508           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8509           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8510           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8511             $EGREP "$file_magic_regex" > /dev/null; then
8512             :
8513           else
8514             cat <<_LT_EOF 1>&2
8515
8516 *** Warning: the command libtool uses to detect shared libraries,
8517 *** $file_magic_cmd, produces output that libtool cannot recognize.
8518 *** The result is that libtool may fail to recognize shared libraries
8519 *** as such.  This will affect the creation of libtool libraries that
8520 *** depend on shared libraries, but programs linked with such libtool
8521 *** libraries will work regardless of this problem.  Nevertheless, you
8522 *** may want to report the problem to your system manager and/or to
8523 *** bug-libtool@gnu.org
8524
8525 _LT_EOF
8526           fi ;;
8527         esac
8528       fi
8529       break
8530     fi
8531   done
8532   IFS="$lt_save_ifs"
8533   MAGIC_CMD="$lt_save_MAGIC_CMD"
8534   ;;
8535 esac
8536 fi
8537
8538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8539 if test -n "$MAGIC_CMD"; then
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8541 $as_echo "$MAGIC_CMD" >&6; }
8542 else
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547
8548
8549
8550
8551 if test -z "$lt_cv_path_MAGIC_CMD"; then
8552   if test -n "$ac_tool_prefix"; then
8553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8554 $as_echo_n "checking for file... " >&6; }
8555 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8556   $as_echo_n "(cached) " >&6
8557 else
8558   case $MAGIC_CMD in
8559 [\\/*] |  ?:[\\/]*)
8560   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8561   ;;
8562 *)
8563   lt_save_MAGIC_CMD="$MAGIC_CMD"
8564   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8565   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8566   for ac_dir in $ac_dummy; do
8567     IFS="$lt_save_ifs"
8568     test -z "$ac_dir" && ac_dir=.
8569     if test -f $ac_dir/file; then
8570       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8571       if test -n "$file_magic_test_file"; then
8572         case $deplibs_check_method in
8573         "file_magic "*)
8574           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8575           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8577             $EGREP "$file_magic_regex" > /dev/null; then
8578             :
8579           else
8580             cat <<_LT_EOF 1>&2
8581
8582 *** Warning: the command libtool uses to detect shared libraries,
8583 *** $file_magic_cmd, produces output that libtool cannot recognize.
8584 *** The result is that libtool may fail to recognize shared libraries
8585 *** as such.  This will affect the creation of libtool libraries that
8586 *** depend on shared libraries, but programs linked with such libtool
8587 *** libraries will work regardless of this problem.  Nevertheless, you
8588 *** may want to report the problem to your system manager and/or to
8589 *** bug-libtool@gnu.org
8590
8591 _LT_EOF
8592           fi ;;
8593         esac
8594       fi
8595       break
8596     fi
8597   done
8598   IFS="$lt_save_ifs"
8599   MAGIC_CMD="$lt_save_MAGIC_CMD"
8600   ;;
8601 esac
8602 fi
8603
8604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8605 if test -n "$MAGIC_CMD"; then
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8607 $as_echo "$MAGIC_CMD" >&6; }
8608 else
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8611 fi
8612
8613
8614   else
8615     MAGIC_CMD=:
8616   fi
8617 fi
8618
8619   fi
8620   ;;
8621 esac
8622
8623 # Use C for the default configuration in the libtool script
8624
8625 lt_save_CC="$CC"
8626 ac_ext=c
8627 ac_cpp='$CPP $CPPFLAGS'
8628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8631
8632
8633 # Source file extension for C test sources.
8634 ac_ext=c
8635
8636 # Object file extension for compiled C test sources.
8637 objext=o
8638 objext=$objext
8639
8640 # Code to be used in simple compile tests
8641 lt_simple_compile_test_code="int some_variable = 0;"
8642
8643 # Code to be used in simple link tests
8644 lt_simple_link_test_code='int main(){return(0);}'
8645
8646
8647
8648
8649
8650
8651
8652 # If no C compiler was specified, use CC.
8653 LTCC=${LTCC-"$CC"}
8654
8655 # If no C compiler flags were specified, use CFLAGS.
8656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8657
8658 # Allow CC to be a program name with arguments.
8659 compiler=$CC
8660
8661 # Save the default compiler, since it gets overwritten when the other
8662 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8663 compiler_DEFAULT=$CC
8664
8665 # save warnings/boilerplate of simple test code
8666 ac_outfile=conftest.$ac_objext
8667 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8668 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8669 _lt_compiler_boilerplate=`cat conftest.err`
8670 $RM conftest*
8671
8672 ac_outfile=conftest.$ac_objext
8673 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8674 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8675 _lt_linker_boilerplate=`cat conftest.err`
8676 $RM -r conftest*
8677
8678
8679 ## CAVEAT EMPTOR:
8680 ## There is no encapsulation within the following macros, do not change
8681 ## the running order or otherwise move them around unless you know exactly
8682 ## what you are doing...
8683 if test -n "$compiler"; then
8684
8685 lt_prog_compiler_no_builtin_flag=
8686
8687 if test "$GCC" = yes; then
8688   case $cc_basename in
8689   nvcc*)
8690     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8691   *)
8692     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8693   esac
8694
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8696 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8697 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8698   $as_echo_n "(cached) " >&6
8699 else
8700   lt_cv_prog_compiler_rtti_exceptions=no
8701    ac_outfile=conftest.$ac_objext
8702    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8703    lt_compiler_flag="-fno-rtti -fno-exceptions"
8704    # Insert the option either (1) after the last *FLAGS variable, or
8705    # (2) before a word containing "conftest.", or (3) at the end.
8706    # Note that $ac_compile itself does not contain backslashes and begins
8707    # with a dollar sign (not a hyphen), so the echo should work correctly.
8708    # The option is referenced via a variable to avoid confusing sed.
8709    lt_compile=`echo "$ac_compile" | $SED \
8710    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8711    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8712    -e 's:$: $lt_compiler_flag:'`
8713    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8714    (eval "$lt_compile" 2>conftest.err)
8715    ac_status=$?
8716    cat conftest.err >&5
8717    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718    if (exit $ac_status) && test -s "$ac_outfile"; then
8719      # The compiler can only warn and ignore the option if not recognized
8720      # So say no if there are warnings other than the usual output.
8721      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8722      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8723      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8724        lt_cv_prog_compiler_rtti_exceptions=yes
8725      fi
8726    fi
8727    $RM conftest*
8728
8729 fi
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8731 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8732
8733 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8734     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8735 else
8736     :
8737 fi
8738
8739 fi
8740
8741
8742
8743
8744
8745
8746   lt_prog_compiler_wl=
8747 lt_prog_compiler_pic=
8748 lt_prog_compiler_static=
8749
8750
8751   if test "$GCC" = yes; then
8752     lt_prog_compiler_wl='-Wl,'
8753     lt_prog_compiler_static='-static'
8754
8755     case $host_os in
8756       aix*)
8757       # All AIX code is PIC.
8758       if test "$host_cpu" = ia64; then
8759         # AIX 5 now supports IA64 processor
8760         lt_prog_compiler_static='-Bstatic'
8761       fi
8762       ;;
8763
8764     amigaos*)
8765       case $host_cpu in
8766       powerpc)
8767             # see comment about AmigaOS4 .so support
8768             lt_prog_compiler_pic='-fPIC'
8769         ;;
8770       m68k)
8771             # FIXME: we need at least 68020 code to build shared libraries, but
8772             # adding the `-m68020' flag to GCC prevents building anything better,
8773             # like `-m68040'.
8774             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8775         ;;
8776       esac
8777       ;;
8778
8779     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8780       # PIC is the default for these OSes.
8781       ;;
8782
8783     mingw* | cygwin* | pw32* | os2* | cegcc*)
8784       # This hack is so that the source file can tell whether it is being
8785       # built for inclusion in a dll (and should export symbols for example).
8786       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8787       # (--disable-auto-import) libraries
8788       lt_prog_compiler_pic='-DDLL_EXPORT'
8789       ;;
8790
8791     darwin* | rhapsody*)
8792       # PIC is the default on this platform
8793       # Common symbols not allowed in MH_DYLIB files
8794       lt_prog_compiler_pic='-fno-common'
8795       ;;
8796
8797     haiku*)
8798       # PIC is the default for Haiku.
8799       # The "-static" flag exists, but is broken.
8800       lt_prog_compiler_static=
8801       ;;
8802
8803     hpux*)
8804       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8805       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8806       # sets the default TLS model and affects inlining.
8807       case $host_cpu in
8808       hppa*64*)
8809         # +Z the default
8810         ;;
8811       *)
8812         lt_prog_compiler_pic='-fPIC'
8813         ;;
8814       esac
8815       ;;
8816
8817     interix[3-9]*)
8818       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8819       # Instead, we relocate shared libraries at runtime.
8820       ;;
8821
8822     msdosdjgpp*)
8823       # Just because we use GCC doesn't mean we suddenly get shared libraries
8824       # on systems that don't support them.
8825       lt_prog_compiler_can_build_shared=no
8826       enable_shared=no
8827       ;;
8828
8829     *nto* | *qnx*)
8830       # QNX uses GNU C++, but need to define -shared option too, otherwise
8831       # it will coredump.
8832       lt_prog_compiler_pic='-fPIC -shared'
8833       ;;
8834
8835     sysv4*MP*)
8836       if test -d /usr/nec; then
8837         lt_prog_compiler_pic=-Kconform_pic
8838       fi
8839       ;;
8840
8841     *)
8842       lt_prog_compiler_pic='-fPIC'
8843       ;;
8844     esac
8845
8846     case $cc_basename in
8847     nvcc*) # Cuda Compiler Driver 2.2
8848       lt_prog_compiler_wl='-Xlinker '
8849       if test -n "$lt_prog_compiler_pic"; then
8850         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8851       fi
8852       ;;
8853     esac
8854   else
8855     # PORTME Check for flag to pass linker flags through the system compiler.
8856     case $host_os in
8857     aix*)
8858       lt_prog_compiler_wl='-Wl,'
8859       if test "$host_cpu" = ia64; then
8860         # AIX 5 now supports IA64 processor
8861         lt_prog_compiler_static='-Bstatic'
8862       else
8863         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8864       fi
8865       ;;
8866
8867     mingw* | cygwin* | pw32* | os2* | cegcc*)
8868       # This hack is so that the source file can tell whether it is being
8869       # built for inclusion in a dll (and should export symbols for example).
8870       lt_prog_compiler_pic='-DDLL_EXPORT'
8871       ;;
8872
8873     hpux9* | hpux10* | hpux11*)
8874       lt_prog_compiler_wl='-Wl,'
8875       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8876       # not for PA HP-UX.
8877       case $host_cpu in
8878       hppa*64*|ia64*)
8879         # +Z the default
8880         ;;
8881       *)
8882         lt_prog_compiler_pic='+Z'
8883         ;;
8884       esac
8885       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8886       lt_prog_compiler_static='${wl}-a ${wl}archive'
8887       ;;
8888
8889     irix5* | irix6* | nonstopux*)
8890       lt_prog_compiler_wl='-Wl,'
8891       # PIC (with -KPIC) is the default.
8892       lt_prog_compiler_static='-non_shared'
8893       ;;
8894
8895     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8896       case $cc_basename in
8897       # old Intel for x86_64 which still supported -KPIC.
8898       ecc*)
8899         lt_prog_compiler_wl='-Wl,'
8900         lt_prog_compiler_pic='-KPIC'
8901         lt_prog_compiler_static='-static'
8902         ;;
8903       # icc used to be incompatible with GCC.
8904       # ICC 10 doesn't accept -KPIC any more.
8905       icc* | ifort*)
8906         lt_prog_compiler_wl='-Wl,'
8907         lt_prog_compiler_pic='-fPIC'
8908         lt_prog_compiler_static='-static'
8909         ;;
8910       # Lahey Fortran 8.1.
8911       lf95*)
8912         lt_prog_compiler_wl='-Wl,'
8913         lt_prog_compiler_pic='--shared'
8914         lt_prog_compiler_static='--static'
8915         ;;
8916       nagfor*)
8917         # NAG Fortran compiler
8918         lt_prog_compiler_wl='-Wl,-Wl,,'
8919         lt_prog_compiler_pic='-PIC'
8920         lt_prog_compiler_static='-Bstatic'
8921         ;;
8922       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8923         # Portland Group compilers (*not* the Pentium gcc compiler,
8924         # which looks to be a dead project)
8925         lt_prog_compiler_wl='-Wl,'
8926         lt_prog_compiler_pic='-fpic'
8927         lt_prog_compiler_static='-Bstatic'
8928         ;;
8929       ccc*)
8930         lt_prog_compiler_wl='-Wl,'
8931         # All Alpha code is PIC.
8932         lt_prog_compiler_static='-non_shared'
8933         ;;
8934       xl* | bgxl* | bgf* | mpixl*)
8935         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8936         lt_prog_compiler_wl='-Wl,'
8937         lt_prog_compiler_pic='-qpic'
8938         lt_prog_compiler_static='-qstaticlink'
8939         ;;
8940       *)
8941         case `$CC -V 2>&1 | sed 5q` in
8942         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8943           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8944           lt_prog_compiler_pic='-KPIC'
8945           lt_prog_compiler_static='-Bstatic'
8946           lt_prog_compiler_wl=''
8947           ;;
8948         *Sun\ F* | *Sun*Fortran*)
8949           lt_prog_compiler_pic='-KPIC'
8950           lt_prog_compiler_static='-Bstatic'
8951           lt_prog_compiler_wl='-Qoption ld '
8952           ;;
8953         *Sun\ C*)
8954           # Sun C 5.9
8955           lt_prog_compiler_pic='-KPIC'
8956           lt_prog_compiler_static='-Bstatic'
8957           lt_prog_compiler_wl='-Wl,'
8958           ;;
8959         *Intel*\ [CF]*Compiler*)
8960           lt_prog_compiler_wl='-Wl,'
8961           lt_prog_compiler_pic='-fPIC'
8962           lt_prog_compiler_static='-static'
8963           ;;
8964         *Portland\ Group*)
8965           lt_prog_compiler_wl='-Wl,'
8966           lt_prog_compiler_pic='-fpic'
8967           lt_prog_compiler_static='-Bstatic'
8968           ;;
8969         esac
8970         ;;
8971       esac
8972       ;;
8973
8974     newsos6)
8975       lt_prog_compiler_pic='-KPIC'
8976       lt_prog_compiler_static='-Bstatic'
8977       ;;
8978
8979     *nto* | *qnx*)
8980       # QNX uses GNU C++, but need to define -shared option too, otherwise
8981       # it will coredump.
8982       lt_prog_compiler_pic='-fPIC -shared'
8983       ;;
8984
8985     osf3* | osf4* | osf5*)
8986       lt_prog_compiler_wl='-Wl,'
8987       # All OSF/1 code is PIC.
8988       lt_prog_compiler_static='-non_shared'
8989       ;;
8990
8991     rdos*)
8992       lt_prog_compiler_static='-non_shared'
8993       ;;
8994
8995     solaris*)
8996       lt_prog_compiler_pic='-KPIC'
8997       lt_prog_compiler_static='-Bstatic'
8998       case $cc_basename in
8999       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9000         lt_prog_compiler_wl='-Qoption ld ';;
9001       *)
9002         lt_prog_compiler_wl='-Wl,';;
9003       esac
9004       ;;
9005
9006     sunos4*)
9007       lt_prog_compiler_wl='-Qoption ld '
9008       lt_prog_compiler_pic='-PIC'
9009       lt_prog_compiler_static='-Bstatic'
9010       ;;
9011
9012     sysv4 | sysv4.2uw2* | sysv4.3*)
9013       lt_prog_compiler_wl='-Wl,'
9014       lt_prog_compiler_pic='-KPIC'
9015       lt_prog_compiler_static='-Bstatic'
9016       ;;
9017
9018     sysv4*MP*)
9019       if test -d /usr/nec ;then
9020         lt_prog_compiler_pic='-Kconform_pic'
9021         lt_prog_compiler_static='-Bstatic'
9022       fi
9023       ;;
9024
9025     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9026       lt_prog_compiler_wl='-Wl,'
9027       lt_prog_compiler_pic='-KPIC'
9028       lt_prog_compiler_static='-Bstatic'
9029       ;;
9030
9031     unicos*)
9032       lt_prog_compiler_wl='-Wl,'
9033       lt_prog_compiler_can_build_shared=no
9034       ;;
9035
9036     uts4*)
9037       lt_prog_compiler_pic='-pic'
9038       lt_prog_compiler_static='-Bstatic'
9039       ;;
9040
9041     *)
9042       lt_prog_compiler_can_build_shared=no
9043       ;;
9044     esac
9045   fi
9046
9047 case $host_os in
9048   # For platforms which do not support PIC, -DPIC is meaningless:
9049   *djgpp*)
9050     lt_prog_compiler_pic=
9051     ;;
9052   *)
9053     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9054     ;;
9055 esac
9056
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9058 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9059 if ${lt_cv_prog_compiler_pic+:} false; then :
9060   $as_echo_n "(cached) " >&6
9061 else
9062   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9065 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9066 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9067
9068 #
9069 # Check to make sure the PIC flag actually works.
9070 #
9071 if test -n "$lt_prog_compiler_pic"; then
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9073 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9074 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9075   $as_echo_n "(cached) " >&6
9076 else
9077   lt_cv_prog_compiler_pic_works=no
9078    ac_outfile=conftest.$ac_objext
9079    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9081    # Insert the option either (1) after the last *FLAGS variable, or
9082    # (2) before a word containing "conftest.", or (3) at the end.
9083    # Note that $ac_compile itself does not contain backslashes and begins
9084    # with a dollar sign (not a hyphen), so the echo should work correctly.
9085    # The option is referenced via a variable to avoid confusing sed.
9086    lt_compile=`echo "$ac_compile" | $SED \
9087    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089    -e 's:$: $lt_compiler_flag:'`
9090    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9091    (eval "$lt_compile" 2>conftest.err)
9092    ac_status=$?
9093    cat conftest.err >&5
9094    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095    if (exit $ac_status) && test -s "$ac_outfile"; then
9096      # The compiler can only warn and ignore the option if not recognized
9097      # So say no if there are warnings other than the usual output.
9098      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9099      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9101        lt_cv_prog_compiler_pic_works=yes
9102      fi
9103    fi
9104    $RM conftest*
9105
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9108 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9109
9110 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9111     case $lt_prog_compiler_pic in
9112      "" | " "*) ;;
9113      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9114      esac
9115 else
9116     lt_prog_compiler_pic=
9117      lt_prog_compiler_can_build_shared=no
9118 fi
9119
9120 fi
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132 #
9133 # Check to make sure the static flag actually works.
9134 #
9135 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9137 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9138 if ${lt_cv_prog_compiler_static_works+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   lt_cv_prog_compiler_static_works=no
9142    save_LDFLAGS="$LDFLAGS"
9143    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9144    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9145    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9146      # The linker can only warn and ignore the option if not recognized
9147      # So say no if there are warnings
9148      if test -s conftest.err; then
9149        # Append any errors to the config.log.
9150        cat conftest.err 1>&5
9151        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9152        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9153        if diff conftest.exp conftest.er2 >/dev/null; then
9154          lt_cv_prog_compiler_static_works=yes
9155        fi
9156      else
9157        lt_cv_prog_compiler_static_works=yes
9158      fi
9159    fi
9160    $RM -r conftest*
9161    LDFLAGS="$save_LDFLAGS"
9162
9163 fi
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9165 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9166
9167 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9168     :
9169 else
9170     lt_prog_compiler_static=
9171 fi
9172
9173
9174
9175
9176
9177
9178
9179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9181 if ${lt_cv_prog_compiler_c_o+:} false; then :
9182   $as_echo_n "(cached) " >&6
9183 else
9184   lt_cv_prog_compiler_c_o=no
9185    $RM -r conftest 2>/dev/null
9186    mkdir conftest
9187    cd conftest
9188    mkdir out
9189    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9190
9191    lt_compiler_flag="-o out/conftest2.$ac_objext"
9192    # Insert the option either (1) after the last *FLAGS variable, or
9193    # (2) before a word containing "conftest.", or (3) at the end.
9194    # Note that $ac_compile itself does not contain backslashes and begins
9195    # with a dollar sign (not a hyphen), so the echo should work correctly.
9196    lt_compile=`echo "$ac_compile" | $SED \
9197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9199    -e 's:$: $lt_compiler_flag:'`
9200    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9201    (eval "$lt_compile" 2>out/conftest.err)
9202    ac_status=$?
9203    cat out/conftest.err >&5
9204    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9206    then
9207      # The compiler can only warn and ignore the option if not recognized
9208      # So say no if there are warnings
9209      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9210      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9211      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9212        lt_cv_prog_compiler_c_o=yes
9213      fi
9214    fi
9215    chmod u+w . 2>&5
9216    $RM conftest*
9217    # SGI C++ compiler will create directory out/ii_files/ for
9218    # template instantiation
9219    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9220    $RM out/* && rmdir out
9221    cd ..
9222    $RM -r conftest
9223    $RM conftest*
9224
9225 fi
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9227 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9228
9229
9230
9231
9232
9233
9234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9236 if ${lt_cv_prog_compiler_c_o+:} false; then :
9237   $as_echo_n "(cached) " >&6
9238 else
9239   lt_cv_prog_compiler_c_o=no
9240    $RM -r conftest 2>/dev/null
9241    mkdir conftest
9242    cd conftest
9243    mkdir out
9244    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9245
9246    lt_compiler_flag="-o out/conftest2.$ac_objext"
9247    # Insert the option either (1) after the last *FLAGS variable, or
9248    # (2) before a word containing "conftest.", or (3) at the end.
9249    # Note that $ac_compile itself does not contain backslashes and begins
9250    # with a dollar sign (not a hyphen), so the echo should work correctly.
9251    lt_compile=`echo "$ac_compile" | $SED \
9252    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9254    -e 's:$: $lt_compiler_flag:'`
9255    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9256    (eval "$lt_compile" 2>out/conftest.err)
9257    ac_status=$?
9258    cat out/conftest.err >&5
9259    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9261    then
9262      # The compiler can only warn and ignore the option if not recognized
9263      # So say no if there are warnings
9264      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9265      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9266      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9267        lt_cv_prog_compiler_c_o=yes
9268      fi
9269    fi
9270    chmod u+w . 2>&5
9271    $RM conftest*
9272    # SGI C++ compiler will create directory out/ii_files/ for
9273    # template instantiation
9274    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9275    $RM out/* && rmdir out
9276    cd ..
9277    $RM -r conftest
9278    $RM conftest*
9279
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9282 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9283
9284
9285
9286
9287 hard_links="nottested"
9288 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9289   # do not overwrite the value of need_locks provided by the user
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9291 $as_echo_n "checking if we can lock with hard links... " >&6; }
9292   hard_links=yes
9293   $RM conftest*
9294   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9295   touch conftest.a
9296   ln conftest.a conftest.b 2>&5 || hard_links=no
9297   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9299 $as_echo "$hard_links" >&6; }
9300   if test "$hard_links" = no; then
9301     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9302 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9303     need_locks=warn
9304   fi
9305 else
9306   need_locks=no
9307 fi
9308
9309
9310
9311
9312
9313
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9315 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9316
9317   runpath_var=
9318   allow_undefined_flag=
9319   always_export_symbols=no
9320   archive_cmds=
9321   archive_expsym_cmds=
9322   compiler_needs_object=no
9323   enable_shared_with_static_runtimes=no
9324   export_dynamic_flag_spec=
9325   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9326   hardcode_automatic=no
9327   hardcode_direct=no
9328   hardcode_direct_absolute=no
9329   hardcode_libdir_flag_spec=
9330   hardcode_libdir_separator=
9331   hardcode_minus_L=no
9332   hardcode_shlibpath_var=unsupported
9333   inherit_rpath=no
9334   link_all_deplibs=unknown
9335   module_cmds=
9336   module_expsym_cmds=
9337   old_archive_from_new_cmds=
9338   old_archive_from_expsyms_cmds=
9339   thread_safe_flag_spec=
9340   whole_archive_flag_spec=
9341   # include_expsyms should be a list of space-separated symbols to be *always*
9342   # included in the symbol list
9343   include_expsyms=
9344   # exclude_expsyms can be an extended regexp of symbols to exclude
9345   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9346   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9347   # as well as any symbol that contains `d'.
9348   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9349   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9350   # platforms (ab)use it in PIC code, but their linkers get confused if
9351   # the symbol is explicitly referenced.  Since portable code cannot
9352   # rely on this symbol name, it's probably fine to never include it in
9353   # preloaded symbol tables.
9354   # Exclude shared library initialization/finalization symbols.
9355   extract_expsyms_cmds=
9356
9357   case $host_os in
9358   cygwin* | mingw* | pw32* | cegcc*)
9359     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9360     # When not using gcc, we currently assume that we are using
9361     # Microsoft Visual C++.
9362     if test "$GCC" != yes; then
9363       with_gnu_ld=no
9364     fi
9365     ;;
9366   interix*)
9367     # we just hope/assume this is gcc and not c89 (= MSVC++)
9368     with_gnu_ld=yes
9369     ;;
9370   openbsd*)
9371     with_gnu_ld=no
9372     ;;
9373   esac
9374
9375   ld_shlibs=yes
9376
9377   # On some targets, GNU ld is compatible enough with the native linker
9378   # that we're better off using the native interface for both.
9379   lt_use_gnu_ld_interface=no
9380   if test "$with_gnu_ld" = yes; then
9381     case $host_os in
9382       aix*)
9383         # The AIX port of GNU ld has always aspired to compatibility
9384         # with the native linker.  However, as the warning in the GNU ld
9385         # block says, versions before 2.19.5* couldn't really create working
9386         # shared libraries, regardless of the interface used.
9387         case `$LD -v 2>&1` in
9388           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9389           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9390           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9391           *)
9392             lt_use_gnu_ld_interface=yes
9393             ;;
9394         esac
9395         ;;
9396       *)
9397         lt_use_gnu_ld_interface=yes
9398         ;;
9399     esac
9400   fi
9401
9402   if test "$lt_use_gnu_ld_interface" = yes; then
9403     # If archive_cmds runs LD, not CC, wlarc should be empty
9404     wlarc='${wl}'
9405
9406     # Set some defaults for GNU ld with shared library support. These
9407     # are reset later if shared libraries are not supported. Putting them
9408     # here allows them to be overridden if necessary.
9409     runpath_var=LD_RUN_PATH
9410     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411     export_dynamic_flag_spec='${wl}--export-dynamic'
9412     # ancient GNU ld didn't support --whole-archive et. al.
9413     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9414       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9415     else
9416       whole_archive_flag_spec=
9417     fi
9418     supports_anon_versioning=no
9419     case `$LD -v 2>&1` in
9420       *GNU\ gold*) supports_anon_versioning=yes ;;
9421       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9422       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9423       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9424       *\ 2.11.*) ;; # other 2.11 versions
9425       *) supports_anon_versioning=yes ;;
9426     esac
9427
9428     # See if GNU ld supports shared libraries.
9429     case $host_os in
9430     aix[3-9]*)
9431       # On AIX/PPC, the GNU linker is very broken
9432       if test "$host_cpu" != ia64; then
9433         ld_shlibs=no
9434         cat <<_LT_EOF 1>&2
9435
9436 *** Warning: the GNU linker, at least up to release 2.19, is reported
9437 *** to be unable to reliably create shared libraries on AIX.
9438 *** Therefore, libtool is disabling shared libraries support.  If you
9439 *** really care for shared libraries, you may want to install binutils
9440 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9441 *** You will then need to restart the configuration process.
9442
9443 _LT_EOF
9444       fi
9445       ;;
9446
9447     amigaos*)
9448       case $host_cpu in
9449       powerpc)
9450             # see comment about AmigaOS4 .so support
9451             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452             archive_expsym_cmds=''
9453         ;;
9454       m68k)
9455             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)'
9456             hardcode_libdir_flag_spec='-L$libdir'
9457             hardcode_minus_L=yes
9458         ;;
9459       esac
9460       ;;
9461
9462     beos*)
9463       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464         allow_undefined_flag=unsupported
9465         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9466         # support --undefined.  This deserves some investigation.  FIXME
9467         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468       else
9469         ld_shlibs=no
9470       fi
9471       ;;
9472
9473     cygwin* | mingw* | pw32* | cegcc*)
9474       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9475       # as there is no search path for DLLs.
9476       hardcode_libdir_flag_spec='-L$libdir'
9477       export_dynamic_flag_spec='${wl}--export-all-symbols'
9478       allow_undefined_flag=unsupported
9479       always_export_symbols=no
9480       enable_shared_with_static_runtimes=yes
9481       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'
9482       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9483
9484       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9485         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9486         # If the export-symbols file already is a .def file (1st line
9487         # is EXPORTS), use it as is; otherwise, prepend...
9488         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9489           cp $export_symbols $output_objdir/$soname.def;
9490         else
9491           echo EXPORTS > $output_objdir/$soname.def;
9492           cat $export_symbols >> $output_objdir/$soname.def;
9493         fi~
9494         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9495       else
9496         ld_shlibs=no
9497       fi
9498       ;;
9499
9500     haiku*)
9501       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502       link_all_deplibs=yes
9503       ;;
9504
9505     interix[3-9]*)
9506       hardcode_direct=no
9507       hardcode_shlibpath_var=no
9508       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9509       export_dynamic_flag_spec='${wl}-E'
9510       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9511       # Instead, shared libraries are loaded at an image base (0x10000000 by
9512       # default) and relocated if they conflict, which is a slow very memory
9513       # consuming and fragmenting process.  To avoid this, we pick a random,
9514       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9515       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9516       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9517       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'
9518       ;;
9519
9520     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9521       tmp_diet=no
9522       if test "$host_os" = linux-dietlibc; then
9523         case $cc_basename in
9524           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9525         esac
9526       fi
9527       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9528          && test "$tmp_diet" = no
9529       then
9530         tmp_addflag=' $pic_flag'
9531         tmp_sharedflag='-shared'
9532         case $cc_basename,$host_cpu in
9533         pgcc*)                          # Portland Group C compiler
9534           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'
9535           tmp_addflag=' $pic_flag'
9536           ;;
9537         pgf77* | pgf90* | pgf95* | pgfortran*)
9538                                         # Portland Group f77 and f90 compilers
9539           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'
9540           tmp_addflag=' $pic_flag -Mnomain' ;;
9541         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9542           tmp_addflag=' -i_dynamic' ;;
9543         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9544           tmp_addflag=' -i_dynamic -nofor_main' ;;
9545         ifc* | ifort*)                  # Intel Fortran compiler
9546           tmp_addflag=' -nofor_main' ;;
9547         lf95*)                          # Lahey Fortran 8.1
9548           whole_archive_flag_spec=
9549           tmp_sharedflag='--shared' ;;
9550         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9551           tmp_sharedflag='-qmkshrobj'
9552           tmp_addflag= ;;
9553         nvcc*)  # Cuda Compiler Driver 2.2
9554           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'
9555           compiler_needs_object=yes
9556           ;;
9557         esac
9558         case `$CC -V 2>&1 | sed 5q` in
9559         *Sun\ C*)                       # Sun C 5.9
9560           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'
9561           compiler_needs_object=yes
9562           tmp_sharedflag='-G' ;;
9563         *Sun\ F*)                       # Sun Fortran 8.3
9564           tmp_sharedflag='-G' ;;
9565         esac
9566         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9567
9568         if test "x$supports_anon_versioning" = xyes; then
9569           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9570             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9571             echo "local: *; };" >> $output_objdir/$libname.ver~
9572             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9573         fi
9574
9575         case $cc_basename in
9576         xlf* | bgf* | bgxlf* | mpixlf*)
9577           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9578           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9579           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9581           if test "x$supports_anon_versioning" = xyes; then
9582             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9583               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9584               echo "local: *; };" >> $output_objdir/$libname.ver~
9585               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9586           fi
9587           ;;
9588         esac
9589       else
9590         ld_shlibs=no
9591       fi
9592       ;;
9593
9594     netbsd*)
9595       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9596         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9597         wlarc=
9598       else
9599         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9601       fi
9602       ;;
9603
9604     solaris*)
9605       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9606         ld_shlibs=no
9607         cat <<_LT_EOF 1>&2
9608
9609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9610 *** create shared libraries on Solaris systems.  Therefore, libtool
9611 *** is disabling shared libraries support.  We urge you to upgrade GNU
9612 *** binutils to release 2.9.1 or newer.  Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9615
9616 _LT_EOF
9617       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9618         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9619         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9620       else
9621         ld_shlibs=no
9622       fi
9623       ;;
9624
9625     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9626       case `$LD -v 2>&1` in
9627         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9628         ld_shlibs=no
9629         cat <<_LT_EOF 1>&2
9630
9631 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9632 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9633 *** is disabling shared libraries support.  We urge you to upgrade GNU
9634 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9635 *** your PATH or compiler configuration so that the native linker is
9636 *** used, and then restart.
9637
9638 _LT_EOF
9639         ;;
9640         *)
9641           # For security reasons, it is highly recommended that you always
9642           # use absolute paths for naming shared libraries, and exclude the
9643           # DT_RUNPATH tag from executables and libraries.  But doing so
9644           # requires that you compile everything twice, which is a pain.
9645           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9646             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9649           else
9650             ld_shlibs=no
9651           fi
9652         ;;
9653       esac
9654       ;;
9655
9656     sunos4*)
9657       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658       wlarc=
9659       hardcode_direct=yes
9660       hardcode_shlibpath_var=no
9661       ;;
9662
9663     *)
9664       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9665         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9667       else
9668         ld_shlibs=no
9669       fi
9670       ;;
9671     esac
9672
9673     if test "$ld_shlibs" = no; then
9674       runpath_var=
9675       hardcode_libdir_flag_spec=
9676       export_dynamic_flag_spec=
9677       whole_archive_flag_spec=
9678     fi
9679   else
9680     # PORTME fill in a description of your system's linker (not GNU ld)
9681     case $host_os in
9682     aix3*)
9683       allow_undefined_flag=unsupported
9684       always_export_symbols=yes
9685       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'
9686       # Note: this linker hardcodes the directories in LIBPATH if there
9687       # are no directories specified by -L.
9688       hardcode_minus_L=yes
9689       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9690         # Neither direct hardcoding nor static linking is supported with a
9691         # broken collect2.
9692         hardcode_direct=unsupported
9693       fi
9694       ;;
9695
9696     aix[4-9]*)
9697       if test "$host_cpu" = ia64; then
9698         # On IA64, the linker does run time linking by default, so we don't
9699         # have to do anything special.
9700         aix_use_runtimelinking=no
9701         exp_sym_flag='-Bexport'
9702         no_entry_flag=""
9703       else
9704         # If we're using GNU nm, then we don't want the "-C" option.
9705         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9706         # Also, AIX nm treats weak defined symbols like other global
9707         # defined symbols, whereas GNU nm marks them as "W".
9708         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9709           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9710         else
9711           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9712         fi
9713         aix_use_runtimelinking=no
9714
9715         # Test if we are trying to use run time linking or normal
9716         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9717         # need to do runtime linking.
9718         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9719           for ld_flag in $LDFLAGS; do
9720           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9721             aix_use_runtimelinking=yes
9722             break
9723           fi
9724           done
9725           ;;
9726         esac
9727
9728         exp_sym_flag='-bexport'
9729         no_entry_flag='-bnoentry'
9730       fi
9731
9732       # When large executables or shared objects are built, AIX ld can
9733       # have problems creating the table of contents.  If linking a library
9734       # or program results in "error TOC overflow" add -mminimal-toc to
9735       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9736       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9737
9738       archive_cmds=''
9739       hardcode_direct=yes
9740       hardcode_direct_absolute=yes
9741       hardcode_libdir_separator=':'
9742       link_all_deplibs=yes
9743       file_list_spec='${wl}-f,'
9744
9745       if test "$GCC" = yes; then
9746         case $host_os in aix4.[012]|aix4.[012].*)
9747         # We only want to do this on AIX 4.2 and lower, the check
9748         # below for broken collect2 doesn't work under 4.3+
9749           collect2name=`${CC} -print-prog-name=collect2`
9750           if test -f "$collect2name" &&
9751            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9752           then
9753           # We have reworked collect2
9754           :
9755           else
9756           # We have old collect2
9757           hardcode_direct=unsupported
9758           # It fails to find uninstalled libraries when the uninstalled
9759           # path is not listed in the libpath.  Setting hardcode_minus_L
9760           # to unsupported forces relinking
9761           hardcode_minus_L=yes
9762           hardcode_libdir_flag_spec='-L$libdir'
9763           hardcode_libdir_separator=
9764           fi
9765           ;;
9766         esac
9767         shared_flag='-shared'
9768         if test "$aix_use_runtimelinking" = yes; then
9769           shared_flag="$shared_flag "'${wl}-G'
9770         fi
9771       else
9772         # not using gcc
9773         if test "$host_cpu" = ia64; then
9774         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9775         # chokes on -Wl,-G. The following line is correct:
9776           shared_flag='-G'
9777         else
9778           if test "$aix_use_runtimelinking" = yes; then
9779             shared_flag='${wl}-G'
9780           else
9781             shared_flag='${wl}-bM:SRE'
9782           fi
9783         fi
9784       fi
9785
9786       export_dynamic_flag_spec='${wl}-bexpall'
9787       # It seems that -bexpall does not export symbols beginning with
9788       # underscore (_), so it is better to generate a list of symbols to export.
9789       always_export_symbols=yes
9790       if test "$aix_use_runtimelinking" = yes; then
9791         # Warning - without using the other runtime loading flags (-brtl),
9792         # -berok will link without error, but may produce a broken library.
9793         allow_undefined_flag='-berok'
9794         # Determine the default libpath from the value encoded in an
9795         # empty executable.
9796         if test "${lt_cv_aix_libpath+set}" = set; then
9797   aix_libpath=$lt_cv_aix_libpath
9798 else
9799   if ${lt_cv_aix_libpath_+:} false; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804
9805 int
9806 main ()
9807 {
9808
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_link "$LINENO"; then :
9814
9815   lt_aix_libpath_sed='
9816       /Import File Strings/,/^$/ {
9817           /^0/ {
9818               s/^0  *\([^ ]*\) *$/\1/
9819               p
9820           }
9821       }'
9822   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823   # Check for a 64-bit object if we didn't find anything.
9824   if test -z "$lt_cv_aix_libpath_"; then
9825     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9826   fi
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext \
9829     conftest$ac_exeext conftest.$ac_ext
9830   if test -z "$lt_cv_aix_libpath_"; then
9831     lt_cv_aix_libpath_="/usr/lib:/lib"
9832   fi
9833
9834 fi
9835
9836   aix_libpath=$lt_cv_aix_libpath_
9837 fi
9838
9839         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9840         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9841       else
9842         if test "$host_cpu" = ia64; then
9843           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9844           allow_undefined_flag="-z nodefs"
9845           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"
9846         else
9847          # Determine the default libpath from the value encoded in an
9848          # empty executable.
9849          if test "${lt_cv_aix_libpath+set}" = set; then
9850   aix_libpath=$lt_cv_aix_libpath
9851 else
9852   if ${lt_cv_aix_libpath_+:} false; then :
9853   $as_echo_n "(cached) " >&6
9854 else
9855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h.  */
9857
9858 int
9859 main ()
9860 {
9861
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 if ac_fn_c_try_link "$LINENO"; then :
9867
9868   lt_aix_libpath_sed='
9869       /Import File Strings/,/^$/ {
9870           /^0/ {
9871               s/^0  *\([^ ]*\) *$/\1/
9872               p
9873           }
9874       }'
9875   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9876   # Check for a 64-bit object if we didn't find anything.
9877   if test -z "$lt_cv_aix_libpath_"; then
9878     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879   fi
9880 fi
9881 rm -f core conftest.err conftest.$ac_objext \
9882     conftest$ac_exeext conftest.$ac_ext
9883   if test -z "$lt_cv_aix_libpath_"; then
9884     lt_cv_aix_libpath_="/usr/lib:/lib"
9885   fi
9886
9887 fi
9888
9889   aix_libpath=$lt_cv_aix_libpath_
9890 fi
9891
9892          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9893           # Warning - without using the other run time loading flags,
9894           # -berok will link without error, but may produce a broken library.
9895           no_undefined_flag=' ${wl}-bernotok'
9896           allow_undefined_flag=' ${wl}-berok'
9897           if test "$with_gnu_ld" = yes; then
9898             # We only use this code for GNU lds that support --whole-archive.
9899             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9900           else
9901             # Exported symbols can be pulled into shared objects from archives
9902             whole_archive_flag_spec='$convenience'
9903           fi
9904           archive_cmds_need_lc=yes
9905           # This is similar to how AIX traditionally builds its shared libraries.
9906           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9907         fi
9908       fi
9909       ;;
9910
9911     amigaos*)
9912       case $host_cpu in
9913       powerpc)
9914             # see comment about AmigaOS4 .so support
9915             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9916             archive_expsym_cmds=''
9917         ;;
9918       m68k)
9919             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)'
9920             hardcode_libdir_flag_spec='-L$libdir'
9921             hardcode_minus_L=yes
9922         ;;
9923       esac
9924       ;;
9925
9926     bsdi[45]*)
9927       export_dynamic_flag_spec=-rdynamic
9928       ;;
9929
9930     cygwin* | mingw* | pw32* | cegcc*)
9931       # When not using gcc, we currently assume that we are using
9932       # Microsoft Visual C++.
9933       # hardcode_libdir_flag_spec is actually meaningless, as there is
9934       # no search path for DLLs.
9935       case $cc_basename in
9936       cl*)
9937         # Native MSVC
9938         hardcode_libdir_flag_spec=' '
9939         allow_undefined_flag=unsupported
9940         always_export_symbols=yes
9941         file_list_spec='@'
9942         # Tell ltmain to make .lib files, not .a files.
9943         libext=lib
9944         # Tell ltmain to make .dll files, not .so files.
9945         shrext_cmds=".dll"
9946         # FIXME: Setting linknames here is a bad hack.
9947         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9948         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9949             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9950           else
9951             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9952           fi~
9953           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9954           linknames='
9955         # The linker will not automatically build a static lib if we build a DLL.
9956         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9957         enable_shared_with_static_runtimes=yes
9958         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9959         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9960         # Don't use ranlib
9961         old_postinstall_cmds='chmod 644 $oldlib'
9962         postlink_cmds='lt_outputfile="@OUTPUT@"~
9963           lt_tool_outputfile="@TOOL_OUTPUT@"~
9964           case $lt_outputfile in
9965             *.exe|*.EXE) ;;
9966             *)
9967               lt_outputfile="$lt_outputfile.exe"
9968               lt_tool_outputfile="$lt_tool_outputfile.exe"
9969               ;;
9970           esac~
9971           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9972             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9973             $RM "$lt_outputfile.manifest";
9974           fi'
9975         ;;
9976       *)
9977         # Assume MSVC wrapper
9978         hardcode_libdir_flag_spec=' '
9979         allow_undefined_flag=unsupported
9980         # Tell ltmain to make .lib files, not .a files.
9981         libext=lib
9982         # Tell ltmain to make .dll files, not .so files.
9983         shrext_cmds=".dll"
9984         # FIXME: Setting linknames here is a bad hack.
9985         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9986         # The linker will automatically build a .lib file if we build a DLL.
9987         old_archive_from_new_cmds='true'
9988         # FIXME: Should let the user specify the lib program.
9989         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9990         enable_shared_with_static_runtimes=yes
9991         ;;
9992       esac
9993       ;;
9994
9995     darwin* | rhapsody*)
9996
9997
9998   archive_cmds_need_lc=no
9999   hardcode_direct=no
10000   hardcode_automatic=yes
10001   hardcode_shlibpath_var=unsupported
10002   if test "$lt_cv_ld_force_load" = "yes"; then
10003     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\"`'
10004
10005   else
10006     whole_archive_flag_spec=''
10007   fi
10008   link_all_deplibs=yes
10009   allow_undefined_flag="$_lt_dar_allow_undefined"
10010   case $cc_basename in
10011      ifort*) _lt_dar_can_shared=yes ;;
10012      *) _lt_dar_can_shared=$GCC ;;
10013   esac
10014   if test "$_lt_dar_can_shared" = "yes"; then
10015     output_verbose_link_cmd=func_echo_all
10016     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10017     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10018     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}"
10019     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}"
10020
10021   else
10022   ld_shlibs=no
10023   fi
10024
10025       ;;
10026
10027     dgux*)
10028       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029       hardcode_libdir_flag_spec='-L$libdir'
10030       hardcode_shlibpath_var=no
10031       ;;
10032
10033     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10034     # support.  Future versions do this automatically, but an explicit c++rt0.o
10035     # does not break anything, and helps significantly (at the cost of a little
10036     # extra space).
10037     freebsd2.2*)
10038       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10039       hardcode_libdir_flag_spec='-R$libdir'
10040       hardcode_direct=yes
10041       hardcode_shlibpath_var=no
10042       ;;
10043
10044     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10045     freebsd2.*)
10046       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10047       hardcode_direct=yes
10048       hardcode_minus_L=yes
10049       hardcode_shlibpath_var=no
10050       ;;
10051
10052     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10053     freebsd* | dragonfly*)
10054       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10055       hardcode_libdir_flag_spec='-R$libdir'
10056       hardcode_direct=yes
10057       hardcode_shlibpath_var=no
10058       ;;
10059
10060     hpux9*)
10061       if test "$GCC" = yes; then
10062         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10063       else
10064         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10065       fi
10066       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10067       hardcode_libdir_separator=:
10068       hardcode_direct=yes
10069
10070       # hardcode_minus_L: Not really in the search PATH,
10071       # but as the default location of the library.
10072       hardcode_minus_L=yes
10073       export_dynamic_flag_spec='${wl}-E'
10074       ;;
10075
10076     hpux10*)
10077       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10078         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10079       else
10080         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10081       fi
10082       if test "$with_gnu_ld" = no; then
10083         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10084         hardcode_libdir_separator=:
10085         hardcode_direct=yes
10086         hardcode_direct_absolute=yes
10087         export_dynamic_flag_spec='${wl}-E'
10088         # hardcode_minus_L: Not really in the search PATH,
10089         # but as the default location of the library.
10090         hardcode_minus_L=yes
10091       fi
10092       ;;
10093
10094     hpux11*)
10095       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10096         case $host_cpu in
10097         hppa*64*)
10098           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10099           ;;
10100         ia64*)
10101           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10102           ;;
10103         *)
10104           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10105           ;;
10106         esac
10107       else
10108         case $host_cpu in
10109         hppa*64*)
10110           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10111           ;;
10112         ia64*)
10113           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10114           ;;
10115         *)
10116
10117           # Older versions of the 11.00 compiler do not understand -b yet
10118           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10119           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10120 $as_echo_n "checking if $CC understands -b... " >&6; }
10121 if ${lt_cv_prog_compiler__b+:} false; then :
10122   $as_echo_n "(cached) " >&6
10123 else
10124   lt_cv_prog_compiler__b=no
10125    save_LDFLAGS="$LDFLAGS"
10126    LDFLAGS="$LDFLAGS -b"
10127    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10128    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10129      # The linker can only warn and ignore the option if not recognized
10130      # So say no if there are warnings
10131      if test -s conftest.err; then
10132        # Append any errors to the config.log.
10133        cat conftest.err 1>&5
10134        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10135        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10136        if diff conftest.exp conftest.er2 >/dev/null; then
10137          lt_cv_prog_compiler__b=yes
10138        fi
10139      else
10140        lt_cv_prog_compiler__b=yes
10141      fi
10142    fi
10143    $RM -r conftest*
10144    LDFLAGS="$save_LDFLAGS"
10145
10146 fi
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10148 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10149
10150 if test x"$lt_cv_prog_compiler__b" = xyes; then
10151     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10152 else
10153     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10154 fi
10155
10156           ;;
10157         esac
10158       fi
10159       if test "$with_gnu_ld" = no; then
10160         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10161         hardcode_libdir_separator=:
10162
10163         case $host_cpu in
10164         hppa*64*|ia64*)
10165           hardcode_direct=no
10166           hardcode_shlibpath_var=no
10167           ;;
10168         *)
10169           hardcode_direct=yes
10170           hardcode_direct_absolute=yes
10171           export_dynamic_flag_spec='${wl}-E'
10172
10173           # hardcode_minus_L: Not really in the search PATH,
10174           # but as the default location of the library.
10175           hardcode_minus_L=yes
10176           ;;
10177         esac
10178       fi
10179       ;;
10180
10181     irix5* | irix6* | nonstopux*)
10182       if test "$GCC" = yes; then
10183         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'
10184         # Try to use the -exported_symbol ld option, if it does not
10185         # work, assume that -exports_file does not work either and
10186         # implicitly export all symbols.
10187         # This should be the same for all languages, so no per-tag cache variable.
10188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10189 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10190 if ${lt_cv_irix_exported_symbol+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   save_LDFLAGS="$LDFLAGS"
10194            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10195            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h.  */
10197 int foo (void) { return 0; }
10198 _ACEOF
10199 if ac_fn_c_try_link "$LINENO"; then :
10200   lt_cv_irix_exported_symbol=yes
10201 else
10202   lt_cv_irix_exported_symbol=no
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext \
10205     conftest$ac_exeext conftest.$ac_ext
10206            LDFLAGS="$save_LDFLAGS"
10207 fi
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10209 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10210         if test "$lt_cv_irix_exported_symbol" = yes; then
10211           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'
10212         fi
10213       else
10214         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'
10215         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'
10216       fi
10217       archive_cmds_need_lc='no'
10218       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219       hardcode_libdir_separator=:
10220       inherit_rpath=yes
10221       link_all_deplibs=yes
10222       ;;
10223
10224     netbsd*)
10225       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10226         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10227       else
10228         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10229       fi
10230       hardcode_libdir_flag_spec='-R$libdir'
10231       hardcode_direct=yes
10232       hardcode_shlibpath_var=no
10233       ;;
10234
10235     newsos6)
10236       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237       hardcode_direct=yes
10238       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10239       hardcode_libdir_separator=:
10240       hardcode_shlibpath_var=no
10241       ;;
10242
10243     *nto* | *qnx*)
10244       ;;
10245
10246     openbsd*)
10247       if test -f /usr/libexec/ld.so; then
10248         hardcode_direct=yes
10249         hardcode_shlibpath_var=no
10250         hardcode_direct_absolute=yes
10251         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10252           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10254           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10255           export_dynamic_flag_spec='${wl}-E'
10256         else
10257           case $host_os in
10258            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10259              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10260              hardcode_libdir_flag_spec='-R$libdir'
10261              ;;
10262            *)
10263              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10264              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10265              ;;
10266           esac
10267         fi
10268       else
10269         ld_shlibs=no
10270       fi
10271       ;;
10272
10273     os2*)
10274       hardcode_libdir_flag_spec='-L$libdir'
10275       hardcode_minus_L=yes
10276       allow_undefined_flag=unsupported
10277       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10278       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10279       ;;
10280
10281     osf3*)
10282       if test "$GCC" = yes; then
10283         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10284         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'
10285       else
10286         allow_undefined_flag=' -expect_unresolved \*'
10287         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'
10288       fi
10289       archive_cmds_need_lc='no'
10290       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10291       hardcode_libdir_separator=:
10292       ;;
10293
10294     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10295       if test "$GCC" = yes; then
10296         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10297         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'
10298         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10299       else
10300         allow_undefined_flag=' -expect_unresolved \*'
10301         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'
10302         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~
10303         $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'
10304
10305         # Both c and cxx compiler support -rpath directly
10306         hardcode_libdir_flag_spec='-rpath $libdir'
10307       fi
10308       archive_cmds_need_lc='no'
10309       hardcode_libdir_separator=:
10310       ;;
10311
10312     solaris*)
10313       no_undefined_flag=' -z defs'
10314       if test "$GCC" = yes; then
10315         wlarc='${wl}'
10316         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10317         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10318           $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'
10319       else
10320         case `$CC -V 2>&1` in
10321         *"Compilers 5.0"*)
10322           wlarc=''
10323           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10325           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10326           ;;
10327         *)
10328           wlarc='${wl}'
10329           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10330           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10331           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10332           ;;
10333         esac
10334       fi
10335       hardcode_libdir_flag_spec='-R$libdir'
10336       hardcode_shlibpath_var=no
10337       case $host_os in
10338       solaris2.[0-5] | solaris2.[0-5].*) ;;
10339       *)
10340         # The compiler driver will combine and reorder linker options,
10341         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10342         # but is careful enough not to reorder.
10343         # Supported since Solaris 2.6 (maybe 2.5.1?)
10344         if test "$GCC" = yes; then
10345           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10346         else
10347           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10348         fi
10349         ;;
10350       esac
10351       link_all_deplibs=yes
10352       ;;
10353
10354     sunos4*)
10355       if test "x$host_vendor" = xsequent; then
10356         # Use $CC to link under sequent, because it throws in some extra .o
10357         # files that make .init and .fini sections work.
10358         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10359       else
10360         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10361       fi
10362       hardcode_libdir_flag_spec='-L$libdir'
10363       hardcode_direct=yes
10364       hardcode_minus_L=yes
10365       hardcode_shlibpath_var=no
10366       ;;
10367
10368     sysv4)
10369       case $host_vendor in
10370         sni)
10371           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372           hardcode_direct=yes # is this really true???
10373         ;;
10374         siemens)
10375           ## LD is ld it makes a PLAMLIB
10376           ## CC just makes a GrossModule.
10377           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10378           reload_cmds='$CC -r -o $output$reload_objs'
10379           hardcode_direct=no
10380         ;;
10381         motorola)
10382           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10383           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10384         ;;
10385       esac
10386       runpath_var='LD_RUN_PATH'
10387       hardcode_shlibpath_var=no
10388       ;;
10389
10390     sysv4.3*)
10391       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392       hardcode_shlibpath_var=no
10393       export_dynamic_flag_spec='-Bexport'
10394       ;;
10395
10396     sysv4*MP*)
10397       if test -d /usr/nec; then
10398         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399         hardcode_shlibpath_var=no
10400         runpath_var=LD_RUN_PATH
10401         hardcode_runpath_var=yes
10402         ld_shlibs=yes
10403       fi
10404       ;;
10405
10406     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10407       no_undefined_flag='${wl}-z,text'
10408       archive_cmds_need_lc=no
10409       hardcode_shlibpath_var=no
10410       runpath_var='LD_RUN_PATH'
10411
10412       if test "$GCC" = yes; then
10413         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10415       else
10416         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418       fi
10419       ;;
10420
10421     sysv5* | sco3.2v5* | sco5v6*)
10422       # Note: We can NOT use -z defs as we might desire, because we do not
10423       # link with -lc, and that would cause any symbols used from libc to
10424       # always be unresolved, which means just about no library would
10425       # ever link correctly.  If we're not using GNU ld we use -z text
10426       # though, which does catch some bad symbols but isn't as heavy-handed
10427       # as -z defs.
10428       no_undefined_flag='${wl}-z,text'
10429       allow_undefined_flag='${wl}-z,nodefs'
10430       archive_cmds_need_lc=no
10431       hardcode_shlibpath_var=no
10432       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10433       hardcode_libdir_separator=':'
10434       link_all_deplibs=yes
10435       export_dynamic_flag_spec='${wl}-Bexport'
10436       runpath_var='LD_RUN_PATH'
10437
10438       if test "$GCC" = yes; then
10439         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10440         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10441       else
10442         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444       fi
10445       ;;
10446
10447     uts4*)
10448       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449       hardcode_libdir_flag_spec='-L$libdir'
10450       hardcode_shlibpath_var=no
10451       ;;
10452
10453     *)
10454       ld_shlibs=no
10455       ;;
10456     esac
10457
10458     if test x$host_vendor = xsni; then
10459       case $host in
10460       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10461         export_dynamic_flag_spec='${wl}-Blargedynsym'
10462         ;;
10463       esac
10464     fi
10465   fi
10466
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10468 $as_echo "$ld_shlibs" >&6; }
10469 test "$ld_shlibs" = no && can_build_shared=no
10470
10471 with_gnu_ld=$with_gnu_ld
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487 #
10488 # Do we need to explicitly link libc?
10489 #
10490 case "x$archive_cmds_need_lc" in
10491 x|xyes)
10492   # Assume -lc should be added
10493   archive_cmds_need_lc=yes
10494
10495   if test "$enable_shared" = yes && test "$GCC" = yes; then
10496     case $archive_cmds in
10497     *'~'*)
10498       # FIXME: we may have to deal with multi-command sequences.
10499       ;;
10500     '$CC '*)
10501       # Test whether the compiler implicitly links with -lc since on some
10502       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10503       # to ld, don't add -lc before -lgcc.
10504       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10505 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10506 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10507   $as_echo_n "(cached) " >&6
10508 else
10509   $RM conftest*
10510         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10511
10512         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10513   (eval $ac_compile) 2>&5
10514   ac_status=$?
10515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10516   test $ac_status = 0; } 2>conftest.err; then
10517           soname=conftest
10518           lib=conftest
10519           libobjs=conftest.$ac_objext
10520           deplibs=
10521           wl=$lt_prog_compiler_wl
10522           pic_flag=$lt_prog_compiler_pic
10523           compiler_flags=-v
10524           linker_flags=-v
10525           verstring=
10526           output_objdir=.
10527           libname=conftest
10528           lt_save_allow_undefined_flag=$allow_undefined_flag
10529           allow_undefined_flag=
10530           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10531   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10532   ac_status=$?
10533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10534   test $ac_status = 0; }
10535           then
10536             lt_cv_archive_cmds_need_lc=no
10537           else
10538             lt_cv_archive_cmds_need_lc=yes
10539           fi
10540           allow_undefined_flag=$lt_save_allow_undefined_flag
10541         else
10542           cat conftest.err 1>&5
10543         fi
10544         $RM conftest*
10545
10546 fi
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10548 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10549       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10550       ;;
10551     esac
10552   fi
10553   ;;
10554 esac
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10708 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10709
10710 if test "$GCC" = yes; then
10711   case $host_os in
10712     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10713     *) lt_awk_arg="/^libraries:/" ;;
10714   esac
10715   case $host_os in
10716     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10717     *) lt_sed_strip_eq="s,=/,/,g" ;;
10718   esac
10719   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10720   case $lt_search_path_spec in
10721   *\;*)
10722     # if the path contains ";" then we assume it to be the separator
10723     # otherwise default to the standard path separator (i.e. ":") - it is
10724     # assumed that no part of a normal pathname contains ";" but that should
10725     # okay in the real world where ";" in dirpaths is itself problematic.
10726     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10727     ;;
10728   *)
10729     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10730     ;;
10731   esac
10732   # Ok, now we have the path, separated by spaces, we can step through it
10733   # and add multilib dir if necessary.
10734   lt_tmp_lt_search_path_spec=
10735   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10736   for lt_sys_path in $lt_search_path_spec; do
10737     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10738       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10739     else
10740       test -d "$lt_sys_path" && \
10741         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10742     fi
10743   done
10744   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10745 BEGIN {RS=" "; FS="/|\n";} {
10746   lt_foo="";
10747   lt_count=0;
10748   for (lt_i = NF; lt_i > 0; lt_i--) {
10749     if ($lt_i != "" && $lt_i != ".") {
10750       if ($lt_i == "..") {
10751         lt_count++;
10752       } else {
10753         if (lt_count == 0) {
10754           lt_foo="/" $lt_i lt_foo;
10755         } else {
10756           lt_count--;
10757         }
10758       }
10759     }
10760   }
10761   if (lt_foo != "") { lt_freq[lt_foo]++; }
10762   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10763 }'`
10764   # AWK program above erroneously prepends '/' to C:/dos/paths
10765   # for these hosts.
10766   case $host_os in
10767     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10768       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10769   esac
10770   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10771 else
10772   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10773 fi
10774 library_names_spec=
10775 libname_spec='lib$name'
10776 soname_spec=
10777 shrext_cmds=".so"
10778 postinstall_cmds=
10779 postuninstall_cmds=
10780 finish_cmds=
10781 finish_eval=
10782 shlibpath_var=
10783 shlibpath_overrides_runpath=unknown
10784 version_type=none
10785 dynamic_linker="$host_os ld.so"
10786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10787 need_lib_prefix=unknown
10788 hardcode_into_libs=no
10789
10790 # when you set need_version to no, make sure it does not cause -set_version
10791 # flags to be left without arguments
10792 need_version=unknown
10793
10794 case $host_os in
10795 aix3*)
10796   version_type=linux # correct to gnu/linux during the next big refactor
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10798   shlibpath_var=LIBPATH
10799
10800   # AIX 3 has no versioning support, so we append a major version to the name.
10801   soname_spec='${libname}${release}${shared_ext}$major'
10802   ;;
10803
10804 aix[4-9]*)
10805   version_type=linux # correct to gnu/linux during the next big refactor
10806   need_lib_prefix=no
10807   need_version=no
10808   hardcode_into_libs=yes
10809   if test "$host_cpu" = ia64; then
10810     # AIX 5 supports IA64
10811     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10812     shlibpath_var=LD_LIBRARY_PATH
10813   else
10814     # With GCC up to 2.95.x, collect2 would create an import file
10815     # for dependence libraries.  The import file would start with
10816     # the line `#! .'.  This would cause the generated library to
10817     # depend on `.', always an invalid library.  This was fixed in
10818     # development snapshots of GCC prior to 3.0.
10819     case $host_os in
10820       aix4 | aix4.[01] | aix4.[01].*)
10821       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10822            echo ' yes '
10823            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10824         :
10825       else
10826         can_build_shared=no
10827       fi
10828       ;;
10829     esac
10830     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10831     # soname into executable. Probably we can add versioning support to
10832     # collect2, so additional links can be useful in future.
10833     if test "$aix_use_runtimelinking" = yes; then
10834       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10835       # instead of lib<name>.a to let people know that these are not
10836       # typical AIX shared libraries.
10837       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838     else
10839       # We preserve .a as extension for shared libraries through AIX4.2
10840       # and later when we are not doing run time linking.
10841       library_names_spec='${libname}${release}.a $libname.a'
10842       soname_spec='${libname}${release}${shared_ext}$major'
10843     fi
10844     shlibpath_var=LIBPATH
10845   fi
10846   ;;
10847
10848 amigaos*)
10849   case $host_cpu in
10850   powerpc)
10851     # Since July 2007 AmigaOS4 officially supports .so libraries.
10852     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854     ;;
10855   m68k)
10856     library_names_spec='$libname.ixlibrary $libname.a'
10857     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10858     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10859     ;;
10860   esac
10861   ;;
10862
10863 beos*)
10864   library_names_spec='${libname}${shared_ext}'
10865   dynamic_linker="$host_os ld.so"
10866   shlibpath_var=LIBRARY_PATH
10867   ;;
10868
10869 bsdi[45]*)
10870   version_type=linux # correct to gnu/linux during the next big refactor
10871   need_version=no
10872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873   soname_spec='${libname}${release}${shared_ext}$major'
10874   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10875   shlibpath_var=LD_LIBRARY_PATH
10876   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10877   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10878   # the default ld.so.conf also contains /usr/contrib/lib and
10879   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10880   # libtool to hard-code these into programs
10881   ;;
10882
10883 cygwin* | mingw* | pw32* | cegcc*)
10884   version_type=windows
10885   shrext_cmds=".dll"
10886   need_version=no
10887   need_lib_prefix=no
10888
10889   case $GCC,$cc_basename in
10890   yes,*)
10891     # gcc
10892     library_names_spec='$libname.dll.a'
10893     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10894     postinstall_cmds='base_file=`basename \${file}`~
10895       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10896       dldir=$destdir/`dirname \$dlpath`~
10897       test -d \$dldir || mkdir -p \$dldir~
10898       $install_prog $dir/$dlname \$dldir/$dlname~
10899       chmod a+x \$dldir/$dlname~
10900       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10901         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10902       fi'
10903     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10904       dlpath=$dir/\$dldll~
10905        $RM \$dlpath'
10906     shlibpath_overrides_runpath=yes
10907
10908     case $host_os in
10909     cygwin*)
10910       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10911       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10912
10913       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10914       ;;
10915     mingw* | cegcc*)
10916       # MinGW DLLs use traditional 'lib' prefix
10917       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10918       ;;
10919     pw32*)
10920       # pw32 DLLs use 'pw' prefix rather than 'lib'
10921       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10922       ;;
10923     esac
10924     dynamic_linker='Win32 ld.exe'
10925     ;;
10926
10927   *,cl*)
10928     # Native MSVC
10929     libname_spec='$name'
10930     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10931     library_names_spec='${libname}.dll.lib'
10932
10933     case $build_os in
10934     mingw*)
10935       sys_lib_search_path_spec=
10936       lt_save_ifs=$IFS
10937       IFS=';'
10938       for lt_path in $LIB
10939       do
10940         IFS=$lt_save_ifs
10941         # Let DOS variable expansion print the short 8.3 style file name.
10942         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10943         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10944       done
10945       IFS=$lt_save_ifs
10946       # Convert to MSYS style.
10947       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10948       ;;
10949     cygwin*)
10950       # Convert to unix form, then to dos form, then back to unix form
10951       # but this time dos style (no spaces!) so that the unix form looks
10952       # like /cygdrive/c/PROGRA~1:/cygdr...
10953       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10954       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10955       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10956       ;;
10957     *)
10958       sys_lib_search_path_spec="$LIB"
10959       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10960         # It is most probably a Windows format PATH.
10961         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10962       else
10963         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10964       fi
10965       # FIXME: find the short name or the path components, as spaces are
10966       # common. (e.g. "Program Files" -> "PROGRA~1")
10967       ;;
10968     esac
10969
10970     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10971     postinstall_cmds='base_file=`basename \${file}`~
10972       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10973       dldir=$destdir/`dirname \$dlpath`~
10974       test -d \$dldir || mkdir -p \$dldir~
10975       $install_prog $dir/$dlname \$dldir/$dlname'
10976     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10977       dlpath=$dir/\$dldll~
10978        $RM \$dlpath'
10979     shlibpath_overrides_runpath=yes
10980     dynamic_linker='Win32 link.exe'
10981     ;;
10982
10983   *)
10984     # Assume MSVC wrapper
10985     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10986     dynamic_linker='Win32 ld.exe'
10987     ;;
10988   esac
10989   # FIXME: first we should search . and the directory the executable is in
10990   shlibpath_var=PATH
10991   ;;
10992
10993 darwin* | rhapsody*)
10994   dynamic_linker="$host_os dyld"
10995   version_type=darwin
10996   need_lib_prefix=no
10997   need_version=no
10998   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10999   soname_spec='${libname}${release}${major}$shared_ext'
11000   shlibpath_overrides_runpath=yes
11001   shlibpath_var=DYLD_LIBRARY_PATH
11002   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11003
11004   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11005   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11006   ;;
11007
11008 dgux*)
11009   version_type=linux # correct to gnu/linux during the next big refactor
11010   need_lib_prefix=no
11011   need_version=no
11012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11013   soname_spec='${libname}${release}${shared_ext}$major'
11014   shlibpath_var=LD_LIBRARY_PATH
11015   ;;
11016
11017 freebsd* | dragonfly*)
11018   # DragonFly does not have aout.  When/if they implement a new
11019   # versioning mechanism, adjust this.
11020   if test -x /usr/bin/objformat; then
11021     objformat=`/usr/bin/objformat`
11022   else
11023     case $host_os in
11024     freebsd[23].*) objformat=aout ;;
11025     *) objformat=elf ;;
11026     esac
11027   fi
11028   version_type=freebsd-$objformat
11029   case $version_type in
11030     freebsd-elf*)
11031       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11032       need_version=no
11033       need_lib_prefix=no
11034       ;;
11035     freebsd-*)
11036       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11037       need_version=yes
11038       ;;
11039   esac
11040   shlibpath_var=LD_LIBRARY_PATH
11041   case $host_os in
11042   freebsd2.*)
11043     shlibpath_overrides_runpath=yes
11044     ;;
11045   freebsd3.[01]* | freebsdelf3.[01]*)
11046     shlibpath_overrides_runpath=yes
11047     hardcode_into_libs=yes
11048     ;;
11049   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11050   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11051     shlibpath_overrides_runpath=no
11052     hardcode_into_libs=yes
11053     ;;
11054   *) # from 4.6 on, and DragonFly
11055     shlibpath_overrides_runpath=yes
11056     hardcode_into_libs=yes
11057     ;;
11058   esac
11059   ;;
11060
11061 gnu*)
11062   version_type=linux # correct to gnu/linux during the next big refactor
11063   need_lib_prefix=no
11064   need_version=no
11065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11066   soname_spec='${libname}${release}${shared_ext}$major'
11067   shlibpath_var=LD_LIBRARY_PATH
11068   shlibpath_overrides_runpath=no
11069   hardcode_into_libs=yes
11070   ;;
11071
11072 haiku*)
11073   version_type=linux # correct to gnu/linux during the next big refactor
11074   need_lib_prefix=no
11075   need_version=no
11076   dynamic_linker="$host_os runtime_loader"
11077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11078   soname_spec='${libname}${release}${shared_ext}$major'
11079   shlibpath_var=LIBRARY_PATH
11080   shlibpath_overrides_runpath=yes
11081   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11082   hardcode_into_libs=yes
11083   ;;
11084
11085 hpux9* | hpux10* | hpux11*)
11086   # Give a soname corresponding to the major version so that dld.sl refuses to
11087   # link against other versions.
11088   version_type=sunos
11089   need_lib_prefix=no
11090   need_version=no
11091   case $host_cpu in
11092   ia64*)
11093     shrext_cmds='.so'
11094     hardcode_into_libs=yes
11095     dynamic_linker="$host_os dld.so"
11096     shlibpath_var=LD_LIBRARY_PATH
11097     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099     soname_spec='${libname}${release}${shared_ext}$major'
11100     if test "X$HPUX_IA64_MODE" = X32; then
11101       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11102     else
11103       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11104     fi
11105     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11106     ;;
11107   hppa*64*)
11108     shrext_cmds='.sl'
11109     hardcode_into_libs=yes
11110     dynamic_linker="$host_os dld.sl"
11111     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11112     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114     soname_spec='${libname}${release}${shared_ext}$major'
11115     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11117     ;;
11118   *)
11119     shrext_cmds='.sl'
11120     dynamic_linker="$host_os dld.sl"
11121     shlibpath_var=SHLIB_PATH
11122     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124     soname_spec='${libname}${release}${shared_ext}$major'
11125     ;;
11126   esac
11127   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11128   postinstall_cmds='chmod 555 $lib'
11129   # or fails outright, so override atomically:
11130   install_override_mode=555
11131   ;;
11132
11133 interix[3-9]*)
11134   version_type=linux # correct to gnu/linux during the next big refactor
11135   need_lib_prefix=no
11136   need_version=no
11137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11138   soname_spec='${libname}${release}${shared_ext}$major'
11139   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11140   shlibpath_var=LD_LIBRARY_PATH
11141   shlibpath_overrides_runpath=no
11142   hardcode_into_libs=yes
11143   ;;
11144
11145 irix5* | irix6* | nonstopux*)
11146   case $host_os in
11147     nonstopux*) version_type=nonstopux ;;
11148     *)
11149         if test "$lt_cv_prog_gnu_ld" = yes; then
11150                 version_type=linux # correct to gnu/linux during the next big refactor
11151         else
11152                 version_type=irix
11153         fi ;;
11154   esac
11155   need_lib_prefix=no
11156   need_version=no
11157   soname_spec='${libname}${release}${shared_ext}$major'
11158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11159   case $host_os in
11160   irix5* | nonstopux*)
11161     libsuff= shlibsuff=
11162     ;;
11163   *)
11164     case $LD in # libtool.m4 will add one of these switches to LD
11165     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11166       libsuff= shlibsuff= libmagic=32-bit;;
11167     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11168       libsuff=32 shlibsuff=N32 libmagic=N32;;
11169     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11170       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11171     *) libsuff= shlibsuff= libmagic=never-match;;
11172     esac
11173     ;;
11174   esac
11175   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11176   shlibpath_overrides_runpath=no
11177   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11178   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11179   hardcode_into_libs=yes
11180   ;;
11181
11182 # No shared lib support for Linux oldld, aout, or coff.
11183 linux*oldld* | linux*aout* | linux*coff*)
11184   dynamic_linker=no
11185   ;;
11186
11187 # This must be glibc/ELF.
11188 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11189   version_type=linux # correct to gnu/linux during the next big refactor
11190   need_lib_prefix=no
11191   need_version=no
11192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193   soname_spec='${libname}${release}${shared_ext}$major'
11194   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   shlibpath_overrides_runpath=no
11197
11198   # Some binutils ld are patched to set DT_RUNPATH
11199   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11200   $as_echo_n "(cached) " >&6
11201 else
11202   lt_cv_shlibpath_overrides_runpath=no
11203     save_LDFLAGS=$LDFLAGS
11204     save_libdir=$libdir
11205     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11206          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h.  */
11209
11210 int
11211 main ()
11212 {
11213
11214   ;
11215   return 0;
11216 }
11217 _ACEOF
11218 if ac_fn_c_try_link "$LINENO"; then :
11219   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11220   lt_cv_shlibpath_overrides_runpath=yes
11221 fi
11222 fi
11223 rm -f core conftest.err conftest.$ac_objext \
11224     conftest$ac_exeext conftest.$ac_ext
11225     LDFLAGS=$save_LDFLAGS
11226     libdir=$save_libdir
11227
11228 fi
11229
11230   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11231
11232   # This implies no fast_install, which is unacceptable.
11233   # Some rework will be needed to allow for fast_install
11234   # before this can be enabled.
11235   hardcode_into_libs=yes
11236
11237   # Add ABI-specific directories to the system library path.
11238   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11239
11240   # Append ld.so.conf contents to the search path
11241   if test -f /etc/ld.so.conf; then
11242     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' ' '`
11243     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11244
11245   fi
11246
11247   # We used to test for /lib/ld.so.1 and disable shared libraries on
11248   # powerpc, because MkLinux only supported shared libraries with the
11249   # GNU dynamic linker.  Since this was broken with cross compilers,
11250   # most powerpc-linux boxes support dynamic linking these days and
11251   # people can always --disable-shared, the test was removed, and we
11252   # assume the GNU/Linux dynamic linker is in use.
11253   dynamic_linker='GNU/Linux ld.so'
11254   ;;
11255
11256 netbsd*)
11257   version_type=sunos
11258   need_lib_prefix=no
11259   need_version=no
11260   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11262     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11263     dynamic_linker='NetBSD (a.out) ld.so'
11264   else
11265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11266     soname_spec='${libname}${release}${shared_ext}$major'
11267     dynamic_linker='NetBSD ld.elf_so'
11268   fi
11269   shlibpath_var=LD_LIBRARY_PATH
11270   shlibpath_overrides_runpath=yes
11271   hardcode_into_libs=yes
11272   ;;
11273
11274 newsos6)
11275   version_type=linux # correct to gnu/linux during the next big refactor
11276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   shlibpath_overrides_runpath=yes
11279   ;;
11280
11281 *nto* | *qnx*)
11282   version_type=qnx
11283   need_lib_prefix=no
11284   need_version=no
11285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286   soname_spec='${libname}${release}${shared_ext}$major'
11287   shlibpath_var=LD_LIBRARY_PATH
11288   shlibpath_overrides_runpath=no
11289   hardcode_into_libs=yes
11290   dynamic_linker='ldqnx.so'
11291   ;;
11292
11293 openbsd*)
11294   version_type=sunos
11295   sys_lib_dlsearch_path_spec="/usr/lib"
11296   need_lib_prefix=no
11297   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11298   case $host_os in
11299     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11300     *)                          need_version=no  ;;
11301   esac
11302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11303   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11304   shlibpath_var=LD_LIBRARY_PATH
11305   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11306     case $host_os in
11307       openbsd2.[89] | openbsd2.[89].*)
11308         shlibpath_overrides_runpath=no
11309         ;;
11310       *)
11311         shlibpath_overrides_runpath=yes
11312         ;;
11313       esac
11314   else
11315     shlibpath_overrides_runpath=yes
11316   fi
11317   ;;
11318
11319 os2*)
11320   libname_spec='$name'
11321   shrext_cmds=".dll"
11322   need_lib_prefix=no
11323   library_names_spec='$libname${shared_ext} $libname.a'
11324   dynamic_linker='OS/2 ld.exe'
11325   shlibpath_var=LIBPATH
11326   ;;
11327
11328 osf3* | osf4* | osf5*)
11329   version_type=osf
11330   need_lib_prefix=no
11331   need_version=no
11332   soname_spec='${libname}${release}${shared_ext}$major'
11333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334   shlibpath_var=LD_LIBRARY_PATH
11335   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11336   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11337   ;;
11338
11339 rdos*)
11340   dynamic_linker=no
11341   ;;
11342
11343 solaris*)
11344   version_type=linux # correct to gnu/linux during the next big refactor
11345   need_lib_prefix=no
11346   need_version=no
11347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348   soname_spec='${libname}${release}${shared_ext}$major'
11349   shlibpath_var=LD_LIBRARY_PATH
11350   shlibpath_overrides_runpath=yes
11351   hardcode_into_libs=yes
11352   # ldd complains unless libraries are executable
11353   postinstall_cmds='chmod +x $lib'
11354   ;;
11355
11356 sunos4*)
11357   version_type=sunos
11358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11359   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11360   shlibpath_var=LD_LIBRARY_PATH
11361   shlibpath_overrides_runpath=yes
11362   if test "$with_gnu_ld" = yes; then
11363     need_lib_prefix=no
11364   fi
11365   need_version=yes
11366   ;;
11367
11368 sysv4 | sysv4.3*)
11369   version_type=linux # correct to gnu/linux during the next big refactor
11370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371   soname_spec='${libname}${release}${shared_ext}$major'
11372   shlibpath_var=LD_LIBRARY_PATH
11373   case $host_vendor in
11374     sni)
11375       shlibpath_overrides_runpath=no
11376       need_lib_prefix=no
11377       runpath_var=LD_RUN_PATH
11378       ;;
11379     siemens)
11380       need_lib_prefix=no
11381       ;;
11382     motorola)
11383       need_lib_prefix=no
11384       need_version=no
11385       shlibpath_overrides_runpath=no
11386       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11387       ;;
11388   esac
11389   ;;
11390
11391 sysv4*MP*)
11392   if test -d /usr/nec ;then
11393     version_type=linux # correct to gnu/linux during the next big refactor
11394     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11395     soname_spec='$libname${shared_ext}.$major'
11396     shlibpath_var=LD_LIBRARY_PATH
11397   fi
11398   ;;
11399
11400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11401   version_type=freebsd-elf
11402   need_lib_prefix=no
11403   need_version=no
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11405   soname_spec='${libname}${release}${shared_ext}$major'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   shlibpath_overrides_runpath=yes
11408   hardcode_into_libs=yes
11409   if test "$with_gnu_ld" = yes; then
11410     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11411   else
11412     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11413     case $host_os in
11414       sco3.2v5*)
11415         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11416         ;;
11417     esac
11418   fi
11419   sys_lib_dlsearch_path_spec='/usr/lib'
11420   ;;
11421
11422 tpf*)
11423   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11424   version_type=linux # correct to gnu/linux during the next big refactor
11425   need_lib_prefix=no
11426   need_version=no
11427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428   shlibpath_var=LD_LIBRARY_PATH
11429   shlibpath_overrides_runpath=no
11430   hardcode_into_libs=yes
11431   ;;
11432
11433 uts4*)
11434   version_type=linux # correct to gnu/linux during the next big refactor
11435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436   soname_spec='${libname}${release}${shared_ext}$major'
11437   shlibpath_var=LD_LIBRARY_PATH
11438   ;;
11439
11440 *)
11441   dynamic_linker=no
11442   ;;
11443 esac
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11445 $as_echo "$dynamic_linker" >&6; }
11446 test "$dynamic_linker" = no && can_build_shared=no
11447
11448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11449 if test "$GCC" = yes; then
11450   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11451 fi
11452
11453 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11454   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11455 fi
11456 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11457   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11458 fi
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11552 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11553 hardcode_action=
11554 if test -n "$hardcode_libdir_flag_spec" ||
11555    test -n "$runpath_var" ||
11556    test "X$hardcode_automatic" = "Xyes" ; then
11557
11558   # We can hardcode non-existent directories.
11559   if test "$hardcode_direct" != no &&
11560      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11561      # have to relink, otherwise we might link with an installed library
11562      # when we should be linking with a yet-to-be-installed one
11563      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11564      test "$hardcode_minus_L" != no; then
11565     # Linking always hardcodes the temporary library directory.
11566     hardcode_action=relink
11567   else
11568     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11569     hardcode_action=immediate
11570   fi
11571 else
11572   # We cannot hardcode anything, or else we can only hardcode existing
11573   # directories.
11574   hardcode_action=unsupported
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11577 $as_echo "$hardcode_action" >&6; }
11578
11579 if test "$hardcode_action" = relink ||
11580    test "$inherit_rpath" = yes; then
11581   # Fast installation is not supported
11582   enable_fast_install=no
11583 elif test "$shlibpath_overrides_runpath" = yes ||
11584      test "$enable_shared" = no; then
11585   # Fast installation is not necessary
11586   enable_fast_install=needless
11587 fi
11588
11589
11590
11591
11592
11593
11594   if test "x$enable_dlopen" != xyes; then
11595   enable_dlopen=unknown
11596   enable_dlopen_self=unknown
11597   enable_dlopen_self_static=unknown
11598 else
11599   lt_cv_dlopen=no
11600   lt_cv_dlopen_libs=
11601
11602   case $host_os in
11603   beos*)
11604     lt_cv_dlopen="load_add_on"
11605     lt_cv_dlopen_libs=
11606     lt_cv_dlopen_self=yes
11607     ;;
11608
11609   mingw* | pw32* | cegcc*)
11610     lt_cv_dlopen="LoadLibrary"
11611     lt_cv_dlopen_libs=
11612     ;;
11613
11614   cygwin*)
11615     lt_cv_dlopen="dlopen"
11616     lt_cv_dlopen_libs=
11617     ;;
11618
11619   darwin*)
11620   # if libdl is installed we need to link against it
11621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11623 if ${ac_cv_lib_dl_dlopen+:} false; then :
11624   $as_echo_n "(cached) " >&6
11625 else
11626   ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-ldl  $LIBS"
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h.  */
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632    Use char because int might match the return type of a GCC
11633    builtin and then its argument prototype would still apply.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char dlopen ();
11638 int
11639 main ()
11640 {
11641 return dlopen ();
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 if ac_fn_c_try_link "$LINENO"; then :
11647   ac_cv_lib_dl_dlopen=yes
11648 else
11649   ac_cv_lib_dl_dlopen=no
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext \
11652     conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11657 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11658   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11659 else
11660
11661     lt_cv_dlopen="dyld"
11662     lt_cv_dlopen_libs=
11663     lt_cv_dlopen_self=yes
11664
11665 fi
11666
11667     ;;
11668
11669   *)
11670     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11671 if test "x$ac_cv_func_shl_load" = xyes; then :
11672   lt_cv_dlopen="shl_load"
11673 else
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11675 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11676 if ${ac_cv_lib_dld_shl_load+:} false; then :
11677   $as_echo_n "(cached) " >&6
11678 else
11679   ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-ldld  $LIBS"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h.  */
11683
11684 /* Override any GCC internal prototype to avoid an error.
11685    Use char because int might match the return type of a GCC
11686    builtin and then its argument prototype would still apply.  */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char shl_load ();
11691 int
11692 main ()
11693 {
11694 return shl_load ();
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700   ac_cv_lib_dld_shl_load=yes
11701 else
11702   ac_cv_lib_dld_shl_load=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext \
11705     conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11709 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11710 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11711   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11712 else
11713   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11714 if test "x$ac_cv_func_dlopen" = xyes; then :
11715   lt_cv_dlopen="dlopen"
11716 else
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11719 if ${ac_cv_lib_dl_dlopen+:} false; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722   ac_check_lib_save_LIBS=$LIBS
11723 LIBS="-ldl  $LIBS"
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h.  */
11726
11727 /* Override any GCC internal prototype to avoid an error.
11728    Use char because int might match the return type of a GCC
11729    builtin and then its argument prototype would still apply.  */
11730 #ifdef __cplusplus
11731 extern "C"
11732 #endif
11733 char dlopen ();
11734 int
11735 main ()
11736 {
11737 return dlopen ();
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 if ac_fn_c_try_link "$LINENO"; then :
11743   ac_cv_lib_dl_dlopen=yes
11744 else
11745   ac_cv_lib_dl_dlopen=no
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext \
11748     conftest$ac_exeext conftest.$ac_ext
11749 LIBS=$ac_check_lib_save_LIBS
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11753 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11754   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11755 else
11756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11757 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11758 if ${ac_cv_lib_svld_dlopen+:} false; then :
11759   $as_echo_n "(cached) " >&6
11760 else
11761   ac_check_lib_save_LIBS=$LIBS
11762 LIBS="-lsvld  $LIBS"
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h.  */
11765
11766 /* Override any GCC internal prototype to avoid an error.
11767    Use char because int might match the return type of a GCC
11768    builtin and then its argument prototype would still apply.  */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 char dlopen ();
11773 int
11774 main ()
11775 {
11776 return dlopen ();
11777   ;
11778   return 0;
11779 }
11780 _ACEOF
11781 if ac_fn_c_try_link "$LINENO"; then :
11782   ac_cv_lib_svld_dlopen=yes
11783 else
11784   ac_cv_lib_svld_dlopen=no
11785 fi
11786 rm -f core conftest.err conftest.$ac_objext \
11787     conftest$ac_exeext conftest.$ac_ext
11788 LIBS=$ac_check_lib_save_LIBS
11789 fi
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11791 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11792 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11793   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11794 else
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11796 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11797 if ${ac_cv_lib_dld_dld_link+:} false; then :
11798   $as_echo_n "(cached) " >&6
11799 else
11800   ac_check_lib_save_LIBS=$LIBS
11801 LIBS="-ldld  $LIBS"
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h.  */
11804
11805 /* Override any GCC internal prototype to avoid an error.
11806    Use char because int might match the return type of a GCC
11807    builtin and then its argument prototype would still apply.  */
11808 #ifdef __cplusplus
11809 extern "C"
11810 #endif
11811 char dld_link ();
11812 int
11813 main ()
11814 {
11815 return dld_link ();
11816   ;
11817   return 0;
11818 }
11819 _ACEOF
11820 if ac_fn_c_try_link "$LINENO"; then :
11821   ac_cv_lib_dld_dld_link=yes
11822 else
11823   ac_cv_lib_dld_dld_link=no
11824 fi
11825 rm -f core conftest.err conftest.$ac_objext \
11826     conftest$ac_exeext conftest.$ac_ext
11827 LIBS=$ac_check_lib_save_LIBS
11828 fi
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11830 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11831 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11832   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11833 fi
11834
11835
11836 fi
11837
11838
11839 fi
11840
11841
11842 fi
11843
11844
11845 fi
11846
11847
11848 fi
11849
11850     ;;
11851   esac
11852
11853   if test "x$lt_cv_dlopen" != xno; then
11854     enable_dlopen=yes
11855   else
11856     enable_dlopen=no
11857   fi
11858
11859   case $lt_cv_dlopen in
11860   dlopen)
11861     save_CPPFLAGS="$CPPFLAGS"
11862     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11863
11864     save_LDFLAGS="$LDFLAGS"
11865     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11866
11867     save_LIBS="$LIBS"
11868     LIBS="$lt_cv_dlopen_libs $LIBS"
11869
11870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11871 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11872 if ${lt_cv_dlopen_self+:} false; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875           if test "$cross_compiling" = yes; then :
11876   lt_cv_dlopen_self=cross
11877 else
11878   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11879   lt_status=$lt_dlunknown
11880   cat > conftest.$ac_ext <<_LT_EOF
11881 #line $LINENO "configure"
11882 #include "confdefs.h"
11883
11884 #if HAVE_DLFCN_H
11885 #include <dlfcn.h>
11886 #endif
11887
11888 #include <stdio.h>
11889
11890 #ifdef RTLD_GLOBAL
11891 #  define LT_DLGLOBAL           RTLD_GLOBAL
11892 #else
11893 #  ifdef DL_GLOBAL
11894 #    define LT_DLGLOBAL         DL_GLOBAL
11895 #  else
11896 #    define LT_DLGLOBAL         0
11897 #  endif
11898 #endif
11899
11900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11901    find out it does not work in some platform. */
11902 #ifndef LT_DLLAZY_OR_NOW
11903 #  ifdef RTLD_LAZY
11904 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11905 #  else
11906 #    ifdef DL_LAZY
11907 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11908 #    else
11909 #      ifdef RTLD_NOW
11910 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11911 #      else
11912 #        ifdef DL_NOW
11913 #          define LT_DLLAZY_OR_NOW      DL_NOW
11914 #        else
11915 #          define LT_DLLAZY_OR_NOW      0
11916 #        endif
11917 #      endif
11918 #    endif
11919 #  endif
11920 #endif
11921
11922 /* When -fvisbility=hidden is used, assume the code has been annotated
11923    correspondingly for the symbols needed.  */
11924 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11925 int fnord () __attribute__((visibility("default")));
11926 #endif
11927
11928 int fnord () { return 42; }
11929 int main ()
11930 {
11931   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11932   int status = $lt_dlunknown;
11933
11934   if (self)
11935     {
11936       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11937       else
11938         {
11939           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11940           else puts (dlerror ());
11941         }
11942       /* dlclose (self); */
11943     }
11944   else
11945     puts (dlerror ());
11946
11947   return status;
11948 }
11949 _LT_EOF
11950   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11951   (eval $ac_link) 2>&5
11952   ac_status=$?
11953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11954   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11955     (./conftest; exit; ) >&5 2>/dev/null
11956     lt_status=$?
11957     case x$lt_status in
11958       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11959       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11960       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11961     esac
11962   else :
11963     # compilation failed
11964     lt_cv_dlopen_self=no
11965   fi
11966 fi
11967 rm -fr conftest*
11968
11969
11970 fi
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11972 $as_echo "$lt_cv_dlopen_self" >&6; }
11973
11974     if test "x$lt_cv_dlopen_self" = xyes; then
11975       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11976       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11977 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11978 if ${lt_cv_dlopen_self_static+:} false; then :
11979   $as_echo_n "(cached) " >&6
11980 else
11981           if test "$cross_compiling" = yes; then :
11982   lt_cv_dlopen_self_static=cross
11983 else
11984   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11985   lt_status=$lt_dlunknown
11986   cat > conftest.$ac_ext <<_LT_EOF
11987 #line $LINENO "configure"
11988 #include "confdefs.h"
11989
11990 #if HAVE_DLFCN_H
11991 #include <dlfcn.h>
11992 #endif
11993
11994 #include <stdio.h>
11995
11996 #ifdef RTLD_GLOBAL
11997 #  define LT_DLGLOBAL           RTLD_GLOBAL
11998 #else
11999 #  ifdef DL_GLOBAL
12000 #    define LT_DLGLOBAL         DL_GLOBAL
12001 #  else
12002 #    define LT_DLGLOBAL         0
12003 #  endif
12004 #endif
12005
12006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12007    find out it does not work in some platform. */
12008 #ifndef LT_DLLAZY_OR_NOW
12009 #  ifdef RTLD_LAZY
12010 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12011 #  else
12012 #    ifdef DL_LAZY
12013 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12014 #    else
12015 #      ifdef RTLD_NOW
12016 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12017 #      else
12018 #        ifdef DL_NOW
12019 #          define LT_DLLAZY_OR_NOW      DL_NOW
12020 #        else
12021 #          define LT_DLLAZY_OR_NOW      0
12022 #        endif
12023 #      endif
12024 #    endif
12025 #  endif
12026 #endif
12027
12028 /* When -fvisbility=hidden is used, assume the code has been annotated
12029    correspondingly for the symbols needed.  */
12030 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12031 int fnord () __attribute__((visibility("default")));
12032 #endif
12033
12034 int fnord () { return 42; }
12035 int main ()
12036 {
12037   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12038   int status = $lt_dlunknown;
12039
12040   if (self)
12041     {
12042       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12043       else
12044         {
12045           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12046           else puts (dlerror ());
12047         }
12048       /* dlclose (self); */
12049     }
12050   else
12051     puts (dlerror ());
12052
12053   return status;
12054 }
12055 _LT_EOF
12056   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12057   (eval $ac_link) 2>&5
12058   ac_status=$?
12059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12061     (./conftest; exit; ) >&5 2>/dev/null
12062     lt_status=$?
12063     case x$lt_status in
12064       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12065       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12066       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12067     esac
12068   else :
12069     # compilation failed
12070     lt_cv_dlopen_self_static=no
12071   fi
12072 fi
12073 rm -fr conftest*
12074
12075
12076 fi
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12078 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12079     fi
12080
12081     CPPFLAGS="$save_CPPFLAGS"
12082     LDFLAGS="$save_LDFLAGS"
12083     LIBS="$save_LIBS"
12084     ;;
12085   esac
12086
12087   case $lt_cv_dlopen_self in
12088   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12089   *) enable_dlopen_self=unknown ;;
12090   esac
12091
12092   case $lt_cv_dlopen_self_static in
12093   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12094   *) enable_dlopen_self_static=unknown ;;
12095   esac
12096 fi
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114 striplib=
12115 old_striplib=
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12117 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12118 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12119   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12120   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12122 $as_echo "yes" >&6; }
12123 else
12124 # FIXME - insert some real tests, host_os isn't really good enough
12125   case $host_os in
12126   darwin*)
12127     if test -n "$STRIP" ; then
12128       striplib="$STRIP -x"
12129       old_striplib="$STRIP -S"
12130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12131 $as_echo "yes" >&6; }
12132     else
12133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12135     fi
12136     ;;
12137   *)
12138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12140     ;;
12141   esac
12142 fi
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155   # Report which library types will actually be built
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12157 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12159 $as_echo "$can_build_shared" >&6; }
12160
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12162 $as_echo_n "checking whether to build shared libraries... " >&6; }
12163   test "$can_build_shared" = "no" && enable_shared=no
12164
12165   # On AIX, shared libraries and static libraries use the same namespace, and
12166   # are all built from PIC.
12167   case $host_os in
12168   aix3*)
12169     test "$enable_shared" = yes && enable_static=no
12170     if test -n "$RANLIB"; then
12171       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12172       postinstall_cmds='$RANLIB $lib'
12173     fi
12174     ;;
12175
12176   aix[4-9]*)
12177     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12178       test "$enable_shared" = yes && enable_static=no
12179     fi
12180     ;;
12181   esac
12182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12183 $as_echo "$enable_shared" >&6; }
12184
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12186 $as_echo_n "checking whether to build static libraries... " >&6; }
12187   # Make sure either enable_shared or enable_static is yes.
12188   test "$enable_shared" = yes || enable_static=yes
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12190 $as_echo "$enable_static" >&6; }
12191
12192
12193
12194
12195 fi
12196 ac_ext=c
12197 ac_cpp='$CPP $CPPFLAGS'
12198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12201
12202 CC="$lt_save_CC"
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218         ac_config_commands="$ac_config_commands libtool"
12219
12220
12221
12222
12223 # Only expand once:
12224
12225
12226 for ac_prog in 'flex'
12227 do
12228   # Extract the first word of "$ac_prog", so it can be a program name with args.
12229 set dummy $ac_prog; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if ${ac_cv_prog_FLEX+:} false; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   if test -n "$FLEX"; then
12236   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
12237 else
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241   IFS=$as_save_IFS
12242   test -z "$as_dir" && as_dir=.
12243     for ac_exec_ext in '' $ac_executable_extensions; do
12244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245     ac_cv_prog_FLEX="$ac_prog"
12246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247     break 2
12248   fi
12249 done
12250   done
12251 IFS=$as_save_IFS
12252
12253 fi
12254 fi
12255 FLEX=$ac_cv_prog_FLEX
12256 if test -n "$FLEX"; then
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
12258 $as_echo "$FLEX" >&6; }
12259 else
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263
12264
12265   test -n "$FLEX" && break
12266 done
12267
12268 for ac_prog in 'bison -y'
12269 do
12270   # Extract the first word of "$ac_prog", so it can be a program name with args.
12271 set dummy $ac_prog; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_YACC+:} false; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277   if test -n "$YACC"; then
12278   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12279 else
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12282 do
12283   IFS=$as_save_IFS
12284   test -z "$as_dir" && as_dir=.
12285     for ac_exec_ext in '' $ac_executable_extensions; do
12286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287     ac_cv_prog_YACC="$ac_prog"
12288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289     break 2
12290   fi
12291 done
12292   done
12293 IFS=$as_save_IFS
12294
12295 fi
12296 fi
12297 YACC=$ac_cv_prog_YACC
12298 if test -n "$YACC"; then
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12300 $as_echo "$YACC" >&6; }
12301 else
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304 fi
12305
12306
12307   test -n "$YACC" && break
12308 done
12309
12310
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12312 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12313 if ${ac_cv_c_const+:} false; then :
12314   $as_echo_n "(cached) " >&6
12315 else
12316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h.  */
12318
12319 int
12320 main ()
12321 {
12322 /* FIXME: Include the comments suggested by Paul. */
12323 #ifndef __cplusplus
12324   /* Ultrix mips cc rejects this.  */
12325   typedef int charset[2];
12326   const charset cs;
12327   /* SunOS 4.1.1 cc rejects this.  */
12328   char const *const *pcpcc;
12329   char **ppc;
12330   /* NEC SVR4.0.2 mips cc rejects this.  */
12331   struct point {int x, y;};
12332   static struct point const zero = {0,0};
12333   /* AIX XL C 1.02.0.0 rejects this.
12334      It does not let you subtract one const X* pointer from another in
12335      an arm of an if-expression whose if-part is not a constant
12336      expression */
12337   const char *g = "string";
12338   pcpcc = &g + (g ? g-g : 0);
12339   /* HPUX 7.0 cc rejects these. */
12340   ++pcpcc;
12341   ppc = (char**) pcpcc;
12342   pcpcc = (char const *const *) ppc;
12343   { /* SCO 3.2v4 cc rejects this.  */
12344     char *t;
12345     char const *s = 0 ? (char *) 0 : (char const *) 0;
12346
12347     *t++ = 0;
12348     if (s) return 0;
12349   }
12350   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12351     int x[] = {25, 17};
12352     const int *foo = &x[0];
12353     ++foo;
12354   }
12355   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12356     typedef const int *iptr;
12357     iptr p = 0;
12358     ++p;
12359   }
12360   { /* AIX XL C 1.02.0.0 rejects this saying
12361        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12362     struct s { int j; const int *ap[3]; };
12363     struct s *b; b->j = 5;
12364   }
12365   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12366     const int foo = 10;
12367     if (!foo) return 0;
12368   }
12369   return !cs[0] && !zero.x;
12370 #endif
12371
12372   ;
12373   return 0;
12374 }
12375 _ACEOF
12376 if ac_fn_c_try_compile "$LINENO"; then :
12377   ac_cv_c_const=yes
12378 else
12379   ac_cv_c_const=no
12380 fi
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12384 $as_echo "$ac_cv_c_const" >&6; }
12385 if test $ac_cv_c_const = no; then
12386
12387 $as_echo "#define const /**/" >>confdefs.h
12388
12389 fi
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12392 $as_echo_n "checking for inline... " >&6; }
12393 if ${ac_cv_c_inline+:} false; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   ac_cv_c_inline=no
12397 for ac_kw in inline __inline__ __inline; do
12398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h.  */
12400 #ifndef __cplusplus
12401 typedef int foo_t;
12402 static $ac_kw foo_t static_foo () {return 0; }
12403 $ac_kw foo_t foo () {return 0; }
12404 #endif
12405
12406 _ACEOF
12407 if ac_fn_c_try_compile "$LINENO"; then :
12408   ac_cv_c_inline=$ac_kw
12409 fi
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411   test "$ac_cv_c_inline" != no && break
12412 done
12413
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12416 $as_echo "$ac_cv_c_inline" >&6; }
12417
12418 case $ac_cv_c_inline in
12419   inline | yes) ;;
12420   *)
12421     case $ac_cv_c_inline in
12422       no) ac_val=;;
12423       *) ac_val=$ac_cv_c_inline;;
12424     esac
12425     cat >>confdefs.h <<_ACEOF
12426 #ifndef __cplusplus
12427 #define inline $ac_val
12428 #endif
12429 _ACEOF
12430     ;;
12431 esac
12432
12433
12434
12435
12436
12437
12438
12439
12440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12441         if test -n "$ac_tool_prefix"; then
12442   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 $as_echo_n "checking for $ac_word... " >&6; }
12446 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12447   $as_echo_n "(cached) " >&6
12448 else
12449   case $PKG_CONFIG in
12450   [\\/]* | ?:[\\/]*)
12451   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12452   ;;
12453   *)
12454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12456 do
12457   IFS=$as_save_IFS
12458   test -z "$as_dir" && as_dir=.
12459     for ac_exec_ext in '' $ac_executable_extensions; do
12460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12461     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463     break 2
12464   fi
12465 done
12466   done
12467 IFS=$as_save_IFS
12468
12469   ;;
12470 esac
12471 fi
12472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12473 if test -n "$PKG_CONFIG"; then
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12475 $as_echo "$PKG_CONFIG" >&6; }
12476 else
12477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12479 fi
12480
12481
12482 fi
12483 if test -z "$ac_cv_path_PKG_CONFIG"; then
12484   ac_pt_PKG_CONFIG=$PKG_CONFIG
12485   # Extract the first word of "pkg-config", so it can be a program name with args.
12486 set dummy pkg-config; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12490   $as_echo_n "(cached) " >&6
12491 else
12492   case $ac_pt_PKG_CONFIG in
12493   [\\/]* | ?:[\\/]*)
12494   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12495   ;;
12496   *)
12497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12499 do
12500   IFS=$as_save_IFS
12501   test -z "$as_dir" && as_dir=.
12502     for ac_exec_ext in '' $ac_executable_extensions; do
12503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12504     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12506     break 2
12507   fi
12508 done
12509   done
12510 IFS=$as_save_IFS
12511
12512   ;;
12513 esac
12514 fi
12515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12516 if test -n "$ac_pt_PKG_CONFIG"; then
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12518 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12519 else
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12522 fi
12523
12524   if test "x$ac_pt_PKG_CONFIG" = x; then
12525     PKG_CONFIG=""
12526   else
12527     case $cross_compiling:$ac_tool_warned in
12528 yes:)
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12531 ac_tool_warned=yes ;;
12532 esac
12533     PKG_CONFIG=$ac_pt_PKG_CONFIG
12534   fi
12535 else
12536   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12537 fi
12538
12539 fi
12540 if test -n "$PKG_CONFIG"; then
12541         _pkg_min_version=0.9.0
12542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12543 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12544         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12545                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12546 $as_echo "yes" >&6; }
12547         else
12548                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12550                 PKG_CONFIG=""
12551         fi
12552 fi
12553
12554 pkg_failed=no
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
12556 $as_echo_n "checking for CHECK... " >&6; }
12557
12558 if test -n "$CHECK_CFLAGS"; then
12559     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
12560  elif test -n "$PKG_CONFIG"; then
12561     if test -n "$PKG_CONFIG" && \
12562     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
12563   ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
12564   ac_status=$?
12565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12566   test $ac_status = 0; }; then
12567   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.0" 2>/dev/null`
12568 else
12569   pkg_failed=yes
12570 fi
12571  else
12572     pkg_failed=untried
12573 fi
12574 if test -n "$CHECK_LIBS"; then
12575     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
12576  elif test -n "$PKG_CONFIG"; then
12577     if test -n "$PKG_CONFIG" && \
12578     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
12579   ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
12580   ac_status=$?
12581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582   test $ac_status = 0; }; then
12583   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.0" 2>/dev/null`
12584 else
12585   pkg_failed=yes
12586 fi
12587  else
12588     pkg_failed=untried
12589 fi
12590
12591
12592
12593 if test $pkg_failed = yes; then
12594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596
12597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12598         _pkg_short_errors_supported=yes
12599 else
12600         _pkg_short_errors_supported=no
12601 fi
12602         if test $_pkg_short_errors_supported = yes; then
12603                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.0" 2>&1`
12604         else
12605                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.0" 2>&1`
12606         fi
12607         # Put the nasty error message in config.log where it belongs
12608         echo "$CHECK_PKG_ERRORS" >&5
12609
12610         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
12611 $as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
12612          enable_unit_tests="no"
12613 elif test $pkg_failed = untried; then
12614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12616         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
12617 $as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
12618          enable_unit_tests="no"
12619 else
12620         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
12621         CHECK_LIBS=$pkg_cv_CHECK_LIBS
12622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12623 $as_echo "yes" >&6; }
12624         enable_unit_tests="yes"
12625 fi
12626
12627  if test "$enable_unit_tests" = "yes"; then
12628   ENABLE_UNIT_TESTS_TRUE=
12629   ENABLE_UNIT_TESTS_FALSE='#'
12630 else
12631   ENABLE_UNIT_TESTS_TRUE='#'
12632   ENABLE_UNIT_TESTS_FALSE=
12633 fi
12634
12635
12636
12637 # Check whether --with-pkgconfigdir was given.
12638 if test "${with_pkgconfigdir+set}" = set; then :
12639   withval=$with_pkgconfigdir; pkgconfigdir="$withval"
12640 else
12641   pkgconfigdir='${libdir}/pkgconfig'
12642 fi
12643
12644
12645
12646 # Check whether --enable-cli was given.
12647 if test "${enable_cli+set}" = set; then :
12648   enableval=$enable_cli; enable_cli="$enableval"
12649 else
12650   enable_cli="yes"
12651 fi
12652
12653  if test "$enable_cli" = "yes"; then
12654   ENABLE_CLI_TRUE=
12655   ENABLE_CLI_FALSE='#'
12656 else
12657   ENABLE_CLI_TRUE='#'
12658   ENABLE_CLI_FALSE=
12659 fi
12660
12661
12662 # Check whether --enable-pthreads was given.
12663 if test "${enable_pthreads+set}" = set; then :
12664   enableval=$enable_pthreads; enable_pthreads="$enableval"
12665 else
12666   enable_pthreads="yes"
12667 fi
12668
12669  if test "$enable_pthreads" = "no"; then
12670   DISABLE_PTHREADS_TRUE=
12671   DISABLE_PTHREADS_FALSE='#'
12672 else
12673   DISABLE_PTHREADS_TRUE='#'
12674   DISABLE_PTHREADS_FALSE=
12675 fi
12676
12677
12678 # Check whether --enable-debug was given.
12679 if test "${enable_debug+set}" = set; then :
12680   enableval=$enable_debug; enable_debug="$enableval"
12681 else
12682   enable_debug="yes"
12683 fi
12684
12685  if test "$enable_debug" = "no" ; then
12686   ENABLE_DEBUG_TRUE=
12687   ENABLE_DEBUG_FALSE='#'
12688 else
12689   ENABLE_DEBUG_TRUE='#'
12690   ENABLE_DEBUG_FALSE=
12691 fi
12692
12693
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12695 $as_echo_n "checking for pow in -lm... " >&6; }
12696 if ${ac_cv_lib_m_pow+:} false; then :
12697   $as_echo_n "(cached) " >&6
12698 else
12699   ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lm  $LIBS"
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h.  */
12703
12704 /* Override any GCC internal prototype to avoid an error.
12705    Use char because int might match the return type of a GCC
12706    builtin and then its argument prototype would still apply.  */
12707 #ifdef __cplusplus
12708 extern "C"
12709 #endif
12710 char pow ();
12711 int
12712 main ()
12713 {
12714 return pow ();
12715   ;
12716   return 0;
12717 }
12718 _ACEOF
12719 if ac_fn_c_try_link "$LINENO"; then :
12720   ac_cv_lib_m_pow=yes
12721 else
12722   ac_cv_lib_m_pow=no
12723 fi
12724 rm -f core conftest.err conftest.$ac_objext \
12725     conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12727 fi
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12729 $as_echo "$ac_cv_lib_m_pow" >&6; }
12730 if test "x$ac_cv_lib_m_pow" = xyes; then :
12731   cat >>confdefs.h <<_ACEOF
12732 #define HAVE_LIBM 1
12733 _ACEOF
12734
12735   LIBS="-lm $LIBS"
12736
12737 else
12738   as_fn_error $? "libm is required" "$LINENO" 5
12739 fi
12740
12741
12742 if test "x$enable_pthreads" = "xno"; then
12743
12744 $as_echo "#define DISABLE_PTHREADS 1" >>confdefs.h
12745
12746 else
12747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
12748 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12749 if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
12750   $as_echo_n "(cached) " >&6
12751 else
12752   ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lpthread  $LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h.  */
12756
12757 /* Override any GCC internal prototype to avoid an error.
12758    Use char because int might match the return type of a GCC
12759    builtin and then its argument prototype would still apply.  */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char pthread_mutex_lock ();
12764 int
12765 main ()
12766 {
12767 return pthread_mutex_lock ();
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"; then :
12773   ac_cv_lib_pthread_pthread_mutex_lock=yes
12774 else
12775   ac_cv_lib_pthread_pthread_mutex_lock=no
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext \
12778     conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12782 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12783 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
12784   cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBPTHREAD 1
12786 _ACEOF
12787
12788   LIBS="-lpthread $LIBS"
12789
12790 else
12791   as_fn_error $? "libpthread is required" "$LINENO" 5
12792 fi
12793
12794 fi
12795
12796 if test "x$enable_debug" = "xyes"; then
12797
12798 $as_echo "#define NL_DEBUG 1" >>confdefs.h
12799
12800 fi
12801
12802
12803
12804 subdirs="$subdirs doc"
12805
12806
12807 ac_config_files="$ac_config_files Makefile libnl-3.0.pc libnl-route-3.0.pc libnl-genl-3.0.pc libnl-nf-3.0.pc libnl-cli-3.0.pc lib/Makefile include/Makefile src/Makefile src/lib/Makefile tests/Makefile man/Makefile python/Makefile python/setup.py python/netlink/Makefile python/netlink/route/Makefile include/netlink/version.h"
12808
12809
12810 ac_errcount=0
12811 if test -z "$YACC"; then
12812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not found. Please install before continuing." >&5
12813 $as_echo "$as_me: WARNING: bison not found. Please install before continuing." >&2;}
12814     ac_errcount=$((ac_errcount + 1))
12815 fi
12816 if test -z "$FLEX"; then
12817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: flex not found. Please install before continuing." >&5
12818 $as_echo "$as_me: WARNING: flex not found. Please install before continuing." >&2;}
12819     ac_errcount=$((ac_errcount + 1))
12820 fi
12821 if test $ac_errcount -gt 0; then
12822     as_fn_error $? "Required packages are missing. Please install them and rerun ./configure" "$LINENO" 5
12823 fi
12824
12825 cat >confcache <<\_ACEOF
12826 # This file is a shell script that caches the results of configure
12827 # tests run on this system so they can be shared between configure
12828 # scripts and configure runs, see configure's option --config-cache.
12829 # It is not useful on other systems.  If it contains results you don't
12830 # want to keep, you may remove or edit it.
12831 #
12832 # config.status only pays attention to the cache file if you give it
12833 # the --recheck option to rerun configure.
12834 #
12835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12837 # following values.
12838
12839 _ACEOF
12840
12841 # The following way of writing the cache mishandles newlines in values,
12842 # but we know of no workaround that is simple, portable, and efficient.
12843 # So, we kill variables containing newlines.
12844 # Ultrix sh set writes to stderr and can't be redirected directly,
12845 # and sets the high bit in the cache file unless we assign to the vars.
12846 (
12847   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12848     eval ac_val=\$$ac_var
12849     case $ac_val in #(
12850     *${as_nl}*)
12851       case $ac_var in #(
12852       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12854       esac
12855       case $ac_var in #(
12856       _ | IFS | as_nl) ;; #(
12857       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12858       *) { eval $ac_var=; unset $ac_var;} ;;
12859       esac ;;
12860     esac
12861   done
12862
12863   (set) 2>&1 |
12864     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12865     *${as_nl}ac_space=\ *)
12866       # `set' does not quote correctly, so add quotes: double-quote
12867       # substitution turns \\\\ into \\, and sed turns \\ into \.
12868       sed -n \
12869         "s/'/'\\\\''/g;
12870           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12871       ;; #(
12872     *)
12873       # `set' quotes correctly as required by POSIX, so do not add quotes.
12874       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12875       ;;
12876     esac |
12877     sort
12878 ) |
12879   sed '
12880      /^ac_cv_env_/b end
12881      t clear
12882      :clear
12883      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12884      t end
12885      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12886      :end' >>confcache
12887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12888   if test -w "$cache_file"; then
12889     if test "x$cache_file" != "x/dev/null"; then
12890       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12891 $as_echo "$as_me: updating cache $cache_file" >&6;}
12892       if test ! -f "$cache_file" || test -h "$cache_file"; then
12893         cat confcache >"$cache_file"
12894       else
12895         case $cache_file in #(
12896         */* | ?:*)
12897           mv -f confcache "$cache_file"$$ &&
12898           mv -f "$cache_file"$$ "$cache_file" ;; #(
12899         *)
12900           mv -f confcache "$cache_file" ;;
12901         esac
12902       fi
12903     fi
12904   else
12905     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12907   fi
12908 fi
12909 rm -f confcache
12910
12911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12912 # Let make expand exec_prefix.
12913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12914
12915 DEFS=-DHAVE_CONFIG_H
12916
12917 ac_libobjs=
12918 ac_ltlibobjs=
12919 U=
12920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12921   # 1. Remove the extension, and $U if already installed.
12922   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12923   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12924   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12925   #    will be set to the directory where LIBOBJS objects are built.
12926   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12927   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12928 done
12929 LIBOBJS=$ac_libobjs
12930
12931 LTLIBOBJS=$ac_ltlibobjs
12932
12933
12934  if test -n "$EXEEXT"; then
12935   am__EXEEXT_TRUE=
12936   am__EXEEXT_FALSE='#'
12937 else
12938   am__EXEEXT_TRUE='#'
12939   am__EXEEXT_FALSE=
12940 fi
12941
12942 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12943   as_fn_error $? "conditional \"AMDEP\" was never defined.
12944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12945 fi
12946 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12947   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12949 fi
12950 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12951   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12953 fi
12954 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
12955   as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
12956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12957 fi
12958 if test -z "${ENABLE_CLI_TRUE}" && test -z "${ENABLE_CLI_FALSE}"; then
12959   as_fn_error $? "conditional \"ENABLE_CLI\" was never defined.
12960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12961 fi
12962 if test -z "${DISABLE_PTHREADS_TRUE}" && test -z "${DISABLE_PTHREADS_FALSE}"; then
12963   as_fn_error $? "conditional \"DISABLE_PTHREADS\" was never defined.
12964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12965 fi
12966 if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
12967   as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined.
12968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12969 fi
12970
12971 : "${CONFIG_STATUS=./config.status}"
12972 ac_write_fail=0
12973 ac_clean_files_save=$ac_clean_files
12974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12977 as_write_fail=0
12978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12979 #! $SHELL
12980 # Generated by $as_me.
12981 # Run this file to recreate the current configuration.
12982 # Compiler output produced by configure, useful for debugging
12983 # configure, is in config.log if it exists.
12984
12985 debug=false
12986 ac_cs_recheck=false
12987 ac_cs_silent=false
12988
12989 SHELL=\${CONFIG_SHELL-$SHELL}
12990 export SHELL
12991 _ASEOF
12992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12993 ## -------------------- ##
12994 ## M4sh Initialization. ##
12995 ## -------------------- ##
12996
12997 # Be more Bourne compatible
12998 DUALCASE=1; export DUALCASE # for MKS sh
12999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13000   emulate sh
13001   NULLCMD=:
13002   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13003   # is contrary to our usage.  Disable this feature.
13004   alias -g '${1+"$@"}'='"$@"'
13005   setopt NO_GLOB_SUBST
13006 else
13007   case `(set -o) 2>/dev/null` in #(
13008   *posix*) :
13009     set -o posix ;; #(
13010   *) :
13011      ;;
13012 esac
13013 fi
13014
13015
13016 as_nl='
13017 '
13018 export as_nl
13019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13023 # Prefer a ksh shell builtin over an external printf program on Solaris,
13024 # but without wasting forks for bash or zsh.
13025 if test -z "$BASH_VERSION$ZSH_VERSION" \
13026     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13027   as_echo='print -r --'
13028   as_echo_n='print -rn --'
13029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13030   as_echo='printf %s\n'
13031   as_echo_n='printf %s'
13032 else
13033   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13034     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13035     as_echo_n='/usr/ucb/echo -n'
13036   else
13037     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13038     as_echo_n_body='eval
13039       arg=$1;
13040       case $arg in #(
13041       *"$as_nl"*)
13042         expr "X$arg" : "X\\(.*\\)$as_nl";
13043         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13044       esac;
13045       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13046     '
13047     export as_echo_n_body
13048     as_echo_n='sh -c $as_echo_n_body as_echo'
13049   fi
13050   export as_echo_body
13051   as_echo='sh -c $as_echo_body as_echo'
13052 fi
13053
13054 # The user is always right.
13055 if test "${PATH_SEPARATOR+set}" != set; then
13056   PATH_SEPARATOR=:
13057   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13058     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13059       PATH_SEPARATOR=';'
13060   }
13061 fi
13062
13063
13064 # IFS
13065 # We need space, tab and new line, in precisely that order.  Quoting is
13066 # there to prevent editors from complaining about space-tab.
13067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13068 # splitting by setting IFS to empty value.)
13069 IFS=" ""        $as_nl"
13070
13071 # Find who we are.  Look in the path if we contain no directory separator.
13072 as_myself=
13073 case $0 in #((
13074   *[\\/]* ) as_myself=$0 ;;
13075   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13077 do
13078   IFS=$as_save_IFS
13079   test -z "$as_dir" && as_dir=.
13080     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13081   done
13082 IFS=$as_save_IFS
13083
13084      ;;
13085 esac
13086 # We did not find ourselves, most probably we were run as `sh COMMAND'
13087 # in which case we are not to be found in the path.
13088 if test "x$as_myself" = x; then
13089   as_myself=$0
13090 fi
13091 if test ! -f "$as_myself"; then
13092   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13093   exit 1
13094 fi
13095
13096 # Unset variables that we do not need and which cause bugs (e.g. in
13097 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13098 # suppresses any "Segmentation fault" message there.  '((' could
13099 # trigger a bug in pdksh 5.2.14.
13100 for as_var in BASH_ENV ENV MAIL MAILPATH
13101 do eval test x\${$as_var+set} = xset \
13102   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13103 done
13104 PS1='$ '
13105 PS2='> '
13106 PS4='+ '
13107
13108 # NLS nuisances.
13109 LC_ALL=C
13110 export LC_ALL
13111 LANGUAGE=C
13112 export LANGUAGE
13113
13114 # CDPATH.
13115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13116
13117
13118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13119 # ----------------------------------------
13120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13122 # script with STATUS, using 1 if that was 0.
13123 as_fn_error ()
13124 {
13125   as_status=$1; test $as_status -eq 0 && as_status=1
13126   if test "$4"; then
13127     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13128     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13129   fi
13130   $as_echo "$as_me: error: $2" >&2
13131   as_fn_exit $as_status
13132 } # as_fn_error
13133
13134
13135 # as_fn_set_status STATUS
13136 # -----------------------
13137 # Set $? to STATUS, without forking.
13138 as_fn_set_status ()
13139 {
13140   return $1
13141 } # as_fn_set_status
13142
13143 # as_fn_exit STATUS
13144 # -----------------
13145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13146 as_fn_exit ()
13147 {
13148   set +e
13149   as_fn_set_status $1
13150   exit $1
13151 } # as_fn_exit
13152
13153 # as_fn_unset VAR
13154 # ---------------
13155 # Portably unset VAR.
13156 as_fn_unset ()
13157 {
13158   { eval $1=; unset $1;}
13159 }
13160 as_unset=as_fn_unset
13161 # as_fn_append VAR VALUE
13162 # ----------------------
13163 # Append the text in VALUE to the end of the definition contained in VAR. Take
13164 # advantage of any shell optimizations that allow amortized linear growth over
13165 # repeated appends, instead of the typical quadratic growth present in naive
13166 # implementations.
13167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13168   eval 'as_fn_append ()
13169   {
13170     eval $1+=\$2
13171   }'
13172 else
13173   as_fn_append ()
13174   {
13175     eval $1=\$$1\$2
13176   }
13177 fi # as_fn_append
13178
13179 # as_fn_arith ARG...
13180 # ------------------
13181 # Perform arithmetic evaluation on the ARGs, and store the result in the
13182 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13183 # must be portable across $(()) and expr.
13184 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13185   eval 'as_fn_arith ()
13186   {
13187     as_val=$(( $* ))
13188   }'
13189 else
13190   as_fn_arith ()
13191   {
13192     as_val=`expr "$@" || test $? -eq 1`
13193   }
13194 fi # as_fn_arith
13195
13196
13197 if expr a : '\(a\)' >/dev/null 2>&1 &&
13198    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13199   as_expr=expr
13200 else
13201   as_expr=false
13202 fi
13203
13204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13205   as_basename=basename
13206 else
13207   as_basename=false
13208 fi
13209
13210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13211   as_dirname=dirname
13212 else
13213   as_dirname=false
13214 fi
13215
13216 as_me=`$as_basename -- "$0" ||
13217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13218          X"$0" : 'X\(//\)$' \| \
13219          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13220 $as_echo X/"$0" |
13221     sed '/^.*\/\([^/][^/]*\)\/*$/{
13222             s//\1/
13223             q
13224           }
13225           /^X\/\(\/\/\)$/{
13226             s//\1/
13227             q
13228           }
13229           /^X\/\(\/\).*/{
13230             s//\1/
13231             q
13232           }
13233           s/.*/./; q'`
13234
13235 # Avoid depending upon Character Ranges.
13236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13239 as_cr_digits='0123456789'
13240 as_cr_alnum=$as_cr_Letters$as_cr_digits
13241
13242 ECHO_C= ECHO_N= ECHO_T=
13243 case `echo -n x` in #(((((
13244 -n*)
13245   case `echo 'xy\c'` in
13246   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13247   xy)  ECHO_C='\c';;
13248   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13249        ECHO_T=' ';;
13250   esac;;
13251 *)
13252   ECHO_N='-n';;
13253 esac
13254
13255 rm -f conf$$ conf$$.exe conf$$.file
13256 if test -d conf$$.dir; then
13257   rm -f conf$$.dir/conf$$.file
13258 else
13259   rm -f conf$$.dir
13260   mkdir conf$$.dir 2>/dev/null
13261 fi
13262 if (echo >conf$$.file) 2>/dev/null; then
13263   if ln -s conf$$.file conf$$ 2>/dev/null; then
13264     as_ln_s='ln -s'
13265     # ... but there are two gotchas:
13266     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13267     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13268     # In both cases, we have to default to `cp -p'.
13269     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13270       as_ln_s='cp -p'
13271   elif ln conf$$.file conf$$ 2>/dev/null; then
13272     as_ln_s=ln
13273   else
13274     as_ln_s='cp -p'
13275   fi
13276 else
13277   as_ln_s='cp -p'
13278 fi
13279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13280 rmdir conf$$.dir 2>/dev/null
13281
13282
13283 # as_fn_mkdir_p
13284 # -------------
13285 # Create "$as_dir" as a directory, including parents if necessary.
13286 as_fn_mkdir_p ()
13287 {
13288
13289   case $as_dir in #(
13290   -*) as_dir=./$as_dir;;
13291   esac
13292   test -d "$as_dir" || eval $as_mkdir_p || {
13293     as_dirs=
13294     while :; do
13295       case $as_dir in #(
13296       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13297       *) as_qdir=$as_dir;;
13298       esac
13299       as_dirs="'$as_qdir' $as_dirs"
13300       as_dir=`$as_dirname -- "$as_dir" ||
13301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13302          X"$as_dir" : 'X\(//\)[^/]' \| \
13303          X"$as_dir" : 'X\(//\)$' \| \
13304          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13305 $as_echo X"$as_dir" |
13306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13307             s//\1/
13308             q
13309           }
13310           /^X\(\/\/\)[^/].*/{
13311             s//\1/
13312             q
13313           }
13314           /^X\(\/\/\)$/{
13315             s//\1/
13316             q
13317           }
13318           /^X\(\/\).*/{
13319             s//\1/
13320             q
13321           }
13322           s/.*/./; q'`
13323       test -d "$as_dir" && break
13324     done
13325     test -z "$as_dirs" || eval "mkdir $as_dirs"
13326   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13327
13328
13329 } # as_fn_mkdir_p
13330 if mkdir -p . 2>/dev/null; then
13331   as_mkdir_p='mkdir -p "$as_dir"'
13332 else
13333   test -d ./-p && rmdir ./-p
13334   as_mkdir_p=false
13335 fi
13336
13337 if test -x / >/dev/null 2>&1; then
13338   as_test_x='test -x'
13339 else
13340   if ls -dL / >/dev/null 2>&1; then
13341     as_ls_L_option=L
13342   else
13343     as_ls_L_option=
13344   fi
13345   as_test_x='
13346     eval sh -c '\''
13347       if test -d "$1"; then
13348         test -d "$1/.";
13349       else
13350         case $1 in #(
13351         -*)set "./$1";;
13352         esac;
13353         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13354         ???[sx]*):;;*)false;;esac;fi
13355     '\'' sh
13356   '
13357 fi
13358 as_executable_p=$as_test_x
13359
13360 # Sed expression to map a string onto a valid CPP name.
13361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13362
13363 # Sed expression to map a string onto a valid variable name.
13364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13365
13366
13367 exec 6>&1
13368 ## ----------------------------------- ##
13369 ## Main body of $CONFIG_STATUS script. ##
13370 ## ----------------------------------- ##
13371 _ASEOF
13372 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13373
13374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13375 # Save the log message, to keep $0 and so on meaningful, and to
13376 # report actual input values of CONFIG_FILES etc. instead of their
13377 # values after options handling.
13378 ac_log="
13379 This file was extended by libnl $as_me 3.2.22, which was
13380 generated by GNU Autoconf 2.68.  Invocation command line was
13381
13382   CONFIG_FILES    = $CONFIG_FILES
13383   CONFIG_HEADERS  = $CONFIG_HEADERS
13384   CONFIG_LINKS    = $CONFIG_LINKS
13385   CONFIG_COMMANDS = $CONFIG_COMMANDS
13386   $ $0 $@
13387
13388 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13389 "
13390
13391 _ACEOF
13392
13393 case $ac_config_files in *"
13394 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13395 esac
13396
13397 case $ac_config_headers in *"
13398 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13399 esac
13400
13401
13402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13403 # Files that config.status was made for.
13404 config_files="$ac_config_files"
13405 config_headers="$ac_config_headers"
13406 config_commands="$ac_config_commands"
13407
13408 _ACEOF
13409
13410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13411 ac_cs_usage="\
13412 \`$as_me' instantiates files and other configuration actions
13413 from templates according to the current configuration.  Unless the files
13414 and actions are specified as TAGs, all are instantiated by default.
13415
13416 Usage: $0 [OPTION]... [TAG]...
13417
13418   -h, --help       print this help, then exit
13419   -V, --version    print version number and configuration settings, then exit
13420       --config     print configuration, then exit
13421   -q, --quiet, --silent
13422                    do not print progress messages
13423   -d, --debug      don't remove temporary files
13424       --recheck    update $as_me by reconfiguring in the same conditions
13425       --file=FILE[:TEMPLATE]
13426                    instantiate the configuration file FILE
13427       --header=FILE[:TEMPLATE]
13428                    instantiate the configuration header FILE
13429
13430 Configuration files:
13431 $config_files
13432
13433 Configuration headers:
13434 $config_headers
13435
13436 Configuration commands:
13437 $config_commands
13438
13439 Report bugs to the package provider.
13440 libnl home page: <http://www.infradead.org/~tgr/libnl/>."
13441
13442 _ACEOF
13443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13444 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13445 ac_cs_version="\\
13446 libnl config.status 3.2.22
13447 configured by $0, generated by GNU Autoconf 2.68,
13448   with options \\"\$ac_cs_config\\"
13449
13450 Copyright (C) 2010 Free Software Foundation, Inc.
13451 This config.status script is free software; the Free Software Foundation
13452 gives unlimited permission to copy, distribute and modify it."
13453
13454 ac_pwd='$ac_pwd'
13455 srcdir='$srcdir'
13456 INSTALL='$INSTALL'
13457 MKDIR_P='$MKDIR_P'
13458 AWK='$AWK'
13459 test -n "\$AWK" || AWK=awk
13460 _ACEOF
13461
13462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13463 # The default lists apply if the user does not specify any file.
13464 ac_need_defaults=:
13465 while test $# != 0
13466 do
13467   case $1 in
13468   --*=?*)
13469     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13470     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13471     ac_shift=:
13472     ;;
13473   --*=)
13474     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13475     ac_optarg=
13476     ac_shift=:
13477     ;;
13478   *)
13479     ac_option=$1
13480     ac_optarg=$2
13481     ac_shift=shift
13482     ;;
13483   esac
13484
13485   case $ac_option in
13486   # Handling of the options.
13487   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13488     ac_cs_recheck=: ;;
13489   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13490     $as_echo "$ac_cs_version"; exit ;;
13491   --config | --confi | --conf | --con | --co | --c )
13492     $as_echo "$ac_cs_config"; exit ;;
13493   --debug | --debu | --deb | --de | --d | -d )
13494     debug=: ;;
13495   --file | --fil | --fi | --f )
13496     $ac_shift
13497     case $ac_optarg in
13498     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13499     '') as_fn_error $? "missing file argument" ;;
13500     esac
13501     as_fn_append CONFIG_FILES " '$ac_optarg'"
13502     ac_need_defaults=false;;
13503   --header | --heade | --head | --hea )
13504     $ac_shift
13505     case $ac_optarg in
13506     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13507     esac
13508     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13509     ac_need_defaults=false;;
13510   --he | --h)
13511     # Conflict between --help and --header
13512     as_fn_error $? "ambiguous option: \`$1'
13513 Try \`$0 --help' for more information.";;
13514   --help | --hel | -h )
13515     $as_echo "$ac_cs_usage"; exit ;;
13516   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13517   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13518     ac_cs_silent=: ;;
13519
13520   # This is an error.
13521   -*) as_fn_error $? "unrecognized option: \`$1'
13522 Try \`$0 --help' for more information." ;;
13523
13524   *) as_fn_append ac_config_targets " $1"
13525      ac_need_defaults=false ;;
13526
13527   esac
13528   shift
13529 done
13530
13531 ac_configure_extra_args=
13532
13533 if $ac_cs_silent; then
13534   exec 6>/dev/null
13535   ac_configure_extra_args="$ac_configure_extra_args --silent"
13536 fi
13537
13538 _ACEOF
13539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13540 if \$ac_cs_recheck; then
13541   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13542   shift
13543   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13544   CONFIG_SHELL='$SHELL'
13545   export CONFIG_SHELL
13546   exec "\$@"
13547 fi
13548
13549 _ACEOF
13550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13551 exec 5>>config.log
13552 {
13553   echo
13554   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13555 ## Running $as_me. ##
13556 _ASBOX
13557   $as_echo "$ac_log"
13558 } >&5
13559
13560 _ACEOF
13561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13562 #
13563 # INIT-COMMANDS
13564 #
13565 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13566
13567
13568 # The HP-UX ksh and POSIX shell print the target directory to stdout
13569 # if CDPATH is set.
13570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13571
13572 sed_quote_subst='$sed_quote_subst'
13573 double_quote_subst='$double_quote_subst'
13574 delay_variable_subst='$delay_variable_subst'
13575 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13576 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13577 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13578 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13579 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13580 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13581 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13582 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13583 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13584 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13585 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13586 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13587 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13588 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13589 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13590 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13591 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13592 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13593 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13594 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13595 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13596 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13597 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13598 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13599 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13600 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13601 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13602 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13603 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13604 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13605 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13606 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13607 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13608 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13609 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13610 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13611 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13612 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13613 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13614 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13615 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13616 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13617 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13618 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13619 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13620 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13621 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13622 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13623 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13624 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13625 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13626 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13627 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13628 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13629 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13630 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13631 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"`'
13632 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13633 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13634 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13635 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13636 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13637 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13638 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13639 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13640 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13641 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13642 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13643 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13644 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13645 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13646 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13647 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13648 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13649 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13650 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13651 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13652 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13653 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13654 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13655 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13656 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13657 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13658 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13659 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13660 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13661 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13662 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13663 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13664 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13665 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13666 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13667 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13668 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13669 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13670 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13671 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13672 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13673 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13674 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13675 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13676 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13677 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13678 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13679 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13680 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13681 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13682 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13683 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13684 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13685 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13686 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13687 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13688 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13689 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13690 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13691 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13692 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13693 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13694 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13695 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13696 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13697 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13698 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13699 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13700 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13701 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13702 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13703 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13704 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13705
13706 LTCC='$LTCC'
13707 LTCFLAGS='$LTCFLAGS'
13708 compiler='$compiler_DEFAULT'
13709
13710 # A function that is used when there is no print builtin or printf.
13711 func_fallback_echo ()
13712 {
13713   eval 'cat <<_LTECHO_EOF
13714 \$1
13715 _LTECHO_EOF'
13716 }
13717
13718 # Quote evaled strings.
13719 for var in SHELL \
13720 ECHO \
13721 PATH_SEPARATOR \
13722 SED \
13723 GREP \
13724 EGREP \
13725 FGREP \
13726 LD \
13727 NM \
13728 LN_S \
13729 lt_SP2NL \
13730 lt_NL2SP \
13731 reload_flag \
13732 OBJDUMP \
13733 deplibs_check_method \
13734 file_magic_cmd \
13735 file_magic_glob \
13736 want_nocaseglob \
13737 DLLTOOL \
13738 sharedlib_from_linklib_cmd \
13739 AR \
13740 AR_FLAGS \
13741 archiver_list_spec \
13742 STRIP \
13743 RANLIB \
13744 CC \
13745 CFLAGS \
13746 compiler \
13747 lt_cv_sys_global_symbol_pipe \
13748 lt_cv_sys_global_symbol_to_cdecl \
13749 lt_cv_sys_global_symbol_to_c_name_address \
13750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13751 nm_file_list_spec \
13752 lt_prog_compiler_no_builtin_flag \
13753 lt_prog_compiler_pic \
13754 lt_prog_compiler_wl \
13755 lt_prog_compiler_static \
13756 lt_cv_prog_compiler_c_o \
13757 need_locks \
13758 MANIFEST_TOOL \
13759 DSYMUTIL \
13760 NMEDIT \
13761 LIPO \
13762 OTOOL \
13763 OTOOL64 \
13764 shrext_cmds \
13765 export_dynamic_flag_spec \
13766 whole_archive_flag_spec \
13767 compiler_needs_object \
13768 with_gnu_ld \
13769 allow_undefined_flag \
13770 no_undefined_flag \
13771 hardcode_libdir_flag_spec \
13772 hardcode_libdir_separator \
13773 exclude_expsyms \
13774 include_expsyms \
13775 file_list_spec \
13776 variables_saved_for_relink \
13777 libname_spec \
13778 library_names_spec \
13779 soname_spec \
13780 install_override_mode \
13781 finish_eval \
13782 old_striplib \
13783 striplib; do
13784     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13785     *[\\\\\\\`\\"\\\$]*)
13786       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13787       ;;
13788     *)
13789       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13790       ;;
13791     esac
13792 done
13793
13794 # Double-quote double-evaled strings.
13795 for var in reload_cmds \
13796 old_postinstall_cmds \
13797 old_postuninstall_cmds \
13798 old_archive_cmds \
13799 extract_expsyms_cmds \
13800 old_archive_from_new_cmds \
13801 old_archive_from_expsyms_cmds \
13802 archive_cmds \
13803 archive_expsym_cmds \
13804 module_cmds \
13805 module_expsym_cmds \
13806 export_symbols_cmds \
13807 prelink_cmds \
13808 postlink_cmds \
13809 postinstall_cmds \
13810 postuninstall_cmds \
13811 finish_cmds \
13812 sys_lib_search_path_spec \
13813 sys_lib_dlsearch_path_spec; do
13814     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13815     *[\\\\\\\`\\"\\\$]*)
13816       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13817       ;;
13818     *)
13819       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13820       ;;
13821     esac
13822 done
13823
13824 ac_aux_dir='$ac_aux_dir'
13825 xsi_shell='$xsi_shell'
13826 lt_shell_append='$lt_shell_append'
13827
13828 # See if we are running on zsh, and set the options which allow our
13829 # commands through without removal of \ escapes INIT.
13830 if test -n "\${ZSH_VERSION+set}" ; then
13831    setopt NO_GLOB_SUBST
13832 fi
13833
13834
13835     PACKAGE='$PACKAGE'
13836     VERSION='$VERSION'
13837     TIMESTAMP='$TIMESTAMP'
13838     RM='$RM'
13839     ofile='$ofile'
13840
13841
13842
13843
13844 _ACEOF
13845
13846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13847
13848 # Handling of arguments.
13849 for ac_config_target in $ac_config_targets
13850 do
13851   case $ac_config_target in
13852     "lib/defs.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/defs.h" ;;
13853     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13854     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13855     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13856     "libnl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-3.0.pc" ;;
13857     "libnl-route-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-route-3.0.pc" ;;
13858     "libnl-genl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-genl-3.0.pc" ;;
13859     "libnl-nf-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-nf-3.0.pc" ;;
13860     "libnl-cli-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-cli-3.0.pc" ;;
13861     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13862     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13863     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13864     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
13865     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13866     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13867     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
13868     "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
13869     "python/netlink/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/Makefile" ;;
13870     "python/netlink/route/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/route/Makefile" ;;
13871     "include/netlink/version.h") CONFIG_FILES="$CONFIG_FILES include/netlink/version.h" ;;
13872
13873   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13874   esac
13875 done
13876
13877
13878 # If the user did not use the arguments to specify the items to instantiate,
13879 # then the envvar interface is used.  Set only those that are not.
13880 # We use the long form for the default assignment because of an extremely
13881 # bizarre bug on SunOS 4.1.3.
13882 if $ac_need_defaults; then
13883   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13884   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13885   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13886 fi
13887
13888 # Have a temporary directory for convenience.  Make it in the build tree
13889 # simply because there is no reason against having it here, and in addition,
13890 # creating and moving files from /tmp can sometimes cause problems.
13891 # Hook for its removal unless debugging.
13892 # Note that there is a small window in which the directory will not be cleaned:
13893 # after its creation but before its name has been assigned to `$tmp'.
13894 $debug ||
13895 {
13896   tmp= ac_tmp=
13897   trap 'exit_status=$?
13898   : "${ac_tmp:=$tmp}"
13899   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13900 ' 0
13901   trap 'as_fn_exit 1' 1 2 13 15
13902 }
13903 # Create a (secure) tmp directory for tmp files.
13904
13905 {
13906   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13907   test -d "$tmp"
13908 }  ||
13909 {
13910   tmp=./conf$$-$RANDOM
13911   (umask 077 && mkdir "$tmp")
13912 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13913 ac_tmp=$tmp
13914
13915 # Set up the scripts for CONFIG_FILES section.
13916 # No need to generate them if there are no CONFIG_FILES.
13917 # This happens for instance with `./config.status config.h'.
13918 if test -n "$CONFIG_FILES"; then
13919
13920
13921 ac_cr=`echo X | tr X '\015'`
13922 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13923 # But we know of no other shell where ac_cr would be empty at this
13924 # point, so we can use a bashism as a fallback.
13925 if test "x$ac_cr" = x; then
13926   eval ac_cr=\$\'\\r\'
13927 fi
13928 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13929 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13930   ac_cs_awk_cr='\\r'
13931 else
13932   ac_cs_awk_cr=$ac_cr
13933 fi
13934
13935 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13936 _ACEOF
13937
13938
13939 {
13940   echo "cat >conf$$subs.awk <<_ACEOF" &&
13941   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13942   echo "_ACEOF"
13943 } >conf$$subs.sh ||
13944   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13946 ac_delim='%!_!# '
13947 for ac_last_try in false false false false false :; do
13948   . ./conf$$subs.sh ||
13949     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13950
13951   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13952   if test $ac_delim_n = $ac_delim_num; then
13953     break
13954   elif $ac_last_try; then
13955     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13956   else
13957     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13958   fi
13959 done
13960 rm -f conf$$subs.sh
13961
13962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13963 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13964 _ACEOF
13965 sed -n '
13966 h
13967 s/^/S["/; s/!.*/"]=/
13968 p
13969 g
13970 s/^[^!]*!//
13971 :repl
13972 t repl
13973 s/'"$ac_delim"'$//
13974 t delim
13975 :nl
13976 h
13977 s/\(.\{148\}\)..*/\1/
13978 t more1
13979 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13980 p
13981 n
13982 b repl
13983 :more1
13984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13985 p
13986 g
13987 s/.\{148\}//
13988 t nl
13989 :delim
13990 h
13991 s/\(.\{148\}\)..*/\1/
13992 t more2
13993 s/["\\]/\\&/g; s/^/"/; s/$/"/
13994 p
13995 b
13996 :more2
13997 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13998 p
13999 g
14000 s/.\{148\}//
14001 t delim
14002 ' <conf$$subs.awk | sed '
14003 /^[^""]/{
14004   N
14005   s/\n//
14006 }
14007 ' >>$CONFIG_STATUS || ac_write_fail=1
14008 rm -f conf$$subs.awk
14009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14010 _ACAWK
14011 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14012   for (key in S) S_is_set[key] = 1
14013   FS = "\a"
14014
14015 }
14016 {
14017   line = $ 0
14018   nfields = split(line, field, "@")
14019   substed = 0
14020   len = length(field[1])
14021   for (i = 2; i < nfields; i++) {
14022     key = field[i]
14023     keylen = length(key)
14024     if (S_is_set[key]) {
14025       value = S[key]
14026       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14027       len += length(value) + length(field[++i])
14028       substed = 1
14029     } else
14030       len += 1 + keylen
14031   }
14032
14033   print line
14034 }
14035
14036 _ACAWK
14037 _ACEOF
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14039 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14040   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14041 else
14042   cat
14043 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14044   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14045 _ACEOF
14046
14047 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14048 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14049 # trailing colons and then remove the whole line if VPATH becomes empty
14050 # (actually we leave an empty line to preserve line numbers).
14051 if test "x$srcdir" = x.; then
14052   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14053 h
14054 s///
14055 s/^/:/
14056 s/[      ]*$/:/
14057 s/:\$(srcdir):/:/g
14058 s/:\${srcdir}:/:/g
14059 s/:@srcdir@:/:/g
14060 s/^:*//
14061 s/:*$//
14062 x
14063 s/\(=[   ]*\).*/\1/
14064 G
14065 s/\n//
14066 s/^[^=]*=[       ]*$//
14067 }'
14068 fi
14069
14070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14071 fi # test -n "$CONFIG_FILES"
14072
14073 # Set up the scripts for CONFIG_HEADERS section.
14074 # No need to generate them if there are no CONFIG_HEADERS.
14075 # This happens for instance with `./config.status Makefile'.
14076 if test -n "$CONFIG_HEADERS"; then
14077 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14078 BEGIN {
14079 _ACEOF
14080
14081 # Transform confdefs.h into an awk script `defines.awk', embedded as
14082 # here-document in config.status, that substitutes the proper values into
14083 # config.h.in to produce config.h.
14084
14085 # Create a delimiter string that does not exist in confdefs.h, to ease
14086 # handling of long lines.
14087 ac_delim='%!_!# '
14088 for ac_last_try in false false :; do
14089   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14090   if test -z "$ac_tt"; then
14091     break
14092   elif $ac_last_try; then
14093     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14094   else
14095     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14096   fi
14097 done
14098
14099 # For the awk script, D is an array of macro values keyed by name,
14100 # likewise P contains macro parameters if any.  Preserve backslash
14101 # newline sequences.
14102
14103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14104 sed -n '
14105 s/.\{148\}/&'"$ac_delim"'/g
14106 t rset
14107 :rset
14108 s/^[     ]*#[    ]*define[       ][      ]*/ /
14109 t def
14110 d
14111 :def
14112 s/\\$//
14113 t bsnl
14114 s/["\\]/\\&/g
14115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14116 D["\1"]=" \3"/p
14117 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14118 d
14119 :bsnl
14120 s/["\\]/\\&/g
14121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14122 D["\1"]=" \3\\\\\\n"\\/p
14123 t cont
14124 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14125 t cont
14126 d
14127 :cont
14128 n
14129 s/.\{148\}/&'"$ac_delim"'/g
14130 t clear
14131 :clear
14132 s/\\$//
14133 t bsnlc
14134 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14135 d
14136 :bsnlc
14137 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14138 b cont
14139 ' <confdefs.h | sed '
14140 s/'"$ac_delim"'/"\\\
14141 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14142
14143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14144   for (key in D) D_is_set[key] = 1
14145   FS = "\a"
14146 }
14147 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14148   line = \$ 0
14149   split(line, arg, " ")
14150   if (arg[1] == "#") {
14151     defundef = arg[2]
14152     mac1 = arg[3]
14153   } else {
14154     defundef = substr(arg[1], 2)
14155     mac1 = arg[2]
14156   }
14157   split(mac1, mac2, "(") #)
14158   macro = mac2[1]
14159   prefix = substr(line, 1, index(line, defundef) - 1)
14160   if (D_is_set[macro]) {
14161     # Preserve the white space surrounding the "#".
14162     print prefix "define", macro P[macro] D[macro]
14163     next
14164   } else {
14165     # Replace #undef with comments.  This is necessary, for example,
14166     # in the case of _POSIX_SOURCE, which is predefined and required
14167     # on some systems where configure will not decide to define it.
14168     if (defundef == "undef") {
14169       print "/*", prefix defundef, macro, "*/"
14170       next
14171     }
14172   }
14173 }
14174 { print }
14175 _ACAWK
14176 _ACEOF
14177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14178   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14179 fi # test -n "$CONFIG_HEADERS"
14180
14181
14182 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14183 shift
14184 for ac_tag
14185 do
14186   case $ac_tag in
14187   :[FHLC]) ac_mode=$ac_tag; continue;;
14188   esac
14189   case $ac_mode$ac_tag in
14190   :[FHL]*:*);;
14191   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14192   :[FH]-) ac_tag=-:-;;
14193   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14194   esac
14195   ac_save_IFS=$IFS
14196   IFS=:
14197   set x $ac_tag
14198   IFS=$ac_save_IFS
14199   shift
14200   ac_file=$1
14201   shift
14202
14203   case $ac_mode in
14204   :L) ac_source=$1;;
14205   :[FH])
14206     ac_file_inputs=
14207     for ac_f
14208     do
14209       case $ac_f in
14210       -) ac_f="$ac_tmp/stdin";;
14211       *) # Look for the file first in the build tree, then in the source tree
14212          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14213          # because $ac_f cannot contain `:'.
14214          test -f "$ac_f" ||
14215            case $ac_f in
14216            [\\/$]*) false;;
14217            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14218            esac ||
14219            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14220       esac
14221       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14222       as_fn_append ac_file_inputs " '$ac_f'"
14223     done
14224
14225     # Let's still pretend it is `configure' which instantiates (i.e., don't
14226     # use $as_me), people would be surprised to read:
14227     #    /* config.h.  Generated by config.status.  */
14228     configure_input='Generated from '`
14229           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14230         `' by configure.'
14231     if test x"$ac_file" != x-; then
14232       configure_input="$ac_file.  $configure_input"
14233       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14234 $as_echo "$as_me: creating $ac_file" >&6;}
14235     fi
14236     # Neutralize special characters interpreted by sed in replacement strings.
14237     case $configure_input in #(
14238     *\&* | *\|* | *\\* )
14239        ac_sed_conf_input=`$as_echo "$configure_input" |
14240        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14241     *) ac_sed_conf_input=$configure_input;;
14242     esac
14243
14244     case $ac_tag in
14245     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14246       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14247     esac
14248     ;;
14249   esac
14250
14251   ac_dir=`$as_dirname -- "$ac_file" ||
14252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14253          X"$ac_file" : 'X\(//\)[^/]' \| \
14254          X"$ac_file" : 'X\(//\)$' \| \
14255          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14256 $as_echo X"$ac_file" |
14257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14258             s//\1/
14259             q
14260           }
14261           /^X\(\/\/\)[^/].*/{
14262             s//\1/
14263             q
14264           }
14265           /^X\(\/\/\)$/{
14266             s//\1/
14267             q
14268           }
14269           /^X\(\/\).*/{
14270             s//\1/
14271             q
14272           }
14273           s/.*/./; q'`
14274   as_dir="$ac_dir"; as_fn_mkdir_p
14275   ac_builddir=.
14276
14277 case "$ac_dir" in
14278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14279 *)
14280   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14281   # A ".." for each directory in $ac_dir_suffix.
14282   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14283   case $ac_top_builddir_sub in
14284   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14285   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14286   esac ;;
14287 esac
14288 ac_abs_top_builddir=$ac_pwd
14289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14290 # for backward compatibility:
14291 ac_top_builddir=$ac_top_build_prefix
14292
14293 case $srcdir in
14294   .)  # We are building in place.
14295     ac_srcdir=.
14296     ac_top_srcdir=$ac_top_builddir_sub
14297     ac_abs_top_srcdir=$ac_pwd ;;
14298   [\\/]* | ?:[\\/]* )  # Absolute name.
14299     ac_srcdir=$srcdir$ac_dir_suffix;
14300     ac_top_srcdir=$srcdir
14301     ac_abs_top_srcdir=$srcdir ;;
14302   *) # Relative name.
14303     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14304     ac_top_srcdir=$ac_top_build_prefix$srcdir
14305     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14306 esac
14307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14308
14309
14310   case $ac_mode in
14311   :F)
14312   #
14313   # CONFIG_FILE
14314   #
14315
14316   case $INSTALL in
14317   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14318   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14319   esac
14320   ac_MKDIR_P=$MKDIR_P
14321   case $MKDIR_P in
14322   [\\/$]* | ?:[\\/]* ) ;;
14323   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14324   esac
14325 _ACEOF
14326
14327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14328 # If the template does not know about datarootdir, expand it.
14329 # FIXME: This hack should be removed a few years after 2.60.
14330 ac_datarootdir_hack=; ac_datarootdir_seen=
14331 ac_sed_dataroot='
14332 /datarootdir/ {
14333   p
14334   q
14335 }
14336 /@datadir@/p
14337 /@docdir@/p
14338 /@infodir@/p
14339 /@localedir@/p
14340 /@mandir@/p'
14341 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14342 *datarootdir*) ac_datarootdir_seen=yes;;
14343 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14344   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14345 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14346 _ACEOF
14347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14348   ac_datarootdir_hack='
14349   s&@datadir@&$datadir&g
14350   s&@docdir@&$docdir&g
14351   s&@infodir@&$infodir&g
14352   s&@localedir@&$localedir&g
14353   s&@mandir@&$mandir&g
14354   s&\\\${datarootdir}&$datarootdir&g' ;;
14355 esac
14356 _ACEOF
14357
14358 # Neutralize VPATH when `$srcdir' = `.'.
14359 # Shell code in configure.ac might set extrasub.
14360 # FIXME: do we really want to maintain this feature?
14361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14362 ac_sed_extra="$ac_vpsub
14363 $extrasub
14364 _ACEOF
14365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14366 :t
14367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14368 s|@configure_input@|$ac_sed_conf_input|;t t
14369 s&@top_builddir@&$ac_top_builddir_sub&;t t
14370 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14371 s&@srcdir@&$ac_srcdir&;t t
14372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14373 s&@top_srcdir@&$ac_top_srcdir&;t t
14374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14375 s&@builddir@&$ac_builddir&;t t
14376 s&@abs_builddir@&$ac_abs_builddir&;t t
14377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14378 s&@INSTALL@&$ac_INSTALL&;t t
14379 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14380 $ac_datarootdir_hack
14381 "
14382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14383   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14384
14385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14386   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14387   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14388       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14390 which seems to be undefined.  Please make sure it is defined" >&5
14391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14392 which seems to be undefined.  Please make sure it is defined" >&2;}
14393
14394   rm -f "$ac_tmp/stdin"
14395   case $ac_file in
14396   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14397   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14398   esac \
14399   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14400  ;;
14401   :H)
14402   #
14403   # CONFIG_HEADER
14404   #
14405   if test x"$ac_file" != x-; then
14406     {
14407       $as_echo "/* $configure_input  */" \
14408       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14409     } >"$ac_tmp/config.h" \
14410       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14411     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14412       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14413 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14414     else
14415       rm -f "$ac_file"
14416       mv "$ac_tmp/config.h" "$ac_file" \
14417         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14418     fi
14419   else
14420     $as_echo "/* $configure_input  */" \
14421       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14422       || as_fn_error $? "could not create -" "$LINENO" 5
14423   fi
14424 # Compute "$ac_file"'s index in $config_headers.
14425 _am_arg="$ac_file"
14426 _am_stamp_count=1
14427 for _am_header in $config_headers :; do
14428   case $_am_header in
14429     $_am_arg | $_am_arg:* )
14430       break ;;
14431     * )
14432       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14433   esac
14434 done
14435 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14436 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14437          X"$_am_arg" : 'X\(//\)[^/]' \| \
14438          X"$_am_arg" : 'X\(//\)$' \| \
14439          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14440 $as_echo X"$_am_arg" |
14441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14442             s//\1/
14443             q
14444           }
14445           /^X\(\/\/\)[^/].*/{
14446             s//\1/
14447             q
14448           }
14449           /^X\(\/\/\)$/{
14450             s//\1/
14451             q
14452           }
14453           /^X\(\/\).*/{
14454             s//\1/
14455             q
14456           }
14457           s/.*/./; q'`/stamp-h$_am_stamp_count
14458  ;;
14459
14460   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14461 $as_echo "$as_me: executing $ac_file commands" >&6;}
14462  ;;
14463   esac
14464
14465
14466   case $ac_file$ac_mode in
14467     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14468   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14469   # are listed without --file.  Let's play safe and only enable the eval
14470   # if we detect the quoting.
14471   case $CONFIG_FILES in
14472   *\'*) eval set x "$CONFIG_FILES" ;;
14473   *)   set x $CONFIG_FILES ;;
14474   esac
14475   shift
14476   for mf
14477   do
14478     # Strip MF so we end up with the name of the file.
14479     mf=`echo "$mf" | sed -e 's/:.*$//'`
14480     # Check whether this is an Automake generated Makefile or not.
14481     # We used to match only the files named `Makefile.in', but
14482     # some people rename them; so instead we look at the file content.
14483     # Grep'ing the first line is not enough: some people post-process
14484     # each Makefile.in and add a new line on top of each file to say so.
14485     # Grep'ing the whole file is not good either: AIX grep has a line
14486     # limit of 2048, but all sed's we know have understand at least 4000.
14487     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14488       dirpart=`$as_dirname -- "$mf" ||
14489 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14490          X"$mf" : 'X\(//\)[^/]' \| \
14491          X"$mf" : 'X\(//\)$' \| \
14492          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14493 $as_echo X"$mf" |
14494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14495             s//\1/
14496             q
14497           }
14498           /^X\(\/\/\)[^/].*/{
14499             s//\1/
14500             q
14501           }
14502           /^X\(\/\/\)$/{
14503             s//\1/
14504             q
14505           }
14506           /^X\(\/\).*/{
14507             s//\1/
14508             q
14509           }
14510           s/.*/./; q'`
14511     else
14512       continue
14513     fi
14514     # Extract the definition of DEPDIR, am__include, and am__quote
14515     # from the Makefile without running `make'.
14516     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14517     test -z "$DEPDIR" && continue
14518     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14519     test -z "am__include" && continue
14520     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14521     # When using ansi2knr, U may be empty or an underscore; expand it
14522     U=`sed -n 's/^U = //p' < "$mf"`
14523     # Find all dependency output files, they are included files with
14524     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14525     # simplest approach to changing $(DEPDIR) to its actual value in the
14526     # expansion.
14527     for file in `sed -n "
14528       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14529          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14530       # Make sure the directory exists.
14531       test -f "$dirpart/$file" && continue
14532       fdir=`$as_dirname -- "$file" ||
14533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14534          X"$file" : 'X\(//\)[^/]' \| \
14535          X"$file" : 'X\(//\)$' \| \
14536          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14537 $as_echo X"$file" |
14538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14539             s//\1/
14540             q
14541           }
14542           /^X\(\/\/\)[^/].*/{
14543             s//\1/
14544             q
14545           }
14546           /^X\(\/\/\)$/{
14547             s//\1/
14548             q
14549           }
14550           /^X\(\/\).*/{
14551             s//\1/
14552             q
14553           }
14554           s/.*/./; q'`
14555       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14556       # echo "creating $dirpart/$file"
14557       echo '# dummy' > "$dirpart/$file"
14558     done
14559   done
14560 }
14561  ;;
14562     "libtool":C)
14563
14564     # See if we are running on zsh, and set the options which allow our
14565     # commands through without removal of \ escapes.
14566     if test -n "${ZSH_VERSION+set}" ; then
14567       setopt NO_GLOB_SUBST
14568     fi
14569
14570     cfgfile="${ofile}T"
14571     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14572     $RM "$cfgfile"
14573
14574     cat <<_LT_EOF >> "$cfgfile"
14575 #! $SHELL
14576
14577 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14578 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14581 #
14582 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14583 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14584 #                 Foundation, Inc.
14585 #   Written by Gordon Matzigkeit, 1996
14586 #
14587 #   This file is part of GNU Libtool.
14588 #
14589 # GNU Libtool is free software; you can redistribute it and/or
14590 # modify it under the terms of the GNU General Public License as
14591 # published by the Free Software Foundation; either version 2 of
14592 # the License, or (at your option) any later version.
14593 #
14594 # As a special exception to the GNU General Public License,
14595 # if you distribute this file as part of a program or library that
14596 # is built using GNU Libtool, you may include this file under the
14597 # same distribution terms that you use for the rest of that program.
14598 #
14599 # GNU Libtool is distributed in the hope that it will be useful,
14600 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14602 # GNU General Public License for more details.
14603 #
14604 # You should have received a copy of the GNU General Public License
14605 # along with GNU Libtool; see the file COPYING.  If not, a copy
14606 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14607 # obtained by writing to the Free Software Foundation, Inc.,
14608 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14609
14610
14611 # The names of the tagged configurations supported by this script.
14612 available_tags=""
14613
14614 # ### BEGIN LIBTOOL CONFIG
14615
14616 # Which release of libtool.m4 was used?
14617 macro_version=$macro_version
14618 macro_revision=$macro_revision
14619
14620 # Whether or not to build shared libraries.
14621 build_libtool_libs=$enable_shared
14622
14623 # Whether or not to build static libraries.
14624 build_old_libs=$enable_static
14625
14626 # What type of objects to build.
14627 pic_mode=$pic_mode
14628
14629 # Whether or not to optimize for fast installation.
14630 fast_install=$enable_fast_install
14631
14632 # Shell to use when invoking shell scripts.
14633 SHELL=$lt_SHELL
14634
14635 # An echo program that protects backslashes.
14636 ECHO=$lt_ECHO
14637
14638 # The PATH separator for the build system.
14639 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14640
14641 # The host system.
14642 host_alias=$host_alias
14643 host=$host
14644 host_os=$host_os
14645
14646 # The build system.
14647 build_alias=$build_alias
14648 build=$build
14649 build_os=$build_os
14650
14651 # A sed program that does not truncate output.
14652 SED=$lt_SED
14653
14654 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14655 Xsed="\$SED -e 1s/^X//"
14656
14657 # A grep program that handles long lines.
14658 GREP=$lt_GREP
14659
14660 # An ERE matcher.
14661 EGREP=$lt_EGREP
14662
14663 # A literal string matcher.
14664 FGREP=$lt_FGREP
14665
14666 # A BSD- or MS-compatible name lister.
14667 NM=$lt_NM
14668
14669 # Whether we need soft or hard links.
14670 LN_S=$lt_LN_S
14671
14672 # What is the maximum length of a command?
14673 max_cmd_len=$max_cmd_len
14674
14675 # Object file suffix (normally "o").
14676 objext=$ac_objext
14677
14678 # Executable file suffix (normally "").
14679 exeext=$exeext
14680
14681 # whether the shell understands "unset".
14682 lt_unset=$lt_unset
14683
14684 # turn spaces into newlines.
14685 SP2NL=$lt_lt_SP2NL
14686
14687 # turn newlines into spaces.
14688 NL2SP=$lt_lt_NL2SP
14689
14690 # convert \$build file names to \$host format.
14691 to_host_file_cmd=$lt_cv_to_host_file_cmd
14692
14693 # convert \$build files to toolchain format.
14694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14695
14696 # An object symbol dumper.
14697 OBJDUMP=$lt_OBJDUMP
14698
14699 # Method to check whether dependent libraries are shared objects.
14700 deplibs_check_method=$lt_deplibs_check_method
14701
14702 # Command to use when deplibs_check_method = "file_magic".
14703 file_magic_cmd=$lt_file_magic_cmd
14704
14705 # How to find potential files when deplibs_check_method = "file_magic".
14706 file_magic_glob=$lt_file_magic_glob
14707
14708 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14709 want_nocaseglob=$lt_want_nocaseglob
14710
14711 # DLL creation program.
14712 DLLTOOL=$lt_DLLTOOL
14713
14714 # Command to associate shared and link libraries.
14715 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14716
14717 # The archiver.
14718 AR=$lt_AR
14719
14720 # Flags to create an archive.
14721 AR_FLAGS=$lt_AR_FLAGS
14722
14723 # How to feed a file listing to the archiver.
14724 archiver_list_spec=$lt_archiver_list_spec
14725
14726 # A symbol stripping program.
14727 STRIP=$lt_STRIP
14728
14729 # Commands used to install an old-style archive.
14730 RANLIB=$lt_RANLIB
14731 old_postinstall_cmds=$lt_old_postinstall_cmds
14732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14733
14734 # Whether to use a lock for old archive extraction.
14735 lock_old_archive_extraction=$lock_old_archive_extraction
14736
14737 # A C compiler.
14738 LTCC=$lt_CC
14739
14740 # LTCC compiler flags.
14741 LTCFLAGS=$lt_CFLAGS
14742
14743 # Take the output of nm and produce a listing of raw symbols and C names.
14744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14745
14746 # Transform the output of nm in a proper C declaration.
14747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14748
14749 # Transform the output of nm in a C name address pair.
14750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14751
14752 # Transform the output of nm in a C name address pair when lib prefix is needed.
14753 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14754
14755 # Specify filename containing input files for \$NM.
14756 nm_file_list_spec=$lt_nm_file_list_spec
14757
14758 # The root where to search for dependent libraries,and in which our libraries should be installed.
14759 lt_sysroot=$lt_sysroot
14760
14761 # The name of the directory that contains temporary libtool files.
14762 objdir=$objdir
14763
14764 # Used to examine libraries when file_magic_cmd begins with "file".
14765 MAGIC_CMD=$MAGIC_CMD
14766
14767 # Must we lock files when doing compilation?
14768 need_locks=$lt_need_locks
14769
14770 # Manifest tool.
14771 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14772
14773 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14774 DSYMUTIL=$lt_DSYMUTIL
14775
14776 # Tool to change global to local symbols on Mac OS X.
14777 NMEDIT=$lt_NMEDIT
14778
14779 # Tool to manipulate fat objects and archives on Mac OS X.
14780 LIPO=$lt_LIPO
14781
14782 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14783 OTOOL=$lt_OTOOL
14784
14785 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14786 OTOOL64=$lt_OTOOL64
14787
14788 # Old archive suffix (normally "a").
14789 libext=$libext
14790
14791 # Shared library suffix (normally ".so").
14792 shrext_cmds=$lt_shrext_cmds
14793
14794 # The commands to extract the exported symbol list from a shared archive.
14795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14796
14797 # Variables whose values should be saved in libtool wrapper scripts and
14798 # restored at link time.
14799 variables_saved_for_relink=$lt_variables_saved_for_relink
14800
14801 # Do we need the "lib" prefix for modules?
14802 need_lib_prefix=$need_lib_prefix
14803
14804 # Do we need a version for libraries?
14805 need_version=$need_version
14806
14807 # Library versioning type.
14808 version_type=$version_type
14809
14810 # Shared library runtime path variable.
14811 runpath_var=$runpath_var
14812
14813 # Shared library path variable.
14814 shlibpath_var=$shlibpath_var
14815
14816 # Is shlibpath searched before the hard-coded library search path?
14817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14818
14819 # Format of library name prefix.
14820 libname_spec=$lt_libname_spec
14821
14822 # List of archive names.  First name is the real one, the rest are links.
14823 # The last name is the one that the linker finds with -lNAME
14824 library_names_spec=$lt_library_names_spec
14825
14826 # The coded name of the library, if different from the real name.
14827 soname_spec=$lt_soname_spec
14828
14829 # Permission mode override for installation of shared libraries.
14830 install_override_mode=$lt_install_override_mode
14831
14832 # Command to use after installation of a shared archive.
14833 postinstall_cmds=$lt_postinstall_cmds
14834
14835 # Command to use after uninstallation of a shared archive.
14836 postuninstall_cmds=$lt_postuninstall_cmds
14837
14838 # Commands used to finish a libtool library installation in a directory.
14839 finish_cmds=$lt_finish_cmds
14840
14841 # As "finish_cmds", except a single script fragment to be evaled but
14842 # not shown.
14843 finish_eval=$lt_finish_eval
14844
14845 # Whether we should hardcode library paths into libraries.
14846 hardcode_into_libs=$hardcode_into_libs
14847
14848 # Compile-time system search path for libraries.
14849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14850
14851 # Run-time system search path for libraries.
14852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14853
14854 # Whether dlopen is supported.
14855 dlopen_support=$enable_dlopen
14856
14857 # Whether dlopen of programs is supported.
14858 dlopen_self=$enable_dlopen_self
14859
14860 # Whether dlopen of statically linked programs is supported.
14861 dlopen_self_static=$enable_dlopen_self_static
14862
14863 # Commands to strip libraries.
14864 old_striplib=$lt_old_striplib
14865 striplib=$lt_striplib
14866
14867
14868 # The linker used to build libraries.
14869 LD=$lt_LD
14870
14871 # How to create reloadable object files.
14872 reload_flag=$lt_reload_flag
14873 reload_cmds=$lt_reload_cmds
14874
14875 # Commands used to build an old-style archive.
14876 old_archive_cmds=$lt_old_archive_cmds
14877
14878 # A language specific compiler.
14879 CC=$lt_compiler
14880
14881 # Is the compiler the GNU compiler?
14882 with_gcc=$GCC
14883
14884 # Compiler flag to turn off builtin functions.
14885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14886
14887 # Additional compiler flags for building library objects.
14888 pic_flag=$lt_lt_prog_compiler_pic
14889
14890 # How to pass a linker flag through the compiler.
14891 wl=$lt_lt_prog_compiler_wl
14892
14893 # Compiler flag to prevent dynamic linking.
14894 link_static_flag=$lt_lt_prog_compiler_static
14895
14896 # Does compiler simultaneously support -c and -o options?
14897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14898
14899 # Whether or not to add -lc for building shared libraries.
14900 build_libtool_need_lc=$archive_cmds_need_lc
14901
14902 # Whether or not to disallow shared libs when runtime libs are static.
14903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14904
14905 # Compiler flag to allow reflexive dlopens.
14906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14907
14908 # Compiler flag to generate shared objects directly from archives.
14909 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14910
14911 # Whether the compiler copes with passing no objects directly.
14912 compiler_needs_object=$lt_compiler_needs_object
14913
14914 # Create an old-style archive from a shared archive.
14915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14916
14917 # Create a temporary old-style archive to link instead of a shared archive.
14918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14919
14920 # Commands used to build a shared archive.
14921 archive_cmds=$lt_archive_cmds
14922 archive_expsym_cmds=$lt_archive_expsym_cmds
14923
14924 # Commands used to build a loadable module if different from building
14925 # a shared archive.
14926 module_cmds=$lt_module_cmds
14927 module_expsym_cmds=$lt_module_expsym_cmds
14928
14929 # Whether we are building with GNU ld or not.
14930 with_gnu_ld=$lt_with_gnu_ld
14931
14932 # Flag that allows shared libraries with undefined symbols to be built.
14933 allow_undefined_flag=$lt_allow_undefined_flag
14934
14935 # Flag that enforces no undefined symbols.
14936 no_undefined_flag=$lt_no_undefined_flag
14937
14938 # Flag to hardcode \$libdir into a binary during linking.
14939 # This must work even if \$libdir does not exist
14940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14941
14942 # Whether we need a single "-rpath" flag with a separated argument.
14943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14944
14945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14946 # DIR into the resulting binary.
14947 hardcode_direct=$hardcode_direct
14948
14949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14950 # DIR into the resulting binary and the resulting library dependency is
14951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14952 # library is relocated.
14953 hardcode_direct_absolute=$hardcode_direct_absolute
14954
14955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14956 # into the resulting binary.
14957 hardcode_minus_L=$hardcode_minus_L
14958
14959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14960 # into the resulting binary.
14961 hardcode_shlibpath_var=$hardcode_shlibpath_var
14962
14963 # Set to "yes" if building a shared library automatically hardcodes DIR
14964 # into the library and all subsequent libraries and executables linked
14965 # against it.
14966 hardcode_automatic=$hardcode_automatic
14967
14968 # Set to yes if linker adds runtime paths of dependent libraries
14969 # to runtime path list.
14970 inherit_rpath=$inherit_rpath
14971
14972 # Whether libtool must link a program against all its dependency libraries.
14973 link_all_deplibs=$link_all_deplibs
14974
14975 # Set to "yes" if exported symbols are required.
14976 always_export_symbols=$always_export_symbols
14977
14978 # The commands to list exported symbols.
14979 export_symbols_cmds=$lt_export_symbols_cmds
14980
14981 # Symbols that should not be listed in the preloaded symbols.
14982 exclude_expsyms=$lt_exclude_expsyms
14983
14984 # Symbols that must always be exported.
14985 include_expsyms=$lt_include_expsyms
14986
14987 # Commands necessary for linking programs (against libraries) with templates.
14988 prelink_cmds=$lt_prelink_cmds
14989
14990 # Commands necessary for finishing linking programs.
14991 postlink_cmds=$lt_postlink_cmds
14992
14993 # Specify filename containing input files.
14994 file_list_spec=$lt_file_list_spec
14995
14996 # How to hardcode a shared library path into an executable.
14997 hardcode_action=$hardcode_action
14998
14999 # ### END LIBTOOL CONFIG
15000
15001 _LT_EOF
15002
15003   case $host_os in
15004   aix3*)
15005     cat <<\_LT_EOF >> "$cfgfile"
15006 # AIX sometimes has problems with the GCC collect2 program.  For some
15007 # reason, if we set the COLLECT_NAMES environment variable, the problems
15008 # vanish in a puff of smoke.
15009 if test "X${COLLECT_NAMES+set}" != Xset; then
15010   COLLECT_NAMES=
15011   export COLLECT_NAMES
15012 fi
15013 _LT_EOF
15014     ;;
15015   esac
15016
15017
15018 ltmain="$ac_aux_dir/ltmain.sh"
15019
15020
15021   # We use sed instead of cat because bash on DJGPP gets confused if
15022   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15023   # text mode, it properly converts lines to CR/LF.  This bash problem
15024   # is reportedly fixed, but why not run on old versions too?
15025   sed '$q' "$ltmain" >> "$cfgfile" \
15026      || (rm -f "$cfgfile"; exit 1)
15027
15028   if test x"$xsi_shell" = xyes; then
15029   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15030 func_dirname ()\
15031 {\
15032 \    case ${1} in\
15033 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15034 \      *  ) func_dirname_result="${3}" ;;\
15035 \    esac\
15036 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15037   && mv -f "$cfgfile.tmp" "$cfgfile" \
15038     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15039 test 0 -eq $? || _lt_function_replace_fail=:
15040
15041
15042   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15043 func_basename ()\
15044 {\
15045 \    func_basename_result="${1##*/}"\
15046 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15047   && mv -f "$cfgfile.tmp" "$cfgfile" \
15048     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15049 test 0 -eq $? || _lt_function_replace_fail=:
15050
15051
15052   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15053 func_dirname_and_basename ()\
15054 {\
15055 \    case ${1} in\
15056 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15057 \      *  ) func_dirname_result="${3}" ;;\
15058 \    esac\
15059 \    func_basename_result="${1##*/}"\
15060 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15061   && mv -f "$cfgfile.tmp" "$cfgfile" \
15062     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15063 test 0 -eq $? || _lt_function_replace_fail=:
15064
15065
15066   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15067 func_stripname ()\
15068 {\
15069 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15070 \    # positional parameters, so assign one to ordinary parameter first.\
15071 \    func_stripname_result=${3}\
15072 \    func_stripname_result=${func_stripname_result#"${1}"}\
15073 \    func_stripname_result=${func_stripname_result%"${2}"}\
15074 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15075   && mv -f "$cfgfile.tmp" "$cfgfile" \
15076     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15077 test 0 -eq $? || _lt_function_replace_fail=:
15078
15079
15080   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15081 func_split_long_opt ()\
15082 {\
15083 \    func_split_long_opt_name=${1%%=*}\
15084 \    func_split_long_opt_arg=${1#*=}\
15085 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15086   && mv -f "$cfgfile.tmp" "$cfgfile" \
15087     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15088 test 0 -eq $? || _lt_function_replace_fail=:
15089
15090
15091   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15092 func_split_short_opt ()\
15093 {\
15094 \    func_split_short_opt_arg=${1#??}\
15095 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15096 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15097   && mv -f "$cfgfile.tmp" "$cfgfile" \
15098     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15099 test 0 -eq $? || _lt_function_replace_fail=:
15100
15101
15102   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15103 func_lo2o ()\
15104 {\
15105 \    case ${1} in\
15106 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15107 \      *)    func_lo2o_result=${1} ;;\
15108 \    esac\
15109 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15110   && mv -f "$cfgfile.tmp" "$cfgfile" \
15111     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15112 test 0 -eq $? || _lt_function_replace_fail=:
15113
15114
15115   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15116 func_xform ()\
15117 {\
15118     func_xform_result=${1%.*}.lo\
15119 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15120   && mv -f "$cfgfile.tmp" "$cfgfile" \
15121     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15122 test 0 -eq $? || _lt_function_replace_fail=:
15123
15124
15125   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15126 func_arith ()\
15127 {\
15128     func_arith_result=$(( $* ))\
15129 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15130   && mv -f "$cfgfile.tmp" "$cfgfile" \
15131     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15132 test 0 -eq $? || _lt_function_replace_fail=:
15133
15134
15135   sed -e '/^func_len ()$/,/^} # func_len /c\
15136 func_len ()\
15137 {\
15138     func_len_result=${#1}\
15139 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15140   && mv -f "$cfgfile.tmp" "$cfgfile" \
15141     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15142 test 0 -eq $? || _lt_function_replace_fail=:
15143
15144 fi
15145
15146 if test x"$lt_shell_append" = xyes; then
15147   sed -e '/^func_append ()$/,/^} # func_append /c\
15148 func_append ()\
15149 {\
15150     eval "${1}+=\\${2}"\
15151 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15152   && mv -f "$cfgfile.tmp" "$cfgfile" \
15153     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15154 test 0 -eq $? || _lt_function_replace_fail=:
15155
15156
15157   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15158 func_append_quoted ()\
15159 {\
15160 \    func_quote_for_eval "${2}"\
15161 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15162 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15163   && mv -f "$cfgfile.tmp" "$cfgfile" \
15164     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15165 test 0 -eq $? || _lt_function_replace_fail=:
15166
15167
15168   # Save a `func_append' function call where possible by direct use of '+='
15169   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15170     && mv -f "$cfgfile.tmp" "$cfgfile" \
15171       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15172   test 0 -eq $? || _lt_function_replace_fail=:
15173 else
15174   # Save a `func_append' function call even when '+=' is not available
15175   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15176     && mv -f "$cfgfile.tmp" "$cfgfile" \
15177       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15178   test 0 -eq $? || _lt_function_replace_fail=:
15179 fi
15180
15181 if test x"$_lt_function_replace_fail" = x":"; then
15182   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15183 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15184 fi
15185
15186
15187    mv -f "$cfgfile" "$ofile" ||
15188     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15189   chmod +x "$ofile"
15190
15191  ;;
15192
15193   esac
15194 done # for ac_tag
15195
15196
15197 as_fn_exit 0
15198 _ACEOF
15199 ac_clean_files=$ac_clean_files_save
15200
15201 test $ac_write_fail = 0 ||
15202   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15203
15204
15205 # configure is writing to config.log, and then calls config.status.
15206 # config.status does its own redirection, appending to config.log.
15207 # Unfortunately, on DOS this fails, as config.log is still kept open
15208 # by configure, so config.status won't be able to write to it; its
15209 # output is simply discarded.  So we exec the FD to /dev/null,
15210 # effectively closing config.log, so it can be properly (re)opened and
15211 # appended to by config.status.  When coming back to configure, we
15212 # need to make the FD available again.
15213 if test "$no_create" != yes; then
15214   ac_cs_success=:
15215   ac_config_status_args=
15216   test "$silent" = yes &&
15217     ac_config_status_args="$ac_config_status_args --quiet"
15218   exec 5>/dev/null
15219   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15220   exec 5>>config.log
15221   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15222   # would make configure fail if this is the last instruction.
15223   $ac_cs_success || as_fn_exit 1
15224 fi
15225
15226 #
15227 # CONFIG_SUBDIRS section.
15228 #
15229 if test "$no_recursion" != yes; then
15230
15231   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15232   # so they do not pile up.
15233   ac_sub_configure_args=
15234   ac_prev=
15235   eval "set x $ac_configure_args"
15236   shift
15237   for ac_arg
15238   do
15239     if test -n "$ac_prev"; then
15240       ac_prev=
15241       continue
15242     fi
15243     case $ac_arg in
15244     -cache-file | --cache-file | --cache-fil | --cache-fi \
15245     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15246       ac_prev=cache_file ;;
15247     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15248     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15249     | --c=*)
15250       ;;
15251     --config-cache | -C)
15252       ;;
15253     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15254       ac_prev=srcdir ;;
15255     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15256       ;;
15257     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15258       ac_prev=prefix ;;
15259     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15260       ;;
15261     --disable-option-checking)
15262       ;;
15263     *)
15264       case $ac_arg in
15265       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15266       esac
15267       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15268     esac
15269   done
15270
15271   # Always prepend --prefix to ensure using the same prefix
15272   # in subdir configurations.
15273   ac_arg="--prefix=$prefix"
15274   case $ac_arg in
15275   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15276   esac
15277   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15278
15279   # Pass --silent
15280   if test "$silent" = yes; then
15281     ac_sub_configure_args="--silent $ac_sub_configure_args"
15282   fi
15283
15284   # Always prepend --disable-option-checking to silence warnings, since
15285   # different subdirs can have different --enable and --with options.
15286   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15287
15288   ac_popdir=`pwd`
15289   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15290
15291     # Do not complain, so a configure script can configure whichever
15292     # parts of a large source tree are present.
15293     test -d "$srcdir/$ac_dir" || continue
15294
15295     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15296     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15297     $as_echo "$ac_msg" >&6
15298     as_dir="$ac_dir"; as_fn_mkdir_p
15299     ac_builddir=.
15300
15301 case "$ac_dir" in
15302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15303 *)
15304   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15305   # A ".." for each directory in $ac_dir_suffix.
15306   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15307   case $ac_top_builddir_sub in
15308   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15309   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15310   esac ;;
15311 esac
15312 ac_abs_top_builddir=$ac_pwd
15313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15314 # for backward compatibility:
15315 ac_top_builddir=$ac_top_build_prefix
15316
15317 case $srcdir in
15318   .)  # We are building in place.
15319     ac_srcdir=.
15320     ac_top_srcdir=$ac_top_builddir_sub
15321     ac_abs_top_srcdir=$ac_pwd ;;
15322   [\\/]* | ?:[\\/]* )  # Absolute name.
15323     ac_srcdir=$srcdir$ac_dir_suffix;
15324     ac_top_srcdir=$srcdir
15325     ac_abs_top_srcdir=$srcdir ;;
15326   *) # Relative name.
15327     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15328     ac_top_srcdir=$ac_top_build_prefix$srcdir
15329     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15330 esac
15331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15332
15333
15334     cd "$ac_dir"
15335
15336     # Check for guested configure; otherwise get Cygnus style configure.
15337     if test -f "$ac_srcdir/configure.gnu"; then
15338       ac_sub_configure=$ac_srcdir/configure.gnu
15339     elif test -f "$ac_srcdir/configure"; then
15340       ac_sub_configure=$ac_srcdir/configure
15341     elif test -f "$ac_srcdir/configure.in"; then
15342       # This should be Cygnus configure.
15343       ac_sub_configure=$ac_aux_dir/configure
15344     else
15345       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15346 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15347       ac_sub_configure=
15348     fi
15349
15350     # The recursion is here.
15351     if test -n "$ac_sub_configure"; then
15352       # Make the cache file name correct relative to the subdirectory.
15353       case $cache_file in
15354       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15355       *) # Relative name.
15356         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15357       esac
15358
15359       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15360 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15361       # The eval makes quoting arguments work.
15362       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15363            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15364         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15365     fi
15366
15367     cd "$ac_popdir"
15368   done
15369 fi
15370 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15371   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15372 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15373 fi
15374
15375
15376 echo "-------------------------------------------------------------------------------"
15377 echo "                                  NOTE"
15378 echo ""
15379 echo " There have been some changes starting with 3.2 regarding where and how libnl"
15380 echo " is being installed on the system in order to allow multiple libnl versions"
15381 echo " to be installed in parallel:"
15382 echo ""
15383 echo "    - Headers will be installed in ${includedir}/libnl${MAJ_VERSION}, therefore"
15384 echo "      you will need to add \"-I/usr/include/libnl${MAJ_VERSION}\" to CFLAGS"
15385 echo ""
15386 echo "    - The library basename was renamed to libnl-${MAJ_VERSION}, i.e. the SO names become"
15387 echo "      libnl-${MAJ_VERSION}.so., libnl-route-${MAJ_VERSION}.so, etc."
15388 echo ""
15389 echo "    - libtool versioning was assumed, to ease detection of compatible library"
15390 echo "      versions."
15391 echo ""
15392 echo " If you are using pkg-config for detecting and linking against the library "
15393 echo " things will continue magically as if nothing every happened. If you are "
15394 echo " linking manually you need to adapt your Makefiles or switch to using "
15395 echo " pkg-config files."
15396 echo ""
15397 echo "-------------------------------------------------------------------------------"
15398