Modified version
[platform/upstream/connman.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for connman 1.26.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='connman'
589 PACKAGE_TARNAME='connman'
590 PACKAGE_VERSION='1.26'
591 PACKAGE_STRING='connman 1.26'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_default_prefix=/usr/local
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 VPN_FALSE
637 VPN_TRUE
638 DATAFILES_FALSE
639 DATAFILES_TRUE
640 WPASUPPLICANT
641 GNUTLS_LIBS
642 GNUTLS_CFLAGS
643 CLIENT_FALSE
644 CLIENT_TRUE
645 IPTABLES_SAVE
646 TOOLS_FALSE
647 TOOLS_TRUE
648 WISPR_FALSE
649 WISPR_TRUE
650 NEARD_FALSE
651 NEARD_TRUE
652 PACRUNNER_FALSE
653 PACRUNNER_TRUE
654 DUNDEE_FALSE
655 DUNDEE_TRUE
656 OFONO_FALSE
657 OFONO_TRUE
658 BLUETOOTH_FALSE
659 BLUETOOTH_TRUE
660 WIFI_FALSE
661 WIFI_TRUE
662 GADGET_FALSE
663 GADGET_TRUE
664 ETHERNET_FALSE
665 ETHERNET_TRUE
666 LOOPBACK_FALSE
667 LOOPBACK_TRUE
668 SELINUX_FALSE
669 SELINUX_TRUE
670 POLKIT_FALSE
671 POLKIT_TRUE
672 POLKIT_DATADIR
673 NMCOMPAT_FALSE
674 NMCOMPAT_TRUE
675 TEST_FALSE
676 TEST_TRUE
677 XTABLES_LIBS
678 XTABLES_CFLAGS
679 SYSTEMD_FALSE
680 SYSTEMD_TRUE
681 SYSTEMD_UNITDIR
682 DBUS_DATADIR
683 DBUS_CONFDIR
684 DBUS_LIBS
685 DBUS_CFLAGS
686 GLIB_LIBS
687 GLIB_CFLAGS
688 SESSION_POLICY_LOCAL_BUILTIN_FALSE
689 SESSION_POLICY_LOCAL_BUILTIN_TRUE
690 SESSION_POLICY_LOCAL_FALSE
691 SESSION_POLICY_LOCAL_TRUE
692 TIST_BUILTIN_FALSE
693 TIST_BUILTIN_TRUE
694 TIST_FALSE
695 TIST_TRUE
696 IOSPM_FALSE
697 IOSPM_TRUE
698 PPTP_BUILTIN_FALSE
699 PPTP_BUILTIN_TRUE
700 PPTP_FALSE
701 PPTP_TRUE
702 PPTP
703 L2TP_BUILTIN_FALSE
704 L2TP_BUILTIN_TRUE
705 L2TP_FALSE
706 L2TP_TRUE
707 L2TP
708 PPPD
709 VPNC_BUILTIN_FALSE
710 VPNC_BUILTIN_TRUE
711 VPNC_FALSE
712 VPNC_TRUE
713 VPNC
714 OPENVPN_BUILTIN_FALSE
715 OPENVPN_BUILTIN_TRUE
716 OPENVPN_FALSE
717 OPENVPN_TRUE
718 OPENVPN
719 OPENCONNECT_BUILTIN_FALSE
720 OPENCONNECT_BUILTIN_TRUE
721 OPENCONNECT_FALSE
722 OPENCONNECT_TRUE
723 OPENCONNECT
724 HH2SERIAL_GPS_BUILTIN_FALSE
725 HH2SERIAL_GPS_BUILTIN_TRUE
726 HH2SERIAL_GPS_FALSE
727 HH2SERIAL_GPS_TRUE
728 CPP
729 OTOOL64
730 OTOOL
731 LIPO
732 NMEDIT
733 DSYMUTIL
734 MANIFEST_TOOL
735 RANLIB
736 ac_ct_AR
737 AR
738 DLLTOOL
739 OBJDUMP
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 EGREP
747 GREP
748 SED
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 LIBTOOL
758 am__fastdepCC_FALSE
759 am__fastdepCC_TRUE
760 CCDEPMODE
761 am__nodep
762 AMDEPBACKSLASH
763 AMDEP_FALSE
764 AMDEP_TRUE
765 am__quote
766 am__include
767 DEPDIR
768 OBJEXT
769 EXEEXT
770 ac_ct_CC
771 CPPFLAGS
772 LDFLAGS
773 CFLAGS
774 CC
775 abs_top_builddir
776 abs_top_srcdir
777 PKG_CONFIG_LIBDIR
778 PKG_CONFIG_PATH
779 PKG_CONFIG
780 MAINT
781 MAINTAINER_MODE_FALSE
782 MAINTAINER_MODE_TRUE
783 AM_BACKSLASH
784 AM_DEFAULT_VERBOSITY
785 AM_DEFAULT_V
786 AM_V
787 am__untar
788 am__tar
789 AMTAR
790 am__leading_dot
791 SET_MAKE
792 AWK
793 mkdir_p
794 MKDIR_P
795 INSTALL_STRIP_PROGRAM
796 STRIP
797 install_sh
798 MAKEINFO
799 AUTOHEADER
800 AUTOMAKE
801 AUTOCONF
802 ACLOCAL
803 VERSION
804 PACKAGE
805 CYGPATH_W
806 am__isrc
807 INSTALL_DATA
808 INSTALL_SCRIPT
809 INSTALL_PROGRAM
810 target_alias
811 host_alias
812 build_alias
813 LIBS
814 ECHO_T
815 ECHO_N
816 ECHO_C
817 DEFS
818 mandir
819 localedir
820 libdir
821 psdir
822 pdfdir
823 dvidir
824 htmldir
825 infodir
826 docdir
827 oldincludedir
828 includedir
829 localstatedir
830 sharedstatedir
831 sysconfdir
832 datadir
833 datarootdir
834 libexecdir
835 sbindir
836 bindir
837 program_transform_name
838 prefix
839 exec_prefix
840 PACKAGE_URL
841 PACKAGE_BUGREPORT
842 PACKAGE_STRING
843 PACKAGE_VERSION
844 PACKAGE_TARNAME
845 PACKAGE_NAME
846 PATH_SEPARATOR
847 SHELL'
848 ac_subst_files=''
849 ac_user_opts='
850 enable_option_checking
851 enable_silent_rules
852 enable_maintainer_mode
853 enable_dependency_tracking
854 enable_static
855 enable_shared
856 with_pic
857 enable_fast_install
858 with_gnu_ld
859 with_sysroot
860 enable_libtool_lock
861 enable_optimization
862 enable_debug
863 enable_pie
864 enable_hh2serial_gps
865 with_openconnect
866 enable_openconnect
867 with_openvpn
868 enable_openvpn
869 with_vpnc
870 enable_vpnc
871 enable_l2tp
872 enable_pptp
873 enable_iospm
874 enable_tist
875 enable_session_policy_local
876 with_stats_max_file_size
877 with_dbusconfdir
878 with_dbusdatadir
879 with_systemdunitdir
880 enable_test
881 enable_nmcompat
882 enable_polkit
883 enable_selinux
884 enable_loopback
885 enable_ethernet
886 enable_gadget
887 enable_wifi
888 enable_bluetooth
889 enable_ofono
890 enable_dundee
891 enable_pacrunner
892 enable_neard
893 enable_wispr
894 enable_tools
895 enable_client
896 enable_datafiles
897 '
898       ac_precious_vars='build_alias
899 host_alias
900 target_alias
901 PKG_CONFIG
902 PKG_CONFIG_PATH
903 PKG_CONFIG_LIBDIR
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 GLIB_CFLAGS
911 GLIB_LIBS
912 DBUS_CFLAGS
913 DBUS_LIBS
914 XTABLES_CFLAGS
915 XTABLES_LIBS
916 GNUTLS_CFLAGS
917 GNUTLS_LIBS'
918
919
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
941
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972   # If the previous option needs an argument, assign it.
973   if test -n "$ac_prev"; then
974     eval $ac_prev=\$ac_option
975     ac_prev=
976     continue
977   fi
978
979   case $ac_option in
980   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981   *=)   ac_optarg= ;;
982   *)    ac_optarg=yes ;;
983   esac
984
985   # Accept the important Cygnus configure options, so we can diagnose typos.
986
987   case $ac_dashdash$ac_option in
988   --)
989     ac_dashdash=yes ;;
990
991   -bindir | --bindir | --bindi | --bind | --bin | --bi)
992     ac_prev=bindir ;;
993   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994     bindir=$ac_optarg ;;
995
996   -build | --build | --buil | --bui | --bu)
997     ac_prev=build_alias ;;
998   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999     build_alias=$ac_optarg ;;
1000
1001   -cache-file | --cache-file | --cache-fil | --cache-fi \
1002   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003     ac_prev=cache_file ;;
1004   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006     cache_file=$ac_optarg ;;
1007
1008   --config-cache | -C)
1009     cache_file=config.cache ;;
1010
1011   -datadir | --datadir | --datadi | --datad)
1012     ac_prev=datadir ;;
1013   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014     datadir=$ac_optarg ;;
1015
1016   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017   | --dataroo | --dataro | --datar)
1018     ac_prev=datarootdir ;;
1019   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021     datarootdir=$ac_optarg ;;
1022
1023   -disable-* | --disable-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid feature name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval enable_$ac_useropt=no ;;
1038
1039   -docdir | --docdir | --docdi | --doc | --do)
1040     ac_prev=docdir ;;
1041   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042     docdir=$ac_optarg ;;
1043
1044   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045     ac_prev=dvidir ;;
1046   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047     dvidir=$ac_optarg ;;
1048
1049   -enable-* | --enable-*)
1050     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053       as_fn_error $? "invalid feature name: $ac_useropt"
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067   | --exec | --exe | --ex)
1068     ac_prev=exec_prefix ;;
1069   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071   | --exec=* | --exe=* | --ex=*)
1072     exec_prefix=$ac_optarg ;;
1073
1074   -gas | --gas | --ga | --g)
1075     # Obsolete; use --with-gas.
1076     with_gas=yes ;;
1077
1078   -help | --help | --hel | --he | -h)
1079     ac_init_help=long ;;
1080   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081     ac_init_help=recursive ;;
1082   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083     ac_init_help=short ;;
1084
1085   -host | --host | --hos | --ho)
1086     ac_prev=host_alias ;;
1087   -host=* | --host=* | --hos=* | --ho=*)
1088     host_alias=$ac_optarg ;;
1089
1090   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091     ac_prev=htmldir ;;
1092   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093   | --ht=*)
1094     htmldir=$ac_optarg ;;
1095
1096   -includedir | --includedir | --includedi | --included | --include \
1097   | --includ | --inclu | --incl | --inc)
1098     ac_prev=includedir ;;
1099   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100   | --includ=* | --inclu=* | --incl=* | --inc=*)
1101     includedir=$ac_optarg ;;
1102
1103   -infodir | --infodir | --infodi | --infod | --info | --inf)
1104     ac_prev=infodir ;;
1105   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106     infodir=$ac_optarg ;;
1107
1108   -libdir | --libdir | --libdi | --libd)
1109     ac_prev=libdir ;;
1110   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111     libdir=$ac_optarg ;;
1112
1113   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114   | --libexe | --libex | --libe)
1115     ac_prev=libexecdir ;;
1116   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117   | --libexe=* | --libex=* | --libe=*)
1118     libexecdir=$ac_optarg ;;
1119
1120   -localedir | --localedir | --localedi | --localed | --locale)
1121     ac_prev=localedir ;;
1122   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123     localedir=$ac_optarg ;;
1124
1125   -localstatedir | --localstatedir | --localstatedi | --localstated \
1126   | --localstate | --localstat | --localsta | --localst | --locals)
1127     ac_prev=localstatedir ;;
1128   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130     localstatedir=$ac_optarg ;;
1131
1132   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133     ac_prev=mandir ;;
1134   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135     mandir=$ac_optarg ;;
1136
1137   -nfp | --nfp | --nf)
1138     # Obsolete; use --without-fp.
1139     with_fp=no ;;
1140
1141   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142   | --no-cr | --no-c | -n)
1143     no_create=yes ;;
1144
1145   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147     no_recursion=yes ;;
1148
1149   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151   | --oldin | --oldi | --old | --ol | --o)
1152     ac_prev=oldincludedir ;;
1153   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156     oldincludedir=$ac_optarg ;;
1157
1158   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159     ac_prev=prefix ;;
1160   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161     prefix=$ac_optarg ;;
1162
1163   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164   | --program-pre | --program-pr | --program-p)
1165     ac_prev=program_prefix ;;
1166   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168     program_prefix=$ac_optarg ;;
1169
1170   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171   | --program-suf | --program-su | --program-s)
1172     ac_prev=program_suffix ;;
1173   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175     program_suffix=$ac_optarg ;;
1176
1177   -program-transform-name | --program-transform-name \
1178   | --program-transform-nam | --program-transform-na \
1179   | --program-transform-n | --program-transform- \
1180   | --program-transform | --program-transfor \
1181   | --program-transfo | --program-transf \
1182   | --program-trans | --program-tran \
1183   | --progr-tra | --program-tr | --program-t)
1184     ac_prev=program_transform_name ;;
1185   -program-transform-name=* | --program-transform-name=* \
1186   | --program-transform-nam=* | --program-transform-na=* \
1187   | --program-transform-n=* | --program-transform-=* \
1188   | --program-transform=* | --program-transfor=* \
1189   | --program-transfo=* | --program-transf=* \
1190   | --program-trans=* | --program-tran=* \
1191   | --progr-tra=* | --program-tr=* | --program-t=*)
1192     program_transform_name=$ac_optarg ;;
1193
1194   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195     ac_prev=pdfdir ;;
1196   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197     pdfdir=$ac_optarg ;;
1198
1199   -psdir | --psdir | --psdi | --psd | --ps)
1200     ac_prev=psdir ;;
1201   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202     psdir=$ac_optarg ;;
1203
1204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205   | -silent | --silent | --silen | --sile | --sil)
1206     silent=yes ;;
1207
1208   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209     ac_prev=sbindir ;;
1210   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211   | --sbi=* | --sb=*)
1212     sbindir=$ac_optarg ;;
1213
1214   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216   | --sharedst | --shareds | --shared | --share | --shar \
1217   | --sha | --sh)
1218     ac_prev=sharedstatedir ;;
1219   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222   | --sha=* | --sh=*)
1223     sharedstatedir=$ac_optarg ;;
1224
1225   -site | --site | --sit)
1226     ac_prev=site ;;
1227   -site=* | --site=* | --sit=*)
1228     site=$ac_optarg ;;
1229
1230   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231     ac_prev=srcdir ;;
1232   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233     srcdir=$ac_optarg ;;
1234
1235   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236   | --syscon | --sysco | --sysc | --sys | --sy)
1237     ac_prev=sysconfdir ;;
1238   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240     sysconfdir=$ac_optarg ;;
1241
1242   -target | --target | --targe | --targ | --tar | --ta | --t)
1243     ac_prev=target_alias ;;
1244   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245     target_alias=$ac_optarg ;;
1246
1247   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248     verbose=yes ;;
1249
1250   -version | --version | --versio | --versi | --vers | -V)
1251     ac_init_version=: ;;
1252
1253   -with-* | --with-*)
1254     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257       as_fn_error $? "invalid package name: $ac_useropt"
1258     ac_useropt_orig=$ac_useropt
1259     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260     case $ac_user_opts in
1261       *"
1262 "with_$ac_useropt"
1263 "*) ;;
1264       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265          ac_unrecognized_sep=', ';;
1266     esac
1267     eval with_$ac_useropt=\$ac_optarg ;;
1268
1269   -without-* | --without-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       as_fn_error $? "invalid package name: $ac_useropt"
1274     ac_useropt_orig=$ac_useropt
1275     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276     case $ac_user_opts in
1277       *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281          ac_unrecognized_sep=', ';;
1282     esac
1283     eval with_$ac_useropt=no ;;
1284
1285   --x)
1286     # Obsolete; use --with-x.
1287     with_x=yes ;;
1288
1289   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290   | --x-incl | --x-inc | --x-in | --x-i)
1291     ac_prev=x_includes ;;
1292   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294     x_includes=$ac_optarg ;;
1295
1296   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298     ac_prev=x_libraries ;;
1299   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301     x_libraries=$ac_optarg ;;
1302
1303   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1305     ;;
1306
1307   *=*)
1308     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309     # Reject names that are not valid shell variable names.
1310     case $ac_envvar in #(
1311       '' | [0-9]* | *[!_$as_cr_alnum]* )
1312       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313     esac
1314     eval $ac_envvar=\$ac_optarg
1315     export $ac_envvar ;;
1316
1317   *)
1318     # FIXME: should be removed in autoconf 3.0.
1319     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323     ;;
1324
1325   esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330   as_fn_error $? "missing argument to $ac_option"
1331 fi
1332
1333 if test -n "$ac_unrecognized_opts"; then
1334   case $enable_option_checking in
1335     no) ;;
1336     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338   esac
1339 fi
1340
1341 # Check all directory arguments for consistency.
1342 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343                 datadir sysconfdir sharedstatedir localstatedir includedir \
1344                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345                 libdir localedir mandir
1346 do
1347   eval ac_val=\$$ac_var
1348   # Remove trailing slashes.
1349   case $ac_val in
1350     */ )
1351       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352       eval $ac_var=\$ac_val;;
1353   esac
1354   # Be sure to have absolute directory names.
1355   case $ac_val in
1356     [\\/$]* | ?:[\\/]* )  continue;;
1357     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358   esac
1359   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1361
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1368
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371   if test "x$build_alias" = x; then
1372     cross_compiling=maybe
1373   elif test "x$build_alias" != "x$host_alias"; then
1374     cross_compiling=yes
1375   fi
1376 fi
1377
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381 test "$silent" = yes && exec 6>/dev/null
1382
1383
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387   as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389   as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394   ac_srcdir_defaulted=yes
1395   # Try the directory containing this script, then the parent directory.
1396   ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398          X"$as_myself" : 'X\(//\)[^/]' \| \
1399          X"$as_myself" : 'X\(//\)$' \| \
1400          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)[^/].*/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\/\)$/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\).*/{
1415             s//\1/
1416             q
1417           }
1418           s/.*/./; q'`
1419   srcdir=$ac_confdir
1420   if test ! -r "$srcdir/$ac_unique_file"; then
1421     srcdir=..
1422   fi
1423 else
1424   ac_srcdir_defaulted=no
1425 fi
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433         pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436   srcdir=.
1437 fi
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_env_${ac_var}_value=\$${ac_var}
1447   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1450
1451 #
1452 # Report the --help message.
1453 #
1454 if test "$ac_init_help" = "long"; then
1455   # Omit some internal or obsolete options to make the list less imposing.
1456   # This message is too long to be a string in the A/UX 3.1 sh.
1457   cat <<_ACEOF
1458 \`configure' configures connman 1.26 to adapt to many kinds of systems.
1459
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465 Defaults for the options are specified in brackets.
1466
1467 Configuration:
1468   -h, --help              display this help and exit
1469       --help=short        display options specific to this package
1470       --help=recursive    display the short help of all the included packages
1471   -V, --version           display version information and exit
1472   -q, --quiet, --silent   do not print \`checking ...' messages
1473       --cache-file=FILE   cache test results in FILE [disabled]
1474   -C, --config-cache      alias for \`--cache-file=config.cache'
1475   -n, --no-create         do not create output files
1476       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478 Installation directories:
1479   --prefix=PREFIX         install architecture-independent files in PREFIX
1480                           [$ac_default_prefix]
1481   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                           [PREFIX]
1483
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1488
1489 For better control, use the options below.
1490
1491 Fine tuning of the installation directories:
1492   --bindir=DIR            user executables [EPREFIX/bin]
1493   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1494   --libexecdir=DIR        program executables [EPREFIX/libexec]
1495   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1496   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1497   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1498   --libdir=DIR            object code libraries [EPREFIX/lib]
1499   --includedir=DIR        C header files [PREFIX/include]
1500   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1501   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1502   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1503   --infodir=DIR           info documentation [DATAROOTDIR/info]
1504   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1505   --mandir=DIR            man documentation [DATAROOTDIR/man]
1506   --docdir=DIR            documentation root [DATAROOTDIR/doc/connman]
1507   --htmldir=DIR           html documentation [DOCDIR]
1508   --dvidir=DIR            dvi documentation [DOCDIR]
1509   --pdfdir=DIR            pdf documentation [DOCDIR]
1510   --psdir=DIR             ps documentation [DOCDIR]
1511 _ACEOF
1512
1513   cat <<\_ACEOF
1514
1515 Program names:
1516   --program-prefix=PREFIX            prepend PREFIX to installed program names
1517   --program-suffix=SUFFIX            append SUFFIX to installed program names
1518   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1519
1520 System types:
1521   --build=BUILD     configure for building on BUILD [guessed]
1522   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527   case $ac_init_help in
1528      short | recursive ) echo "Configuration of connman 1.26:";;
1529    esac
1530   cat <<\_ACEOF
1531
1532 Optional Features:
1533   --disable-option-checking  ignore unrecognized --enable/--with options
1534   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536   --enable-silent-rules          less verbose build output (undo: `make V=1')
1537   --disable-silent-rules         verbose build output (undo: `make V=0')
1538   --enable-maintainer-mode  enable make rules and dependencies not useful
1539                           (and sometimes confusing) to the casual installer
1540   --disable-dependency-tracking  speeds up one-time build
1541   --enable-dependency-tracking   do not reject slow dependency extractors
1542   --enable-static[=PKGS]  build static libraries [default=no]
1543   --enable-shared[=PKGS]  build shared libraries [default=yes]
1544   --enable-fast-install[=PKGS]
1545                           optimize for fast installation [default=yes]
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547   --disable-optimization  disable code optimization through compiler
1548   --enable-debug          enable compiling with debugging information
1549   --enable-pie            enable position independent executables flag
1550   --enable-hh2serial-gps  enable hh2serial GPS support
1551   --enable-openconnect    enable openconnect support
1552   --enable-openvpn        enable openvpn support
1553   --enable-vpnc           enable vpnc support
1554   --enable-l2tp           enable l2tp support
1555   --enable-pptp           enable pptp support
1556   --enable-iospm          enable Intel OSPM support
1557   --enable-tist           enable TI Shared Transport support
1558   --enable-session-policy-local
1559                           enable local file Session policy configuration
1560                           support
1561   --enable-test           enable test/example scripts
1562   --enable-nmcompat       enable Network Manager support
1563   --enable-polkit         enable PolicyKit support
1564   --enable-selinux        enable selinux support
1565   --disable-loopback      disable loopback support
1566   --disable-ethernet      disable Ethernet support
1567   --disable-gadget        disable USB Gadget support
1568   --disable-wifi          disable WiFi support
1569   --disable-bluetooth     disable Bluetooth support
1570   --disable-ofono         disable oFono support
1571   --disable-dundee        disable dundee support (Bluetooth DUN)
1572   --disable-pacrunner     disable PACrunner support
1573   --disable-neard         disable Neard support
1574   --disable-wispr         disable WISPr support
1575   --disable-tools         disable testing tools
1576   --disable-client        disable command line client
1577   --disable-datafiles     don't install configuration and data files
1578
1579 Optional Packages:
1580   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1583                           both]
1584   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1585   --with-sysroot=DIR Search for dependent libraries within DIR
1586                         (or the compiler's sysroot if not specified).
1587   --with-openconnect=PROGRAM
1588                           specify location of openconnect binary
1589   --with-openvpn=PROGRAM  specify location of openvpn binary
1590   --with-vpnc=PROGRAM     specify location of vpnc binary
1591   --with-stats-max-file-size=SIZE
1592                           Maximal size of a statistics round robin file
1593   --with-dbusconfdir=PATH path to D-Bus config directory
1594   --with-dbusdatadir=PATH path to D-Bus data directory
1595   --with-systemdunitdir=DIR
1596                           path to systemd service directory
1597
1598 Some influential environment variables:
1599   PKG_CONFIG  path to pkg-config utility
1600   PKG_CONFIG_PATH
1601               directories to add to pkg-config's search path
1602   PKG_CONFIG_LIBDIR
1603               path overriding pkg-config's built-in search path
1604   CC          C compiler command
1605   CFLAGS      C compiler flags
1606   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1607               nonstandard directory <lib dir>
1608   LIBS        libraries to pass to the linker, e.g. -l<library>
1609   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1610               you have headers in a nonstandard directory <include dir>
1611   CPP         C preprocessor
1612   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1613   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1614   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1615   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1616   XTABLES_CFLAGS
1617               C compiler flags for XTABLES, overriding pkg-config
1618   XTABLES_LIBS
1619               linker flags for XTABLES, overriding pkg-config
1620   GNUTLS_CFLAGS
1621               C compiler flags for GNUTLS, overriding pkg-config
1622   GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1623
1624 Use these variables to override the choices made by `configure' or to help
1625 it to find libraries and programs with nonstandard names/locations.
1626
1627 Report bugs to the package provider.
1628 _ACEOF
1629 ac_status=$?
1630 fi
1631
1632 if test "$ac_init_help" = "recursive"; then
1633   # If there are subdirs, report their specific --help.
1634   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635     test -d "$ac_dir" ||
1636       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637       continue
1638     ac_builddir=.
1639
1640 case "$ac_dir" in
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *)
1643   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1644   # A ".." for each directory in $ac_dir_suffix.
1645   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646   case $ac_top_builddir_sub in
1647   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649   esac ;;
1650 esac
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1655
1656 case $srcdir in
1657   .)  # We are building in place.
1658     ac_srcdir=.
1659     ac_top_srcdir=$ac_top_builddir_sub
1660     ac_abs_top_srcdir=$ac_pwd ;;
1661   [\\/]* | ?:[\\/]* )  # Absolute name.
1662     ac_srcdir=$srcdir$ac_dir_suffix;
1663     ac_top_srcdir=$srcdir
1664     ac_abs_top_srcdir=$srcdir ;;
1665   *) # Relative name.
1666     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667     ac_top_srcdir=$ac_top_build_prefix$srcdir
1668     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669 esac
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672     cd "$ac_dir" || { ac_status=$?; continue; }
1673     # Check for guested configure.
1674     if test -f "$ac_srcdir/configure.gnu"; then
1675       echo &&
1676       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677     elif test -f "$ac_srcdir/configure"; then
1678       echo &&
1679       $SHELL "$ac_srcdir/configure" --help=recursive
1680     else
1681       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682     fi || ac_status=$?
1683     cd "$ac_pwd" || { ac_status=$?; break; }
1684   done
1685 fi
1686
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1689   cat <<\_ACEOF
1690 connman configure 1.26
1691 generated by GNU Autoconf 2.69
1692
1693 Copyright (C) 2012 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1696 _ACEOF
1697   exit
1698 fi
1699
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1703
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   rm -f conftest.$ac_objext
1711   if { { ac_try="$ac_compile"
1712 case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_compile") 2>conftest.err
1719   ac_status=$?
1720   if test -s conftest.err; then
1721     grep -v '^ *+' conftest.err >conftest.er1
1722     cat conftest.er1 >&5
1723     mv -f conftest.er1 conftest.err
1724   fi
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; } && {
1727          test -z "$ac_c_werror_flag" ||
1728          test ! -s conftest.err
1729        } && test -s conftest.$ac_objext; then :
1730   ac_retval=0
1731 else
1732   $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735         ac_retval=1
1736 fi
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738   as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_compile
1741
1742 # ac_fn_c_try_link LINENO
1743 # -----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_link ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   rm -f conftest.$ac_objext conftest$ac_exeext
1749   if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_link") 2>conftest.err
1757   ac_status=$?
1758   if test -s conftest.err; then
1759     grep -v '^ *+' conftest.err >conftest.er1
1760     cat conftest.er1 >&5
1761     mv -f conftest.er1 conftest.err
1762   fi
1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764   test $ac_status = 0; } && {
1765          test -z "$ac_c_werror_flag" ||
1766          test ! -s conftest.err
1767        } && test -s conftest$ac_exeext && {
1768          test "$cross_compiling" = yes ||
1769          test -x conftest$ac_exeext
1770        }; then :
1771   ac_retval=0
1772 else
1773   $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776         ac_retval=1
1777 fi
1778   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780   # interfere with the next link command; also delete a directory that is
1781   # left behind by Apple's compiler.  We do this before executing the actions.
1782   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784   as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_link
1787
1788 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists and can be compiled using the include files in
1791 # INCLUDES, setting the cache variable VAR accordingly.
1792 ac_fn_c_check_header_compile ()
1793 {
1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798   $as_echo_n "(cached) " >&6
1799 else
1800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h.  */
1802 $4
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806   eval "$3=yes"
1807 else
1808   eval "$3=no"
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_header_compile
1818
1819 # ac_fn_c_try_cpp LINENO
1820 # ----------------------
1821 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_cpp ()
1823 {
1824   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825   if { { ac_try="$ac_cpp conftest.$ac_ext"
1826 case "(($ac_try" in
1827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828   *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1833   ac_status=$?
1834   if test -s conftest.err; then
1835     grep -v '^ *+' conftest.err >conftest.er1
1836     cat conftest.er1 >&5
1837     mv -f conftest.er1 conftest.err
1838   fi
1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840   test $ac_status = 0; } > conftest.i && {
1841          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1842          test ! -s conftest.err
1843        }; then :
1844   ac_retval=0
1845 else
1846   $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849     ac_retval=1
1850 fi
1851   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852   as_fn_set_status $ac_retval
1853
1854 } # ac_fn_c_try_cpp
1855
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1860 ac_fn_c_try_run ()
1861 {
1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863   if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_link") 2>&5
1871   ac_status=$?
1872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874   { { case "(($ac_try" in
1875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876   *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880   (eval "$ac_try") 2>&5
1881   ac_status=$?
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; }; }; then :
1884   ac_retval=0
1885 else
1886   $as_echo "$as_me: program exited with status $ac_status" >&5
1887        $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890        ac_retval=$ac_status
1891 fi
1892   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_try_run
1897
1898 # ac_fn_c_check_func LINENO FUNC VAR
1899 # ----------------------------------
1900 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1901 ac_fn_c_check_func ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907   $as_echo_n "(cached) " >&6
1908 else
1909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h.  */
1911 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1913 #define $2 innocuous_$2
1914
1915 /* System header to define __stub macros and hopefully few prototypes,
1916     which can conflict with char $2 (); below.
1917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1918     <limits.h> exists even on freestanding compilers.  */
1919
1920 #ifdef __STDC__
1921 # include <limits.h>
1922 #else
1923 # include <assert.h>
1924 #endif
1925
1926 #undef $2
1927
1928 /* Override any GCC internal prototype to avoid an error.
1929    Use char because int might match the return type of a GCC
1930    builtin and then its argument prototype would still apply.  */
1931 #ifdef __cplusplus
1932 extern "C"
1933 #endif
1934 char $2 ();
1935 /* The GNU C library defines this for functions which it implements
1936     to always fail with ENOSYS.  Some functions are actually named
1937     something starting with __ and the normal name is an alias.  */
1938 #if defined __stub_$2 || defined __stub___$2
1939 choke me
1940 #endif
1941
1942 int
1943 main ()
1944 {
1945 return $2 ();
1946   ;
1947   return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_link "$LINENO"; then :
1951   eval "$3=yes"
1952 else
1953   eval "$3=no"
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext \
1956     conftest$ac_exeext conftest.$ac_ext
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963 } # ac_fn_c_check_func
1964
1965 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1969 # accordingly.
1970 ac_fn_c_check_header_mongrel ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   if eval \${$3+:} false; then :
1974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977   $as_echo_n "(cached) " >&6
1978 fi
1979 eval ac_res=\$$3
1980                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 else
1983   # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992   ac_header_compiler=yes
1993 else
1994   ac_header_compiler=no
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
1999
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_c_try_cpp "$LINENO"; then :
2008   ac_header_preproc=yes
2009 else
2010   ac_header_preproc=no
2011 fi
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2015
2016 # So?  What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2018   yes:no: )
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023     ;;
2024   no:yes:* )
2025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035     ;;
2036 esac
2037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040   $as_echo_n "(cached) " >&6
2041 else
2042   eval "$3=\$ac_header_compiler"
2043 fi
2044 eval ac_res=\$$3
2045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 fi
2048   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050 } # ac_fn_c_check_header_mongrel
2051 cat >config.log <<_ACEOF
2052 This file contains any messages produced by compilers while
2053 running configure, to aid debugging if configure makes a mistake.
2054
2055 It was created by connman $as_me 1.26, which was
2056 generated by GNU Autoconf 2.69.  Invocation command line was
2057
2058   $ $0 $@
2059
2060 _ACEOF
2061 exec 5>>config.log
2062 {
2063 cat <<_ASUNAME
2064 ## --------- ##
2065 ## Platform. ##
2066 ## --------- ##
2067
2068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2073
2074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2075 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2076
2077 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2078 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2080 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2081 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2082 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2083 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2084
2085 _ASUNAME
2086
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090   IFS=$as_save_IFS
2091   test -z "$as_dir" && as_dir=.
2092     $as_echo "PATH: $as_dir"
2093   done
2094 IFS=$as_save_IFS
2095
2096 } >&5
2097
2098 cat >&5 <<_ACEOF
2099
2100
2101 ## ----------- ##
2102 ## Core tests. ##
2103 ## ----------- ##
2104
2105 _ACEOF
2106
2107
2108 # Keep a trace of the command line.
2109 # Strip out --no-create and --no-recursion so they do not pile up.
2110 # Strip out --silent because we don't want to record it for future runs.
2111 # Also quote any args containing shell meta-characters.
2112 # Make two passes to allow for proper duplicate-argument suppression.
2113 ac_configure_args=
2114 ac_configure_args0=
2115 ac_configure_args1=
2116 ac_must_keep_next=false
2117 for ac_pass in 1 2
2118 do
2119   for ac_arg
2120   do
2121     case $ac_arg in
2122     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2123     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2124     | -silent | --silent | --silen | --sile | --sil)
2125       continue ;;
2126     *\'*)
2127       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2128     esac
2129     case $ac_pass in
2130     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2131     2)
2132       as_fn_append ac_configure_args1 " '$ac_arg'"
2133       if test $ac_must_keep_next = true; then
2134         ac_must_keep_next=false # Got value, back to normal.
2135       else
2136         case $ac_arg in
2137           *=* | --config-cache | -C | -disable-* | --disable-* \
2138           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2139           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2140           | -with-* | --with-* | -without-* | --without-* | --x)
2141             case "$ac_configure_args0 " in
2142               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2143             esac
2144             ;;
2145           -* ) ac_must_keep_next=true ;;
2146         esac
2147       fi
2148       as_fn_append ac_configure_args " '$ac_arg'"
2149       ;;
2150     esac
2151   done
2152 done
2153 { ac_configure_args0=; unset ac_configure_args0;}
2154 { ac_configure_args1=; unset ac_configure_args1;}
2155
2156 # When interrupted or exit'd, cleanup temporary files, and complete
2157 # config.log.  We remove comments because anyway the quotes in there
2158 # would cause problems or look ugly.
2159 # WARNING: Use '\'' to represent an apostrophe within the trap.
2160 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2161 trap 'exit_status=$?
2162   # Save into config.log some information that might help in debugging.
2163   {
2164     echo
2165
2166     $as_echo "## ---------------- ##
2167 ## Cache variables. ##
2168 ## ---------------- ##"
2169     echo
2170     # The following way of writing the cache mishandles newlines in values,
2171 (
2172   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2173     eval ac_val=\$$ac_var
2174     case $ac_val in #(
2175     *${as_nl}*)
2176       case $ac_var in #(
2177       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2179       esac
2180       case $ac_var in #(
2181       _ | IFS | as_nl) ;; #(
2182       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2183       *) { eval $ac_var=; unset $ac_var;} ;;
2184       esac ;;
2185     esac
2186   done
2187   (set) 2>&1 |
2188     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2189     *${as_nl}ac_space=\ *)
2190       sed -n \
2191         "s/'\''/'\''\\\\'\'''\''/g;
2192           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2193       ;; #(
2194     *)
2195       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2196       ;;
2197     esac |
2198     sort
2199 )
2200     echo
2201
2202     $as_echo "## ----------------- ##
2203 ## Output variables. ##
2204 ## ----------------- ##"
2205     echo
2206     for ac_var in $ac_subst_vars
2207     do
2208       eval ac_val=\$$ac_var
2209       case $ac_val in
2210       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211       esac
2212       $as_echo "$ac_var='\''$ac_val'\''"
2213     done | sort
2214     echo
2215
2216     if test -n "$ac_subst_files"; then
2217       $as_echo "## ------------------- ##
2218 ## File substitutions. ##
2219 ## ------------------- ##"
2220       echo
2221       for ac_var in $ac_subst_files
2222       do
2223         eval ac_val=\$$ac_var
2224         case $ac_val in
2225         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226         esac
2227         $as_echo "$ac_var='\''$ac_val'\''"
2228       done | sort
2229       echo
2230     fi
2231
2232     if test -s confdefs.h; then
2233       $as_echo "## ----------- ##
2234 ## confdefs.h. ##
2235 ## ----------- ##"
2236       echo
2237       cat confdefs.h
2238       echo
2239     fi
2240     test "$ac_signal" != 0 &&
2241       $as_echo "$as_me: caught signal $ac_signal"
2242     $as_echo "$as_me: exit $exit_status"
2243   } >&5
2244   rm -f core *.core core.conftest.* &&
2245     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2246     exit $exit_status
2247 ' 0
2248 for ac_signal in 1 2 13 15; do
2249   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2250 done
2251 ac_signal=0
2252
2253 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2254 rm -f -r conftest* confdefs.h
2255
2256 $as_echo "/* confdefs.h */" > confdefs.h
2257
2258 # Predefined preprocessor variables.
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_NAME "$PACKAGE_NAME"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_STRING "$PACKAGE_STRING"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_URL "$PACKAGE_URL"
2282 _ACEOF
2283
2284
2285 # Let the site file select an alternate cache file if it wants to.
2286 # Prefer an explicitly selected file to automatically selected ones.
2287 ac_site_file1=NONE
2288 ac_site_file2=NONE
2289 if test -n "$CONFIG_SITE"; then
2290   # We do not want a PATH search for config.site.
2291   case $CONFIG_SITE in #((
2292     -*)  ac_site_file1=./$CONFIG_SITE;;
2293     */*) ac_site_file1=$CONFIG_SITE;;
2294     *)   ac_site_file1=./$CONFIG_SITE;;
2295   esac
2296 elif test "x$prefix" != xNONE; then
2297   ac_site_file1=$prefix/share/config.site
2298   ac_site_file2=$prefix/etc/config.site
2299 else
2300   ac_site_file1=$ac_default_prefix/share/config.site
2301   ac_site_file2=$ac_default_prefix/etc/config.site
2302 fi
2303 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2304 do
2305   test "x$ac_site_file" = xNONE && continue
2306   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2307     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2308 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2309     sed 's/^/| /' "$ac_site_file" >&5
2310     . "$ac_site_file" \
2311       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313 as_fn_error $? "failed to load site script $ac_site_file
2314 See \`config.log' for more details" "$LINENO" 5; }
2315   fi
2316 done
2317
2318 if test -r "$cache_file"; then
2319   # Some versions of bash will fail to source /dev/null (special files
2320   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2321   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2322     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2323 $as_echo "$as_me: loading cache $cache_file" >&6;}
2324     case $cache_file in
2325       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2326       *)                      . "./$cache_file";;
2327     esac
2328   fi
2329 else
2330   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2331 $as_echo "$as_me: creating cache $cache_file" >&6;}
2332   >$cache_file
2333 fi
2334
2335 # Check that the precious variables saved in the cache have kept the same
2336 # value.
2337 ac_cache_corrupted=false
2338 for ac_var in $ac_precious_vars; do
2339   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2340   eval ac_new_set=\$ac_env_${ac_var}_set
2341   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2342   eval ac_new_val=\$ac_env_${ac_var}_value
2343   case $ac_old_set,$ac_new_set in
2344     set,)
2345       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2346 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2347       ac_cache_corrupted=: ;;
2348     ,set)
2349       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2351       ac_cache_corrupted=: ;;
2352     ,);;
2353     *)
2354       if test "x$ac_old_val" != "x$ac_new_val"; then
2355         # differences in whitespace do not lead to failure.
2356         ac_old_val_w=`echo x $ac_old_val`
2357         ac_new_val_w=`echo x $ac_new_val`
2358         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2359           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2360 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2361           ac_cache_corrupted=:
2362         else
2363           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2364 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2365           eval $ac_var=\$ac_old_val
2366         fi
2367         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2368 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2369         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2370 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2371       fi;;
2372   esac
2373   # Pass precious variables to config.status.
2374   if test "$ac_new_set" = set; then
2375     case $ac_new_val in
2376     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2377     *) ac_arg=$ac_var=$ac_new_val ;;
2378     esac
2379     case " $ac_configure_args " in
2380       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2381       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2382     esac
2383   fi
2384 done
2385 if $ac_cache_corrupted; then
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2389 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2390   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2391 fi
2392 ## -------------------- ##
2393 ## Main body of script. ##
2394 ## -------------------- ##
2395
2396 ac_ext=c
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401
2402
2403
2404 am__api_version='1.11'
2405
2406 ac_aux_dir=
2407 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2408   if test -f "$ac_dir/install-sh"; then
2409     ac_aux_dir=$ac_dir
2410     ac_install_sh="$ac_aux_dir/install-sh -c"
2411     break
2412   elif test -f "$ac_dir/install.sh"; then
2413     ac_aux_dir=$ac_dir
2414     ac_install_sh="$ac_aux_dir/install.sh -c"
2415     break
2416   elif test -f "$ac_dir/shtool"; then
2417     ac_aux_dir=$ac_dir
2418     ac_install_sh="$ac_aux_dir/shtool install -c"
2419     break
2420   fi
2421 done
2422 if test -z "$ac_aux_dir"; then
2423   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2424 fi
2425
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2431 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2432 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2433
2434
2435 # Find a good install program.  We prefer a C program (faster),
2436 # so one script is as good as another.  But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2441 # AIX /bin/install
2442 # AmigaOS /C/install, which installs bootblocks on floppy discs
2443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446 # OS/2's system install, which has a completely different semantic
2447 # ./install, which can be erroneously created by make from ./install.sh.
2448 # Reject install programs that cannot install multiple files.
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2451 if test -z "$INSTALL"; then
2452 if ${ac_cv_path_install+:} false; then :
2453   $as_echo_n "(cached) " >&6
2454 else
2455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460     # Account for people who put trailing slashes in PATH elements.
2461 case $as_dir/ in #((
2462   ./ | .// | /[cC]/* | \
2463   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2464   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2465   /usr/ucb/* ) ;;
2466   *)
2467     # OSF1 and SCO ODT 3.0 have their own names for install.
2468     # Don't use installbsd from OSF since it installs stuff as root
2469     # by default.
2470     for ac_prog in ginstall scoinst install; do
2471       for ac_exec_ext in '' $ac_executable_extensions; do
2472         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2473           if test $ac_prog = install &&
2474             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475             # AIX install.  It has an incompatible calling convention.
2476             :
2477           elif test $ac_prog = install &&
2478             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479             # program-specific install script used by HP pwplus--don't use.
2480             :
2481           else
2482             rm -rf conftest.one conftest.two conftest.dir
2483             echo one > conftest.one
2484             echo two > conftest.two
2485             mkdir conftest.dir
2486             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487               test -s conftest.one && test -s conftest.two &&
2488               test -s conftest.dir/conftest.one &&
2489               test -s conftest.dir/conftest.two
2490             then
2491               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492               break 3
2493             fi
2494           fi
2495         fi
2496       done
2497     done
2498     ;;
2499 esac
2500
2501   done
2502 IFS=$as_save_IFS
2503
2504 rm -rf conftest.one conftest.two conftest.dir
2505
2506 fi
2507   if test "${ac_cv_path_install+set}" = set; then
2508     INSTALL=$ac_cv_path_install
2509   else
2510     # As a last resort, use the slow shell script.  Don't cache a
2511     # value for INSTALL within a source directory, because that will
2512     # break other packages using the cache if that directory is
2513     # removed, or if the value is a relative name.
2514     INSTALL=$ac_install_sh
2515   fi
2516 fi
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518 $as_echo "$INSTALL" >&6; }
2519
2520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521 # It thinks the first close brace ends the variable substitution.
2522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523
2524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2525
2526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2529 $as_echo_n "checking whether build environment is sane... " >&6; }
2530 # Just in case
2531 sleep 1
2532 echo timestamp > conftest.file
2533 # Reject unsafe characters in $srcdir or the absolute working directory
2534 # name.  Accept space and tab only in the latter.
2535 am_lf='
2536 '
2537 case `pwd` in
2538   *[\\\"\#\$\&\'\`$am_lf]*)
2539     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2540 esac
2541 case $srcdir in
2542   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2543     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2544 esac
2545
2546 # Do `set' in a subshell so we don't clobber the current shell's
2547 # arguments.  Must try -L first in case configure is actually a
2548 # symlink; some systems play weird games with the mod time of symlinks
2549 # (eg FreeBSD returns the mod time of the symlink's containing
2550 # directory).
2551 if (
2552    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2553    if test "$*" = "X"; then
2554       # -L didn't work.
2555       set X `ls -t "$srcdir/configure" conftest.file`
2556    fi
2557    rm -f conftest.file
2558    if test "$*" != "X $srcdir/configure conftest.file" \
2559       && test "$*" != "X conftest.file $srcdir/configure"; then
2560
2561       # If neither matched, then we have a broken ls.  This can happen
2562       # if, for instance, CONFIG_SHELL is bash and it inherits a
2563       # broken ls alias from the environment.  This has actually
2564       # happened.  Such a system could not be considered "sane".
2565       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2566 alias in your environment" "$LINENO" 5
2567    fi
2568
2569    test "$2" = conftest.file
2570    )
2571 then
2572    # Ok.
2573    :
2574 else
2575    as_fn_error $? "newly created file is older than distributed files!
2576 Check your system clock" "$LINENO" 5
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2579 $as_echo "yes" >&6; }
2580 test "$program_prefix" != NONE &&
2581   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2582 # Use a double $ so make ignores it.
2583 test "$program_suffix" != NONE &&
2584   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2585 # Double any \ or $.
2586 # By default was `s,x,x', remove it if useless.
2587 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2588 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2589
2590 # expand $ac_aux_dir to an absolute path
2591 am_aux_dir=`cd $ac_aux_dir && pwd`
2592
2593 if test x"${MISSING+set}" != xset; then
2594   case $am_aux_dir in
2595   *\ * | *\     *)
2596     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2597   *)
2598     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2599   esac
2600 fi
2601 # Use eval to expand $SHELL
2602 if eval "$MISSING --run true"; then
2603   am_missing_run="$MISSING --run "
2604 else
2605   am_missing_run=
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2607 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2608 fi
2609
2610 if test x"${install_sh}" != xset; then
2611   case $am_aux_dir in
2612   *\ * | *\     *)
2613     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2614   *)
2615     install_sh="\${SHELL} $am_aux_dir/install-sh"
2616   esac
2617 fi
2618
2619 # Installed binaries are usually stripped using `strip' when the user
2620 # run `make install-strip'.  However `strip' might not be the right
2621 # tool to use in cross-compilation environments, therefore Automake
2622 # will honor the `STRIP' environment variable to overrule this program.
2623 if test "$cross_compiling" != no; then
2624   if test -n "$ac_tool_prefix"; then
2625   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}strip; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_STRIP+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   if test -n "$STRIP"; then
2633   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640     for ac_exec_ext in '' $ac_executable_extensions; do
2641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647   done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 STRIP=$ac_cv_prog_STRIP
2653 if test -n "$STRIP"; then
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2655 $as_echo "$STRIP" >&6; }
2656 else
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661
2662 fi
2663 if test -z "$ac_cv_prog_STRIP"; then
2664   ac_ct_STRIP=$STRIP
2665   # Extract the first word of "strip", so it can be a program name with args.
2666 set dummy strip; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   if test -n "$ac_ct_STRIP"; then
2673   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678   IFS=$as_save_IFS
2679   test -z "$as_dir" && as_dir=.
2680     for ac_exec_ext in '' $ac_executable_extensions; do
2681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682     ac_cv_prog_ac_ct_STRIP="strip"
2683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684     break 2
2685   fi
2686 done
2687   done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2693 if test -n "$ac_ct_STRIP"; then
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2695 $as_echo "$ac_ct_STRIP" >&6; }
2696 else
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701   if test "x$ac_ct_STRIP" = x; then
2702     STRIP=":"
2703   else
2704     case $cross_compiling:$ac_tool_warned in
2705 yes:)
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708 ac_tool_warned=yes ;;
2709 esac
2710     STRIP=$ac_ct_STRIP
2711   fi
2712 else
2713   STRIP="$ac_cv_prog_STRIP"
2714 fi
2715
2716 fi
2717 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2720 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2721 if test -z "$MKDIR_P"; then
2722   if ${ac_cv_path_mkdir+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730     for ac_prog in mkdir gmkdir; do
2731          for ac_exec_ext in '' $ac_executable_extensions; do
2732            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2733            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2734              'mkdir (GNU coreutils) '* | \
2735              'mkdir (coreutils) '* | \
2736              'mkdir (fileutils) '4.1*)
2737                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2738                break 3;;
2739            esac
2740          done
2741        done
2742   done
2743 IFS=$as_save_IFS
2744
2745 fi
2746
2747   test -d ./--version && rmdir ./--version
2748   if test "${ac_cv_path_mkdir+set}" = set; then
2749     MKDIR_P="$ac_cv_path_mkdir -p"
2750   else
2751     # As a last resort, use the slow shell script.  Don't cache a
2752     # value for MKDIR_P within a source directory, because that will
2753     # break other packages using the cache if that directory is
2754     # removed, or if the value is a relative name.
2755     MKDIR_P="$ac_install_sh -d"
2756   fi
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2759 $as_echo "$MKDIR_P" >&6; }
2760
2761 mkdir_p="$MKDIR_P"
2762 case $mkdir_p in
2763   [\\/$]* | ?:[\\/]*) ;;
2764   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2765 esac
2766
2767 for ac_prog in gawk mawk nawk awk
2768 do
2769   # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_AWK+:} false; then :
2774   $as_echo_n "(cached) " >&6
2775 else
2776   if test -n "$AWK"; then
2777   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784     for ac_exec_ext in '' $ac_executable_extensions; do
2785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786     ac_cv_prog_AWK="$ac_prog"
2787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791   done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 AWK=$ac_cv_prog_AWK
2797 if test -n "$AWK"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2799 $as_echo "$AWK" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806   test -n "$AWK" && break
2807 done
2808
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2810 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2811 set x ${MAKE-make}
2812 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2813 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   cat >conftest.make <<\_ACEOF
2817 SHELL = /bin/sh
2818 all:
2819         @echo '@@@%%%=$(MAKE)=@@@%%%'
2820 _ACEOF
2821 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2822 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2823   *@@@%%%=?*=@@@%%%*)
2824     eval ac_cv_prog_make_${ac_make}_set=yes;;
2825   *)
2826     eval ac_cv_prog_make_${ac_make}_set=no;;
2827 esac
2828 rm -f conftest.make
2829 fi
2830 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832 $as_echo "yes" >&6; }
2833   SET_MAKE=
2834 else
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2837   SET_MAKE="MAKE=${MAKE-make}"
2838 fi
2839
2840 rm -rf .tst 2>/dev/null
2841 mkdir .tst 2>/dev/null
2842 if test -d .tst; then
2843   am__leading_dot=.
2844 else
2845   am__leading_dot=_
2846 fi
2847 rmdir .tst 2>/dev/null
2848
2849 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2850   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2851   # is not polluted with repeated "-I."
2852   am__isrc=' -I$(srcdir)'
2853   # test to see if srcdir already configured
2854   if test -f $srcdir/config.status; then
2855     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2856   fi
2857 fi
2858
2859 # test whether we have cygpath
2860 if test -z "$CYGPATH_W"; then
2861   if (cygpath --version) >/dev/null 2>/dev/null; then
2862     CYGPATH_W='cygpath -w'
2863   else
2864     CYGPATH_W=echo
2865   fi
2866 fi
2867
2868
2869 # Define the identity of the package.
2870  PACKAGE='connman'
2871  VERSION='1.26'
2872
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE "$PACKAGE"
2876 _ACEOF
2877
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define VERSION "$VERSION"
2881 _ACEOF
2882
2883 # Some tools Automake needs.
2884
2885 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2886
2887
2888 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2889
2890
2891 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2892
2893
2894 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2895
2896
2897 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2898
2899 # We need awk for the "check" target.  The system "awk" is bad on
2900 # some platforms.
2901 # Always define AMTAR for backward compatibility.  Yes, it's still used
2902 # in the wild :-(  We should find a proper way to deprecate it ...
2903 AMTAR='$${TAR-tar}'
2904
2905 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2906
2907
2908
2909
2910
2911 ac_config_headers="$ac_config_headers config.h"
2912
2913
2914 # Check whether --enable-silent-rules was given.
2915 if test "${enable_silent_rules+set}" = set; then :
2916   enableval=$enable_silent_rules;
2917 fi
2918
2919 case $enable_silent_rules in
2920 yes) AM_DEFAULT_VERBOSITY=0;;
2921 no)  AM_DEFAULT_VERBOSITY=1;;
2922 *)   AM_DEFAULT_VERBOSITY=0;;
2923 esac
2924 am_make=${MAKE-make}
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2926 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2927 if ${am_cv_make_support_nested_variables+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   if $as_echo 'TRUE=$(BAR$(V))
2931 BAR0=false
2932 BAR1=true
2933 V=1
2934 am__doit:
2935         @$(TRUE)
2936 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2937   am_cv_make_support_nested_variables=yes
2938 else
2939   am_cv_make_support_nested_variables=no
2940 fi
2941 fi
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2943 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2944 if test $am_cv_make_support_nested_variables = yes; then
2945     AM_V='$(V)'
2946   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2947 else
2948   AM_V=$AM_DEFAULT_VERBOSITY
2949   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2950 fi
2951 AM_BACKSLASH='\'
2952
2953
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2956 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2957     # Check whether --enable-maintainer-mode was given.
2958 if test "${enable_maintainer_mode+set}" = set; then :
2959   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2960 else
2961   USE_MAINTAINER_MODE=no
2962 fi
2963
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2965 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2966    if test $USE_MAINTAINER_MODE = yes; then
2967   MAINTAINER_MODE_TRUE=
2968   MAINTAINER_MODE_FALSE='#'
2969 else
2970   MAINTAINER_MODE_TRUE='#'
2971   MAINTAINER_MODE_FALSE=
2972 fi
2973
2974   MAINT=$MAINTAINER_MODE_TRUE
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2988         if test -n "$ac_tool_prefix"; then
2989   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2994   $as_echo_n "(cached) " >&6
2995 else
2996   case $PKG_CONFIG in
2997   [\\/]* | ?:[\\/]*)
2998   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2999   ;;
3000   *)
3001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006     for ac_exec_ext in '' $ac_executable_extensions; do
3007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010     break 2
3011   fi
3012 done
3013   done
3014 IFS=$as_save_IFS
3015
3016   ;;
3017 esac
3018 fi
3019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3020 if test -n "$PKG_CONFIG"; then
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3022 $as_echo "$PKG_CONFIG" >&6; }
3023 else
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 fi
3027
3028
3029 fi
3030 if test -z "$ac_cv_path_PKG_CONFIG"; then
3031   ac_pt_PKG_CONFIG=$PKG_CONFIG
3032   # Extract the first word of "pkg-config", so it can be a program name with args.
3033 set dummy pkg-config; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3037   $as_echo_n "(cached) " >&6
3038 else
3039   case $ac_pt_PKG_CONFIG in
3040   [\\/]* | ?:[\\/]*)
3041   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3042   ;;
3043   *)
3044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049     for ac_exec_ext in '' $ac_executable_extensions; do
3050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056   done
3057 IFS=$as_save_IFS
3058
3059   ;;
3060 esac
3061 fi
3062 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3063 if test -n "$ac_pt_PKG_CONFIG"; then
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3065 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3066 else
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071   if test "x$ac_pt_PKG_CONFIG" = x; then
3072     PKG_CONFIG=""
3073   else
3074     case $cross_compiling:$ac_tool_warned in
3075 yes:)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3079 esac
3080     PKG_CONFIG=$ac_pt_PKG_CONFIG
3081   fi
3082 else
3083   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3084 fi
3085
3086 fi
3087 if test -n "$PKG_CONFIG"; then
3088         _pkg_min_version=0.9.0
3089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3090 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3091         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3092                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 $as_echo "yes" >&6; }
3094         else
3095                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097                 PKG_CONFIG=""
3098         fi
3099 fi
3100
3101
3102         if (test "${CFLAGS}" = ""); then
3103                 CFLAGS="-Wall -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3104         fi
3105         if (test "$USE_MAINTAINER_MODE" = "yes"); then
3106                 CFLAGS+=" -Werror -Wextra"
3107                 CFLAGS+=" -Wno-unused-parameter"
3108                 CFLAGS+=" -Wno-missing-field-initializers"
3109                 CFLAGS+=" -Wdeclaration-after-statement"
3110                 CFLAGS+=" -Wmissing-declarations"
3111                 CFLAGS+=" -Wredundant-decls"
3112                 CFLAGS+=" -Wcast-align"
3113                 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
3114         fi
3115
3116
3117
3118
3119
3120 ac_ext=c
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125
3126
3127 ac_ext=c
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 if test -n "$ac_tool_prefix"; then
3133   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$CC"; then
3141   ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148     for ac_exec_ext in '' $ac_executable_extensions; do
3149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155   done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170 fi
3171 if test -z "$ac_cv_prog_CC"; then
3172   ac_ct_CC=$CC
3173   # Extract the first word of "gcc", so it can be a program name with args.
3174 set dummy gcc; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178   $as_echo_n "(cached) " >&6
3179 else
3180   if test -n "$ac_ct_CC"; then
3181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188     for ac_exec_ext in '' $ac_executable_extensions; do
3189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_CC="gcc"
3191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195   done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209   if test "x$ac_ct_CC" = x; then
3210     CC=""
3211   else
3212     case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3217 esac
3218     CC=$ac_ct_CC
3219   fi
3220 else
3221   CC="$ac_cv_prog_CC"
3222 fi
3223
3224 if test -z "$CC"; then
3225           if test -n "$ac_tool_prefix"; then
3226     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231   $as_echo_n "(cached) " >&6
3232 else
3233   if test -n "$CC"; then
3234   ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239   IFS=$as_save_IFS
3240   test -z "$as_dir" && as_dir=.
3241     for ac_exec_ext in '' $ac_executable_extensions; do
3242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243     ac_cv_prog_CC="${ac_tool_prefix}cc"
3244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248   done
3249 IFS=$as_save_IFS
3250
3251 fi
3252 fi
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 fi
3261
3262
3263   fi
3264 fi
3265 if test -z "$CC"; then
3266   # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$CC"; then
3274   ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276   ac_prog_rejected=no
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282     for ac_exec_ext in '' $ac_executable_extensions; do
3283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3285        ac_prog_rejected=yes
3286        continue
3287      fi
3288     ac_cv_prog_CC="cc"
3289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293   done
3294 IFS=$as_save_IFS
3295
3296 if test $ac_prog_rejected = yes; then
3297   # We found a bogon in the path, so make sure we never use it.
3298   set dummy $ac_cv_prog_CC
3299   shift
3300   if test $# != 0; then
3301     # We chose a different compiler from the bogus one.
3302     # However, it has the same basename, so the bogon will be chosen
3303     # first if we set CC to just the basename; use the full file name.
3304     shift
3305     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3306   fi
3307 fi
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319
3320 fi
3321 if test -z "$CC"; then
3322   if test -n "$ac_tool_prefix"; then
3323   for ac_prog in cl.exe
3324   do
3325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if test -n "$CC"; then
3333   ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340     for ac_exec_ext in '' $ac_executable_extensions; do
3341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347   done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362     test -n "$CC" && break
3363   done
3364 fi
3365 if test -z "$CC"; then
3366   ac_ct_CC=$CC
3367   for ac_prog in cl.exe
3368 do
3369   # Extract the first word of "$ac_prog", so it can be a program name with args.
3370 set dummy $ac_prog; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   if test -n "$ac_ct_CC"; then
3377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384     for ac_exec_ext in '' $ac_executable_extensions; do
3385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386     ac_cv_prog_ac_ct_CC="$ac_prog"
3387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391   done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3400 else
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406   test -n "$ac_ct_CC" && break
3407 done
3408
3409   if test "x$ac_ct_CC" = x; then
3410     CC=""
3411   else
3412     case $cross_compiling:$ac_tool_warned in
3413 yes:)
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3417 esac
3418     CC=$ac_ct_CC
3419   fi
3420 fi
3421
3422 fi
3423
3424
3425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error $? "no acceptable C compiler found in \$PATH
3428 See \`config.log' for more details" "$LINENO" 5; }
3429
3430 # Provide some information about the compiler.
3431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3432 set X $ac_compile
3433 ac_compiler=$2
3434 for ac_option in --version -v -V -qversion; do
3435   { { ac_try="$ac_compiler $ac_option >&5"
3436 case "(($ac_try" in
3437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438   *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3443   ac_status=$?
3444   if test -s conftest.err; then
3445     sed '10a\
3446 ... rest of stderr output deleted ...
3447          10q' conftest.err >conftest.er1
3448     cat conftest.er1 >&5
3449   fi
3450   rm -f conftest.er1 conftest.err
3451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452   test $ac_status = 0; }
3453 done
3454
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h.  */
3457
3458 int
3459 main ()
3460 {
3461
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 ac_clean_files_save=$ac_clean_files
3467 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3468 # Try to create an executable without -o first, disregard a.out.
3469 # It will help us diagnose broken compilers, and finding out an intuition
3470 # of exeext.
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3472 $as_echo_n "checking whether the C compiler works... " >&6; }
3473 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3474
3475 # The possible output files:
3476 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3477
3478 ac_rmfiles=
3479 for ac_file in $ac_files
3480 do
3481   case $ac_file in
3482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3483     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3484   esac
3485 done
3486 rm -f $ac_rmfiles
3487
3488 if { { ac_try="$ac_link_default"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495   (eval "$ac_link_default") 2>&5
3496   ac_status=$?
3497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498   test $ac_status = 0; }; then :
3499   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3501 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3502 # so that the user can short-circuit this test for compilers unknown to
3503 # Autoconf.
3504 for ac_file in $ac_files ''
3505 do
3506   test -f "$ac_file" || continue
3507   case $ac_file in
3508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3509         ;;
3510     [ab].out )
3511         # We found the default executable, but exeext='' is most
3512         # certainly right.
3513         break;;
3514     *.* )
3515         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3516         then :; else
3517            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3518         fi
3519         # We set ac_cv_exeext here because the later test for it is not
3520         # safe: cross compilers may not add the suffix if given an `-o'
3521         # argument, so we may need to know it at that point already.
3522         # Even if this section looks crufty: it has the advantage of
3523         # actually working.
3524         break;;
3525     * )
3526         break;;
3527   esac
3528 done
3529 test "$ac_cv_exeext" = no && ac_cv_exeext=
3530
3531 else
3532   ac_file=''
3533 fi
3534 if test -z "$ac_file"; then :
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error 77 "C compiler cannot create executables
3543 See \`config.log' for more details" "$LINENO" 5; }
3544 else
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3549 $as_echo_n "checking for C compiler default output file name... " >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3551 $as_echo "$ac_file" >&6; }
3552 ac_exeext=$ac_cv_exeext
3553
3554 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3555 ac_clean_files=$ac_clean_files_save
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3557 $as_echo_n "checking for suffix of executables... " >&6; }
3558 if { { ac_try="$ac_link"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565   (eval "$ac_link") 2>&5
3566   ac_status=$?
3567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568   test $ac_status = 0; }; then :
3569   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3570 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3571 # work properly (i.e., refer to `conftest.exe'), while it won't with
3572 # `rm'.
3573 for ac_file in conftest.exe conftest conftest.*; do
3574   test -f "$ac_file" || continue
3575   case $ac_file in
3576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3578           break;;
3579     * ) break;;
3580   esac
3581 done
3582 else
3583   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3586 See \`config.log' for more details" "$LINENO" 5; }
3587 fi
3588 rm -f conftest conftest$ac_cv_exeext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3590 $as_echo "$ac_cv_exeext" >&6; }
3591
3592 rm -f conftest.$ac_ext
3593 EXEEXT=$ac_cv_exeext
3594 ac_exeext=$EXEEXT
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h.  */
3597 #include <stdio.h>
3598 int
3599 main ()
3600 {
3601 FILE *f = fopen ("conftest.out", "w");
3602  return ferror (f) || fclose (f) != 0;
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 ac_clean_files="$ac_clean_files conftest.out"
3609 # Check that the compiler produces executables we can run.  If not, either
3610 # the compiler is broken, or we cross compile.
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3612 $as_echo_n "checking whether we are cross compiling... " >&6; }
3613 if test "$cross_compiling" != yes; then
3614   { { ac_try="$ac_link"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621   (eval "$ac_link") 2>&5
3622   ac_status=$?
3623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624   test $ac_status = 0; }
3625   if { ac_try='./conftest$ac_cv_exeext'
3626   { { case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632   (eval "$ac_try") 2>&5
3633   ac_status=$?
3634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635   test $ac_status = 0; }; }; then
3636     cross_compiling=no
3637   else
3638     if test "$cross_compiling" = maybe; then
3639         cross_compiling=yes
3640     else
3641         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error $? "cannot run C compiled programs.
3644 If you meant to cross compile, use \`--host'.
3645 See \`config.log' for more details" "$LINENO" 5; }
3646     fi
3647   fi
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3650 $as_echo "$cross_compiling" >&6; }
3651
3652 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3653 ac_clean_files=$ac_clean_files_save
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3655 $as_echo_n "checking for suffix of object files... " >&6; }
3656 if ${ac_cv_objext+:} false; then :
3657   $as_echo_n "(cached) " >&6
3658 else
3659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h.  */
3661
3662 int
3663 main ()
3664 {
3665
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.o conftest.obj
3671 if { { ac_try="$ac_compile"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678   (eval "$ac_compile") 2>&5
3679   ac_status=$?
3680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681   test $ac_status = 0; }; then :
3682   for ac_file in conftest.o conftest.obj conftest.*; do
3683   test -f "$ac_file" || continue;
3684   case $ac_file in
3685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3686     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3687        break;;
3688   esac
3689 done
3690 else
3691   $as_echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error $? "cannot compute suffix of object files: cannot compile
3697 See \`config.log' for more details" "$LINENO" 5; }
3698 fi
3699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3702 $as_echo "$ac_cv_objext" >&6; }
3703 OBJEXT=$ac_cv_objext
3704 ac_objext=$OBJEXT
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3707 if ${ac_cv_c_compiler_gnu+:} false; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712
3713 int
3714 main ()
3715 {
3716 #ifndef __GNUC__
3717        choke me
3718 #endif
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725   ac_compiler_gnu=yes
3726 else
3727   ac_compiler_gnu=no
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3734 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3735 if test $ac_compiler_gnu = yes; then
3736   GCC=yes
3737 else
3738   GCC=
3739 fi
3740 ac_test_CFLAGS=${CFLAGS+set}
3741 ac_save_CFLAGS=$CFLAGS
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3743 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3744 if ${ac_cv_prog_cc_g+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   ac_save_c_werror_flag=$ac_c_werror_flag
3748    ac_c_werror_flag=yes
3749    ac_cv_prog_cc_g=no
3750    CFLAGS="-g"
3751    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h.  */
3753
3754 int
3755 main ()
3756 {
3757
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763   ac_cv_prog_cc_g=yes
3764 else
3765   CFLAGS=""
3766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768
3769 int
3770 main ()
3771 {
3772
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778
3779 else
3780   ac_c_werror_flag=$ac_save_c_werror_flag
3781          CFLAGS="-g"
3782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784
3785 int
3786 main ()
3787 {
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794   ac_cv_prog_cc_g=yes
3795 fi
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 fi
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801    ac_c_werror_flag=$ac_save_c_werror_flag
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3804 $as_echo "$ac_cv_prog_cc_g" >&6; }
3805 if test "$ac_test_CFLAGS" = set; then
3806   CFLAGS=$ac_save_CFLAGS
3807 elif test $ac_cv_prog_cc_g = yes; then
3808   if test "$GCC" = yes; then
3809     CFLAGS="-g -O2"
3810   else
3811     CFLAGS="-g"
3812   fi
3813 else
3814   if test "$GCC" = yes; then
3815     CFLAGS="-O2"
3816   else
3817     CFLAGS=
3818   fi
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3822 if ${ac_cv_prog_cc_c89+:} false; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   ac_cv_prog_cc_c89=no
3826 ac_save_CC=$CC
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h.  */
3829 #include <stdarg.h>
3830 #include <stdio.h>
3831 struct stat;
3832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3833 struct buf { int x; };
3834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3835 static char *e (p, i)
3836      char **p;
3837      int i;
3838 {
3839   return p[i];
3840 }
3841 static char *f (char * (*g) (char **, int), char **p, ...)
3842 {
3843   char *s;
3844   va_list v;
3845   va_start (v,p);
3846   s = g (p, va_arg (v,int));
3847   va_end (v);
3848   return s;
3849 }
3850
3851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3852    function prototypes and stuff, but not '\xHH' hex character constants.
3853    These don't provoke an error unfortunately, instead are silently treated
3854    as 'x'.  The following induces an error, until -std is added to get
3855    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3856    array size at least.  It's necessary to write '\x00'==0 to get something
3857    that's true only with -std.  */
3858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3859
3860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3861    inside strings and character constants.  */
3862 #define FOO(x) 'x'
3863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3864
3865 int test (int i, double x);
3866 struct s1 {int (*f) (int a);};
3867 struct s2 {int (*f) (double a);};
3868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3869 int argc;
3870 char **argv;
3871 int
3872 main ()
3873 {
3874 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3880         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3881 do
3882   CC="$ac_save_CC $ac_arg"
3883   if ac_fn_c_try_compile "$LINENO"; then :
3884   ac_cv_prog_cc_c89=$ac_arg
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext
3887   test "x$ac_cv_prog_cc_c89" != "xno" && break
3888 done
3889 rm -f conftest.$ac_ext
3890 CC=$ac_save_CC
3891
3892 fi
3893 # AC_CACHE_VAL
3894 case "x$ac_cv_prog_cc_c89" in
3895   x)
3896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3897 $as_echo "none needed" >&6; } ;;
3898   xno)
3899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3900 $as_echo "unsupported" >&6; } ;;
3901   *)
3902     CC="$CC $ac_cv_prog_cc_c89"
3903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3904 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3905 esac
3906 if test "x$ac_cv_prog_cc_c89" != xno; then :
3907
3908 fi
3909
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 DEPDIR="${am__leading_dot}deps"
3916
3917 ac_config_commands="$ac_config_commands depfiles"
3918
3919
3920 am_make=${MAKE-make}
3921 cat > confinc << 'END'
3922 am__doit:
3923         @echo this is the am__doit target
3924 .PHONY: am__doit
3925 END
3926 # If we don't find an include directive, just comment out the code.
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3928 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3929 am__include="#"
3930 am__quote=
3931 _am_result=none
3932 # First try GNU make style include.
3933 echo "include confinc" > confmf
3934 # Ignore all kinds of additional output from `make'.
3935 case `$am_make -s -f confmf 2> /dev/null` in #(
3936 *the\ am__doit\ target*)
3937   am__include=include
3938   am__quote=
3939   _am_result=GNU
3940   ;;
3941 esac
3942 # Now try BSD make style include.
3943 if test "$am__include" = "#"; then
3944    echo '.include "confinc"' > confmf
3945    case `$am_make -s -f confmf 2> /dev/null` in #(
3946    *the\ am__doit\ target*)
3947      am__include=.include
3948      am__quote="\""
3949      _am_result=BSD
3950      ;;
3951    esac
3952 fi
3953
3954
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3956 $as_echo "$_am_result" >&6; }
3957 rm -f confinc confmf
3958
3959 # Check whether --enable-dependency-tracking was given.
3960 if test "${enable_dependency_tracking+set}" = set; then :
3961   enableval=$enable_dependency_tracking;
3962 fi
3963
3964 if test "x$enable_dependency_tracking" != xno; then
3965   am_depcomp="$ac_aux_dir/depcomp"
3966   AMDEPBACKSLASH='\'
3967   am__nodep='_no'
3968 fi
3969  if test "x$enable_dependency_tracking" != xno; then
3970   AMDEP_TRUE=
3971   AMDEP_FALSE='#'
3972 else
3973   AMDEP_TRUE='#'
3974   AMDEP_FALSE=
3975 fi
3976
3977
3978
3979 depcc="$CC"   am_compiler_list=
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3982 $as_echo_n "checking dependency style of $depcc... " >&6; }
3983 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3987   # We make a subdir and do the tests there.  Otherwise we can end up
3988   # making bogus files that we don't know about and never remove.  For
3989   # instance it was reported that on HP-UX the gcc test will end up
3990   # making a dummy file named `D' -- because `-MD' means `put the output
3991   # in D'.
3992   rm -rf conftest.dir
3993   mkdir conftest.dir
3994   # Copy depcomp to subdir because otherwise we won't find it if we're
3995   # using a relative directory.
3996   cp "$am_depcomp" conftest.dir
3997   cd conftest.dir
3998   # We will build objects and dependencies in a subdirectory because
3999   # it helps to detect inapplicable dependency modes.  For instance
4000   # both Tru64's cc and ICC support -MD to output dependencies as a
4001   # side effect of compilation, but ICC will put the dependencies in
4002   # the current directory while Tru64 will put them in the object
4003   # directory.
4004   mkdir sub
4005
4006   am_cv_CC_dependencies_compiler_type=none
4007   if test "$am_compiler_list" = ""; then
4008      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4009   fi
4010   am__universal=false
4011   case " $depcc " in #(
4012      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4013      esac
4014
4015   for depmode in $am_compiler_list; do
4016     # Setup a source with many dependencies, because some compilers
4017     # like to wrap large dependency lists on column 80 (with \), and
4018     # we should not choose a depcomp mode which is confused by this.
4019     #
4020     # We need to recreate these files for each test, as the compiler may
4021     # overwrite some of them when testing with obscure command lines.
4022     # This happens at least with the AIX C compiler.
4023     : > sub/conftest.c
4024     for i in 1 2 3 4 5 6; do
4025       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4026       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4027       # Solaris 8's {/usr,}/bin/sh.
4028       touch sub/conftst$i.h
4029     done
4030     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4031
4032     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4033     # mode.  It turns out that the SunPro C++ compiler does not properly
4034     # handle `-M -o', and we need to detect this.  Also, some Intel
4035     # versions had trouble with output in subdirs
4036     am__obj=sub/conftest.${OBJEXT-o}
4037     am__minus_obj="-o $am__obj"
4038     case $depmode in
4039     gcc)
4040       # This depmode causes a compiler race in universal mode.
4041       test "$am__universal" = false || continue
4042       ;;
4043     nosideeffect)
4044       # after this tag, mechanisms are not by side-effect, so they'll
4045       # only be used when explicitly requested
4046       if test "x$enable_dependency_tracking" = xyes; then
4047         continue
4048       else
4049         break
4050       fi
4051       ;;
4052     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4053       # This compiler won't grok `-c -o', but also, the minuso test has
4054       # not run yet.  These depmodes are late enough in the game, and
4055       # so weak that their functioning should not be impacted.
4056       am__obj=conftest.${OBJEXT-o}
4057       am__minus_obj=
4058       ;;
4059     none) break ;;
4060     esac
4061     if depmode=$depmode \
4062        source=sub/conftest.c object=$am__obj \
4063        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4064        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4065          >/dev/null 2>conftest.err &&
4066        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4067        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4068        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4069        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4070       # icc doesn't choke on unknown options, it will just issue warnings
4071       # or remarks (even with -Werror).  So we grep stderr for any message
4072       # that says an option was ignored or not supported.
4073       # When given -MP, icc 7.0 and 7.1 complain thusly:
4074       #   icc: Command line warning: ignoring option '-M'; no argument required
4075       # The diagnosis changed in icc 8.0:
4076       #   icc: Command line remark: option '-MP' not supported
4077       if (grep 'ignoring option' conftest.err ||
4078           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4079         am_cv_CC_dependencies_compiler_type=$depmode
4080         break
4081       fi
4082     fi
4083   done
4084
4085   cd ..
4086   rm -rf conftest.dir
4087 else
4088   am_cv_CC_dependencies_compiler_type=none
4089 fi
4090
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4093 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4094 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4095
4096  if
4097   test "x$enable_dependency_tracking" != xno \
4098   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4099   am__fastdepCC_TRUE=
4100   am__fastdepCC_FALSE='#'
4101 else
4102   am__fastdepCC_TRUE='#'
4103   am__fastdepCC_FALSE=
4104 fi
4105
4106
4107 if test "x$CC" != xcc; then
4108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4109 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4110 else
4111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4112 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4113 fi
4114 set dummy $CC; ac_cc=`$as_echo "$2" |
4115                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4116 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4117   $as_echo_n "(cached) " >&6
4118 else
4119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h.  */
4121
4122 int
4123 main ()
4124 {
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 # Make sure it works both with $CC and with simple cc.
4131 # We do the test twice because some compilers refuse to overwrite an
4132 # existing .o file with -o, though they will create one.
4133 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4134 rm -f conftest2.*
4135 if { { case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 $as_echo "$ac_try_echo"; } >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144   test $ac_status = 0; } &&
4145    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151   (eval "$ac_try") 2>&5
4152   ac_status=$?
4153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154   test $ac_status = 0; };
4155 then
4156   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4157   if test "x$CC" != xcc; then
4158     # Test first that cc exists at all.
4159     if { ac_try='cc -c conftest.$ac_ext >&5'
4160   { { case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165 $as_echo "$ac_try_echo"; } >&5
4166   (eval "$ac_try") 2>&5
4167   ac_status=$?
4168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4169   test $ac_status = 0; }; }; then
4170       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4171       rm -f conftest2.*
4172       if { { case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178   (eval "$ac_try") 2>&5
4179   ac_status=$?
4180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181   test $ac_status = 0; } &&
4182          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187 $as_echo "$ac_try_echo"; } >&5
4188   (eval "$ac_try") 2>&5
4189   ac_status=$?
4190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191   test $ac_status = 0; };
4192       then
4193         # cc works too.
4194         :
4195       else
4196         # cc exists but doesn't like -o.
4197         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4198       fi
4199     fi
4200   fi
4201 else
4202   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4203 fi
4204 rm -f core conftest*
4205
4206 fi
4207 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209 $as_echo "yes" >&6; }
4210 else
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213
4214 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4215
4216 fi
4217
4218 # FIXME: we rely on the cache variable name because
4219 # there is no other way.
4220 set dummy $CC
4221 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4222 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4223 if test "$am_t" != yes; then
4224    # Losing compiler, so override with the script.
4225    # FIXME: It is wrong to rewrite CC.
4226    # But if we don't then we get into trouble of one sort or another.
4227    # A longer-term fix would be to have automake use am__CC in this case,
4228    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4229    CC="$am_aux_dir/compile $CC"
4230 fi
4231
4232
4233
4234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4235 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4236 if ${ac_cv_prog_cc_pie+:} false; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239
4240                 echo 'void f(){}' > conftest.c
4241                 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4242                         ac_cv_prog_cc_pie=yes
4243                 else
4244                         ac_cv_prog_cc_pie=no
4245                 fi
4246                 rm -rf conftest*
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4250 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4251
4252
4253
4254
4255
4256
4257
4258 # Check whether --enable-static was given.
4259 if test "${enable_static+set}" = set; then :
4260   enableval=$enable_static; p=${PACKAGE-default}
4261     case $enableval in
4262     yes) enable_static=yes ;;
4263     no) enable_static=no ;;
4264     *)
4265      enable_static=no
4266       # Look at the argument we got.  We use all the common list separators.
4267       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268       for pkg in $enableval; do
4269         IFS="$lt_save_ifs"
4270         if test "X$pkg" = "X$p"; then
4271           enable_static=yes
4272         fi
4273       done
4274       IFS="$lt_save_ifs"
4275       ;;
4276     esac
4277 else
4278   enable_static=no
4279 fi
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289 case `pwd` in
4290   *\ * | *\     *)
4291     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4292 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4293 esac
4294
4295
4296
4297 macro_version='2.4.2'
4298 macro_revision='1.3337'
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312 ltmain="$ac_aux_dir/ltmain.sh"
4313
4314 # Make sure we can run config.sub.
4315 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4316   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4319 $as_echo_n "checking build system type... " >&6; }
4320 if ${ac_cv_build+:} false; then :
4321   $as_echo_n "(cached) " >&6
4322 else
4323   ac_build_alias=$build_alias
4324 test "x$ac_build_alias" = x &&
4325   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4326 test "x$ac_build_alias" = x &&
4327   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4328 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4329   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4330
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4333 $as_echo "$ac_cv_build" >&6; }
4334 case $ac_cv_build in
4335 *-*-*) ;;
4336 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4337 esac
4338 build=$ac_cv_build
4339 ac_save_IFS=$IFS; IFS='-'
4340 set x $ac_cv_build
4341 shift
4342 build_cpu=$1
4343 build_vendor=$2
4344 shift; shift
4345 # Remember, the first character of IFS is used to create $*,
4346 # except with old shells:
4347 build_os=$*
4348 IFS=$ac_save_IFS
4349 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4350
4351
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4353 $as_echo_n "checking host system type... " >&6; }
4354 if ${ac_cv_host+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   if test "x$host_alias" = x; then
4358   ac_cv_host=$ac_cv_build
4359 else
4360   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4361     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4362 fi
4363
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4366 $as_echo "$ac_cv_host" >&6; }
4367 case $ac_cv_host in
4368 *-*-*) ;;
4369 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4370 esac
4371 host=$ac_cv_host
4372 ac_save_IFS=$IFS; IFS='-'
4373 set x $ac_cv_host
4374 shift
4375 host_cpu=$1
4376 host_vendor=$2
4377 shift; shift
4378 # Remember, the first character of IFS is used to create $*,
4379 # except with old shells:
4380 host_os=$*
4381 IFS=$ac_save_IFS
4382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4383
4384
4385 # Backslashify metacharacters that are still active within
4386 # double-quoted strings.
4387 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4388
4389 # Same as above, but do not quote variable references.
4390 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4391
4392 # Sed substitution to delay expansion of an escaped shell variable in a
4393 # double_quote_subst'ed string.
4394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4395
4396 # Sed substitution to delay expansion of an escaped single quote.
4397 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4398
4399 # Sed substitution to avoid accidental globbing in evaled expressions
4400 no_glob_subst='s/\*/\\\*/g'
4401
4402 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4403 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4404 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4407 $as_echo_n "checking how to print strings... " >&6; }
4408 # Test print first, because it will be a builtin if present.
4409 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4410    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4411   ECHO='print -r --'
4412 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4413   ECHO='printf %s\n'
4414 else
4415   # Use this function as a fallback that always works.
4416   func_fallback_echo ()
4417   {
4418     eval 'cat <<_LTECHO_EOF
4419 $1
4420 _LTECHO_EOF'
4421   }
4422   ECHO='func_fallback_echo'
4423 fi
4424
4425 # func_echo_all arg...
4426 # Invoke $ECHO with all args, space-separated.
4427 func_echo_all ()
4428 {
4429     $ECHO ""
4430 }
4431
4432 case "$ECHO" in
4433   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4434 $as_echo "printf" >&6; } ;;
4435   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4436 $as_echo "print -r" >&6; } ;;
4437   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4438 $as_echo "cat" >&6; } ;;
4439 esac
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4455 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4456 if ${ac_cv_path_SED+:} false; then :
4457   $as_echo_n "(cached) " >&6
4458 else
4459             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4460      for ac_i in 1 2 3 4 5 6 7; do
4461        ac_script="$ac_script$as_nl$ac_script"
4462      done
4463      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4464      { ac_script=; unset ac_script;}
4465      if test -z "$SED"; then
4466   ac_path_SED_found=false
4467   # Loop through the user's path and test for each of PROGNAME-LIST
4468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473     for ac_prog in sed gsed; do
4474     for ac_exec_ext in '' $ac_executable_extensions; do
4475       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4476       as_fn_executable_p "$ac_path_SED" || continue
4477 # Check for GNU ac_path_SED and select it if it is found.
4478   # Check for GNU $ac_path_SED
4479 case `"$ac_path_SED" --version 2>&1` in
4480 *GNU*)
4481   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4482 *)
4483   ac_count=0
4484   $as_echo_n 0123456789 >"conftest.in"
4485   while :
4486   do
4487     cat "conftest.in" "conftest.in" >"conftest.tmp"
4488     mv "conftest.tmp" "conftest.in"
4489     cp "conftest.in" "conftest.nl"
4490     $as_echo '' >> "conftest.nl"
4491     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4492     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4493     as_fn_arith $ac_count + 1 && ac_count=$as_val
4494     if test $ac_count -gt ${ac_path_SED_max-0}; then
4495       # Best one so far, save it but keep looking for a better one
4496       ac_cv_path_SED="$ac_path_SED"
4497       ac_path_SED_max=$ac_count
4498     fi
4499     # 10*(2^10) chars as input seems more than enough
4500     test $ac_count -gt 10 && break
4501   done
4502   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4503 esac
4504
4505       $ac_path_SED_found && break 3
4506     done
4507   done
4508   done
4509 IFS=$as_save_IFS
4510   if test -z "$ac_cv_path_SED"; then
4511     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4512   fi
4513 else
4514   ac_cv_path_SED=$SED
4515 fi
4516
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4519 $as_echo "$ac_cv_path_SED" >&6; }
4520  SED="$ac_cv_path_SED"
4521   rm -f conftest.sed
4522
4523 test -z "$SED" && SED=sed
4524 Xsed="$SED -e 1s/^X//"
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if ${ac_cv_path_GREP+:} false; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   if test -z "$GREP"; then
4542   ac_path_GREP_found=false
4543   # Loop through the user's path and test for each of PROGNAME-LIST
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_prog in grep ggrep; do
4550     for ac_exec_ext in '' $ac_executable_extensions; do
4551       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552       as_fn_executable_p "$ac_path_GREP" || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554   # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4556 *GNU*)
4557   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4558 *)
4559   ac_count=0
4560   $as_echo_n 0123456789 >"conftest.in"
4561   while :
4562   do
4563     cat "conftest.in" "conftest.in" >"conftest.tmp"
4564     mv "conftest.tmp" "conftest.in"
4565     cp "conftest.in" "conftest.nl"
4566     $as_echo 'GREP' >> "conftest.nl"
4567     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569     as_fn_arith $ac_count + 1 && ac_count=$as_val
4570     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571       # Best one so far, save it but keep looking for a better one
4572       ac_cv_path_GREP="$ac_path_GREP"
4573       ac_path_GREP_max=$ac_count
4574     fi
4575     # 10*(2^10) chars as input seems more than enough
4576     test $ac_count -gt 10 && break
4577   done
4578   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581       $ac_path_GREP_found && break 3
4582     done
4583   done
4584   done
4585 IFS=$as_save_IFS
4586   if test -z "$ac_cv_path_GREP"; then
4587     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588   fi
4589 else
4590   ac_cv_path_GREP=$GREP
4591 fi
4592
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596  GREP="$ac_cv_path_GREP"
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if ${ac_cv_path_EGREP+:} false; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605    then ac_cv_path_EGREP="$GREP -E"
4606    else
4607      if test -z "$EGREP"; then
4608   ac_path_EGREP_found=false
4609   # Loop through the user's path and test for each of PROGNAME-LIST
4610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615     for ac_prog in egrep; do
4616     for ac_exec_ext in '' $ac_executable_extensions; do
4617       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618       as_fn_executable_p "$ac_path_EGREP" || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620   # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4622 *GNU*)
4623   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4624 *)
4625   ac_count=0
4626   $as_echo_n 0123456789 >"conftest.in"
4627   while :
4628   do
4629     cat "conftest.in" "conftest.in" >"conftest.tmp"
4630     mv "conftest.tmp" "conftest.in"
4631     cp "conftest.in" "conftest.nl"
4632     $as_echo 'EGREP' >> "conftest.nl"
4633     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635     as_fn_arith $ac_count + 1 && ac_count=$as_val
4636     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637       # Best one so far, save it but keep looking for a better one
4638       ac_cv_path_EGREP="$ac_path_EGREP"
4639       ac_path_EGREP_max=$ac_count
4640     fi
4641     # 10*(2^10) chars as input seems more than enough
4642     test $ac_count -gt 10 && break
4643   done
4644   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4646
4647       $ac_path_EGREP_found && break 3
4648     done
4649   done
4650   done
4651 IFS=$as_save_IFS
4652   if test -z "$ac_cv_path_EGREP"; then
4653     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654   fi
4655 else
4656   ac_cv_path_EGREP=$EGREP
4657 fi
4658
4659    fi
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663  EGREP="$ac_cv_path_EGREP"
4664
4665
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4667 $as_echo_n "checking for fgrep... " >&6; }
4668 if ${ac_cv_path_FGREP+:} false; then :
4669   $as_echo_n "(cached) " >&6
4670 else
4671   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4672    then ac_cv_path_FGREP="$GREP -F"
4673    else
4674      if test -z "$FGREP"; then
4675   ac_path_FGREP_found=false
4676   # Loop through the user's path and test for each of PROGNAME-LIST
4677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682     for ac_prog in fgrep; do
4683     for ac_exec_ext in '' $ac_executable_extensions; do
4684       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4685       as_fn_executable_p "$ac_path_FGREP" || continue
4686 # Check for GNU ac_path_FGREP and select it if it is found.
4687   # Check for GNU $ac_path_FGREP
4688 case `"$ac_path_FGREP" --version 2>&1` in
4689 *GNU*)
4690   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4691 *)
4692   ac_count=0
4693   $as_echo_n 0123456789 >"conftest.in"
4694   while :
4695   do
4696     cat "conftest.in" "conftest.in" >"conftest.tmp"
4697     mv "conftest.tmp" "conftest.in"
4698     cp "conftest.in" "conftest.nl"
4699     $as_echo 'FGREP' >> "conftest.nl"
4700     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4701     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4702     as_fn_arith $ac_count + 1 && ac_count=$as_val
4703     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4704       # Best one so far, save it but keep looking for a better one
4705       ac_cv_path_FGREP="$ac_path_FGREP"
4706       ac_path_FGREP_max=$ac_count
4707     fi
4708     # 10*(2^10) chars as input seems more than enough
4709     test $ac_count -gt 10 && break
4710   done
4711   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4712 esac
4713
4714       $ac_path_FGREP_found && break 3
4715     done
4716   done
4717   done
4718 IFS=$as_save_IFS
4719   if test -z "$ac_cv_path_FGREP"; then
4720     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4721   fi
4722 else
4723   ac_cv_path_FGREP=$FGREP
4724 fi
4725
4726    fi
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4729 $as_echo "$ac_cv_path_FGREP" >&6; }
4730  FGREP="$ac_cv_path_FGREP"
4731
4732
4733 test -z "$GREP" && GREP=grep
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753 # Check whether --with-gnu-ld was given.
4754 if test "${with_gnu_ld+set}" = set; then :
4755   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4756 else
4757   with_gnu_ld=no
4758 fi
4759
4760 ac_prog=ld
4761 if test "$GCC" = yes; then
4762   # Check if gcc -print-prog-name=ld gives a path.
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4764 $as_echo_n "checking for ld used by $CC... " >&6; }
4765   case $host in
4766   *-*-mingw*)
4767     # gcc leaves a trailing carriage return which upsets mingw
4768     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4769   *)
4770     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4771   esac
4772   case $ac_prog in
4773     # Accept absolute paths.
4774     [\\/]* | ?:[\\/]*)
4775       re_direlt='/[^/][^/]*/\.\./'
4776       # Canonicalize the pathname of ld
4777       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4778       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4779         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4780       done
4781       test -z "$LD" && LD="$ac_prog"
4782       ;;
4783   "")
4784     # If it fails, then pretend we aren't using GCC.
4785     ac_prog=ld
4786     ;;
4787   *)
4788     # If it is relative, then search for the first ld in PATH.
4789     with_gnu_ld=unknown
4790     ;;
4791   esac
4792 elif test "$with_gnu_ld" = yes; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4794 $as_echo_n "checking for GNU ld... " >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4797 $as_echo_n "checking for non-GNU ld... " >&6; }
4798 fi
4799 if ${lt_cv_path_LD+:} false; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   if test -z "$LD"; then
4803   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4804   for ac_dir in $PATH; do
4805     IFS="$lt_save_ifs"
4806     test -z "$ac_dir" && ac_dir=.
4807     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4808       lt_cv_path_LD="$ac_dir/$ac_prog"
4809       # Check to see if the program is GNU ld.  I'd rather use --version,
4810       # but apparently some variants of GNU ld only accept -v.
4811       # Break only if it was the GNU/non-GNU ld that we prefer.
4812       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4813       *GNU* | *'with BFD'*)
4814         test "$with_gnu_ld" != no && break
4815         ;;
4816       *)
4817         test "$with_gnu_ld" != yes && break
4818         ;;
4819       esac
4820     fi
4821   done
4822   IFS="$lt_save_ifs"
4823 else
4824   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4825 fi
4826 fi
4827
4828 LD="$lt_cv_path_LD"
4829 if test -n "$LD"; then
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4831 $as_echo "$LD" >&6; }
4832 else
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4839 if ${lt_cv_prog_gnu_ld+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4843 case `$LD -v 2>&1 </dev/null` in
4844 *GNU* | *'with BFD'*)
4845   lt_cv_prog_gnu_ld=yes
4846   ;;
4847 *)
4848   lt_cv_prog_gnu_ld=no
4849   ;;
4850 esac
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4853 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4854 with_gnu_ld=$lt_cv_prog_gnu_ld
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4865 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4866 if ${lt_cv_path_NM+:} false; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   if test -n "$NM"; then
4870   # Let the user override the test.
4871   lt_cv_path_NM="$NM"
4872 else
4873   lt_nm_to_check="${ac_tool_prefix}nm"
4874   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4875     lt_nm_to_check="$lt_nm_to_check nm"
4876   fi
4877   for lt_tmp_nm in $lt_nm_to_check; do
4878     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4879     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4880       IFS="$lt_save_ifs"
4881       test -z "$ac_dir" && ac_dir=.
4882       tmp_nm="$ac_dir/$lt_tmp_nm"
4883       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4884         # Check to see if the nm accepts a BSD-compat flag.
4885         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4886         #   nm: unknown option "B" ignored
4887         # Tru64's nm complains that /dev/null is an invalid object file
4888         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4889         */dev/null* | *'Invalid file or object type'*)
4890           lt_cv_path_NM="$tmp_nm -B"
4891           break
4892           ;;
4893         *)
4894           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4895           */dev/null*)
4896             lt_cv_path_NM="$tmp_nm -p"
4897             break
4898             ;;
4899           *)
4900             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4901             continue # so that we can try to find one that supports BSD flags
4902             ;;
4903           esac
4904           ;;
4905         esac
4906       fi
4907     done
4908     IFS="$lt_save_ifs"
4909   done
4910   : ${lt_cv_path_NM=no}
4911 fi
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4914 $as_echo "$lt_cv_path_NM" >&6; }
4915 if test "$lt_cv_path_NM" != "no"; then
4916   NM="$lt_cv_path_NM"
4917 else
4918   # Didn't find any BSD compatible name lister, look for dumpbin.
4919   if test -n "$DUMPBIN"; then :
4920     # Let the user override the test.
4921   else
4922     if test -n "$ac_tool_prefix"; then
4923   for ac_prog in dumpbin "link -dump"
4924   do
4925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_DUMPBIN+:} false; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   if test -n "$DUMPBIN"; then
4933   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940     for ac_exec_ext in '' $ac_executable_extensions; do
4941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947   done
4948 IFS=$as_save_IFS
4949
4950 fi
4951 fi
4952 DUMPBIN=$ac_cv_prog_DUMPBIN
4953 if test -n "$DUMPBIN"; then
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4955 $as_echo "$DUMPBIN" >&6; }
4956 else
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4959 fi
4960
4961
4962     test -n "$DUMPBIN" && break
4963   done
4964 fi
4965 if test -z "$DUMPBIN"; then
4966   ac_ct_DUMPBIN=$DUMPBIN
4967   for ac_prog in dumpbin "link -dump"
4968 do
4969   # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   if test -n "$ac_ct_DUMPBIN"; then
4977   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991   done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4997 if test -n "$ac_ct_DUMPBIN"; then
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4999 $as_echo "$ac_ct_DUMPBIN" >&6; }
5000 else
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005
5006   test -n "$ac_ct_DUMPBIN" && break
5007 done
5008
5009   if test "x$ac_ct_DUMPBIN" = x; then
5010     DUMPBIN=":"
5011   else
5012     case $cross_compiling:$ac_tool_warned in
5013 yes:)
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5016 ac_tool_warned=yes ;;
5017 esac
5018     DUMPBIN=$ac_ct_DUMPBIN
5019   fi
5020 fi
5021
5022     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5023     *COFF*)
5024       DUMPBIN="$DUMPBIN -symbols"
5025       ;;
5026     *)
5027       DUMPBIN=:
5028       ;;
5029     esac
5030   fi
5031
5032   if test "$DUMPBIN" != ":"; then
5033     NM="$DUMPBIN"
5034   fi
5035 fi
5036 test -z "$NM" && NM=nm
5037
5038
5039
5040
5041
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5044 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5045 if ${lt_cv_nm_interface+:} false; then :
5046   $as_echo_n "(cached) " >&6
5047 else
5048   lt_cv_nm_interface="BSD nm"
5049   echo "int some_variable = 0;" > conftest.$ac_ext
5050   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5051   (eval "$ac_compile" 2>conftest.err)
5052   cat conftest.err >&5
5053   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5054   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5055   cat conftest.err >&5
5056   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5057   cat conftest.out >&5
5058   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5059     lt_cv_nm_interface="MS dumpbin"
5060   fi
5061   rm -f conftest*
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5064 $as_echo "$lt_cv_nm_interface" >&6; }
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5067 $as_echo_n "checking whether ln -s works... " >&6; }
5068 LN_S=$as_ln_s
5069 if test "$LN_S" = "ln -s"; then
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5072 else
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5074 $as_echo "no, using $LN_S" >&6; }
5075 fi
5076
5077 # find the maximum length of command line arguments
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5079 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5080 if ${lt_cv_sys_max_cmd_len+:} false; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083     i=0
5084   teststring="ABCD"
5085
5086   case $build_os in
5087   msdosdjgpp*)
5088     # On DJGPP, this test can blow up pretty badly due to problems in libc
5089     # (any single argument exceeding 2000 bytes causes a buffer overrun
5090     # during glob expansion).  Even if it were fixed, the result of this
5091     # check would be larger than it should be.
5092     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5093     ;;
5094
5095   gnu*)
5096     # Under GNU Hurd, this test is not required because there is
5097     # no limit to the length of command line arguments.
5098     # Libtool will interpret -1 as no limit whatsoever
5099     lt_cv_sys_max_cmd_len=-1;
5100     ;;
5101
5102   cygwin* | mingw* | cegcc*)
5103     # On Win9x/ME, this test blows up -- it succeeds, but takes
5104     # about 5 minutes as the teststring grows exponentially.
5105     # Worse, since 9x/ME are not pre-emptively multitasking,
5106     # you end up with a "frozen" computer, even though with patience
5107     # the test eventually succeeds (with a max line length of 256k).
5108     # Instead, let's just punt: use the minimum linelength reported by
5109     # all of the supported platforms: 8192 (on NT/2K/XP).
5110     lt_cv_sys_max_cmd_len=8192;
5111     ;;
5112
5113   mint*)
5114     # On MiNT this can take a long time and run out of memory.
5115     lt_cv_sys_max_cmd_len=8192;
5116     ;;
5117
5118   amigaos*)
5119     # On AmigaOS with pdksh, this test takes hours, literally.
5120     # So we just punt and use a minimum line length of 8192.
5121     lt_cv_sys_max_cmd_len=8192;
5122     ;;
5123
5124   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5125     # This has been around since 386BSD, at least.  Likely further.
5126     if test -x /sbin/sysctl; then
5127       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5128     elif test -x /usr/sbin/sysctl; then
5129       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5130     else
5131       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5132     fi
5133     # And add a safety zone
5134     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5135     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5136     ;;
5137
5138   interix*)
5139     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5140     lt_cv_sys_max_cmd_len=196608
5141     ;;
5142
5143   os2*)
5144     # The test takes a long time on OS/2.
5145     lt_cv_sys_max_cmd_len=8192
5146     ;;
5147
5148   osf*)
5149     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5150     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5151     # nice to cause kernel panics so lets avoid the loop below.
5152     # First set a reasonable default.
5153     lt_cv_sys_max_cmd_len=16384
5154     #
5155     if test -x /sbin/sysconfig; then
5156       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5157         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5158       esac
5159     fi
5160     ;;
5161   sco3.2v5*)
5162     lt_cv_sys_max_cmd_len=102400
5163     ;;
5164   sysv5* | sco5v6* | sysv4.2uw2*)
5165     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5166     if test -n "$kargmax"; then
5167       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5168     else
5169       lt_cv_sys_max_cmd_len=32768
5170     fi
5171     ;;
5172   *)
5173     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5174     if test -n "$lt_cv_sys_max_cmd_len"; then
5175       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5176       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5177     else
5178       # Make teststring a little bigger before we do anything with it.
5179       # a 1K string should be a reasonable start.
5180       for i in 1 2 3 4 5 6 7 8 ; do
5181         teststring=$teststring$teststring
5182       done
5183       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5184       # If test is not a shell built-in, we'll probably end up computing a
5185       # maximum length that is only half of the actual maximum length, but
5186       # we can't tell.
5187       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5188                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5189               test $i != 17 # 1/2 MB should be enough
5190       do
5191         i=`expr $i + 1`
5192         teststring=$teststring$teststring
5193       done
5194       # Only check the string length outside the loop.
5195       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5196       teststring=
5197       # Add a significant safety factor because C++ compilers can tack on
5198       # massive amounts of additional arguments before passing them to the
5199       # linker.  It appears as though 1/2 is a usable value.
5200       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5201     fi
5202     ;;
5203   esac
5204
5205 fi
5206
5207 if test -n $lt_cv_sys_max_cmd_len ; then
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5209 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5210 else
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5212 $as_echo "none" >&6; }
5213 fi
5214 max_cmd_len=$lt_cv_sys_max_cmd_len
5215
5216
5217
5218
5219
5220
5221 : ${CP="cp -f"}
5222 : ${MV="mv -f"}
5223 : ${RM="rm -f"}
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5226 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5227 # Try some XSI features
5228 xsi_shell=no
5229 ( _lt_dummy="a/b/c"
5230   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5231       = c,a/b,b/c, \
5232     && eval 'test $(( 1 + 1 )) -eq 2 \
5233     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5234   && xsi_shell=yes
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5236 $as_echo "$xsi_shell" >&6; }
5237
5238
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5240 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5241 lt_shell_append=no
5242 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5243     >/dev/null 2>&1 \
5244   && lt_shell_append=yes
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5246 $as_echo "$lt_shell_append" >&6; }
5247
5248
5249 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5250   lt_unset=unset
5251 else
5252   lt_unset=false
5253 fi
5254
5255
5256
5257
5258
5259 # test EBCDIC or ASCII
5260 case `echo X|tr X '\101'` in
5261  A) # ASCII based system
5262     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5263   lt_SP2NL='tr \040 \012'
5264   lt_NL2SP='tr \015\012 \040\040'
5265   ;;
5266  *) # EBCDIC based system
5267   lt_SP2NL='tr \100 \n'
5268   lt_NL2SP='tr \r\n \100\100'
5269   ;;
5270 esac
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5281 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5282 if ${lt_cv_to_host_file_cmd+:} false; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285   case $host in
5286   *-*-mingw* )
5287     case $build in
5288       *-*-mingw* ) # actually msys
5289         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5290         ;;
5291       *-*-cygwin* )
5292         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5293         ;;
5294       * ) # otherwise, assume *nix
5295         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5296         ;;
5297     esac
5298     ;;
5299   *-*-cygwin* )
5300     case $build in
5301       *-*-mingw* ) # actually msys
5302         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5303         ;;
5304       *-*-cygwin* )
5305         lt_cv_to_host_file_cmd=func_convert_file_noop
5306         ;;
5307       * ) # otherwise, assume *nix
5308         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5309         ;;
5310     esac
5311     ;;
5312   * ) # unhandled hosts (and "normal" native builds)
5313     lt_cv_to_host_file_cmd=func_convert_file_noop
5314     ;;
5315 esac
5316
5317 fi
5318
5319 to_host_file_cmd=$lt_cv_to_host_file_cmd
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5321 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5322
5323
5324
5325
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5328 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5329 if ${lt_cv_to_tool_file_cmd+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   #assume ordinary cross tools, or native build.
5333 lt_cv_to_tool_file_cmd=func_convert_file_noop
5334 case $host in
5335   *-*-mingw* )
5336     case $build in
5337       *-*-mingw* ) # actually msys
5338         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5339         ;;
5340     esac
5341     ;;
5342 esac
5343
5344 fi
5345
5346 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5348 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5349
5350
5351
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5355 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5356 if ${lt_cv_ld_reload_flag+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   lt_cv_ld_reload_flag='-r'
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5362 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5363 reload_flag=$lt_cv_ld_reload_flag
5364 case $reload_flag in
5365 "" | " "*) ;;
5366 *) reload_flag=" $reload_flag" ;;
5367 esac
5368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5369 case $host_os in
5370   cygwin* | mingw* | pw32* | cegcc*)
5371     if test "$GCC" != yes; then
5372       reload_cmds=false
5373     fi
5374     ;;
5375   darwin*)
5376     if test "$GCC" = yes; then
5377       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5378     else
5379       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5380     fi
5381     ;;
5382 esac
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392 if test -n "$ac_tool_prefix"; then
5393   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5394 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_OBJDUMP+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if test -n "$OBJDUMP"; then
5401   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 OBJDUMP=$ac_cv_prog_OBJDUMP
5421 if test -n "$OBJDUMP"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5423 $as_echo "$OBJDUMP" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430 fi
5431 if test -z "$ac_cv_prog_OBJDUMP"; then
5432   ac_ct_OBJDUMP=$OBJDUMP
5433   # Extract the first word of "objdump", so it can be a program name with args.
5434 set dummy objdump; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   if test -n "$ac_ct_OBJDUMP"; then
5441   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448     for ac_exec_ext in '' $ac_executable_extensions; do
5449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455   done
5456 IFS=$as_save_IFS
5457
5458 fi
5459 fi
5460 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5461 if test -n "$ac_ct_OBJDUMP"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5463 $as_echo "$ac_ct_OBJDUMP" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469   if test "x$ac_ct_OBJDUMP" = x; then
5470     OBJDUMP="false"
5471   else
5472     case $cross_compiling:$ac_tool_warned in
5473 yes:)
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476 ac_tool_warned=yes ;;
5477 esac
5478     OBJDUMP=$ac_ct_OBJDUMP
5479   fi
5480 else
5481   OBJDUMP="$ac_cv_prog_OBJDUMP"
5482 fi
5483
5484 test -z "$OBJDUMP" && OBJDUMP=objdump
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5495 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5496 if ${lt_cv_deplibs_check_method+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   lt_cv_file_magic_cmd='$MAGIC_CMD'
5500 lt_cv_file_magic_test_file=
5501 lt_cv_deplibs_check_method='unknown'
5502 # Need to set the preceding variable on all platforms that support
5503 # interlibrary dependencies.
5504 # 'none' -- dependencies not supported.
5505 # `unknown' -- same as none, but documents that we really don't know.
5506 # 'pass_all' -- all dependencies passed with no checks.
5507 # 'test_compile' -- check by making test program.
5508 # 'file_magic [[regex]]' -- check by looking for files in library path
5509 # which responds to the $file_magic_cmd with a given extended regex.
5510 # If you have `file' or equivalent on your system and you're not sure
5511 # whether `pass_all' will *always* work, you probably want this one.
5512
5513 case $host_os in
5514 aix[4-9]*)
5515   lt_cv_deplibs_check_method=pass_all
5516   ;;
5517
5518 beos*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 bsdi[45]*)
5523   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5524   lt_cv_file_magic_cmd='/usr/bin/file -L'
5525   lt_cv_file_magic_test_file=/shlib/libc.so
5526   ;;
5527
5528 cygwin*)
5529   # func_win32_libid is a shell function defined in ltmain.sh
5530   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5531   lt_cv_file_magic_cmd='func_win32_libid'
5532   ;;
5533
5534 mingw* | pw32*)
5535   # Base MSYS/MinGW do not provide the 'file' command needed by
5536   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5537   # unless we find 'file', for example because we are cross-compiling.
5538   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5539   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5540     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5541     lt_cv_file_magic_cmd='func_win32_libid'
5542   else
5543     # Keep this pattern in sync with the one in func_win32_libid.
5544     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5545     lt_cv_file_magic_cmd='$OBJDUMP -f'
5546   fi
5547   ;;
5548
5549 cegcc*)
5550   # use the weaker test based on 'objdump'. See mingw*.
5551   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5552   lt_cv_file_magic_cmd='$OBJDUMP -f'
5553   ;;
5554
5555 darwin* | rhapsody*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558
5559 freebsd* | dragonfly*)
5560   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5561     case $host_cpu in
5562     i*86 )
5563       # Not sure whether the presence of OpenBSD here was a mistake.
5564       # Let's accept both of them until this is cleared up.
5565       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5566       lt_cv_file_magic_cmd=/usr/bin/file
5567       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5568       ;;
5569     esac
5570   else
5571     lt_cv_deplibs_check_method=pass_all
5572   fi
5573   ;;
5574
5575 haiku*)
5576   lt_cv_deplibs_check_method=pass_all
5577   ;;
5578
5579 hpux10.20* | hpux11*)
5580   lt_cv_file_magic_cmd=/usr/bin/file
5581   case $host_cpu in
5582   ia64*)
5583     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5584     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5585     ;;
5586   hppa*64*)
5587     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]'
5588     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5589     ;;
5590   *)
5591     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5592     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5593     ;;
5594   esac
5595   ;;
5596
5597 interix[3-9]*)
5598   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5599   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5600   ;;
5601
5602 irix5* | irix6* | nonstopux*)
5603   case $LD in
5604   *-32|*"-32 ") libmagic=32-bit;;
5605   *-n32|*"-n32 ") libmagic=N32;;
5606   *-64|*"-64 ") libmagic=64-bit;;
5607   *) libmagic=never-match;;
5608   esac
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 # This must be glibc/ELF.
5613 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5614   lt_cv_deplibs_check_method=pass_all
5615   ;;
5616
5617 netbsd* | netbsdelf*-gnu)
5618   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5620   else
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5622   fi
5623   ;;
5624
5625 newos6*)
5626   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5627   lt_cv_file_magic_cmd=/usr/bin/file
5628   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5629   ;;
5630
5631 *nto* | *qnx*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 openbsd*)
5636   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5638   else
5639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5640   fi
5641   ;;
5642
5643 osf3* | osf4* | osf5*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 rdos*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 solaris*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 sysv4 | sysv4.3*)
5660   case $host_vendor in
5661   motorola)
5662     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]'
5663     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5664     ;;
5665   ncr)
5666     lt_cv_deplibs_check_method=pass_all
5667     ;;
5668   sequent)
5669     lt_cv_file_magic_cmd='/bin/file'
5670     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5671     ;;
5672   sni)
5673     lt_cv_file_magic_cmd='/bin/file'
5674     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5675     lt_cv_file_magic_test_file=/lib/libc.so
5676     ;;
5677   siemens)
5678     lt_cv_deplibs_check_method=pass_all
5679     ;;
5680   pc)
5681     lt_cv_deplibs_check_method=pass_all
5682     ;;
5683   esac
5684   ;;
5685
5686 tpf*)
5687   lt_cv_deplibs_check_method=pass_all
5688   ;;
5689 esac
5690
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5693 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5694
5695 file_magic_glob=
5696 want_nocaseglob=no
5697 if test "$build" = "$host"; then
5698   case $host_os in
5699   mingw* | pw32*)
5700     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5701       want_nocaseglob=yes
5702     else
5703       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5704     fi
5705     ;;
5706   esac
5707 fi
5708
5709 file_magic_cmd=$lt_cv_file_magic_cmd
5710 deplibs_check_method=$lt_cv_deplibs_check_method
5711 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 if test -n "$ac_tool_prefix"; then
5735   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5736 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_DLLTOOL+:} false; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742   if test -n "$DLLTOOL"; then
5743   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748   IFS=$as_save_IFS
5749   test -z "$as_dir" && as_dir=.
5750     for ac_exec_ext in '' $ac_executable_extensions; do
5751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754     break 2
5755   fi
5756 done
5757   done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 DLLTOOL=$ac_cv_prog_DLLTOOL
5763 if test -n "$DLLTOOL"; then
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5765 $as_echo "$DLLTOOL" >&6; }
5766 else
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771
5772 fi
5773 if test -z "$ac_cv_prog_DLLTOOL"; then
5774   ac_ct_DLLTOOL=$DLLTOOL
5775   # Extract the first word of "dlltool", so it can be a program name with args.
5776 set dummy dlltool; ac_word=$2
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778 $as_echo_n "checking for $ac_word... " >&6; }
5779 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   if test -n "$ac_ct_DLLTOOL"; then
5783   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788   IFS=$as_save_IFS
5789   test -z "$as_dir" && as_dir=.
5790     for ac_exec_ext in '' $ac_executable_extensions; do
5791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794     break 2
5795   fi
5796 done
5797   done
5798 IFS=$as_save_IFS
5799
5800 fi
5801 fi
5802 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5803 if test -n "$ac_ct_DLLTOOL"; then
5804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5805 $as_echo "$ac_ct_DLLTOOL" >&6; }
5806 else
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5809 fi
5810
5811   if test "x$ac_ct_DLLTOOL" = x; then
5812     DLLTOOL="false"
5813   else
5814     case $cross_compiling:$ac_tool_warned in
5815 yes:)
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818 ac_tool_warned=yes ;;
5819 esac
5820     DLLTOOL=$ac_ct_DLLTOOL
5821   fi
5822 else
5823   DLLTOOL="$ac_cv_prog_DLLTOOL"
5824 fi
5825
5826 test -z "$DLLTOOL" && DLLTOOL=dlltool
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5838 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5839 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   lt_cv_sharedlib_from_linklib_cmd='unknown'
5843
5844 case $host_os in
5845 cygwin* | mingw* | pw32* | cegcc*)
5846   # two different shell functions defined in ltmain.sh
5847   # decide which to use based on capabilities of $DLLTOOL
5848   case `$DLLTOOL --help 2>&1` in
5849   *--identify-strict*)
5850     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5851     ;;
5852   *)
5853     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5854     ;;
5855   esac
5856   ;;
5857 *)
5858   # fallback: assume linklib IS sharedlib
5859   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5860   ;;
5861 esac
5862
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5865 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5866 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5867 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5868
5869
5870
5871
5872
5873
5874
5875
5876 if test -n "$ac_tool_prefix"; then
5877   for ac_prog in ar
5878   do
5879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_AR+:} false; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if test -n "$AR"; then
5887   ac_cv_prog_AR="$AR" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894     for ac_exec_ext in '' $ac_executable_extensions; do
5895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901   done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 AR=$ac_cv_prog_AR
5907 if test -n "$AR"; then
5908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5909 $as_echo "$AR" >&6; }
5910 else
5911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5913 fi
5914
5915
5916     test -n "$AR" && break
5917   done
5918 fi
5919 if test -z "$AR"; then
5920   ac_ct_AR=$AR
5921   for ac_prog in ar
5922 do
5923   # Extract the first word of "$ac_prog", so it can be a program name with args.
5924 set dummy $ac_prog; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   if test -n "$ac_ct_AR"; then
5931   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938     for ac_exec_ext in '' $ac_executable_extensions; do
5939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940     ac_cv_prog_ac_ct_AR="$ac_prog"
5941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945   done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5951 if test -n "$ac_ct_AR"; then
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5953 $as_echo "$ac_ct_AR" >&6; }
5954 else
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959
5960   test -n "$ac_ct_AR" && break
5961 done
5962
5963   if test "x$ac_ct_AR" = x; then
5964     AR="false"
5965   else
5966     case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972     AR=$ac_ct_AR
5973   fi
5974 fi
5975
5976 : ${AR=ar}
5977 : ${AR_FLAGS=cru}
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5990 $as_echo_n "checking for archiver @FILE support... " >&6; }
5991 if ${lt_cv_ar_at_file+:} false; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   lt_cv_ar_at_file=no
5995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h.  */
5997
5998 int
5999 main ()
6000 {
6001
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 if ac_fn_c_try_compile "$LINENO"; then :
6007   echo conftest.$ac_objext > conftest.lst
6008       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6009       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6010   (eval $lt_ar_try) 2>&5
6011   ac_status=$?
6012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6013   test $ac_status = 0; }
6014       if test "$ac_status" -eq 0; then
6015         # Ensure the archiver fails upon bogus file names.
6016         rm -f conftest.$ac_objext libconftest.a
6017         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6018   (eval $lt_ar_try) 2>&5
6019   ac_status=$?
6020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021   test $ac_status = 0; }
6022         if test "$ac_status" -ne 0; then
6023           lt_cv_ar_at_file=@
6024         fi
6025       fi
6026       rm -f conftest.* libconftest.a
6027
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6033 $as_echo "$lt_cv_ar_at_file" >&6; }
6034
6035 if test "x$lt_cv_ar_at_file" = xno; then
6036   archiver_list_spec=
6037 else
6038   archiver_list_spec=$lt_cv_ar_at_file
6039 fi
6040
6041
6042
6043
6044
6045
6046
6047 if test -n "$ac_tool_prefix"; then
6048   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}strip; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_STRIP+:} false; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   if test -n "$STRIP"; then
6056   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063     for ac_exec_ext in '' $ac_executable_extensions; do
6064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070   done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 STRIP=$ac_cv_prog_STRIP
6076 if test -n "$STRIP"; then
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6078 $as_echo "$STRIP" >&6; }
6079 else
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085 fi
6086 if test -z "$ac_cv_prog_STRIP"; then
6087   ac_ct_STRIP=$STRIP
6088   # Extract the first word of "strip", so it can be a program name with args.
6089 set dummy strip; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   if test -n "$ac_ct_STRIP"; then
6096   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103     for ac_exec_ext in '' $ac_executable_extensions; do
6104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105     ac_cv_prog_ac_ct_STRIP="strip"
6106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110   done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6116 if test -n "$ac_ct_STRIP"; then
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6118 $as_echo "$ac_ct_STRIP" >&6; }
6119 else
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124   if test "x$ac_ct_STRIP" = x; then
6125     STRIP=":"
6126   else
6127     case $cross_compiling:$ac_tool_warned in
6128 yes:)
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6132 esac
6133     STRIP=$ac_ct_STRIP
6134   fi
6135 else
6136   STRIP="$ac_cv_prog_STRIP"
6137 fi
6138
6139 test -z "$STRIP" && STRIP=:
6140
6141
6142
6143
6144
6145
6146 if test -n "$ac_tool_prefix"; then
6147   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_RANLIB+:} false; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   if test -n "$RANLIB"; then
6155   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162     for ac_exec_ext in '' $ac_executable_extensions; do
6163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169   done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6177 $as_echo "$RANLIB" >&6; }
6178 else
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186   ac_ct_RANLIB=$RANLIB
6187   # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   if test -n "$ac_ct_RANLIB"; then
6195   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202     for ac_exec_ext in '' $ac_executable_extensions; do
6203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204     ac_cv_prog_ac_ct_RANLIB="ranlib"
6205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209   done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6217 $as_echo "$ac_ct_RANLIB" >&6; }
6218 else
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223   if test "x$ac_ct_RANLIB" = x; then
6224     RANLIB=":"
6225   else
6226     case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232     RANLIB=$ac_ct_RANLIB
6233   fi
6234 else
6235   RANLIB="$ac_cv_prog_RANLIB"
6236 fi
6237
6238 test -z "$RANLIB" && RANLIB=:
6239
6240
6241
6242
6243
6244
6245 # Determine commands to create old-style static archives.
6246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6247 old_postinstall_cmds='chmod 644 $oldlib'
6248 old_postuninstall_cmds=
6249
6250 if test -n "$RANLIB"; then
6251   case $host_os in
6252   openbsd*)
6253     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6254     ;;
6255   *)
6256     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6257     ;;
6258   esac
6259   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6260 fi
6261
6262 case $host_os in
6263   darwin*)
6264     lock_old_archive_extraction=yes ;;
6265   *)
6266     lock_old_archive_extraction=no ;;
6267 esac
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 # If no C compiler was specified, use CC.
6308 LTCC=${LTCC-"$CC"}
6309
6310 # If no C compiler flags were specified, use CFLAGS.
6311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6312
6313 # Allow CC to be a program name with arguments.
6314 compiler=$CC
6315
6316
6317 # Check for command to grab the raw symbol name followed by C symbol from nm.
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6319 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6320 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323
6324 # These are sane defaults that work on at least a few old systems.
6325 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6326
6327 # Character class describing NM global symbol codes.
6328 symcode='[BCDEGRST]'
6329
6330 # Regexp to match symbols that can be accessed directly from C.
6331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6332
6333 # Define system-specific variables.
6334 case $host_os in
6335 aix*)
6336   symcode='[BCDT]'
6337   ;;
6338 cygwin* | mingw* | pw32* | cegcc*)
6339   symcode='[ABCDGISTW]'
6340   ;;
6341 hpux*)
6342   if test "$host_cpu" = ia64; then
6343     symcode='[ABCDEGRST]'
6344   fi
6345   ;;
6346 irix* | nonstopux*)
6347   symcode='[BCDEGRST]'
6348   ;;
6349 osf*)
6350   symcode='[BCDEGQRST]'
6351   ;;
6352 solaris*)
6353   symcode='[BDRT]'
6354   ;;
6355 sco3.2v5*)
6356   symcode='[DT]'
6357   ;;
6358 sysv4.2uw2*)
6359   symcode='[DT]'
6360   ;;
6361 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6362   symcode='[ABDT]'
6363   ;;
6364 sysv4)
6365   symcode='[DFNSTU]'
6366   ;;
6367 esac
6368
6369 # If we're using GNU nm, then use its standard symbol codes.
6370 case `$NM -V 2>&1` in
6371 *GNU* | *'with BFD'*)
6372   symcode='[ABCDGIRSTW]' ;;
6373 esac
6374
6375 # Transform an extracted symbol line into a proper C declaration.
6376 # Some systems (esp. on ia64) link data and code symbols differently,
6377 # so use this general approach.
6378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6379
6380 # Transform an extracted symbol line into symbol name and symbol address
6381 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6382 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'"
6383
6384 # Handle CRLF in mingw tool chain
6385 opt_cr=
6386 case $build_os in
6387 mingw*)
6388   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6389   ;;
6390 esac
6391
6392 # Try without a prefix underscore, then with it.
6393 for ac_symprfx in "" "_"; do
6394
6395   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6396   symxfrm="\\1 $ac_symprfx\\2 \\2"
6397
6398   # Write the raw and C identifiers.
6399   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6400     # Fake it for dumpbin and say T for any non-static function
6401     # and D for any global variable.
6402     # Also find C++ and __fastcall symbols from MSVC++,
6403     # which start with @ or ?.
6404     lt_cv_sys_global_symbol_pipe="$AWK '"\
6405 "     {last_section=section; section=\$ 3};"\
6406 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6407 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6408 "     \$ 0!~/External *\|/{next};"\
6409 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6410 "     {if(hide[section]) next};"\
6411 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6412 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6413 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6414 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6415 "     ' prfx=^$ac_symprfx"
6416   else
6417     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6418   fi
6419   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6420
6421   # Check to see that the pipe works correctly.
6422   pipe_works=no
6423
6424   rm -f conftest*
6425   cat > conftest.$ac_ext <<_LT_EOF
6426 #ifdef __cplusplus
6427 extern "C" {
6428 #endif
6429 char nm_test_var;
6430 void nm_test_func(void);
6431 void nm_test_func(void){}
6432 #ifdef __cplusplus
6433 }
6434 #endif
6435 int main(){nm_test_var='a';nm_test_func();return(0);}
6436 _LT_EOF
6437
6438   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6439   (eval $ac_compile) 2>&5
6440   ac_status=$?
6441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6442   test $ac_status = 0; }; then
6443     # Now try to grab the symbols.
6444     nlist=conftest.nm
6445     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6446   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6447   ac_status=$?
6448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449   test $ac_status = 0; } && test -s "$nlist"; then
6450       # Try sorting and uniquifying the output.
6451       if sort "$nlist" | uniq > "$nlist"T; then
6452         mv -f "$nlist"T "$nlist"
6453       else
6454         rm -f "$nlist"T
6455       fi
6456
6457       # Make sure that we snagged all the symbols we need.
6458       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6459         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6460           cat <<_LT_EOF > conftest.$ac_ext
6461 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6462 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6463 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6464    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6465 # define LT_DLSYM_CONST
6466 #elif defined(__osf__)
6467 /* This system does not cope well with relocations in const data.  */
6468 # define LT_DLSYM_CONST
6469 #else
6470 # define LT_DLSYM_CONST const
6471 #endif
6472
6473 #ifdef __cplusplus
6474 extern "C" {
6475 #endif
6476
6477 _LT_EOF
6478           # Now generate the symbol file.
6479           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6480
6481           cat <<_LT_EOF >> conftest.$ac_ext
6482
6483 /* The mapping between symbol names and symbols.  */
6484 LT_DLSYM_CONST struct {
6485   const char *name;
6486   void       *address;
6487 }
6488 lt__PROGRAM__LTX_preloaded_symbols[] =
6489 {
6490   { "@PROGRAM@", (void *) 0 },
6491 _LT_EOF
6492           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6493           cat <<\_LT_EOF >> conftest.$ac_ext
6494   {0, (void *) 0}
6495 };
6496
6497 /* This works around a problem in FreeBSD linker */
6498 #ifdef FREEBSD_WORKAROUND
6499 static const void *lt_preloaded_setup() {
6500   return lt__PROGRAM__LTX_preloaded_symbols;
6501 }
6502 #endif
6503
6504 #ifdef __cplusplus
6505 }
6506 #endif
6507 _LT_EOF
6508           # Now try linking the two files.
6509           mv conftest.$ac_objext conftstm.$ac_objext
6510           lt_globsym_save_LIBS=$LIBS
6511           lt_globsym_save_CFLAGS=$CFLAGS
6512           LIBS="conftstm.$ac_objext"
6513           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6514           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6515   (eval $ac_link) 2>&5
6516   ac_status=$?
6517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6519             pipe_works=yes
6520           fi
6521           LIBS=$lt_globsym_save_LIBS
6522           CFLAGS=$lt_globsym_save_CFLAGS
6523         else
6524           echo "cannot find nm_test_func in $nlist" >&5
6525         fi
6526       else
6527         echo "cannot find nm_test_var in $nlist" >&5
6528       fi
6529     else
6530       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6531     fi
6532   else
6533     echo "$progname: failed program was:" >&5
6534     cat conftest.$ac_ext >&5
6535   fi
6536   rm -rf conftest* conftst*
6537
6538   # Do not use the global_symbol_pipe unless it works.
6539   if test "$pipe_works" = yes; then
6540     break
6541   else
6542     lt_cv_sys_global_symbol_pipe=
6543   fi
6544 done
6545
6546 fi
6547
6548 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6549   lt_cv_sys_global_symbol_to_cdecl=
6550 fi
6551 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6553 $as_echo "failed" >&6; }
6554 else
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6556 $as_echo "ok" >&6; }
6557 fi
6558
6559 # Response file support.
6560 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6561   nm_file_list_spec='@'
6562 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6563   nm_file_list_spec='@'
6564 fi
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6593 $as_echo_n "checking for sysroot... " >&6; }
6594
6595 # Check whether --with-sysroot was given.
6596 if test "${with_sysroot+set}" = set; then :
6597   withval=$with_sysroot;
6598 else
6599   with_sysroot=no
6600 fi
6601
6602
6603 lt_sysroot=
6604 case ${with_sysroot} in #(
6605  yes)
6606    if test "$GCC" = yes; then
6607      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6608    fi
6609    ;; #(
6610  /*)
6611    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6612    ;; #(
6613  no|'')
6614    ;; #(
6615  *)
6616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6617 $as_echo "${with_sysroot}" >&6; }
6618    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6619    ;;
6620 esac
6621
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6623 $as_echo "${lt_sysroot:-no}" >&6; }
6624
6625
6626
6627
6628
6629 # Check whether --enable-libtool-lock was given.
6630 if test "${enable_libtool_lock+set}" = set; then :
6631   enableval=$enable_libtool_lock;
6632 fi
6633
6634 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6635
6636 # Some flags need to be propagated to the compiler or linker for good
6637 # libtool support.
6638 case $host in
6639 ia64-*-hpux*)
6640   # Find out which ABI we are using.
6641   echo 'int i;' > conftest.$ac_ext
6642   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6643   (eval $ac_compile) 2>&5
6644   ac_status=$?
6645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646   test $ac_status = 0; }; then
6647     case `/usr/bin/file conftest.$ac_objext` in
6648       *ELF-32*)
6649         HPUX_IA64_MODE="32"
6650         ;;
6651       *ELF-64*)
6652         HPUX_IA64_MODE="64"
6653         ;;
6654     esac
6655   fi
6656   rm -rf conftest*
6657   ;;
6658 *-*-irix6*)
6659   # Find out which ABI we are using.
6660   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6661   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662   (eval $ac_compile) 2>&5
6663   ac_status=$?
6664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665   test $ac_status = 0; }; then
6666     if test "$lt_cv_prog_gnu_ld" = yes; then
6667       case `/usr/bin/file conftest.$ac_objext` in
6668         *32-bit*)
6669           LD="${LD-ld} -melf32bsmip"
6670           ;;
6671         *N32*)
6672           LD="${LD-ld} -melf32bmipn32"
6673           ;;
6674         *64-bit*)
6675           LD="${LD-ld} -melf64bmip"
6676         ;;
6677       esac
6678     else
6679       case `/usr/bin/file conftest.$ac_objext` in
6680         *32-bit*)
6681           LD="${LD-ld} -32"
6682           ;;
6683         *N32*)
6684           LD="${LD-ld} -n32"
6685           ;;
6686         *64-bit*)
6687           LD="${LD-ld} -64"
6688           ;;
6689       esac
6690     fi
6691   fi
6692   rm -rf conftest*
6693   ;;
6694
6695 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6696 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6697   # Find out which ABI we are using.
6698   echo 'int i;' > conftest.$ac_ext
6699   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700   (eval $ac_compile) 2>&5
6701   ac_status=$?
6702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703   test $ac_status = 0; }; then
6704     case `/usr/bin/file conftest.o` in
6705       *32-bit*)
6706         case $host in
6707           x86_64-*kfreebsd*-gnu)
6708             LD="${LD-ld} -m elf_i386_fbsd"
6709             ;;
6710           x86_64-*linux*)
6711             LD="${LD-ld} -m elf_i386"
6712             ;;
6713           ppc64-*linux*|powerpc64-*linux*)
6714             LD="${LD-ld} -m elf32ppclinux"
6715             ;;
6716           s390x-*linux*)
6717             LD="${LD-ld} -m elf_s390"
6718             ;;
6719           sparc64-*linux*)
6720             LD="${LD-ld} -m elf32_sparc"
6721             ;;
6722         esac
6723         ;;
6724       *64-bit*)
6725         case $host in
6726           x86_64-*kfreebsd*-gnu)
6727             LD="${LD-ld} -m elf_x86_64_fbsd"
6728             ;;
6729           x86_64-*linux*)
6730             LD="${LD-ld} -m elf_x86_64"
6731             ;;
6732           ppc*-*linux*|powerpc*-*linux*)
6733             LD="${LD-ld} -m elf64ppc"
6734             ;;
6735           s390*-*linux*|s390*-*tpf*)
6736             LD="${LD-ld} -m elf64_s390"
6737             ;;
6738           sparc*-*linux*)
6739             LD="${LD-ld} -m elf64_sparc"
6740             ;;
6741         esac
6742         ;;
6743     esac
6744   fi
6745   rm -rf conftest*
6746   ;;
6747
6748 *-*-sco3.2v5*)
6749   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6750   SAVE_CFLAGS="$CFLAGS"
6751   CFLAGS="$CFLAGS -belf"
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6753 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6754 if ${lt_cv_cc_needs_belf+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   ac_ext=c
6758 ac_cpp='$CPP $CPPFLAGS'
6759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6762
6763      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h.  */
6765
6766 int
6767 main ()
6768 {
6769
6770   ;
6771   return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775   lt_cv_cc_needs_belf=yes
6776 else
6777   lt_cv_cc_needs_belf=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext \
6780     conftest$ac_exeext conftest.$ac_ext
6781      ac_ext=c
6782 ac_cpp='$CPP $CPPFLAGS'
6783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6789 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6790   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6791     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6792     CFLAGS="$SAVE_CFLAGS"
6793   fi
6794   ;;
6795 *-*solaris*)
6796   # Find out which ABI we are using.
6797   echo 'int i;' > conftest.$ac_ext
6798   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799   (eval $ac_compile) 2>&5
6800   ac_status=$?
6801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802   test $ac_status = 0; }; then
6803     case `/usr/bin/file conftest.o` in
6804     *64-bit*)
6805       case $lt_cv_prog_gnu_ld in
6806       yes*)
6807         case $host in
6808         i?86-*-solaris*)
6809           LD="${LD-ld} -m elf_x86_64"
6810           ;;
6811         sparc*-*-solaris*)
6812           LD="${LD-ld} -m elf64_sparc"
6813           ;;
6814         esac
6815         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6816         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6817           LD="${LD-ld}_sol2"
6818         fi
6819         ;;
6820       *)
6821         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6822           LD="${LD-ld} -64"
6823         fi
6824         ;;
6825       esac
6826       ;;
6827     esac
6828   fi
6829   rm -rf conftest*
6830   ;;
6831 esac
6832
6833 need_locks="$enable_libtool_lock"
6834
6835 if test -n "$ac_tool_prefix"; then
6836   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}mt; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   if test -n "$MANIFEST_TOOL"; then
6844   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851     for ac_exec_ext in '' $ac_executable_extensions; do
6852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858   done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6864 if test -n "$MANIFEST_TOOL"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6866 $as_echo "$MANIFEST_TOOL" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872
6873 fi
6874 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6875   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6876   # Extract the first word of "mt", so it can be a program name with args.
6877 set dummy mt; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   if test -n "$ac_ct_MANIFEST_TOOL"; then
6884   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891     for ac_exec_ext in '' $ac_executable_extensions; do
6892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895     break 2
6896   fi
6897 done
6898   done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6904 if test -n "$ac_ct_MANIFEST_TOOL"; then
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6906 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6913     MANIFEST_TOOL=":"
6914   else
6915     case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6922   fi
6923 else
6924   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6925 fi
6926
6927 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6929 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6930 if ${lt_cv_path_mainfest_tool+:} false; then :
6931   $as_echo_n "(cached) " >&6
6932 else
6933   lt_cv_path_mainfest_tool=no
6934   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6935   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6936   cat conftest.err >&5
6937   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6938     lt_cv_path_mainfest_tool=yes
6939   fi
6940   rm -f conftest*
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6943 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6944 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6945   MANIFEST_TOOL=:
6946 fi
6947
6948
6949
6950
6951
6952
6953   case $host_os in
6954     rhapsody* | darwin*)
6955     if test -n "$ac_tool_prefix"; then
6956   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6961   $as_echo_n "(cached) " >&6
6962 else
6963   if test -n "$DSYMUTIL"; then
6964   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971     for ac_exec_ext in '' $ac_executable_extensions; do
6972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978   done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6984 if test -n "$DSYMUTIL"; then
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6986 $as_echo "$DSYMUTIL" >&6; }
6987 else
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992
6993 fi
6994 if test -z "$ac_cv_prog_DSYMUTIL"; then
6995   ac_ct_DSYMUTIL=$DSYMUTIL
6996   # Extract the first word of "dsymutil", so it can be a program name with args.
6997 set dummy dsymutil; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   if test -n "$ac_ct_DSYMUTIL"; then
7004   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011     for ac_exec_ext in '' $ac_executable_extensions; do
7012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018   done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7024 if test -n "$ac_ct_DSYMUTIL"; then
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7026 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7027 else
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032   if test "x$ac_ct_DSYMUTIL" = x; then
7033     DSYMUTIL=":"
7034   else
7035     case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041     DSYMUTIL=$ac_ct_DSYMUTIL
7042   fi
7043 else
7044   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7045 fi
7046
7047     if test -n "$ac_tool_prefix"; then
7048   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_NMEDIT+:} false; then :
7053   $as_echo_n "(cached) " >&6
7054 else
7055   if test -n "$NMEDIT"; then
7056   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063     for ac_exec_ext in '' $ac_executable_extensions; do
7064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070   done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 NMEDIT=$ac_cv_prog_NMEDIT
7076 if test -n "$NMEDIT"; then
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7078 $as_echo "$NMEDIT" >&6; }
7079 else
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_NMEDIT"; then
7087   ac_ct_NMEDIT=$NMEDIT
7088   # Extract the first word of "nmedit", so it can be a program name with args.
7089 set dummy nmedit; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   if test -n "$ac_ct_NMEDIT"; then
7096   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103     for ac_exec_ext in '' $ac_executable_extensions; do
7104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110   done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7116 if test -n "$ac_ct_NMEDIT"; then
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7118 $as_echo "$ac_ct_NMEDIT" >&6; }
7119 else
7120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124   if test "x$ac_ct_NMEDIT" = x; then
7125     NMEDIT=":"
7126   else
7127     case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133     NMEDIT=$ac_ct_NMEDIT
7134   fi
7135 else
7136   NMEDIT="$ac_cv_prog_NMEDIT"
7137 fi
7138
7139     if test -n "$ac_tool_prefix"; then
7140   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if ${ac_cv_prog_LIPO+:} false; then :
7145   $as_echo_n "(cached) " >&6
7146 else
7147   if test -n "$LIPO"; then
7148   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155     for ac_exec_ext in '' $ac_executable_extensions; do
7156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162   done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 LIPO=$ac_cv_prog_LIPO
7168 if test -n "$LIPO"; then
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7170 $as_echo "$LIPO" >&6; }
7171 else
7172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7174 fi
7175
7176
7177 fi
7178 if test -z "$ac_cv_prog_LIPO"; then
7179   ac_ct_LIPO=$LIPO
7180   # Extract the first word of "lipo", so it can be a program name with args.
7181 set dummy lipo; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   if test -n "$ac_ct_LIPO"; then
7188   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195     for ac_exec_ext in '' $ac_executable_extensions; do
7196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197     ac_cv_prog_ac_ct_LIPO="lipo"
7198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202   done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7208 if test -n "$ac_ct_LIPO"; then
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7210 $as_echo "$ac_ct_LIPO" >&6; }
7211 else
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216   if test "x$ac_ct_LIPO" = x; then
7217     LIPO=":"
7218   else
7219     case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225     LIPO=$ac_ct_LIPO
7226   fi
7227 else
7228   LIPO="$ac_cv_prog_LIPO"
7229 fi
7230
7231     if test -n "$ac_tool_prefix"; then
7232   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}otool; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if ${ac_cv_prog_OTOOL+:} false; then :
7237   $as_echo_n "(cached) " >&6
7238 else
7239   if test -n "$OTOOL"; then
7240   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245   IFS=$as_save_IFS
7246   test -z "$as_dir" && as_dir=.
7247     for ac_exec_ext in '' $ac_executable_extensions; do
7248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251     break 2
7252   fi
7253 done
7254   done
7255 IFS=$as_save_IFS
7256
7257 fi
7258 fi
7259 OTOOL=$ac_cv_prog_OTOOL
7260 if test -n "$OTOOL"; then
7261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7262 $as_echo "$OTOOL" >&6; }
7263 else
7264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7266 fi
7267
7268
7269 fi
7270 if test -z "$ac_cv_prog_OTOOL"; then
7271   ac_ct_OTOOL=$OTOOL
7272   # Extract the first word of "otool", so it can be a program name with args.
7273 set dummy otool; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7277   $as_echo_n "(cached) " >&6
7278 else
7279   if test -n "$ac_ct_OTOOL"; then
7280   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287     for ac_exec_ext in '' $ac_executable_extensions; do
7288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_prog_ac_ct_OTOOL="otool"
7290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294   done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7300 if test -n "$ac_ct_OTOOL"; then
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7302 $as_echo "$ac_ct_OTOOL" >&6; }
7303 else
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308   if test "x$ac_ct_OTOOL" = x; then
7309     OTOOL=":"
7310   else
7311     case $cross_compiling:$ac_tool_warned in
7312 yes:)
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315 ac_tool_warned=yes ;;
7316 esac
7317     OTOOL=$ac_ct_OTOOL
7318   fi
7319 else
7320   OTOOL="$ac_cv_prog_OTOOL"
7321 fi
7322
7323     if test -n "$ac_tool_prefix"; then
7324   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_OTOOL64+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$OTOOL64"; then
7332   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 OTOOL64=$ac_cv_prog_OTOOL64
7352 if test -n "$OTOOL64"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7354 $as_echo "$OTOOL64" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_OTOOL64"; then
7363   ac_ct_OTOOL64=$OTOOL64
7364   # Extract the first word of "otool64", so it can be a program name with args.
7365 set dummy otool64; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$ac_ct_OTOOL64"; then
7372   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_ac_ct_OTOOL64="otool64"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7392 if test -n "$ac_ct_OTOOL64"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7394 $as_echo "$ac_ct_OTOOL64" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400   if test "x$ac_ct_OTOOL64" = x; then
7401     OTOOL64=":"
7402   else
7403     case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409     OTOOL64=$ac_ct_OTOOL64
7410   fi
7411 else
7412   OTOOL64="$ac_cv_prog_OTOOL64"
7413 fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7442 $as_echo_n "checking for -single_module linker flag... " >&6; }
7443 if ${lt_cv_apple_cc_single_mod+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   lt_cv_apple_cc_single_mod=no
7447       if test -z "${LT_MULTI_MODULE}"; then
7448         # By default we will add the -single_module flag. You can override
7449         # by either setting the environment variable LT_MULTI_MODULE
7450         # non-empty at configure time, or by adding -multi_module to the
7451         # link flags.
7452         rm -rf libconftest.dylib*
7453         echo "int foo(void){return 1;}" > conftest.c
7454         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7455 -dynamiclib -Wl,-single_module conftest.c" >&5
7456         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7457           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7458         _lt_result=$?
7459         # If there is a non-empty error log, and "single_module"
7460         # appears in it, assume the flag caused a linker warning
7461         if test -s conftest.err && $GREP single_module conftest.err; then
7462           cat conftest.err >&5
7463         # Otherwise, if the output was created with a 0 exit code from
7464         # the compiler, it worked.
7465         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7466           lt_cv_apple_cc_single_mod=yes
7467         else
7468           cat conftest.err >&5
7469         fi
7470         rm -rf libconftest.dylib*
7471         rm -f conftest.*
7472       fi
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7475 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7476
7477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7478 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7479 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7480   $as_echo_n "(cached) " >&6
7481 else
7482   lt_cv_ld_exported_symbols_list=no
7483       save_LDFLAGS=$LDFLAGS
7484       echo "_main" > conftest.sym
7485       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7486       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h.  */
7488
7489 int
7490 main ()
7491 {
7492
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498   lt_cv_ld_exported_symbols_list=yes
7499 else
7500   lt_cv_ld_exported_symbols_list=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext \
7503     conftest$ac_exeext conftest.$ac_ext
7504         LDFLAGS="$save_LDFLAGS"
7505
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7508 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7509
7510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7511 $as_echo_n "checking for -force_load linker flag... " >&6; }
7512 if ${lt_cv_ld_force_load+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   lt_cv_ld_force_load=no
7516       cat > conftest.c << _LT_EOF
7517 int forced_loaded() { return 2;}
7518 _LT_EOF
7519       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7520       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7521       echo "$AR cru libconftest.a conftest.o" >&5
7522       $AR cru libconftest.a conftest.o 2>&5
7523       echo "$RANLIB libconftest.a" >&5
7524       $RANLIB libconftest.a 2>&5
7525       cat > conftest.c << _LT_EOF
7526 int main() { return 0;}
7527 _LT_EOF
7528       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7529       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7530       _lt_result=$?
7531       if test -s conftest.err && $GREP force_load conftest.err; then
7532         cat conftest.err >&5
7533       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7534         lt_cv_ld_force_load=yes
7535       else
7536         cat conftest.err >&5
7537       fi
7538         rm -f conftest.err libconftest.a conftest conftest.c
7539         rm -rf conftest.dSYM
7540
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7543 $as_echo "$lt_cv_ld_force_load" >&6; }
7544     case $host_os in
7545     rhapsody* | darwin1.[012])
7546       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7547     darwin1.*)
7548       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7549     darwin*) # darwin 5.x on
7550       # if running on 10.5 or later, the deployment target defaults
7551       # to the OS version, if on x86, and 10.4, the deployment
7552       # target defaults to 10.4. Don't you love it?
7553       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7554         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7555           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7556         10.[012]*)
7557           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7558         10.*)
7559           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7560       esac
7561     ;;
7562   esac
7563     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7564       _lt_dar_single_mod='$single_module'
7565     fi
7566     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7567       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7568     else
7569       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7570     fi
7571     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7572       _lt_dsymutil='~$DSYMUTIL $lib || :'
7573     else
7574       _lt_dsymutil=
7575     fi
7576     ;;
7577   esac
7578
7579 ac_ext=c
7580 ac_cpp='$CPP $CPPFLAGS'
7581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7585 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7586 # On Suns, sometimes $CPP names a directory.
7587 if test -n "$CPP" && test -d "$CPP"; then
7588   CPP=
7589 fi
7590 if test -z "$CPP"; then
7591   if ${ac_cv_prog_CPP+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594       # Double quotes because CPP needs to be expanded
7595     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7596     do
7597       ac_preproc_ok=false
7598 for ac_c_preproc_warn_flag in '' yes
7599 do
7600   # Use a header file that comes with gcc, so configuring glibc
7601   # with a fresh cross-compiler works.
7602   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7603   # <limits.h> exists even on freestanding compilers.
7604   # On the NeXT, cc -E runs the code through the compiler's parser,
7605   # not just through cpp. "Syntax error" is here to catch this case.
7606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h.  */
7608 #ifdef __STDC__
7609 # include <limits.h>
7610 #else
7611 # include <assert.h>
7612 #endif
7613                      Syntax error
7614 _ACEOF
7615 if ac_fn_c_try_cpp "$LINENO"; then :
7616
7617 else
7618   # Broken: fails on valid input.
7619 continue
7620 fi
7621 rm -f conftest.err conftest.i conftest.$ac_ext
7622
7623   # OK, works on sane cases.  Now check whether nonexistent headers
7624   # can be detected and how.
7625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h.  */
7627 #include <ac_nonexistent.h>
7628 _ACEOF
7629 if ac_fn_c_try_cpp "$LINENO"; then :
7630   # Broken: success on invalid input.
7631 continue
7632 else
7633   # Passes both tests.
7634 ac_preproc_ok=:
7635 break
7636 fi
7637 rm -f conftest.err conftest.i conftest.$ac_ext
7638
7639 done
7640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7641 rm -f conftest.i conftest.err conftest.$ac_ext
7642 if $ac_preproc_ok; then :
7643   break
7644 fi
7645
7646     done
7647     ac_cv_prog_CPP=$CPP
7648
7649 fi
7650   CPP=$ac_cv_prog_CPP
7651 else
7652   ac_cv_prog_CPP=$CPP
7653 fi
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7655 $as_echo "$CPP" >&6; }
7656 ac_preproc_ok=false
7657 for ac_c_preproc_warn_flag in '' yes
7658 do
7659   # Use a header file that comes with gcc, so configuring glibc
7660   # with a fresh cross-compiler works.
7661   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7662   # <limits.h> exists even on freestanding compilers.
7663   # On the NeXT, cc -E runs the code through the compiler's parser,
7664   # not just through cpp. "Syntax error" is here to catch this case.
7665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h.  */
7667 #ifdef __STDC__
7668 # include <limits.h>
7669 #else
7670 # include <assert.h>
7671 #endif
7672                      Syntax error
7673 _ACEOF
7674 if ac_fn_c_try_cpp "$LINENO"; then :
7675
7676 else
7677   # Broken: fails on valid input.
7678 continue
7679 fi
7680 rm -f conftest.err conftest.i conftest.$ac_ext
7681
7682   # OK, works on sane cases.  Now check whether nonexistent headers
7683   # can be detected and how.
7684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h.  */
7686 #include <ac_nonexistent.h>
7687 _ACEOF
7688 if ac_fn_c_try_cpp "$LINENO"; then :
7689   # Broken: success on invalid input.
7690 continue
7691 else
7692   # Passes both tests.
7693 ac_preproc_ok=:
7694 break
7695 fi
7696 rm -f conftest.err conftest.i conftest.$ac_ext
7697
7698 done
7699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7700 rm -f conftest.i conftest.err conftest.$ac_ext
7701 if $ac_preproc_ok; then :
7702
7703 else
7704   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7706 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7707 See \`config.log' for more details" "$LINENO" 5; }
7708 fi
7709
7710 ac_ext=c
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7718 $as_echo_n "checking for ANSI C header files... " >&6; }
7719 if ${ac_cv_header_stdc+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h.  */
7724 #include <stdlib.h>
7725 #include <stdarg.h>
7726 #include <string.h>
7727 #include <float.h>
7728
7729 int
7730 main ()
7731 {
7732
7733   ;
7734   return 0;
7735 }
7736 _ACEOF
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738   ac_cv_header_stdc=yes
7739 else
7740   ac_cv_header_stdc=no
7741 fi
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743
7744 if test $ac_cv_header_stdc = yes; then
7745   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h.  */
7748 #include <string.h>
7749
7750 _ACEOF
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752   $EGREP "memchr" >/dev/null 2>&1; then :
7753
7754 else
7755   ac_cv_header_stdc=no
7756 fi
7757 rm -f conftest*
7758
7759 fi
7760
7761 if test $ac_cv_header_stdc = yes; then
7762   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h.  */
7765 #include <stdlib.h>
7766
7767 _ACEOF
7768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7769   $EGREP "free" >/dev/null 2>&1; then :
7770
7771 else
7772   ac_cv_header_stdc=no
7773 fi
7774 rm -f conftest*
7775
7776 fi
7777
7778 if test $ac_cv_header_stdc = yes; then
7779   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7780   if test "$cross_compiling" = yes; then :
7781   :
7782 else
7783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h.  */
7785 #include <ctype.h>
7786 #include <stdlib.h>
7787 #if ((' ' & 0x0FF) == 0x020)
7788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7790 #else
7791 # define ISLOWER(c) \
7792                    (('a' <= (c) && (c) <= 'i') \
7793                      || ('j' <= (c) && (c) <= 'r') \
7794                      || ('s' <= (c) && (c) <= 'z'))
7795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7796 #endif
7797
7798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7799 int
7800 main ()
7801 {
7802   int i;
7803   for (i = 0; i < 256; i++)
7804     if (XOR (islower (i), ISLOWER (i))
7805         || toupper (i) != TOUPPER (i))
7806       return 2;
7807   return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_run "$LINENO"; then :
7811
7812 else
7813   ac_cv_header_stdc=no
7814 fi
7815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7816   conftest.$ac_objext conftest.beam conftest.$ac_ext
7817 fi
7818
7819 fi
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7822 $as_echo "$ac_cv_header_stdc" >&6; }
7823 if test $ac_cv_header_stdc = yes; then
7824
7825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7826
7827 fi
7828
7829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7831                   inttypes.h stdint.h unistd.h
7832 do :
7833   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7835 "
7836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7837   cat >>confdefs.h <<_ACEOF
7838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839 _ACEOF
7840
7841 fi
7842
7843 done
7844
7845
7846 for ac_header in dlfcn.h
7847 do :
7848   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7849 "
7850 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7851   cat >>confdefs.h <<_ACEOF
7852 #define HAVE_DLFCN_H 1
7853 _ACEOF
7854
7855 fi
7856
7857 done
7858
7859
7860
7861
7862
7863 # Set options
7864
7865
7866
7867         enable_dlopen=no
7868
7869
7870   enable_win32_dll=no
7871
7872
7873             # Check whether --enable-shared was given.
7874 if test "${enable_shared+set}" = set; then :
7875   enableval=$enable_shared; p=${PACKAGE-default}
7876     case $enableval in
7877     yes) enable_shared=yes ;;
7878     no) enable_shared=no ;;
7879     *)
7880       enable_shared=no
7881       # Look at the argument we got.  We use all the common list separators.
7882       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7883       for pkg in $enableval; do
7884         IFS="$lt_save_ifs"
7885         if test "X$pkg" = "X$p"; then
7886           enable_shared=yes
7887         fi
7888       done
7889       IFS="$lt_save_ifs"
7890       ;;
7891     esac
7892 else
7893   enable_shared=yes
7894 fi
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906 # Check whether --with-pic was given.
7907 if test "${with_pic+set}" = set; then :
7908   withval=$with_pic; lt_p=${PACKAGE-default}
7909     case $withval in
7910     yes|no) pic_mode=$withval ;;
7911     *)
7912       pic_mode=default
7913       # Look at the argument we got.  We use all the common list separators.
7914       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7915       for lt_pkg in $withval; do
7916         IFS="$lt_save_ifs"
7917         if test "X$lt_pkg" = "X$lt_p"; then
7918           pic_mode=yes
7919         fi
7920       done
7921       IFS="$lt_save_ifs"
7922       ;;
7923     esac
7924 else
7925   pic_mode=default
7926 fi
7927
7928
7929 test -z "$pic_mode" && pic_mode=default
7930
7931
7932
7933
7934
7935
7936
7937   # Check whether --enable-fast-install was given.
7938 if test "${enable_fast_install+set}" = set; then :
7939   enableval=$enable_fast_install; p=${PACKAGE-default}
7940     case $enableval in
7941     yes) enable_fast_install=yes ;;
7942     no) enable_fast_install=no ;;
7943     *)
7944       enable_fast_install=no
7945       # Look at the argument we got.  We use all the common list separators.
7946       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7947       for pkg in $enableval; do
7948         IFS="$lt_save_ifs"
7949         if test "X$pkg" = "X$p"; then
7950           enable_fast_install=yes
7951         fi
7952       done
7953       IFS="$lt_save_ifs"
7954       ;;
7955     esac
7956 else
7957   enable_fast_install=yes
7958 fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 # This can be used to rebuild libtool when needed
7971 LIBTOOL_DEPS="$ltmain"
7972
7973 # Always use our own libtool.
7974 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005 test -z "$LN_S" && LN_S="ln -s"
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 if test -n "${ZSH_VERSION+set}" ; then
8021    setopt NO_GLOB_SUBST
8022 fi
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8025 $as_echo_n "checking for objdir... " >&6; }
8026 if ${lt_cv_objdir+:} false; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   rm -f .libs 2>/dev/null
8030 mkdir .libs 2>/dev/null
8031 if test -d .libs; then
8032   lt_cv_objdir=.libs
8033 else
8034   # MS-DOS does not allow filenames that begin with a dot.
8035   lt_cv_objdir=_libs
8036 fi
8037 rmdir .libs 2>/dev/null
8038 fi
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8040 $as_echo "$lt_cv_objdir" >&6; }
8041 objdir=$lt_cv_objdir
8042
8043
8044
8045
8046
8047 cat >>confdefs.h <<_ACEOF
8048 #define LT_OBJDIR "$lt_cv_objdir/"
8049 _ACEOF
8050
8051
8052
8053
8054 case $host_os in
8055 aix3*)
8056   # AIX sometimes has problems with the GCC collect2 program.  For some
8057   # reason, if we set the COLLECT_NAMES environment variable, the problems
8058   # vanish in a puff of smoke.
8059   if test "X${COLLECT_NAMES+set}" != Xset; then
8060     COLLECT_NAMES=
8061     export COLLECT_NAMES
8062   fi
8063   ;;
8064 esac
8065
8066 # Global variables:
8067 ofile=libtool
8068 can_build_shared=yes
8069
8070 # All known linkers require a `.a' archive for static linking (except MSVC,
8071 # which needs '.lib').
8072 libext=a
8073
8074 with_gnu_ld="$lt_cv_prog_gnu_ld"
8075
8076 old_CC="$CC"
8077 old_CFLAGS="$CFLAGS"
8078
8079 # Set sane defaults for various variables
8080 test -z "$CC" && CC=cc
8081 test -z "$LTCC" && LTCC=$CC
8082 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8083 test -z "$LD" && LD=ld
8084 test -z "$ac_objext" && ac_objext=o
8085
8086 for cc_temp in $compiler""; do
8087   case $cc_temp in
8088     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8089     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8090     \-*) ;;
8091     *) break;;
8092   esac
8093 done
8094 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8095
8096
8097 # Only perform the check for file, if the check method requires it
8098 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8099 case $deplibs_check_method in
8100 file_magic*)
8101   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8103 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8104 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   case $MAGIC_CMD in
8108 [\\/*] |  ?:[\\/]*)
8109   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8110   ;;
8111 *)
8112   lt_save_MAGIC_CMD="$MAGIC_CMD"
8113   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8114   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8115   for ac_dir in $ac_dummy; do
8116     IFS="$lt_save_ifs"
8117     test -z "$ac_dir" && ac_dir=.
8118     if test -f $ac_dir/${ac_tool_prefix}file; then
8119       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8120       if test -n "$file_magic_test_file"; then
8121         case $deplibs_check_method in
8122         "file_magic "*)
8123           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8124           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8125           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8126             $EGREP "$file_magic_regex" > /dev/null; then
8127             :
8128           else
8129             cat <<_LT_EOF 1>&2
8130
8131 *** Warning: the command libtool uses to detect shared libraries,
8132 *** $file_magic_cmd, produces output that libtool cannot recognize.
8133 *** The result is that libtool may fail to recognize shared libraries
8134 *** as such.  This will affect the creation of libtool libraries that
8135 *** depend on shared libraries, but programs linked with such libtool
8136 *** libraries will work regardless of this problem.  Nevertheless, you
8137 *** may want to report the problem to your system manager and/or to
8138 *** bug-libtool@gnu.org
8139
8140 _LT_EOF
8141           fi ;;
8142         esac
8143       fi
8144       break
8145     fi
8146   done
8147   IFS="$lt_save_ifs"
8148   MAGIC_CMD="$lt_save_MAGIC_CMD"
8149   ;;
8150 esac
8151 fi
8152
8153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154 if test -n "$MAGIC_CMD"; then
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8156 $as_echo "$MAGIC_CMD" >&6; }
8157 else
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162
8163
8164
8165
8166 if test -z "$lt_cv_path_MAGIC_CMD"; then
8167   if test -n "$ac_tool_prefix"; then
8168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8169 $as_echo_n "checking for file... " >&6; }
8170 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   case $MAGIC_CMD in
8174 [\\/*] |  ?:[\\/]*)
8175   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8176   ;;
8177 *)
8178   lt_save_MAGIC_CMD="$MAGIC_CMD"
8179   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8180   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8181   for ac_dir in $ac_dummy; do
8182     IFS="$lt_save_ifs"
8183     test -z "$ac_dir" && ac_dir=.
8184     if test -f $ac_dir/file; then
8185       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8186       if test -n "$file_magic_test_file"; then
8187         case $deplibs_check_method in
8188         "file_magic "*)
8189           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8190           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8192             $EGREP "$file_magic_regex" > /dev/null; then
8193             :
8194           else
8195             cat <<_LT_EOF 1>&2
8196
8197 *** Warning: the command libtool uses to detect shared libraries,
8198 *** $file_magic_cmd, produces output that libtool cannot recognize.
8199 *** The result is that libtool may fail to recognize shared libraries
8200 *** as such.  This will affect the creation of libtool libraries that
8201 *** depend on shared libraries, but programs linked with such libtool
8202 *** libraries will work regardless of this problem.  Nevertheless, you
8203 *** may want to report the problem to your system manager and/or to
8204 *** bug-libtool@gnu.org
8205
8206 _LT_EOF
8207           fi ;;
8208         esac
8209       fi
8210       break
8211     fi
8212   done
8213   IFS="$lt_save_ifs"
8214   MAGIC_CMD="$lt_save_MAGIC_CMD"
8215   ;;
8216 esac
8217 fi
8218
8219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220 if test -n "$MAGIC_CMD"; then
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8222 $as_echo "$MAGIC_CMD" >&6; }
8223 else
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8226 fi
8227
8228
8229   else
8230     MAGIC_CMD=:
8231   fi
8232 fi
8233
8234   fi
8235   ;;
8236 esac
8237
8238 # Use C for the default configuration in the libtool script
8239
8240 lt_save_CC="$CC"
8241 ac_ext=c
8242 ac_cpp='$CPP $CPPFLAGS'
8243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8246
8247
8248 # Source file extension for C test sources.
8249 ac_ext=c
8250
8251 # Object file extension for compiled C test sources.
8252 objext=o
8253 objext=$objext
8254
8255 # Code to be used in simple compile tests
8256 lt_simple_compile_test_code="int some_variable = 0;"
8257
8258 # Code to be used in simple link tests
8259 lt_simple_link_test_code='int main(){return(0);}'
8260
8261
8262
8263
8264
8265
8266
8267 # If no C compiler was specified, use CC.
8268 LTCC=${LTCC-"$CC"}
8269
8270 # If no C compiler flags were specified, use CFLAGS.
8271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8272
8273 # Allow CC to be a program name with arguments.
8274 compiler=$CC
8275
8276 # Save the default compiler, since it gets overwritten when the other
8277 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8278 compiler_DEFAULT=$CC
8279
8280 # save warnings/boilerplate of simple test code
8281 ac_outfile=conftest.$ac_objext
8282 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8283 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8284 _lt_compiler_boilerplate=`cat conftest.err`
8285 $RM conftest*
8286
8287 ac_outfile=conftest.$ac_objext
8288 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8289 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8290 _lt_linker_boilerplate=`cat conftest.err`
8291 $RM -r conftest*
8292
8293
8294 if test -n "$compiler"; then
8295
8296 lt_prog_compiler_no_builtin_flag=
8297
8298 if test "$GCC" = yes; then
8299   case $cc_basename in
8300   nvcc*)
8301     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8302   *)
8303     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8304   esac
8305
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8307 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8308 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   lt_cv_prog_compiler_rtti_exceptions=no
8312    ac_outfile=conftest.$ac_objext
8313    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8314    lt_compiler_flag="-fno-rtti -fno-exceptions"
8315    # Insert the option either (1) after the last *FLAGS variable, or
8316    # (2) before a word containing "conftest.", or (3) at the end.
8317    # Note that $ac_compile itself does not contain backslashes and begins
8318    # with a dollar sign (not a hyphen), so the echo should work correctly.
8319    # The option is referenced via a variable to avoid confusing sed.
8320    lt_compile=`echo "$ac_compile" | $SED \
8321    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323    -e 's:$: $lt_compiler_flag:'`
8324    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8325    (eval "$lt_compile" 2>conftest.err)
8326    ac_status=$?
8327    cat conftest.err >&5
8328    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329    if (exit $ac_status) && test -s "$ac_outfile"; then
8330      # The compiler can only warn and ignore the option if not recognized
8331      # So say no if there are warnings other than the usual output.
8332      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8333      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8335        lt_cv_prog_compiler_rtti_exceptions=yes
8336      fi
8337    fi
8338    $RM conftest*
8339
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8342 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8343
8344 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8345     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8346 else
8347     :
8348 fi
8349
8350 fi
8351
8352
8353
8354
8355
8356
8357   lt_prog_compiler_wl=
8358 lt_prog_compiler_pic=
8359 lt_prog_compiler_static=
8360
8361
8362   if test "$GCC" = yes; then
8363     lt_prog_compiler_wl='-Wl,'
8364     lt_prog_compiler_static='-static'
8365
8366     case $host_os in
8367       aix*)
8368       # All AIX code is PIC.
8369       if test "$host_cpu" = ia64; then
8370         # AIX 5 now supports IA64 processor
8371         lt_prog_compiler_static='-Bstatic'
8372       fi
8373       ;;
8374
8375     amigaos*)
8376       case $host_cpu in
8377       powerpc)
8378             # see comment about AmigaOS4 .so support
8379             lt_prog_compiler_pic='-fPIC'
8380         ;;
8381       m68k)
8382             # FIXME: we need at least 68020 code to build shared libraries, but
8383             # adding the `-m68020' flag to GCC prevents building anything better,
8384             # like `-m68040'.
8385             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8386         ;;
8387       esac
8388       ;;
8389
8390     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8391       # PIC is the default for these OSes.
8392       ;;
8393
8394     mingw* | cygwin* | pw32* | os2* | cegcc*)
8395       # This hack is so that the source file can tell whether it is being
8396       # built for inclusion in a dll (and should export symbols for example).
8397       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8398       # (--disable-auto-import) libraries
8399       lt_prog_compiler_pic='-DDLL_EXPORT'
8400       ;;
8401
8402     darwin* | rhapsody*)
8403       # PIC is the default on this platform
8404       # Common symbols not allowed in MH_DYLIB files
8405       lt_prog_compiler_pic='-fno-common'
8406       ;;
8407
8408     haiku*)
8409       # PIC is the default for Haiku.
8410       # The "-static" flag exists, but is broken.
8411       lt_prog_compiler_static=
8412       ;;
8413
8414     hpux*)
8415       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8416       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8417       # sets the default TLS model and affects inlining.
8418       case $host_cpu in
8419       hppa*64*)
8420         # +Z the default
8421         ;;
8422       *)
8423         lt_prog_compiler_pic='-fPIC'
8424         ;;
8425       esac
8426       ;;
8427
8428     interix[3-9]*)
8429       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8430       # Instead, we relocate shared libraries at runtime.
8431       ;;
8432
8433     msdosdjgpp*)
8434       # Just because we use GCC doesn't mean we suddenly get shared libraries
8435       # on systems that don't support them.
8436       lt_prog_compiler_can_build_shared=no
8437       enable_shared=no
8438       ;;
8439
8440     *nto* | *qnx*)
8441       # QNX uses GNU C++, but need to define -shared option too, otherwise
8442       # it will coredump.
8443       lt_prog_compiler_pic='-fPIC -shared'
8444       ;;
8445
8446     sysv4*MP*)
8447       if test -d /usr/nec; then
8448         lt_prog_compiler_pic=-Kconform_pic
8449       fi
8450       ;;
8451
8452     *)
8453       lt_prog_compiler_pic='-fPIC'
8454       ;;
8455     esac
8456
8457     case $cc_basename in
8458     nvcc*) # Cuda Compiler Driver 2.2
8459       lt_prog_compiler_wl='-Xlinker '
8460       if test -n "$lt_prog_compiler_pic"; then
8461         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8462       fi
8463       ;;
8464     esac
8465   else
8466     # PORTME Check for flag to pass linker flags through the system compiler.
8467     case $host_os in
8468     aix*)
8469       lt_prog_compiler_wl='-Wl,'
8470       if test "$host_cpu" = ia64; then
8471         # AIX 5 now supports IA64 processor
8472         lt_prog_compiler_static='-Bstatic'
8473       else
8474         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8475       fi
8476       ;;
8477
8478     mingw* | cygwin* | pw32* | os2* | cegcc*)
8479       # This hack is so that the source file can tell whether it is being
8480       # built for inclusion in a dll (and should export symbols for example).
8481       lt_prog_compiler_pic='-DDLL_EXPORT'
8482       ;;
8483
8484     hpux9* | hpux10* | hpux11*)
8485       lt_prog_compiler_wl='-Wl,'
8486       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8487       # not for PA HP-UX.
8488       case $host_cpu in
8489       hppa*64*|ia64*)
8490         # +Z the default
8491         ;;
8492       *)
8493         lt_prog_compiler_pic='+Z'
8494         ;;
8495       esac
8496       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8497       lt_prog_compiler_static='${wl}-a ${wl}archive'
8498       ;;
8499
8500     irix5* | irix6* | nonstopux*)
8501       lt_prog_compiler_wl='-Wl,'
8502       # PIC (with -KPIC) is the default.
8503       lt_prog_compiler_static='-non_shared'
8504       ;;
8505
8506     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8507       case $cc_basename in
8508       # old Intel for x86_64 which still supported -KPIC.
8509       ecc*)
8510         lt_prog_compiler_wl='-Wl,'
8511         lt_prog_compiler_pic='-KPIC'
8512         lt_prog_compiler_static='-static'
8513         ;;
8514       # icc used to be incompatible with GCC.
8515       # ICC 10 doesn't accept -KPIC any more.
8516       icc* | ifort*)
8517         lt_prog_compiler_wl='-Wl,'
8518         lt_prog_compiler_pic='-fPIC'
8519         lt_prog_compiler_static='-static'
8520         ;;
8521       # Lahey Fortran 8.1.
8522       lf95*)
8523         lt_prog_compiler_wl='-Wl,'
8524         lt_prog_compiler_pic='--shared'
8525         lt_prog_compiler_static='--static'
8526         ;;
8527       nagfor*)
8528         # NAG Fortran compiler
8529         lt_prog_compiler_wl='-Wl,-Wl,,'
8530         lt_prog_compiler_pic='-PIC'
8531         lt_prog_compiler_static='-Bstatic'
8532         ;;
8533       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8534         # Portland Group compilers (*not* the Pentium gcc compiler,
8535         # which looks to be a dead project)
8536         lt_prog_compiler_wl='-Wl,'
8537         lt_prog_compiler_pic='-fpic'
8538         lt_prog_compiler_static='-Bstatic'
8539         ;;
8540       ccc*)
8541         lt_prog_compiler_wl='-Wl,'
8542         # All Alpha code is PIC.
8543         lt_prog_compiler_static='-non_shared'
8544         ;;
8545       xl* | bgxl* | bgf* | mpixl*)
8546         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8547         lt_prog_compiler_wl='-Wl,'
8548         lt_prog_compiler_pic='-qpic'
8549         lt_prog_compiler_static='-qstaticlink'
8550         ;;
8551       *)
8552         case `$CC -V 2>&1 | sed 5q` in
8553         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8554           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8555           lt_prog_compiler_pic='-KPIC'
8556           lt_prog_compiler_static='-Bstatic'
8557           lt_prog_compiler_wl=''
8558           ;;
8559         *Sun\ F* | *Sun*Fortran*)
8560           lt_prog_compiler_pic='-KPIC'
8561           lt_prog_compiler_static='-Bstatic'
8562           lt_prog_compiler_wl='-Qoption ld '
8563           ;;
8564         *Sun\ C*)
8565           # Sun C 5.9
8566           lt_prog_compiler_pic='-KPIC'
8567           lt_prog_compiler_static='-Bstatic'
8568           lt_prog_compiler_wl='-Wl,'
8569           ;;
8570         *Intel*\ [CF]*Compiler*)
8571           lt_prog_compiler_wl='-Wl,'
8572           lt_prog_compiler_pic='-fPIC'
8573           lt_prog_compiler_static='-static'
8574           ;;
8575         *Portland\ Group*)
8576           lt_prog_compiler_wl='-Wl,'
8577           lt_prog_compiler_pic='-fpic'
8578           lt_prog_compiler_static='-Bstatic'
8579           ;;
8580         esac
8581         ;;
8582       esac
8583       ;;
8584
8585     newsos6)
8586       lt_prog_compiler_pic='-KPIC'
8587       lt_prog_compiler_static='-Bstatic'
8588       ;;
8589
8590     *nto* | *qnx*)
8591       # QNX uses GNU C++, but need to define -shared option too, otherwise
8592       # it will coredump.
8593       lt_prog_compiler_pic='-fPIC -shared'
8594       ;;
8595
8596     osf3* | osf4* | osf5*)
8597       lt_prog_compiler_wl='-Wl,'
8598       # All OSF/1 code is PIC.
8599       lt_prog_compiler_static='-non_shared'
8600       ;;
8601
8602     rdos*)
8603       lt_prog_compiler_static='-non_shared'
8604       ;;
8605
8606     solaris*)
8607       lt_prog_compiler_pic='-KPIC'
8608       lt_prog_compiler_static='-Bstatic'
8609       case $cc_basename in
8610       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8611         lt_prog_compiler_wl='-Qoption ld ';;
8612       *)
8613         lt_prog_compiler_wl='-Wl,';;
8614       esac
8615       ;;
8616
8617     sunos4*)
8618       lt_prog_compiler_wl='-Qoption ld '
8619       lt_prog_compiler_pic='-PIC'
8620       lt_prog_compiler_static='-Bstatic'
8621       ;;
8622
8623     sysv4 | sysv4.2uw2* | sysv4.3*)
8624       lt_prog_compiler_wl='-Wl,'
8625       lt_prog_compiler_pic='-KPIC'
8626       lt_prog_compiler_static='-Bstatic'
8627       ;;
8628
8629     sysv4*MP*)
8630       if test -d /usr/nec ;then
8631         lt_prog_compiler_pic='-Kconform_pic'
8632         lt_prog_compiler_static='-Bstatic'
8633       fi
8634       ;;
8635
8636     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8637       lt_prog_compiler_wl='-Wl,'
8638       lt_prog_compiler_pic='-KPIC'
8639       lt_prog_compiler_static='-Bstatic'
8640       ;;
8641
8642     unicos*)
8643       lt_prog_compiler_wl='-Wl,'
8644       lt_prog_compiler_can_build_shared=no
8645       ;;
8646
8647     uts4*)
8648       lt_prog_compiler_pic='-pic'
8649       lt_prog_compiler_static='-Bstatic'
8650       ;;
8651
8652     *)
8653       lt_prog_compiler_can_build_shared=no
8654       ;;
8655     esac
8656   fi
8657
8658 case $host_os in
8659   # For platforms which do not support PIC, -DPIC is meaningless:
8660   *djgpp*)
8661     lt_prog_compiler_pic=
8662     ;;
8663   *)
8664     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8665     ;;
8666 esac
8667
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8669 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8670 if ${lt_cv_prog_compiler_pic+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8676 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8677 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8678
8679 #
8680 # Check to make sure the PIC flag actually works.
8681 #
8682 if test -n "$lt_prog_compiler_pic"; then
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8684 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8685 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8686   $as_echo_n "(cached) " >&6
8687 else
8688   lt_cv_prog_compiler_pic_works=no
8689    ac_outfile=conftest.$ac_objext
8690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8691    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8692    # Insert the option either (1) after the last *FLAGS variable, or
8693    # (2) before a word containing "conftest.", or (3) at the end.
8694    # Note that $ac_compile itself does not contain backslashes and begins
8695    # with a dollar sign (not a hyphen), so the echo should work correctly.
8696    # The option is referenced via a variable to avoid confusing sed.
8697    lt_compile=`echo "$ac_compile" | $SED \
8698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8700    -e 's:$: $lt_compiler_flag:'`
8701    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8702    (eval "$lt_compile" 2>conftest.err)
8703    ac_status=$?
8704    cat conftest.err >&5
8705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706    if (exit $ac_status) && test -s "$ac_outfile"; then
8707      # The compiler can only warn and ignore the option if not recognized
8708      # So say no if there are warnings other than the usual output.
8709      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8710      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8711      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8712        lt_cv_prog_compiler_pic_works=yes
8713      fi
8714    fi
8715    $RM conftest*
8716
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8719 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8720
8721 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8722     case $lt_prog_compiler_pic in
8723      "" | " "*) ;;
8724      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8725      esac
8726 else
8727     lt_prog_compiler_pic=
8728      lt_prog_compiler_can_build_shared=no
8729 fi
8730
8731 fi
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743 #
8744 # Check to make sure the static flag actually works.
8745 #
8746 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8748 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8749 if ${lt_cv_prog_compiler_static_works+:} false; then :
8750   $as_echo_n "(cached) " >&6
8751 else
8752   lt_cv_prog_compiler_static_works=no
8753    save_LDFLAGS="$LDFLAGS"
8754    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8755    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8756    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8757      # The linker can only warn and ignore the option if not recognized
8758      # So say no if there are warnings
8759      if test -s conftest.err; then
8760        # Append any errors to the config.log.
8761        cat conftest.err 1>&5
8762        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8763        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8764        if diff conftest.exp conftest.er2 >/dev/null; then
8765          lt_cv_prog_compiler_static_works=yes
8766        fi
8767      else
8768        lt_cv_prog_compiler_static_works=yes
8769      fi
8770    fi
8771    $RM -r conftest*
8772    LDFLAGS="$save_LDFLAGS"
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8776 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8777
8778 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8779     :
8780 else
8781     lt_prog_compiler_static=
8782 fi
8783
8784
8785
8786
8787
8788
8789
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8791 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8792 if ${lt_cv_prog_compiler_c_o+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   lt_cv_prog_compiler_c_o=no
8796    $RM -r conftest 2>/dev/null
8797    mkdir conftest
8798    cd conftest
8799    mkdir out
8800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8801
8802    lt_compiler_flag="-o out/conftest2.$ac_objext"
8803    # Insert the option either (1) after the last *FLAGS variable, or
8804    # (2) before a word containing "conftest.", or (3) at the end.
8805    # Note that $ac_compile itself does not contain backslashes and begins
8806    # with a dollar sign (not a hyphen), so the echo should work correctly.
8807    lt_compile=`echo "$ac_compile" | $SED \
8808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8810    -e 's:$: $lt_compiler_flag:'`
8811    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8812    (eval "$lt_compile" 2>out/conftest.err)
8813    ac_status=$?
8814    cat out/conftest.err >&5
8815    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8817    then
8818      # The compiler can only warn and ignore the option if not recognized
8819      # So say no if there are warnings
8820      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8821      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8822      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8823        lt_cv_prog_compiler_c_o=yes
8824      fi
8825    fi
8826    chmod u+w . 2>&5
8827    $RM conftest*
8828    # SGI C++ compiler will create directory out/ii_files/ for
8829    # template instantiation
8830    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8831    $RM out/* && rmdir out
8832    cd ..
8833    $RM -r conftest
8834    $RM conftest*
8835
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8838 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8839
8840
8841
8842
8843
8844
8845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8847 if ${lt_cv_prog_compiler_c_o+:} false; then :
8848   $as_echo_n "(cached) " >&6
8849 else
8850   lt_cv_prog_compiler_c_o=no
8851    $RM -r conftest 2>/dev/null
8852    mkdir conftest
8853    cd conftest
8854    mkdir out
8855    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8856
8857    lt_compiler_flag="-o out/conftest2.$ac_objext"
8858    # Insert the option either (1) after the last *FLAGS variable, or
8859    # (2) before a word containing "conftest.", or (3) at the end.
8860    # Note that $ac_compile itself does not contain backslashes and begins
8861    # with a dollar sign (not a hyphen), so the echo should work correctly.
8862    lt_compile=`echo "$ac_compile" | $SED \
8863    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8865    -e 's:$: $lt_compiler_flag:'`
8866    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8867    (eval "$lt_compile" 2>out/conftest.err)
8868    ac_status=$?
8869    cat out/conftest.err >&5
8870    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8872    then
8873      # The compiler can only warn and ignore the option if not recognized
8874      # So say no if there are warnings
8875      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8876      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8877      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8878        lt_cv_prog_compiler_c_o=yes
8879      fi
8880    fi
8881    chmod u+w . 2>&5
8882    $RM conftest*
8883    # SGI C++ compiler will create directory out/ii_files/ for
8884    # template instantiation
8885    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8886    $RM out/* && rmdir out
8887    cd ..
8888    $RM -r conftest
8889    $RM conftest*
8890
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8893 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8894
8895
8896
8897
8898 hard_links="nottested"
8899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8900   # do not overwrite the value of need_locks provided by the user
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8902 $as_echo_n "checking if we can lock with hard links... " >&6; }
8903   hard_links=yes
8904   $RM conftest*
8905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8906   touch conftest.a
8907   ln conftest.a conftest.b 2>&5 || hard_links=no
8908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8910 $as_echo "$hard_links" >&6; }
8911   if test "$hard_links" = no; then
8912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8913 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8914     need_locks=warn
8915   fi
8916 else
8917   need_locks=no
8918 fi
8919
8920
8921
8922
8923
8924
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8926 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8927
8928   runpath_var=
8929   allow_undefined_flag=
8930   always_export_symbols=no
8931   archive_cmds=
8932   archive_expsym_cmds=
8933   compiler_needs_object=no
8934   enable_shared_with_static_runtimes=no
8935   export_dynamic_flag_spec=
8936   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8937   hardcode_automatic=no
8938   hardcode_direct=no
8939   hardcode_direct_absolute=no
8940   hardcode_libdir_flag_spec=
8941   hardcode_libdir_separator=
8942   hardcode_minus_L=no
8943   hardcode_shlibpath_var=unsupported
8944   inherit_rpath=no
8945   link_all_deplibs=unknown
8946   module_cmds=
8947   module_expsym_cmds=
8948   old_archive_from_new_cmds=
8949   old_archive_from_expsyms_cmds=
8950   thread_safe_flag_spec=
8951   whole_archive_flag_spec=
8952   # include_expsyms should be a list of space-separated symbols to be *always*
8953   # included in the symbol list
8954   include_expsyms=
8955   # exclude_expsyms can be an extended regexp of symbols to exclude
8956   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8957   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8958   # as well as any symbol that contains `d'.
8959   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8960   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8961   # platforms (ab)use it in PIC code, but their linkers get confused if
8962   # the symbol is explicitly referenced.  Since portable code cannot
8963   # rely on this symbol name, it's probably fine to never include it in
8964   # preloaded symbol tables.
8965   # Exclude shared library initialization/finalization symbols.
8966   extract_expsyms_cmds=
8967
8968   case $host_os in
8969   cygwin* | mingw* | pw32* | cegcc*)
8970     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8971     # When not using gcc, we currently assume that we are using
8972     # Microsoft Visual C++.
8973     if test "$GCC" != yes; then
8974       with_gnu_ld=no
8975     fi
8976     ;;
8977   interix*)
8978     # we just hope/assume this is gcc and not c89 (= MSVC++)
8979     with_gnu_ld=yes
8980     ;;
8981   openbsd*)
8982     with_gnu_ld=no
8983     ;;
8984   linux* | k*bsd*-gnu | gnu*)
8985     link_all_deplibs=no
8986     ;;
8987   esac
8988
8989   ld_shlibs=yes
8990
8991   # On some targets, GNU ld is compatible enough with the native linker
8992   # that we're better off using the native interface for both.
8993   lt_use_gnu_ld_interface=no
8994   if test "$with_gnu_ld" = yes; then
8995     case $host_os in
8996       aix*)
8997         # The AIX port of GNU ld has always aspired to compatibility
8998         # with the native linker.  However, as the warning in the GNU ld
8999         # block says, versions before 2.19.5* couldn't really create working
9000         # shared libraries, regardless of the interface used.
9001         case `$LD -v 2>&1` in
9002           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9003           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9004           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9005           *)
9006             lt_use_gnu_ld_interface=yes
9007             ;;
9008         esac
9009         ;;
9010       *)
9011         lt_use_gnu_ld_interface=yes
9012         ;;
9013     esac
9014   fi
9015
9016   if test "$lt_use_gnu_ld_interface" = yes; then
9017     # If archive_cmds runs LD, not CC, wlarc should be empty
9018     wlarc='${wl}'
9019
9020     # Set some defaults for GNU ld with shared library support. These
9021     # are reset later if shared libraries are not supported. Putting them
9022     # here allows them to be overridden if necessary.
9023     runpath_var=LD_RUN_PATH
9024     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9025     export_dynamic_flag_spec='${wl}--export-dynamic'
9026     # ancient GNU ld didn't support --whole-archive et. al.
9027     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9028       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9029     else
9030       whole_archive_flag_spec=
9031     fi
9032     supports_anon_versioning=no
9033     case `$LD -v 2>&1` in
9034       *GNU\ gold*) supports_anon_versioning=yes ;;
9035       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9036       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9037       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9038       *\ 2.11.*) ;; # other 2.11 versions
9039       *) supports_anon_versioning=yes ;;
9040     esac
9041
9042     # See if GNU ld supports shared libraries.
9043     case $host_os in
9044     aix[3-9]*)
9045       # On AIX/PPC, the GNU linker is very broken
9046       if test "$host_cpu" != ia64; then
9047         ld_shlibs=no
9048         cat <<_LT_EOF 1>&2
9049
9050 *** Warning: the GNU linker, at least up to release 2.19, is reported
9051 *** to be unable to reliably create shared libraries on AIX.
9052 *** Therefore, libtool is disabling shared libraries support.  If you
9053 *** really care for shared libraries, you may want to install binutils
9054 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9055 *** You will then need to restart the configuration process.
9056
9057 _LT_EOF
9058       fi
9059       ;;
9060
9061     amigaos*)
9062       case $host_cpu in
9063       powerpc)
9064             # see comment about AmigaOS4 .so support
9065             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066             archive_expsym_cmds=''
9067         ;;
9068       m68k)
9069             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)'
9070             hardcode_libdir_flag_spec='-L$libdir'
9071             hardcode_minus_L=yes
9072         ;;
9073       esac
9074       ;;
9075
9076     beos*)
9077       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9078         allow_undefined_flag=unsupported
9079         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9080         # support --undefined.  This deserves some investigation.  FIXME
9081         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9082       else
9083         ld_shlibs=no
9084       fi
9085       ;;
9086
9087     cygwin* | mingw* | pw32* | cegcc*)
9088       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9089       # as there is no search path for DLLs.
9090       hardcode_libdir_flag_spec='-L$libdir'
9091       export_dynamic_flag_spec='${wl}--export-all-symbols'
9092       allow_undefined_flag=unsupported
9093       always_export_symbols=no
9094       enable_shared_with_static_runtimes=yes
9095       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'
9096       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9097
9098       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9099         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9100         # If the export-symbols file already is a .def file (1st line
9101         # is EXPORTS), use it as is; otherwise, prepend...
9102         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9103           cp $export_symbols $output_objdir/$soname.def;
9104         else
9105           echo EXPORTS > $output_objdir/$soname.def;
9106           cat $export_symbols >> $output_objdir/$soname.def;
9107         fi~
9108         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9109       else
9110         ld_shlibs=no
9111       fi
9112       ;;
9113
9114     haiku*)
9115       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116       link_all_deplibs=yes
9117       ;;
9118
9119     interix[3-9]*)
9120       hardcode_direct=no
9121       hardcode_shlibpath_var=no
9122       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9123       export_dynamic_flag_spec='${wl}-E'
9124       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9125       # Instead, shared libraries are loaded at an image base (0x10000000 by
9126       # default) and relocated if they conflict, which is a slow very memory
9127       # consuming and fragmenting process.  To avoid this, we pick a random,
9128       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9129       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9130       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9131       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'
9132       ;;
9133
9134     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9135       tmp_diet=no
9136       if test "$host_os" = linux-dietlibc; then
9137         case $cc_basename in
9138           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9139         esac
9140       fi
9141       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9142          && test "$tmp_diet" = no
9143       then
9144         tmp_addflag=' $pic_flag'
9145         tmp_sharedflag='-shared'
9146         case $cc_basename,$host_cpu in
9147         pgcc*)                          # Portland Group C compiler
9148           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'
9149           tmp_addflag=' $pic_flag'
9150           ;;
9151         pgf77* | pgf90* | pgf95* | pgfortran*)
9152                                         # Portland Group f77 and f90 compilers
9153           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'
9154           tmp_addflag=' $pic_flag -Mnomain' ;;
9155         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9156           tmp_addflag=' -i_dynamic' ;;
9157         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9158           tmp_addflag=' -i_dynamic -nofor_main' ;;
9159         ifc* | ifort*)                  # Intel Fortran compiler
9160           tmp_addflag=' -nofor_main' ;;
9161         lf95*)                          # Lahey Fortran 8.1
9162           whole_archive_flag_spec=
9163           tmp_sharedflag='--shared' ;;
9164         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9165           tmp_sharedflag='-qmkshrobj'
9166           tmp_addflag= ;;
9167         nvcc*)  # Cuda Compiler Driver 2.2
9168           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'
9169           compiler_needs_object=yes
9170           ;;
9171         esac
9172         case `$CC -V 2>&1 | sed 5q` in
9173         *Sun\ C*)                       # Sun C 5.9
9174           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'
9175           compiler_needs_object=yes
9176           tmp_sharedflag='-G' ;;
9177         *Sun\ F*)                       # Sun Fortran 8.3
9178           tmp_sharedflag='-G' ;;
9179         esac
9180         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9181
9182         if test "x$supports_anon_versioning" = xyes; then
9183           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9184             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9185             echo "local: *; };" >> $output_objdir/$libname.ver~
9186             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9187         fi
9188
9189         case $cc_basename in
9190         xlf* | bgf* | bgxlf* | mpixlf*)
9191           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9192           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9193           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9195           if test "x$supports_anon_versioning" = xyes; then
9196             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9197               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198               echo "local: *; };" >> $output_objdir/$libname.ver~
9199               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9200           fi
9201           ;;
9202         esac
9203       else
9204         ld_shlibs=no
9205       fi
9206       ;;
9207
9208     netbsd* | netbsdelf*-gnu)
9209       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9210         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9211         wlarc=
9212       else
9213         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9215       fi
9216       ;;
9217
9218     solaris*)
9219       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9220         ld_shlibs=no
9221         cat <<_LT_EOF 1>&2
9222
9223 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9224 *** create shared libraries on Solaris systems.  Therefore, libtool
9225 *** is disabling shared libraries support.  We urge you to upgrade GNU
9226 *** binutils to release 2.9.1 or newer.  Another option is to modify
9227 *** your PATH or compiler configuration so that the native linker is
9228 *** used, and then restart.
9229
9230 _LT_EOF
9231       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9232         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9234       else
9235         ld_shlibs=no
9236       fi
9237       ;;
9238
9239     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9240       case `$LD -v 2>&1` in
9241         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9242         ld_shlibs=no
9243         cat <<_LT_EOF 1>&2
9244
9245 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9246 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9247 *** is disabling shared libraries support.  We urge you to upgrade GNU
9248 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9249 *** your PATH or compiler configuration so that the native linker is
9250 *** used, and then restart.
9251
9252 _LT_EOF
9253         ;;
9254         *)
9255           # For security reasons, it is highly recommended that you always
9256           # use absolute paths for naming shared libraries, and exclude the
9257           # DT_RUNPATH tag from executables and libraries.  But doing so
9258           # requires that you compile everything twice, which is a pain.
9259           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9260             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9261             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9263           else
9264             ld_shlibs=no
9265           fi
9266         ;;
9267       esac
9268       ;;
9269
9270     sunos4*)
9271       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9272       wlarc=
9273       hardcode_direct=yes
9274       hardcode_shlibpath_var=no
9275       ;;
9276
9277     *)
9278       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281       else
9282         ld_shlibs=no
9283       fi
9284       ;;
9285     esac
9286
9287     if test "$ld_shlibs" = no; then
9288       runpath_var=
9289       hardcode_libdir_flag_spec=
9290       export_dynamic_flag_spec=
9291       whole_archive_flag_spec=
9292     fi
9293   else
9294     # PORTME fill in a description of your system's linker (not GNU ld)
9295     case $host_os in
9296     aix3*)
9297       allow_undefined_flag=unsupported
9298       always_export_symbols=yes
9299       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'
9300       # Note: this linker hardcodes the directories in LIBPATH if there
9301       # are no directories specified by -L.
9302       hardcode_minus_L=yes
9303       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9304         # Neither direct hardcoding nor static linking is supported with a
9305         # broken collect2.
9306         hardcode_direct=unsupported
9307       fi
9308       ;;
9309
9310     aix[4-9]*)
9311       if test "$host_cpu" = ia64; then
9312         # On IA64, the linker does run time linking by default, so we don't
9313         # have to do anything special.
9314         aix_use_runtimelinking=no
9315         exp_sym_flag='-Bexport'
9316         no_entry_flag=""
9317       else
9318         # If we're using GNU nm, then we don't want the "-C" option.
9319         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9320         # Also, AIX nm treats weak defined symbols like other global
9321         # defined symbols, whereas GNU nm marks them as "W".
9322         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9323           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'
9324         else
9325           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'
9326         fi
9327         aix_use_runtimelinking=no
9328
9329         # Test if we are trying to use run time linking or normal
9330         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9331         # need to do runtime linking.
9332         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9333           for ld_flag in $LDFLAGS; do
9334           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9335             aix_use_runtimelinking=yes
9336             break
9337           fi
9338           done
9339           ;;
9340         esac
9341
9342         exp_sym_flag='-bexport'
9343         no_entry_flag='-bnoentry'
9344       fi
9345
9346       # When large executables or shared objects are built, AIX ld can
9347       # have problems creating the table of contents.  If linking a library
9348       # or program results in "error TOC overflow" add -mminimal-toc to
9349       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9350       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9351
9352       archive_cmds=''
9353       hardcode_direct=yes
9354       hardcode_direct_absolute=yes
9355       hardcode_libdir_separator=':'
9356       link_all_deplibs=yes
9357       file_list_spec='${wl}-f,'
9358
9359       if test "$GCC" = yes; then
9360         case $host_os in aix4.[012]|aix4.[012].*)
9361         # We only want to do this on AIX 4.2 and lower, the check
9362         # below for broken collect2 doesn't work under 4.3+
9363           collect2name=`${CC} -print-prog-name=collect2`
9364           if test -f "$collect2name" &&
9365            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9366           then
9367           # We have reworked collect2
9368           :
9369           else
9370           # We have old collect2
9371           hardcode_direct=unsupported
9372           # It fails to find uninstalled libraries when the uninstalled
9373           # path is not listed in the libpath.  Setting hardcode_minus_L
9374           # to unsupported forces relinking
9375           hardcode_minus_L=yes
9376           hardcode_libdir_flag_spec='-L$libdir'
9377           hardcode_libdir_separator=
9378           fi
9379           ;;
9380         esac
9381         shared_flag='-shared'
9382         if test "$aix_use_runtimelinking" = yes; then
9383           shared_flag="$shared_flag "'${wl}-G'
9384         fi
9385         link_all_deplibs=no
9386       else
9387         # not using gcc
9388         if test "$host_cpu" = ia64; then
9389         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9390         # chokes on -Wl,-G. The following line is correct:
9391           shared_flag='-G'
9392         else
9393           if test "$aix_use_runtimelinking" = yes; then
9394             shared_flag='${wl}-G'
9395           else
9396             shared_flag='${wl}-bM:SRE'
9397           fi
9398         fi
9399       fi
9400
9401       export_dynamic_flag_spec='${wl}-bexpall'
9402       # It seems that -bexpall does not export symbols beginning with
9403       # underscore (_), so it is better to generate a list of symbols to export.
9404       always_export_symbols=yes
9405       if test "$aix_use_runtimelinking" = yes; then
9406         # Warning - without using the other runtime loading flags (-brtl),
9407         # -berok will link without error, but may produce a broken library.
9408         allow_undefined_flag='-berok'
9409         # Determine the default libpath from the value encoded in an
9410         # empty executable.
9411         if test "${lt_cv_aix_libpath+set}" = set; then
9412   aix_libpath=$lt_cv_aix_libpath
9413 else
9414   if ${lt_cv_aix_libpath_+:} false; then :
9415   $as_echo_n "(cached) " >&6
9416 else
9417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h.  */
9419
9420 int
9421 main ()
9422 {
9423
9424   ;
9425   return 0;
9426 }
9427 _ACEOF
9428 if ac_fn_c_try_link "$LINENO"; then :
9429
9430   lt_aix_libpath_sed='
9431       /Import File Strings/,/^$/ {
9432           /^0/ {
9433               s/^0  *\([^ ]*\) *$/\1/
9434               p
9435           }
9436       }'
9437   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9438   # Check for a 64-bit object if we didn't find anything.
9439   if test -z "$lt_cv_aix_libpath_"; then
9440     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9441   fi
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext \
9444     conftest$ac_exeext conftest.$ac_ext
9445   if test -z "$lt_cv_aix_libpath_"; then
9446     lt_cv_aix_libpath_="/usr/lib:/lib"
9447   fi
9448
9449 fi
9450
9451   aix_libpath=$lt_cv_aix_libpath_
9452 fi
9453
9454         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9455         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"
9456       else
9457         if test "$host_cpu" = ia64; then
9458           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9459           allow_undefined_flag="-z nodefs"
9460           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"
9461         else
9462          # Determine the default libpath from the value encoded in an
9463          # empty executable.
9464          if test "${lt_cv_aix_libpath+set}" = set; then
9465   aix_libpath=$lt_cv_aix_libpath
9466 else
9467   if ${lt_cv_aix_libpath_+:} false; then :
9468   $as_echo_n "(cached) " >&6
9469 else
9470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h.  */
9472
9473 int
9474 main ()
9475 {
9476
9477   ;
9478   return 0;
9479 }
9480 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"; then :
9482
9483   lt_aix_libpath_sed='
9484       /Import File Strings/,/^$/ {
9485           /^0/ {
9486               s/^0  *\([^ ]*\) *$/\1/
9487               p
9488           }
9489       }'
9490   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491   # Check for a 64-bit object if we didn't find anything.
9492   if test -z "$lt_cv_aix_libpath_"; then
9493     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494   fi
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext \
9497     conftest$ac_exeext conftest.$ac_ext
9498   if test -z "$lt_cv_aix_libpath_"; then
9499     lt_cv_aix_libpath_="/usr/lib:/lib"
9500   fi
9501
9502 fi
9503
9504   aix_libpath=$lt_cv_aix_libpath_
9505 fi
9506
9507          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9508           # Warning - without using the other run time loading flags,
9509           # -berok will link without error, but may produce a broken library.
9510           no_undefined_flag=' ${wl}-bernotok'
9511           allow_undefined_flag=' ${wl}-berok'
9512           if test "$with_gnu_ld" = yes; then
9513             # We only use this code for GNU lds that support --whole-archive.
9514             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9515           else
9516             # Exported symbols can be pulled into shared objects from archives
9517             whole_archive_flag_spec='$convenience'
9518           fi
9519           archive_cmds_need_lc=yes
9520           # This is similar to how AIX traditionally builds its shared libraries.
9521           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'
9522         fi
9523       fi
9524       ;;
9525
9526     amigaos*)
9527       case $host_cpu in
9528       powerpc)
9529             # see comment about AmigaOS4 .so support
9530             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531             archive_expsym_cmds=''
9532         ;;
9533       m68k)
9534             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)'
9535             hardcode_libdir_flag_spec='-L$libdir'
9536             hardcode_minus_L=yes
9537         ;;
9538       esac
9539       ;;
9540
9541     bsdi[45]*)
9542       export_dynamic_flag_spec=-rdynamic
9543       ;;
9544
9545     cygwin* | mingw* | pw32* | cegcc*)
9546       # When not using gcc, we currently assume that we are using
9547       # Microsoft Visual C++.
9548       # hardcode_libdir_flag_spec is actually meaningless, as there is
9549       # no search path for DLLs.
9550       case $cc_basename in
9551       cl*)
9552         # Native MSVC
9553         hardcode_libdir_flag_spec=' '
9554         allow_undefined_flag=unsupported
9555         always_export_symbols=yes
9556         file_list_spec='@'
9557         # Tell ltmain to make .lib files, not .a files.
9558         libext=lib
9559         # Tell ltmain to make .dll files, not .so files.
9560         shrext_cmds=".dll"
9561         # FIXME: Setting linknames here is a bad hack.
9562         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9563         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9564             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9565           else
9566             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9567           fi~
9568           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9569           linknames='
9570         # The linker will not automatically build a static lib if we build a DLL.
9571         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9572         enable_shared_with_static_runtimes=yes
9573         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9574         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9575         # Don't use ranlib
9576         old_postinstall_cmds='chmod 644 $oldlib'
9577         postlink_cmds='lt_outputfile="@OUTPUT@"~
9578           lt_tool_outputfile="@TOOL_OUTPUT@"~
9579           case $lt_outputfile in
9580             *.exe|*.EXE) ;;
9581             *)
9582               lt_outputfile="$lt_outputfile.exe"
9583               lt_tool_outputfile="$lt_tool_outputfile.exe"
9584               ;;
9585           esac~
9586           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9587             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9588             $RM "$lt_outputfile.manifest";
9589           fi'
9590         ;;
9591       *)
9592         # Assume MSVC wrapper
9593         hardcode_libdir_flag_spec=' '
9594         allow_undefined_flag=unsupported
9595         # Tell ltmain to make .lib files, not .a files.
9596         libext=lib
9597         # Tell ltmain to make .dll files, not .so files.
9598         shrext_cmds=".dll"
9599         # FIXME: Setting linknames here is a bad hack.
9600         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9601         # The linker will automatically build a .lib file if we build a DLL.
9602         old_archive_from_new_cmds='true'
9603         # FIXME: Should let the user specify the lib program.
9604         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9605         enable_shared_with_static_runtimes=yes
9606         ;;
9607       esac
9608       ;;
9609
9610     darwin* | rhapsody*)
9611
9612
9613   archive_cmds_need_lc=no
9614   hardcode_direct=no
9615   hardcode_automatic=yes
9616   hardcode_shlibpath_var=unsupported
9617   if test "$lt_cv_ld_force_load" = "yes"; then
9618     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\"`'
9619
9620   else
9621     whole_archive_flag_spec=''
9622   fi
9623   link_all_deplibs=yes
9624   allow_undefined_flag="$_lt_dar_allow_undefined"
9625   case $cc_basename in
9626      ifort*) _lt_dar_can_shared=yes ;;
9627      *) _lt_dar_can_shared=$GCC ;;
9628   esac
9629   if test "$_lt_dar_can_shared" = "yes"; then
9630     output_verbose_link_cmd=func_echo_all
9631     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9632     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9633     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}"
9634     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}"
9635
9636   else
9637   ld_shlibs=no
9638   fi
9639
9640       ;;
9641
9642     dgux*)
9643       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644       hardcode_libdir_flag_spec='-L$libdir'
9645       hardcode_shlibpath_var=no
9646       ;;
9647
9648     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9649     # support.  Future versions do this automatically, but an explicit c++rt0.o
9650     # does not break anything, and helps significantly (at the cost of a little
9651     # extra space).
9652     freebsd2.2*)
9653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9654       hardcode_libdir_flag_spec='-R$libdir'
9655       hardcode_direct=yes
9656       hardcode_shlibpath_var=no
9657       ;;
9658
9659     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9660     freebsd2.*)
9661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9662       hardcode_direct=yes
9663       hardcode_minus_L=yes
9664       hardcode_shlibpath_var=no
9665       ;;
9666
9667     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9668     freebsd* | dragonfly*)
9669       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670       hardcode_libdir_flag_spec='-R$libdir'
9671       hardcode_direct=yes
9672       hardcode_shlibpath_var=no
9673       ;;
9674
9675     hpux9*)
9676       if test "$GCC" = yes; then
9677         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'
9678       else
9679         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'
9680       fi
9681       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9682       hardcode_libdir_separator=:
9683       hardcode_direct=yes
9684
9685       # hardcode_minus_L: Not really in the search PATH,
9686       # but as the default location of the library.
9687       hardcode_minus_L=yes
9688       export_dynamic_flag_spec='${wl}-E'
9689       ;;
9690
9691     hpux10*)
9692       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9693         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9694       else
9695         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9696       fi
9697       if test "$with_gnu_ld" = no; then
9698         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9699         hardcode_libdir_separator=:
9700         hardcode_direct=yes
9701         hardcode_direct_absolute=yes
9702         export_dynamic_flag_spec='${wl}-E'
9703         # hardcode_minus_L: Not really in the search PATH,
9704         # but as the default location of the library.
9705         hardcode_minus_L=yes
9706       fi
9707       ;;
9708
9709     hpux11*)
9710       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9711         case $host_cpu in
9712         hppa*64*)
9713           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9714           ;;
9715         ia64*)
9716           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9717           ;;
9718         *)
9719           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9720           ;;
9721         esac
9722       else
9723         case $host_cpu in
9724         hppa*64*)
9725           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9726           ;;
9727         ia64*)
9728           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9729           ;;
9730         *)
9731
9732           # Older versions of the 11.00 compiler do not understand -b yet
9733           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9734           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9735 $as_echo_n "checking if $CC understands -b... " >&6; }
9736 if ${lt_cv_prog_compiler__b+:} false; then :
9737   $as_echo_n "(cached) " >&6
9738 else
9739   lt_cv_prog_compiler__b=no
9740    save_LDFLAGS="$LDFLAGS"
9741    LDFLAGS="$LDFLAGS -b"
9742    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9743    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9744      # The linker can only warn and ignore the option if not recognized
9745      # So say no if there are warnings
9746      if test -s conftest.err; then
9747        # Append any errors to the config.log.
9748        cat conftest.err 1>&5
9749        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9750        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9751        if diff conftest.exp conftest.er2 >/dev/null; then
9752          lt_cv_prog_compiler__b=yes
9753        fi
9754      else
9755        lt_cv_prog_compiler__b=yes
9756      fi
9757    fi
9758    $RM -r conftest*
9759    LDFLAGS="$save_LDFLAGS"
9760
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9763 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9764
9765 if test x"$lt_cv_prog_compiler__b" = xyes; then
9766     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9767 else
9768     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9769 fi
9770
9771           ;;
9772         esac
9773       fi
9774       if test "$with_gnu_ld" = no; then
9775         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9776         hardcode_libdir_separator=:
9777
9778         case $host_cpu in
9779         hppa*64*|ia64*)
9780           hardcode_direct=no
9781           hardcode_shlibpath_var=no
9782           ;;
9783         *)
9784           hardcode_direct=yes
9785           hardcode_direct_absolute=yes
9786           export_dynamic_flag_spec='${wl}-E'
9787
9788           # hardcode_minus_L: Not really in the search PATH,
9789           # but as the default location of the library.
9790           hardcode_minus_L=yes
9791           ;;
9792         esac
9793       fi
9794       ;;
9795
9796     irix5* | irix6* | nonstopux*)
9797       if test "$GCC" = yes; then
9798         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'
9799         # Try to use the -exported_symbol ld option, if it does not
9800         # work, assume that -exports_file does not work either and
9801         # implicitly export all symbols.
9802         # This should be the same for all languages, so no per-tag cache variable.
9803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9804 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9805 if ${lt_cv_irix_exported_symbol+:} false; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   save_LDFLAGS="$LDFLAGS"
9809            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9810            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h.  */
9812 int foo (void) { return 0; }
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"; then :
9815   lt_cv_irix_exported_symbol=yes
9816 else
9817   lt_cv_irix_exported_symbol=no
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext \
9820     conftest$ac_exeext conftest.$ac_ext
9821            LDFLAGS="$save_LDFLAGS"
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9824 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9825         if test "$lt_cv_irix_exported_symbol" = yes; then
9826           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'
9827         fi
9828       else
9829         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'
9830         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'
9831       fi
9832       archive_cmds_need_lc='no'
9833       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9834       hardcode_libdir_separator=:
9835       inherit_rpath=yes
9836       link_all_deplibs=yes
9837       ;;
9838
9839     netbsd* | netbsdelf*-gnu)
9840       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9841         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9842       else
9843         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9844       fi
9845       hardcode_libdir_flag_spec='-R$libdir'
9846       hardcode_direct=yes
9847       hardcode_shlibpath_var=no
9848       ;;
9849
9850     newsos6)
9851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852       hardcode_direct=yes
9853       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9854       hardcode_libdir_separator=:
9855       hardcode_shlibpath_var=no
9856       ;;
9857
9858     *nto* | *qnx*)
9859       ;;
9860
9861     openbsd*)
9862       if test -f /usr/libexec/ld.so; then
9863         hardcode_direct=yes
9864         hardcode_shlibpath_var=no
9865         hardcode_direct_absolute=yes
9866         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9867           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9868           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9869           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9870           export_dynamic_flag_spec='${wl}-E'
9871         else
9872           case $host_os in
9873            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9874              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9875              hardcode_libdir_flag_spec='-R$libdir'
9876              ;;
9877            *)
9878              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9879              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9880              ;;
9881           esac
9882         fi
9883       else
9884         ld_shlibs=no
9885       fi
9886       ;;
9887
9888     os2*)
9889       hardcode_libdir_flag_spec='-L$libdir'
9890       hardcode_minus_L=yes
9891       allow_undefined_flag=unsupported
9892       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'
9893       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9894       ;;
9895
9896     osf3*)
9897       if test "$GCC" = yes; then
9898         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9899         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'
9900       else
9901         allow_undefined_flag=' -expect_unresolved \*'
9902         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'
9903       fi
9904       archive_cmds_need_lc='no'
9905       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906       hardcode_libdir_separator=:
9907       ;;
9908
9909     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9910       if test "$GCC" = yes; then
9911         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9912         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'
9913         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9914       else
9915         allow_undefined_flag=' -expect_unresolved \*'
9916         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'
9917         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~
9918         $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'
9919
9920         # Both c and cxx compiler support -rpath directly
9921         hardcode_libdir_flag_spec='-rpath $libdir'
9922       fi
9923       archive_cmds_need_lc='no'
9924       hardcode_libdir_separator=:
9925       ;;
9926
9927     solaris*)
9928       no_undefined_flag=' -z defs'
9929       if test "$GCC" = yes; then
9930         wlarc='${wl}'
9931         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9932         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9933           $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'
9934       else
9935         case `$CC -V 2>&1` in
9936         *"Compilers 5.0"*)
9937           wlarc=''
9938           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9940           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9941           ;;
9942         *)
9943           wlarc='${wl}'
9944           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9945           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9946           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9947           ;;
9948         esac
9949       fi
9950       hardcode_libdir_flag_spec='-R$libdir'
9951       hardcode_shlibpath_var=no
9952       case $host_os in
9953       solaris2.[0-5] | solaris2.[0-5].*) ;;
9954       *)
9955         # The compiler driver will combine and reorder linker options,
9956         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9957         # but is careful enough not to reorder.
9958         # Supported since Solaris 2.6 (maybe 2.5.1?)
9959         if test "$GCC" = yes; then
9960           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9961         else
9962           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9963         fi
9964         ;;
9965       esac
9966       link_all_deplibs=yes
9967       ;;
9968
9969     sunos4*)
9970       if test "x$host_vendor" = xsequent; then
9971         # Use $CC to link under sequent, because it throws in some extra .o
9972         # files that make .init and .fini sections work.
9973         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9974       else
9975         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9976       fi
9977       hardcode_libdir_flag_spec='-L$libdir'
9978       hardcode_direct=yes
9979       hardcode_minus_L=yes
9980       hardcode_shlibpath_var=no
9981       ;;
9982
9983     sysv4)
9984       case $host_vendor in
9985         sni)
9986           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987           hardcode_direct=yes # is this really true???
9988         ;;
9989         siemens)
9990           ## LD is ld it makes a PLAMLIB
9991           ## CC just makes a GrossModule.
9992           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9993           reload_cmds='$CC -r -o $output$reload_objs'
9994           hardcode_direct=no
9995         ;;
9996         motorola)
9997           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9999         ;;
10000       esac
10001       runpath_var='LD_RUN_PATH'
10002       hardcode_shlibpath_var=no
10003       ;;
10004
10005     sysv4.3*)
10006       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007       hardcode_shlibpath_var=no
10008       export_dynamic_flag_spec='-Bexport'
10009       ;;
10010
10011     sysv4*MP*)
10012       if test -d /usr/nec; then
10013         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014         hardcode_shlibpath_var=no
10015         runpath_var=LD_RUN_PATH
10016         hardcode_runpath_var=yes
10017         ld_shlibs=yes
10018       fi
10019       ;;
10020
10021     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10022       no_undefined_flag='${wl}-z,text'
10023       archive_cmds_need_lc=no
10024       hardcode_shlibpath_var=no
10025       runpath_var='LD_RUN_PATH'
10026
10027       if test "$GCC" = yes; then
10028         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030       else
10031         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033       fi
10034       ;;
10035
10036     sysv5* | sco3.2v5* | sco5v6*)
10037       # Note: We can NOT use -z defs as we might desire, because we do not
10038       # link with -lc, and that would cause any symbols used from libc to
10039       # always be unresolved, which means just about no library would
10040       # ever link correctly.  If we're not using GNU ld we use -z text
10041       # though, which does catch some bad symbols but isn't as heavy-handed
10042       # as -z defs.
10043       no_undefined_flag='${wl}-z,text'
10044       allow_undefined_flag='${wl}-z,nodefs'
10045       archive_cmds_need_lc=no
10046       hardcode_shlibpath_var=no
10047       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10048       hardcode_libdir_separator=':'
10049       link_all_deplibs=yes
10050       export_dynamic_flag_spec='${wl}-Bexport'
10051       runpath_var='LD_RUN_PATH'
10052
10053       if test "$GCC" = yes; then
10054         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056       else
10057         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059       fi
10060       ;;
10061
10062     uts4*)
10063       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064       hardcode_libdir_flag_spec='-L$libdir'
10065       hardcode_shlibpath_var=no
10066       ;;
10067
10068     *)
10069       ld_shlibs=no
10070       ;;
10071     esac
10072
10073     if test x$host_vendor = xsni; then
10074       case $host in
10075       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10076         export_dynamic_flag_spec='${wl}-Blargedynsym'
10077         ;;
10078       esac
10079     fi
10080   fi
10081
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10083 $as_echo "$ld_shlibs" >&6; }
10084 test "$ld_shlibs" = no && can_build_shared=no
10085
10086 with_gnu_ld=$with_gnu_ld
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102 #
10103 # Do we need to explicitly link libc?
10104 #
10105 case "x$archive_cmds_need_lc" in
10106 x|xyes)
10107   # Assume -lc should be added
10108   archive_cmds_need_lc=yes
10109
10110   if test "$enable_shared" = yes && test "$GCC" = yes; then
10111     case $archive_cmds in
10112     *'~'*)
10113       # FIXME: we may have to deal with multi-command sequences.
10114       ;;
10115     '$CC '*)
10116       # Test whether the compiler implicitly links with -lc since on some
10117       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10118       # to ld, don't add -lc before -lgcc.
10119       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10120 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10121 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10122   $as_echo_n "(cached) " >&6
10123 else
10124   $RM conftest*
10125         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10126
10127         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10128   (eval $ac_compile) 2>&5
10129   ac_status=$?
10130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10131   test $ac_status = 0; } 2>conftest.err; then
10132           soname=conftest
10133           lib=conftest
10134           libobjs=conftest.$ac_objext
10135           deplibs=
10136           wl=$lt_prog_compiler_wl
10137           pic_flag=$lt_prog_compiler_pic
10138           compiler_flags=-v
10139           linker_flags=-v
10140           verstring=
10141           output_objdir=.
10142           libname=conftest
10143           lt_save_allow_undefined_flag=$allow_undefined_flag
10144           allow_undefined_flag=
10145           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10146   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10147   ac_status=$?
10148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10149   test $ac_status = 0; }
10150           then
10151             lt_cv_archive_cmds_need_lc=no
10152           else
10153             lt_cv_archive_cmds_need_lc=yes
10154           fi
10155           allow_undefined_flag=$lt_save_allow_undefined_flag
10156         else
10157           cat conftest.err 1>&5
10158         fi
10159         $RM conftest*
10160
10161 fi
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10163 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10164       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10165       ;;
10166     esac
10167   fi
10168   ;;
10169 esac
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10323 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10324
10325 if test "$GCC" = yes; then
10326   case $host_os in
10327     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10328     *) lt_awk_arg="/^libraries:/" ;;
10329   esac
10330   case $host_os in
10331     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10332     *) lt_sed_strip_eq="s,=/,/,g" ;;
10333   esac
10334   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10335   case $lt_search_path_spec in
10336   *\;*)
10337     # if the path contains ";" then we assume it to be the separator
10338     # otherwise default to the standard path separator (i.e. ":") - it is
10339     # assumed that no part of a normal pathname contains ";" but that should
10340     # okay in the real world where ";" in dirpaths is itself problematic.
10341     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10342     ;;
10343   *)
10344     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10345     ;;
10346   esac
10347   # Ok, now we have the path, separated by spaces, we can step through it
10348   # and add multilib dir if necessary.
10349   lt_tmp_lt_search_path_spec=
10350   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10351   for lt_sys_path in $lt_search_path_spec; do
10352     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10353       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10354     else
10355       test -d "$lt_sys_path" && \
10356         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10357     fi
10358   done
10359   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10360 BEGIN {RS=" "; FS="/|\n";} {
10361   lt_foo="";
10362   lt_count=0;
10363   for (lt_i = NF; lt_i > 0; lt_i--) {
10364     if ($lt_i != "" && $lt_i != ".") {
10365       if ($lt_i == "..") {
10366         lt_count++;
10367       } else {
10368         if (lt_count == 0) {
10369           lt_foo="/" $lt_i lt_foo;
10370         } else {
10371           lt_count--;
10372         }
10373       }
10374     }
10375   }
10376   if (lt_foo != "") { lt_freq[lt_foo]++; }
10377   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10378 }'`
10379   # AWK program above erroneously prepends '/' to C:/dos/paths
10380   # for these hosts.
10381   case $host_os in
10382     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10383       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10384   esac
10385   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10386 else
10387   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10388 fi
10389 library_names_spec=
10390 libname_spec='lib$name'
10391 soname_spec=
10392 shrext_cmds=".so"
10393 postinstall_cmds=
10394 postuninstall_cmds=
10395 finish_cmds=
10396 finish_eval=
10397 shlibpath_var=
10398 shlibpath_overrides_runpath=unknown
10399 version_type=none
10400 dynamic_linker="$host_os ld.so"
10401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10402 need_lib_prefix=unknown
10403 hardcode_into_libs=no
10404
10405 # when you set need_version to no, make sure it does not cause -set_version
10406 # flags to be left without arguments
10407 need_version=unknown
10408
10409 case $host_os in
10410 aix3*)
10411   version_type=linux # correct to gnu/linux during the next big refactor
10412   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10413   shlibpath_var=LIBPATH
10414
10415   # AIX 3 has no versioning support, so we append a major version to the name.
10416   soname_spec='${libname}${release}${shared_ext}$major'
10417   ;;
10418
10419 aix[4-9]*)
10420   version_type=linux # correct to gnu/linux during the next big refactor
10421   need_lib_prefix=no
10422   need_version=no
10423   hardcode_into_libs=yes
10424   if test "$host_cpu" = ia64; then
10425     # AIX 5 supports IA64
10426     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10427     shlibpath_var=LD_LIBRARY_PATH
10428   else
10429     # With GCC up to 2.95.x, collect2 would create an import file
10430     # for dependence libraries.  The import file would start with
10431     # the line `#! .'.  This would cause the generated library to
10432     # depend on `.', always an invalid library.  This was fixed in
10433     # development snapshots of GCC prior to 3.0.
10434     case $host_os in
10435       aix4 | aix4.[01] | aix4.[01].*)
10436       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10437            echo ' yes '
10438            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10439         :
10440       else
10441         can_build_shared=no
10442       fi
10443       ;;
10444     esac
10445     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10446     # soname into executable. Probably we can add versioning support to
10447     # collect2, so additional links can be useful in future.
10448     if test "$aix_use_runtimelinking" = yes; then
10449       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10450       # instead of lib<name>.a to let people know that these are not
10451       # typical AIX shared libraries.
10452       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453     else
10454       # We preserve .a as extension for shared libraries through AIX4.2
10455       # and later when we are not doing run time linking.
10456       library_names_spec='${libname}${release}.a $libname.a'
10457       soname_spec='${libname}${release}${shared_ext}$major'
10458     fi
10459     shlibpath_var=LIBPATH
10460   fi
10461   ;;
10462
10463 amigaos*)
10464   case $host_cpu in
10465   powerpc)
10466     # Since July 2007 AmigaOS4 officially supports .so libraries.
10467     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469     ;;
10470   m68k)
10471     library_names_spec='$libname.ixlibrary $libname.a'
10472     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10473     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'
10474     ;;
10475   esac
10476   ;;
10477
10478 beos*)
10479   library_names_spec='${libname}${shared_ext}'
10480   dynamic_linker="$host_os ld.so"
10481   shlibpath_var=LIBRARY_PATH
10482   ;;
10483
10484 bsdi[45]*)
10485   version_type=linux # correct to gnu/linux during the next big refactor
10486   need_version=no
10487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488   soname_spec='${libname}${release}${shared_ext}$major'
10489   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10490   shlibpath_var=LD_LIBRARY_PATH
10491   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10492   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10493   # the default ld.so.conf also contains /usr/contrib/lib and
10494   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10495   # libtool to hard-code these into programs
10496   ;;
10497
10498 cygwin* | mingw* | pw32* | cegcc*)
10499   version_type=windows
10500   shrext_cmds=".dll"
10501   need_version=no
10502   need_lib_prefix=no
10503
10504   case $GCC,$cc_basename in
10505   yes,*)
10506     # gcc
10507     library_names_spec='$libname.dll.a'
10508     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10509     postinstall_cmds='base_file=`basename \${file}`~
10510       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10511       dldir=$destdir/`dirname \$dlpath`~
10512       test -d \$dldir || mkdir -p \$dldir~
10513       $install_prog $dir/$dlname \$dldir/$dlname~
10514       chmod a+x \$dldir/$dlname~
10515       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10516         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10517       fi'
10518     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10519       dlpath=$dir/\$dldll~
10520        $RM \$dlpath'
10521     shlibpath_overrides_runpath=yes
10522
10523     case $host_os in
10524     cygwin*)
10525       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10526       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10527
10528       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10529       ;;
10530     mingw* | cegcc*)
10531       # MinGW DLLs use traditional 'lib' prefix
10532       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10533       ;;
10534     pw32*)
10535       # pw32 DLLs use 'pw' prefix rather than 'lib'
10536       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537       ;;
10538     esac
10539     dynamic_linker='Win32 ld.exe'
10540     ;;
10541
10542   *,cl*)
10543     # Native MSVC
10544     libname_spec='$name'
10545     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10546     library_names_spec='${libname}.dll.lib'
10547
10548     case $build_os in
10549     mingw*)
10550       sys_lib_search_path_spec=
10551       lt_save_ifs=$IFS
10552       IFS=';'
10553       for lt_path in $LIB
10554       do
10555         IFS=$lt_save_ifs
10556         # Let DOS variable expansion print the short 8.3 style file name.
10557         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10558         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10559       done
10560       IFS=$lt_save_ifs
10561       # Convert to MSYS style.
10562       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10563       ;;
10564     cygwin*)
10565       # Convert to unix form, then to dos form, then back to unix form
10566       # but this time dos style (no spaces!) so that the unix form looks
10567       # like /cygdrive/c/PROGRA~1:/cygdr...
10568       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10569       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10570       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10571       ;;
10572     *)
10573       sys_lib_search_path_spec="$LIB"
10574       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10575         # It is most probably a Windows format PATH.
10576         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10577       else
10578         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10579       fi
10580       # FIXME: find the short name or the path components, as spaces are
10581       # common. (e.g. "Program Files" -> "PROGRA~1")
10582       ;;
10583     esac
10584
10585     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10586     postinstall_cmds='base_file=`basename \${file}`~
10587       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10588       dldir=$destdir/`dirname \$dlpath`~
10589       test -d \$dldir || mkdir -p \$dldir~
10590       $install_prog $dir/$dlname \$dldir/$dlname'
10591     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10592       dlpath=$dir/\$dldll~
10593        $RM \$dlpath'
10594     shlibpath_overrides_runpath=yes
10595     dynamic_linker='Win32 link.exe'
10596     ;;
10597
10598   *)
10599     # Assume MSVC wrapper
10600     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10601     dynamic_linker='Win32 ld.exe'
10602     ;;
10603   esac
10604   # FIXME: first we should search . and the directory the executable is in
10605   shlibpath_var=PATH
10606   ;;
10607
10608 darwin* | rhapsody*)
10609   dynamic_linker="$host_os dyld"
10610   version_type=darwin
10611   need_lib_prefix=no
10612   need_version=no
10613   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10614   soname_spec='${libname}${release}${major}$shared_ext'
10615   shlibpath_overrides_runpath=yes
10616   shlibpath_var=DYLD_LIBRARY_PATH
10617   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10618
10619   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10620   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10621   ;;
10622
10623 dgux*)
10624   version_type=linux # correct to gnu/linux during the next big refactor
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10628   soname_spec='${libname}${release}${shared_ext}$major'
10629   shlibpath_var=LD_LIBRARY_PATH
10630   ;;
10631
10632 freebsd* | dragonfly*)
10633   # DragonFly does not have aout.  When/if they implement a new
10634   # versioning mechanism, adjust this.
10635   if test -x /usr/bin/objformat; then
10636     objformat=`/usr/bin/objformat`
10637   else
10638     case $host_os in
10639     freebsd[23].*) objformat=aout ;;
10640     *) objformat=elf ;;
10641     esac
10642   fi
10643   version_type=freebsd-$objformat
10644   case $version_type in
10645     freebsd-elf*)
10646       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10647       need_version=no
10648       need_lib_prefix=no
10649       ;;
10650     freebsd-*)
10651       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10652       need_version=yes
10653       ;;
10654   esac
10655   shlibpath_var=LD_LIBRARY_PATH
10656   case $host_os in
10657   freebsd2.*)
10658     shlibpath_overrides_runpath=yes
10659     ;;
10660   freebsd3.[01]* | freebsdelf3.[01]*)
10661     shlibpath_overrides_runpath=yes
10662     hardcode_into_libs=yes
10663     ;;
10664   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10665   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10666     shlibpath_overrides_runpath=no
10667     hardcode_into_libs=yes
10668     ;;
10669   *) # from 4.6 on, and DragonFly
10670     shlibpath_overrides_runpath=yes
10671     hardcode_into_libs=yes
10672     ;;
10673   esac
10674   ;;
10675
10676 haiku*)
10677   version_type=linux # correct to gnu/linux during the next big refactor
10678   need_lib_prefix=no
10679   need_version=no
10680   dynamic_linker="$host_os runtime_loader"
10681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10682   soname_spec='${libname}${release}${shared_ext}$major'
10683   shlibpath_var=LIBRARY_PATH
10684   shlibpath_overrides_runpath=yes
10685   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10686   hardcode_into_libs=yes
10687   ;;
10688
10689 hpux9* | hpux10* | hpux11*)
10690   # Give a soname corresponding to the major version so that dld.sl refuses to
10691   # link against other versions.
10692   version_type=sunos
10693   need_lib_prefix=no
10694   need_version=no
10695   case $host_cpu in
10696   ia64*)
10697     shrext_cmds='.so'
10698     hardcode_into_libs=yes
10699     dynamic_linker="$host_os dld.so"
10700     shlibpath_var=LD_LIBRARY_PATH
10701     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703     soname_spec='${libname}${release}${shared_ext}$major'
10704     if test "X$HPUX_IA64_MODE" = X32; then
10705       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10706     else
10707       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10708     fi
10709     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10710     ;;
10711   hppa*64*)
10712     shrext_cmds='.sl'
10713     hardcode_into_libs=yes
10714     dynamic_linker="$host_os dld.sl"
10715     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10716     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718     soname_spec='${libname}${release}${shared_ext}$major'
10719     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10720     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10721     ;;
10722   *)
10723     shrext_cmds='.sl'
10724     dynamic_linker="$host_os dld.sl"
10725     shlibpath_var=SHLIB_PATH
10726     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728     soname_spec='${libname}${release}${shared_ext}$major'
10729     ;;
10730   esac
10731   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10732   postinstall_cmds='chmod 555 $lib'
10733   # or fails outright, so override atomically:
10734   install_override_mode=555
10735   ;;
10736
10737 interix[3-9]*)
10738   version_type=linux # correct to gnu/linux during the next big refactor
10739   need_lib_prefix=no
10740   need_version=no
10741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10742   soname_spec='${libname}${release}${shared_ext}$major'
10743   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10744   shlibpath_var=LD_LIBRARY_PATH
10745   shlibpath_overrides_runpath=no
10746   hardcode_into_libs=yes
10747   ;;
10748
10749 irix5* | irix6* | nonstopux*)
10750   case $host_os in
10751     nonstopux*) version_type=nonstopux ;;
10752     *)
10753         if test "$lt_cv_prog_gnu_ld" = yes; then
10754                 version_type=linux # correct to gnu/linux during the next big refactor
10755         else
10756                 version_type=irix
10757         fi ;;
10758   esac
10759   need_lib_prefix=no
10760   need_version=no
10761   soname_spec='${libname}${release}${shared_ext}$major'
10762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10763   case $host_os in
10764   irix5* | nonstopux*)
10765     libsuff= shlibsuff=
10766     ;;
10767   *)
10768     case $LD in # libtool.m4 will add one of these switches to LD
10769     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10770       libsuff= shlibsuff= libmagic=32-bit;;
10771     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10772       libsuff=32 shlibsuff=N32 libmagic=N32;;
10773     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10774       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10775     *) libsuff= shlibsuff= libmagic=never-match;;
10776     esac
10777     ;;
10778   esac
10779   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10780   shlibpath_overrides_runpath=no
10781   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10782   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10783   hardcode_into_libs=yes
10784   ;;
10785
10786 # No shared lib support for Linux oldld, aout, or coff.
10787 linux*oldld* | linux*aout* | linux*coff*)
10788   dynamic_linker=no
10789   ;;
10790
10791 # This must be glibc/ELF.
10792 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10793   version_type=linux # correct to gnu/linux during the next big refactor
10794   need_lib_prefix=no
10795   need_version=no
10796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797   soname_spec='${libname}${release}${shared_ext}$major'
10798   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   shlibpath_overrides_runpath=no
10801
10802   # Some binutils ld are patched to set DT_RUNPATH
10803   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   lt_cv_shlibpath_overrides_runpath=no
10807     save_LDFLAGS=$LDFLAGS
10808     save_libdir=$libdir
10809     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10810          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10811     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h.  */
10813
10814 int
10815 main ()
10816 {
10817
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"; then :
10823   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10824   lt_cv_shlibpath_overrides_runpath=yes
10825 fi
10826 fi
10827 rm -f core conftest.err conftest.$ac_objext \
10828     conftest$ac_exeext conftest.$ac_ext
10829     LDFLAGS=$save_LDFLAGS
10830     libdir=$save_libdir
10831
10832 fi
10833
10834   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10835
10836   # This implies no fast_install, which is unacceptable.
10837   # Some rework will be needed to allow for fast_install
10838   # before this can be enabled.
10839   hardcode_into_libs=yes
10840
10841   # Append ld.so.conf contents to the search path
10842   if test -f /etc/ld.so.conf; then
10843     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' ' '`
10844     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10845   fi
10846
10847   # We used to test for /lib/ld.so.1 and disable shared libraries on
10848   # powerpc, because MkLinux only supported shared libraries with the
10849   # GNU dynamic linker.  Since this was broken with cross compilers,
10850   # most powerpc-linux boxes support dynamic linking these days and
10851   # people can always --disable-shared, the test was removed, and we
10852   # assume the GNU/Linux dynamic linker is in use.
10853   dynamic_linker='GNU/Linux ld.so'
10854   ;;
10855
10856 netbsdelf*-gnu)
10857   version_type=linux
10858   need_lib_prefix=no
10859   need_version=no
10860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10861   soname_spec='${libname}${release}${shared_ext}$major'
10862   shlibpath_var=LD_LIBRARY_PATH
10863   shlibpath_overrides_runpath=no
10864   hardcode_into_libs=yes
10865   dynamic_linker='NetBSD ld.elf_so'
10866   ;;
10867
10868 netbsd*)
10869   version_type=sunos
10870   need_lib_prefix=no
10871   need_version=no
10872   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10874     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10875     dynamic_linker='NetBSD (a.out) ld.so'
10876   else
10877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10878     soname_spec='${libname}${release}${shared_ext}$major'
10879     dynamic_linker='NetBSD ld.elf_so'
10880   fi
10881   shlibpath_var=LD_LIBRARY_PATH
10882   shlibpath_overrides_runpath=yes
10883   hardcode_into_libs=yes
10884   ;;
10885
10886 newsos6)
10887   version_type=linux # correct to gnu/linux during the next big refactor
10888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889   shlibpath_var=LD_LIBRARY_PATH
10890   shlibpath_overrides_runpath=yes
10891   ;;
10892
10893 *nto* | *qnx*)
10894   version_type=qnx
10895   need_lib_prefix=no
10896   need_version=no
10897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898   soname_spec='${libname}${release}${shared_ext}$major'
10899   shlibpath_var=LD_LIBRARY_PATH
10900   shlibpath_overrides_runpath=no
10901   hardcode_into_libs=yes
10902   dynamic_linker='ldqnx.so'
10903   ;;
10904
10905 openbsd*)
10906   version_type=sunos
10907   sys_lib_dlsearch_path_spec="/usr/lib"
10908   need_lib_prefix=no
10909   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10910   case $host_os in
10911     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10912     *)                          need_version=no  ;;
10913   esac
10914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10918     case $host_os in
10919       openbsd2.[89] | openbsd2.[89].*)
10920         shlibpath_overrides_runpath=no
10921         ;;
10922       *)
10923         shlibpath_overrides_runpath=yes
10924         ;;
10925       esac
10926   else
10927     shlibpath_overrides_runpath=yes
10928   fi
10929   ;;
10930
10931 os2*)
10932   libname_spec='$name'
10933   shrext_cmds=".dll"
10934   need_lib_prefix=no
10935   library_names_spec='$libname${shared_ext} $libname.a'
10936   dynamic_linker='OS/2 ld.exe'
10937   shlibpath_var=LIBPATH
10938   ;;
10939
10940 osf3* | osf4* | osf5*)
10941   version_type=osf
10942   need_lib_prefix=no
10943   need_version=no
10944   soname_spec='${libname}${release}${shared_ext}$major'
10945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946   shlibpath_var=LD_LIBRARY_PATH
10947   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10948   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10949   ;;
10950
10951 rdos*)
10952   dynamic_linker=no
10953   ;;
10954
10955 solaris*)
10956   version_type=linux # correct to gnu/linux during the next big refactor
10957   need_lib_prefix=no
10958   need_version=no
10959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960   soname_spec='${libname}${release}${shared_ext}$major'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   shlibpath_overrides_runpath=yes
10963   hardcode_into_libs=yes
10964   # ldd complains unless libraries are executable
10965   postinstall_cmds='chmod +x $lib'
10966   ;;
10967
10968 sunos4*)
10969   version_type=sunos
10970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10972   shlibpath_var=LD_LIBRARY_PATH
10973   shlibpath_overrides_runpath=yes
10974   if test "$with_gnu_ld" = yes; then
10975     need_lib_prefix=no
10976   fi
10977   need_version=yes
10978   ;;
10979
10980 sysv4 | sysv4.3*)
10981   version_type=linux # correct to gnu/linux during the next big refactor
10982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983   soname_spec='${libname}${release}${shared_ext}$major'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   case $host_vendor in
10986     sni)
10987       shlibpath_overrides_runpath=no
10988       need_lib_prefix=no
10989       runpath_var=LD_RUN_PATH
10990       ;;
10991     siemens)
10992       need_lib_prefix=no
10993       ;;
10994     motorola)
10995       need_lib_prefix=no
10996       need_version=no
10997       shlibpath_overrides_runpath=no
10998       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10999       ;;
11000   esac
11001   ;;
11002
11003 sysv4*MP*)
11004   if test -d /usr/nec ;then
11005     version_type=linux # correct to gnu/linux during the next big refactor
11006     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11007     soname_spec='$libname${shared_ext}.$major'
11008     shlibpath_var=LD_LIBRARY_PATH
11009   fi
11010   ;;
11011
11012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11013   version_type=freebsd-elf
11014   need_lib_prefix=no
11015   need_version=no
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11017   soname_spec='${libname}${release}${shared_ext}$major'
11018   shlibpath_var=LD_LIBRARY_PATH
11019   shlibpath_overrides_runpath=yes
11020   hardcode_into_libs=yes
11021   if test "$with_gnu_ld" = yes; then
11022     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11023   else
11024     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11025     case $host_os in
11026       sco3.2v5*)
11027         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11028         ;;
11029     esac
11030   fi
11031   sys_lib_dlsearch_path_spec='/usr/lib'
11032   ;;
11033
11034 tpf*)
11035   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11036   version_type=linux # correct to gnu/linux during the next big refactor
11037   need_lib_prefix=no
11038   need_version=no
11039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040   shlibpath_var=LD_LIBRARY_PATH
11041   shlibpath_overrides_runpath=no
11042   hardcode_into_libs=yes
11043   ;;
11044
11045 uts4*)
11046   version_type=linux # correct to gnu/linux during the next big refactor
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048   soname_spec='${libname}${release}${shared_ext}$major'
11049   shlibpath_var=LD_LIBRARY_PATH
11050   ;;
11051
11052 *)
11053   dynamic_linker=no
11054   ;;
11055 esac
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11057 $as_echo "$dynamic_linker" >&6; }
11058 test "$dynamic_linker" = no && can_build_shared=no
11059
11060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11061 if test "$GCC" = yes; then
11062   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11063 fi
11064
11065 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11066   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11067 fi
11068 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11069   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11070 fi
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11165 hardcode_action=
11166 if test -n "$hardcode_libdir_flag_spec" ||
11167    test -n "$runpath_var" ||
11168    test "X$hardcode_automatic" = "Xyes" ; then
11169
11170   # We can hardcode non-existent directories.
11171   if test "$hardcode_direct" != no &&
11172      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11173      # have to relink, otherwise we might link with an installed library
11174      # when we should be linking with a yet-to-be-installed one
11175      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11176      test "$hardcode_minus_L" != no; then
11177     # Linking always hardcodes the temporary library directory.
11178     hardcode_action=relink
11179   else
11180     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11181     hardcode_action=immediate
11182   fi
11183 else
11184   # We cannot hardcode anything, or else we can only hardcode existing
11185   # directories.
11186   hardcode_action=unsupported
11187 fi
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11189 $as_echo "$hardcode_action" >&6; }
11190
11191 if test "$hardcode_action" = relink ||
11192    test "$inherit_rpath" = yes; then
11193   # Fast installation is not supported
11194   enable_fast_install=no
11195 elif test "$shlibpath_overrides_runpath" = yes ||
11196      test "$enable_shared" = no; then
11197   # Fast installation is not necessary
11198   enable_fast_install=needless
11199 fi
11200
11201
11202
11203
11204
11205
11206   if test "x$enable_dlopen" != xyes; then
11207   enable_dlopen=unknown
11208   enable_dlopen_self=unknown
11209   enable_dlopen_self_static=unknown
11210 else
11211   lt_cv_dlopen=no
11212   lt_cv_dlopen_libs=
11213
11214   case $host_os in
11215   beos*)
11216     lt_cv_dlopen="load_add_on"
11217     lt_cv_dlopen_libs=
11218     lt_cv_dlopen_self=yes
11219     ;;
11220
11221   mingw* | pw32* | cegcc*)
11222     lt_cv_dlopen="LoadLibrary"
11223     lt_cv_dlopen_libs=
11224     ;;
11225
11226   cygwin*)
11227     lt_cv_dlopen="dlopen"
11228     lt_cv_dlopen_libs=
11229     ;;
11230
11231   darwin*)
11232   # if libdl is installed we need to link against it
11233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11235 if ${ac_cv_lib_dl_dlopen+:} false; then :
11236   $as_echo_n "(cached) " >&6
11237 else
11238   ac_check_lib_save_LIBS=$LIBS
11239 LIBS="-ldl  $LIBS"
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h.  */
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244    Use char because int might match the return type of a GCC
11245    builtin and then its argument prototype would still apply.  */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char dlopen ();
11250 int
11251 main ()
11252 {
11253 return dlopen ();
11254   ;
11255   return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_c_try_link "$LINENO"; then :
11259   ac_cv_lib_dl_dlopen=yes
11260 else
11261   ac_cv_lib_dl_dlopen=no
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext \
11264     conftest$ac_exeext conftest.$ac_ext
11265 LIBS=$ac_check_lib_save_LIBS
11266 fi
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11269 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11270   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11271 else
11272
11273     lt_cv_dlopen="dyld"
11274     lt_cv_dlopen_libs=
11275     lt_cv_dlopen_self=yes
11276
11277 fi
11278
11279     ;;
11280
11281   *)
11282     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11283 if test "x$ac_cv_func_shl_load" = xyes; then :
11284   lt_cv_dlopen="shl_load"
11285 else
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11287 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11288 if ${ac_cv_lib_dld_shl_load+:} false; then :
11289   $as_echo_n "(cached) " >&6
11290 else
11291   ac_check_lib_save_LIBS=$LIBS
11292 LIBS="-ldld  $LIBS"
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h.  */
11295
11296 /* Override any GCC internal prototype to avoid an error.
11297    Use char because int might match the return type of a GCC
11298    builtin and then its argument prototype would still apply.  */
11299 #ifdef __cplusplus
11300 extern "C"
11301 #endif
11302 char shl_load ();
11303 int
11304 main ()
11305 {
11306 return shl_load ();
11307   ;
11308   return 0;
11309 }
11310 _ACEOF
11311 if ac_fn_c_try_link "$LINENO"; then :
11312   ac_cv_lib_dld_shl_load=yes
11313 else
11314   ac_cv_lib_dld_shl_load=no
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext \
11317     conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11321 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11322 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11323   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11324 else
11325   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11326 if test "x$ac_cv_func_dlopen" = xyes; then :
11327   lt_cv_dlopen="dlopen"
11328 else
11329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11330 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11331 if ${ac_cv_lib_dl_dlopen+:} false; then :
11332   $as_echo_n "(cached) " >&6
11333 else
11334   ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-ldl  $LIBS"
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h.  */
11338
11339 /* Override any GCC internal prototype to avoid an error.
11340    Use char because int might match the return type of a GCC
11341    builtin and then its argument prototype would still apply.  */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 char dlopen ();
11346 int
11347 main ()
11348 {
11349 return dlopen ();
11350   ;
11351   return 0;
11352 }
11353 _ACEOF
11354 if ac_fn_c_try_link "$LINENO"; then :
11355   ac_cv_lib_dl_dlopen=yes
11356 else
11357   ac_cv_lib_dl_dlopen=no
11358 fi
11359 rm -f core conftest.err conftest.$ac_objext \
11360     conftest$ac_exeext conftest.$ac_ext
11361 LIBS=$ac_check_lib_save_LIBS
11362 fi
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11364 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11365 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11366   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11367 else
11368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11369 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11370 if ${ac_cv_lib_svld_dlopen+:} false; then :
11371   $as_echo_n "(cached) " >&6
11372 else
11373   ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-lsvld  $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h.  */
11377
11378 /* Override any GCC internal prototype to avoid an error.
11379    Use char because int might match the return type of a GCC
11380    builtin and then its argument prototype would still apply.  */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char dlopen ();
11385 int
11386 main ()
11387 {
11388 return dlopen ();
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394   ac_cv_lib_svld_dlopen=yes
11395 else
11396   ac_cv_lib_svld_dlopen=no
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext \
11399     conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11401 fi
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11403 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11404 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11405   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11406 else
11407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11408 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11409 if ${ac_cv_lib_dld_dld_link+:} false; then :
11410   $as_echo_n "(cached) " >&6
11411 else
11412   ac_check_lib_save_LIBS=$LIBS
11413 LIBS="-ldld  $LIBS"
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h.  */
11416
11417 /* Override any GCC internal prototype to avoid an error.
11418    Use char because int might match the return type of a GCC
11419    builtin and then its argument prototype would still apply.  */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 char dld_link ();
11424 int
11425 main ()
11426 {
11427 return dld_link ();
11428   ;
11429   return 0;
11430 }
11431 _ACEOF
11432 if ac_fn_c_try_link "$LINENO"; then :
11433   ac_cv_lib_dld_dld_link=yes
11434 else
11435   ac_cv_lib_dld_dld_link=no
11436 fi
11437 rm -f core conftest.err conftest.$ac_objext \
11438     conftest$ac_exeext conftest.$ac_ext
11439 LIBS=$ac_check_lib_save_LIBS
11440 fi
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11442 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11443 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11444   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11445 fi
11446
11447
11448 fi
11449
11450
11451 fi
11452
11453
11454 fi
11455
11456
11457 fi
11458
11459
11460 fi
11461
11462     ;;
11463   esac
11464
11465   if test "x$lt_cv_dlopen" != xno; then
11466     enable_dlopen=yes
11467   else
11468     enable_dlopen=no
11469   fi
11470
11471   case $lt_cv_dlopen in
11472   dlopen)
11473     save_CPPFLAGS="$CPPFLAGS"
11474     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11475
11476     save_LDFLAGS="$LDFLAGS"
11477     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11478
11479     save_LIBS="$LIBS"
11480     LIBS="$lt_cv_dlopen_libs $LIBS"
11481
11482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11483 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11484 if ${lt_cv_dlopen_self+:} false; then :
11485   $as_echo_n "(cached) " >&6
11486 else
11487           if test "$cross_compiling" = yes; then :
11488   lt_cv_dlopen_self=cross
11489 else
11490   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11491   lt_status=$lt_dlunknown
11492   cat > conftest.$ac_ext <<_LT_EOF
11493 #line $LINENO "configure"
11494 #include "confdefs.h"
11495
11496 #if HAVE_DLFCN_H
11497 #include <dlfcn.h>
11498 #endif
11499
11500 #include <stdio.h>
11501
11502 #ifdef RTLD_GLOBAL
11503 #  define LT_DLGLOBAL           RTLD_GLOBAL
11504 #else
11505 #  ifdef DL_GLOBAL
11506 #    define LT_DLGLOBAL         DL_GLOBAL
11507 #  else
11508 #    define LT_DLGLOBAL         0
11509 #  endif
11510 #endif
11511
11512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11513    find out it does not work in some platform. */
11514 #ifndef LT_DLLAZY_OR_NOW
11515 #  ifdef RTLD_LAZY
11516 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11517 #  else
11518 #    ifdef DL_LAZY
11519 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11520 #    else
11521 #      ifdef RTLD_NOW
11522 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11523 #      else
11524 #        ifdef DL_NOW
11525 #          define LT_DLLAZY_OR_NOW      DL_NOW
11526 #        else
11527 #          define LT_DLLAZY_OR_NOW      0
11528 #        endif
11529 #      endif
11530 #    endif
11531 #  endif
11532 #endif
11533
11534 /* When -fvisbility=hidden is used, assume the code has been annotated
11535    correspondingly for the symbols needed.  */
11536 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11537 int fnord () __attribute__((visibility("default")));
11538 #endif
11539
11540 int fnord () { return 42; }
11541 int main ()
11542 {
11543   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11544   int status = $lt_dlunknown;
11545
11546   if (self)
11547     {
11548       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11549       else
11550         {
11551           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11552           else puts (dlerror ());
11553         }
11554       /* dlclose (self); */
11555     }
11556   else
11557     puts (dlerror ());
11558
11559   return status;
11560 }
11561 _LT_EOF
11562   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11563   (eval $ac_link) 2>&5
11564   ac_status=$?
11565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11566   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11567     (./conftest; exit; ) >&5 2>/dev/null
11568     lt_status=$?
11569     case x$lt_status in
11570       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11571       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11572       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11573     esac
11574   else :
11575     # compilation failed
11576     lt_cv_dlopen_self=no
11577   fi
11578 fi
11579 rm -fr conftest*
11580
11581
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11584 $as_echo "$lt_cv_dlopen_self" >&6; }
11585
11586     if test "x$lt_cv_dlopen_self" = xyes; then
11587       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11588       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11589 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11590 if ${lt_cv_dlopen_self_static+:} false; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593           if test "$cross_compiling" = yes; then :
11594   lt_cv_dlopen_self_static=cross
11595 else
11596   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597   lt_status=$lt_dlunknown
11598   cat > conftest.$ac_ext <<_LT_EOF
11599 #line $LINENO "configure"
11600 #include "confdefs.h"
11601
11602 #if HAVE_DLFCN_H
11603 #include <dlfcn.h>
11604 #endif
11605
11606 #include <stdio.h>
11607
11608 #ifdef RTLD_GLOBAL
11609 #  define LT_DLGLOBAL           RTLD_GLOBAL
11610 #else
11611 #  ifdef DL_GLOBAL
11612 #    define LT_DLGLOBAL         DL_GLOBAL
11613 #  else
11614 #    define LT_DLGLOBAL         0
11615 #  endif
11616 #endif
11617
11618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619    find out it does not work in some platform. */
11620 #ifndef LT_DLLAZY_OR_NOW
11621 #  ifdef RTLD_LAZY
11622 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11623 #  else
11624 #    ifdef DL_LAZY
11625 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11626 #    else
11627 #      ifdef RTLD_NOW
11628 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11629 #      else
11630 #        ifdef DL_NOW
11631 #          define LT_DLLAZY_OR_NOW      DL_NOW
11632 #        else
11633 #          define LT_DLLAZY_OR_NOW      0
11634 #        endif
11635 #      endif
11636 #    endif
11637 #  endif
11638 #endif
11639
11640 /* When -fvisbility=hidden is used, assume the code has been annotated
11641    correspondingly for the symbols needed.  */
11642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11643 int fnord () __attribute__((visibility("default")));
11644 #endif
11645
11646 int fnord () { return 42; }
11647 int main ()
11648 {
11649   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11650   int status = $lt_dlunknown;
11651
11652   if (self)
11653     {
11654       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11655       else
11656         {
11657           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11658           else puts (dlerror ());
11659         }
11660       /* dlclose (self); */
11661     }
11662   else
11663     puts (dlerror ());
11664
11665   return status;
11666 }
11667 _LT_EOF
11668   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11669   (eval $ac_link) 2>&5
11670   ac_status=$?
11671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11673     (./conftest; exit; ) >&5 2>/dev/null
11674     lt_status=$?
11675     case x$lt_status in
11676       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11677       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11678       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11679     esac
11680   else :
11681     # compilation failed
11682     lt_cv_dlopen_self_static=no
11683   fi
11684 fi
11685 rm -fr conftest*
11686
11687
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11690 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11691     fi
11692
11693     CPPFLAGS="$save_CPPFLAGS"
11694     LDFLAGS="$save_LDFLAGS"
11695     LIBS="$save_LIBS"
11696     ;;
11697   esac
11698
11699   case $lt_cv_dlopen_self in
11700   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11701   *) enable_dlopen_self=unknown ;;
11702   esac
11703
11704   case $lt_cv_dlopen_self_static in
11705   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11706   *) enable_dlopen_self_static=unknown ;;
11707   esac
11708 fi
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 striplib=
11727 old_striplib=
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11729 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11730 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11731   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11732   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734 $as_echo "yes" >&6; }
11735 else
11736 # FIXME - insert some real tests, host_os isn't really good enough
11737   case $host_os in
11738   darwin*)
11739     if test -n "$STRIP" ; then
11740       striplib="$STRIP -x"
11741       old_striplib="$STRIP -S"
11742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743 $as_echo "yes" >&6; }
11744     else
11745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11747     fi
11748     ;;
11749   *)
11750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752     ;;
11753   esac
11754 fi
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767   # Report which library types will actually be built
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11769 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11771 $as_echo "$can_build_shared" >&6; }
11772
11773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11774 $as_echo_n "checking whether to build shared libraries... " >&6; }
11775   test "$can_build_shared" = "no" && enable_shared=no
11776
11777   # On AIX, shared libraries and static libraries use the same namespace, and
11778   # are all built from PIC.
11779   case $host_os in
11780   aix3*)
11781     test "$enable_shared" = yes && enable_static=no
11782     if test -n "$RANLIB"; then
11783       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11784       postinstall_cmds='$RANLIB $lib'
11785     fi
11786     ;;
11787
11788   aix[4-9]*)
11789     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11790       test "$enable_shared" = yes && enable_static=no
11791     fi
11792     ;;
11793   esac
11794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11795 $as_echo "$enable_shared" >&6; }
11796
11797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11798 $as_echo_n "checking whether to build static libraries... " >&6; }
11799   # Make sure either enable_shared or enable_static is yes.
11800   test "$enable_shared" = yes || enable_static=yes
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11802 $as_echo "$enable_static" >&6; }
11803
11804
11805
11806
11807 fi
11808 ac_ext=c
11809 ac_cpp='$CPP $CPPFLAGS'
11810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11813
11814 CC="$lt_save_CC"
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830         ac_config_commands="$ac_config_commands libtool"
11831
11832
11833
11834
11835 # Only expand once:
11836
11837
11838
11839 # Check whether --enable-optimization was given.
11840 if test "${enable_optimization+set}" = set; then :
11841   enableval=$enable_optimization;
11842         if (test "${enableval}" = "no"); then
11843                 CFLAGS="$CFLAGS -O0 -U_FORTIFY_SOURCE"
11844         fi
11845
11846 fi
11847
11848
11849 # Check whether --enable-debug was given.
11850 if test "${enable_debug+set}" = set; then :
11851   enableval=$enable_debug;
11852         if (test "${enableval}" = "yes" &&
11853                                 test "${ac_cv_prog_cc_g}" = "yes"); then
11854                 CFLAGS="$CFLAGS -g"
11855         fi
11856
11857 fi
11858
11859
11860 # Check whether --enable-pie was given.
11861 if test "${enable_pie+set}" = set; then :
11862   enableval=$enable_pie;
11863         if (test "${enableval}" = "yes" &&
11864                                 test "${ac_cv_prog_cc_pie}" = "yes"); then
11865                 CFLAGS="$CFLAGS -fPIE"
11866                 LDFLAGS="$LDFLAGS -pie"
11867         fi
11868
11869 fi
11870
11871
11872 # Check whether --enable-hh2serial-gps was given.
11873 if test "${enable_hh2serial_gps+set}" = set; then :
11874   enableval=$enable_hh2serial_gps; enable_hh2serial_gps=${enableval}
11875 else
11876   enable_hh2serial_gps="no"
11877 fi
11878
11879  if test "${enable_hh2serial_gps}" != "no"; then
11880   HH2SERIAL_GPS_TRUE=
11881   HH2SERIAL_GPS_FALSE='#'
11882 else
11883   HH2SERIAL_GPS_TRUE='#'
11884   HH2SERIAL_GPS_FALSE=
11885 fi
11886
11887  if test "${enable_hh2serial_gps}" = "builtin"; then
11888   HH2SERIAL_GPS_BUILTIN_TRUE=
11889   HH2SERIAL_GPS_BUILTIN_FALSE='#'
11890 else
11891   HH2SERIAL_GPS_BUILTIN_TRUE='#'
11892   HH2SERIAL_GPS_BUILTIN_FALSE=
11893 fi
11894
11895
11896
11897 # Check whether --with-openconnect was given.
11898 if test "${with_openconnect+set}" = set; then :
11899   withval=$with_openconnect; path_openconnect=${withval}
11900 fi
11901
11902
11903 # Check whether --enable-openconnect was given.
11904 if test "${enable_openconnect+set}" = set; then :
11905   enableval=$enable_openconnect; enable_openconnect=${enableval}
11906 else
11907   enable_openconnect="no"
11908 fi
11909
11910 if (test "${enable_openconnect}" != "no"); then
11911         if (test -z "${path_openconnect}"); then
11912                 # Extract the first word of "openconnect", so it can be a program name with args.
11913 set dummy openconnect; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_OPENCONNECT+:} false; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   case $OPENCONNECT in
11920   [\\/]* | ?:[\\/]*)
11921   ac_cv_path_OPENCONNECT="$OPENCONNECT" # Let the user override the test with a path.
11922   ;;
11923   *)
11924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 as_dummy="$PATH:/sbin:/usr/sbin"
11926 for as_dir in $as_dummy
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930     for ac_exec_ext in '' $ac_executable_extensions; do
11931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932     ac_cv_path_OPENCONNECT="$as_dir/$ac_word$ac_exec_ext"
11933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937   done
11938 IFS=$as_save_IFS
11939
11940   ;;
11941 esac
11942 fi
11943 OPENCONNECT=$ac_cv_path_OPENCONNECT
11944 if test -n "$OPENCONNECT"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENCONNECT" >&5
11946 $as_echo "$OPENCONNECT" >&6; }
11947 else
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951
11952
11953                 if (test -z "${OPENCONNECT}"); then
11954                         as_fn_error $? "openconnect binary not found" "$LINENO" 5
11955                 fi
11956         else
11957                 OPENCONNECT="${path_openconnect}"
11958
11959         fi
11960 fi
11961  if test "${enable_openconnect}" != "no"; then
11962   OPENCONNECT_TRUE=
11963   OPENCONNECT_FALSE='#'
11964 else
11965   OPENCONNECT_TRUE='#'
11966   OPENCONNECT_FALSE=
11967 fi
11968
11969  if test "${enable_openconnect}" = "builtin"; then
11970   OPENCONNECT_BUILTIN_TRUE=
11971   OPENCONNECT_BUILTIN_FALSE='#'
11972 else
11973   OPENCONNECT_BUILTIN_TRUE='#'
11974   OPENCONNECT_BUILTIN_FALSE=
11975 fi
11976
11977
11978
11979 # Check whether --with-openvpn was given.
11980 if test "${with_openvpn+set}" = set; then :
11981   withval=$with_openvpn; path_openvpn=${withval}
11982 fi
11983
11984
11985 # Check whether --enable-openvpn was given.
11986 if test "${enable_openvpn+set}" = set; then :
11987   enableval=$enable_openvpn; enable_openvpn=${enableval}
11988 else
11989   enable_openvpn="no"
11990 fi
11991
11992 if (test "${enable_openvpn}" != "no"); then
11993         if (test -z "${path_openvpn}"); then
11994                 # Extract the first word of "openvpn", so it can be a program name with args.
11995 set dummy openvpn; ac_word=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if ${ac_cv_path_OPENVPN+:} false; then :
11999   $as_echo_n "(cached) " >&6
12000 else
12001   case $OPENVPN in
12002   [\\/]* | ?:[\\/]*)
12003   ac_cv_path_OPENVPN="$OPENVPN" # Let the user override the test with a path.
12004   ;;
12005   *)
12006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 as_dummy="$PATH:/sbin:/usr/sbin"
12008 for as_dir in $as_dummy
12009 do
12010   IFS=$as_save_IFS
12011   test -z "$as_dir" && as_dir=.
12012     for ac_exec_ext in '' $ac_executable_extensions; do
12013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014     ac_cv_path_OPENVPN="$as_dir/$ac_word$ac_exec_ext"
12015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016     break 2
12017   fi
12018 done
12019   done
12020 IFS=$as_save_IFS
12021
12022   ;;
12023 esac
12024 fi
12025 OPENVPN=$ac_cv_path_OPENVPN
12026 if test -n "$OPENVPN"; then
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENVPN" >&5
12028 $as_echo "$OPENVPN" >&6; }
12029 else
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033
12034
12035                 if (test -z "${OPENVPN}"); then
12036                         as_fn_error $? "openvpn binary not found" "$LINENO" 5
12037                 fi
12038         else
12039                 OPENVPN="${path_openvpn}"
12040
12041         fi
12042 fi
12043  if test "${enable_openvpn}" != "no"; then
12044   OPENVPN_TRUE=
12045   OPENVPN_FALSE='#'
12046 else
12047   OPENVPN_TRUE='#'
12048   OPENVPN_FALSE=
12049 fi
12050
12051  if test "${enable_openvpn}" = "builtin"; then
12052   OPENVPN_BUILTIN_TRUE=
12053   OPENVPN_BUILTIN_FALSE='#'
12054 else
12055   OPENVPN_BUILTIN_TRUE='#'
12056   OPENVPN_BUILTIN_FALSE=
12057 fi
12058
12059
12060
12061 # Check whether --with-vpnc was given.
12062 if test "${with_vpnc+set}" = set; then :
12063   withval=$with_vpnc; path_vpnc=${withval}
12064 fi
12065
12066
12067 # Check whether --enable-vpnc was given.
12068 if test "${enable_vpnc+set}" = set; then :
12069   enableval=$enable_vpnc; enable_vpnc=${enableval}
12070 else
12071   enable_vpnc="no"
12072 fi
12073
12074 if (test "${enable_vpnc}" != "no"); then
12075         if (test -z "${path_vpnc}"); then
12076                 # Extract the first word of "vpnc", so it can be a program name with args.
12077 set dummy vpnc; ac_word=$2
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079 $as_echo_n "checking for $ac_word... " >&6; }
12080 if ${ac_cv_path_VPNC+:} false; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083   case $VPNC in
12084   [\\/]* | ?:[\\/]*)
12085   ac_cv_path_VPNC="$VPNC" # Let the user override the test with a path.
12086   ;;
12087   *)
12088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 as_dummy="$PATH:/sbin:/usr/sbin"
12090 for as_dir in $as_dummy
12091 do
12092   IFS=$as_save_IFS
12093   test -z "$as_dir" && as_dir=.
12094     for ac_exec_ext in '' $ac_executable_extensions; do
12095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12096     ac_cv_path_VPNC="$as_dir/$ac_word$ac_exec_ext"
12097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098     break 2
12099   fi
12100 done
12101   done
12102 IFS=$as_save_IFS
12103
12104   ;;
12105 esac
12106 fi
12107 VPNC=$ac_cv_path_VPNC
12108 if test -n "$VPNC"; then
12109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VPNC" >&5
12110 $as_echo "$VPNC" >&6; }
12111 else
12112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114 fi
12115
12116
12117                 if (test -z "${VPNC}"); then
12118                         as_fn_error $? "vpnc binary not found" "$LINENO" 5
12119                 fi
12120         else
12121                 VPNC="${path_vpnc}"
12122
12123         fi
12124 fi
12125  if test "${enable_vpnc}" != "no"; then
12126   VPNC_TRUE=
12127   VPNC_FALSE='#'
12128 else
12129   VPNC_TRUE='#'
12130   VPNC_FALSE=
12131 fi
12132
12133  if test "${enable_vpnc}" = "builtin"; then
12134   VPNC_BUILTIN_TRUE=
12135   VPNC_BUILTIN_FALSE='#'
12136 else
12137   VPNC_BUILTIN_TRUE='#'
12138   VPNC_BUILTIN_FALSE=
12139 fi
12140
12141
12142 # Check whether --enable-l2tp was given.
12143 if test "${enable_l2tp+set}" = set; then :
12144   enableval=$enable_l2tp; enable_l2tp=${enableval}
12145 else
12146   enable_l2tp="no"
12147 fi
12148
12149 if (test "${enable_l2tp}" != "no"); then
12150         if (test -z "${path_pppd}"); then
12151                 # Extract the first word of "pppd", so it can be a program name with args.
12152 set dummy pppd; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_path_PPPD+:} false; then :
12156   $as_echo_n "(cached) " >&6
12157 else
12158   case $PPPD in
12159   [\\/]* | ?:[\\/]*)
12160   ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
12161   ;;
12162   *)
12163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 as_dummy="$PATH:/sbin:/usr/sbin"
12165 for as_dir in $as_dummy
12166 do
12167   IFS=$as_save_IFS
12168   test -z "$as_dir" && as_dir=.
12169     for ac_exec_ext in '' $ac_executable_extensions; do
12170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171     ac_cv_path_PPPD="$as_dir/$ac_word$ac_exec_ext"
12172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173     break 2
12174   fi
12175 done
12176   done
12177 IFS=$as_save_IFS
12178
12179   test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="/usr/sbin/pppd"
12180   ;;
12181 esac
12182 fi
12183 PPPD=$ac_cv_path_PPPD
12184 if test -n "$PPPD"; then
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPPD" >&5
12186 $as_echo "$PPPD" >&6; }
12187 else
12188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12190 fi
12191
12192
12193         else
12194                 PPPD="${path_pppd}"
12195
12196         fi
12197         for ac_header in pppd/pppd.h
12198 do :
12199   ac_fn_c_check_header_mongrel "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
12200 if test "x$ac_cv_header_pppd_pppd_h" = xyes; then :
12201   cat >>confdefs.h <<_ACEOF
12202 #define HAVE_PPPD_PPPD_H 1
12203 _ACEOF
12204  dummy=yes
12205 else
12206   as_fn_error $? "ppp header files are required" "$LINENO" 5
12207 fi
12208
12209 done
12210
12211         if (test -z "${path_l2tp}"); then
12212                 # Extract the first word of "xl2tpd", so it can be a program name with args.
12213 set dummy xl2tpd; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if ${ac_cv_path_L2TP+:} false; then :
12217   $as_echo_n "(cached) " >&6
12218 else
12219   case $L2TP in
12220   [\\/]* | ?:[\\/]*)
12221   ac_cv_path_L2TP="$L2TP" # Let the user override the test with a path.
12222   ;;
12223   *)
12224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 as_dummy="$PATH:/sbin:/usr/sbin"
12226 for as_dir in $as_dummy
12227 do
12228   IFS=$as_save_IFS
12229   test -z "$as_dir" && as_dir=.
12230     for ac_exec_ext in '' $ac_executable_extensions; do
12231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232     ac_cv_path_L2TP="$as_dir/$ac_word$ac_exec_ext"
12233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234     break 2
12235   fi
12236 done
12237   done
12238 IFS=$as_save_IFS
12239
12240   test -z "$ac_cv_path_L2TP" && ac_cv_path_L2TP="/usr/sbin/xl2tpd"
12241   ;;
12242 esac
12243 fi
12244 L2TP=$ac_cv_path_L2TP
12245 if test -n "$L2TP"; then
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $L2TP" >&5
12247 $as_echo "$L2TP" >&6; }
12248 else
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12251 fi
12252
12253
12254         else
12255                 L2TP="${path_l2tp}"
12256
12257         fi
12258 fi
12259  if test "${enable_l2tp}" != "no"; then
12260   L2TP_TRUE=
12261   L2TP_FALSE='#'
12262 else
12263   L2TP_TRUE='#'
12264   L2TP_FALSE=
12265 fi
12266
12267  if test "${enable_l2tp}" = "builtin"; then
12268   L2TP_BUILTIN_TRUE=
12269   L2TP_BUILTIN_FALSE='#'
12270 else
12271   L2TP_BUILTIN_TRUE='#'
12272   L2TP_BUILTIN_FALSE=
12273 fi
12274
12275
12276 # Check whether --enable-pptp was given.
12277 if test "${enable_pptp+set}" = set; then :
12278   enableval=$enable_pptp; enable_pptp=${enableval}
12279 else
12280   enable_pptp="no"
12281 fi
12282
12283 if (test "${enable_pptp}" != "no"); then
12284         if (test -z "${path_pppd}"); then
12285                 # Extract the first word of "pppd", so it can be a program name with args.
12286 set dummy pppd; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_path_PPPD+:} false; then :
12290   $as_echo_n "(cached) " >&6
12291 else
12292   case $PPPD in
12293   [\\/]* | ?:[\\/]*)
12294   ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
12295   ;;
12296   *)
12297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 as_dummy="$PATH:/sbin:/usr/sbin"
12299 for as_dir in $as_dummy
12300 do
12301   IFS=$as_save_IFS
12302   test -z "$as_dir" && as_dir=.
12303     for ac_exec_ext in '' $ac_executable_extensions; do
12304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305     ac_cv_path_PPPD="$as_dir/$ac_word$ac_exec_ext"
12306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307     break 2
12308   fi
12309 done
12310   done
12311 IFS=$as_save_IFS
12312
12313   test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="/usr/sbin/pppd"
12314   ;;
12315 esac
12316 fi
12317 PPPD=$ac_cv_path_PPPD
12318 if test -n "$PPPD"; then
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPPD" >&5
12320 $as_echo "$PPPD" >&6; }
12321 else
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 fi
12325
12326
12327         else
12328                 PPPD="${path_pppd}"
12329
12330         fi
12331         for ac_header in pppd/pppd.h
12332 do :
12333   ac_fn_c_check_header_mongrel "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
12334 if test "x$ac_cv_header_pppd_pppd_h" = xyes; then :
12335   cat >>confdefs.h <<_ACEOF
12336 #define HAVE_PPPD_PPPD_H 1
12337 _ACEOF
12338  dummy=yes
12339 else
12340   as_fn_error $? "ppp header files are required" "$LINENO" 5
12341 fi
12342
12343 done
12344
12345         if (test -z "${path_pptp}"); then
12346                 # Extract the first word of "pptp", so it can be a program name with args.
12347 set dummy pptp; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_path_PPTP+:} false; then :
12351   $as_echo_n "(cached) " >&6
12352 else
12353   case $PPTP in
12354   [\\/]* | ?:[\\/]*)
12355   ac_cv_path_PPTP="$PPTP" # Let the user override the test with a path.
12356   ;;
12357   *)
12358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 as_dummy="$PATH:/sbin:/usr/sbin"
12360 for as_dir in $as_dummy
12361 do
12362   IFS=$as_save_IFS
12363   test -z "$as_dir" && as_dir=.
12364     for ac_exec_ext in '' $ac_executable_extensions; do
12365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366     ac_cv_path_PPTP="$as_dir/$ac_word$ac_exec_ext"
12367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368     break 2
12369   fi
12370 done
12371   done
12372 IFS=$as_save_IFS
12373
12374   test -z "$ac_cv_path_PPTP" && ac_cv_path_PPTP="/usr/sbin/pptp"
12375   ;;
12376 esac
12377 fi
12378 PPTP=$ac_cv_path_PPTP
12379 if test -n "$PPTP"; then
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPTP" >&5
12381 $as_echo "$PPTP" >&6; }
12382 else
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12385 fi
12386
12387
12388         else
12389                 PPTP="${path_pptp}"
12390
12391         fi
12392 fi
12393  if test "${enable_pptp}" != "no"; then
12394   PPTP_TRUE=
12395   PPTP_FALSE='#'
12396 else
12397   PPTP_TRUE='#'
12398   PPTP_FALSE=
12399 fi
12400
12401  if test "${enable_pptp}" = "builtin"; then
12402   PPTP_BUILTIN_TRUE=
12403   PPTP_BUILTIN_FALSE='#'
12404 else
12405   PPTP_BUILTIN_TRUE='#'
12406   PPTP_BUILTIN_FALSE=
12407 fi
12408
12409
12410 for ac_header in resolv.h
12411 do :
12412   ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
12413 if test "x$ac_cv_header_resolv_h" = xyes; then :
12414   cat >>confdefs.h <<_ACEOF
12415 #define HAVE_RESOLV_H 1
12416 _ACEOF
12417  dummy=yes
12418 else
12419   as_fn_error $? "resolver header files are required" "$LINENO" 5
12420 fi
12421
12422 done
12423
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ns_initparse in -lresolv" >&5
12425 $as_echo_n "checking for ns_initparse in -lresolv... " >&6; }
12426 if ${ac_cv_lib_resolv_ns_initparse+:} false; then :
12427   $as_echo_n "(cached) " >&6
12428 else
12429   ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-lresolv  $LIBS"
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h.  */
12433
12434 /* Override any GCC internal prototype to avoid an error.
12435    Use char because int might match the return type of a GCC
12436    builtin and then its argument prototype would still apply.  */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 char ns_initparse ();
12441 int
12442 main ()
12443 {
12444 return ns_initparse ();
12445   ;
12446   return 0;
12447 }
12448 _ACEOF
12449 if ac_fn_c_try_link "$LINENO"; then :
12450   ac_cv_lib_resolv_ns_initparse=yes
12451 else
12452   ac_cv_lib_resolv_ns_initparse=no
12453 fi
12454 rm -f core conftest.err conftest.$ac_objext \
12455     conftest$ac_exeext conftest.$ac_ext
12456 LIBS=$ac_check_lib_save_LIBS
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_ns_initparse" >&5
12459 $as_echo "$ac_cv_lib_resolv_ns_initparse" >&6; }
12460 if test "x$ac_cv_lib_resolv_ns_initparse" = xyes; then :
12461   dummy=yes
12462 else
12463
12464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ns_initparse in -lresolv" >&5
12465 $as_echo_n "checking for __ns_initparse in -lresolv... " >&6; }
12466 if ${ac_cv_lib_resolv___ns_initparse+:} false; then :
12467   $as_echo_n "(cached) " >&6
12468 else
12469   ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-lresolv  $LIBS"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h.  */
12473
12474 /* Override any GCC internal prototype to avoid an error.
12475    Use char because int might match the return type of a GCC
12476    builtin and then its argument prototype would still apply.  */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char __ns_initparse ();
12481 int
12482 main ()
12483 {
12484 return __ns_initparse ();
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"; then :
12490   ac_cv_lib_resolv___ns_initparse=yes
12491 else
12492   ac_cv_lib_resolv___ns_initparse=no
12493 fi
12494 rm -f core conftest.err conftest.$ac_objext \
12495     conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12497 fi
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___ns_initparse" >&5
12499 $as_echo "$ac_cv_lib_resolv___ns_initparse" >&6; }
12500 if test "x$ac_cv_lib_resolv___ns_initparse" = xyes; then :
12501   dummy=yes
12502 else
12503   as_fn_error $? "resolver library support is required" "$LINENO" 5
12504 fi
12505
12506
12507 fi
12508
12509
12510 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12511 if test "x$ac_cv_func_signalfd" = xyes; then :
12512   dummy=yes
12513 else
12514   as_fn_error $? "signalfd support is required" "$LINENO" 5
12515 fi
12516
12517
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12519 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12520 if ${ac_cv_lib_dl_dlopen+:} false; then :
12521   $as_echo_n "(cached) " >&6
12522 else
12523   ac_check_lib_save_LIBS=$LIBS
12524 LIBS="-ldl  $LIBS"
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h.  */
12527
12528 /* Override any GCC internal prototype to avoid an error.
12529    Use char because int might match the return type of a GCC
12530    builtin and then its argument prototype would still apply.  */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char dlopen ();
12535 int
12536 main ()
12537 {
12538 return dlopen ();
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544   ac_cv_lib_dl_dlopen=yes
12545 else
12546   ac_cv_lib_dl_dlopen=no
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext \
12549     conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12551 fi
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12553 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12554 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12555   dummy=yes
12556 else
12557   as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12558 fi
12559
12560
12561 # Check whether --enable-iospm was given.
12562 if test "${enable_iospm+set}" = set; then :
12563   enableval=$enable_iospm; enable_iospm=${enableval}
12564 fi
12565
12566  if test "${enable_iospm}" = "yes"; then
12567   IOSPM_TRUE=
12568   IOSPM_FALSE='#'
12569 else
12570   IOSPM_TRUE='#'
12571   IOSPM_FALSE=
12572 fi
12573
12574
12575 # Check whether --enable-tist was given.
12576 if test "${enable_tist+set}" = set; then :
12577   enableval=$enable_tist; enable_tist=${enableval}
12578 else
12579   enable_tist="no"
12580 fi
12581
12582  if test "${enable_tist}" != "no"; then
12583   TIST_TRUE=
12584   TIST_FALSE='#'
12585 else
12586   TIST_TRUE='#'
12587   TIST_FALSE=
12588 fi
12589
12590  if test "${enable_tist}" = "builtin"; then
12591   TIST_BUILTIN_TRUE=
12592   TIST_BUILTIN_FALSE='#'
12593 else
12594   TIST_BUILTIN_TRUE='#'
12595   TIST_BUILTIN_FALSE=
12596 fi
12597
12598
12599 # Check whether --enable-session-policy-local was given.
12600 if test "${enable_session_policy_local+set}" = set; then :
12601   enableval=$enable_session_policy_local; enable_session_policy_local=${enableval}
12602 else
12603   enable_session_policy_local="no"
12604 fi
12605
12606  if test "${enable_session_policy_local}" != "no"; then
12607   SESSION_POLICY_LOCAL_TRUE=
12608   SESSION_POLICY_LOCAL_FALSE='#'
12609 else
12610   SESSION_POLICY_LOCAL_TRUE='#'
12611   SESSION_POLICY_LOCAL_FALSE=
12612 fi
12613
12614  if test "${enable_session_policy_local}" = "builtin"; then
12615   SESSION_POLICY_LOCAL_BUILTIN_TRUE=
12616   SESSION_POLICY_LOCAL_BUILTIN_FALSE='#'
12617 else
12618   SESSION_POLICY_LOCAL_BUILTIN_TRUE='#'
12619   SESSION_POLICY_LOCAL_BUILTIN_FALSE=
12620 fi
12621
12622
12623
12624 # Check whether --with-stats-max-file-size was given.
12625 if test "${with_stats_max_file_size+set}" = set; then :
12626   withval=$with_stats_max_file_size; stats_max_file_size=${withval}
12627 fi
12628
12629
12630 if (test -z "${stats_max_file_size}"); then
12631    # default size is 16 kByte
12632    stats_max_file_size="16 * 8 * 128"
12633 fi
12634
12635
12636 cat >>confdefs.h <<_ACEOF
12637 #define STATS_MAX_FILE_SIZE (${stats_max_file_size})
12638 _ACEOF
12639
12640
12641
12642 pkg_failed=no
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12644 $as_echo_n "checking for GLIB... " >&6; }
12645
12646 if test -n "$GLIB_CFLAGS"; then
12647     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12648  elif test -n "$PKG_CONFIG"; then
12649     if test -n "$PKG_CONFIG" && \
12650     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12651   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12652   ac_status=$?
12653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654   test $ac_status = 0; }; then
12655   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12656                       test "x$?" != "x0" && pkg_failed=yes
12657 else
12658   pkg_failed=yes
12659 fi
12660  else
12661     pkg_failed=untried
12662 fi
12663 if test -n "$GLIB_LIBS"; then
12664     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12665  elif test -n "$PKG_CONFIG"; then
12666     if test -n "$PKG_CONFIG" && \
12667     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12668   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12669   ac_status=$?
12670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12671   test $ac_status = 0; }; then
12672   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12673                       test "x$?" != "x0" && pkg_failed=yes
12674 else
12675   pkg_failed=yes
12676 fi
12677  else
12678     pkg_failed=untried
12679 fi
12680
12681
12682
12683 if test $pkg_failed = yes; then
12684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12686
12687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12688         _pkg_short_errors_supported=yes
12689 else
12690         _pkg_short_errors_supported=no
12691 fi
12692         if test $_pkg_short_errors_supported = yes; then
12693                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12694         else
12695                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12696         fi
12697         # Put the nasty error message in config.log where it belongs
12698         echo "$GLIB_PKG_ERRORS" >&5
12699
12700         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12701 elif test $pkg_failed = untried; then
12702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12704         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12705 else
12706         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12707         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709 $as_echo "yes" >&6; }
12710         dummy=yes
12711 fi
12712
12713
12714
12715
12716 pkg_failed=no
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12718 $as_echo_n "checking for DBUS... " >&6; }
12719
12720 if test -n "$DBUS_CFLAGS"; then
12721     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12722  elif test -n "$PKG_CONFIG"; then
12723     if test -n "$PKG_CONFIG" && \
12724     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12725   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12726   ac_status=$?
12727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728   test $ac_status = 0; }; then
12729   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12730                       test "x$?" != "x0" && pkg_failed=yes
12731 else
12732   pkg_failed=yes
12733 fi
12734  else
12735     pkg_failed=untried
12736 fi
12737 if test -n "$DBUS_LIBS"; then
12738     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12739  elif test -n "$PKG_CONFIG"; then
12740     if test -n "$PKG_CONFIG" && \
12741     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12742   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12743   ac_status=$?
12744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12745   test $ac_status = 0; }; then
12746   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12747                       test "x$?" != "x0" && pkg_failed=yes
12748 else
12749   pkg_failed=yes
12750 fi
12751  else
12752     pkg_failed=untried
12753 fi
12754
12755
12756
12757 if test $pkg_failed = yes; then
12758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12760
12761 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12762         _pkg_short_errors_supported=yes
12763 else
12764         _pkg_short_errors_supported=no
12765 fi
12766         if test $_pkg_short_errors_supported = yes; then
12767                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12768         else
12769                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12770         fi
12771         # Put the nasty error message in config.log where it belongs
12772         echo "$DBUS_PKG_ERRORS" >&5
12773
12774         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12775 elif test $pkg_failed = untried; then
12776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778         as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12779 else
12780         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12781         DBUS_LIBS=$pkg_cv_DBUS_LIBS
12782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12783 $as_echo "yes" >&6; }
12784         dummy=yes
12785 fi
12786
12787
12788
12789
12790 # Check whether --with-dbusconfdir was given.
12791 if test "${with_dbusconfdir+set}" = set; then :
12792   withval=$with_dbusconfdir; path_dbusconf=${withval}
12793 else
12794   path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
12795 fi
12796
12797 if (test -z "${path_dbusconf}"); then
12798         DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
12799 else
12800         DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
12801 fi
12802
12803
12804
12805 # Check whether --with-dbusdatadir was given.
12806 if test "${with_dbusdatadir+set}" = set; then :
12807   withval=$with_dbusdatadir; path_dbusdata=${withval}
12808 else
12809   path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
12810 fi
12811
12812 if (test -z "${path_dbusdata}"); then
12813         DBUS_DATADIR="${datadir}/dbus-1/system-services"
12814 else
12815         DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
12816 fi
12817
12818
12819
12820 # Check whether --with-systemdunitdir was given.
12821 if test "${with_systemdunitdir+set}" = set; then :
12822   withval=$with_systemdunitdir; path_systemdunit=${withval}
12823 else
12824   path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
12825 fi
12826
12827 if (test -n "${path_systemdunit}"); then
12828         SYSTEMD_UNITDIR="${path_systemdunit}"
12829
12830 fi
12831  if test -n "${path_systemdunit}"; then
12832   SYSTEMD_TRUE=
12833   SYSTEMD_FALSE='#'
12834 else
12835   SYSTEMD_TRUE='#'
12836   SYSTEMD_FALSE=
12837 fi
12838
12839
12840
12841 pkg_failed=no
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTABLES" >&5
12843 $as_echo_n "checking for XTABLES... " >&6; }
12844
12845 if test -n "$XTABLES_CFLAGS"; then
12846     pkg_cv_XTABLES_CFLAGS="$XTABLES_CFLAGS"
12847  elif test -n "$PKG_CONFIG"; then
12848     if test -n "$PKG_CONFIG" && \
12849     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtables >= 1.4.11\""; } >&5
12850   ($PKG_CONFIG --exists --print-errors "xtables >= 1.4.11") 2>&5
12851   ac_status=$?
12852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12853   test $ac_status = 0; }; then
12854   pkg_cv_XTABLES_CFLAGS=`$PKG_CONFIG --cflags "xtables >= 1.4.11" 2>/dev/null`
12855                       test "x$?" != "x0" && pkg_failed=yes
12856 else
12857   pkg_failed=yes
12858 fi
12859  else
12860     pkg_failed=untried
12861 fi
12862 if test -n "$XTABLES_LIBS"; then
12863     pkg_cv_XTABLES_LIBS="$XTABLES_LIBS"
12864  elif test -n "$PKG_CONFIG"; then
12865     if test -n "$PKG_CONFIG" && \
12866     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtables >= 1.4.11\""; } >&5
12867   ($PKG_CONFIG --exists --print-errors "xtables >= 1.4.11") 2>&5
12868   ac_status=$?
12869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12870   test $ac_status = 0; }; then
12871   pkg_cv_XTABLES_LIBS=`$PKG_CONFIG --libs "xtables >= 1.4.11" 2>/dev/null`
12872                       test "x$?" != "x0" && pkg_failed=yes
12873 else
12874   pkg_failed=yes
12875 fi
12876  else
12877     pkg_failed=untried
12878 fi
12879
12880
12881
12882 if test $pkg_failed = yes; then
12883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12885
12886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12887         _pkg_short_errors_supported=yes
12888 else
12889         _pkg_short_errors_supported=no
12890 fi
12891         if test $_pkg_short_errors_supported = yes; then
12892                 XTABLES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtables >= 1.4.11" 2>&1`
12893         else
12894                 XTABLES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtables >= 1.4.11" 2>&1`
12895         fi
12896         # Put the nasty error message in config.log where it belongs
12897         echo "$XTABLES_PKG_ERRORS" >&5
12898
12899         as_fn_error $? "Xtables library is required" "$LINENO" 5
12900 elif test $pkg_failed = untried; then
12901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903         as_fn_error $? "Xtables library is required" "$LINENO" 5
12904 else
12905         XTABLES_CFLAGS=$pkg_cv_XTABLES_CFLAGS
12906         XTABLES_LIBS=$pkg_cv_XTABLES_LIBS
12907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908 $as_echo "yes" >&6; }
12909         dummy=yes
12910 fi
12911
12912
12913
12914 # Check whether --enable-test was given.
12915 if test "${enable_test+set}" = set; then :
12916   enableval=$enable_test; enable_test=${enableval}
12917 fi
12918
12919  if test "${enable_test}" = "yes"; then
12920   TEST_TRUE=
12921   TEST_FALSE='#'
12922 else
12923   TEST_TRUE='#'
12924   TEST_FALSE=
12925 fi
12926
12927
12928 # Check whether --enable-nmcompat was given.
12929 if test "${enable_nmcompat+set}" = set; then :
12930   enableval=$enable_nmcompat; enable_nmcompat=${enableval}
12931 else
12932   enable_nmcompat="no"
12933 fi
12934
12935  if test "${enable_nmcompat}" != "no"; then
12936   NMCOMPAT_TRUE=
12937   NMCOMPAT_FALSE='#'
12938 else
12939   NMCOMPAT_TRUE='#'
12940   NMCOMPAT_FALSE=
12941 fi
12942
12943
12944 # Check whether --enable-polkit was given.
12945 if test "${enable_polkit+set}" = set; then :
12946   enableval=$enable_polkit; enable_polkit=${enableval}
12947 else
12948   enable_polkit="no"
12949 fi
12950
12951 if (test "${enable_polkit}" != "no"); then
12952         POLKIT_DATADIR="`$PKG_CONFIG --variable=actiondir polkit`"
12953         POLKIT_DATADIR=""
12954         if (test -z "${POLKIT_DATADIR}"); then
12955                 POLKIT_DATADIR="${datadir}/polkit-1/actions"
12956         fi
12957
12958 fi
12959  if test "${enable_polkit}" != "no"; then
12960   POLKIT_TRUE=
12961   POLKIT_FALSE='#'
12962 else
12963   POLKIT_TRUE='#'
12964   POLKIT_FALSE=
12965 fi
12966
12967
12968 # Check whether --enable-selinux was given.
12969 if test "${enable_selinux+set}" = set; then :
12970   enableval=$enable_selinux; enable_selinux=${enableval}
12971 else
12972   enable_selinux="no"
12973 fi
12974
12975  if test "${enable_selinux}" != "no"; then
12976   SELINUX_TRUE=
12977   SELINUX_FALSE='#'
12978 else
12979   SELINUX_TRUE='#'
12980   SELINUX_FALSE=
12981 fi
12982
12983
12984 # Check whether --enable-loopback was given.
12985 if test "${enable_loopback+set}" = set; then :
12986   enableval=$enable_loopback; enable_loopback=${enableval}
12987 fi
12988
12989  if test "${enable_loopback}" != "no"; then
12990   LOOPBACK_TRUE=
12991   LOOPBACK_FALSE='#'
12992 else
12993   LOOPBACK_TRUE='#'
12994   LOOPBACK_FALSE=
12995 fi
12996
12997
12998 # Check whether --enable-ethernet was given.
12999 if test "${enable_ethernet+set}" = set; then :
13000   enableval=$enable_ethernet; enable_ethernet=${enableval}
13001 fi
13002
13003  if test "${enable_ethernet}" != "no"; then
13004   ETHERNET_TRUE=
13005   ETHERNET_FALSE='#'
13006 else
13007   ETHERNET_TRUE='#'
13008   ETHERNET_FALSE=
13009 fi
13010
13011
13012 # Check whether --enable-gadget was given.
13013 if test "${enable_gadget+set}" = set; then :
13014   enableval=$enable_gadget; enable_gadget=${enableval}
13015 fi
13016
13017  if test "${enable_gadget}" != "no"; then
13018   GADGET_TRUE=
13019   GADGET_FALSE='#'
13020 else
13021   GADGET_TRUE='#'
13022   GADGET_FALSE=
13023 fi
13024
13025
13026 # Check whether --enable-wifi was given.
13027 if test "${enable_wifi+set}" = set; then :
13028   enableval=$enable_wifi; enable_wifi=${enableval}
13029 fi
13030
13031  if test "${enable_wifi}" != "no"; then
13032   WIFI_TRUE=
13033   WIFI_FALSE='#'
13034 else
13035   WIFI_TRUE='#'
13036   WIFI_FALSE=
13037 fi
13038
13039
13040 # Check whether --enable-bluetooth was given.
13041 if test "${enable_bluetooth+set}" = set; then :
13042   enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13043 fi
13044
13045  if test "${enable_bluetooth}" != "no"; then
13046   BLUETOOTH_TRUE=
13047   BLUETOOTH_FALSE='#'
13048 else
13049   BLUETOOTH_TRUE='#'
13050   BLUETOOTH_FALSE=
13051 fi
13052
13053
13054 # Check whether --enable-ofono was given.
13055 if test "${enable_ofono+set}" = set; then :
13056   enableval=$enable_ofono; enable_ofono=${enableval}
13057 fi
13058
13059  if test "${enable_ofono}" != "no"; then
13060   OFONO_TRUE=
13061   OFONO_FALSE='#'
13062 else
13063   OFONO_TRUE='#'
13064   OFONO_FALSE=
13065 fi
13066
13067
13068 # Check whether --enable-dundee was given.
13069 if test "${enable_dundee+set}" = set; then :
13070   enableval=$enable_dundee; enable_dundee=${enableval}
13071 fi
13072
13073  if test "${enable_dundee}" != "no"; then
13074   DUNDEE_TRUE=
13075   DUNDEE_FALSE='#'
13076 else
13077   DUNDEE_TRUE='#'
13078   DUNDEE_FALSE=
13079 fi
13080
13081
13082 # Check whether --enable-pacrunner was given.
13083 if test "${enable_pacrunner+set}" = set; then :
13084   enableval=$enable_pacrunner; enable_pacrunner=${enableval}
13085 fi
13086
13087  if test "${enable_pacrunner}" != "no"; then
13088   PACRUNNER_TRUE=
13089   PACRUNNER_FALSE='#'
13090 else
13091   PACRUNNER_TRUE='#'
13092   PACRUNNER_FALSE=
13093 fi
13094
13095
13096 # Check whether --enable-neard was given.
13097 if test "${enable_neard+set}" = set; then :
13098   enableval=$enable_neard; enable_neard=${enableval}
13099 fi
13100
13101  if test "${enable_neard}" != "no"; then
13102   NEARD_TRUE=
13103   NEARD_FALSE='#'
13104 else
13105   NEARD_TRUE='#'
13106   NEARD_FALSE=
13107 fi
13108
13109
13110 # Check whether --enable-wispr was given.
13111 if test "${enable_wispr+set}" = set; then :
13112   enableval=$enable_wispr; enable_wispr=${enableval}
13113 fi
13114
13115  if test "${enable_wispr}" != "no"; then
13116   WISPR_TRUE=
13117   WISPR_FALSE='#'
13118 else
13119   WISPR_TRUE='#'
13120   WISPR_FALSE=
13121 fi
13122
13123
13124 # Check whether --enable-tools was given.
13125 if test "${enable_tools+set}" = set; then :
13126   enableval=$enable_tools; enable_tools=${enableval}
13127 fi
13128
13129  if test "${enable_tools}" != "no"; then
13130   TOOLS_TRUE=
13131   TOOLS_FALSE='#'
13132 else
13133   TOOLS_TRUE='#'
13134   TOOLS_FALSE=
13135 fi
13136
13137
13138 if (test "${enable_tools}" != "no"); then
13139         for ac_prog in iptables-save
13140 do
13141   # Extract the first word of "$ac_prog", so it can be a program name with args.
13142 set dummy $ac_prog; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if ${ac_cv_path_IPTABLES_SAVE+:} false; then :
13146   $as_echo_n "(cached) " >&6
13147 else
13148   case $IPTABLES_SAVE in
13149   [\\/]* | ?:[\\/]*)
13150   ac_cv_path_IPTABLES_SAVE="$IPTABLES_SAVE" # Let the user override the test with a path.
13151   ;;
13152   *)
13153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 as_dummy="$PATH:/sbin:/usr/sbin"
13155 for as_dir in $as_dummy
13156 do
13157   IFS=$as_save_IFS
13158   test -z "$as_dir" && as_dir=.
13159     for ac_exec_ext in '' $ac_executable_extensions; do
13160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13161     ac_cv_path_IPTABLES_SAVE="$as_dir/$ac_word$ac_exec_ext"
13162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163     break 2
13164   fi
13165 done
13166   done
13167 IFS=$as_save_IFS
13168
13169   ;;
13170 esac
13171 fi
13172 IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
13173 if test -n "$IPTABLES_SAVE"; then
13174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPTABLES_SAVE" >&5
13175 $as_echo "$IPTABLES_SAVE" >&6; }
13176 else
13177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13179 fi
13180
13181
13182   test -n "$IPTABLES_SAVE" && break
13183 done
13184
13185         IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
13186 else
13187         IPTABLES_SAVE=""
13188 fi
13189
13190
13191 # Check whether --enable-client was given.
13192 if test "${enable_client+set}" = set; then :
13193   enableval=$enable_client; enable_client=${enableval}
13194 fi
13195
13196  if test "${enable_client}" != "no"; then
13197   CLIENT_TRUE=
13198   CLIENT_FALSE='#'
13199 else
13200   CLIENT_TRUE='#'
13201   CLIENT_FALSE=
13202 fi
13203
13204
13205 if (test "${enable_wispr}" != "no"); then
13206
13207 pkg_failed=no
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13209 $as_echo_n "checking for GNUTLS... " >&6; }
13210
13211 if test -n "$GNUTLS_CFLAGS"; then
13212     pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13213  elif test -n "$PKG_CONFIG"; then
13214     if test -n "$PKG_CONFIG" && \
13215     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13216   ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13217   ac_status=$?
13218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13219   test $ac_status = 0; }; then
13220   pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
13221                       test "x$?" != "x0" && pkg_failed=yes
13222 else
13223   pkg_failed=yes
13224 fi
13225  else
13226     pkg_failed=untried
13227 fi
13228 if test -n "$GNUTLS_LIBS"; then
13229     pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13230  elif test -n "$PKG_CONFIG"; then
13231     if test -n "$PKG_CONFIG" && \
13232     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13233   ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13234   ac_status=$?
13235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13236   test $ac_status = 0; }; then
13237   pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13238                       test "x$?" != "x0" && pkg_failed=yes
13239 else
13240   pkg_failed=yes
13241 fi
13242  else
13243     pkg_failed=untried
13244 fi
13245
13246
13247
13248 if test $pkg_failed = yes; then
13249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13251
13252 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13253         _pkg_short_errors_supported=yes
13254 else
13255         _pkg_short_errors_supported=no
13256 fi
13257         if test $_pkg_short_errors_supported = yes; then
13258                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
13259         else
13260                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
13261         fi
13262         # Put the nasty error message in config.log where it belongs
13263         echo "$GNUTLS_PKG_ERRORS" >&5
13264
13265         as_fn_error $? "GnuTLS library is required" "$LINENO" 5
13266 elif test $pkg_failed = untried; then
13267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13269         as_fn_error $? "GnuTLS library is required" "$LINENO" 5
13270 else
13271         GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13272         GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13274 $as_echo "yes" >&6; }
13275         dummy=yes
13276 fi
13277 else
13278         GNUTLS_CFLAGS=""
13279         GNUTLS_LIBS=""
13280 fi
13281
13282
13283
13284 if (test "${enable_loopback}" != "no"); then
13285         for ac_header in sys/inotify.h
13286 do :
13287   ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
13288 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
13289   cat >>confdefs.h <<_ACEOF
13290 #define HAVE_SYS_INOTIFY_H 1
13291 _ACEOF
13292  dummy=yes
13293 else
13294   as_fn_error $? "inotify header files are required" "$LINENO" 5
13295 fi
13296
13297 done
13298
13299
13300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -lc" >&5
13301 $as_echo_n "checking for inotify_init in -lc... " >&6; }
13302 if ${ac_cv_lib_c_inotify_init+:} false; then :
13303   $as_echo_n "(cached) " >&6
13304 else
13305   ac_check_lib_save_LIBS=$LIBS
13306 LIBS="-lc  $LIBS"
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h.  */
13309
13310 /* Override any GCC internal prototype to avoid an error.
13311    Use char because int might match the return type of a GCC
13312    builtin and then its argument prototype would still apply.  */
13313 #ifdef __cplusplus
13314 extern "C"
13315 #endif
13316 char inotify_init ();
13317 int
13318 main ()
13319 {
13320 return inotify_init ();
13321   ;
13322   return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"; then :
13326   ac_cv_lib_c_inotify_init=yes
13327 else
13328   ac_cv_lib_c_inotify_init=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext \
13331     conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inotify_init" >&5
13335 $as_echo "$ac_cv_lib_c_inotify_init" >&6; }
13336 if test "x$ac_cv_lib_c_inotify_init" = xyes; then :
13337   dummy=yes
13338 else
13339   as_fn_error $? "inotify library support is required" "$LINENO" 5
13340 fi
13341
13342 fi
13343
13344 if (test "${enable_wifi}" != "no"); then
13345         # Extract the first word of "wpa_supplicant", so it can be a program name with args.
13346 set dummy wpa_supplicant; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if ${ac_cv_path_WPASUPPLICANT+:} false; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   case $WPASUPPLICANT in
13353   [\\/]* | ?:[\\/]*)
13354   ac_cv_path_WPASUPPLICANT="$WPASUPPLICANT" # Let the user override the test with a path.
13355   ;;
13356   *)
13357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 as_dummy="$PATH:/sbin:/usr/sbin"
13359 for as_dir in $as_dummy
13360 do
13361   IFS=$as_save_IFS
13362   test -z "$as_dir" && as_dir=.
13363     for ac_exec_ext in '' $ac_executable_extensions; do
13364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365     ac_cv_path_WPASUPPLICANT="$as_dir/$ac_word$ac_exec_ext"
13366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367     break 2
13368   fi
13369 done
13370   done
13371 IFS=$as_save_IFS
13372
13373   ;;
13374 esac
13375 fi
13376 WPASUPPLICANT=$ac_cv_path_WPASUPPLICANT
13377 if test -n "$WPASUPPLICANT"; then
13378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WPASUPPLICANT" >&5
13379 $as_echo "$WPASUPPLICANT" >&6; }
13380 else
13381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13383 fi
13384
13385
13386 fi
13387
13388 # Check whether --enable-datafiles was given.
13389 if test "${enable_datafiles+set}" = set; then :
13390   enableval=$enable_datafiles; enable_datafiles=${enableval}
13391 fi
13392
13393  if test "${enable_datafiles}" != "no"; then
13394   DATAFILES_TRUE=
13395   DATAFILES_FALSE='#'
13396 else
13397   DATAFILES_TRUE='#'
13398   DATAFILES_FALSE=
13399 fi
13400
13401
13402 if (test "${enable_client}" != "no"); then
13403         for ac_header in readline/readline.h
13404 do :
13405   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13406 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13407   cat >>confdefs.h <<_ACEOF
13408 #define HAVE_READLINE_READLINE_H 1
13409 _ACEOF
13410  dummy=yes
13411 else
13412   as_fn_error $? "readline header files are required" "$LINENO" 5
13413 fi
13414
13415 done
13416
13417 fi
13418
13419  if test "${enable_openconnect}" != "no" -o \
13420                         "${enable_openvpn}" != "no" -o \
13421                         "${enable_vpnc}" != "no" -o \
13422                         "${enable_l2tp}" != "no" -o \
13423                         "${enable_pptp}" != "no"; then
13424   VPN_TRUE=
13425   VPN_FALSE='#'
13426 else
13427   VPN_TRUE='#'
13428   VPN_FALSE=
13429 fi
13430
13431
13432 ac_config_files="$ac_config_files Makefile include/version.h src/connman.service vpn/connman-vpn.service vpn/net.connman.vpn.service scripts/connman connman.pc src/net.connman.service"
13433
13434 cat >confcache <<\_ACEOF
13435 # This file is a shell script that caches the results of configure
13436 # tests run on this system so they can be shared between configure
13437 # scripts and configure runs, see configure's option --config-cache.
13438 # It is not useful on other systems.  If it contains results you don't
13439 # want to keep, you may remove or edit it.
13440 #
13441 # config.status only pays attention to the cache file if you give it
13442 # the --recheck option to rerun configure.
13443 #
13444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13446 # following values.
13447
13448 _ACEOF
13449
13450 # The following way of writing the cache mishandles newlines in values,
13451 # but we know of no workaround that is simple, portable, and efficient.
13452 # So, we kill variables containing newlines.
13453 # Ultrix sh set writes to stderr and can't be redirected directly,
13454 # and sets the high bit in the cache file unless we assign to the vars.
13455 (
13456   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13457     eval ac_val=\$$ac_var
13458     case $ac_val in #(
13459     *${as_nl}*)
13460       case $ac_var in #(
13461       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13463       esac
13464       case $ac_var in #(
13465       _ | IFS | as_nl) ;; #(
13466       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13467       *) { eval $ac_var=; unset $ac_var;} ;;
13468       esac ;;
13469     esac
13470   done
13471
13472   (set) 2>&1 |
13473     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13474     *${as_nl}ac_space=\ *)
13475       # `set' does not quote correctly, so add quotes: double-quote
13476       # substitution turns \\\\ into \\, and sed turns \\ into \.
13477       sed -n \
13478         "s/'/'\\\\''/g;
13479           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13480       ;; #(
13481     *)
13482       # `set' quotes correctly as required by POSIX, so do not add quotes.
13483       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13484       ;;
13485     esac |
13486     sort
13487 ) |
13488   sed '
13489      /^ac_cv_env_/b end
13490      t clear
13491      :clear
13492      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13493      t end
13494      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13495      :end' >>confcache
13496 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13497   if test -w "$cache_file"; then
13498     if test "x$cache_file" != "x/dev/null"; then
13499       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13500 $as_echo "$as_me: updating cache $cache_file" >&6;}
13501       if test ! -f "$cache_file" || test -h "$cache_file"; then
13502         cat confcache >"$cache_file"
13503       else
13504         case $cache_file in #(
13505         */* | ?:*)
13506           mv -f confcache "$cache_file"$$ &&
13507           mv -f "$cache_file"$$ "$cache_file" ;; #(
13508         *)
13509           mv -f confcache "$cache_file" ;;
13510         esac
13511       fi
13512     fi
13513   else
13514     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13515 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13516   fi
13517 fi
13518 rm -f confcache
13519
13520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13521 # Let make expand exec_prefix.
13522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13523
13524 DEFS=-DHAVE_CONFIG_H
13525
13526 ac_libobjs=
13527 ac_ltlibobjs=
13528 U=
13529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13530   # 1. Remove the extension, and $U if already installed.
13531   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13532   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13533   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13534   #    will be set to the directory where LIBOBJS objects are built.
13535   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13536   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13537 done
13538 LIBOBJS=$ac_libobjs
13539
13540 LTLIBOBJS=$ac_ltlibobjs
13541
13542
13543  if test -n "$EXEEXT"; then
13544   am__EXEEXT_TRUE=
13545   am__EXEEXT_FALSE='#'
13546 else
13547   am__EXEEXT_TRUE='#'
13548   am__EXEEXT_FALSE=
13549 fi
13550
13551 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13552   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13554 fi
13555 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13556   as_fn_error $? "conditional \"AMDEP\" was never defined.
13557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13558 fi
13559 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13560   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13562 fi
13563 if test -z "${HH2SERIAL_GPS_TRUE}" && test -z "${HH2SERIAL_GPS_FALSE}"; then
13564   as_fn_error $? "conditional \"HH2SERIAL_GPS\" was never defined.
13565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13566 fi
13567 if test -z "${HH2SERIAL_GPS_BUILTIN_TRUE}" && test -z "${HH2SERIAL_GPS_BUILTIN_FALSE}"; then
13568   as_fn_error $? "conditional \"HH2SERIAL_GPS_BUILTIN\" was never defined.
13569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13570 fi
13571 if test -z "${OPENCONNECT_TRUE}" && test -z "${OPENCONNECT_FALSE}"; then
13572   as_fn_error $? "conditional \"OPENCONNECT\" was never defined.
13573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13574 fi
13575 if test -z "${OPENCONNECT_BUILTIN_TRUE}" && test -z "${OPENCONNECT_BUILTIN_FALSE}"; then
13576   as_fn_error $? "conditional \"OPENCONNECT_BUILTIN\" was never defined.
13577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13578 fi
13579 if test -z "${OPENVPN_TRUE}" && test -z "${OPENVPN_FALSE}"; then
13580   as_fn_error $? "conditional \"OPENVPN\" was never defined.
13581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13582 fi
13583 if test -z "${OPENVPN_BUILTIN_TRUE}" && test -z "${OPENVPN_BUILTIN_FALSE}"; then
13584   as_fn_error $? "conditional \"OPENVPN_BUILTIN\" was never defined.
13585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13586 fi
13587 if test -z "${VPNC_TRUE}" && test -z "${VPNC_FALSE}"; then
13588   as_fn_error $? "conditional \"VPNC\" was never defined.
13589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13590 fi
13591 if test -z "${VPNC_BUILTIN_TRUE}" && test -z "${VPNC_BUILTIN_FALSE}"; then
13592   as_fn_error $? "conditional \"VPNC_BUILTIN\" was never defined.
13593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13594 fi
13595 if test -z "${L2TP_TRUE}" && test -z "${L2TP_FALSE}"; then
13596   as_fn_error $? "conditional \"L2TP\" was never defined.
13597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13598 fi
13599 if test -z "${L2TP_BUILTIN_TRUE}" && test -z "${L2TP_BUILTIN_FALSE}"; then
13600   as_fn_error $? "conditional \"L2TP_BUILTIN\" was never defined.
13601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13602 fi
13603 if test -z "${PPTP_TRUE}" && test -z "${PPTP_FALSE}"; then
13604   as_fn_error $? "conditional \"PPTP\" was never defined.
13605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13606 fi
13607 if test -z "${PPTP_BUILTIN_TRUE}" && test -z "${PPTP_BUILTIN_FALSE}"; then
13608   as_fn_error $? "conditional \"PPTP_BUILTIN\" was never defined.
13609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13610 fi
13611 if test -z "${IOSPM_TRUE}" && test -z "${IOSPM_FALSE}"; then
13612   as_fn_error $? "conditional \"IOSPM\" was never defined.
13613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13614 fi
13615 if test -z "${TIST_TRUE}" && test -z "${TIST_FALSE}"; then
13616   as_fn_error $? "conditional \"TIST\" was never defined.
13617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13618 fi
13619 if test -z "${TIST_BUILTIN_TRUE}" && test -z "${TIST_BUILTIN_FALSE}"; then
13620   as_fn_error $? "conditional \"TIST_BUILTIN\" was never defined.
13621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13622 fi
13623 if test -z "${SESSION_POLICY_LOCAL_TRUE}" && test -z "${SESSION_POLICY_LOCAL_FALSE}"; then
13624   as_fn_error $? "conditional \"SESSION_POLICY_LOCAL\" was never defined.
13625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13626 fi
13627 if test -z "${SESSION_POLICY_LOCAL_BUILTIN_TRUE}" && test -z "${SESSION_POLICY_LOCAL_BUILTIN_FALSE}"; then
13628   as_fn_error $? "conditional \"SESSION_POLICY_LOCAL_BUILTIN\" was never defined.
13629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13630 fi
13631 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13632   as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13634 fi
13635 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13636   as_fn_error $? "conditional \"TEST\" was never defined.
13637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13638 fi
13639 if test -z "${NMCOMPAT_TRUE}" && test -z "${NMCOMPAT_FALSE}"; then
13640   as_fn_error $? "conditional \"NMCOMPAT\" was never defined.
13641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13642 fi
13643 if test -z "${POLKIT_TRUE}" && test -z "${POLKIT_FALSE}"; then
13644   as_fn_error $? "conditional \"POLKIT\" was never defined.
13645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13646 fi
13647 if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
13648   as_fn_error $? "conditional \"SELINUX\" was never defined.
13649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13650 fi
13651 if test -z "${LOOPBACK_TRUE}" && test -z "${LOOPBACK_FALSE}"; then
13652   as_fn_error $? "conditional \"LOOPBACK\" was never defined.
13653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13654 fi
13655 if test -z "${ETHERNET_TRUE}" && test -z "${ETHERNET_FALSE}"; then
13656   as_fn_error $? "conditional \"ETHERNET\" was never defined.
13657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13658 fi
13659 if test -z "${GADGET_TRUE}" && test -z "${GADGET_FALSE}"; then
13660   as_fn_error $? "conditional \"GADGET\" was never defined.
13661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13662 fi
13663 if test -z "${WIFI_TRUE}" && test -z "${WIFI_FALSE}"; then
13664   as_fn_error $? "conditional \"WIFI\" was never defined.
13665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13666 fi
13667 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13668   as_fn_error $? "conditional \"BLUETOOTH\" was never defined.
13669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13670 fi
13671 if test -z "${OFONO_TRUE}" && test -z "${OFONO_FALSE}"; then
13672   as_fn_error $? "conditional \"OFONO\" was never defined.
13673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13674 fi
13675 if test -z "${DUNDEE_TRUE}" && test -z "${DUNDEE_FALSE}"; then
13676   as_fn_error $? "conditional \"DUNDEE\" was never defined.
13677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13678 fi
13679 if test -z "${PACRUNNER_TRUE}" && test -z "${PACRUNNER_FALSE}"; then
13680   as_fn_error $? "conditional \"PACRUNNER\" was never defined.
13681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13682 fi
13683 if test -z "${NEARD_TRUE}" && test -z "${NEARD_FALSE}"; then
13684   as_fn_error $? "conditional \"NEARD\" was never defined.
13685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13686 fi
13687 if test -z "${WISPR_TRUE}" && test -z "${WISPR_FALSE}"; then
13688   as_fn_error $? "conditional \"WISPR\" was never defined.
13689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13690 fi
13691 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13692   as_fn_error $? "conditional \"TOOLS\" was never defined.
13693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13694 fi
13695 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
13696   as_fn_error $? "conditional \"CLIENT\" was never defined.
13697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13698 fi
13699 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13700   as_fn_error $? "conditional \"DATAFILES\" was never defined.
13701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13702 fi
13703 if test -z "${VPN_TRUE}" && test -z "${VPN_FALSE}"; then
13704   as_fn_error $? "conditional \"VPN\" was never defined.
13705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13706 fi
13707
13708 : "${CONFIG_STATUS=./config.status}"
13709 ac_write_fail=0
13710 ac_clean_files_save=$ac_clean_files
13711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13714 as_write_fail=0
13715 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13716 #! $SHELL
13717 # Generated by $as_me.
13718 # Run this file to recreate the current configuration.
13719 # Compiler output produced by configure, useful for debugging
13720 # configure, is in config.log if it exists.
13721
13722 debug=false
13723 ac_cs_recheck=false
13724 ac_cs_silent=false
13725
13726 SHELL=\${CONFIG_SHELL-$SHELL}
13727 export SHELL
13728 _ASEOF
13729 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13730 ## -------------------- ##
13731 ## M4sh Initialization. ##
13732 ## -------------------- ##
13733
13734 # Be more Bourne compatible
13735 DUALCASE=1; export DUALCASE # for MKS sh
13736 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13737   emulate sh
13738   NULLCMD=:
13739   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13740   # is contrary to our usage.  Disable this feature.
13741   alias -g '${1+"$@"}'='"$@"'
13742   setopt NO_GLOB_SUBST
13743 else
13744   case `(set -o) 2>/dev/null` in #(
13745   *posix*) :
13746     set -o posix ;; #(
13747   *) :
13748      ;;
13749 esac
13750 fi
13751
13752
13753 as_nl='
13754 '
13755 export as_nl
13756 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13757 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13758 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13760 # Prefer a ksh shell builtin over an external printf program on Solaris,
13761 # but without wasting forks for bash or zsh.
13762 if test -z "$BASH_VERSION$ZSH_VERSION" \
13763     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13764   as_echo='print -r --'
13765   as_echo_n='print -rn --'
13766 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13767   as_echo='printf %s\n'
13768   as_echo_n='printf %s'
13769 else
13770   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13771     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13772     as_echo_n='/usr/ucb/echo -n'
13773   else
13774     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13775     as_echo_n_body='eval
13776       arg=$1;
13777       case $arg in #(
13778       *"$as_nl"*)
13779         expr "X$arg" : "X\\(.*\\)$as_nl";
13780         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13781       esac;
13782       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13783     '
13784     export as_echo_n_body
13785     as_echo_n='sh -c $as_echo_n_body as_echo'
13786   fi
13787   export as_echo_body
13788   as_echo='sh -c $as_echo_body as_echo'
13789 fi
13790
13791 # The user is always right.
13792 if test "${PATH_SEPARATOR+set}" != set; then
13793   PATH_SEPARATOR=:
13794   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13795     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13796       PATH_SEPARATOR=';'
13797   }
13798 fi
13799
13800
13801 # IFS
13802 # We need space, tab and new line, in precisely that order.  Quoting is
13803 # there to prevent editors from complaining about space-tab.
13804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13805 # splitting by setting IFS to empty value.)
13806 IFS=" ""        $as_nl"
13807
13808 # Find who we are.  Look in the path if we contain no directory separator.
13809 as_myself=
13810 case $0 in #((
13811   *[\\/]* ) as_myself=$0 ;;
13812   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815   IFS=$as_save_IFS
13816   test -z "$as_dir" && as_dir=.
13817     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13818   done
13819 IFS=$as_save_IFS
13820
13821      ;;
13822 esac
13823 # We did not find ourselves, most probably we were run as `sh COMMAND'
13824 # in which case we are not to be found in the path.
13825 if test "x$as_myself" = x; then
13826   as_myself=$0
13827 fi
13828 if test ! -f "$as_myself"; then
13829   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13830   exit 1
13831 fi
13832
13833 # Unset variables that we do not need and which cause bugs (e.g. in
13834 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13835 # suppresses any "Segmentation fault" message there.  '((' could
13836 # trigger a bug in pdksh 5.2.14.
13837 for as_var in BASH_ENV ENV MAIL MAILPATH
13838 do eval test x\${$as_var+set} = xset \
13839   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13840 done
13841 PS1='$ '
13842 PS2='> '
13843 PS4='+ '
13844
13845 # NLS nuisances.
13846 LC_ALL=C
13847 export LC_ALL
13848 LANGUAGE=C
13849 export LANGUAGE
13850
13851 # CDPATH.
13852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13853
13854
13855 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13856 # ----------------------------------------
13857 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13858 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13859 # script with STATUS, using 1 if that was 0.
13860 as_fn_error ()
13861 {
13862   as_status=$1; test $as_status -eq 0 && as_status=1
13863   if test "$4"; then
13864     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13865     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13866   fi
13867   $as_echo "$as_me: error: $2" >&2
13868   as_fn_exit $as_status
13869 } # as_fn_error
13870
13871
13872 # as_fn_set_status STATUS
13873 # -----------------------
13874 # Set $? to STATUS, without forking.
13875 as_fn_set_status ()
13876 {
13877   return $1
13878 } # as_fn_set_status
13879
13880 # as_fn_exit STATUS
13881 # -----------------
13882 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13883 as_fn_exit ()
13884 {
13885   set +e
13886   as_fn_set_status $1
13887   exit $1
13888 } # as_fn_exit
13889
13890 # as_fn_unset VAR
13891 # ---------------
13892 # Portably unset VAR.
13893 as_fn_unset ()
13894 {
13895   { eval $1=; unset $1;}
13896 }
13897 as_unset=as_fn_unset
13898 # as_fn_append VAR VALUE
13899 # ----------------------
13900 # Append the text in VALUE to the end of the definition contained in VAR. Take
13901 # advantage of any shell optimizations that allow amortized linear growth over
13902 # repeated appends, instead of the typical quadratic growth present in naive
13903 # implementations.
13904 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13905   eval 'as_fn_append ()
13906   {
13907     eval $1+=\$2
13908   }'
13909 else
13910   as_fn_append ()
13911   {
13912     eval $1=\$$1\$2
13913   }
13914 fi # as_fn_append
13915
13916 # as_fn_arith ARG...
13917 # ------------------
13918 # Perform arithmetic evaluation on the ARGs, and store the result in the
13919 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13920 # must be portable across $(()) and expr.
13921 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13922   eval 'as_fn_arith ()
13923   {
13924     as_val=$(( $* ))
13925   }'
13926 else
13927   as_fn_arith ()
13928   {
13929     as_val=`expr "$@" || test $? -eq 1`
13930   }
13931 fi # as_fn_arith
13932
13933
13934 if expr a : '\(a\)' >/dev/null 2>&1 &&
13935    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13936   as_expr=expr
13937 else
13938   as_expr=false
13939 fi
13940
13941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13942   as_basename=basename
13943 else
13944   as_basename=false
13945 fi
13946
13947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13948   as_dirname=dirname
13949 else
13950   as_dirname=false
13951 fi
13952
13953 as_me=`$as_basename -- "$0" ||
13954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13955          X"$0" : 'X\(//\)$' \| \
13956          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13957 $as_echo X/"$0" |
13958     sed '/^.*\/\([^/][^/]*\)\/*$/{
13959             s//\1/
13960             q
13961           }
13962           /^X\/\(\/\/\)$/{
13963             s//\1/
13964             q
13965           }
13966           /^X\/\(\/\).*/{
13967             s//\1/
13968             q
13969           }
13970           s/.*/./; q'`
13971
13972 # Avoid depending upon Character Ranges.
13973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13976 as_cr_digits='0123456789'
13977 as_cr_alnum=$as_cr_Letters$as_cr_digits
13978
13979 ECHO_C= ECHO_N= ECHO_T=
13980 case `echo -n x` in #(((((
13981 -n*)
13982   case `echo 'xy\c'` in
13983   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13984   xy)  ECHO_C='\c';;
13985   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13986        ECHO_T=' ';;
13987   esac;;
13988 *)
13989   ECHO_N='-n';;
13990 esac
13991
13992 rm -f conf$$ conf$$.exe conf$$.file
13993 if test -d conf$$.dir; then
13994   rm -f conf$$.dir/conf$$.file
13995 else
13996   rm -f conf$$.dir
13997   mkdir conf$$.dir 2>/dev/null
13998 fi
13999 if (echo >conf$$.file) 2>/dev/null; then
14000   if ln -s conf$$.file conf$$ 2>/dev/null; then
14001     as_ln_s='ln -s'
14002     # ... but there are two gotchas:
14003     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14004     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14005     # In both cases, we have to default to `cp -pR'.
14006     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14007       as_ln_s='cp -pR'
14008   elif ln conf$$.file conf$$ 2>/dev/null; then
14009     as_ln_s=ln
14010   else
14011     as_ln_s='cp -pR'
14012   fi
14013 else
14014   as_ln_s='cp -pR'
14015 fi
14016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14017 rmdir conf$$.dir 2>/dev/null
14018
14019
14020 # as_fn_mkdir_p
14021 # -------------
14022 # Create "$as_dir" as a directory, including parents if necessary.
14023 as_fn_mkdir_p ()
14024 {
14025
14026   case $as_dir in #(
14027   -*) as_dir=./$as_dir;;
14028   esac
14029   test -d "$as_dir" || eval $as_mkdir_p || {
14030     as_dirs=
14031     while :; do
14032       case $as_dir in #(
14033       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14034       *) as_qdir=$as_dir;;
14035       esac
14036       as_dirs="'$as_qdir' $as_dirs"
14037       as_dir=`$as_dirname -- "$as_dir" ||
14038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14039          X"$as_dir" : 'X\(//\)[^/]' \| \
14040          X"$as_dir" : 'X\(//\)$' \| \
14041          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14042 $as_echo X"$as_dir" |
14043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14044             s//\1/
14045             q
14046           }
14047           /^X\(\/\/\)[^/].*/{
14048             s//\1/
14049             q
14050           }
14051           /^X\(\/\/\)$/{
14052             s//\1/
14053             q
14054           }
14055           /^X\(\/\).*/{
14056             s//\1/
14057             q
14058           }
14059           s/.*/./; q'`
14060       test -d "$as_dir" && break
14061     done
14062     test -z "$as_dirs" || eval "mkdir $as_dirs"
14063   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14064
14065
14066 } # as_fn_mkdir_p
14067 if mkdir -p . 2>/dev/null; then
14068   as_mkdir_p='mkdir -p "$as_dir"'
14069 else
14070   test -d ./-p && rmdir ./-p
14071   as_mkdir_p=false
14072 fi
14073
14074
14075 # as_fn_executable_p FILE
14076 # -----------------------
14077 # Test if FILE is an executable regular file.
14078 as_fn_executable_p ()
14079 {
14080   test -f "$1" && test -x "$1"
14081 } # as_fn_executable_p
14082 as_test_x='test -x'
14083 as_executable_p=as_fn_executable_p
14084
14085 # Sed expression to map a string onto a valid CPP name.
14086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14087
14088 # Sed expression to map a string onto a valid variable name.
14089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14090
14091
14092 exec 6>&1
14093 ## ----------------------------------- ##
14094 ## Main body of $CONFIG_STATUS script. ##
14095 ## ----------------------------------- ##
14096 _ASEOF
14097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14098
14099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100 # Save the log message, to keep $0 and so on meaningful, and to
14101 # report actual input values of CONFIG_FILES etc. instead of their
14102 # values after options handling.
14103 ac_log="
14104 This file was extended by connman $as_me 1.26, which was
14105 generated by GNU Autoconf 2.69.  Invocation command line was
14106
14107   CONFIG_FILES    = $CONFIG_FILES
14108   CONFIG_HEADERS  = $CONFIG_HEADERS
14109   CONFIG_LINKS    = $CONFIG_LINKS
14110   CONFIG_COMMANDS = $CONFIG_COMMANDS
14111   $ $0 $@
14112
14113 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14114 "
14115
14116 _ACEOF
14117
14118 case $ac_config_files in *"
14119 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14120 esac
14121
14122 case $ac_config_headers in *"
14123 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14124 esac
14125
14126
14127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128 # Files that config.status was made for.
14129 config_files="$ac_config_files"
14130 config_headers="$ac_config_headers"
14131 config_commands="$ac_config_commands"
14132
14133 _ACEOF
14134
14135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136 ac_cs_usage="\
14137 \`$as_me' instantiates files and other configuration actions
14138 from templates according to the current configuration.  Unless the files
14139 and actions are specified as TAGs, all are instantiated by default.
14140
14141 Usage: $0 [OPTION]... [TAG]...
14142
14143   -h, --help       print this help, then exit
14144   -V, --version    print version number and configuration settings, then exit
14145       --config     print configuration, then exit
14146   -q, --quiet, --silent
14147                    do not print progress messages
14148   -d, --debug      don't remove temporary files
14149       --recheck    update $as_me by reconfiguring in the same conditions
14150       --file=FILE[:TEMPLATE]
14151                    instantiate the configuration file FILE
14152       --header=FILE[:TEMPLATE]
14153                    instantiate the configuration header FILE
14154
14155 Configuration files:
14156 $config_files
14157
14158 Configuration headers:
14159 $config_headers
14160
14161 Configuration commands:
14162 $config_commands
14163
14164 Report bugs to the package provider."
14165
14166 _ACEOF
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14169 ac_cs_version="\\
14170 connman config.status 1.26
14171 configured by $0, generated by GNU Autoconf 2.69,
14172   with options \\"\$ac_cs_config\\"
14173
14174 Copyright (C) 2012 Free Software Foundation, Inc.
14175 This config.status script is free software; the Free Software Foundation
14176 gives unlimited permission to copy, distribute and modify it."
14177
14178 ac_pwd='$ac_pwd'
14179 srcdir='$srcdir'
14180 INSTALL='$INSTALL'
14181 MKDIR_P='$MKDIR_P'
14182 AWK='$AWK'
14183 test -n "\$AWK" || AWK=awk
14184 _ACEOF
14185
14186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14187 # The default lists apply if the user does not specify any file.
14188 ac_need_defaults=:
14189 while test $# != 0
14190 do
14191   case $1 in
14192   --*=?*)
14193     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14194     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14195     ac_shift=:
14196     ;;
14197   --*=)
14198     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14199     ac_optarg=
14200     ac_shift=:
14201     ;;
14202   *)
14203     ac_option=$1
14204     ac_optarg=$2
14205     ac_shift=shift
14206     ;;
14207   esac
14208
14209   case $ac_option in
14210   # Handling of the options.
14211   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14212     ac_cs_recheck=: ;;
14213   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14214     $as_echo "$ac_cs_version"; exit ;;
14215   --config | --confi | --conf | --con | --co | --c )
14216     $as_echo "$ac_cs_config"; exit ;;
14217   --debug | --debu | --deb | --de | --d | -d )
14218     debug=: ;;
14219   --file | --fil | --fi | --f )
14220     $ac_shift
14221     case $ac_optarg in
14222     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14223     '') as_fn_error $? "missing file argument" ;;
14224     esac
14225     as_fn_append CONFIG_FILES " '$ac_optarg'"
14226     ac_need_defaults=false;;
14227   --header | --heade | --head | --hea )
14228     $ac_shift
14229     case $ac_optarg in
14230     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14231     esac
14232     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14233     ac_need_defaults=false;;
14234   --he | --h)
14235     # Conflict between --help and --header
14236     as_fn_error $? "ambiguous option: \`$1'
14237 Try \`$0 --help' for more information.";;
14238   --help | --hel | -h )
14239     $as_echo "$ac_cs_usage"; exit ;;
14240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14241   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14242     ac_cs_silent=: ;;
14243
14244   # This is an error.
14245   -*) as_fn_error $? "unrecognized option: \`$1'
14246 Try \`$0 --help' for more information." ;;
14247
14248   *) as_fn_append ac_config_targets " $1"
14249      ac_need_defaults=false ;;
14250
14251   esac
14252   shift
14253 done
14254
14255 ac_configure_extra_args=
14256
14257 if $ac_cs_silent; then
14258   exec 6>/dev/null
14259   ac_configure_extra_args="$ac_configure_extra_args --silent"
14260 fi
14261
14262 _ACEOF
14263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14264 if \$ac_cs_recheck; then
14265   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14266   shift
14267   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14268   CONFIG_SHELL='$SHELL'
14269   export CONFIG_SHELL
14270   exec "\$@"
14271 fi
14272
14273 _ACEOF
14274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275 exec 5>>config.log
14276 {
14277   echo
14278   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14279 ## Running $as_me. ##
14280 _ASBOX
14281   $as_echo "$ac_log"
14282 } >&5
14283
14284 _ACEOF
14285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14286 #
14287 # INIT-COMMANDS
14288 #
14289 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14290
14291
14292 # The HP-UX ksh and POSIX shell print the target directory to stdout
14293 # if CDPATH is set.
14294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14295
14296 sed_quote_subst='$sed_quote_subst'
14297 double_quote_subst='$double_quote_subst'
14298 delay_variable_subst='$delay_variable_subst'
14299 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14300 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14301 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14302 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14303 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14304 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14305 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14306 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14307 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14308 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14309 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14310 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14311 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14312 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14313 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14314 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14315 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14316 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14317 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14318 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14319 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14320 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14321 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14322 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14323 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14324 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14325 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14326 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14327 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14328 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14329 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14330 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14331 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14332 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14333 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14334 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14335 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14336 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14337 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14338 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14339 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14341 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14342 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14343 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14344 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14345 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14346 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14347 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14348 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14349 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14350 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14351 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14352 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14353 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14354 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14355 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"`'
14356 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14357 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14358 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14359 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14360 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14361 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14362 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14363 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14364 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14365 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14366 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14367 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14368 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14369 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14370 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14371 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14372 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14373 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14374 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14375 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14376 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14377 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14378 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14379 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14380 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14381 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14382 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14383 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14384 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14385 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14386 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14387 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14388 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14389 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14390 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14391 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14392 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14393 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14394 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14395 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14396 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14397 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14398 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14399 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14400 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14401 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14402 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14403 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14404 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14405 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14406 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14407 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14408 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14409 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14410 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14411 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14412 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14413 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14414 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14415 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14416 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14417 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14418 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14419 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14420 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14421 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14422 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14423 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14424 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14425 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14426 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14427 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14428 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14429
14430 LTCC='$LTCC'
14431 LTCFLAGS='$LTCFLAGS'
14432 compiler='$compiler_DEFAULT'
14433
14434 # A function that is used when there is no print builtin or printf.
14435 func_fallback_echo ()
14436 {
14437   eval 'cat <<_LTECHO_EOF
14438 \$1
14439 _LTECHO_EOF'
14440 }
14441
14442 # Quote evaled strings.
14443 for var in SHELL \
14444 ECHO \
14445 PATH_SEPARATOR \
14446 SED \
14447 GREP \
14448 EGREP \
14449 FGREP \
14450 LD \
14451 NM \
14452 LN_S \
14453 lt_SP2NL \
14454 lt_NL2SP \
14455 reload_flag \
14456 OBJDUMP \
14457 deplibs_check_method \
14458 file_magic_cmd \
14459 file_magic_glob \
14460 want_nocaseglob \
14461 DLLTOOL \
14462 sharedlib_from_linklib_cmd \
14463 AR \
14464 AR_FLAGS \
14465 archiver_list_spec \
14466 STRIP \
14467 RANLIB \
14468 CC \
14469 CFLAGS \
14470 compiler \
14471 lt_cv_sys_global_symbol_pipe \
14472 lt_cv_sys_global_symbol_to_cdecl \
14473 lt_cv_sys_global_symbol_to_c_name_address \
14474 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14475 nm_file_list_spec \
14476 lt_prog_compiler_no_builtin_flag \
14477 lt_prog_compiler_pic \
14478 lt_prog_compiler_wl \
14479 lt_prog_compiler_static \
14480 lt_cv_prog_compiler_c_o \
14481 need_locks \
14482 MANIFEST_TOOL \
14483 DSYMUTIL \
14484 NMEDIT \
14485 LIPO \
14486 OTOOL \
14487 OTOOL64 \
14488 shrext_cmds \
14489 export_dynamic_flag_spec \
14490 whole_archive_flag_spec \
14491 compiler_needs_object \
14492 with_gnu_ld \
14493 allow_undefined_flag \
14494 no_undefined_flag \
14495 hardcode_libdir_flag_spec \
14496 hardcode_libdir_separator \
14497 exclude_expsyms \
14498 include_expsyms \
14499 file_list_spec \
14500 variables_saved_for_relink \
14501 libname_spec \
14502 library_names_spec \
14503 soname_spec \
14504 install_override_mode \
14505 finish_eval \
14506 old_striplib \
14507 striplib; do
14508     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14509     *[\\\\\\\`\\"\\\$]*)
14510       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14511       ;;
14512     *)
14513       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14514       ;;
14515     esac
14516 done
14517
14518 # Double-quote double-evaled strings.
14519 for var in reload_cmds \
14520 old_postinstall_cmds \
14521 old_postuninstall_cmds \
14522 old_archive_cmds \
14523 extract_expsyms_cmds \
14524 old_archive_from_new_cmds \
14525 old_archive_from_expsyms_cmds \
14526 archive_cmds \
14527 archive_expsym_cmds \
14528 module_cmds \
14529 module_expsym_cmds \
14530 export_symbols_cmds \
14531 prelink_cmds \
14532 postlink_cmds \
14533 postinstall_cmds \
14534 postuninstall_cmds \
14535 finish_cmds \
14536 sys_lib_search_path_spec \
14537 sys_lib_dlsearch_path_spec; do
14538     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14539     *[\\\\\\\`\\"\\\$]*)
14540       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14541       ;;
14542     *)
14543       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14544       ;;
14545     esac
14546 done
14547
14548 ac_aux_dir='$ac_aux_dir'
14549 xsi_shell='$xsi_shell'
14550 lt_shell_append='$lt_shell_append'
14551
14552 # See if we are running on zsh, and set the options which allow our
14553 # commands through without removal of \ escapes INIT.
14554 if test -n "\${ZSH_VERSION+set}" ; then
14555    setopt NO_GLOB_SUBST
14556 fi
14557
14558
14559     PACKAGE='$PACKAGE'
14560     VERSION='$VERSION'
14561     TIMESTAMP='$TIMESTAMP'
14562     RM='$RM'
14563     ofile='$ofile'
14564
14565
14566
14567
14568 _ACEOF
14569
14570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14571
14572 # Handling of arguments.
14573 for ac_config_target in $ac_config_targets
14574 do
14575   case $ac_config_target in
14576     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14577     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14578     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14579     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14580     "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14581     "src/connman.service") CONFIG_FILES="$CONFIG_FILES src/connman.service" ;;
14582     "vpn/connman-vpn.service") CONFIG_FILES="$CONFIG_FILES vpn/connman-vpn.service" ;;
14583     "vpn/net.connman.vpn.service") CONFIG_FILES="$CONFIG_FILES vpn/net.connman.vpn.service" ;;
14584     "scripts/connman") CONFIG_FILES="$CONFIG_FILES scripts/connman" ;;
14585     "connman.pc") CONFIG_FILES="$CONFIG_FILES connman.pc" ;;
14586     "src/net.connman.service") CONFIG_FILES="$CONFIG_FILES src/net.connman.service" ;;
14587
14588   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14589   esac
14590 done
14591
14592
14593 # If the user did not use the arguments to specify the items to instantiate,
14594 # then the envvar interface is used.  Set only those that are not.
14595 # We use the long form for the default assignment because of an extremely
14596 # bizarre bug on SunOS 4.1.3.
14597 if $ac_need_defaults; then
14598   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14599   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14600   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14601 fi
14602
14603 # Have a temporary directory for convenience.  Make it in the build tree
14604 # simply because there is no reason against having it here, and in addition,
14605 # creating and moving files from /tmp can sometimes cause problems.
14606 # Hook for its removal unless debugging.
14607 # Note that there is a small window in which the directory will not be cleaned:
14608 # after its creation but before its name has been assigned to `$tmp'.
14609 $debug ||
14610 {
14611   tmp= ac_tmp=
14612   trap 'exit_status=$?
14613   : "${ac_tmp:=$tmp}"
14614   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14615 ' 0
14616   trap 'as_fn_exit 1' 1 2 13 15
14617 }
14618 # Create a (secure) tmp directory for tmp files.
14619
14620 {
14621   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14622   test -d "$tmp"
14623 }  ||
14624 {
14625   tmp=./conf$$-$RANDOM
14626   (umask 077 && mkdir "$tmp")
14627 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14628 ac_tmp=$tmp
14629
14630 # Set up the scripts for CONFIG_FILES section.
14631 # No need to generate them if there are no CONFIG_FILES.
14632 # This happens for instance with `./config.status config.h'.
14633 if test -n "$CONFIG_FILES"; then
14634
14635
14636 ac_cr=`echo X | tr X '\015'`
14637 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14638 # But we know of no other shell where ac_cr would be empty at this
14639 # point, so we can use a bashism as a fallback.
14640 if test "x$ac_cr" = x; then
14641   eval ac_cr=\$\'\\r\'
14642 fi
14643 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14644 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14645   ac_cs_awk_cr='\\r'
14646 else
14647   ac_cs_awk_cr=$ac_cr
14648 fi
14649
14650 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14651 _ACEOF
14652
14653
14654 {
14655   echo "cat >conf$$subs.awk <<_ACEOF" &&
14656   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14657   echo "_ACEOF"
14658 } >conf$$subs.sh ||
14659   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14660 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14661 ac_delim='%!_!# '
14662 for ac_last_try in false false false false false :; do
14663   . ./conf$$subs.sh ||
14664     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14665
14666   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14667   if test $ac_delim_n = $ac_delim_num; then
14668     break
14669   elif $ac_last_try; then
14670     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14671   else
14672     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14673   fi
14674 done
14675 rm -f conf$$subs.sh
14676
14677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14678 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14679 _ACEOF
14680 sed -n '
14681 h
14682 s/^/S["/; s/!.*/"]=/
14683 p
14684 g
14685 s/^[^!]*!//
14686 :repl
14687 t repl
14688 s/'"$ac_delim"'$//
14689 t delim
14690 :nl
14691 h
14692 s/\(.\{148\}\)..*/\1/
14693 t more1
14694 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14695 p
14696 n
14697 b repl
14698 :more1
14699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14700 p
14701 g
14702 s/.\{148\}//
14703 t nl
14704 :delim
14705 h
14706 s/\(.\{148\}\)..*/\1/
14707 t more2
14708 s/["\\]/\\&/g; s/^/"/; s/$/"/
14709 p
14710 b
14711 :more2
14712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14713 p
14714 g
14715 s/.\{148\}//
14716 t delim
14717 ' <conf$$subs.awk | sed '
14718 /^[^""]/{
14719   N
14720   s/\n//
14721 }
14722 ' >>$CONFIG_STATUS || ac_write_fail=1
14723 rm -f conf$$subs.awk
14724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14725 _ACAWK
14726 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14727   for (key in S) S_is_set[key] = 1
14728   FS = "\a"
14729
14730 }
14731 {
14732   line = $ 0
14733   nfields = split(line, field, "@")
14734   substed = 0
14735   len = length(field[1])
14736   for (i = 2; i < nfields; i++) {
14737     key = field[i]
14738     keylen = length(key)
14739     if (S_is_set[key]) {
14740       value = S[key]
14741       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14742       len += length(value) + length(field[++i])
14743       substed = 1
14744     } else
14745       len += 1 + keylen
14746   }
14747
14748   print line
14749 }
14750
14751 _ACAWK
14752 _ACEOF
14753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14754 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14755   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14756 else
14757   cat
14758 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14759   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14760 _ACEOF
14761
14762 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14763 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14764 # trailing colons and then remove the whole line if VPATH becomes empty
14765 # (actually we leave an empty line to preserve line numbers).
14766 if test "x$srcdir" = x.; then
14767   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14768 h
14769 s///
14770 s/^/:/
14771 s/[      ]*$/:/
14772 s/:\$(srcdir):/:/g
14773 s/:\${srcdir}:/:/g
14774 s/:@srcdir@:/:/g
14775 s/^:*//
14776 s/:*$//
14777 x
14778 s/\(=[   ]*\).*/\1/
14779 G
14780 s/\n//
14781 s/^[^=]*=[       ]*$//
14782 }'
14783 fi
14784
14785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14786 fi # test -n "$CONFIG_FILES"
14787
14788 # Set up the scripts for CONFIG_HEADERS section.
14789 # No need to generate them if there are no CONFIG_HEADERS.
14790 # This happens for instance with `./config.status Makefile'.
14791 if test -n "$CONFIG_HEADERS"; then
14792 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14793 BEGIN {
14794 _ACEOF
14795
14796 # Transform confdefs.h into an awk script `defines.awk', embedded as
14797 # here-document in config.status, that substitutes the proper values into
14798 # config.h.in to produce config.h.
14799
14800 # Create a delimiter string that does not exist in confdefs.h, to ease
14801 # handling of long lines.
14802 ac_delim='%!_!# '
14803 for ac_last_try in false false :; do
14804   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14805   if test -z "$ac_tt"; then
14806     break
14807   elif $ac_last_try; then
14808     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14809   else
14810     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14811   fi
14812 done
14813
14814 # For the awk script, D is an array of macro values keyed by name,
14815 # likewise P contains macro parameters if any.  Preserve backslash
14816 # newline sequences.
14817
14818 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14819 sed -n '
14820 s/.\{148\}/&'"$ac_delim"'/g
14821 t rset
14822 :rset
14823 s/^[     ]*#[    ]*define[       ][      ]*/ /
14824 t def
14825 d
14826 :def
14827 s/\\$//
14828 t bsnl
14829 s/["\\]/\\&/g
14830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14831 D["\1"]=" \3"/p
14832 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14833 d
14834 :bsnl
14835 s/["\\]/\\&/g
14836 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14837 D["\1"]=" \3\\\\\\n"\\/p
14838 t cont
14839 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14840 t cont
14841 d
14842 :cont
14843 n
14844 s/.\{148\}/&'"$ac_delim"'/g
14845 t clear
14846 :clear
14847 s/\\$//
14848 t bsnlc
14849 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14850 d
14851 :bsnlc
14852 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14853 b cont
14854 ' <confdefs.h | sed '
14855 s/'"$ac_delim"'/"\\\
14856 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14857
14858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14859   for (key in D) D_is_set[key] = 1
14860   FS = "\a"
14861 }
14862 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14863   line = \$ 0
14864   split(line, arg, " ")
14865   if (arg[1] == "#") {
14866     defundef = arg[2]
14867     mac1 = arg[3]
14868   } else {
14869     defundef = substr(arg[1], 2)
14870     mac1 = arg[2]
14871   }
14872   split(mac1, mac2, "(") #)
14873   macro = mac2[1]
14874   prefix = substr(line, 1, index(line, defundef) - 1)
14875   if (D_is_set[macro]) {
14876     # Preserve the white space surrounding the "#".
14877     print prefix "define", macro P[macro] D[macro]
14878     next
14879   } else {
14880     # Replace #undef with comments.  This is necessary, for example,
14881     # in the case of _POSIX_SOURCE, which is predefined and required
14882     # on some systems where configure will not decide to define it.
14883     if (defundef == "undef") {
14884       print "/*", prefix defundef, macro, "*/"
14885       next
14886     }
14887   }
14888 }
14889 { print }
14890 _ACAWK
14891 _ACEOF
14892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14893   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14894 fi # test -n "$CONFIG_HEADERS"
14895
14896
14897 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14898 shift
14899 for ac_tag
14900 do
14901   case $ac_tag in
14902   :[FHLC]) ac_mode=$ac_tag; continue;;
14903   esac
14904   case $ac_mode$ac_tag in
14905   :[FHL]*:*);;
14906   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14907   :[FH]-) ac_tag=-:-;;
14908   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14909   esac
14910   ac_save_IFS=$IFS
14911   IFS=:
14912   set x $ac_tag
14913   IFS=$ac_save_IFS
14914   shift
14915   ac_file=$1
14916   shift
14917
14918   case $ac_mode in
14919   :L) ac_source=$1;;
14920   :[FH])
14921     ac_file_inputs=
14922     for ac_f
14923     do
14924       case $ac_f in
14925       -) ac_f="$ac_tmp/stdin";;
14926       *) # Look for the file first in the build tree, then in the source tree
14927          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14928          # because $ac_f cannot contain `:'.
14929          test -f "$ac_f" ||
14930            case $ac_f in
14931            [\\/$]*) false;;
14932            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14933            esac ||
14934            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14935       esac
14936       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14937       as_fn_append ac_file_inputs " '$ac_f'"
14938     done
14939
14940     # Let's still pretend it is `configure' which instantiates (i.e., don't
14941     # use $as_me), people would be surprised to read:
14942     #    /* config.h.  Generated by config.status.  */
14943     configure_input='Generated from '`
14944           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14945         `' by configure.'
14946     if test x"$ac_file" != x-; then
14947       configure_input="$ac_file.  $configure_input"
14948       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14949 $as_echo "$as_me: creating $ac_file" >&6;}
14950     fi
14951     # Neutralize special characters interpreted by sed in replacement strings.
14952     case $configure_input in #(
14953     *\&* | *\|* | *\\* )
14954        ac_sed_conf_input=`$as_echo "$configure_input" |
14955        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14956     *) ac_sed_conf_input=$configure_input;;
14957     esac
14958
14959     case $ac_tag in
14960     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14961       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14962     esac
14963     ;;
14964   esac
14965
14966   ac_dir=`$as_dirname -- "$ac_file" ||
14967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14968          X"$ac_file" : 'X\(//\)[^/]' \| \
14969          X"$ac_file" : 'X\(//\)$' \| \
14970          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14971 $as_echo X"$ac_file" |
14972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14973             s//\1/
14974             q
14975           }
14976           /^X\(\/\/\)[^/].*/{
14977             s//\1/
14978             q
14979           }
14980           /^X\(\/\/\)$/{
14981             s//\1/
14982             q
14983           }
14984           /^X\(\/\).*/{
14985             s//\1/
14986             q
14987           }
14988           s/.*/./; q'`
14989   as_dir="$ac_dir"; as_fn_mkdir_p
14990   ac_builddir=.
14991
14992 case "$ac_dir" in
14993 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14994 *)
14995   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14996   # A ".." for each directory in $ac_dir_suffix.
14997   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14998   case $ac_top_builddir_sub in
14999   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15000   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15001   esac ;;
15002 esac
15003 ac_abs_top_builddir=$ac_pwd
15004 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15005 # for backward compatibility:
15006 ac_top_builddir=$ac_top_build_prefix
15007
15008 case $srcdir in
15009   .)  # We are building in place.
15010     ac_srcdir=.
15011     ac_top_srcdir=$ac_top_builddir_sub
15012     ac_abs_top_srcdir=$ac_pwd ;;
15013   [\\/]* | ?:[\\/]* )  # Absolute name.
15014     ac_srcdir=$srcdir$ac_dir_suffix;
15015     ac_top_srcdir=$srcdir
15016     ac_abs_top_srcdir=$srcdir ;;
15017   *) # Relative name.
15018     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15019     ac_top_srcdir=$ac_top_build_prefix$srcdir
15020     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15021 esac
15022 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15023
15024
15025   case $ac_mode in
15026   :F)
15027   #
15028   # CONFIG_FILE
15029   #
15030
15031   case $INSTALL in
15032   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15033   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15034   esac
15035   ac_MKDIR_P=$MKDIR_P
15036   case $MKDIR_P in
15037   [\\/$]* | ?:[\\/]* ) ;;
15038   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15039   esac
15040 _ACEOF
15041
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 # If the template does not know about datarootdir, expand it.
15044 # FIXME: This hack should be removed a few years after 2.60.
15045 ac_datarootdir_hack=; ac_datarootdir_seen=
15046 ac_sed_dataroot='
15047 /datarootdir/ {
15048   p
15049   q
15050 }
15051 /@datadir@/p
15052 /@docdir@/p
15053 /@infodir@/p
15054 /@localedir@/p
15055 /@mandir@/p'
15056 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15057 *datarootdir*) ac_datarootdir_seen=yes;;
15058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15059   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15060 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15061 _ACEOF
15062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15063   ac_datarootdir_hack='
15064   s&@datadir@&$datadir&g
15065   s&@docdir@&$docdir&g
15066   s&@infodir@&$infodir&g
15067   s&@localedir@&$localedir&g
15068   s&@mandir@&$mandir&g
15069   s&\\\${datarootdir}&$datarootdir&g' ;;
15070 esac
15071 _ACEOF
15072
15073 # Neutralize VPATH when `$srcdir' = `.'.
15074 # Shell code in configure.ac might set extrasub.
15075 # FIXME: do we really want to maintain this feature?
15076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15077 ac_sed_extra="$ac_vpsub
15078 $extrasub
15079 _ACEOF
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 :t
15082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15083 s|@configure_input@|$ac_sed_conf_input|;t t
15084 s&@top_builddir@&$ac_top_builddir_sub&;t t
15085 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15086 s&@srcdir@&$ac_srcdir&;t t
15087 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15088 s&@top_srcdir@&$ac_top_srcdir&;t t
15089 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15090 s&@builddir@&$ac_builddir&;t t
15091 s&@abs_builddir@&$ac_abs_builddir&;t t
15092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15093 s&@INSTALL@&$ac_INSTALL&;t t
15094 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15095 $ac_datarootdir_hack
15096 "
15097 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15098   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15099
15100 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15101   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15102   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15103       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15104   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15105 which seems to be undefined.  Please make sure it is defined" >&5
15106 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15107 which seems to be undefined.  Please make sure it is defined" >&2;}
15108
15109   rm -f "$ac_tmp/stdin"
15110   case $ac_file in
15111   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15112   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15113   esac \
15114   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15115  ;;
15116   :H)
15117   #
15118   # CONFIG_HEADER
15119   #
15120   if test x"$ac_file" != x-; then
15121     {
15122       $as_echo "/* $configure_input  */" \
15123       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15124     } >"$ac_tmp/config.h" \
15125       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15126     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15127       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15128 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15129     else
15130       rm -f "$ac_file"
15131       mv "$ac_tmp/config.h" "$ac_file" \
15132         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15133     fi
15134   else
15135     $as_echo "/* $configure_input  */" \
15136       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15137       || as_fn_error $? "could not create -" "$LINENO" 5
15138   fi
15139 # Compute "$ac_file"'s index in $config_headers.
15140 _am_arg="$ac_file"
15141 _am_stamp_count=1
15142 for _am_header in $config_headers :; do
15143   case $_am_header in
15144     $_am_arg | $_am_arg:* )
15145       break ;;
15146     * )
15147       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15148   esac
15149 done
15150 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15151 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15152          X"$_am_arg" : 'X\(//\)[^/]' \| \
15153          X"$_am_arg" : 'X\(//\)$' \| \
15154          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15155 $as_echo X"$_am_arg" |
15156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15157             s//\1/
15158             q
15159           }
15160           /^X\(\/\/\)[^/].*/{
15161             s//\1/
15162             q
15163           }
15164           /^X\(\/\/\)$/{
15165             s//\1/
15166             q
15167           }
15168           /^X\(\/\).*/{
15169             s//\1/
15170             q
15171           }
15172           s/.*/./; q'`/stamp-h$_am_stamp_count
15173  ;;
15174
15175   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15176 $as_echo "$as_me: executing $ac_file commands" >&6;}
15177  ;;
15178   esac
15179
15180
15181   case $ac_file$ac_mode in
15182     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15183   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15184   # are listed without --file.  Let's play safe and only enable the eval
15185   # if we detect the quoting.
15186   case $CONFIG_FILES in
15187   *\'*) eval set x "$CONFIG_FILES" ;;
15188   *)   set x $CONFIG_FILES ;;
15189   esac
15190   shift
15191   for mf
15192   do
15193     # Strip MF so we end up with the name of the file.
15194     mf=`echo "$mf" | sed -e 's/:.*$//'`
15195     # Check whether this is an Automake generated Makefile or not.
15196     # We used to match only the files named `Makefile.in', but
15197     # some people rename them; so instead we look at the file content.
15198     # Grep'ing the first line is not enough: some people post-process
15199     # each Makefile.in and add a new line on top of each file to say so.
15200     # Grep'ing the whole file is not good either: AIX grep has a line
15201     # limit of 2048, but all sed's we know have understand at least 4000.
15202     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15203       dirpart=`$as_dirname -- "$mf" ||
15204 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15205          X"$mf" : 'X\(//\)[^/]' \| \
15206          X"$mf" : 'X\(//\)$' \| \
15207          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15208 $as_echo X"$mf" |
15209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15210             s//\1/
15211             q
15212           }
15213           /^X\(\/\/\)[^/].*/{
15214             s//\1/
15215             q
15216           }
15217           /^X\(\/\/\)$/{
15218             s//\1/
15219             q
15220           }
15221           /^X\(\/\).*/{
15222             s//\1/
15223             q
15224           }
15225           s/.*/./; q'`
15226     else
15227       continue
15228     fi
15229     # Extract the definition of DEPDIR, am__include, and am__quote
15230     # from the Makefile without running `make'.
15231     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15232     test -z "$DEPDIR" && continue
15233     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15234     test -z "am__include" && continue
15235     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15236     # When using ansi2knr, U may be empty or an underscore; expand it
15237     U=`sed -n 's/^U = //p' < "$mf"`
15238     # Find all dependency output files, they are included files with
15239     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15240     # simplest approach to changing $(DEPDIR) to its actual value in the
15241     # expansion.
15242     for file in `sed -n "
15243       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15244          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15245       # Make sure the directory exists.
15246       test -f "$dirpart/$file" && continue
15247       fdir=`$as_dirname -- "$file" ||
15248 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15249          X"$file" : 'X\(//\)[^/]' \| \
15250          X"$file" : 'X\(//\)$' \| \
15251          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15252 $as_echo X"$file" |
15253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15254             s//\1/
15255             q
15256           }
15257           /^X\(\/\/\)[^/].*/{
15258             s//\1/
15259             q
15260           }
15261           /^X\(\/\/\)$/{
15262             s//\1/
15263             q
15264           }
15265           /^X\(\/\).*/{
15266             s//\1/
15267             q
15268           }
15269           s/.*/./; q'`
15270       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15271       # echo "creating $dirpart/$file"
15272       echo '# dummy' > "$dirpart/$file"
15273     done
15274   done
15275 }
15276  ;;
15277     "libtool":C)
15278
15279     # See if we are running on zsh, and set the options which allow our
15280     # commands through without removal of \ escapes.
15281     if test -n "${ZSH_VERSION+set}" ; then
15282       setopt NO_GLOB_SUBST
15283     fi
15284
15285     cfgfile="${ofile}T"
15286     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15287     $RM "$cfgfile"
15288
15289     cat <<_LT_EOF >> "$cfgfile"
15290 #! $SHELL
15291
15292 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15293 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15294 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15295 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15296 #
15297 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15298 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15299 #                 Foundation, Inc.
15300 #   Written by Gordon Matzigkeit, 1996
15301 #
15302 #   This file is part of GNU Libtool.
15303 #
15304 # GNU Libtool is free software; you can redistribute it and/or
15305 # modify it under the terms of the GNU General Public License as
15306 # published by the Free Software Foundation; either version 2 of
15307 # the License, or (at your option) any later version.
15308 #
15309 # As a special exception to the GNU General Public License,
15310 # if you distribute this file as part of a program or library that
15311 # is built using GNU Libtool, you may include this file under the
15312 # same distribution terms that you use for the rest of that program.
15313 #
15314 # GNU Libtool is distributed in the hope that it will be useful,
15315 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15316 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15317 # GNU General Public License for more details.
15318 #
15319 # You should have received a copy of the GNU General Public License
15320 # along with GNU Libtool; see the file COPYING.  If not, a copy
15321 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15322 # obtained by writing to the Free Software Foundation, Inc.,
15323 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15324
15325
15326 # The names of the tagged configurations supported by this script.
15327 available_tags=""
15328
15329 # ### BEGIN LIBTOOL CONFIG
15330
15331 # Whether or not to build static libraries.
15332 build_old_libs=$enable_static
15333
15334 # Which release of libtool.m4 was used?
15335 macro_version=$macro_version
15336 macro_revision=$macro_revision
15337
15338 # Whether or not to build shared libraries.
15339 build_libtool_libs=$enable_shared
15340
15341 # What type of objects to build.
15342 pic_mode=$pic_mode
15343
15344 # Whether or not to optimize for fast installation.
15345 fast_install=$enable_fast_install
15346
15347 # Shell to use when invoking shell scripts.
15348 SHELL=$lt_SHELL
15349
15350 # An echo program that protects backslashes.
15351 ECHO=$lt_ECHO
15352
15353 # The PATH separator for the build system.
15354 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15355
15356 # The host system.
15357 host_alias=$host_alias
15358 host=$host
15359 host_os=$host_os
15360
15361 # The build system.
15362 build_alias=$build_alias
15363 build=$build
15364 build_os=$build_os
15365
15366 # A sed program that does not truncate output.
15367 SED=$lt_SED
15368
15369 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15370 Xsed="\$SED -e 1s/^X//"
15371
15372 # A grep program that handles long lines.
15373 GREP=$lt_GREP
15374
15375 # An ERE matcher.
15376 EGREP=$lt_EGREP
15377
15378 # A literal string matcher.
15379 FGREP=$lt_FGREP
15380
15381 # A BSD- or MS-compatible name lister.
15382 NM=$lt_NM
15383
15384 # Whether we need soft or hard links.
15385 LN_S=$lt_LN_S
15386
15387 # What is the maximum length of a command?
15388 max_cmd_len=$max_cmd_len
15389
15390 # Object file suffix (normally "o").
15391 objext=$ac_objext
15392
15393 # Executable file suffix (normally "").
15394 exeext=$exeext
15395
15396 # whether the shell understands "unset".
15397 lt_unset=$lt_unset
15398
15399 # turn spaces into newlines.
15400 SP2NL=$lt_lt_SP2NL
15401
15402 # turn newlines into spaces.
15403 NL2SP=$lt_lt_NL2SP
15404
15405 # convert \$build file names to \$host format.
15406 to_host_file_cmd=$lt_cv_to_host_file_cmd
15407
15408 # convert \$build files to toolchain format.
15409 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15410
15411 # An object symbol dumper.
15412 OBJDUMP=$lt_OBJDUMP
15413
15414 # Method to check whether dependent libraries are shared objects.
15415 deplibs_check_method=$lt_deplibs_check_method
15416
15417 # Command to use when deplibs_check_method = "file_magic".
15418 file_magic_cmd=$lt_file_magic_cmd
15419
15420 # How to find potential files when deplibs_check_method = "file_magic".
15421 file_magic_glob=$lt_file_magic_glob
15422
15423 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15424 want_nocaseglob=$lt_want_nocaseglob
15425
15426 # DLL creation program.
15427 DLLTOOL=$lt_DLLTOOL
15428
15429 # Command to associate shared and link libraries.
15430 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15431
15432 # The archiver.
15433 AR=$lt_AR
15434
15435 # Flags to create an archive.
15436 AR_FLAGS=$lt_AR_FLAGS
15437
15438 # How to feed a file listing to the archiver.
15439 archiver_list_spec=$lt_archiver_list_spec
15440
15441 # A symbol stripping program.
15442 STRIP=$lt_STRIP
15443
15444 # Commands used to install an old-style archive.
15445 RANLIB=$lt_RANLIB
15446 old_postinstall_cmds=$lt_old_postinstall_cmds
15447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15448
15449 # Whether to use a lock for old archive extraction.
15450 lock_old_archive_extraction=$lock_old_archive_extraction
15451
15452 # A C compiler.
15453 LTCC=$lt_CC
15454
15455 # LTCC compiler flags.
15456 LTCFLAGS=$lt_CFLAGS
15457
15458 # Take the output of nm and produce a listing of raw symbols and C names.
15459 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15460
15461 # Transform the output of nm in a proper C declaration.
15462 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15463
15464 # Transform the output of nm in a C name address pair.
15465 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15466
15467 # Transform the output of nm in a C name address pair when lib prefix is needed.
15468 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15469
15470 # Specify filename containing input files for \$NM.
15471 nm_file_list_spec=$lt_nm_file_list_spec
15472
15473 # The root where to search for dependent libraries,and in which our libraries should be installed.
15474 lt_sysroot=$lt_sysroot
15475
15476 # The name of the directory that contains temporary libtool files.
15477 objdir=$objdir
15478
15479 # Used to examine libraries when file_magic_cmd begins with "file".
15480 MAGIC_CMD=$MAGIC_CMD
15481
15482 # Must we lock files when doing compilation?
15483 need_locks=$lt_need_locks
15484
15485 # Manifest tool.
15486 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15487
15488 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15489 DSYMUTIL=$lt_DSYMUTIL
15490
15491 # Tool to change global to local symbols on Mac OS X.
15492 NMEDIT=$lt_NMEDIT
15493
15494 # Tool to manipulate fat objects and archives on Mac OS X.
15495 LIPO=$lt_LIPO
15496
15497 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15498 OTOOL=$lt_OTOOL
15499
15500 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15501 OTOOL64=$lt_OTOOL64
15502
15503 # Old archive suffix (normally "a").
15504 libext=$libext
15505
15506 # Shared library suffix (normally ".so").
15507 shrext_cmds=$lt_shrext_cmds
15508
15509 # The commands to extract the exported symbol list from a shared archive.
15510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15511
15512 # Variables whose values should be saved in libtool wrapper scripts and
15513 # restored at link time.
15514 variables_saved_for_relink=$lt_variables_saved_for_relink
15515
15516 # Do we need the "lib" prefix for modules?
15517 need_lib_prefix=$need_lib_prefix
15518
15519 # Do we need a version for libraries?
15520 need_version=$need_version
15521
15522 # Library versioning type.
15523 version_type=$version_type
15524
15525 # Shared library runtime path variable.
15526 runpath_var=$runpath_var
15527
15528 # Shared library path variable.
15529 shlibpath_var=$shlibpath_var
15530
15531 # Is shlibpath searched before the hard-coded library search path?
15532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15533
15534 # Format of library name prefix.
15535 libname_spec=$lt_libname_spec
15536
15537 # List of archive names.  First name is the real one, the rest are links.
15538 # The last name is the one that the linker finds with -lNAME
15539 library_names_spec=$lt_library_names_spec
15540
15541 # The coded name of the library, if different from the real name.
15542 soname_spec=$lt_soname_spec
15543
15544 # Permission mode override for installation of shared libraries.
15545 install_override_mode=$lt_install_override_mode
15546
15547 # Command to use after installation of a shared archive.
15548 postinstall_cmds=$lt_postinstall_cmds
15549
15550 # Command to use after uninstallation of a shared archive.
15551 postuninstall_cmds=$lt_postuninstall_cmds
15552
15553 # Commands used to finish a libtool library installation in a directory.
15554 finish_cmds=$lt_finish_cmds
15555
15556 # As "finish_cmds", except a single script fragment to be evaled but
15557 # not shown.
15558 finish_eval=$lt_finish_eval
15559
15560 # Whether we should hardcode library paths into libraries.
15561 hardcode_into_libs=$hardcode_into_libs
15562
15563 # Compile-time system search path for libraries.
15564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15565
15566 # Run-time system search path for libraries.
15567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15568
15569 # Whether dlopen is supported.
15570 dlopen_support=$enable_dlopen
15571
15572 # Whether dlopen of programs is supported.
15573 dlopen_self=$enable_dlopen_self
15574
15575 # Whether dlopen of statically linked programs is supported.
15576 dlopen_self_static=$enable_dlopen_self_static
15577
15578 # Commands to strip libraries.
15579 old_striplib=$lt_old_striplib
15580 striplib=$lt_striplib
15581
15582
15583 # The linker used to build libraries.
15584 LD=$lt_LD
15585
15586 # How to create reloadable object files.
15587 reload_flag=$lt_reload_flag
15588 reload_cmds=$lt_reload_cmds
15589
15590 # Commands used to build an old-style archive.
15591 old_archive_cmds=$lt_old_archive_cmds
15592
15593 # A language specific compiler.
15594 CC=$lt_compiler
15595
15596 # Is the compiler the GNU compiler?
15597 with_gcc=$GCC
15598
15599 # Compiler flag to turn off builtin functions.
15600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15601
15602 # Additional compiler flags for building library objects.
15603 pic_flag=$lt_lt_prog_compiler_pic
15604
15605 # How to pass a linker flag through the compiler.
15606 wl=$lt_lt_prog_compiler_wl
15607
15608 # Compiler flag to prevent dynamic linking.
15609 link_static_flag=$lt_lt_prog_compiler_static
15610
15611 # Does compiler simultaneously support -c and -o options?
15612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15613
15614 # Whether or not to add -lc for building shared libraries.
15615 build_libtool_need_lc=$archive_cmds_need_lc
15616
15617 # Whether or not to disallow shared libs when runtime libs are static.
15618 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15619
15620 # Compiler flag to allow reflexive dlopens.
15621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15622
15623 # Compiler flag to generate shared objects directly from archives.
15624 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15625
15626 # Whether the compiler copes with passing no objects directly.
15627 compiler_needs_object=$lt_compiler_needs_object
15628
15629 # Create an old-style archive from a shared archive.
15630 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15631
15632 # Create a temporary old-style archive to link instead of a shared archive.
15633 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15634
15635 # Commands used to build a shared archive.
15636 archive_cmds=$lt_archive_cmds
15637 archive_expsym_cmds=$lt_archive_expsym_cmds
15638
15639 # Commands used to build a loadable module if different from building
15640 # a shared archive.
15641 module_cmds=$lt_module_cmds
15642 module_expsym_cmds=$lt_module_expsym_cmds
15643
15644 # Whether we are building with GNU ld or not.
15645 with_gnu_ld=$lt_with_gnu_ld
15646
15647 # Flag that allows shared libraries with undefined symbols to be built.
15648 allow_undefined_flag=$lt_allow_undefined_flag
15649
15650 # Flag that enforces no undefined symbols.
15651 no_undefined_flag=$lt_no_undefined_flag
15652
15653 # Flag to hardcode \$libdir into a binary during linking.
15654 # This must work even if \$libdir does not exist
15655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15656
15657 # Whether we need a single "-rpath" flag with a separated argument.
15658 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15659
15660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15661 # DIR into the resulting binary.
15662 hardcode_direct=$hardcode_direct
15663
15664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15665 # DIR into the resulting binary and the resulting library dependency is
15666 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15667 # library is relocated.
15668 hardcode_direct_absolute=$hardcode_direct_absolute
15669
15670 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15671 # into the resulting binary.
15672 hardcode_minus_L=$hardcode_minus_L
15673
15674 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15675 # into the resulting binary.
15676 hardcode_shlibpath_var=$hardcode_shlibpath_var
15677
15678 # Set to "yes" if building a shared library automatically hardcodes DIR
15679 # into the library and all subsequent libraries and executables linked
15680 # against it.
15681 hardcode_automatic=$hardcode_automatic
15682
15683 # Set to yes if linker adds runtime paths of dependent libraries
15684 # to runtime path list.
15685 inherit_rpath=$inherit_rpath
15686
15687 # Whether libtool must link a program against all its dependency libraries.
15688 link_all_deplibs=$link_all_deplibs
15689
15690 # Set to "yes" if exported symbols are required.
15691 always_export_symbols=$always_export_symbols
15692
15693 # The commands to list exported symbols.
15694 export_symbols_cmds=$lt_export_symbols_cmds
15695
15696 # Symbols that should not be listed in the preloaded symbols.
15697 exclude_expsyms=$lt_exclude_expsyms
15698
15699 # Symbols that must always be exported.
15700 include_expsyms=$lt_include_expsyms
15701
15702 # Commands necessary for linking programs (against libraries) with templates.
15703 prelink_cmds=$lt_prelink_cmds
15704
15705 # Commands necessary for finishing linking programs.
15706 postlink_cmds=$lt_postlink_cmds
15707
15708 # Specify filename containing input files.
15709 file_list_spec=$lt_file_list_spec
15710
15711 # How to hardcode a shared library path into an executable.
15712 hardcode_action=$hardcode_action
15713
15714 # ### END LIBTOOL CONFIG
15715
15716 _LT_EOF
15717
15718   case $host_os in
15719   aix3*)
15720     cat <<\_LT_EOF >> "$cfgfile"
15721 # AIX sometimes has problems with the GCC collect2 program.  For some
15722 # reason, if we set the COLLECT_NAMES environment variable, the problems
15723 # vanish in a puff of smoke.
15724 if test "X${COLLECT_NAMES+set}" != Xset; then
15725   COLLECT_NAMES=
15726   export COLLECT_NAMES
15727 fi
15728 _LT_EOF
15729     ;;
15730   esac
15731
15732
15733 ltmain="$ac_aux_dir/ltmain.sh"
15734
15735
15736   # We use sed instead of cat because bash on DJGPP gets confused if
15737   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15738   # text mode, it properly converts lines to CR/LF.  This bash problem
15739   # is reportedly fixed, but why not run on old versions too?
15740   sed '$q' "$ltmain" >> "$cfgfile" \
15741      || (rm -f "$cfgfile"; exit 1)
15742
15743   if test x"$xsi_shell" = xyes; then
15744   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15745 func_dirname ()\
15746 {\
15747 \    case ${1} in\
15748 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15749 \      *  ) func_dirname_result="${3}" ;;\
15750 \    esac\
15751 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15752   && mv -f "$cfgfile.tmp" "$cfgfile" \
15753     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15754 test 0 -eq $? || _lt_function_replace_fail=:
15755
15756
15757   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15758 func_basename ()\
15759 {\
15760 \    func_basename_result="${1##*/}"\
15761 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15762   && mv -f "$cfgfile.tmp" "$cfgfile" \
15763     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15764 test 0 -eq $? || _lt_function_replace_fail=:
15765
15766
15767   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15768 func_dirname_and_basename ()\
15769 {\
15770 \    case ${1} in\
15771 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15772 \      *  ) func_dirname_result="${3}" ;;\
15773 \    esac\
15774 \    func_basename_result="${1##*/}"\
15775 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15776   && mv -f "$cfgfile.tmp" "$cfgfile" \
15777     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15778 test 0 -eq $? || _lt_function_replace_fail=:
15779
15780
15781   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15782 func_stripname ()\
15783 {\
15784 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15785 \    # positional parameters, so assign one to ordinary parameter first.\
15786 \    func_stripname_result=${3}\
15787 \    func_stripname_result=${func_stripname_result#"${1}"}\
15788 \    func_stripname_result=${func_stripname_result%"${2}"}\
15789 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15790   && mv -f "$cfgfile.tmp" "$cfgfile" \
15791     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15792 test 0 -eq $? || _lt_function_replace_fail=:
15793
15794
15795   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15796 func_split_long_opt ()\
15797 {\
15798 \    func_split_long_opt_name=${1%%=*}\
15799 \    func_split_long_opt_arg=${1#*=}\
15800 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15801   && mv -f "$cfgfile.tmp" "$cfgfile" \
15802     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15803 test 0 -eq $? || _lt_function_replace_fail=:
15804
15805
15806   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15807 func_split_short_opt ()\
15808 {\
15809 \    func_split_short_opt_arg=${1#??}\
15810 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15811 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15812   && mv -f "$cfgfile.tmp" "$cfgfile" \
15813     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15814 test 0 -eq $? || _lt_function_replace_fail=:
15815
15816
15817   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15818 func_lo2o ()\
15819 {\
15820 \    case ${1} in\
15821 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15822 \      *)    func_lo2o_result=${1} ;;\
15823 \    esac\
15824 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15825   && mv -f "$cfgfile.tmp" "$cfgfile" \
15826     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15827 test 0 -eq $? || _lt_function_replace_fail=:
15828
15829
15830   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15831 func_xform ()\
15832 {\
15833     func_xform_result=${1%.*}.lo\
15834 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15835   && mv -f "$cfgfile.tmp" "$cfgfile" \
15836     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15837 test 0 -eq $? || _lt_function_replace_fail=:
15838
15839
15840   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15841 func_arith ()\
15842 {\
15843     func_arith_result=$(( $* ))\
15844 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15845   && mv -f "$cfgfile.tmp" "$cfgfile" \
15846     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15847 test 0 -eq $? || _lt_function_replace_fail=:
15848
15849
15850   sed -e '/^func_len ()$/,/^} # func_len /c\
15851 func_len ()\
15852 {\
15853     func_len_result=${#1}\
15854 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15855   && mv -f "$cfgfile.tmp" "$cfgfile" \
15856     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15857 test 0 -eq $? || _lt_function_replace_fail=:
15858
15859 fi
15860
15861 if test x"$lt_shell_append" = xyes; then
15862   sed -e '/^func_append ()$/,/^} # func_append /c\
15863 func_append ()\
15864 {\
15865     eval "${1}+=\\${2}"\
15866 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15867   && mv -f "$cfgfile.tmp" "$cfgfile" \
15868     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15869 test 0 -eq $? || _lt_function_replace_fail=:
15870
15871
15872   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15873 func_append_quoted ()\
15874 {\
15875 \    func_quote_for_eval "${2}"\
15876 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15877 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15878   && mv -f "$cfgfile.tmp" "$cfgfile" \
15879     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15880 test 0 -eq $? || _lt_function_replace_fail=:
15881
15882
15883   # Save a `func_append' function call where possible by direct use of '+='
15884   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15885     && mv -f "$cfgfile.tmp" "$cfgfile" \
15886       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15887   test 0 -eq $? || _lt_function_replace_fail=:
15888 else
15889   # Save a `func_append' function call even when '+=' is not available
15890   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15891     && mv -f "$cfgfile.tmp" "$cfgfile" \
15892       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15893   test 0 -eq $? || _lt_function_replace_fail=:
15894 fi
15895
15896 if test x"$_lt_function_replace_fail" = x":"; then
15897   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15898 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15899 fi
15900
15901
15902    mv -f "$cfgfile" "$ofile" ||
15903     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15904   chmod +x "$ofile"
15905
15906  ;;
15907
15908   esac
15909 done # for ac_tag
15910
15911
15912 as_fn_exit 0
15913 _ACEOF
15914 ac_clean_files=$ac_clean_files_save
15915
15916 test $ac_write_fail = 0 ||
15917   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15918
15919
15920 # configure is writing to config.log, and then calls config.status.
15921 # config.status does its own redirection, appending to config.log.
15922 # Unfortunately, on DOS this fails, as config.log is still kept open
15923 # by configure, so config.status won't be able to write to it; its
15924 # output is simply discarded.  So we exec the FD to /dev/null,
15925 # effectively closing config.log, so it can be properly (re)opened and
15926 # appended to by config.status.  When coming back to configure, we
15927 # need to make the FD available again.
15928 if test "$no_create" != yes; then
15929   ac_cs_success=:
15930   ac_config_status_args=
15931   test "$silent" = yes &&
15932     ac_config_status_args="$ac_config_status_args --quiet"
15933   exec 5>/dev/null
15934   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15935   exec 5>>config.log
15936   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15937   # would make configure fail if this is the last instruction.
15938   $ac_cs_success || as_fn_exit 1
15939 fi
15940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15941   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15943 fi
15944